blob: 6f313bbf91d885c09334483801b0f9ee877c1df3 [file] [log] [blame]
Lev Walkinf15320b2004-06-03 03:38:44 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003# Generated by GNU Autoconf 2.59.
Lev Walkinf15320b2004-06-03 03:38:44 +00004#
Lev Walkin8e8b5482004-06-17 23:42:48 +00005# Copyright (C) 2003 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +00006# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000022DUALCASE=1; export DUALCASE # for MKS sh
Lev Walkinf15320b2004-06-03 03:38:44 +000023
24# Support unset when possible.
Lev Walkin8e8b5482004-06-17 23:42:48 +000025if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Lev Walkinf15320b2004-06-03 03:38:44 +000026 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
Lev Walkin8e8b5482004-06-17 23:42:48 +000044 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
Lev Walkinf15320b2004-06-03 03:38:44 +000045 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
Lev Walkin8e8b5482004-06-17 23:42:48 +0000221 test -d ./-p && rmdir ./-p
Lev Walkinf15320b2004-06-03 03:38:44 +0000222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +0000229
230# Sed expression to map a string onto a valid variable name.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +0000232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
Lev Walkin8e8b5482004-06-17 23:42:48 +0000244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255echo=${ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
274$*
275EOF
276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
282
283if test -z "$ECHO"; then
284if test "X${echo_test_string+set}" != Xset; then
285# find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
293 fi
294 done
295fi
296
297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
300 :
301else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
305 #
306 # So, first we look for a working echo in the user's PATH.
307
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
317 fi
318 done
319 IFS="$lt_save_ifs"
320
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
343 :
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
361
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
366 fi
367 prev="$cmd"
368 done
369
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
377 fi
378 fi
379 fi
380 fi
381fi
382fi
383
384# Copy echo and quote the copy suitably for passing to libtool from
385# the Makefile, instead of quoting the original, which is used later.
386ECHO=$echo
387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389fi
390
391
392
393
394tagnames=${tagnames+${tagnames},}CXX
395
396tagnames=${tagnames+${tagnames},}F77
397
Lev Walkinf15320b2004-06-03 03:38:44 +0000398# Name of the host.
399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400# so uname gets run too.
401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403exec 6>&1
404
405#
406# Initializations.
407#
408ac_default_prefix=/usr/local
409ac_config_libobj_dir=.
410cross_compiling=no
411subdirs=
412MFLAGS=
413MAKEFLAGS=
414SHELL=${CONFIG_SHELL-/bin/sh}
415
416# Maximum number of lines to put in a shell here document.
417# This variable seems obsolete. It should probably be removed, and
418# only ac_max_sed_lines should be used.
419: ${ac_max_here_lines=38}
420
421# Identity of this package.
422PACKAGE_NAME=
423PACKAGE_TARNAME=
424PACKAGE_VERSION=
425PACKAGE_STRING=
426PACKAGE_BUGREPORT=
427
428ac_unique_file="libasn1parser/asn1p_y.y"
429# Factoring default headers for most tests.
430ac_includes_default="\
431#include <stdio.h>
432#if HAVE_SYS_TYPES_H
433# include <sys/types.h>
434#endif
435#if HAVE_SYS_STAT_H
436# include <sys/stat.h>
437#endif
438#if STDC_HEADERS
439# include <stdlib.h>
440# include <stddef.h>
441#else
442# if HAVE_STDLIB_H
443# include <stdlib.h>
444# endif
445#endif
446#if HAVE_STRING_H
447# if !STDC_HEADERS && HAVE_MEMORY_H
448# include <memory.h>
449# endif
450# include <string.h>
451#endif
452#if HAVE_STRINGS_H
453# include <strings.h>
454#endif
455#if HAVE_INTTYPES_H
456# include <inttypes.h>
457#else
458# if HAVE_STDINT_H
459# include <stdint.h>
460# endif
461#endif
462#if HAVE_UNISTD_H
463# include <unistd.h>
464#endif"
465
Lev Walkin33cded12004-09-19 19:40:52 +0000466ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL CONFIGURE_DEPENDS CPLUSPLUS_FOUND_TRUE CPLUSPLUS_FOUND_FALSE YACC LEX LEXLIB LEX_OUTPUT_ROOT ADD_CFLAGS LIBOBJS LTLIBOBJS'
Lev Walkinf15320b2004-06-03 03:38:44 +0000467ac_subst_files=''
468
469# Initialize some variables set by options.
470ac_init_help=
471ac_init_version=false
472# The variables have the same names as the options, with
473# dashes changed to underlines.
474cache_file=/dev/null
475exec_prefix=NONE
476no_create=
477no_recursion=
478prefix=NONE
479program_prefix=NONE
480program_suffix=NONE
481program_transform_name=s,x,x,
482silent=
483site=
484srcdir=
485verbose=
486x_includes=NONE
487x_libraries=NONE
488
489# Installation directory options.
490# These are left unexpanded so users can "make install exec_prefix=/foo"
491# and all the variables that are supposed to be based on exec_prefix
492# by default will actually change.
493# Use braces instead of parens because sh, perl, etc. also accept them.
494bindir='${exec_prefix}/bin'
495sbindir='${exec_prefix}/sbin'
496libexecdir='${exec_prefix}/libexec'
497datadir='${prefix}/share'
498sysconfdir='${prefix}/etc'
499sharedstatedir='${prefix}/com'
500localstatedir='${prefix}/var'
501libdir='${exec_prefix}/lib'
502includedir='${prefix}/include'
503oldincludedir='/usr/include'
504infodir='${prefix}/info'
505mandir='${prefix}/man'
506
507ac_prev=
508for ac_option
509do
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
513 ac_prev=
514 continue
515 fi
516
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519 # Accept the important Cygnus configure options, so we can diagnose typos.
520
521 case $ac_option in
522
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 ac_prev=bindir ;;
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526 bindir=$ac_optarg ;;
527
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
532
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
539
540 --config-cache | -C)
541 cache_file=config.cache ;;
542
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 ac_prev=datadir ;;
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 | --da=*)
547 datadir=$ac_optarg ;;
548
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
557
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 case $ac_option in
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567 *) ac_optarg=yes ;;
568 esac
569 eval "enable_$ac_feature='$ac_optarg'" ;;
570
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
579
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
582 with_gas=yes ;;
583
584 -help | --help | --hel | --he | -h)
585 ac_init_help=long ;;
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
590
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
595
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
602
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
604 ac_prev=infodir ;;
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
607
608 -libdir | --libdir | --libdi | --libd)
609 ac_prev=libdir ;;
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
611 libdir=$ac_optarg ;;
612
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
619
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
628
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630 ac_prev=mandir ;;
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632 mandir=$ac_optarg ;;
633
634 -nfp | --nfp | --nf)
635 # Obsolete; use --without-fp.
636 with_fp=no ;;
637
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
640 no_create=yes ;;
641
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644 no_recursion=yes ;;
645
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
654
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656 ac_prev=prefix ;;
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658 prefix=$ac_optarg ;;
659
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
666
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
673
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
690
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
693 silent=yes ;;
694
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696 ac_prev=sbindir ;;
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698 | --sbi=* | --sb=*)
699 sbindir=$ac_optarg ;;
700
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
704 | --sha | --sh)
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709 | --sha=* | --sh=*)
710 sharedstatedir=$ac_optarg ;;
711
712 -site | --site | --sit)
713 ac_prev=site ;;
714 -site=* | --site=* | --sit=*)
715 site=$ac_optarg ;;
716
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718 ac_prev=srcdir ;;
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720 srcdir=$ac_optarg ;;
721
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
728
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
733
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
735 verbose=yes ;;
736
737 -version | --version | --versio | --versi | --vers | -V)
738 ac_init_version=: ;;
739
740 -with-* | --with-*)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
747 case $ac_option in
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749 *) ac_optarg=yes ;;
750 esac
751 eval "with_$ac_package='$ac_optarg'" ;;
752
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
761
762 --x)
763 # Obsolete; use --with-x.
764 with_x=yes ;;
765
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
772
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
779
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
783 ;;
784
785 *=*)
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
793 export $ac_envvar ;;
794
795 *)
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801 ;;
802
803 esac
804done
805
806if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
810fi
811
812# Be sure to have absolute paths.
813for ac_var in exec_prefix prefix
814do
815 eval ac_val=$`echo $ac_var`
816 case $ac_val in
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
820 esac
821done
822
823# Be sure to have absolute paths.
824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Lev Walkin8e8b5482004-06-17 23:42:48 +0000825 localstatedir libdir includedir oldincludedir infodir mandir
Lev Walkinf15320b2004-06-03 03:38:44 +0000826do
827 eval ac_val=$`echo $ac_var`
828 case $ac_val in
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
832 esac
833done
834
835# There might be people who depend on the old broken behavior: `$host'
836# used to hold the argument of --host etc.
837# FIXME: To remove some day.
838build=$build_alias
839host=$host_alias
840target=$target_alias
841
842# FIXME: To remove some day.
843if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
849 cross_compiling=yes
850 fi
851fi
852
853ac_tool_prefix=
854test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856test "$silent" = yes && exec 6>/dev/null
857
858
859# Find the source files, if location was not specified.
860if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +0000865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
Lev Walkinf15320b2004-06-03 03:38:44 +0000869echo X"$0" |
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
874 s/.*/./; q'`
875 srcdir=$ac_confdir
876 if test ! -r $srcdir/$ac_unique_file; then
877 srcdir=..
878 fi
879else
880 ac_srcdir_defaulted=no
881fi
882if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
886 else
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
889 fi
890fi
891(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895ac_env_build_alias_set=${build_alias+set}
896ac_env_build_alias_value=$build_alias
897ac_cv_env_build_alias_set=${build_alias+set}
898ac_cv_env_build_alias_value=$build_alias
899ac_env_host_alias_set=${host_alias+set}
900ac_env_host_alias_value=$host_alias
901ac_cv_env_host_alias_set=${host_alias+set}
902ac_cv_env_host_alias_value=$host_alias
903ac_env_target_alias_set=${target_alias+set}
904ac_env_target_alias_value=$target_alias
905ac_cv_env_target_alias_set=${target_alias+set}
906ac_cv_env_target_alias_value=$target_alias
907ac_env_CC_set=${CC+set}
908ac_env_CC_value=$CC
909ac_cv_env_CC_set=${CC+set}
910ac_cv_env_CC_value=$CC
911ac_env_CFLAGS_set=${CFLAGS+set}
912ac_env_CFLAGS_value=$CFLAGS
913ac_cv_env_CFLAGS_set=${CFLAGS+set}
914ac_cv_env_CFLAGS_value=$CFLAGS
915ac_env_LDFLAGS_set=${LDFLAGS+set}
916ac_env_LDFLAGS_value=$LDFLAGS
917ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918ac_cv_env_LDFLAGS_value=$LDFLAGS
919ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920ac_env_CPPFLAGS_value=$CPPFLAGS
921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923ac_env_CPP_set=${CPP+set}
924ac_env_CPP_value=$CPP
925ac_cv_env_CPP_set=${CPP+set}
926ac_cv_env_CPP_value=$CPP
Lev Walkin8e8b5482004-06-17 23:42:48 +0000927ac_env_CXX_set=${CXX+set}
928ac_env_CXX_value=$CXX
929ac_cv_env_CXX_set=${CXX+set}
930ac_cv_env_CXX_value=$CXX
931ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932ac_env_CXXFLAGS_value=$CXXFLAGS
933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935ac_env_CXXCPP_set=${CXXCPP+set}
936ac_env_CXXCPP_value=$CXXCPP
937ac_cv_env_CXXCPP_set=${CXXCPP+set}
938ac_cv_env_CXXCPP_value=$CXXCPP
939ac_env_F77_set=${F77+set}
940ac_env_F77_value=$F77
941ac_cv_env_F77_set=${F77+set}
942ac_cv_env_F77_value=$F77
943ac_env_FFLAGS_set=${FFLAGS+set}
944ac_env_FFLAGS_value=$FFLAGS
945ac_cv_env_FFLAGS_set=${FFLAGS+set}
946ac_cv_env_FFLAGS_value=$FFLAGS
Lev Walkinf15320b2004-06-03 03:38:44 +0000947
948#
949# Report the --help message.
950#
951if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
954 cat <<_ACEOF
955\`configure' configures this package to adapt to many kinds of systems.
956
957Usage: $0 [OPTION]... [VAR=VALUE]...
958
959To assign environment variables (e.g., CC, CFLAGS...), specify them as
960VAR=VALUE. See below for descriptions of some of the useful variables.
961
962Defaults for the options are specified in brackets.
963
964Configuration:
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
974
975_ACEOF
976
977 cat <<_ACEOF
978Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
Lev Walkin8e8b5482004-06-17 23:42:48 +0000980 [$ac_default_prefix]
Lev Walkinf15320b2004-06-03 03:38:44 +0000981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Lev Walkin8e8b5482004-06-17 23:42:48 +0000982 [PREFIX]
Lev Walkinf15320b2004-06-03 03:38:44 +0000983
984By default, \`make install' will install all the files in
985\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987for instance \`--prefix=\$HOME'.
988
989For better control, use the options below.
990
991Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1004_ACEOF
1005
1006 cat <<\_ACEOF
1007
1008Program names:
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1012
1013System types:
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 --target=TARGET configure for building compilers for TARGET [HOST]
1017_ACEOF
1018fi
1019
1020if test -n "$ac_init_help"; then
1021
1022 cat <<\_ACEOF
1023
1024Optional Features:
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Lev Walkin8e8b5482004-06-17 23:42:48 +00001027 --enable-maintainer-mode enable make rules and dependencies not useful
1028 (and sometimes confusing) to the casual installer
1029 --enable-shared[=PKGS]
1030 build shared libraries [default=yes]
1031 --enable-static[=PKGS]
1032 build static libraries [default=yes]
1033 --enable-fast-install[=PKGS]
1034 optimize for fast installation [default=yes]
1035 --disable-dependency-tracking speeds up one-time build
1036 --enable-dependency-tracking do not reject slow dependency extractors
Lev Walkinf15320b2004-06-03 03:38:44 +00001037 --disable-libtool-lock avoid locking (might break parallel builds)
1038 --disable-autoconf disable automatic generation of configure script
1039 --enable-Werror abort compilation after any C compiler warning
1040
1041Optional Packages:
1042 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1043 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Lev Walkin8e8b5482004-06-17 23:42:48 +00001044 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1045 --with-pic try to use only PIC/non-PIC objects [default=use
1046 both]
1047 --with-tags[=TAGS]
1048 include additional configurations [automatic]
Lev Walkinf15320b2004-06-03 03:38:44 +00001049
1050Some influential environment variables:
1051 CC C compiler command
1052 CFLAGS C compiler flags
1053 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1054 nonstandard directory <lib dir>
1055 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1056 headers in a nonstandard directory <include dir>
1057 CPP C preprocessor
Lev Walkin8e8b5482004-06-17 23:42:48 +00001058 CXX C++ compiler command
1059 CXXFLAGS C++ compiler flags
1060 CXXCPP C++ preprocessor
1061 F77 Fortran 77 compiler command
1062 FFLAGS Fortran 77 compiler flags
Lev Walkinf15320b2004-06-03 03:38:44 +00001063
1064Use these variables to override the choices made by `configure' or to help
1065it to find libraries and programs with nonstandard names/locations.
1066
1067_ACEOF
1068fi
1069
1070if test "$ac_init_help" = "recursive"; then
1071 # If there are subdirs, report their specific --help.
1072 ac_popdir=`pwd`
1073 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1074 test -d $ac_dir || continue
1075 ac_builddir=.
1076
1077if test "$ac_dir" != .; then
1078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1079 # A "../" for each directory in $ac_dir_suffix.
1080 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1081else
1082 ac_dir_suffix= ac_top_builddir=
1083fi
1084
1085case $srcdir in
1086 .) # No --srcdir option. We are building in place.
1087 ac_srcdir=.
1088 if test -z "$ac_top_builddir"; then
1089 ac_top_srcdir=.
1090 else
1091 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1092 fi ;;
1093 [\\/]* | ?:[\\/]* ) # Absolute path.
1094 ac_srcdir=$srcdir$ac_dir_suffix;
1095 ac_top_srcdir=$srcdir ;;
1096 *) # Relative path.
1097 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1098 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1099esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00001100
1101# Do not use `cd foo && pwd` to compute absolute paths, because
1102# the directories may not exist.
1103case `pwd` in
1104.) ac_abs_builddir="$ac_dir";;
1105*)
1106 case "$ac_dir" in
1107 .) ac_abs_builddir=`pwd`;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1109 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1110 esac;;
1111esac
1112case $ac_abs_builddir in
1113.) ac_abs_top_builddir=${ac_top_builddir}.;;
1114*)
1115 case ${ac_top_builddir}. in
1116 .) ac_abs_top_builddir=$ac_abs_builddir;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1119 esac;;
1120esac
1121case $ac_abs_builddir in
1122.) ac_abs_srcdir=$ac_srcdir;;
1123*)
1124 case $ac_srcdir in
1125 .) ac_abs_srcdir=$ac_abs_builddir;;
1126 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1127 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1128 esac;;
1129esac
1130case $ac_abs_builddir in
1131.) ac_abs_top_srcdir=$ac_top_srcdir;;
1132*)
1133 case $ac_top_srcdir in
1134 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1135 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1137 esac;;
1138esac
Lev Walkinf15320b2004-06-03 03:38:44 +00001139
1140 cd $ac_dir
1141 # Check for guested configure; otherwise get Cygnus style configure.
1142 if test -f $ac_srcdir/configure.gnu; then
1143 echo
1144 $SHELL $ac_srcdir/configure.gnu --help=recursive
1145 elif test -f $ac_srcdir/configure; then
1146 echo
1147 $SHELL $ac_srcdir/configure --help=recursive
1148 elif test -f $ac_srcdir/configure.ac ||
Lev Walkin8e8b5482004-06-17 23:42:48 +00001149 test -f $ac_srcdir/configure.in; then
Lev Walkinf15320b2004-06-03 03:38:44 +00001150 echo
1151 $ac_configure --help
1152 else
1153 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1154 fi
1155 cd $ac_popdir
1156 done
1157fi
1158
1159test -n "$ac_init_help" && exit 0
1160if $ac_init_version; then
1161 cat <<\_ACEOF
1162
Lev Walkin8e8b5482004-06-17 23:42:48 +00001163Copyright (C) 2003 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +00001164This configure script is free software; the Free Software Foundation
1165gives unlimited permission to copy, distribute and modify it.
1166_ACEOF
1167 exit 0
1168fi
1169exec 5>config.log
1170cat >&5 <<_ACEOF
1171This file contains any messages produced by compilers while
1172running configure, to aid debugging if configure makes a mistake.
1173
1174It was created by $as_me, which was
Lev Walkin8e8b5482004-06-17 23:42:48 +00001175generated by GNU Autoconf 2.59. Invocation command line was
Lev Walkinf15320b2004-06-03 03:38:44 +00001176
1177 $ $0 $@
1178
1179_ACEOF
1180{
1181cat <<_ASUNAME
1182## --------- ##
1183## Platform. ##
1184## --------- ##
1185
1186hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1187uname -m = `(uname -m) 2>/dev/null || echo unknown`
1188uname -r = `(uname -r) 2>/dev/null || echo unknown`
1189uname -s = `(uname -s) 2>/dev/null || echo unknown`
1190uname -v = `(uname -v) 2>/dev/null || echo unknown`
1191
1192/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1193/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1194
1195/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1196/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1197/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1198hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1199/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1200/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1201/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1202
1203_ASUNAME
1204
1205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1206for as_dir in $PATH
1207do
1208 IFS=$as_save_IFS
1209 test -z "$as_dir" && as_dir=.
1210 echo "PATH: $as_dir"
1211done
1212
1213} >&5
1214
1215cat >&5 <<_ACEOF
1216
1217
1218## ----------- ##
1219## Core tests. ##
1220## ----------- ##
1221
1222_ACEOF
1223
1224
1225# Keep a trace of the command line.
1226# Strip out --no-create and --no-recursion so they do not pile up.
1227# Strip out --silent because we don't want to record it for future runs.
1228# Also quote any args containing shell meta-characters.
1229# Make two passes to allow for proper duplicate-argument suppression.
1230ac_configure_args=
1231ac_configure_args0=
1232ac_configure_args1=
1233ac_sep=
1234ac_must_keep_next=false
1235for ac_pass in 1 2
1236do
1237 for ac_arg
1238 do
1239 case $ac_arg in
1240 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242 | -silent | --silent | --silen | --sile | --sil)
1243 continue ;;
1244 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1245 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1246 esac
1247 case $ac_pass in
1248 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1249 2)
1250 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1251 if test $ac_must_keep_next = true; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00001252 ac_must_keep_next=false # Got value, back to normal.
Lev Walkinf15320b2004-06-03 03:38:44 +00001253 else
Lev Walkin8e8b5482004-06-17 23:42:48 +00001254 case $ac_arg in
1255 *=* | --config-cache | -C | -disable-* | --disable-* \
1256 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1257 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1258 | -with-* | --with-* | -without-* | --without-* | --x)
1259 case "$ac_configure_args0 " in
1260 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1261 esac
1262 ;;
1263 -* ) ac_must_keep_next=true ;;
1264 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00001265 fi
1266 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1267 # Get rid of the leading space.
1268 ac_sep=" "
1269 ;;
1270 esac
1271 done
1272done
1273$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1274$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1275
1276# When interrupted or exit'd, cleanup temporary files, and complete
1277# config.log. We remove comments because anyway the quotes in there
1278# would cause problems or look ugly.
1279# WARNING: Be sure not to use single quotes in there, as some shells,
1280# such as our DU 5.0 friend, will then `close' the trap.
1281trap 'exit_status=$?
1282 # Save into config.log some information that might help in debugging.
1283 {
1284 echo
1285
1286 cat <<\_ASBOX
1287## ---------------- ##
1288## Cache variables. ##
1289## ---------------- ##
1290_ASBOX
1291 echo
1292 # The following way of writing the cache mishandles newlines in values,
1293{
1294 (set) 2>&1 |
1295 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1296 *ac_space=\ *)
1297 sed -n \
Lev Walkin8e8b5482004-06-17 23:42:48 +00001298 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
Lev Walkinf15320b2004-06-03 03:38:44 +00001300 ;;
1301 *)
1302 sed -n \
Lev Walkin8e8b5482004-06-17 23:42:48 +00001303 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Lev Walkinf15320b2004-06-03 03:38:44 +00001304 ;;
1305 esac;
1306}
1307 echo
1308
1309 cat <<\_ASBOX
1310## ----------------- ##
1311## Output variables. ##
1312## ----------------- ##
1313_ASBOX
1314 echo
1315 for ac_var in $ac_subst_vars
1316 do
1317 eval ac_val=$`echo $ac_var`
1318 echo "$ac_var='"'"'$ac_val'"'"'"
1319 done | sort
1320 echo
1321
1322 if test -n "$ac_subst_files"; then
1323 cat <<\_ASBOX
1324## ------------- ##
1325## Output files. ##
1326## ------------- ##
1327_ASBOX
1328 echo
1329 for ac_var in $ac_subst_files
1330 do
1331 eval ac_val=$`echo $ac_var`
Lev Walkin8e8b5482004-06-17 23:42:48 +00001332 echo "$ac_var='"'"'$ac_val'"'"'"
Lev Walkinf15320b2004-06-03 03:38:44 +00001333 done | sort
1334 echo
1335 fi
1336
1337 if test -s confdefs.h; then
1338 cat <<\_ASBOX
1339## ----------- ##
1340## confdefs.h. ##
1341## ----------- ##
1342_ASBOX
1343 echo
1344 sed "/^$/d" confdefs.h | sort
1345 echo
1346 fi
1347 test "$ac_signal" != 0 &&
1348 echo "$as_me: caught signal $ac_signal"
1349 echo "$as_me: exit $exit_status"
1350 } >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00001351 rm -f core *.core &&
Lev Walkinf15320b2004-06-03 03:38:44 +00001352 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1353 exit $exit_status
1354 ' 0
1355for ac_signal in 1 2 13 15; do
1356 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1357done
1358ac_signal=0
1359
1360# confdefs.h avoids OS command line length limits that DEFS can exceed.
1361rm -rf conftest* confdefs.h
1362# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1363echo >confdefs.h
1364
1365# Predefined preprocessor variables.
1366
1367cat >>confdefs.h <<_ACEOF
1368#define PACKAGE_NAME "$PACKAGE_NAME"
1369_ACEOF
1370
1371
1372cat >>confdefs.h <<_ACEOF
1373#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1374_ACEOF
1375
1376
1377cat >>confdefs.h <<_ACEOF
1378#define PACKAGE_VERSION "$PACKAGE_VERSION"
1379_ACEOF
1380
1381
1382cat >>confdefs.h <<_ACEOF
1383#define PACKAGE_STRING "$PACKAGE_STRING"
1384_ACEOF
1385
1386
1387cat >>confdefs.h <<_ACEOF
1388#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1389_ACEOF
1390
1391
1392# Let the site file select an alternate cache file if it wants to.
1393# Prefer explicitly selected file to automatically selected ones.
1394if test -z "$CONFIG_SITE"; then
1395 if test "x$prefix" != xNONE; then
1396 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1397 else
1398 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1399 fi
1400fi
1401for ac_site_file in $CONFIG_SITE; do
1402 if test -r "$ac_site_file"; then
1403 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1404echo "$as_me: loading site script $ac_site_file" >&6;}
1405 sed 's/^/| /' "$ac_site_file" >&5
1406 . "$ac_site_file"
1407 fi
1408done
1409
1410if test -r "$cache_file"; then
1411 # Some versions of bash will fail to source /dev/null (special
1412 # files actually), so we avoid doing that.
1413 if test -f "$cache_file"; then
1414 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1415echo "$as_me: loading cache $cache_file" >&6;}
1416 case $cache_file in
1417 [\\/]* | ?:[\\/]* ) . $cache_file;;
1418 *) . ./$cache_file;;
1419 esac
1420 fi
1421else
1422 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1423echo "$as_me: creating cache $cache_file" >&6;}
1424 >$cache_file
1425fi
1426
1427# Check that the precious variables saved in the cache have kept the same
1428# value.
1429ac_cache_corrupted=false
1430for ac_var in `(set) 2>&1 |
Lev Walkin8e8b5482004-06-17 23:42:48 +00001431 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
Lev Walkinf15320b2004-06-03 03:38:44 +00001432 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1433 eval ac_new_set=\$ac_env_${ac_var}_set
1434 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1435 eval ac_new_val="\$ac_env_${ac_var}_value"
1436 case $ac_old_set,$ac_new_set in
1437 set,)
1438 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1439echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1440 ac_cache_corrupted=: ;;
1441 ,set)
1442 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1443echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1444 ac_cache_corrupted=: ;;
1445 ,);;
1446 *)
1447 if test "x$ac_old_val" != "x$ac_new_val"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00001448 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00001449echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00001450 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00001451echo "$as_me: former value: $ac_old_val" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00001452 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00001453echo "$as_me: current value: $ac_new_val" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00001454 ac_cache_corrupted=:
Lev Walkinf15320b2004-06-03 03:38:44 +00001455 fi;;
1456 esac
1457 # Pass precious variables to config.status.
1458 if test "$ac_new_set" = set; then
1459 case $ac_new_val in
1460 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1461 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1462 *) ac_arg=$ac_var=$ac_new_val ;;
1463 esac
1464 case " $ac_configure_args " in
1465 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1466 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1467 esac
1468 fi
1469done
1470if $ac_cache_corrupted; then
1471 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1472echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1473 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1474echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1475 { (exit 1); exit 1; }; }
1476fi
1477
1478ac_ext=c
1479ac_cpp='$CPP $CPPFLAGS'
1480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1482ac_compiler_gnu=$ac_cv_c_compiler_gnu
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502ac_aux_dir=
1503for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1504 if test -f $ac_dir/install-sh; then
1505 ac_aux_dir=$ac_dir
1506 ac_install_sh="$ac_aux_dir/install-sh -c"
1507 break
1508 elif test -f $ac_dir/install.sh; then
1509 ac_aux_dir=$ac_dir
1510 ac_install_sh="$ac_aux_dir/install.sh -c"
1511 break
1512 elif test -f $ac_dir/shtool; then
1513 ac_aux_dir=$ac_dir
1514 ac_install_sh="$ac_aux_dir/shtool install -c"
1515 break
1516 fi
1517done
1518if test -z "$ac_aux_dir"; then
1519 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1520echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1521 { (exit 1); exit 1; }; }
1522fi
1523ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1524ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1525ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1526
1527# Make sure we can run config.sub.
1528$ac_config_sub sun4 >/dev/null 2>&1 ||
1529 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1530echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1531 { (exit 1); exit 1; }; }
1532
1533echo "$as_me:$LINENO: checking build system type" >&5
1534echo $ECHO_N "checking build system type... $ECHO_C" >&6
1535if test "${ac_cv_build+set}" = set; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1537else
1538 ac_cv_build_alias=$build_alias
1539test -z "$ac_cv_build_alias" &&
1540 ac_cv_build_alias=`$ac_config_guess`
1541test -z "$ac_cv_build_alias" &&
1542 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1543echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1544 { (exit 1); exit 1; }; }
1545ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1546 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1547echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1548 { (exit 1); exit 1; }; }
1549
1550fi
1551echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1552echo "${ECHO_T}$ac_cv_build" >&6
1553build=$ac_cv_build
1554build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1555build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1556build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1557
1558
1559echo "$as_me:$LINENO: checking host system type" >&5
1560echo $ECHO_N "checking host system type... $ECHO_C" >&6
1561if test "${ac_cv_host+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563else
1564 ac_cv_host_alias=$host_alias
1565test -z "$ac_cv_host_alias" &&
1566 ac_cv_host_alias=$ac_cv_build_alias
1567ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1568 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1569echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1570 { (exit 1); exit 1; }; }
1571
1572fi
1573echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1574echo "${ECHO_T}$ac_cv_host" >&6
1575host=$ac_cv_host
1576host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1577host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1578host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1579
1580
1581echo "$as_me:$LINENO: checking target system type" >&5
1582echo $ECHO_N "checking target system type... $ECHO_C" >&6
1583if test "${ac_cv_target+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585else
1586 ac_cv_target_alias=$target_alias
1587test "x$ac_cv_target_alias" = "x" &&
1588 ac_cv_target_alias=$ac_cv_host_alias
1589ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1590 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1591echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1592 { (exit 1); exit 1; }; }
1593
1594fi
1595echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1596echo "${ECHO_T}$ac_cv_target" >&6
1597target=$ac_cv_target
1598target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601
1602
1603# The aliases save the names the user supplied, while $host etc.
1604# will get canonicalized.
1605test -n "$target_alias" &&
1606 test "$program_prefix$program_suffix$program_transform_name" = \
1607 NONENONEs,x,x, &&
1608 program_prefix=${target_alias}-
1609
Lev Walkin8e8b5482004-06-17 23:42:48 +00001610am__api_version="1.8"
Lev Walkinf15320b2004-06-03 03:38:44 +00001611# Find a good install program. We prefer a C program (faster),
1612# so one script is as good as another. But avoid the broken or
1613# incompatible versions:
1614# SysV /etc/install, /usr/sbin/install
1615# SunOS /usr/etc/install
1616# IRIX /sbin/install
1617# AIX /bin/install
1618# AmigaOS /C/install, which installs bootblocks on floppy discs
1619# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1620# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1621# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Lev Walkin8e8b5482004-06-17 23:42:48 +00001622# OS/2's system install, which has a completely different semantic
Lev Walkinf15320b2004-06-03 03:38:44 +00001623# ./install, which can be erroneously created by make from ./install.sh.
1624echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1625echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1626if test -z "$INSTALL"; then
1627if test "${ac_cv_path_install+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1629else
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631for as_dir in $PATH
1632do
1633 IFS=$as_save_IFS
1634 test -z "$as_dir" && as_dir=.
1635 # Account for people who put trailing slashes in PATH elements.
1636case $as_dir/ in
1637 ./ | .// | /cC/* | \
1638 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Lev Walkin8e8b5482004-06-17 23:42:48 +00001639 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Lev Walkinf15320b2004-06-03 03:38:44 +00001640 /usr/ucb/* ) ;;
1641 *)
1642 # OSF1 and SCO ODT 3.0 have their own names for install.
1643 # Don't use installbsd from OSF since it installs stuff as root
1644 # by default.
1645 for ac_prog in ginstall scoinst install; do
1646 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00001647 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1648 if test $ac_prog = install &&
1649 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1650 # AIX install. It has an incompatible calling convention.
1651 :
1652 elif test $ac_prog = install &&
1653 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1654 # program-specific install script used by HP pwplus--don't use.
1655 :
1656 else
1657 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1658 break 3
1659 fi
1660 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00001661 done
1662 done
1663 ;;
1664esac
1665done
1666
1667
1668fi
1669 if test "${ac_cv_path_install+set}" = set; then
1670 INSTALL=$ac_cv_path_install
1671 else
1672 # As a last resort, use the slow shell script. We don't cache a
1673 # path for INSTALL within a source directory, because that will
1674 # break other packages using the cache if that directory is
1675 # removed, or if the path is relative.
1676 INSTALL=$ac_install_sh
1677 fi
1678fi
1679echo "$as_me:$LINENO: result: $INSTALL" >&5
1680echo "${ECHO_T}$INSTALL" >&6
1681
1682# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1683# It thinks the first close brace ends the variable substitution.
1684test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1685
1686test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1687
1688test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1689
1690echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1691echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1692# Just in case
1693sleep 1
1694echo timestamp > conftest.file
1695# Do `set' in a subshell so we don't clobber the current shell's
1696# arguments. Must try -L first in case configure is actually a
1697# symlink; some systems play weird games with the mod time of symlinks
1698# (eg FreeBSD returns the mod time of the symlink's containing
1699# directory).
1700if (
1701 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1702 if test "$*" = "X"; then
1703 # -L didn't work.
1704 set X `ls -t $srcdir/configure conftest.file`
1705 fi
1706 rm -f conftest.file
1707 if test "$*" != "X $srcdir/configure conftest.file" \
1708 && test "$*" != "X conftest.file $srcdir/configure"; then
1709
1710 # If neither matched, then we have a broken ls. This can happen
1711 # if, for instance, CONFIG_SHELL is bash and it inherits a
1712 # broken ls alias from the environment. This has actually
1713 # happened. Such a system could not be considered "sane".
1714 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1715alias in your environment" >&5
1716echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1717alias in your environment" >&2;}
1718 { (exit 1); exit 1; }; }
1719 fi
1720
1721 test "$2" = conftest.file
1722 )
1723then
1724 # Ok.
1725 :
1726else
1727 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1728Check your system clock" >&5
1729echo "$as_me: error: newly created file is older than distributed files!
1730Check your system clock" >&2;}
1731 { (exit 1); exit 1; }; }
1732fi
1733echo "$as_me:$LINENO: result: yes" >&5
1734echo "${ECHO_T}yes" >&6
1735test "$program_prefix" != NONE &&
1736 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1737# Use a double $ so make ignores it.
1738test "$program_suffix" != NONE &&
1739 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1740# Double any \ or $. echo might interpret backslashes.
1741# By default was `s,x,x', remove it if useless.
1742cat <<\_ACEOF >conftest.sed
1743s/[\\$]/&&/g;s/;s,x,x,$//
1744_ACEOF
1745program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1746rm conftest.sed
1747
Lev Walkinf15320b2004-06-03 03:38:44 +00001748# expand $ac_aux_dir to an absolute path
Lev Walkin8e8b5482004-06-17 23:42:48 +00001749am_aux_dir=`cd $ac_aux_dir && pwd`
Lev Walkinf15320b2004-06-03 03:38:44 +00001750
1751test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1752# Use eval to expand $SHELL
1753if eval "$MISSING --run true"; then
1754 am_missing_run="$MISSING --run "
1755else
1756 am_missing_run=
Lev Walkin8e8b5482004-06-17 23:42:48 +00001757 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1758echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1759fi
1760
1761if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1762 # Keeping the `.' argument allows $(mkdir_p) to be used without
1763 # argument. Indeed, we sometimes output rules like
1764 # $(mkdir_p) $(somedir)
1765 # where $(somedir) is conditionally defined.
1766 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1767 # expensive solution, as it forces Make to start a sub-shell.)
1768 mkdir_p='mkdir -p -- .'
1769else
1770 # On NextStep and OpenStep, the `mkdir' command does not
1771 # recognize any option. It will interpret all options as
1772 # directories to create, and then abort because `.' already
1773 # exists.
1774 for d in ./-p ./--version;
1775 do
1776 test -d $d && rmdir $d
1777 done
1778 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1779 if test -f "$ac_aux_dir/mkinstalldirs"; then
1780 mkdir_p='$(mkinstalldirs)'
1781 else
1782 mkdir_p='$(install_sh) -d'
1783 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00001784fi
1785
1786for ac_prog in gawk mawk nawk awk
1787do
1788 # Extract the first word of "$ac_prog", so it can be a program name with args.
1789set dummy $ac_prog; ac_word=$2
1790echo "$as_me:$LINENO: checking for $ac_word" >&5
1791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792if test "${ac_cv_prog_AWK+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1794else
1795 if test -n "$AWK"; then
1796 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1797else
1798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799for as_dir in $PATH
1800do
1801 IFS=$as_save_IFS
1802 test -z "$as_dir" && as_dir=.
1803 for ac_exec_ext in '' $ac_executable_extensions; do
1804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805 ac_cv_prog_AWK="$ac_prog"
1806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807 break 2
1808 fi
1809done
1810done
1811
1812fi
1813fi
1814AWK=$ac_cv_prog_AWK
1815if test -n "$AWK"; then
1816 echo "$as_me:$LINENO: result: $AWK" >&5
1817echo "${ECHO_T}$AWK" >&6
1818else
1819 echo "$as_me:$LINENO: result: no" >&5
1820echo "${ECHO_T}no" >&6
1821fi
1822
1823 test -n "$AWK" && break
1824done
1825
1826echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1827echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00001828set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
Lev Walkinf15320b2004-06-03 03:38:44 +00001829if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1831else
1832 cat >conftest.make <<\_ACEOF
1833all:
1834 @echo 'ac_maketemp="$(MAKE)"'
1835_ACEOF
1836# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1837eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1838if test -n "$ac_maketemp"; then
1839 eval ac_cv_prog_make_${ac_make}_set=yes
1840else
1841 eval ac_cv_prog_make_${ac_make}_set=no
1842fi
1843rm -f conftest.make
1844fi
1845if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1846 echo "$as_me:$LINENO: result: yes" >&5
1847echo "${ECHO_T}yes" >&6
1848 SET_MAKE=
1849else
1850 echo "$as_me:$LINENO: result: no" >&5
1851echo "${ECHO_T}no" >&6
1852 SET_MAKE="MAKE=${MAKE-make}"
1853fi
1854
Lev Walkin8e8b5482004-06-17 23:42:48 +00001855rm -rf .tst 2>/dev/null
1856mkdir .tst 2>/dev/null
1857if test -d .tst; then
1858 am__leading_dot=.
Lev Walkinf15320b2004-06-03 03:38:44 +00001859else
Lev Walkin8e8b5482004-06-17 23:42:48 +00001860 am__leading_dot=_
Lev Walkinf15320b2004-06-03 03:38:44 +00001861fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00001862rmdir .tst 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +00001863
1864# test to see if srcdir already configured
Lev Walkin8e8b5482004-06-17 23:42:48 +00001865if test "`cd $srcdir && pwd`" != "`pwd`" &&
Lev Walkinf15320b2004-06-03 03:38:44 +00001866 test -f $srcdir/config.status; then
1867 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1868echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1869 { (exit 1); exit 1; }; }
1870fi
1871
Lev Walkin8e8b5482004-06-17 23:42:48 +00001872# test whether we have cygpath
1873if test -z "$CYGPATH_W"; then
1874 if (cygpath --version) >/dev/null 2>/dev/null; then
1875 CYGPATH_W='cygpath -w'
1876 else
1877 CYGPATH_W=echo
1878 fi
1879fi
1880
1881
Lev Walkinf15320b2004-06-03 03:38:44 +00001882# Define the identity of the package.
Lev Walkin8e8b5482004-06-17 23:42:48 +00001883 PACKAGE=asn1c
Lev Walkin33cded12004-09-19 19:40:52 +00001884 VERSION=0.9.6
Lev Walkin8e8b5482004-06-17 23:42:48 +00001885
Lev Walkinf15320b2004-06-03 03:38:44 +00001886
1887cat >>confdefs.h <<_ACEOF
1888#define PACKAGE "$PACKAGE"
1889_ACEOF
1890
1891
1892cat >>confdefs.h <<_ACEOF
1893#define VERSION "$VERSION"
1894_ACEOF
1895
Lev Walkinf15320b2004-06-03 03:38:44 +00001896# Some tools Automake needs.
1897
Lev Walkin8e8b5482004-06-17 23:42:48 +00001898ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
Lev Walkinf15320b2004-06-03 03:38:44 +00001899
1900
1901AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1902
1903
Lev Walkin8e8b5482004-06-17 23:42:48 +00001904AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
Lev Walkinf15320b2004-06-03 03:38:44 +00001905
1906
1907AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1908
1909
1910MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1911
1912
1913AMTAR=${AMTAR-"${am_missing_run}tar"}
1914
1915install_sh=${install_sh-"$am_aux_dir/install-sh"}
1916
Lev Walkin8e8b5482004-06-17 23:42:48 +00001917# Installed binaries are usually stripped using `strip' when the user
1918# run `make install-strip'. However `strip' might not be the right
1919# tool to use in cross-compilation environments, therefore Automake
1920# will honor the `STRIP' environment variable to overrule this program.
1921if test "$cross_compiling" != no; then
1922 if test -n "$ac_tool_prefix"; then
1923 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1924set dummy ${ac_tool_prefix}strip; ac_word=$2
1925echo "$as_me:$LINENO: checking for $ac_word" >&5
1926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1927if test "${ac_cv_prog_STRIP+set}" = set; then
1928 echo $ECHO_N "(cached) $ECHO_C" >&6
1929else
1930 if test -n "$STRIP"; then
1931 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1932else
1933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934for as_dir in $PATH
1935do
1936 IFS=$as_save_IFS
1937 test -z "$as_dir" && as_dir=.
1938 for ac_exec_ext in '' $ac_executable_extensions; do
1939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1940 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942 break 2
1943 fi
1944done
1945done
1946
1947fi
1948fi
1949STRIP=$ac_cv_prog_STRIP
1950if test -n "$STRIP"; then
1951 echo "$as_me:$LINENO: result: $STRIP" >&5
1952echo "${ECHO_T}$STRIP" >&6
1953else
1954 echo "$as_me:$LINENO: result: no" >&5
1955echo "${ECHO_T}no" >&6
1956fi
1957
1958fi
1959if test -z "$ac_cv_prog_STRIP"; then
1960 ac_ct_STRIP=$STRIP
1961 # Extract the first word of "strip", so it can be a program name with args.
1962set dummy strip; ac_word=$2
1963echo "$as_me:$LINENO: checking for $ac_word" >&5
1964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1965if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1967else
1968 if test -n "$ac_ct_STRIP"; then
1969 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1970else
1971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972for as_dir in $PATH
1973do
1974 IFS=$as_save_IFS
1975 test -z "$as_dir" && as_dir=.
1976 for ac_exec_ext in '' $ac_executable_extensions; do
1977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1978 ac_cv_prog_ac_ct_STRIP="strip"
1979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980 break 2
1981 fi
1982done
1983done
1984
1985 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1986fi
1987fi
1988ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1989if test -n "$ac_ct_STRIP"; then
1990 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1991echo "${ECHO_T}$ac_ct_STRIP" >&6
1992else
1993 echo "$as_me:$LINENO: result: no" >&5
1994echo "${ECHO_T}no" >&6
1995fi
1996
1997 STRIP=$ac_ct_STRIP
1998else
1999 STRIP="$ac_cv_prog_STRIP"
2000fi
2001
2002fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002003INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2004
2005# We need awk for the "check" target. The system "awk" is bad on
2006# some platforms.
2007
2008
2009
2010
2011echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2012echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2013 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2014if test "${enable_maintainer_mode+set}" = set; then
2015 enableval="$enable_maintainer_mode"
2016 USE_MAINTAINER_MODE=$enableval
2017else
2018 USE_MAINTAINER_MODE=no
2019fi;
2020 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2021echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2022
2023
2024if test $USE_MAINTAINER_MODE = yes; then
2025 MAINTAINER_MODE_TRUE=
2026 MAINTAINER_MODE_FALSE='#'
2027else
2028 MAINTAINER_MODE_TRUE='#'
2029 MAINTAINER_MODE_FALSE=
2030fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002031
Lev Walkinf15320b2004-06-03 03:38:44 +00002032 MAINT=$MAINTAINER_MODE_TRUE
2033
2034
2035
2036# Check whether --enable-shared or --disable-shared was given.
2037if test "${enable_shared+set}" = set; then
2038 enableval="$enable_shared"
2039 p=${PACKAGE-default}
Lev Walkin8e8b5482004-06-17 23:42:48 +00002040 case $enableval in
2041 yes) enable_shared=yes ;;
2042 no) enable_shared=no ;;
2043 *)
2044 enable_shared=no
2045 # Look at the argument we got. We use all the common list separators.
2046 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2047 for pkg in $enableval; do
2048 IFS="$lt_save_ifs"
2049 if test "X$pkg" = "X$p"; then
2050 enable_shared=yes
2051 fi
2052 done
2053 IFS="$lt_save_ifs"
2054 ;;
2055 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002056else
2057 enable_shared=yes
2058fi;
Lev Walkin8e8b5482004-06-17 23:42:48 +00002059
Lev Walkinf15320b2004-06-03 03:38:44 +00002060# Check whether --enable-static or --disable-static was given.
2061if test "${enable_static+set}" = set; then
2062 enableval="$enable_static"
2063 p=${PACKAGE-default}
Lev Walkin8e8b5482004-06-17 23:42:48 +00002064 case $enableval in
2065 yes) enable_static=yes ;;
2066 no) enable_static=no ;;
2067 *)
2068 enable_static=no
2069 # Look at the argument we got. We use all the common list separators.
2070 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2071 for pkg in $enableval; do
2072 IFS="$lt_save_ifs"
2073 if test "X$pkg" = "X$p"; then
2074 enable_static=yes
2075 fi
2076 done
2077 IFS="$lt_save_ifs"
2078 ;;
2079 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002080else
2081 enable_static=yes
2082fi;
Lev Walkin8e8b5482004-06-17 23:42:48 +00002083
Lev Walkinf15320b2004-06-03 03:38:44 +00002084# Check whether --enable-fast-install or --disable-fast-install was given.
2085if test "${enable_fast_install+set}" = set; then
2086 enableval="$enable_fast_install"
2087 p=${PACKAGE-default}
Lev Walkin8e8b5482004-06-17 23:42:48 +00002088 case $enableval in
2089 yes) enable_fast_install=yes ;;
2090 no) enable_fast_install=no ;;
2091 *)
2092 enable_fast_install=no
2093 # Look at the argument we got. We use all the common list separators.
2094 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2095 for pkg in $enableval; do
2096 IFS="$lt_save_ifs"
2097 if test "X$pkg" = "X$p"; then
2098 enable_fast_install=yes
2099 fi
2100 done
2101 IFS="$lt_save_ifs"
2102 ;;
2103 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002104else
2105 enable_fast_install=yes
2106fi;
Lev Walkinf15320b2004-06-03 03:38:44 +00002107
Lev Walkin8e8b5482004-06-17 23:42:48 +00002108DEPDIR="${am__leading_dot}deps"
Lev Walkinf15320b2004-06-03 03:38:44 +00002109
Lev Walkin8e8b5482004-06-17 23:42:48 +00002110 ac_config_commands="$ac_config_commands depfiles"
Lev Walkinf15320b2004-06-03 03:38:44 +00002111
Lev Walkinf15320b2004-06-03 03:38:44 +00002112
2113am_make=${MAKE-make}
2114cat > confinc << 'END'
Lev Walkin8e8b5482004-06-17 23:42:48 +00002115am__doit:
Lev Walkinf15320b2004-06-03 03:38:44 +00002116 @echo done
Lev Walkin8e8b5482004-06-17 23:42:48 +00002117.PHONY: am__doit
Lev Walkinf15320b2004-06-03 03:38:44 +00002118END
2119# If we don't find an include directive, just comment out the code.
2120echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2121echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00002122am__include="#"
Lev Walkinf15320b2004-06-03 03:38:44 +00002123am__quote=
2124_am_result=none
2125# First try GNU make style include.
2126echo "include confinc" > confmf
2127# We grep out `Entering directory' and `Leaving directory'
2128# messages which can occur if `w' ends up in MAKEFLAGS.
2129# In particular we don't look at `^make:' because GNU make might
2130# be invoked under some other name (usually "gmake"), in which
2131# case it prints its new name instead of `make'.
Lev Walkin8e8b5482004-06-17 23:42:48 +00002132if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002133 am__include=include
2134 am__quote=
2135 _am_result=GNU
2136fi
2137# Now try BSD make style include.
2138if test "$am__include" = "#"; then
2139 echo '.include "confinc"' > confmf
2140 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2141 am__include=.include
Lev Walkin8e8b5482004-06-17 23:42:48 +00002142 am__quote="\""
Lev Walkinf15320b2004-06-03 03:38:44 +00002143 _am_result=BSD
2144 fi
2145fi
2146
2147
2148echo "$as_me:$LINENO: result: $_am_result" >&5
2149echo "${ECHO_T}$_am_result" >&6
2150rm -f confinc confmf
2151
Lev Walkin8e8b5482004-06-17 23:42:48 +00002152# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2153if test "${enable_dependency_tracking+set}" = set; then
2154 enableval="$enable_dependency_tracking"
2155
2156fi;
2157if test "x$enable_dependency_tracking" != xno; then
2158 am_depcomp="$ac_aux_dir/depcomp"
2159 AMDEPBACKSLASH='\'
2160fi
2161
2162
2163if test "x$enable_dependency_tracking" != xno; then
2164 AMDEP_TRUE=
2165 AMDEP_FALSE='#'
2166else
2167 AMDEP_TRUE='#'
2168 AMDEP_FALSE=
2169fi
2170
2171
2172
Lev Walkinf15320b2004-06-03 03:38:44 +00002173ac_ext=c
2174ac_cpp='$CPP $CPPFLAGS'
2175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2177ac_compiler_gnu=$ac_cv_c_compiler_gnu
2178if test -n "$ac_tool_prefix"; then
2179 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2180set dummy ${ac_tool_prefix}gcc; ac_word=$2
2181echo "$as_me:$LINENO: checking for $ac_word" >&5
2182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2183if test "${ac_cv_prog_CC+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2185else
2186 if test -n "$CC"; then
2187 ac_cv_prog_CC="$CC" # Let the user override the test.
2188else
2189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190for as_dir in $PATH
2191do
2192 IFS=$as_save_IFS
2193 test -z "$as_dir" && as_dir=.
2194 for ac_exec_ext in '' $ac_executable_extensions; do
2195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2196 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2198 break 2
2199 fi
2200done
2201done
2202
2203fi
2204fi
2205CC=$ac_cv_prog_CC
2206if test -n "$CC"; then
2207 echo "$as_me:$LINENO: result: $CC" >&5
2208echo "${ECHO_T}$CC" >&6
2209else
2210 echo "$as_me:$LINENO: result: no" >&5
2211echo "${ECHO_T}no" >&6
2212fi
2213
2214fi
2215if test -z "$ac_cv_prog_CC"; then
2216 ac_ct_CC=$CC
2217 # Extract the first word of "gcc", so it can be a program name with args.
2218set dummy gcc; ac_word=$2
2219echo "$as_me:$LINENO: checking for $ac_word" >&5
2220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2221if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2223else
2224 if test -n "$ac_ct_CC"; then
2225 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2226else
2227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228for as_dir in $PATH
2229do
2230 IFS=$as_save_IFS
2231 test -z "$as_dir" && as_dir=.
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2234 ac_cv_prog_ac_ct_CC="gcc"
2235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236 break 2
2237 fi
2238done
2239done
2240
2241fi
2242fi
2243ac_ct_CC=$ac_cv_prog_ac_ct_CC
2244if test -n "$ac_ct_CC"; then
2245 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2246echo "${ECHO_T}$ac_ct_CC" >&6
2247else
2248 echo "$as_me:$LINENO: result: no" >&5
2249echo "${ECHO_T}no" >&6
2250fi
2251
2252 CC=$ac_ct_CC
2253else
2254 CC="$ac_cv_prog_CC"
2255fi
2256
2257if test -z "$CC"; then
2258 if test -n "$ac_tool_prefix"; then
2259 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2260set dummy ${ac_tool_prefix}cc; ac_word=$2
2261echo "$as_me:$LINENO: checking for $ac_word" >&5
2262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263if test "${ac_cv_prog_CC+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2265else
2266 if test -n "$CC"; then
2267 ac_cv_prog_CC="$CC" # Let the user override the test.
2268else
2269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270for as_dir in $PATH
2271do
2272 IFS=$as_save_IFS
2273 test -z "$as_dir" && as_dir=.
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2276 ac_cv_prog_CC="${ac_tool_prefix}cc"
2277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278 break 2
2279 fi
2280done
2281done
2282
2283fi
2284fi
2285CC=$ac_cv_prog_CC
2286if test -n "$CC"; then
2287 echo "$as_me:$LINENO: result: $CC" >&5
2288echo "${ECHO_T}$CC" >&6
2289else
2290 echo "$as_me:$LINENO: result: no" >&5
2291echo "${ECHO_T}no" >&6
2292fi
2293
2294fi
2295if test -z "$ac_cv_prog_CC"; then
2296 ac_ct_CC=$CC
2297 # Extract the first word of "cc", so it can be a program name with args.
2298set dummy cc; ac_word=$2
2299echo "$as_me:$LINENO: checking for $ac_word" >&5
2300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2301if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2303else
2304 if test -n "$ac_ct_CC"; then
2305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2306else
2307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308for as_dir in $PATH
2309do
2310 IFS=$as_save_IFS
2311 test -z "$as_dir" && as_dir=.
2312 for ac_exec_ext in '' $ac_executable_extensions; do
2313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2314 ac_cv_prog_ac_ct_CC="cc"
2315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316 break 2
2317 fi
2318done
2319done
2320
2321fi
2322fi
2323ac_ct_CC=$ac_cv_prog_ac_ct_CC
2324if test -n "$ac_ct_CC"; then
2325 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2326echo "${ECHO_T}$ac_ct_CC" >&6
2327else
2328 echo "$as_me:$LINENO: result: no" >&5
2329echo "${ECHO_T}no" >&6
2330fi
2331
2332 CC=$ac_ct_CC
2333else
2334 CC="$ac_cv_prog_CC"
2335fi
2336
2337fi
2338if test -z "$CC"; then
2339 # Extract the first word of "cc", so it can be a program name with args.
2340set dummy cc; ac_word=$2
2341echo "$as_me:$LINENO: checking for $ac_word" >&5
2342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2343if test "${ac_cv_prog_CC+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2345else
2346 if test -n "$CC"; then
2347 ac_cv_prog_CC="$CC" # Let the user override the test.
2348else
2349 ac_prog_rejected=no
2350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351for as_dir in $PATH
2352do
2353 IFS=$as_save_IFS
2354 test -z "$as_dir" && as_dir=.
2355 for ac_exec_ext in '' $ac_executable_extensions; do
2356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2357 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2358 ac_prog_rejected=yes
2359 continue
2360 fi
2361 ac_cv_prog_CC="cc"
2362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363 break 2
2364 fi
2365done
2366done
2367
2368if test $ac_prog_rejected = yes; then
2369 # We found a bogon in the path, so make sure we never use it.
2370 set dummy $ac_cv_prog_CC
2371 shift
2372 if test $# != 0; then
2373 # We chose a different compiler from the bogus one.
2374 # However, it has the same basename, so the bogon will be chosen
2375 # first if we set CC to just the basename; use the full file name.
2376 shift
2377 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2378 fi
2379fi
2380fi
2381fi
2382CC=$ac_cv_prog_CC
2383if test -n "$CC"; then
2384 echo "$as_me:$LINENO: result: $CC" >&5
2385echo "${ECHO_T}$CC" >&6
2386else
2387 echo "$as_me:$LINENO: result: no" >&5
2388echo "${ECHO_T}no" >&6
2389fi
2390
2391fi
2392if test -z "$CC"; then
2393 if test -n "$ac_tool_prefix"; then
2394 for ac_prog in cl
2395 do
2396 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2397set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2398echo "$as_me:$LINENO: checking for $ac_word" >&5
2399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2400if test "${ac_cv_prog_CC+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2402else
2403 if test -n "$CC"; then
2404 ac_cv_prog_CC="$CC" # Let the user override the test.
2405else
2406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407for as_dir in $PATH
2408do
2409 IFS=$as_save_IFS
2410 test -z "$as_dir" && as_dir=.
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2413 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415 break 2
2416 fi
2417done
2418done
2419
2420fi
2421fi
2422CC=$ac_cv_prog_CC
2423if test -n "$CC"; then
2424 echo "$as_me:$LINENO: result: $CC" >&5
2425echo "${ECHO_T}$CC" >&6
2426else
2427 echo "$as_me:$LINENO: result: no" >&5
2428echo "${ECHO_T}no" >&6
2429fi
2430
2431 test -n "$CC" && break
2432 done
2433fi
2434if test -z "$CC"; then
2435 ac_ct_CC=$CC
2436 for ac_prog in cl
2437do
2438 # Extract the first word of "$ac_prog", so it can be a program name with args.
2439set dummy $ac_prog; ac_word=$2
2440echo "$as_me:$LINENO: checking for $ac_word" >&5
2441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2442if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2444else
2445 if test -n "$ac_ct_CC"; then
2446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2447else
2448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449for as_dir in $PATH
2450do
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2455 ac_cv_prog_ac_ct_CC="$ac_prog"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 break 2
2458 fi
2459done
2460done
2461
2462fi
2463fi
2464ac_ct_CC=$ac_cv_prog_ac_ct_CC
2465if test -n "$ac_ct_CC"; then
2466 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2467echo "${ECHO_T}$ac_ct_CC" >&6
2468else
2469 echo "$as_me:$LINENO: result: no" >&5
2470echo "${ECHO_T}no" >&6
2471fi
2472
2473 test -n "$ac_ct_CC" && break
2474done
2475
2476 CC=$ac_ct_CC
2477fi
2478
2479fi
2480
2481
2482test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2483See \`config.log' for more details." >&5
2484echo "$as_me: error: no acceptable C compiler found in \$PATH
2485See \`config.log' for more details." >&2;}
2486 { (exit 1); exit 1; }; }
2487
2488# Provide some information about the compiler.
2489echo "$as_me:$LINENO:" \
2490 "checking for C compiler version" >&5
2491ac_compiler=`set X $ac_compile; echo $2`
2492{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2493 (eval $ac_compiler --version </dev/null >&5) 2>&5
2494 ac_status=$?
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }
2497{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2498 (eval $ac_compiler -v </dev/null >&5) 2>&5
2499 ac_status=$?
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }
2502{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2503 (eval $ac_compiler -V </dev/null >&5) 2>&5
2504 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }
2507
2508cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00002509/* confdefs.h. */
2510_ACEOF
2511cat confdefs.h >>conftest.$ac_ext
2512cat >>conftest.$ac_ext <<_ACEOF
2513/* end confdefs.h. */
2514
2515int
2516main ()
2517{
2518
2519 ;
2520 return 0;
2521}
2522_ACEOF
2523ac_clean_files_save=$ac_clean_files
2524ac_clean_files="$ac_clean_files a.out a.exe b.out"
2525# Try to create an executable without -o first, disregard a.out.
2526# It will help us diagnose broken compilers, and finding out an intuition
2527# of exeext.
Lev Walkin8e8b5482004-06-17 23:42:48 +00002528echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2529echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00002530ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2531if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2532 (eval $ac_link_default) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; then
2536 # Find the output, starting from the most likely. This scheme is
2537# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2538# resort.
2539
2540# Be careful to initialize this variable, since it used to be cached.
2541# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2542ac_cv_exeext=
2543# b.out is created by i960 compilers.
2544for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2545do
2546 test -f "$ac_file" || continue
2547 case $ac_file in
2548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Lev Walkin8e8b5482004-06-17 23:42:48 +00002549 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002550 conftest.$ac_ext )
Lev Walkin8e8b5482004-06-17 23:42:48 +00002551 # This is the source file.
2552 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002553 [ab].out )
Lev Walkin8e8b5482004-06-17 23:42:48 +00002554 # We found the default executable, but exeext='' is most
2555 # certainly right.
2556 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002557 *.* )
Lev Walkin8e8b5482004-06-17 23:42:48 +00002558 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2559 # FIXME: I believe we export ac_cv_exeext for Libtool,
2560 # but it would be cool to find out if it's true. Does anybody
2561 # maintain Libtool? --akim.
2562 export ac_cv_exeext
2563 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002564 * )
Lev Walkin8e8b5482004-06-17 23:42:48 +00002565 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002566 esac
2567done
2568else
2569 echo "$as_me: failed program was:" >&5
2570sed 's/^/| /' conftest.$ac_ext >&5
2571
2572{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2573See \`config.log' for more details." >&5
2574echo "$as_me: error: C compiler cannot create executables
2575See \`config.log' for more details." >&2;}
2576 { (exit 77); exit 77; }; }
2577fi
2578
2579ac_exeext=$ac_cv_exeext
2580echo "$as_me:$LINENO: result: $ac_file" >&5
2581echo "${ECHO_T}$ac_file" >&6
2582
2583# Check the compiler produces executables we can run. If not, either
2584# the compiler is broken, or we cross compile.
2585echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2586echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2587# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2588# If not cross compiling, check that we can run a simple program.
2589if test "$cross_compiling" != yes; then
2590 if { ac_try='./$ac_file'
2591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 (eval $ac_try) 2>&5
2593 ac_status=$?
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; }; then
2596 cross_compiling=no
2597 else
2598 if test "$cross_compiling" = maybe; then
2599 cross_compiling=yes
2600 else
2601 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2602If you meant to cross compile, use \`--host'.
2603See \`config.log' for more details." >&5
2604echo "$as_me: error: cannot run C compiled programs.
2605If you meant to cross compile, use \`--host'.
2606See \`config.log' for more details." >&2;}
2607 { (exit 1); exit 1; }; }
2608 fi
2609 fi
2610fi
2611echo "$as_me:$LINENO: result: yes" >&5
2612echo "${ECHO_T}yes" >&6
2613
2614rm -f a.out a.exe conftest$ac_cv_exeext b.out
2615ac_clean_files=$ac_clean_files_save
2616# Check the compiler produces executables we can run. If not, either
2617# the compiler is broken, or we cross compile.
2618echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2619echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2620echo "$as_me:$LINENO: result: $cross_compiling" >&5
2621echo "${ECHO_T}$cross_compiling" >&6
2622
2623echo "$as_me:$LINENO: checking for suffix of executables" >&5
2624echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2626 (eval $ac_link) 2>&5
2627 ac_status=$?
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; then
2630 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2631# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2632# work properly (i.e., refer to `conftest.exe'), while it won't with
2633# `rm'.
2634for ac_file in conftest.exe conftest conftest.*; do
2635 test -f "$ac_file" || continue
2636 case $ac_file in
2637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2638 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Lev Walkin8e8b5482004-06-17 23:42:48 +00002639 export ac_cv_exeext
2640 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002641 * ) break;;
2642 esac
2643done
2644else
2645 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2646See \`config.log' for more details." >&5
2647echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2648See \`config.log' for more details." >&2;}
2649 { (exit 1); exit 1; }; }
2650fi
2651
2652rm -f conftest$ac_cv_exeext
2653echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2654echo "${ECHO_T}$ac_cv_exeext" >&6
2655
2656rm -f conftest.$ac_ext
2657EXEEXT=$ac_cv_exeext
2658ac_exeext=$EXEEXT
2659echo "$as_me:$LINENO: checking for suffix of object files" >&5
2660echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2661if test "${ac_cv_objext+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2663else
2664 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00002665/* confdefs.h. */
2666_ACEOF
2667cat confdefs.h >>conftest.$ac_ext
2668cat >>conftest.$ac_ext <<_ACEOF
2669/* end confdefs.h. */
2670
2671int
2672main ()
2673{
2674
2675 ;
2676 return 0;
2677}
2678_ACEOF
2679rm -f conftest.o conftest.obj
2680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2681 (eval $ac_compile) 2>&5
2682 ac_status=$?
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; then
2685 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2686 case $ac_file in
2687 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2688 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2689 break;;
2690 esac
2691done
2692else
2693 echo "$as_me: failed program was:" >&5
2694sed 's/^/| /' conftest.$ac_ext >&5
2695
2696{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2697See \`config.log' for more details." >&5
2698echo "$as_me: error: cannot compute suffix of object files: cannot compile
2699See \`config.log' for more details." >&2;}
2700 { (exit 1); exit 1; }; }
2701fi
2702
2703rm -f conftest.$ac_cv_objext conftest.$ac_ext
2704fi
2705echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2706echo "${ECHO_T}$ac_cv_objext" >&6
2707OBJEXT=$ac_cv_objext
2708ac_objext=$OBJEXT
2709echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2710echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2711if test "${ac_cv_c_compiler_gnu+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2713else
2714 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00002715/* confdefs.h. */
2716_ACEOF
2717cat confdefs.h >>conftest.$ac_ext
2718cat >>conftest.$ac_ext <<_ACEOF
2719/* end confdefs.h. */
2720
2721int
2722main ()
2723{
2724#ifndef __GNUC__
2725 choke me
2726#endif
2727
2728 ;
2729 return 0;
2730}
2731_ACEOF
2732rm -f conftest.$ac_objext
2733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00002734 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00002735 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00002736 grep -v '^ *+' conftest.er1 >conftest.err
2737 rm -f conftest.er1
2738 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +00002741 { ac_try='test -z "$ac_c_werror_flag"
2742 || test ! -s conftest.err'
2743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 (eval $ac_try) 2>&5
2745 ac_status=$?
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }; } &&
2748 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +00002749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 (eval $ac_try) 2>&5
2751 ac_status=$?
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; }; then
2754 ac_compiler_gnu=yes
2755else
2756 echo "$as_me: failed program was:" >&5
2757sed 's/^/| /' conftest.$ac_ext >&5
2758
2759ac_compiler_gnu=no
2760fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00002762ac_cv_c_compiler_gnu=$ac_compiler_gnu
2763
2764fi
2765echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2766echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2767GCC=`test $ac_compiler_gnu = yes && echo yes`
2768ac_test_CFLAGS=${CFLAGS+set}
2769ac_save_CFLAGS=$CFLAGS
2770CFLAGS="-g"
2771echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2772echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2773if test "${ac_cv_prog_cc_g+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
2775else
2776 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00002777/* confdefs.h. */
2778_ACEOF
2779cat confdefs.h >>conftest.$ac_ext
2780cat >>conftest.$ac_ext <<_ACEOF
2781/* end confdefs.h. */
2782
2783int
2784main ()
2785{
2786
2787 ;
2788 return 0;
2789}
2790_ACEOF
2791rm -f conftest.$ac_objext
2792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00002793 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00002794 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00002795 grep -v '^ *+' conftest.er1 >conftest.err
2796 rm -f conftest.er1
2797 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +00002800 { ac_try='test -z "$ac_c_werror_flag"
2801 || test ! -s conftest.err'
2802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 (eval $ac_try) 2>&5
2804 ac_status=$?
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }; } &&
2807 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +00002808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 (eval $ac_try) 2>&5
2810 ac_status=$?
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; }; then
2813 ac_cv_prog_cc_g=yes
2814else
2815 echo "$as_me: failed program was:" >&5
2816sed 's/^/| /' conftest.$ac_ext >&5
2817
2818ac_cv_prog_cc_g=no
2819fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00002821fi
2822echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2823echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2824if test "$ac_test_CFLAGS" = set; then
2825 CFLAGS=$ac_save_CFLAGS
2826elif test $ac_cv_prog_cc_g = yes; then
2827 if test "$GCC" = yes; then
2828 CFLAGS="-g -O2"
2829 else
2830 CFLAGS="-g"
2831 fi
2832else
2833 if test "$GCC" = yes; then
2834 CFLAGS="-O2"
2835 else
2836 CFLAGS=
2837 fi
2838fi
2839echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2840echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2841if test "${ac_cv_prog_cc_stdc+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2843else
2844 ac_cv_prog_cc_stdc=no
2845ac_save_CC=$CC
2846cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00002847/* confdefs.h. */
2848_ACEOF
2849cat confdefs.h >>conftest.$ac_ext
2850cat >>conftest.$ac_ext <<_ACEOF
2851/* end confdefs.h. */
2852#include <stdarg.h>
2853#include <stdio.h>
2854#include <sys/types.h>
2855#include <sys/stat.h>
2856/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2857struct buf { int x; };
2858FILE * (*rcsopen) (struct buf *, struct stat *, int);
2859static char *e (p, i)
2860 char **p;
2861 int i;
2862{
2863 return p[i];
2864}
2865static char *f (char * (*g) (char **, int), char **p, ...)
2866{
2867 char *s;
2868 va_list v;
2869 va_start (v,p);
2870 s = g (p, va_arg (v,int));
2871 va_end (v);
2872 return s;
2873}
Lev Walkin8e8b5482004-06-17 23:42:48 +00002874
2875/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2876 function prototypes and stuff, but not '\xHH' hex character constants.
2877 These don't provoke an error unfortunately, instead are silently treated
2878 as 'x'. The following induces an error, until -std1 is added to get
2879 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2880 array size at least. It's necessary to write '\x00'==0 to get something
2881 that's true only with -std1. */
2882int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2883
Lev Walkinf15320b2004-06-03 03:38:44 +00002884int test (int i, double x);
2885struct s1 {int (*f) (int a);};
2886struct s2 {int (*f) (double a);};
2887int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2888int argc;
2889char **argv;
2890int
2891main ()
2892{
2893return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2894 ;
2895 return 0;
2896}
2897_ACEOF
2898# Don't try gcc -ansi; that turns off useful extensions and
2899# breaks some systems' header files.
2900# AIX -qlanglvl=ansi
2901# Ultrix and OSF/1 -std1
2902# HP-UX 10.20 and later -Ae
2903# HP-UX older versions -Aa -D_HPUX_SOURCE
2904# SVR4 -Xc -D__EXTENSIONS__
2905for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2906do
2907 CC="$ac_save_CC $ac_arg"
2908 rm -f conftest.$ac_objext
2909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00002910 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00002911 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00002912 grep -v '^ *+' conftest.er1 >conftest.err
2913 rm -f conftest.er1
2914 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +00002917 { ac_try='test -z "$ac_c_werror_flag"
2918 || test ! -s conftest.err'
2919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920 (eval $ac_try) 2>&5
2921 ac_status=$?
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); }; } &&
2924 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +00002925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926 (eval $ac_try) 2>&5
2927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; }; then
2930 ac_cv_prog_cc_stdc=$ac_arg
2931break
2932else
2933 echo "$as_me: failed program was:" >&5
2934sed 's/^/| /' conftest.$ac_ext >&5
2935
2936fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002937rm -f conftest.err conftest.$ac_objext
Lev Walkinf15320b2004-06-03 03:38:44 +00002938done
2939rm -f conftest.$ac_ext conftest.$ac_objext
2940CC=$ac_save_CC
2941
2942fi
2943
2944case "x$ac_cv_prog_cc_stdc" in
2945 x|xno)
2946 echo "$as_me:$LINENO: result: none needed" >&5
2947echo "${ECHO_T}none needed" >&6 ;;
2948 *)
2949 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2950echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2951 CC="$CC $ac_cv_prog_cc_stdc" ;;
2952esac
2953
2954# Some people use a C++ compiler to compile C. Since we use `exit',
2955# in C++ we need to declare it. In case someone uses the same compiler
2956# for both compiling C and C++ we need to have the C++ compiler decide
2957# the declaration of exit, since it's the most demanding environment.
2958cat >conftest.$ac_ext <<_ACEOF
2959#ifndef __cplusplus
2960 choke me
2961#endif
2962_ACEOF
2963rm -f conftest.$ac_objext
2964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00002965 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00002966 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00002967 grep -v '^ *+' conftest.er1 >conftest.err
2968 rm -f conftest.er1
2969 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +00002972 { ac_try='test -z "$ac_c_werror_flag"
2973 || test ! -s conftest.err'
2974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975 (eval $ac_try) 2>&5
2976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; } &&
2979 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +00002980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981 (eval $ac_try) 2>&5
2982 ac_status=$?
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; }; then
2985 for ac_declaration in \
Lev Walkin8e8b5482004-06-17 23:42:48 +00002986 '' \
Lev Walkinf15320b2004-06-03 03:38:44 +00002987 'extern "C" void std::exit (int) throw (); using std::exit;' \
2988 'extern "C" void std::exit (int); using std::exit;' \
2989 'extern "C" void exit (int) throw ();' \
2990 'extern "C" void exit (int);' \
2991 'void exit (int);'
2992do
2993 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00002994/* confdefs.h. */
2995_ACEOF
2996cat confdefs.h >>conftest.$ac_ext
2997cat >>conftest.$ac_ext <<_ACEOF
2998/* end confdefs.h. */
Lev Walkinf15320b2004-06-03 03:38:44 +00002999$ac_declaration
Lev Walkin8e8b5482004-06-17 23:42:48 +00003000#include <stdlib.h>
Lev Walkinf15320b2004-06-03 03:38:44 +00003001int
3002main ()
3003{
3004exit (42);
3005 ;
3006 return 0;
3007}
3008_ACEOF
3009rm -f conftest.$ac_objext
3010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00003011 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00003012 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00003013 grep -v '^ *+' conftest.er1 >conftest.err
3014 rm -f conftest.er1
3015 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +00003018 { ac_try='test -z "$ac_c_werror_flag"
3019 || test ! -s conftest.err'
3020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3021 (eval $ac_try) 2>&5
3022 ac_status=$?
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }; } &&
3025 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +00003026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027 (eval $ac_try) 2>&5
3028 ac_status=$?
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }; }; then
3031 :
3032else
3033 echo "$as_me: failed program was:" >&5
3034sed 's/^/| /' conftest.$ac_ext >&5
3035
3036continue
3037fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00003038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003039 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00003040/* confdefs.h. */
3041_ACEOF
3042cat confdefs.h >>conftest.$ac_ext
3043cat >>conftest.$ac_ext <<_ACEOF
3044/* end confdefs.h. */
3045$ac_declaration
3046int
3047main ()
3048{
3049exit (42);
3050 ;
3051 return 0;
3052}
3053_ACEOF
3054rm -f conftest.$ac_objext
3055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00003056 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00003057 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00003058 grep -v '^ *+' conftest.er1 >conftest.err
3059 rm -f conftest.er1
3060 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +00003063 { ac_try='test -z "$ac_c_werror_flag"
3064 || test ! -s conftest.err'
3065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066 (eval $ac_try) 2>&5
3067 ac_status=$?
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; } &&
3070 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +00003071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072 (eval $ac_try) 2>&5
3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; }; then
3076 break
3077else
3078 echo "$as_me: failed program was:" >&5
3079sed 's/^/| /' conftest.$ac_ext >&5
3080
3081fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00003082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003083done
3084rm -f conftest*
3085if test -n "$ac_declaration"; then
3086 echo '#ifdef __cplusplus' >>confdefs.h
3087 echo $ac_declaration >>confdefs.h
3088 echo '#endif' >>confdefs.h
3089fi
3090
3091else
3092 echo "$as_me: failed program was:" >&5
3093sed 's/^/| /' conftest.$ac_ext >&5
3094
3095fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00003096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003097ac_ext=c
3098ac_cpp='$CPP $CPPFLAGS'
3099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3101ac_compiler_gnu=$ac_cv_c_compiler_gnu
3102
3103depcc="$CC" am_compiler_list=
3104
3105echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3106echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3107if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3109else
3110 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3111 # We make a subdir and do the tests there. Otherwise we can end up
3112 # making bogus files that we don't know about and never remove. For
3113 # instance it was reported that on HP-UX the gcc test will end up
3114 # making a dummy file named `D' -- because `-MD' means `put the output
3115 # in D'.
3116 mkdir conftest.dir
3117 # Copy depcomp to subdir because otherwise we won't find it if we're
3118 # using a relative directory.
3119 cp "$am_depcomp" conftest.dir
3120 cd conftest.dir
Lev Walkin8e8b5482004-06-17 23:42:48 +00003121 # We will build objects and dependencies in a subdirectory because
3122 # it helps to detect inapplicable dependency modes. For instance
3123 # both Tru64's cc and ICC support -MD to output dependencies as a
3124 # side effect of compilation, but ICC will put the dependencies in
3125 # the current directory while Tru64 will put them in the object
3126 # directory.
3127 mkdir sub
Lev Walkinf15320b2004-06-03 03:38:44 +00003128
3129 am_cv_CC_dependencies_compiler_type=none
3130 if test "$am_compiler_list" = ""; then
3131 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3132 fi
3133 for depmode in $am_compiler_list; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00003134 # Setup a source with many dependencies, because some compilers
3135 # like to wrap large dependency lists on column 80 (with \), and
3136 # we should not choose a depcomp mode which is confused by this.
3137 #
Lev Walkinf15320b2004-06-03 03:38:44 +00003138 # We need to recreate these files for each test, as the compiler may
3139 # overwrite some of them when testing with obscure command lines.
3140 # This happens at least with the AIX C compiler.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003141 : > sub/conftest.c
3142 for i in 1 2 3 4 5 6; do
3143 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3144 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3145 # Solaris 8's {/usr,}/bin/sh.
3146 touch sub/conftst$i.h
3147 done
3148 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Lev Walkinf15320b2004-06-03 03:38:44 +00003149
3150 case $depmode in
3151 nosideeffect)
3152 # after this tag, mechanisms are not by side-effect, so they'll
3153 # only be used when explicitly requested
3154 if test "x$enable_dependency_tracking" = xyes; then
3155 continue
3156 else
3157 break
3158 fi
3159 ;;
3160 none) break ;;
3161 esac
3162 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3163 # mode. It turns out that the SunPro C++ compiler does not properly
3164 # handle `-M -o', and we need to detect this.
3165 if depmode=$depmode \
Lev Walkin8e8b5482004-06-17 23:42:48 +00003166 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3167 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3168 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3169 >/dev/null 2>conftest.err &&
3170 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3171 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinf15320b2004-06-03 03:38:44 +00003172 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00003173 # icc doesn't choke on unknown options, it will just issue warnings
3174 # or remarks (even with -Werror). So we grep stderr for any message
3175 # that says an option was ignored or not supported.
3176 # When given -MP, icc 7.0 and 7.1 complain thusly:
3177 # icc: Command line warning: ignoring option '-M'; no argument required
3178 # The diagnosis changed in icc 8.0:
3179 # icc: Command line remark: option '-MP' not supported
3180 if (grep 'ignoring option' conftest.err ||
3181 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3182 am_cv_CC_dependencies_compiler_type=$depmode
3183 break
3184 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003185 fi
3186 done
3187
3188 cd ..
3189 rm -rf conftest.dir
3190else
3191 am_cv_CC_dependencies_compiler_type=none
3192fi
3193
3194fi
3195echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3196echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00003197CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3198
3199
3200
3201if
3202 test "x$enable_dependency_tracking" != xno \
3203 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3204 am__fastdepCC_TRUE=
3205 am__fastdepCC_FALSE='#'
3206else
3207 am__fastdepCC_TRUE='#'
3208 am__fastdepCC_FALSE=
3209fi
3210
3211
3212echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3213echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3214if test "${lt_cv_path_SED+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3216else
3217 # Loop through the user's path and test for sed and gsed.
3218# Then use that list of sed's as ones to test for truncation.
3219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220for as_dir in $PATH
3221do
3222 IFS=$as_save_IFS
3223 test -z "$as_dir" && as_dir=.
3224 for lt_ac_prog in sed gsed; do
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3227 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3228 fi
3229 done
3230 done
3231done
3232lt_ac_max=0
3233lt_ac_count=0
3234# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3235# along with /bin/sed that truncates output.
3236for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3237 test ! -f $lt_ac_sed && break
3238 cat /dev/null > conftest.in
3239 lt_ac_count=0
3240 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3241 # Check for GNU sed and select it if it is found.
3242 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3243 lt_cv_path_SED=$lt_ac_sed
3244 break
3245 fi
3246 while true; do
3247 cat conftest.in conftest.in >conftest.tmp
3248 mv conftest.tmp conftest.in
3249 cp conftest.in conftest.nl
3250 echo >>conftest.nl
3251 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3252 cmp -s conftest.out conftest.nl || break
3253 # 10000 chars as input seems more than enough
3254 test $lt_ac_count -gt 10 && break
3255 lt_ac_count=`expr $lt_ac_count + 1`
3256 if test $lt_ac_count -gt $lt_ac_max; then
3257 lt_ac_max=$lt_ac_count
3258 lt_cv_path_SED=$lt_ac_sed
3259 fi
3260 done
3261done
3262SED=$lt_cv_path_SED
3263
3264fi
3265
3266echo "$as_me:$LINENO: result: $SED" >&5
3267echo "${ECHO_T}$SED" >&6
3268
3269echo "$as_me:$LINENO: checking for egrep" >&5
3270echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3271if test "${ac_cv_prog_egrep+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3273else
3274 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3275 then ac_cv_prog_egrep='grep -E'
3276 else ac_cv_prog_egrep='egrep'
3277 fi
3278fi
3279echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3280echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3281 EGREP=$ac_cv_prog_egrep
Lev Walkinf15320b2004-06-03 03:38:44 +00003282
3283
3284
3285# Check whether --with-gnu-ld or --without-gnu-ld was given.
3286if test "${with_gnu_ld+set}" = set; then
3287 withval="$with_gnu_ld"
3288 test "$withval" = no || with_gnu_ld=yes
3289else
3290 with_gnu_ld=no
3291fi;
3292ac_prog=ld
Lev Walkin8e8b5482004-06-17 23:42:48 +00003293if test "$GCC" = yes; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003294 # Check if gcc -print-prog-name=ld gives a path.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003295 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3296echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3297 case $host in
3298 *-*-mingw*)
3299 # gcc leaves a trailing carriage return which upsets mingw
3300 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3301 *)
3302 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3303 esac
3304 case $ac_prog in
Lev Walkinf15320b2004-06-03 03:38:44 +00003305 # Accept absolute paths.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003306 [\\/]* | ?:[\\/]*)
Lev Walkinf15320b2004-06-03 03:38:44 +00003307 re_direlt='/[^/][^/]*/\.\./'
Lev Walkin8e8b5482004-06-17 23:42:48 +00003308 # Canonicalize the pathname of ld
3309 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
Lev Walkinf15320b2004-06-03 03:38:44 +00003310 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00003311 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
Lev Walkinf15320b2004-06-03 03:38:44 +00003312 done
3313 test -z "$LD" && LD="$ac_prog"
3314 ;;
3315 "")
3316 # If it fails, then pretend we aren't using GCC.
3317 ac_prog=ld
3318 ;;
3319 *)
3320 # If it is relative, then search for the first ld in PATH.
3321 with_gnu_ld=unknown
3322 ;;
3323 esac
3324elif test "$with_gnu_ld" = yes; then
3325 echo "$as_me:$LINENO: checking for GNU ld" >&5
3326echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3327else
3328 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3329echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3330fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00003331if test "${lt_cv_path_LD+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003332 echo $ECHO_N "(cached) $ECHO_C" >&6
3333else
3334 if test -z "$LD"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00003335 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +00003336 for ac_dir in $PATH; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00003337 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00003338 test -z "$ac_dir" && ac_dir=.
3339 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00003340 lt_cv_path_LD="$ac_dir/$ac_prog"
Lev Walkinf15320b2004-06-03 03:38:44 +00003341 # Check to see if the program is GNU ld. I'd rather use --version,
3342 # but apparently some GNU ld's only accept -v.
3343 # Break only if it was the GNU/non-GNU ld that we prefer.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003344 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3345 *GNU* | *'with BFD'*)
Lev Walkinf15320b2004-06-03 03:38:44 +00003346 test "$with_gnu_ld" != no && break
Lev Walkin8e8b5482004-06-17 23:42:48 +00003347 ;;
3348 *)
Lev Walkinf15320b2004-06-03 03:38:44 +00003349 test "$with_gnu_ld" != yes && break
Lev Walkin8e8b5482004-06-17 23:42:48 +00003350 ;;
3351 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00003352 fi
3353 done
Lev Walkin8e8b5482004-06-17 23:42:48 +00003354 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00003355else
Lev Walkin8e8b5482004-06-17 23:42:48 +00003356 lt_cv_path_LD="$LD" # Let the user override the test with a path.
Lev Walkinf15320b2004-06-03 03:38:44 +00003357fi
3358fi
3359
Lev Walkin8e8b5482004-06-17 23:42:48 +00003360LD="$lt_cv_path_LD"
Lev Walkinf15320b2004-06-03 03:38:44 +00003361if test -n "$LD"; then
3362 echo "$as_me:$LINENO: result: $LD" >&5
3363echo "${ECHO_T}$LD" >&6
3364else
3365 echo "$as_me:$LINENO: result: no" >&5
3366echo "${ECHO_T}no" >&6
3367fi
3368test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3369echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3370 { (exit 1); exit 1; }; }
3371echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3372echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00003373if test "${lt_cv_prog_gnu_ld+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375else
3376 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003377case `$LD -v 2>&1 </dev/null` in
3378*GNU* | *'with BFD'*)
3379 lt_cv_prog_gnu_ld=yes
3380 ;;
3381*)
3382 lt_cv_prog_gnu_ld=no
3383 ;;
3384esac
Lev Walkinf15320b2004-06-03 03:38:44 +00003385fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00003386echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3387echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3388with_gnu_ld=$lt_cv_prog_gnu_ld
Lev Walkinf15320b2004-06-03 03:38:44 +00003389
3390
Lev Walkin8e8b5482004-06-17 23:42:48 +00003391echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3392echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3393if test "${lt_cv_ld_reload_flag+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3395else
3396 lt_cv_ld_reload_flag='-r'
3397fi
3398echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3399echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3400reload_flag=$lt_cv_ld_reload_flag
3401case $reload_flag in
3402"" | " "*) ;;
3403*) reload_flag=" $reload_flag" ;;
3404esac
3405reload_cmds='$LD$reload_flag -o $output$reload_objs'
3406
Lev Walkinf15320b2004-06-03 03:38:44 +00003407echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3408echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00003409if test "${lt_cv_path_NM+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003410 echo $ECHO_N "(cached) $ECHO_C" >&6
3411else
3412 if test -n "$NM"; then
3413 # Let the user override the test.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003414 lt_cv_path_NM="$NM"
Lev Walkinf15320b2004-06-03 03:38:44 +00003415else
Lev Walkin8e8b5482004-06-17 23:42:48 +00003416 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +00003417 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00003418 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00003419 test -z "$ac_dir" && ac_dir=.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003420 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3421 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003422 # Check to see if the nm accepts a BSD-compat flag.
3423 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3424 # nm: unknown option "B" ignored
Lev Walkin8e8b5482004-06-17 23:42:48 +00003425 # Tru64's nm complains that /dev/null is an invalid object file
3426 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3427 */dev/null* | *'Invalid file or object type'*)
3428 lt_cv_path_NM="$tmp_nm -B"
Lev Walkinf15320b2004-06-03 03:38:44 +00003429 break
Lev Walkin8e8b5482004-06-17 23:42:48 +00003430 ;;
3431 *)
3432 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3433 */dev/null*)
3434 lt_cv_path_NM="$tmp_nm -p"
3435 break
3436 ;;
3437 *)
3438 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3439 continue # so that we can try to find one that supports BSD flags
3440 ;;
3441 esac
3442 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00003443 fi
3444 done
Lev Walkin8e8b5482004-06-17 23:42:48 +00003445 IFS="$lt_save_ifs"
3446 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
Lev Walkinf15320b2004-06-03 03:38:44 +00003447fi
3448fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00003449echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3450echo "${ECHO_T}$lt_cv_path_NM" >&6
3451NM="$lt_cv_path_NM"
Lev Walkinf15320b2004-06-03 03:38:44 +00003452
3453echo "$as_me:$LINENO: checking whether ln -s works" >&5
3454echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3455LN_S=$as_ln_s
3456if test "$LN_S" = "ln -s"; then
3457 echo "$as_me:$LINENO: result: yes" >&5
3458echo "${ECHO_T}yes" >&6
3459else
3460 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3461echo "${ECHO_T}no, using $LN_S" >&6
3462fi
3463
Lev Walkin8e8b5482004-06-17 23:42:48 +00003464echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3465echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3466if test "${lt_cv_deplibs_check_method+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3468else
3469 lt_cv_file_magic_cmd='$MAGIC_CMD'
3470lt_cv_file_magic_test_file=
3471lt_cv_deplibs_check_method='unknown'
3472# Need to set the preceding variable on all platforms that support
3473# interlibrary dependencies.
3474# 'none' -- dependencies not supported.
3475# `unknown' -- same as none, but documents that we really don't know.
3476# 'pass_all' -- all dependencies passed with no checks.
3477# 'test_compile' -- check by making test program.
3478# 'file_magic [[regex]]' -- check by looking for files in library path
3479# which responds to the $file_magic_cmd with a given extended regex.
3480# If you have `file' or equivalent on your system and you're not sure
3481# whether `pass_all' will *always* work, you probably want this one.
Lev Walkinf15320b2004-06-03 03:38:44 +00003482
Lev Walkin8e8b5482004-06-17 23:42:48 +00003483case $host_os in
3484aix4* | aix5*)
3485 lt_cv_deplibs_check_method=pass_all
3486 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003487
Lev Walkin8e8b5482004-06-17 23:42:48 +00003488beos*)
3489 lt_cv_deplibs_check_method=pass_all
3490 ;;
3491
3492bsdi4*)
3493 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3494 lt_cv_file_magic_cmd='/usr/bin/file -L'
3495 lt_cv_file_magic_test_file=/shlib/libc.so
3496 ;;
3497
3498cygwin*)
3499 # func_win32_libid is a shell function defined in ltmain.sh
3500 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3501 lt_cv_file_magic_cmd='func_win32_libid'
3502 ;;
3503
3504mingw* | pw32*)
3505 # Base MSYS/MinGW do not provide the 'file' command needed by
3506 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3507 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3508 lt_cv_file_magic_cmd='$OBJDUMP -f'
3509 ;;
3510
3511darwin* | rhapsody*)
3512 lt_cv_deplibs_check_method=pass_all
3513 ;;
3514
3515freebsd* | kfreebsd*-gnu)
3516 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3517 case $host_cpu in
3518 i*86 )
3519 # Not sure whether the presence of OpenBSD here was a mistake.
3520 # Let's accept both of them until this is cleared up.
3521 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3522 lt_cv_file_magic_cmd=/usr/bin/file
3523 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3524 ;;
3525 esac
3526 else
3527 lt_cv_deplibs_check_method=pass_all
3528 fi
3529 ;;
3530
3531gnu*)
3532 lt_cv_deplibs_check_method=pass_all
3533 ;;
3534
3535hpux10.20* | hpux11*)
3536 lt_cv_file_magic_cmd=/usr/bin/file
3537 case "$host_cpu" in
3538 ia64*)
3539 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3540 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3541 ;;
3542 hppa*64*)
3543 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]'
3544 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3545 ;;
3546 *)
3547 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3548 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3549 ;;
3550 esac
3551 ;;
3552
3553irix5* | irix6* | nonstopux*)
3554 case $LD in
3555 *-32|*"-32 ") libmagic=32-bit;;
3556 *-n32|*"-n32 ") libmagic=N32;;
3557 *-64|*"-64 ") libmagic=64-bit;;
3558 *) libmagic=never-match;;
3559 esac
3560 lt_cv_deplibs_check_method=pass_all
3561 ;;
3562
3563# This must be Linux ELF.
3564linux*)
3565 case $host_cpu in
3566 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
3567 lt_cv_deplibs_check_method=pass_all ;;
3568 *)
3569 # glibc up to 2.1.1 does not perform some relocations on ARM
3570 # this will be overridden with pass_all, but let us keep it just in case
3571 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3572 esac
3573 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3574 lt_cv_deplibs_check_method=pass_all
3575 ;;
3576
3577netbsd*)
3578 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3580 else
3581 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3582 fi
3583 ;;
3584
3585newos6*)
3586 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3587 lt_cv_file_magic_cmd=/usr/bin/file
3588 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3589 ;;
3590
3591nto-qnx*)
3592 lt_cv_deplibs_check_method=unknown
3593 ;;
3594
3595openbsd*)
3596 lt_cv_file_magic_cmd=/usr/bin/file
3597 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3598 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3599 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3600 else
3601 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3602 fi
3603 ;;
3604
3605osf3* | osf4* | osf5*)
3606 lt_cv_deplibs_check_method=pass_all
3607 ;;
3608
3609sco3.2v5*)
3610 lt_cv_deplibs_check_method=pass_all
3611 ;;
3612
3613solaris*)
3614 lt_cv_deplibs_check_method=pass_all
3615 ;;
3616
3617sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3618 case $host_vendor in
3619 motorola)
3620 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]'
3621 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3622 ;;
3623 ncr)
3624 lt_cv_deplibs_check_method=pass_all
3625 ;;
3626 sequent)
3627 lt_cv_file_magic_cmd='/bin/file'
3628 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3629 ;;
3630 sni)
3631 lt_cv_file_magic_cmd='/bin/file'
3632 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3633 lt_cv_file_magic_test_file=/lib/libc.so
3634 ;;
3635 siemens)
3636 lt_cv_deplibs_check_method=pass_all
3637 ;;
3638 esac
3639 ;;
3640
3641sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3642 lt_cv_deplibs_check_method=pass_all
3643 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003644esac
3645
Lev Walkin8e8b5482004-06-17 23:42:48 +00003646fi
3647echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3648echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3649file_magic_cmd=$lt_cv_file_magic_cmd
3650deplibs_check_method=$lt_cv_deplibs_check_method
3651test -z "$deplibs_check_method" && deplibs_check_method=unknown
3652
3653
3654
3655
3656# If no C compiler was specified, use CC.
3657LTCC=${LTCC-"$CC"}
3658
3659# Allow CC to be a program name with arguments.
3660compiler=$CC
Lev Walkinf15320b2004-06-03 03:38:44 +00003661
3662
3663# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3664if test "${enable_libtool_lock+set}" = set; then
3665 enableval="$enable_libtool_lock"
3666
3667fi;
Lev Walkin8e8b5482004-06-17 23:42:48 +00003668test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00003669
3670# Some flags need to be propagated to the compiler or linker for good
3671# libtool support.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003672case $host in
3673ia64-*-hpux*)
Lev Walkinf15320b2004-06-03 03:38:44 +00003674 # Find out which ABI we are using.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003675 echo 'int i;' > conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3677 (eval $ac_compile) 2>&5
3678 ac_status=$?
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00003681 case `/usr/bin/file conftest.$ac_objext` in
3682 *ELF-32*)
3683 HPUX_IA64_MODE="32"
3684 ;;
3685 *ELF-64*)
3686 HPUX_IA64_MODE="64"
3687 ;;
3688 esac
3689 fi
3690 rm -rf conftest*
3691 ;;
3692*-*-irix6*)
3693 # Find out which ABI we are using.
Lev Walkin33cded12004-09-19 19:40:52 +00003694 echo '#line 3694 "configure"' > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00003695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3696 (eval $ac_compile) 2>&5
3697 ac_status=$?
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; then
3700 if test "$lt_cv_prog_gnu_ld" = yes; then
3701 case `/usr/bin/file conftest.$ac_objext` in
3702 *32-bit*)
3703 LD="${LD-ld} -melf32bsmip"
3704 ;;
3705 *N32*)
3706 LD="${LD-ld} -melf32bmipn32"
3707 ;;
3708 *64-bit*)
3709 LD="${LD-ld} -melf64bmip"
3710 ;;
3711 esac
3712 else
3713 case `/usr/bin/file conftest.$ac_objext` in
Lev Walkinf15320b2004-06-03 03:38:44 +00003714 *32-bit*)
3715 LD="${LD-ld} -32"
3716 ;;
3717 *N32*)
3718 LD="${LD-ld} -n32"
3719 ;;
3720 *64-bit*)
3721 LD="${LD-ld} -64"
3722 ;;
3723 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00003724 fi
3725 fi
3726 rm -rf conftest*
3727 ;;
3728
3729x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3730 # Find out which ABI we are using.
3731 echo 'int i;' > conftest.$ac_ext
3732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3733 (eval $ac_compile) 2>&5
3734 ac_status=$?
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }; then
3737 case "`/usr/bin/file conftest.o`" in
3738 *32-bit*)
3739 case $host in
3740 x86_64-*linux*)
3741 LD="${LD-ld} -m elf_i386"
3742 ;;
3743 ppc64-*linux*|powerpc64-*linux*)
3744 LD="${LD-ld} -m elf32ppclinux"
3745 ;;
3746 s390x-*linux*)
3747 LD="${LD-ld} -m elf_s390"
3748 ;;
3749 sparc64-*linux*)
3750 LD="${LD-ld} -m elf32_sparc"
3751 ;;
3752 esac
3753 ;;
3754 *64-bit*)
3755 case $host in
3756 x86_64-*linux*)
3757 LD="${LD-ld} -m elf_x86_64"
3758 ;;
3759 ppc*-*linux*|powerpc*-*linux*)
3760 LD="${LD-ld} -m elf64ppc"
3761 ;;
3762 s390*-*linux*)
3763 LD="${LD-ld} -m elf64_s390"
3764 ;;
3765 sparc*-*linux*)
3766 LD="${LD-ld} -m elf64_sparc"
3767 ;;
3768 esac
3769 ;;
3770 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00003771 fi
3772 rm -rf conftest*
3773 ;;
3774
3775*-*-sco3.2v5*)
3776 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3777 SAVE_CFLAGS="$CFLAGS"
3778 CFLAGS="$CFLAGS -belf"
3779 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3780echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3781if test "${lt_cv_cc_needs_belf+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3783else
Lev Walkin8e8b5482004-06-17 23:42:48 +00003784 ac_ext=c
3785ac_cpp='$CPP $CPPFLAGS'
3786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3788ac_compiler_gnu=$ac_cv_c_compiler_gnu
3789
3790 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00003791/* confdefs.h. */
3792_ACEOF
3793cat confdefs.h >>conftest.$ac_ext
3794cat >>conftest.$ac_ext <<_ACEOF
3795/* end confdefs.h. */
3796
3797int
3798main ()
3799{
3800
3801 ;
3802 return 0;
3803}
3804_ACEOF
3805rm -f conftest.$ac_objext conftest$ac_exeext
3806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00003807 (eval $ac_link) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00003808 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00003809 grep -v '^ *+' conftest.er1 >conftest.err
3810 rm -f conftest.er1
3811 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +00003814 { ac_try='test -z "$ac_c_werror_flag"
3815 || test ! -s conftest.err'
3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817 (eval $ac_try) 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; } &&
3821 { ac_try='test -s conftest$ac_exeext'
Lev Walkinf15320b2004-06-03 03:38:44 +00003822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823 (eval $ac_try) 2>&5
3824 ac_status=$?
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; }; then
3827 lt_cv_cc_needs_belf=yes
3828else
3829 echo "$as_me: failed program was:" >&5
3830sed 's/^/| /' conftest.$ac_ext >&5
3831
3832lt_cv_cc_needs_belf=no
3833fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00003834rm -f conftest.err conftest.$ac_objext \
3835 conftest$ac_exeext conftest.$ac_ext
3836 ac_ext=c
3837ac_cpp='$CPP $CPPFLAGS'
3838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3840ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841
Lev Walkinf15320b2004-06-03 03:38:44 +00003842fi
3843echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3844echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3845 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3846 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3847 CFLAGS="$SAVE_CFLAGS"
3848 fi
3849 ;;
3850
Lev Walkinf15320b2004-06-03 03:38:44 +00003851esac
3852
Lev Walkin8e8b5482004-06-17 23:42:48 +00003853need_locks="$enable_libtool_lock"
Lev Walkinf15320b2004-06-03 03:38:44 +00003854
Lev Walkinf15320b2004-06-03 03:38:44 +00003855
Lev Walkin8e8b5482004-06-17 23:42:48 +00003856ac_ext=c
3857ac_cpp='$CPP $CPPFLAGS'
3858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860ac_compiler_gnu=$ac_cv_c_compiler_gnu
3861echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3862echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3863# On Suns, sometimes $CPP names a directory.
3864if test -n "$CPP" && test -d "$CPP"; then
3865 CPP=
Lev Walkinf15320b2004-06-03 03:38:44 +00003866fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00003867if test -z "$CPP"; then
3868 if test "${ac_cv_prog_CPP+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870else
3871 # Double quotes because CPP needs to be expanded
3872 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3873 do
3874 ac_preproc_ok=false
3875for ac_c_preproc_warn_flag in '' yes
3876do
3877 # Use a header file that comes with gcc, so configuring glibc
3878 # with a fresh cross-compiler works.
3879 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3880 # <limits.h> exists even on freestanding compilers.
3881 # On the NeXT, cc -E runs the code through the compiler's parser,
3882 # not just through cpp. "Syntax error" is here to catch this case.
3883 cat >conftest.$ac_ext <<_ACEOF
3884/* confdefs.h. */
3885_ACEOF
3886cat confdefs.h >>conftest.$ac_ext
3887cat >>conftest.$ac_ext <<_ACEOF
3888/* end confdefs.h. */
3889#ifdef __STDC__
3890# include <limits.h>
3891#else
3892# include <assert.h>
3893#endif
3894 Syntax error
3895_ACEOF
3896if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3898 ac_status=$?
3899 grep -v '^ *+' conftest.er1 >conftest.err
3900 rm -f conftest.er1
3901 cat conftest.err >&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); } >/dev/null; then
3904 if test -s conftest.err; then
3905 ac_cpp_err=$ac_c_preproc_warn_flag
3906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3907 else
3908 ac_cpp_err=
Lev Walkinf15320b2004-06-03 03:38:44 +00003909 fi
3910else
Lev Walkin8e8b5482004-06-17 23:42:48 +00003911 ac_cpp_err=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00003912fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00003913if test -z "$ac_cpp_err"; then
3914 :
3915else
3916 echo "$as_me: failed program was:" >&5
3917sed 's/^/| /' conftest.$ac_ext >&5
3918
3919 # Broken: fails on valid input.
3920continue
3921fi
3922rm -f conftest.err conftest.$ac_ext
3923
3924 # OK, works on sane cases. Now check whether non-existent headers
3925 # can be detected and how.
3926 cat >conftest.$ac_ext <<_ACEOF
3927/* confdefs.h. */
3928_ACEOF
3929cat confdefs.h >>conftest.$ac_ext
3930cat >>conftest.$ac_ext <<_ACEOF
3931/* end confdefs.h. */
3932#include <ac_nonexistent.h>
3933_ACEOF
3934if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3936 ac_status=$?
3937 grep -v '^ *+' conftest.er1 >conftest.err
3938 rm -f conftest.er1
3939 cat conftest.err >&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } >/dev/null; then
3942 if test -s conftest.err; then
3943 ac_cpp_err=$ac_c_preproc_warn_flag
3944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3945 else
3946 ac_cpp_err=
3947 fi
3948else
3949 ac_cpp_err=yes
3950fi
3951if test -z "$ac_cpp_err"; then
3952 # Broken: success on invalid input.
3953continue
3954else
3955 echo "$as_me: failed program was:" >&5
3956sed 's/^/| /' conftest.$ac_ext >&5
3957
3958 # Passes both tests.
3959ac_preproc_ok=:
3960break
3961fi
3962rm -f conftest.err conftest.$ac_ext
3963
3964done
3965# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3966rm -f conftest.err conftest.$ac_ext
3967if $ac_preproc_ok; then
3968 break
3969fi
3970
3971 done
3972 ac_cv_prog_CPP=$CPP
3973
3974fi
3975 CPP=$ac_cv_prog_CPP
3976else
3977 ac_cv_prog_CPP=$CPP
3978fi
3979echo "$as_me:$LINENO: result: $CPP" >&5
3980echo "${ECHO_T}$CPP" >&6
3981ac_preproc_ok=false
3982for ac_c_preproc_warn_flag in '' yes
3983do
3984 # Use a header file that comes with gcc, so configuring glibc
3985 # with a fresh cross-compiler works.
3986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3987 # <limits.h> exists even on freestanding compilers.
3988 # On the NeXT, cc -E runs the code through the compiler's parser,
3989 # not just through cpp. "Syntax error" is here to catch this case.
3990 cat >conftest.$ac_ext <<_ACEOF
3991/* confdefs.h. */
3992_ACEOF
3993cat confdefs.h >>conftest.$ac_ext
3994cat >>conftest.$ac_ext <<_ACEOF
3995/* end confdefs.h. */
3996#ifdef __STDC__
3997# include <limits.h>
3998#else
3999# include <assert.h>
4000#endif
4001 Syntax error
4002_ACEOF
4003if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4005 ac_status=$?
4006 grep -v '^ *+' conftest.er1 >conftest.err
4007 rm -f conftest.er1
4008 cat conftest.err >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } >/dev/null; then
4011 if test -s conftest.err; then
4012 ac_cpp_err=$ac_c_preproc_warn_flag
4013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4014 else
4015 ac_cpp_err=
4016 fi
4017else
4018 ac_cpp_err=yes
4019fi
4020if test -z "$ac_cpp_err"; then
4021 :
4022else
4023 echo "$as_me: failed program was:" >&5
4024sed 's/^/| /' conftest.$ac_ext >&5
4025
4026 # Broken: fails on valid input.
4027continue
4028fi
4029rm -f conftest.err conftest.$ac_ext
4030
4031 # OK, works on sane cases. Now check whether non-existent headers
4032 # can be detected and how.
4033 cat >conftest.$ac_ext <<_ACEOF
4034/* confdefs.h. */
4035_ACEOF
4036cat confdefs.h >>conftest.$ac_ext
4037cat >>conftest.$ac_ext <<_ACEOF
4038/* end confdefs.h. */
4039#include <ac_nonexistent.h>
4040_ACEOF
4041if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4043 ac_status=$?
4044 grep -v '^ *+' conftest.er1 >conftest.err
4045 rm -f conftest.er1
4046 cat conftest.err >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); } >/dev/null; then
4049 if test -s conftest.err; then
4050 ac_cpp_err=$ac_c_preproc_warn_flag
4051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4052 else
4053 ac_cpp_err=
4054 fi
4055else
4056 ac_cpp_err=yes
4057fi
4058if test -z "$ac_cpp_err"; then
4059 # Broken: success on invalid input.
4060continue
4061else
4062 echo "$as_me: failed program was:" >&5
4063sed 's/^/| /' conftest.$ac_ext >&5
4064
4065 # Passes both tests.
4066ac_preproc_ok=:
4067break
4068fi
4069rm -f conftest.err conftest.$ac_ext
4070
4071done
4072# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4073rm -f conftest.err conftest.$ac_ext
4074if $ac_preproc_ok; then
4075 :
4076else
4077 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4078See \`config.log' for more details." >&5
4079echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4080See \`config.log' for more details." >&2;}
4081 { (exit 1); exit 1; }; }
4082fi
4083
4084ac_ext=c
4085ac_cpp='$CPP $CPPFLAGS'
4086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088ac_compiler_gnu=$ac_cv_c_compiler_gnu
4089
4090
4091echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4092echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4093if test "${ac_cv_header_stdc+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4095else
4096 cat >conftest.$ac_ext <<_ACEOF
4097/* confdefs.h. */
4098_ACEOF
4099cat confdefs.h >>conftest.$ac_ext
4100cat >>conftest.$ac_ext <<_ACEOF
4101/* end confdefs.h. */
4102#include <stdlib.h>
4103#include <stdarg.h>
4104#include <string.h>
4105#include <float.h>
4106
4107int
4108main ()
4109{
4110
4111 ;
4112 return 0;
4113}
4114_ACEOF
4115rm -f conftest.$ac_objext
4116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4117 (eval $ac_compile) 2>conftest.er1
4118 ac_status=$?
4119 grep -v '^ *+' conftest.er1 >conftest.err
4120 rm -f conftest.er1
4121 cat conftest.err >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } &&
4124 { ac_try='test -z "$ac_c_werror_flag"
4125 || test ! -s conftest.err'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 (eval $ac_try) 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; } &&
4131 { ac_try='test -s conftest.$ac_objext'
4132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133 (eval $ac_try) 2>&5
4134 ac_status=$?
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; }; then
4137 ac_cv_header_stdc=yes
4138else
4139 echo "$as_me: failed program was:" >&5
4140sed 's/^/| /' conftest.$ac_ext >&5
4141
4142ac_cv_header_stdc=no
4143fi
4144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4145
4146if test $ac_cv_header_stdc = yes; then
4147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4148 cat >conftest.$ac_ext <<_ACEOF
4149/* confdefs.h. */
4150_ACEOF
4151cat confdefs.h >>conftest.$ac_ext
4152cat >>conftest.$ac_ext <<_ACEOF
4153/* end confdefs.h. */
4154#include <string.h>
4155
4156_ACEOF
4157if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158 $EGREP "memchr" >/dev/null 2>&1; then
4159 :
4160else
4161 ac_cv_header_stdc=no
4162fi
4163rm -f conftest*
4164
4165fi
4166
4167if test $ac_cv_header_stdc = yes; then
4168 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4169 cat >conftest.$ac_ext <<_ACEOF
4170/* confdefs.h. */
4171_ACEOF
4172cat confdefs.h >>conftest.$ac_ext
4173cat >>conftest.$ac_ext <<_ACEOF
4174/* end confdefs.h. */
4175#include <stdlib.h>
4176
4177_ACEOF
4178if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4179 $EGREP "free" >/dev/null 2>&1; then
4180 :
4181else
4182 ac_cv_header_stdc=no
4183fi
4184rm -f conftest*
4185
4186fi
4187
4188if test $ac_cv_header_stdc = yes; then
4189 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4190 if test "$cross_compiling" = yes; then
4191 :
4192else
4193 cat >conftest.$ac_ext <<_ACEOF
4194/* confdefs.h. */
4195_ACEOF
4196cat confdefs.h >>conftest.$ac_ext
4197cat >>conftest.$ac_ext <<_ACEOF
4198/* end confdefs.h. */
4199#include <ctype.h>
4200#if ((' ' & 0x0FF) == 0x020)
4201# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4202# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4203#else
4204# define ISLOWER(c) \
4205 (('a' <= (c) && (c) <= 'i') \
4206 || ('j' <= (c) && (c) <= 'r') \
4207 || ('s' <= (c) && (c) <= 'z'))
4208# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4209#endif
4210
4211#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4212int
4213main ()
4214{
4215 int i;
4216 for (i = 0; i < 256; i++)
4217 if (XOR (islower (i), ISLOWER (i))
4218 || toupper (i) != TOUPPER (i))
4219 exit(2);
4220 exit (0);
4221}
4222_ACEOF
4223rm -f conftest$ac_exeext
4224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4225 (eval $ac_link) 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 (eval $ac_try) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
4234 :
4235else
4236 echo "$as_me: program exited with status $ac_status" >&5
4237echo "$as_me: failed program was:" >&5
4238sed 's/^/| /' conftest.$ac_ext >&5
4239
4240( exit $ac_status )
4241ac_cv_header_stdc=no
4242fi
4243rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4244fi
4245fi
4246fi
4247echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4248echo "${ECHO_T}$ac_cv_header_stdc" >&6
4249if test $ac_cv_header_stdc = yes; then
4250
4251cat >>confdefs.h <<\_ACEOF
4252#define STDC_HEADERS 1
4253_ACEOF
4254
4255fi
4256
4257# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4268 inttypes.h stdint.h unistd.h
4269do
4270as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4271echo "$as_me:$LINENO: checking for $ac_header" >&5
4272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4273if eval "test \"\${$as_ac_Header+set}\" = set"; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4275else
4276 cat >conftest.$ac_ext <<_ACEOF
4277/* confdefs.h. */
4278_ACEOF
4279cat confdefs.h >>conftest.$ac_ext
4280cat >>conftest.$ac_ext <<_ACEOF
4281/* end confdefs.h. */
4282$ac_includes_default
4283
4284#include <$ac_header>
4285_ACEOF
4286rm -f conftest.$ac_objext
4287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4288 (eval $ac_compile) 2>conftest.er1
4289 ac_status=$?
4290 grep -v '^ *+' conftest.er1 >conftest.err
4291 rm -f conftest.er1
4292 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try='test -z "$ac_c_werror_flag"
4296 || test ! -s conftest.err'
4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 (eval $ac_try) 2>&5
4299 ac_status=$?
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; } &&
4302 { ac_try='test -s conftest.$ac_objext'
4303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 (eval $ac_try) 2>&5
4305 ac_status=$?
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; }; then
4308 eval "$as_ac_Header=yes"
4309else
4310 echo "$as_me: failed program was:" >&5
4311sed 's/^/| /' conftest.$ac_ext >&5
4312
4313eval "$as_ac_Header=no"
4314fi
4315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4316fi
4317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4318echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4319if test `eval echo '${'$as_ac_Header'}'` = yes; then
4320 cat >>confdefs.h <<_ACEOF
4321#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4322_ACEOF
4323
4324fi
4325
4326done
4327
4328
4329
4330for ac_header in dlfcn.h
4331do
4332as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4333if eval "test \"\${$as_ac_Header+set}\" = set"; then
4334 echo "$as_me:$LINENO: checking for $ac_header" >&5
4335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4336if eval "test \"\${$as_ac_Header+set}\" = set"; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4338fi
4339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4340echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4341else
4342 # Is the header compilable?
4343echo "$as_me:$LINENO: checking $ac_header usability" >&5
4344echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4345cat >conftest.$ac_ext <<_ACEOF
4346/* confdefs.h. */
4347_ACEOF
4348cat confdefs.h >>conftest.$ac_ext
4349cat >>conftest.$ac_ext <<_ACEOF
4350/* end confdefs.h. */
4351$ac_includes_default
4352#include <$ac_header>
4353_ACEOF
4354rm -f conftest.$ac_objext
4355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4356 (eval $ac_compile) 2>conftest.er1
4357 ac_status=$?
4358 grep -v '^ *+' conftest.er1 >conftest.err
4359 rm -f conftest.er1
4360 cat conftest.err >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } &&
4363 { ac_try='test -z "$ac_c_werror_flag"
4364 || test ! -s conftest.err'
4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 (eval $ac_try) 2>&5
4367 ac_status=$?
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; } &&
4370 { ac_try='test -s conftest.$ac_objext'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 (eval $ac_try) 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
4376 ac_header_compiler=yes
4377else
4378 echo "$as_me: failed program was:" >&5
4379sed 's/^/| /' conftest.$ac_ext >&5
4380
4381ac_header_compiler=no
4382fi
4383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4384echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4385echo "${ECHO_T}$ac_header_compiler" >&6
4386
4387# Is the header present?
4388echo "$as_me:$LINENO: checking $ac_header presence" >&5
4389echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4390cat >conftest.$ac_ext <<_ACEOF
4391/* confdefs.h. */
4392_ACEOF
4393cat confdefs.h >>conftest.$ac_ext
4394cat >>conftest.$ac_ext <<_ACEOF
4395/* end confdefs.h. */
4396#include <$ac_header>
4397_ACEOF
4398if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4400 ac_status=$?
4401 grep -v '^ *+' conftest.er1 >conftest.err
4402 rm -f conftest.er1
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } >/dev/null; then
4406 if test -s conftest.err; then
4407 ac_cpp_err=$ac_c_preproc_warn_flag
4408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4409 else
4410 ac_cpp_err=
4411 fi
4412else
4413 ac_cpp_err=yes
4414fi
4415if test -z "$ac_cpp_err"; then
4416 ac_header_preproc=yes
4417else
4418 echo "$as_me: failed program was:" >&5
4419sed 's/^/| /' conftest.$ac_ext >&5
4420
4421 ac_header_preproc=no
4422fi
4423rm -f conftest.err conftest.$ac_ext
4424echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4425echo "${ECHO_T}$ac_header_preproc" >&6
4426
4427# So? What about this header?
4428case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4429 yes:no: )
4430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4431echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4433echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4434 ac_header_preproc=yes
4435 ;;
4436 no:yes:* )
4437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4438echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4440echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4442echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4444echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4446echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4448echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4449 (
4450 cat <<\_ASBOX
4451## ------------------------------------------ ##
4452## Report this to the AC_PACKAGE_NAME lists. ##
4453## ------------------------------------------ ##
4454_ASBOX
4455 ) |
4456 sed "s/^/$as_me: WARNING: /" >&2
4457 ;;
4458esac
4459echo "$as_me:$LINENO: checking for $ac_header" >&5
4460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4461if eval "test \"\${$as_ac_Header+set}\" = set"; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4463else
4464 eval "$as_ac_Header=\$ac_header_preproc"
4465fi
4466echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4467echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4468
4469fi
4470if test `eval echo '${'$as_ac_Header'}'` = yes; then
4471 cat >>confdefs.h <<_ACEOF
4472#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4473_ACEOF
4474
4475fi
4476
4477done
4478
4479ac_ext=cc
4480ac_cpp='$CXXCPP $CPPFLAGS'
4481ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4482ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4483ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4484if test -n "$ac_tool_prefix"; then
4485 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4486 do
4487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4488set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4489echo "$as_me:$LINENO: checking for $ac_word" >&5
4490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4491if test "${ac_cv_prog_CXX+set}" = set; then
4492 echo $ECHO_N "(cached) $ECHO_C" >&6
4493else
4494 if test -n "$CXX"; then
4495 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4496else
4497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498for as_dir in $PATH
4499do
4500 IFS=$as_save_IFS
4501 test -z "$as_dir" && as_dir=.
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4504 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4506 break 2
4507 fi
4508done
4509done
4510
4511fi
4512fi
4513CXX=$ac_cv_prog_CXX
4514if test -n "$CXX"; then
4515 echo "$as_me:$LINENO: result: $CXX" >&5
4516echo "${ECHO_T}$CXX" >&6
4517else
4518 echo "$as_me:$LINENO: result: no" >&5
4519echo "${ECHO_T}no" >&6
4520fi
4521
4522 test -n "$CXX" && break
4523 done
4524fi
4525if test -z "$CXX"; then
4526 ac_ct_CXX=$CXX
4527 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4528do
4529 # Extract the first word of "$ac_prog", so it can be a program name with args.
4530set dummy $ac_prog; ac_word=$2
4531echo "$as_me:$LINENO: checking for $ac_word" >&5
4532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4533if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4535else
4536 if test -n "$ac_ct_CXX"; then
4537 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4538else
4539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540for as_dir in $PATH
4541do
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4546 ac_cv_prog_ac_ct_CXX="$ac_prog"
4547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 break 2
4549 fi
4550done
4551done
4552
4553fi
4554fi
4555ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4556if test -n "$ac_ct_CXX"; then
4557 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4558echo "${ECHO_T}$ac_ct_CXX" >&6
4559else
4560 echo "$as_me:$LINENO: result: no" >&5
4561echo "${ECHO_T}no" >&6
4562fi
4563
4564 test -n "$ac_ct_CXX" && break
4565done
4566test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4567
4568 CXX=$ac_ct_CXX
4569fi
4570
4571
4572# Provide some information about the compiler.
4573echo "$as_me:$LINENO:" \
4574 "checking for C++ compiler version" >&5
4575ac_compiler=`set X $ac_compile; echo $2`
4576{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4577 (eval $ac_compiler --version </dev/null >&5) 2>&5
4578 ac_status=$?
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }
4581{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4582 (eval $ac_compiler -v </dev/null >&5) 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }
4586{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4587 (eval $ac_compiler -V </dev/null >&5) 2>&5
4588 ac_status=$?
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); }
4591
4592echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4593echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4594if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4596else
4597 cat >conftest.$ac_ext <<_ACEOF
4598/* confdefs.h. */
4599_ACEOF
4600cat confdefs.h >>conftest.$ac_ext
4601cat >>conftest.$ac_ext <<_ACEOF
4602/* end confdefs.h. */
4603
4604int
4605main ()
4606{
4607#ifndef __GNUC__
4608 choke me
4609#endif
4610
4611 ;
4612 return 0;
4613}
4614_ACEOF
4615rm -f conftest.$ac_objext
4616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4617 (eval $ac_compile) 2>conftest.er1
4618 ac_status=$?
4619 grep -v '^ *+' conftest.er1 >conftest.err
4620 rm -f conftest.er1
4621 cat conftest.err >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } &&
4624 { ac_try='test -z "$ac_cxx_werror_flag"
4625 || test ! -s conftest.err'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 (eval $ac_try) 2>&5
4628 ac_status=$?
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; } &&
4631 { ac_try='test -s conftest.$ac_objext'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 (eval $ac_try) 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; }; then
4637 ac_compiler_gnu=yes
4638else
4639 echo "$as_me: failed program was:" >&5
4640sed 's/^/| /' conftest.$ac_ext >&5
4641
4642ac_compiler_gnu=no
4643fi
4644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4645ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4646
4647fi
4648echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4649echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4650GXX=`test $ac_compiler_gnu = yes && echo yes`
4651ac_test_CXXFLAGS=${CXXFLAGS+set}
4652ac_save_CXXFLAGS=$CXXFLAGS
4653CXXFLAGS="-g"
4654echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4655echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4656if test "${ac_cv_prog_cxx_g+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4658else
4659 cat >conftest.$ac_ext <<_ACEOF
4660/* confdefs.h. */
4661_ACEOF
4662cat confdefs.h >>conftest.$ac_ext
4663cat >>conftest.$ac_ext <<_ACEOF
4664/* end confdefs.h. */
4665
4666int
4667main ()
4668{
4669
4670 ;
4671 return 0;
4672}
4673_ACEOF
4674rm -f conftest.$ac_objext
4675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4676 (eval $ac_compile) 2>conftest.er1
4677 ac_status=$?
4678 grep -v '^ *+' conftest.er1 >conftest.err
4679 rm -f conftest.er1
4680 cat conftest.err >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } &&
4683 { ac_try='test -z "$ac_cxx_werror_flag"
4684 || test ! -s conftest.err'
4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686 (eval $ac_try) 2>&5
4687 ac_status=$?
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; } &&
4690 { ac_try='test -s conftest.$ac_objext'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 (eval $ac_try) 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; }; then
4696 ac_cv_prog_cxx_g=yes
4697else
4698 echo "$as_me: failed program was:" >&5
4699sed 's/^/| /' conftest.$ac_ext >&5
4700
4701ac_cv_prog_cxx_g=no
4702fi
4703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4704fi
4705echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4706echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4707if test "$ac_test_CXXFLAGS" = set; then
4708 CXXFLAGS=$ac_save_CXXFLAGS
4709elif test $ac_cv_prog_cxx_g = yes; then
4710 if test "$GXX" = yes; then
4711 CXXFLAGS="-g -O2"
4712 else
4713 CXXFLAGS="-g"
4714 fi
4715else
4716 if test "$GXX" = yes; then
4717 CXXFLAGS="-O2"
4718 else
4719 CXXFLAGS=
4720 fi
4721fi
4722for ac_declaration in \
4723 '' \
4724 'extern "C" void std::exit (int) throw (); using std::exit;' \
4725 'extern "C" void std::exit (int); using std::exit;' \
4726 'extern "C" void exit (int) throw ();' \
4727 'extern "C" void exit (int);' \
4728 'void exit (int);'
4729do
4730 cat >conftest.$ac_ext <<_ACEOF
4731/* confdefs.h. */
4732_ACEOF
4733cat confdefs.h >>conftest.$ac_ext
4734cat >>conftest.$ac_ext <<_ACEOF
4735/* end confdefs.h. */
4736$ac_declaration
4737#include <stdlib.h>
4738int
4739main ()
4740{
4741exit (42);
4742 ;
4743 return 0;
4744}
4745_ACEOF
4746rm -f conftest.$ac_objext
4747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4748 (eval $ac_compile) 2>conftest.er1
4749 ac_status=$?
4750 grep -v '^ *+' conftest.er1 >conftest.err
4751 rm -f conftest.er1
4752 cat conftest.err >&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } &&
4755 { ac_try='test -z "$ac_cxx_werror_flag"
4756 || test ! -s conftest.err'
4757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 (eval $ac_try) 2>&5
4759 ac_status=$?
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; } &&
4762 { ac_try='test -s conftest.$ac_objext'
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764 (eval $ac_try) 2>&5
4765 ac_status=$?
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; }; then
4768 :
4769else
4770 echo "$as_me: failed program was:" >&5
4771sed 's/^/| /' conftest.$ac_ext >&5
4772
4773continue
4774fi
4775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4776 cat >conftest.$ac_ext <<_ACEOF
4777/* confdefs.h. */
4778_ACEOF
4779cat confdefs.h >>conftest.$ac_ext
4780cat >>conftest.$ac_ext <<_ACEOF
4781/* end confdefs.h. */
4782$ac_declaration
4783int
4784main ()
4785{
4786exit (42);
4787 ;
4788 return 0;
4789}
4790_ACEOF
4791rm -f conftest.$ac_objext
4792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4793 (eval $ac_compile) 2>conftest.er1
4794 ac_status=$?
4795 grep -v '^ *+' conftest.er1 >conftest.err
4796 rm -f conftest.er1
4797 cat conftest.err >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } &&
4800 { ac_try='test -z "$ac_cxx_werror_flag"
4801 || test ! -s conftest.err'
4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803 (eval $ac_try) 2>&5
4804 ac_status=$?
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; } &&
4807 { ac_try='test -s conftest.$ac_objext'
4808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809 (eval $ac_try) 2>&5
4810 ac_status=$?
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }; }; then
4813 break
4814else
4815 echo "$as_me: failed program was:" >&5
4816sed 's/^/| /' conftest.$ac_ext >&5
4817
4818fi
4819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4820done
4821rm -f conftest*
4822if test -n "$ac_declaration"; then
4823 echo '#ifdef __cplusplus' >>confdefs.h
4824 echo $ac_declaration >>confdefs.h
4825 echo '#endif' >>confdefs.h
4826fi
4827
4828ac_ext=cc
4829ac_cpp='$CXXCPP $CPPFLAGS'
4830ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4831ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4832ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4833
4834depcc="$CXX" am_compiler_list=
4835
4836echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4837echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4838if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4840else
4841 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4842 # We make a subdir and do the tests there. Otherwise we can end up
4843 # making bogus files that we don't know about and never remove. For
4844 # instance it was reported that on HP-UX the gcc test will end up
4845 # making a dummy file named `D' -- because `-MD' means `put the output
4846 # in D'.
4847 mkdir conftest.dir
4848 # Copy depcomp to subdir because otherwise we won't find it if we're
4849 # using a relative directory.
4850 cp "$am_depcomp" conftest.dir
4851 cd conftest.dir
4852 # We will build objects and dependencies in a subdirectory because
4853 # it helps to detect inapplicable dependency modes. For instance
4854 # both Tru64's cc and ICC support -MD to output dependencies as a
4855 # side effect of compilation, but ICC will put the dependencies in
4856 # the current directory while Tru64 will put them in the object
4857 # directory.
4858 mkdir sub
4859
4860 am_cv_CXX_dependencies_compiler_type=none
4861 if test "$am_compiler_list" = ""; then
4862 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4863 fi
4864 for depmode in $am_compiler_list; do
4865 # Setup a source with many dependencies, because some compilers
4866 # like to wrap large dependency lists on column 80 (with \), and
4867 # we should not choose a depcomp mode which is confused by this.
4868 #
4869 # We need to recreate these files for each test, as the compiler may
4870 # overwrite some of them when testing with obscure command lines.
4871 # This happens at least with the AIX C compiler.
4872 : > sub/conftest.c
4873 for i in 1 2 3 4 5 6; do
4874 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4875 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4876 # Solaris 8's {/usr,}/bin/sh.
4877 touch sub/conftst$i.h
4878 done
4879 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4880
4881 case $depmode in
4882 nosideeffect)
4883 # after this tag, mechanisms are not by side-effect, so they'll
4884 # only be used when explicitly requested
4885 if test "x$enable_dependency_tracking" = xyes; then
4886 continue
4887 else
4888 break
4889 fi
4890 ;;
4891 none) break ;;
4892 esac
4893 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4894 # mode. It turns out that the SunPro C++ compiler does not properly
4895 # handle `-M -o', and we need to detect this.
4896 if depmode=$depmode \
4897 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4898 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4899 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4900 >/dev/null 2>conftest.err &&
4901 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4902 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4903 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4904 # icc doesn't choke on unknown options, it will just issue warnings
4905 # or remarks (even with -Werror). So we grep stderr for any message
4906 # that says an option was ignored or not supported.
4907 # When given -MP, icc 7.0 and 7.1 complain thusly:
4908 # icc: Command line warning: ignoring option '-M'; no argument required
4909 # The diagnosis changed in icc 8.0:
4910 # icc: Command line remark: option '-MP' not supported
4911 if (grep 'ignoring option' conftest.err ||
4912 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4913 am_cv_CXX_dependencies_compiler_type=$depmode
4914 break
4915 fi
4916 fi
4917 done
4918
4919 cd ..
4920 rm -rf conftest.dir
4921else
4922 am_cv_CXX_dependencies_compiler_type=none
4923fi
4924
4925fi
4926echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4927echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4928CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4929
4930
4931
4932if
4933 test "x$enable_dependency_tracking" != xno \
4934 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4935 am__fastdepCXX_TRUE=
4936 am__fastdepCXX_FALSE='#'
4937else
4938 am__fastdepCXX_TRUE='#'
4939 am__fastdepCXX_FALSE=
4940fi
4941
4942
4943ac_ext=cc
4944ac_cpp='$CXXCPP $CPPFLAGS'
4945ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4946ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4947ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4948echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4949echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4950if test -z "$CXXCPP"; then
4951 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
4953else
4954 # Double quotes because CXXCPP needs to be expanded
4955 for CXXCPP in "$CXX -E" "/lib/cpp"
4956 do
4957 ac_preproc_ok=false
4958for ac_cxx_preproc_warn_flag in '' yes
4959do
4960 # Use a header file that comes with gcc, so configuring glibc
4961 # with a fresh cross-compiler works.
4962 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4963 # <limits.h> exists even on freestanding compilers.
4964 # On the NeXT, cc -E runs the code through the compiler's parser,
4965 # not just through cpp. "Syntax error" is here to catch this case.
4966 cat >conftest.$ac_ext <<_ACEOF
4967/* confdefs.h. */
4968_ACEOF
4969cat confdefs.h >>conftest.$ac_ext
4970cat >>conftest.$ac_ext <<_ACEOF
4971/* end confdefs.h. */
4972#ifdef __STDC__
4973# include <limits.h>
4974#else
4975# include <assert.h>
4976#endif
4977 Syntax error
4978_ACEOF
4979if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4981 ac_status=$?
4982 grep -v '^ *+' conftest.er1 >conftest.err
4983 rm -f conftest.er1
4984 cat conftest.err >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } >/dev/null; then
4987 if test -s conftest.err; then
4988 ac_cpp_err=$ac_cxx_preproc_warn_flag
4989 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4990 else
4991 ac_cpp_err=
4992 fi
4993else
4994 ac_cpp_err=yes
4995fi
4996if test -z "$ac_cpp_err"; then
4997 :
4998else
4999 echo "$as_me: failed program was:" >&5
5000sed 's/^/| /' conftest.$ac_ext >&5
5001
5002 # Broken: fails on valid input.
5003continue
5004fi
5005rm -f conftest.err conftest.$ac_ext
5006
5007 # OK, works on sane cases. Now check whether non-existent headers
5008 # can be detected and how.
5009 cat >conftest.$ac_ext <<_ACEOF
5010/* confdefs.h. */
5011_ACEOF
5012cat confdefs.h >>conftest.$ac_ext
5013cat >>conftest.$ac_ext <<_ACEOF
5014/* end confdefs.h. */
5015#include <ac_nonexistent.h>
5016_ACEOF
5017if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5019 ac_status=$?
5020 grep -v '^ *+' conftest.er1 >conftest.err
5021 rm -f conftest.er1
5022 cat conftest.err >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); } >/dev/null; then
5025 if test -s conftest.err; then
5026 ac_cpp_err=$ac_cxx_preproc_warn_flag
5027 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5028 else
5029 ac_cpp_err=
5030 fi
5031else
5032 ac_cpp_err=yes
5033fi
5034if test -z "$ac_cpp_err"; then
5035 # Broken: success on invalid input.
5036continue
5037else
5038 echo "$as_me: failed program was:" >&5
5039sed 's/^/| /' conftest.$ac_ext >&5
5040
5041 # Passes both tests.
5042ac_preproc_ok=:
5043break
5044fi
5045rm -f conftest.err conftest.$ac_ext
5046
5047done
5048# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5049rm -f conftest.err conftest.$ac_ext
5050if $ac_preproc_ok; then
5051 break
5052fi
5053
5054 done
5055 ac_cv_prog_CXXCPP=$CXXCPP
5056
5057fi
5058 CXXCPP=$ac_cv_prog_CXXCPP
5059else
5060 ac_cv_prog_CXXCPP=$CXXCPP
5061fi
5062echo "$as_me:$LINENO: result: $CXXCPP" >&5
5063echo "${ECHO_T}$CXXCPP" >&6
5064ac_preproc_ok=false
5065for ac_cxx_preproc_warn_flag in '' yes
5066do
5067 # Use a header file that comes with gcc, so configuring glibc
5068 # with a fresh cross-compiler works.
5069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5070 # <limits.h> exists even on freestanding compilers.
5071 # On the NeXT, cc -E runs the code through the compiler's parser,
5072 # not just through cpp. "Syntax error" is here to catch this case.
5073 cat >conftest.$ac_ext <<_ACEOF
5074/* confdefs.h. */
5075_ACEOF
5076cat confdefs.h >>conftest.$ac_ext
5077cat >>conftest.$ac_ext <<_ACEOF
5078/* end confdefs.h. */
5079#ifdef __STDC__
5080# include <limits.h>
5081#else
5082# include <assert.h>
5083#endif
5084 Syntax error
5085_ACEOF
5086if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5088 ac_status=$?
5089 grep -v '^ *+' conftest.er1 >conftest.err
5090 rm -f conftest.er1
5091 cat conftest.err >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } >/dev/null; then
5094 if test -s conftest.err; then
5095 ac_cpp_err=$ac_cxx_preproc_warn_flag
5096 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5097 else
5098 ac_cpp_err=
5099 fi
5100else
5101 ac_cpp_err=yes
5102fi
5103if test -z "$ac_cpp_err"; then
5104 :
5105else
5106 echo "$as_me: failed program was:" >&5
5107sed 's/^/| /' conftest.$ac_ext >&5
5108
5109 # Broken: fails on valid input.
5110continue
5111fi
5112rm -f conftest.err conftest.$ac_ext
5113
5114 # OK, works on sane cases. Now check whether non-existent headers
5115 # can be detected and how.
5116 cat >conftest.$ac_ext <<_ACEOF
5117/* confdefs.h. */
5118_ACEOF
5119cat confdefs.h >>conftest.$ac_ext
5120cat >>conftest.$ac_ext <<_ACEOF
5121/* end confdefs.h. */
5122#include <ac_nonexistent.h>
5123_ACEOF
5124if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5126 ac_status=$?
5127 grep -v '^ *+' conftest.er1 >conftest.err
5128 rm -f conftest.er1
5129 cat conftest.err >&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); } >/dev/null; then
5132 if test -s conftest.err; then
5133 ac_cpp_err=$ac_cxx_preproc_warn_flag
5134 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5135 else
5136 ac_cpp_err=
5137 fi
5138else
5139 ac_cpp_err=yes
5140fi
5141if test -z "$ac_cpp_err"; then
5142 # Broken: success on invalid input.
5143continue
5144else
5145 echo "$as_me: failed program was:" >&5
5146sed 's/^/| /' conftest.$ac_ext >&5
5147
5148 # Passes both tests.
5149ac_preproc_ok=:
5150break
5151fi
5152rm -f conftest.err conftest.$ac_ext
5153
5154done
5155# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5156rm -f conftest.err conftest.$ac_ext
5157if $ac_preproc_ok; then
5158 :
5159else
5160 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5161See \`config.log' for more details." >&5
5162echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5163See \`config.log' for more details." >&2;}
5164 { (exit 1); exit 1; }; }
5165fi
5166
5167ac_ext=cc
5168ac_cpp='$CXXCPP $CPPFLAGS'
5169ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5170ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5171ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5172
5173
5174ac_ext=f
5175ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5176ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5177ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5178if test -n "$ac_tool_prefix"; then
5179 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5180 do
5181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5182set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5183echo "$as_me:$LINENO: checking for $ac_word" >&5
5184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5185if test "${ac_cv_prog_F77+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5187else
5188 if test -n "$F77"; then
5189 ac_cv_prog_F77="$F77" # Let the user override the test.
5190else
5191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192for as_dir in $PATH
5193do
5194 IFS=$as_save_IFS
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 break 2
5201 fi
5202done
5203done
5204
5205fi
5206fi
5207F77=$ac_cv_prog_F77
5208if test -n "$F77"; then
5209 echo "$as_me:$LINENO: result: $F77" >&5
5210echo "${ECHO_T}$F77" >&6
5211else
5212 echo "$as_me:$LINENO: result: no" >&5
5213echo "${ECHO_T}no" >&6
5214fi
5215
5216 test -n "$F77" && break
5217 done
5218fi
5219if test -z "$F77"; then
5220 ac_ct_F77=$F77
5221 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5222do
5223 # Extract the first word of "$ac_prog", so it can be a program name with args.
5224set dummy $ac_prog; ac_word=$2
5225echo "$as_me:$LINENO: checking for $ac_word" >&5
5226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5227if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229else
5230 if test -n "$ac_ct_F77"; then
5231 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5232else
5233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234for as_dir in $PATH
5235do
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5240 ac_cv_prog_ac_ct_F77="$ac_prog"
5241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 break 2
5243 fi
5244done
5245done
5246
5247fi
5248fi
5249ac_ct_F77=$ac_cv_prog_ac_ct_F77
5250if test -n "$ac_ct_F77"; then
5251 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5252echo "${ECHO_T}$ac_ct_F77" >&6
5253else
5254 echo "$as_me:$LINENO: result: no" >&5
5255echo "${ECHO_T}no" >&6
5256fi
5257
5258 test -n "$ac_ct_F77" && break
5259done
5260
5261 F77=$ac_ct_F77
5262fi
5263
5264
5265# Provide some information about the compiler.
Lev Walkin33cded12004-09-19 19:40:52 +00005266echo "$as_me:5266:" \
Lev Walkin8e8b5482004-06-17 23:42:48 +00005267 "checking for Fortran 77 compiler version" >&5
5268ac_compiler=`set X $ac_compile; echo $2`
5269{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5270 (eval $ac_compiler --version </dev/null >&5) 2>&5
5271 ac_status=$?
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); }
5274{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5275 (eval $ac_compiler -v </dev/null >&5) 2>&5
5276 ac_status=$?
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }
5279{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5280 (eval $ac_compiler -V </dev/null >&5) 2>&5
5281 ac_status=$?
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }
5284rm -f a.out
5285
5286# If we don't use `.F' as extension, the preprocessor is not run on the
5287# input file. (Note that this only needs to work for GNU compilers.)
5288ac_save_ext=$ac_ext
5289ac_ext=F
5290echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5291echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5292if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5294else
5295 cat >conftest.$ac_ext <<_ACEOF
5296 program main
5297#ifndef __GNUC__
5298 choke me
5299#endif
5300
5301 end
5302_ACEOF
5303rm -f conftest.$ac_objext
5304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5305 (eval $ac_compile) 2>conftest.er1
5306 ac_status=$?
5307 grep -v '^ *+' conftest.er1 >conftest.err
5308 rm -f conftest.er1
5309 cat conftest.err >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } &&
5312 { ac_try='test -z "$ac_f77_werror_flag"
5313 || test ! -s conftest.err'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315 (eval $ac_try) 2>&5
5316 ac_status=$?
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; } &&
5319 { ac_try='test -s conftest.$ac_objext'
5320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321 (eval $ac_try) 2>&5
5322 ac_status=$?
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); }; }; then
5325 ac_compiler_gnu=yes
5326else
5327 echo "$as_me: failed program was:" >&5
5328sed 's/^/| /' conftest.$ac_ext >&5
5329
5330ac_compiler_gnu=no
5331fi
5332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5333ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5334
5335fi
5336echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5337echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5338ac_ext=$ac_save_ext
5339ac_test_FFLAGS=${FFLAGS+set}
5340ac_save_FFLAGS=$FFLAGS
5341FFLAGS=
5342echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5343echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5344if test "${ac_cv_prog_f77_g+set}" = set; then
5345 echo $ECHO_N "(cached) $ECHO_C" >&6
5346else
5347 FFLAGS=-g
5348cat >conftest.$ac_ext <<_ACEOF
5349 program main
5350
5351 end
5352_ACEOF
5353rm -f conftest.$ac_objext
5354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5355 (eval $ac_compile) 2>conftest.er1
5356 ac_status=$?
5357 grep -v '^ *+' conftest.er1 >conftest.err
5358 rm -f conftest.er1
5359 cat conftest.err >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); } &&
5362 { ac_try='test -z "$ac_f77_werror_flag"
5363 || test ! -s conftest.err'
5364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365 (eval $ac_try) 2>&5
5366 ac_status=$?
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; } &&
5369 { ac_try='test -s conftest.$ac_objext'
5370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 (eval $ac_try) 2>&5
5372 ac_status=$?
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; }; then
5375 ac_cv_prog_f77_g=yes
5376else
5377 echo "$as_me: failed program was:" >&5
5378sed 's/^/| /' conftest.$ac_ext >&5
5379
5380ac_cv_prog_f77_g=no
5381fi
5382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5383
5384fi
5385echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5386echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5387if test "$ac_test_FFLAGS" = set; then
5388 FFLAGS=$ac_save_FFLAGS
5389elif test $ac_cv_prog_f77_g = yes; then
5390 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5391 FFLAGS="-g -O2"
5392 else
5393 FFLAGS="-g"
5394 fi
5395else
5396 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5397 FFLAGS="-O2"
5398 else
5399 FFLAGS=
5400 fi
5401fi
5402
5403G77=`test $ac_compiler_gnu = yes && echo yes`
5404ac_ext=c
5405ac_cpp='$CPP $CPPFLAGS'
5406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5408ac_compiler_gnu=$ac_cv_c_compiler_gnu
5409
5410
5411
5412# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5413
5414# find the maximum length of command line arguments
5415echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5416echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5417if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5419else
5420 i=0
5421 teststring="ABCD"
5422
5423 case $build_os in
5424 msdosdjgpp*)
5425 # On DJGPP, this test can blow up pretty badly due to problems in libc
5426 # (any single argument exceeding 2000 bytes causes a buffer overrun
5427 # during glob expansion). Even if it were fixed, the result of this
5428 # check would be larger than it should be.
5429 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5430 ;;
5431
5432 gnu*)
5433 # Under GNU Hurd, this test is not required because there is
5434 # no limit to the length of command line arguments.
5435 # Libtool will interpret -1 as no limit whatsoever
5436 lt_cv_sys_max_cmd_len=-1;
5437 ;;
5438
5439 cygwin* | mingw*)
5440 # On Win9x/ME, this test blows up -- it succeeds, but takes
5441 # about 5 minutes as the teststring grows exponentially.
5442 # Worse, since 9x/ME are not pre-emptively multitasking,
5443 # you end up with a "frozen" computer, even though with patience
5444 # the test eventually succeeds (with a max line length of 256k).
5445 # Instead, let's just punt: use the minimum linelength reported by
5446 # all of the supported platforms: 8192 (on NT/2K/XP).
5447 lt_cv_sys_max_cmd_len=8192;
5448 ;;
5449
5450 amigaos*)
5451 # On AmigaOS with pdksh, this test takes hours, literally.
5452 # So we just punt and use a minimum line length of 8192.
5453 lt_cv_sys_max_cmd_len=8192;
5454 ;;
5455
5456 *)
5457 # If test is not a shell built-in, we'll probably end up computing a
5458 # maximum length that is only half of the actual maximum length, but
5459 # we can't tell.
5460 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5461 = "XX$teststring") >/dev/null 2>&1 &&
5462 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5463 lt_cv_sys_max_cmd_len=$new_result &&
5464 test $i != 17 # 1/2 MB should be enough
5465 do
5466 i=`expr $i + 1`
5467 teststring=$teststring$teststring
5468 done
5469 teststring=
5470 # Add a significant safety factor because C++ compilers can tack on massive
5471 # amounts of additional arguments before passing them to the linker.
5472 # It appears as though 1/2 is a usable value.
5473 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5474 ;;
5475 esac
5476
5477fi
5478
5479if test -n $lt_cv_sys_max_cmd_len ; then
5480 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5481echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5482else
5483 echo "$as_me:$LINENO: result: none" >&5
5484echo "${ECHO_T}none" >&6
5485fi
5486
5487
5488
5489
5490# Check for command to grab the raw symbol name followed by C symbol from nm.
5491echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5492echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5493if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5495else
5496
5497# These are sane defaults that work on at least a few old systems.
5498# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5499
5500# Character class describing NM global symbol codes.
5501symcode='[BCDEGRST]'
5502
5503# Regexp to match symbols that can be accessed directly from C.
5504sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5505
5506# Transform the above into a raw symbol and a C symbol.
5507symxfrm='\1 \2\3 \3'
5508
5509# Transform an extracted symbol line into a proper C declaration
5510lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5511
5512# Transform an extracted symbol line into symbol name and symbol address
5513lt_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'"
5514
5515# Define system-specific variables.
5516case $host_os in
5517aix*)
5518 symcode='[BCDT]'
5519 ;;
5520cygwin* | mingw* | pw32*)
5521 symcode='[ABCDGISTW]'
5522 ;;
5523hpux*) # Its linker distinguishes data from code symbols
5524 if test "$host_cpu" = ia64; then
5525 symcode='[ABCDEGRST]'
5526 fi
5527 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5528 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'"
5529 ;;
5530irix* | nonstopux*)
5531 symcode='[BCDEGRST]'
5532 ;;
5533osf*)
5534 symcode='[BCDEGQRST]'
5535 ;;
5536solaris* | sysv5*)
5537 symcode='[BDRT]'
5538 ;;
5539sysv4)
5540 symcode='[DFNSTU]'
5541 ;;
5542esac
5543
5544# Handle CRLF in mingw tool chain
5545opt_cr=
5546case $build_os in
5547mingw*)
5548 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5549 ;;
5550esac
5551
5552# If we're using GNU nm, then use its standard symbol codes.
5553case `$NM -V 2>&1` in
5554*GNU* | *'with BFD'*)
5555 symcode='[ABCDGIRSTW]' ;;
5556esac
5557
5558# Try without a prefix undercore, then with it.
5559for ac_symprfx in "" "_"; do
5560
5561 # Write the raw and C identifiers.
5562 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5563
5564 # Check to see that the pipe works correctly.
5565 pipe_works=no
5566
5567 rm -f conftest*
5568 cat > conftest.$ac_ext <<EOF
5569#ifdef __cplusplus
5570extern "C" {
5571#endif
5572char nm_test_var;
5573void nm_test_func(){}
5574#ifdef __cplusplus
5575}
5576#endif
5577int main(){nm_test_var='a';nm_test_func();return(0);}
5578EOF
5579
5580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5581 (eval $ac_compile) 2>&5
5582 ac_status=$?
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; then
5585 # Now try to grab the symbols.
5586 nlist=conftest.nm
5587 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5588 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5589 ac_status=$?
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } && test -s "$nlist"; then
5592 # Try sorting and uniquifying the output.
5593 if sort "$nlist" | uniq > "$nlist"T; then
5594 mv -f "$nlist"T "$nlist"
5595 else
5596 rm -f "$nlist"T
5597 fi
5598
5599 # Make sure that we snagged all the symbols we need.
5600 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5601 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5602 cat <<EOF > conftest.$ac_ext
5603#ifdef __cplusplus
5604extern "C" {
5605#endif
5606
5607EOF
5608 # Now generate the symbol file.
5609 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5610
5611 cat <<EOF >> conftest.$ac_ext
5612#if defined (__STDC__) && __STDC__
5613# define lt_ptr_t void *
5614#else
5615# define lt_ptr_t char *
5616# define const
5617#endif
5618
5619/* The mapping between symbol names and symbols. */
5620const struct {
5621 const char *name;
5622 lt_ptr_t address;
5623}
5624lt_preloaded_symbols[] =
5625{
5626EOF
5627 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5628 cat <<\EOF >> conftest.$ac_ext
5629 {0, (lt_ptr_t) 0}
5630};
5631
5632#ifdef __cplusplus
5633}
5634#endif
5635EOF
5636 # Now try linking the two files.
5637 mv conftest.$ac_objext conftstm.$ac_objext
5638 lt_save_LIBS="$LIBS"
5639 lt_save_CFLAGS="$CFLAGS"
5640 LIBS="conftstm.$ac_objext"
5641 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5643 (eval $ac_link) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5647 pipe_works=yes
5648 fi
5649 LIBS="$lt_save_LIBS"
5650 CFLAGS="$lt_save_CFLAGS"
5651 else
5652 echo "cannot find nm_test_func in $nlist" >&5
5653 fi
5654 else
5655 echo "cannot find nm_test_var in $nlist" >&5
5656 fi
5657 else
5658 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5659 fi
5660 else
5661 echo "$progname: failed program was:" >&5
5662 cat conftest.$ac_ext >&5
5663 fi
5664 rm -f conftest* conftst*
5665
5666 # Do not use the global_symbol_pipe unless it works.
5667 if test "$pipe_works" = yes; then
5668 break
5669 else
5670 lt_cv_sys_global_symbol_pipe=
5671 fi
5672done
5673
5674fi
5675
5676if test -z "$lt_cv_sys_global_symbol_pipe"; then
5677 lt_cv_sys_global_symbol_to_cdecl=
5678fi
5679if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5680 echo "$as_me:$LINENO: result: failed" >&5
5681echo "${ECHO_T}failed" >&6
5682else
5683 echo "$as_me:$LINENO: result: ok" >&5
5684echo "${ECHO_T}ok" >&6
5685fi
5686
5687echo "$as_me:$LINENO: checking for objdir" >&5
5688echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5689if test "${lt_cv_objdir+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5691else
5692 rm -f .libs 2>/dev/null
5693mkdir .libs 2>/dev/null
5694if test -d .libs; then
5695 lt_cv_objdir=.libs
5696else
5697 # MS-DOS does not allow filenames that begin with a dot.
5698 lt_cv_objdir=_libs
5699fi
5700rmdir .libs 2>/dev/null
5701fi
5702echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5703echo "${ECHO_T}$lt_cv_objdir" >&6
5704objdir=$lt_cv_objdir
5705
5706
5707
5708
5709
5710case $host_os in
5711aix3*)
5712 # AIX sometimes has problems with the GCC collect2 program. For some
5713 # reason, if we set the COLLECT_NAMES environment variable, the problems
5714 # vanish in a puff of smoke.
5715 if test "X${COLLECT_NAMES+set}" != Xset; then
5716 COLLECT_NAMES=
5717 export COLLECT_NAMES
5718 fi
5719 ;;
5720esac
5721
5722# Sed substitution that helps us do robust quoting. It backslashifies
5723# metacharacters that are still active within double-quoted strings.
5724Xsed='sed -e s/^X//'
5725sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5726
5727# Same as above, but do not quote variable references.
5728double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5729
5730# Sed substitution to delay expansion of an escaped shell variable in a
5731# double_quote_subst'ed string.
5732delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5733
5734# Sed substitution to avoid accidental globbing in evaled expressions
5735no_glob_subst='s/\*/\\\*/g'
5736
5737# Constants:
5738rm="rm -f"
5739
5740# Global variables:
5741default_ofile=libtool
5742can_build_shared=yes
5743
5744# All known linkers require a `.a' archive for static linking (except M$VC,
5745# which needs '.lib').
5746libext=a
5747ltmain="$ac_aux_dir/ltmain.sh"
5748ofile="$default_ofile"
5749with_gnu_ld="$lt_cv_prog_gnu_ld"
5750
5751if test -n "$ac_tool_prefix"; then
5752 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5753set dummy ${ac_tool_prefix}ar; ac_word=$2
5754echo "$as_me:$LINENO: checking for $ac_word" >&5
5755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5756if test "${ac_cv_prog_AR+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5758else
5759 if test -n "$AR"; then
5760 ac_cv_prog_AR="$AR" # Let the user override the test.
5761else
5762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763for as_dir in $PATH
5764do
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769 ac_cv_prog_AR="${ac_tool_prefix}ar"
5770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5772 fi
5773done
5774done
5775
5776fi
5777fi
5778AR=$ac_cv_prog_AR
5779if test -n "$AR"; then
5780 echo "$as_me:$LINENO: result: $AR" >&5
5781echo "${ECHO_T}$AR" >&6
5782else
5783 echo "$as_me:$LINENO: result: no" >&5
5784echo "${ECHO_T}no" >&6
5785fi
5786
5787fi
5788if test -z "$ac_cv_prog_AR"; then
5789 ac_ct_AR=$AR
5790 # Extract the first word of "ar", so it can be a program name with args.
5791set dummy ar; ac_word=$2
5792echo "$as_me:$LINENO: checking for $ac_word" >&5
5793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5794if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796else
5797 if test -n "$ac_ct_AR"; then
5798 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5799else
5800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801for as_dir in $PATH
5802do
5803 IFS=$as_save_IFS
5804 test -z "$as_dir" && as_dir=.
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5807 ac_cv_prog_ac_ct_AR="ar"
5808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5809 break 2
5810 fi
5811done
5812done
5813
5814 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5815fi
5816fi
5817ac_ct_AR=$ac_cv_prog_ac_ct_AR
5818if test -n "$ac_ct_AR"; then
5819 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5820echo "${ECHO_T}$ac_ct_AR" >&6
5821else
5822 echo "$as_me:$LINENO: result: no" >&5
5823echo "${ECHO_T}no" >&6
5824fi
5825
5826 AR=$ac_ct_AR
5827else
5828 AR="$ac_cv_prog_AR"
5829fi
5830
5831if test -n "$ac_tool_prefix"; then
5832 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5833set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5834echo "$as_me:$LINENO: checking for $ac_word" >&5
5835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5836if test "${ac_cv_prog_RANLIB+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5838else
5839 if test -n "$RANLIB"; then
5840 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5841else
5842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843for as_dir in $PATH
5844do
5845 IFS=$as_save_IFS
5846 test -z "$as_dir" && as_dir=.
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5851 break 2
5852 fi
5853done
5854done
5855
5856fi
5857fi
5858RANLIB=$ac_cv_prog_RANLIB
5859if test -n "$RANLIB"; then
5860 echo "$as_me:$LINENO: result: $RANLIB" >&5
5861echo "${ECHO_T}$RANLIB" >&6
5862else
5863 echo "$as_me:$LINENO: result: no" >&5
5864echo "${ECHO_T}no" >&6
5865fi
5866
5867fi
5868if test -z "$ac_cv_prog_RANLIB"; then
5869 ac_ct_RANLIB=$RANLIB
5870 # Extract the first word of "ranlib", so it can be a program name with args.
5871set dummy ranlib; ac_word=$2
5872echo "$as_me:$LINENO: checking for $ac_word" >&5
5873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5874if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5876else
5877 if test -n "$ac_ct_RANLIB"; then
5878 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5879else
5880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881for as_dir in $PATH
5882do
5883 IFS=$as_save_IFS
5884 test -z "$as_dir" && as_dir=.
5885 for ac_exec_ext in '' $ac_executable_extensions; do
5886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5887 ac_cv_prog_ac_ct_RANLIB="ranlib"
5888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5889 break 2
5890 fi
5891done
5892done
5893
5894 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5895fi
5896fi
5897ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5898if test -n "$ac_ct_RANLIB"; then
5899 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5900echo "${ECHO_T}$ac_ct_RANLIB" >&6
5901else
5902 echo "$as_me:$LINENO: result: no" >&5
5903echo "${ECHO_T}no" >&6
5904fi
5905
5906 RANLIB=$ac_ct_RANLIB
5907else
5908 RANLIB="$ac_cv_prog_RANLIB"
5909fi
5910
5911if test -n "$ac_tool_prefix"; then
5912 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5913set dummy ${ac_tool_prefix}strip; ac_word=$2
5914echo "$as_me:$LINENO: checking for $ac_word" >&5
5915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5916if test "${ac_cv_prog_STRIP+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5918else
5919 if test -n "$STRIP"; then
5920 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5921else
5922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923for as_dir in $PATH
5924do
5925 IFS=$as_save_IFS
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 break 2
5932 fi
5933done
5934done
5935
5936fi
5937fi
5938STRIP=$ac_cv_prog_STRIP
5939if test -n "$STRIP"; then
5940 echo "$as_me:$LINENO: result: $STRIP" >&5
5941echo "${ECHO_T}$STRIP" >&6
5942else
5943 echo "$as_me:$LINENO: result: no" >&5
5944echo "${ECHO_T}no" >&6
5945fi
5946
5947fi
5948if test -z "$ac_cv_prog_STRIP"; then
5949 ac_ct_STRIP=$STRIP
5950 # Extract the first word of "strip", so it can be a program name with args.
5951set dummy strip; ac_word=$2
5952echo "$as_me:$LINENO: checking for $ac_word" >&5
5953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5954if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5956else
5957 if test -n "$ac_ct_STRIP"; then
5958 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5959else
5960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961for as_dir in $PATH
5962do
5963 IFS=$as_save_IFS
5964 test -z "$as_dir" && as_dir=.
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5967 ac_cv_prog_ac_ct_STRIP="strip"
5968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 break 2
5970 fi
5971done
5972done
5973
5974 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5975fi
5976fi
5977ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5978if test -n "$ac_ct_STRIP"; then
5979 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5980echo "${ECHO_T}$ac_ct_STRIP" >&6
5981else
5982 echo "$as_me:$LINENO: result: no" >&5
5983echo "${ECHO_T}no" >&6
5984fi
5985
5986 STRIP=$ac_ct_STRIP
5987else
5988 STRIP="$ac_cv_prog_STRIP"
5989fi
5990
5991
5992old_CC="$CC"
5993old_CFLAGS="$CFLAGS"
5994
5995# Set sane defaults for various variables
5996test -z "$AR" && AR=ar
5997test -z "$AR_FLAGS" && AR_FLAGS=cru
5998test -z "$AS" && AS=as
5999test -z "$CC" && CC=cc
6000test -z "$LTCC" && LTCC=$CC
6001test -z "$DLLTOOL" && DLLTOOL=dlltool
6002test -z "$LD" && LD=ld
6003test -z "$LN_S" && LN_S="ln -s"
6004test -z "$MAGIC_CMD" && MAGIC_CMD=file
6005test -z "$NM" && NM=nm
6006test -z "$SED" && SED=sed
6007test -z "$OBJDUMP" && OBJDUMP=objdump
6008test -z "$RANLIB" && RANLIB=:
6009test -z "$STRIP" && STRIP=:
6010test -z "$ac_objext" && ac_objext=o
6011
6012# Determine commands to create old-style static archives.
6013old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6014old_postinstall_cmds='chmod 644 $oldlib'
6015old_postuninstall_cmds=
6016
6017if test -n "$RANLIB"; then
6018 case $host_os in
6019 openbsd*)
6020 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6021 ;;
6022 *)
6023 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6024 ;;
6025 esac
6026 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6027fi
6028
6029# Only perform the check for file, if the check method requires it
6030case $deplibs_check_method in
6031file_magic*)
6032 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6033 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6034echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6035if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6037else
6038 case $MAGIC_CMD in
6039[\\/*] | ?:[\\/]*)
6040 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6041 ;;
6042*)
6043 lt_save_MAGIC_CMD="$MAGIC_CMD"
6044 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6045 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6046 for ac_dir in $ac_dummy; do
6047 IFS="$lt_save_ifs"
6048 test -z "$ac_dir" && ac_dir=.
6049 if test -f $ac_dir/${ac_tool_prefix}file; then
6050 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6051 if test -n "$file_magic_test_file"; then
6052 case $deplibs_check_method in
6053 "file_magic "*)
6054 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6055 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6056 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6057 $EGREP "$file_magic_regex" > /dev/null; then
6058 :
6059 else
6060 cat <<EOF 1>&2
6061
6062*** Warning: the command libtool uses to detect shared libraries,
6063*** $file_magic_cmd, produces output that libtool cannot recognize.
6064*** The result is that libtool may fail to recognize shared libraries
6065*** as such. This will affect the creation of libtool libraries that
6066*** depend on shared libraries, but programs linked with such libtool
6067*** libraries will work regardless of this problem. Nevertheless, you
6068*** may want to report the problem to your system manager and/or to
6069*** bug-libtool@gnu.org
6070
6071EOF
6072 fi ;;
6073 esac
6074 fi
6075 break
6076 fi
6077 done
6078 IFS="$lt_save_ifs"
6079 MAGIC_CMD="$lt_save_MAGIC_CMD"
6080 ;;
6081esac
6082fi
6083
6084MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6085if test -n "$MAGIC_CMD"; then
6086 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6087echo "${ECHO_T}$MAGIC_CMD" >&6
6088else
6089 echo "$as_me:$LINENO: result: no" >&5
6090echo "${ECHO_T}no" >&6
6091fi
6092
6093if test -z "$lt_cv_path_MAGIC_CMD"; then
6094 if test -n "$ac_tool_prefix"; then
6095 echo "$as_me:$LINENO: checking for file" >&5
6096echo $ECHO_N "checking for file... $ECHO_C" >&6
6097if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6099else
6100 case $MAGIC_CMD in
6101[\\/*] | ?:[\\/]*)
6102 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6103 ;;
6104*)
6105 lt_save_MAGIC_CMD="$MAGIC_CMD"
6106 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6107 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6108 for ac_dir in $ac_dummy; do
6109 IFS="$lt_save_ifs"
6110 test -z "$ac_dir" && ac_dir=.
6111 if test -f $ac_dir/file; then
6112 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6113 if test -n "$file_magic_test_file"; then
6114 case $deplibs_check_method in
6115 "file_magic "*)
6116 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6117 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6118 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6119 $EGREP "$file_magic_regex" > /dev/null; then
6120 :
6121 else
6122 cat <<EOF 1>&2
6123
6124*** Warning: the command libtool uses to detect shared libraries,
6125*** $file_magic_cmd, produces output that libtool cannot recognize.
6126*** The result is that libtool may fail to recognize shared libraries
6127*** as such. This will affect the creation of libtool libraries that
6128*** depend on shared libraries, but programs linked with such libtool
6129*** libraries will work regardless of this problem. Nevertheless, you
6130*** may want to report the problem to your system manager and/or to
6131*** bug-libtool@gnu.org
6132
6133EOF
6134 fi ;;
6135 esac
6136 fi
6137 break
6138 fi
6139 done
6140 IFS="$lt_save_ifs"
6141 MAGIC_CMD="$lt_save_MAGIC_CMD"
6142 ;;
6143esac
6144fi
6145
6146MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6147if test -n "$MAGIC_CMD"; then
6148 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6149echo "${ECHO_T}$MAGIC_CMD" >&6
6150else
6151 echo "$as_me:$LINENO: result: no" >&5
6152echo "${ECHO_T}no" >&6
6153fi
6154
6155 else
6156 MAGIC_CMD=:
6157 fi
6158fi
6159
6160 fi
6161 ;;
6162esac
6163
6164enable_dlopen=no
6165enable_win32_dll=no
6166
6167# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6168if test "${enable_libtool_lock+set}" = set; then
6169 enableval="$enable_libtool_lock"
6170
6171fi;
6172test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6173
6174
6175# Check whether --with-pic or --without-pic was given.
6176if test "${with_pic+set}" = set; then
6177 withval="$with_pic"
6178 pic_mode="$withval"
6179else
6180 pic_mode=default
6181fi;
6182test -z "$pic_mode" && pic_mode=default
6183
6184# Use C for the default configuration in the libtool script
6185tagname=
6186lt_save_CC="$CC"
6187ac_ext=c
6188ac_cpp='$CPP $CPPFLAGS'
6189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191ac_compiler_gnu=$ac_cv_c_compiler_gnu
6192
6193
6194# Source file extension for C test sources.
6195ac_ext=c
6196
6197# Object file extension for compiled C test sources.
6198objext=o
6199objext=$objext
6200
6201# Code to be used in simple compile tests
6202lt_simple_compile_test_code="int some_variable = 0;\n"
6203
6204# Code to be used in simple link tests
6205lt_simple_link_test_code='int main(){return(0);}\n'
6206
6207
6208# If no C compiler was specified, use CC.
6209LTCC=${LTCC-"$CC"}
6210
6211# Allow CC to be a program name with arguments.
6212compiler=$CC
6213
6214
6215#
6216# Check for any special shared library compilation flags.
6217#
6218lt_prog_cc_shlib=
6219if test "$GCC" = no; then
6220 case $host_os in
6221 sco3.2v5*)
6222 lt_prog_cc_shlib='-belf'
6223 ;;
6224 esac
6225fi
6226if test -n "$lt_prog_cc_shlib"; then
6227 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6228echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6229 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6230 else
6231 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6232echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6233 lt_cv_prog_cc_can_build_shared=no
6234 fi
6235fi
6236
6237
6238#
6239# Check to make sure the static flag actually works.
6240#
6241echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6242echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6243if test "${lt_prog_compiler_static_works+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" >&6
6245else
6246 lt_prog_compiler_static_works=no
6247 save_LDFLAGS="$LDFLAGS"
6248 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6249 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6250 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6251 # The compiler can only warn and ignore the option if not recognized
6252 # So say no if there are warnings
6253 if test -s conftest.err; then
6254 # Append any errors to the config.log.
6255 cat conftest.err 1>&5
6256 else
6257 lt_prog_compiler_static_works=yes
6258 fi
6259 fi
6260 $rm conftest*
6261 LDFLAGS="$save_LDFLAGS"
6262
6263fi
6264echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6265echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6266
6267if test x"$lt_prog_compiler_static_works" = xyes; then
6268 :
6269else
6270 lt_prog_compiler_static=
6271fi
6272
6273
6274
6275
6276lt_prog_compiler_no_builtin_flag=
6277
6278if test "$GCC" = yes; then
6279 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6280
6281
6282echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6283echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6284if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6286else
6287 lt_cv_prog_compiler_rtti_exceptions=no
6288 ac_outfile=conftest.$ac_objext
6289 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6290 lt_compiler_flag="-fno-rtti -fno-exceptions"
6291 # Insert the option either (1) after the last *FLAGS variable, or
6292 # (2) before a word containing "conftest.", or (3) at the end.
6293 # Note that $ac_compile itself does not contain backslashes and begins
6294 # with a dollar sign (not a hyphen), so the echo should work correctly.
6295 # The option is referenced via a variable to avoid confusing sed.
6296 lt_compile=`echo "$ac_compile" | $SED \
6297 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6298 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6299 -e 's:$: $lt_compiler_flag:'`
Lev Walkin33cded12004-09-19 19:40:52 +00006300 (eval echo "\"\$as_me:6300: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +00006301 (eval "$lt_compile" 2>conftest.err)
6302 ac_status=$?
6303 cat conftest.err >&5
Lev Walkin33cded12004-09-19 19:40:52 +00006304 echo "$as_me:6304: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006305 if (exit $ac_status) && test -s "$ac_outfile"; then
6306 # The compiler can only warn and ignore the option if not recognized
6307 # So say no if there are warnings
6308 if test ! -s conftest.err; then
6309 lt_cv_prog_compiler_rtti_exceptions=yes
6310 fi
6311 fi
6312 $rm conftest*
6313
6314fi
6315echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6316echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6317
6318if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6319 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6320else
6321 :
6322fi
6323
6324fi
6325
6326lt_prog_compiler_wl=
6327lt_prog_compiler_pic=
6328lt_prog_compiler_static=
6329
6330echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6331echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6332
6333 if test "$GCC" = yes; then
6334 lt_prog_compiler_wl='-Wl,'
6335 lt_prog_compiler_static='-static'
6336
6337 case $host_os in
6338 aix*)
6339 # All AIX code is PIC.
6340 if test "$host_cpu" = ia64; then
6341 # AIX 5 now supports IA64 processor
6342 lt_prog_compiler_static='-Bstatic'
6343 fi
6344 ;;
6345
6346 amigaos*)
6347 # FIXME: we need at least 68020 code to build shared libraries, but
6348 # adding the `-m68020' flag to GCC prevents building anything better,
6349 # like `-m68040'.
6350 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6351 ;;
6352
6353 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6354 # PIC is the default for these OSes.
6355 ;;
6356
6357 mingw* | pw32* | os2*)
6358 # This hack is so that the source file can tell whether it is being
6359 # built for inclusion in a dll (and should export symbols for example).
6360 lt_prog_compiler_pic='-DDLL_EXPORT'
6361 ;;
6362
6363 darwin* | rhapsody*)
6364 # PIC is the default on this platform
6365 # Common symbols not allowed in MH_DYLIB files
6366 lt_prog_compiler_pic='-fno-common'
6367 ;;
6368
6369 msdosdjgpp*)
6370 # Just because we use GCC doesn't mean we suddenly get shared libraries
6371 # on systems that don't support them.
6372 lt_prog_compiler_can_build_shared=no
6373 enable_shared=no
6374 ;;
6375
6376 sysv4*MP*)
6377 if test -d /usr/nec; then
6378 lt_prog_compiler_pic=-Kconform_pic
6379 fi
6380 ;;
6381
6382 hpux*)
6383 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6384 # not for PA HP-UX.
6385 case "$host_cpu" in
6386 hppa*64*|ia64*)
6387 # +Z the default
6388 ;;
6389 *)
6390 lt_prog_compiler_pic='-fPIC'
6391 ;;
6392 esac
6393 ;;
6394
6395 *)
6396 lt_prog_compiler_pic='-fPIC'
6397 ;;
6398 esac
6399 else
6400 # PORTME Check for flag to pass linker flags through the system compiler.
6401 case $host_os in
6402 aix*)
6403 lt_prog_compiler_wl='-Wl,'
6404 if test "$host_cpu" = ia64; then
6405 # AIX 5 now supports IA64 processor
6406 lt_prog_compiler_static='-Bstatic'
6407 else
6408 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6409 fi
6410 ;;
6411
6412 mingw* | pw32* | os2*)
6413 # This hack is so that the source file can tell whether it is being
6414 # built for inclusion in a dll (and should export symbols for example).
6415 lt_prog_compiler_pic='-DDLL_EXPORT'
6416 ;;
6417
6418 hpux9* | hpux10* | hpux11*)
6419 lt_prog_compiler_wl='-Wl,'
6420 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6421 # not for PA HP-UX.
6422 case "$host_cpu" in
6423 hppa*64*|ia64*)
6424 # +Z the default
6425 ;;
6426 *)
6427 lt_prog_compiler_pic='+Z'
6428 ;;
6429 esac
6430 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6431 lt_prog_compiler_static='${wl}-a ${wl}archive'
6432 ;;
6433
6434 irix5* | irix6* | nonstopux*)
6435 lt_prog_compiler_wl='-Wl,'
6436 # PIC (with -KPIC) is the default.
6437 lt_prog_compiler_static='-non_shared'
6438 ;;
6439
6440 newsos6)
6441 lt_prog_compiler_pic='-KPIC'
6442 lt_prog_compiler_static='-Bstatic'
6443 ;;
6444
6445 linux*)
6446 case $CC in
6447 icc* | ecc*)
6448 lt_prog_compiler_wl='-Wl,'
6449 lt_prog_compiler_pic='-KPIC'
6450 lt_prog_compiler_static='-static'
6451 ;;
6452 ccc*)
6453 lt_prog_compiler_wl='-Wl,'
6454 # All Alpha code is PIC.
6455 lt_prog_compiler_static='-non_shared'
6456 ;;
6457 esac
6458 ;;
6459
6460 osf3* | osf4* | osf5*)
6461 lt_prog_compiler_wl='-Wl,'
6462 # All OSF/1 code is PIC.
6463 lt_prog_compiler_static='-non_shared'
6464 ;;
6465
6466 sco3.2v5*)
6467 lt_prog_compiler_pic='-Kpic'
6468 lt_prog_compiler_static='-dn'
6469 ;;
6470
6471 solaris*)
6472 lt_prog_compiler_wl='-Wl,'
6473 lt_prog_compiler_pic='-KPIC'
6474 lt_prog_compiler_static='-Bstatic'
6475 ;;
6476
6477 sunos4*)
6478 lt_prog_compiler_wl='-Qoption ld '
6479 lt_prog_compiler_pic='-PIC'
6480 lt_prog_compiler_static='-Bstatic'
6481 ;;
6482
6483 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6484 lt_prog_compiler_wl='-Wl,'
6485 lt_prog_compiler_pic='-KPIC'
6486 lt_prog_compiler_static='-Bstatic'
6487 ;;
6488
6489 sysv4*MP*)
6490 if test -d /usr/nec ;then
6491 lt_prog_compiler_pic='-Kconform_pic'
6492 lt_prog_compiler_static='-Bstatic'
6493 fi
6494 ;;
6495
6496 uts4*)
6497 lt_prog_compiler_pic='-pic'
6498 lt_prog_compiler_static='-Bstatic'
6499 ;;
6500
6501 *)
6502 lt_prog_compiler_can_build_shared=no
6503 ;;
6504 esac
6505 fi
6506
6507echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6508echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6509
6510#
6511# Check to make sure the PIC flag actually works.
6512#
6513if test -n "$lt_prog_compiler_pic"; then
6514
6515echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6516echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6517if test "${lt_prog_compiler_pic_works+set}" = set; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6519else
6520 lt_prog_compiler_pic_works=no
6521 ac_outfile=conftest.$ac_objext
6522 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6523 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6524 # Insert the option either (1) after the last *FLAGS variable, or
6525 # (2) before a word containing "conftest.", or (3) at the end.
6526 # Note that $ac_compile itself does not contain backslashes and begins
6527 # with a dollar sign (not a hyphen), so the echo should work correctly.
6528 # The option is referenced via a variable to avoid confusing sed.
6529 lt_compile=`echo "$ac_compile" | $SED \
6530 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6531 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6532 -e 's:$: $lt_compiler_flag:'`
Lev Walkin33cded12004-09-19 19:40:52 +00006533 (eval echo "\"\$as_me:6533: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +00006534 (eval "$lt_compile" 2>conftest.err)
6535 ac_status=$?
6536 cat conftest.err >&5
Lev Walkin33cded12004-09-19 19:40:52 +00006537 echo "$as_me:6537: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006538 if (exit $ac_status) && test -s "$ac_outfile"; then
6539 # The compiler can only warn and ignore the option if not recognized
6540 # So say no if there are warnings
6541 if test ! -s conftest.err; then
6542 lt_prog_compiler_pic_works=yes
6543 fi
6544 fi
6545 $rm conftest*
6546
6547fi
6548echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6549echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6550
6551if test x"$lt_prog_compiler_pic_works" = xyes; then
6552 case $lt_prog_compiler_pic in
6553 "" | " "*) ;;
6554 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6555 esac
6556else
6557 lt_prog_compiler_pic=
6558 lt_prog_compiler_can_build_shared=no
6559fi
6560
6561fi
6562case "$host_os" in
6563 # For platforms which do not support PIC, -DPIC is meaningless:
6564 *djgpp*)
6565 lt_prog_compiler_pic=
6566 ;;
6567 *)
6568 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6569 ;;
6570esac
6571
6572echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6573echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6574if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6576else
6577 lt_cv_prog_compiler_c_o=no
6578 $rm -r conftest 2>/dev/null
6579 mkdir conftest
6580 cd conftest
6581 mkdir out
6582 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6583
6584 lt_compiler_flag="-o out/conftest2.$ac_objext"
6585 # Insert the option either (1) after the last *FLAGS variable, or
6586 # (2) before a word containing "conftest.", or (3) at the end.
6587 # Note that $ac_compile itself does not contain backslashes and begins
6588 # with a dollar sign (not a hyphen), so the echo should work correctly.
6589 lt_compile=`echo "$ac_compile" | $SED \
6590 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6592 -e 's:$: $lt_compiler_flag:'`
Lev Walkin33cded12004-09-19 19:40:52 +00006593 (eval echo "\"\$as_me:6593: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +00006594 (eval "$lt_compile" 2>out/conftest.err)
6595 ac_status=$?
6596 cat out/conftest.err >&5
Lev Walkin33cded12004-09-19 19:40:52 +00006597 echo "$as_me:6597: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006598 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6599 then
6600 # The compiler can only warn and ignore the option if not recognized
6601 # So say no if there are warnings
6602 if test ! -s out/conftest.err; then
6603 lt_cv_prog_compiler_c_o=yes
6604 fi
6605 fi
6606 chmod u+w .
6607 $rm conftest*
6608 # SGI C++ compiler will create directory out/ii_files/ for
6609 # template instantiation
6610 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6611 $rm out/* && rmdir out
6612 cd ..
6613 rmdir conftest
6614 $rm conftest*
6615
6616fi
6617echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6618echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6619
6620
6621hard_links="nottested"
6622if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6623 # do not overwrite the value of need_locks provided by the user
6624 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6625echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6626 hard_links=yes
6627 $rm conftest*
6628 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6629 touch conftest.a
6630 ln conftest.a conftest.b 2>&5 || hard_links=no
6631 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6632 echo "$as_me:$LINENO: result: $hard_links" >&5
6633echo "${ECHO_T}$hard_links" >&6
6634 if test "$hard_links" = no; then
6635 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6636echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6637 need_locks=warn
6638 fi
6639else
6640 need_locks=no
6641fi
6642
6643echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6644echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6645
6646 runpath_var=
6647 allow_undefined_flag=
6648 enable_shared_with_static_runtimes=no
6649 archive_cmds=
6650 archive_expsym_cmds=
6651 old_archive_From_new_cmds=
6652 old_archive_from_expsyms_cmds=
6653 export_dynamic_flag_spec=
6654 whole_archive_flag_spec=
6655 thread_safe_flag_spec=
6656 hardcode_libdir_flag_spec=
6657 hardcode_libdir_flag_spec_ld=
6658 hardcode_libdir_separator=
6659 hardcode_direct=no
6660 hardcode_minus_L=no
6661 hardcode_shlibpath_var=unsupported
6662 link_all_deplibs=unknown
6663 hardcode_automatic=no
6664 module_cmds=
6665 module_expsym_cmds=
6666 always_export_symbols=no
6667 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6668 # include_expsyms should be a list of space-separated symbols to be *always*
6669 # included in the symbol list
6670 include_expsyms=
6671 # exclude_expsyms can be an extended regexp of symbols to exclude
6672 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6673 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6674 # as well as any symbol that contains `d'.
6675 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6676 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6677 # platforms (ab)use it in PIC code, but their linkers get confused if
6678 # the symbol is explicitly referenced. Since portable code cannot
6679 # rely on this symbol name, it's probably fine to never include it in
6680 # preloaded symbol tables.
6681 extract_expsyms_cmds=
6682
6683 case $host_os in
6684 cygwin* | mingw* | pw32*)
6685 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6686 # When not using gcc, we currently assume that we are using
6687 # Microsoft Visual C++.
6688 if test "$GCC" != yes; then
6689 with_gnu_ld=no
6690 fi
6691 ;;
6692 openbsd*)
6693 with_gnu_ld=no
6694 ;;
6695 esac
6696
6697 ld_shlibs=yes
6698 if test "$with_gnu_ld" = yes; then
6699 # If archive_cmds runs LD, not CC, wlarc should be empty
6700 wlarc='${wl}'
6701
6702 # See if GNU ld supports shared libraries.
6703 case $host_os in
6704 aix3* | aix4* | aix5*)
6705 # On AIX/PPC, the GNU linker is very broken
6706 if test "$host_cpu" != ia64; then
6707 ld_shlibs=no
6708 cat <<EOF 1>&2
6709
6710*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6711*** to be unable to reliably create shared libraries on AIX.
6712*** Therefore, libtool is disabling shared libraries support. If you
6713*** really care for shared libraries, you may want to modify your PATH
6714*** so that a non-GNU linker is found, and then restart.
6715
6716EOF
6717 fi
6718 ;;
6719
6720 amigaos*)
6721 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)'
6722 hardcode_libdir_flag_spec='-L$libdir'
6723 hardcode_minus_L=yes
6724
6725 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6726 # that the semantics of dynamic libraries on AmigaOS, at least up
6727 # to version 4, is to share data among multiple programs linked
6728 # with the same dynamic library. Since this doesn't match the
6729 # behavior of shared libraries on other platforms, we can't use
6730 # them.
6731 ld_shlibs=no
6732 ;;
6733
6734 beos*)
6735 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6736 allow_undefined_flag=unsupported
6737 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6738 # support --undefined. This deserves some investigation. FIXME
6739 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6740 else
6741 ld_shlibs=no
6742 fi
6743 ;;
6744
6745 cygwin* | mingw* | pw32*)
6746 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6747 # as there is no search path for DLLs.
6748 hardcode_libdir_flag_spec='-L$libdir'
6749 allow_undefined_flag=unsupported
6750 always_export_symbols=no
6751 enable_shared_with_static_runtimes=yes
6752 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6753
6754 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6755 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6756 # If the export-symbols file already is a .def file (1st line
6757 # is EXPORTS), use it as is; otherwise, prepend...
6758 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6759 cp $export_symbols $output_objdir/$soname.def;
6760 else
6761 echo EXPORTS > $output_objdir/$soname.def;
6762 cat $export_symbols >> $output_objdir/$soname.def;
6763 fi~
6764 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6765 else
6766 ld_shlibs=no
6767 fi
6768 ;;
6769
6770 netbsd*)
6771 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6772 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6773 wlarc=
6774 else
6775 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6776 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6777 fi
6778 ;;
6779
6780 solaris* | sysv5*)
6781 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6782 ld_shlibs=no
6783 cat <<EOF 1>&2
6784
6785*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6786*** create shared libraries on Solaris systems. Therefore, libtool
6787*** is disabling shared libraries support. We urge you to upgrade GNU
6788*** binutils to release 2.9.1 or newer. Another option is to modify
6789*** your PATH or compiler configuration so that the native linker is
6790*** used, and then restart.
6791
6792EOF
6793 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6795 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6796 else
6797 ld_shlibs=no
6798 fi
6799 ;;
6800
6801 sunos4*)
6802 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6803 wlarc=
6804 hardcode_direct=yes
6805 hardcode_shlibpath_var=no
6806 ;;
6807
6808 linux*)
6809 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6810 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6811 archive_cmds="$tmp_archive_cmds"
6812 supports_anon_versioning=no
6813 case `$LD -v 2>/dev/null` in
6814 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6815 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6816 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6817 *\ 2.11.*) ;; # other 2.11 versions
6818 *) supports_anon_versioning=yes ;;
6819 esac
6820 if test $supports_anon_versioning = yes; then
6821 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6822cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6823$echo "local: *; };" >> $output_objdir/$libname.ver~
6824 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6825 else
6826 archive_expsym_cmds="$tmp_archive_cmds"
6827 fi
6828 else
6829 ld_shlibs=no
6830 fi
6831 ;;
6832
6833 *)
6834 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6835 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6836 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6837 else
6838 ld_shlibs=no
6839 fi
6840 ;;
6841 esac
6842
6843 if test "$ld_shlibs" = yes; then
6844 runpath_var=LD_RUN_PATH
6845 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6846 export_dynamic_flag_spec='${wl}--export-dynamic'
6847 # ancient GNU ld didn't support --whole-archive et. al.
6848 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6849 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6850 else
6851 whole_archive_flag_spec=
6852 fi
6853 fi
6854 else
6855 # PORTME fill in a description of your system's linker (not GNU ld)
6856 case $host_os in
6857 aix3*)
6858 allow_undefined_flag=unsupported
6859 always_export_symbols=yes
6860 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'
6861 # Note: this linker hardcodes the directories in LIBPATH if there
6862 # are no directories specified by -L.
6863 hardcode_minus_L=yes
6864 if test "$GCC" = yes && test -z "$link_static_flag"; then
6865 # Neither direct hardcoding nor static linking is supported with a
6866 # broken collect2.
6867 hardcode_direct=unsupported
6868 fi
6869 ;;
6870
6871 aix4* | aix5*)
6872 if test "$host_cpu" = ia64; then
6873 # On IA64, the linker does run time linking by default, so we don't
6874 # have to do anything special.
6875 aix_use_runtimelinking=no
6876 exp_sym_flag='-Bexport'
6877 no_entry_flag=""
6878 else
6879 # If we're using GNU nm, then we don't want the "-C" option.
6880 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6881 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6882 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'
6883 else
6884 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'
6885 fi
6886 aix_use_runtimelinking=no
6887
6888 # Test if we are trying to use run time linking or normal
6889 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6890 # need to do runtime linking.
6891 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6892 for ld_flag in $LDFLAGS; do
6893 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6894 aix_use_runtimelinking=yes
6895 break
6896 fi
6897 done
6898 esac
6899
6900 exp_sym_flag='-bexport'
6901 no_entry_flag='-bnoentry'
6902 fi
6903
6904 # When large executables or shared objects are built, AIX ld can
6905 # have problems creating the table of contents. If linking a library
6906 # or program results in "error TOC overflow" add -mminimal-toc to
6907 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6908 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6909
6910 archive_cmds=''
6911 hardcode_direct=yes
6912 hardcode_libdir_separator=':'
6913 link_all_deplibs=yes
6914
6915 if test "$GCC" = yes; then
6916 case $host_os in aix4.012|aix4.012.*)
6917 # We only want to do this on AIX 4.2 and lower, the check
6918 # below for broken collect2 doesn't work under 4.3+
6919 collect2name=`${CC} -print-prog-name=collect2`
6920 if test -f "$collect2name" && \
6921 strings "$collect2name" | grep resolve_lib_name >/dev/null
6922 then
6923 # We have reworked collect2
6924 hardcode_direct=yes
6925 else
6926 # We have old collect2
6927 hardcode_direct=unsupported
6928 # It fails to find uninstalled libraries when the uninstalled
6929 # path is not listed in the libpath. Setting hardcode_minus_L
6930 # to unsupported forces relinking
6931 hardcode_minus_L=yes
6932 hardcode_libdir_flag_spec='-L$libdir'
6933 hardcode_libdir_separator=
6934 fi
6935 esac
6936 shared_flag='-shared'
6937 else
6938 # not using gcc
6939 if test "$host_cpu" = ia64; then
6940 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6941 # chokes on -Wl,-G. The following line is correct:
6942 shared_flag='-G'
6943 else
6944 if test "$aix_use_runtimelinking" = yes; then
6945 shared_flag='${wl}-G'
6946 else
6947 shared_flag='${wl}-bM:SRE'
6948 fi
6949 fi
6950 fi
6951
6952 # It seems that -bexpall does not export symbols beginning with
6953 # underscore (_), so it is better to generate a list of symbols to export.
6954 always_export_symbols=yes
6955 if test "$aix_use_runtimelinking" = yes; then
6956 # Warning - without using the other runtime loading flags (-brtl),
6957 # -berok will link without error, but may produce a broken library.
6958 allow_undefined_flag='-berok'
6959 # Determine the default libpath from the value encoded in an empty executable.
6960 cat >conftest.$ac_ext <<_ACEOF
6961/* confdefs.h. */
6962_ACEOF
6963cat confdefs.h >>conftest.$ac_ext
6964cat >>conftest.$ac_ext <<_ACEOF
6965/* end confdefs.h. */
6966
6967int
6968main ()
6969{
6970
6971 ;
6972 return 0;
6973}
6974_ACEOF
6975rm -f conftest.$ac_objext conftest$ac_exeext
6976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6977 (eval $ac_link) 2>conftest.er1
6978 ac_status=$?
6979 grep -v '^ *+' conftest.er1 >conftest.err
6980 rm -f conftest.er1
6981 cat conftest.err >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } &&
6984 { ac_try='test -z "$ac_c_werror_flag"
6985 || test ! -s conftest.err'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987 (eval $ac_try) 2>&5
6988 ac_status=$?
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; } &&
6991 { ac_try='test -s conftest$ac_exeext'
6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993 (eval $ac_try) 2>&5
6994 ac_status=$?
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); }; }; then
6997
6998aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6999}'`
7000# Check for a 64-bit object if we didn't find anything.
7001if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7002}'`; fi
7003else
7004 echo "$as_me: failed program was:" >&5
7005sed 's/^/| /' conftest.$ac_ext >&5
7006
7007fi
7008rm -f conftest.err conftest.$ac_objext \
7009 conftest$ac_exeext conftest.$ac_ext
7010if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7011
7012 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7013 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7014 else
7015 if test "$host_cpu" = ia64; then
7016 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7017 allow_undefined_flag="-z nodefs"
7018 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7019 else
7020 # Determine the default libpath from the value encoded in an empty executable.
7021 cat >conftest.$ac_ext <<_ACEOF
7022/* confdefs.h. */
7023_ACEOF
7024cat confdefs.h >>conftest.$ac_ext
7025cat >>conftest.$ac_ext <<_ACEOF
7026/* end confdefs.h. */
7027
7028int
7029main ()
7030{
7031
7032 ;
7033 return 0;
7034}
7035_ACEOF
7036rm -f conftest.$ac_objext conftest$ac_exeext
7037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7038 (eval $ac_link) 2>conftest.er1
7039 ac_status=$?
7040 grep -v '^ *+' conftest.er1 >conftest.err
7041 rm -f conftest.er1
7042 cat conftest.err >&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } &&
7045 { ac_try='test -z "$ac_c_werror_flag"
7046 || test ! -s conftest.err'
7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048 (eval $ac_try) 2>&5
7049 ac_status=$?
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; } &&
7052 { ac_try='test -s conftest$ac_exeext'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 (eval $ac_try) 2>&5
7055 ac_status=$?
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; }; then
7058
7059aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7060}'`
7061# Check for a 64-bit object if we didn't find anything.
7062if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7063}'`; fi
7064else
7065 echo "$as_me: failed program was:" >&5
7066sed 's/^/| /' conftest.$ac_ext >&5
7067
7068fi
7069rm -f conftest.err conftest.$ac_objext \
7070 conftest$ac_exeext conftest.$ac_ext
7071if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7072
7073 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7074 # Warning - without using the other run time loading flags,
7075 # -berok will link without error, but may produce a broken library.
7076 no_undefined_flag=' ${wl}-bernotok'
7077 allow_undefined_flag=' ${wl}-berok'
7078 # -bexpall does not export symbols beginning with underscore (_)
7079 always_export_symbols=yes
7080 # Exported symbols can be pulled into shared objects from archives
7081 whole_archive_flag_spec=' '
7082 archive_cmds_need_lc=yes
7083 # This is similar to how AIX traditionally builds it's shared libraries.
7084 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7085 fi
7086 fi
7087 ;;
7088
7089 amigaos*)
7090 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)'
7091 hardcode_libdir_flag_spec='-L$libdir'
7092 hardcode_minus_L=yes
7093 # see comment about different semantics on the GNU ld section
7094 ld_shlibs=no
7095 ;;
7096
7097 bsdi4*)
7098 export_dynamic_flag_spec=-rdynamic
7099 ;;
7100
7101 cygwin* | mingw* | pw32*)
7102 # When not using gcc, we currently assume that we are using
7103 # Microsoft Visual C++.
7104 # hardcode_libdir_flag_spec is actually meaningless, as there is
7105 # no search path for DLLs.
7106 hardcode_libdir_flag_spec=' '
7107 allow_undefined_flag=unsupported
7108 # Tell ltmain to make .lib files, not .a files.
7109 libext=lib
7110 # Tell ltmain to make .dll files, not .so files.
7111 shrext_cmds=".dll"
7112 # FIXME: Setting linknames here is a bad hack.
7113 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7114 # The linker will automatically build a .lib file if we build a DLL.
7115 old_archive_From_new_cmds='true'
7116 # FIXME: Should let the user specify the lib program.
7117 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7118 fix_srcfile_path='`cygpath -w "$srcfile"`'
7119 enable_shared_with_static_runtimes=yes
7120 ;;
7121
7122 darwin* | rhapsody*)
7123 if test "$GXX" = yes ; then
7124 archive_cmds_need_lc=no
7125 case "$host_os" in
7126 rhapsody* | darwin1.[012])
7127 allow_undefined_flag='-undefined suppress'
7128 ;;
7129 *) # Darwin 1.3 on
7130 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7131 allow_undefined_flag='-flat_namespace -undefined suppress'
7132 else
7133 case ${MACOSX_DEPLOYMENT_TARGET} in
7134 10.[012])
7135 allow_undefined_flag='-flat_namespace -undefined suppress'
7136 ;;
7137 10.*)
7138 allow_undefined_flag='-undefined dynamic_lookup'
7139 ;;
7140 esac
7141 fi
7142 ;;
7143 esac
7144 lt_int_apple_cc_single_mod=no
7145 output_verbose_link_cmd='echo'
7146 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7147 lt_int_apple_cc_single_mod=yes
7148 fi
7149 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7150 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7151 else
7152 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7153 fi
7154 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7155 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7156 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7157 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7158 else
7159 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7160 fi
7161 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}'
7162 hardcode_direct=no
7163 hardcode_automatic=yes
7164 hardcode_shlibpath_var=unsupported
7165 whole_archive_flag_spec='-all_load $convenience'
7166 link_all_deplibs=yes
7167 else
7168 ld_shlibs=no
7169 fi
7170 ;;
7171
7172 dgux*)
7173 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7174 hardcode_libdir_flag_spec='-L$libdir'
7175 hardcode_shlibpath_var=no
7176 ;;
7177
7178 freebsd1*)
7179 ld_shlibs=no
7180 ;;
7181
7182 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7183 # support. Future versions do this automatically, but an explicit c++rt0.o
7184 # does not break anything, and helps significantly (at the cost of a little
7185 # extra space).
7186 freebsd2.2*)
7187 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7188 hardcode_libdir_flag_spec='-R$libdir'
7189 hardcode_direct=yes
7190 hardcode_shlibpath_var=no
7191 ;;
7192
7193 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7194 freebsd2*)
7195 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7196 hardcode_direct=yes
7197 hardcode_minus_L=yes
7198 hardcode_shlibpath_var=no
7199 ;;
7200
7201 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7202 freebsd* | kfreebsd*-gnu)
7203 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7204 hardcode_libdir_flag_spec='-R$libdir'
7205 hardcode_direct=yes
7206 hardcode_shlibpath_var=no
7207 ;;
7208
7209 hpux9*)
7210 if test "$GCC" = yes; then
7211 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'
7212 else
7213 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'
7214 fi
7215 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7216 hardcode_libdir_separator=:
7217 hardcode_direct=yes
7218
7219 # hardcode_minus_L: Not really in the search PATH,
7220 # but as the default location of the library.
7221 hardcode_minus_L=yes
7222 export_dynamic_flag_spec='${wl}-E'
7223 ;;
7224
7225 hpux10* | hpux11*)
7226 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7227 case "$host_cpu" in
7228 hppa*64*|ia64*)
7229 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7230 ;;
7231 *)
7232 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7233 ;;
7234 esac
7235 else
7236 case "$host_cpu" in
7237 hppa*64*|ia64*)
7238 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7239 ;;
7240 *)
7241 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7242 ;;
7243 esac
7244 fi
7245 if test "$with_gnu_ld" = no; then
7246 case "$host_cpu" in
7247 hppa*64*)
7248 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7249 hardcode_libdir_flag_spec_ld='+b $libdir'
7250 hardcode_libdir_separator=:
7251 hardcode_direct=no
7252 hardcode_shlibpath_var=no
7253 ;;
7254 ia64*)
7255 hardcode_libdir_flag_spec='-L$libdir'
7256 hardcode_direct=no
7257 hardcode_shlibpath_var=no
7258
7259 # hardcode_minus_L: Not really in the search PATH,
7260 # but as the default location of the library.
7261 hardcode_minus_L=yes
7262 ;;
7263 *)
7264 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7265 hardcode_libdir_separator=:
7266 hardcode_direct=yes
7267 export_dynamic_flag_spec='${wl}-E'
7268
7269 # hardcode_minus_L: Not really in the search PATH,
7270 # but as the default location of the library.
7271 hardcode_minus_L=yes
7272 ;;
7273 esac
7274 fi
7275 ;;
7276
7277 irix5* | irix6* | nonstopux*)
7278 if test "$GCC" = yes; then
7279 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'
7280 else
7281 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'
7282 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7283 fi
7284 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7285 hardcode_libdir_separator=:
7286 link_all_deplibs=yes
7287 ;;
7288
7289 netbsd*)
7290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7291 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7292 else
7293 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7294 fi
7295 hardcode_libdir_flag_spec='-R$libdir'
7296 hardcode_direct=yes
7297 hardcode_shlibpath_var=no
7298 ;;
7299
7300 newsos6)
7301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7302 hardcode_direct=yes
7303 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7304 hardcode_libdir_separator=:
7305 hardcode_shlibpath_var=no
7306 ;;
7307
7308 openbsd*)
7309 hardcode_direct=yes
7310 hardcode_shlibpath_var=no
7311 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7312 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7313 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7314 export_dynamic_flag_spec='${wl}-E'
7315 else
7316 case $host_os in
7317 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7318 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7319 hardcode_libdir_flag_spec='-R$libdir'
7320 ;;
7321 *)
7322 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7323 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7324 ;;
7325 esac
7326 fi
7327 ;;
7328
7329 os2*)
7330 hardcode_libdir_flag_spec='-L$libdir'
7331 hardcode_minus_L=yes
7332 allow_undefined_flag=unsupported
7333 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'
7334 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7335 ;;
7336
7337 osf3*)
7338 if test "$GCC" = yes; then
7339 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7340 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'
7341 else
7342 allow_undefined_flag=' -expect_unresolved \*'
7343 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'
7344 fi
7345 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7346 hardcode_libdir_separator=:
7347 ;;
7348
7349 osf4* | osf5*) # as osf3* with the addition of -msym flag
7350 if test "$GCC" = yes; then
7351 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7352 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'
7353 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7354 else
7355 allow_undefined_flag=' -expect_unresolved \*'
7356 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'
7357 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7358 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7359
7360 # Both c and cxx compiler support -rpath directly
7361 hardcode_libdir_flag_spec='-rpath $libdir'
7362 fi
7363 hardcode_libdir_separator=:
7364 ;;
7365
7366 sco3.2v5*)
7367 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7368 hardcode_shlibpath_var=no
7369 export_dynamic_flag_spec='${wl}-Bexport'
7370 runpath_var=LD_RUN_PATH
7371 hardcode_runpath_var=yes
7372 ;;
7373
7374 solaris*)
7375 no_undefined_flag=' -z text'
7376 if test "$GCC" = yes; then
7377 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7378 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7379 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7380 else
7381 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7382 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7383 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7384 fi
7385 hardcode_libdir_flag_spec='-R$libdir'
7386 hardcode_shlibpath_var=no
7387 case $host_os in
7388 solaris2.[0-5] | solaris2.[0-5].*) ;;
7389 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7390 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7391 esac
7392 link_all_deplibs=yes
7393 ;;
7394
7395 sunos4*)
7396 if test "x$host_vendor" = xsequent; then
7397 # Use $CC to link under sequent, because it throws in some extra .o
7398 # files that make .init and .fini sections work.
7399 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7400 else
7401 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7402 fi
7403 hardcode_libdir_flag_spec='-L$libdir'
7404 hardcode_direct=yes
7405 hardcode_minus_L=yes
7406 hardcode_shlibpath_var=no
7407 ;;
7408
7409 sysv4)
7410 case $host_vendor in
7411 sni)
7412 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7413 hardcode_direct=yes # is this really true???
7414 ;;
7415 siemens)
7416 ## LD is ld it makes a PLAMLIB
7417 ## CC just makes a GrossModule.
7418 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7419 reload_cmds='$CC -r -o $output$reload_objs'
7420 hardcode_direct=no
7421 ;;
7422 motorola)
7423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7424 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7425 ;;
7426 esac
7427 runpath_var='LD_RUN_PATH'
7428 hardcode_shlibpath_var=no
7429 ;;
7430
7431 sysv4.3*)
7432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7433 hardcode_shlibpath_var=no
7434 export_dynamic_flag_spec='-Bexport'
7435 ;;
7436
7437 sysv4*MP*)
7438 if test -d /usr/nec; then
7439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7440 hardcode_shlibpath_var=no
7441 runpath_var=LD_RUN_PATH
7442 hardcode_runpath_var=yes
7443 ld_shlibs=yes
7444 fi
7445 ;;
7446
7447 sysv4.2uw2*)
7448 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7449 hardcode_direct=yes
7450 hardcode_minus_L=no
7451 hardcode_shlibpath_var=no
7452 hardcode_runpath_var=yes
7453 runpath_var=LD_RUN_PATH
7454 ;;
7455
7456 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7457 no_undefined_flag='${wl}-z ${wl}text'
7458 if test "$GCC" = yes; then
7459 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7460 else
7461 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7462 fi
7463 runpath_var='LD_RUN_PATH'
7464 hardcode_shlibpath_var=no
7465 ;;
7466
7467 sysv5*)
7468 no_undefined_flag=' -z text'
7469 # $CC -shared without GNU ld will not create a library from C++
7470 # object files and a static libstdc++, better avoid it by now
7471 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7472 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7473 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7474 hardcode_libdir_flag_spec=
7475 hardcode_shlibpath_var=no
7476 runpath_var='LD_RUN_PATH'
7477 ;;
7478
7479 uts4*)
7480 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7481 hardcode_libdir_flag_spec='-L$libdir'
7482 hardcode_shlibpath_var=no
7483 ;;
7484
7485 *)
7486 ld_shlibs=no
7487 ;;
7488 esac
7489 fi
7490
7491echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7492echo "${ECHO_T}$ld_shlibs" >&6
7493test "$ld_shlibs" = no && can_build_shared=no
7494
7495variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7496if test "$GCC" = yes; then
7497 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7498fi
7499
7500#
7501# Do we need to explicitly link libc?
7502#
7503case "x$archive_cmds_need_lc" in
7504x|xyes)
7505 # Assume -lc should be added
7506 archive_cmds_need_lc=yes
7507
7508 if test "$enable_shared" = yes && test "$GCC" = yes; then
7509 case $archive_cmds in
7510 *'~'*)
7511 # FIXME: we may have to deal with multi-command sequences.
7512 ;;
7513 '$CC '*)
7514 # Test whether the compiler implicitly links with -lc since on some
7515 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7516 # to ld, don't add -lc before -lgcc.
7517 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7518echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7519 $rm conftest*
7520 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7521
7522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7523 (eval $ac_compile) 2>&5
7524 ac_status=$?
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); } 2>conftest.err; then
7527 soname=conftest
7528 lib=conftest
7529 libobjs=conftest.$ac_objext
7530 deplibs=
7531 wl=$lt_prog_compiler_wl
7532 compiler_flags=-v
7533 linker_flags=-v
7534 verstring=
7535 output_objdir=.
7536 libname=conftest
7537 lt_save_allow_undefined_flag=$allow_undefined_flag
7538 allow_undefined_flag=
7539 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7540 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7541 ac_status=$?
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); }
7544 then
7545 archive_cmds_need_lc=no
7546 else
7547 archive_cmds_need_lc=yes
7548 fi
7549 allow_undefined_flag=$lt_save_allow_undefined_flag
7550 else
7551 cat conftest.err 1>&5
7552 fi
7553 $rm conftest*
7554 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7555echo "${ECHO_T}$archive_cmds_need_lc" >&6
7556 ;;
7557 esac
7558 fi
7559 ;;
7560esac
7561
7562echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7563echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7564library_names_spec=
7565libname_spec='lib$name'
7566soname_spec=
7567shrext_cmds=".so"
7568postinstall_cmds=
7569postuninstall_cmds=
7570finish_cmds=
7571finish_eval=
7572shlibpath_var=
7573shlibpath_overrides_runpath=unknown
7574version_type=none
7575dynamic_linker="$host_os ld.so"
7576sys_lib_dlsearch_path_spec="/lib /usr/lib"
7577if test "$GCC" = yes; then
7578 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7579 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7580 # if the path contains ";" then we assume it to be the separator
7581 # otherwise default to the standard path separator (i.e. ":") - it is
7582 # assumed that no part of a normal pathname contains ";" but that should
7583 # okay in the real world where ";" in dirpaths is itself problematic.
7584 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7585 else
7586 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7587 fi
7588else
7589 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7590fi
7591need_lib_prefix=unknown
7592hardcode_into_libs=no
7593
7594# when you set need_version to no, make sure it does not cause -set_version
7595# flags to be left without arguments
7596need_version=unknown
7597
7598case $host_os in
7599aix3*)
7600 version_type=linux
7601 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7602 shlibpath_var=LIBPATH
7603
7604 # AIX 3 has no versioning support, so we append a major version to the name.
7605 soname_spec='${libname}${release}${shared_ext}$major'
7606 ;;
7607
7608aix4* | aix5*)
7609 version_type=linux
7610 need_lib_prefix=no
7611 need_version=no
7612 hardcode_into_libs=yes
7613 if test "$host_cpu" = ia64; then
7614 # AIX 5 supports IA64
7615 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7616 shlibpath_var=LD_LIBRARY_PATH
7617 else
7618 # With GCC up to 2.95.x, collect2 would create an import file
7619 # for dependence libraries. The import file would start with
7620 # the line `#! .'. This would cause the generated library to
7621 # depend on `.', always an invalid library. This was fixed in
7622 # development snapshots of GCC prior to 3.0.
7623 case $host_os in
7624 aix4 | aix4.[01] | aix4.[01].*)
7625 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7626 echo ' yes '
7627 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7628 :
7629 else
7630 can_build_shared=no
7631 fi
7632 ;;
7633 esac
7634 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7635 # soname into executable. Probably we can add versioning support to
7636 # collect2, so additional links can be useful in future.
7637 if test "$aix_use_runtimelinking" = yes; then
7638 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7639 # instead of lib<name>.a to let people know that these are not
7640 # typical AIX shared libraries.
7641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7642 else
7643 # We preserve .a as extension for shared libraries through AIX4.2
7644 # and later when we are not doing run time linking.
7645 library_names_spec='${libname}${release}.a $libname.a'
7646 soname_spec='${libname}${release}${shared_ext}$major'
7647 fi
7648 shlibpath_var=LIBPATH
7649 fi
7650 ;;
7651
7652amigaos*)
7653 library_names_spec='$libname.ixlibrary $libname.a'
7654 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7655 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'
7656 ;;
7657
7658beos*)
7659 library_names_spec='${libname}${shared_ext}'
7660 dynamic_linker="$host_os ld.so"
7661 shlibpath_var=LIBRARY_PATH
7662 ;;
7663
7664bsdi4*)
7665 version_type=linux
7666 need_version=no
7667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7668 soname_spec='${libname}${release}${shared_ext}$major'
7669 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7670 shlibpath_var=LD_LIBRARY_PATH
7671 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7672 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7673 # the default ld.so.conf also contains /usr/contrib/lib and
7674 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7675 # libtool to hard-code these into programs
7676 ;;
7677
7678cygwin* | mingw* | pw32*)
7679 version_type=windows
7680 shrext_cmds=".dll"
7681 need_version=no
7682 need_lib_prefix=no
7683
7684 case $GCC,$host_os in
7685 yes,cygwin* | yes,mingw* | yes,pw32*)
7686 library_names_spec='$libname.dll.a'
7687 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7688 postinstall_cmds='base_file=`basename \${file}`~
7689 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7690 dldir=$destdir/`dirname \$dlpath`~
7691 test -d \$dldir || mkdir -p \$dldir~
7692 $install_prog $dir/$dlname \$dldir/$dlname'
7693 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7694 dlpath=$dir/\$dldll~
7695 $rm \$dlpath'
7696 shlibpath_overrides_runpath=yes
7697
7698 case $host_os in
7699 cygwin*)
7700 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7701 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7702 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7703 ;;
7704 mingw*)
7705 # MinGW DLLs use traditional 'lib' prefix
7706 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7707 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7708 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7709 # It is most probably a Windows format PATH printed by
7710 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7711 # path with ; separators, and with drive letters. We can handle the
7712 # drive letters (cygwin fileutils understands them), so leave them,
7713 # especially as we might pass files found there to a mingw objdump,
7714 # which wouldn't understand a cygwinified path. Ahh.
7715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7716 else
7717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7718 fi
7719 ;;
7720 pw32*)
7721 # pw32 DLLs use 'pw' prefix rather than 'lib'
7722 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7723 ;;
7724 esac
7725 ;;
7726
7727 *)
7728 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7729 ;;
7730 esac
7731 dynamic_linker='Win32 ld.exe'
7732 # FIXME: first we should search . and the directory the executable is in
7733 shlibpath_var=PATH
7734 ;;
7735
7736darwin* | rhapsody*)
7737 dynamic_linker="$host_os dyld"
7738 version_type=darwin
7739 need_lib_prefix=no
7740 need_version=no
7741 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7742 soname_spec='${libname}${release}${major}$shared_ext'
7743 shlibpath_overrides_runpath=yes
7744 shlibpath_var=DYLD_LIBRARY_PATH
7745 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7746 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7747 if test "$GCC" = yes; then
7748 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7749 else
7750 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7751 fi
7752 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7753 ;;
7754
7755dgux*)
7756 version_type=linux
7757 need_lib_prefix=no
7758 need_version=no
7759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7760 soname_spec='${libname}${release}${shared_ext}$major'
7761 shlibpath_var=LD_LIBRARY_PATH
7762 ;;
7763
7764freebsd1*)
7765 dynamic_linker=no
7766 ;;
7767
7768kfreebsd*-gnu)
7769 version_type=linux
7770 need_lib_prefix=no
7771 need_version=no
7772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7773 soname_spec='${libname}${release}${shared_ext}$major'
7774 shlibpath_var=LD_LIBRARY_PATH
7775 shlibpath_overrides_runpath=no
7776 hardcode_into_libs=yes
7777 dynamic_linker='GNU ld.so'
7778 ;;
7779
7780freebsd*)
7781 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7782 version_type=freebsd-$objformat
7783 case $version_type in
7784 freebsd-elf*)
7785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7786 need_version=no
7787 need_lib_prefix=no
7788 ;;
7789 freebsd-*)
7790 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7791 need_version=yes
7792 ;;
7793 esac
7794 shlibpath_var=LD_LIBRARY_PATH
7795 case $host_os in
7796 freebsd2*)
7797 shlibpath_overrides_runpath=yes
7798 ;;
7799 freebsd3.01* | freebsdelf3.01*)
7800 shlibpath_overrides_runpath=yes
7801 hardcode_into_libs=yes
7802 ;;
7803 *) # from 3.2 on
7804 shlibpath_overrides_runpath=no
7805 hardcode_into_libs=yes
7806 ;;
7807 esac
7808 ;;
7809
7810gnu*)
7811 version_type=linux
7812 need_lib_prefix=no
7813 need_version=no
7814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7815 soname_spec='${libname}${release}${shared_ext}$major'
7816 shlibpath_var=LD_LIBRARY_PATH
7817 hardcode_into_libs=yes
7818 ;;
7819
7820hpux9* | hpux10* | hpux11*)
7821 # Give a soname corresponding to the major version so that dld.sl refuses to
7822 # link against other versions.
7823 version_type=sunos
7824 need_lib_prefix=no
7825 need_version=no
7826 case "$host_cpu" in
7827 ia64*)
7828 shrext_cmds='.so'
7829 hardcode_into_libs=yes
7830 dynamic_linker="$host_os dld.so"
7831 shlibpath_var=LD_LIBRARY_PATH
7832 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7834 soname_spec='${libname}${release}${shared_ext}$major'
7835 if test "X$HPUX_IA64_MODE" = X32; then
7836 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7837 else
7838 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7839 fi
7840 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7841 ;;
7842 hppa*64*)
7843 shrext_cmds='.sl'
7844 hardcode_into_libs=yes
7845 dynamic_linker="$host_os dld.sl"
7846 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7847 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7849 soname_spec='${libname}${release}${shared_ext}$major'
7850 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7851 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7852 ;;
7853 *)
7854 shrext_cmds='.sl'
7855 dynamic_linker="$host_os dld.sl"
7856 shlibpath_var=SHLIB_PATH
7857 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7859 soname_spec='${libname}${release}${shared_ext}$major'
7860 ;;
7861 esac
7862 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7863 postinstall_cmds='chmod 555 $lib'
7864 ;;
7865
7866irix5* | irix6* | nonstopux*)
7867 case $host_os in
7868 nonstopux*) version_type=nonstopux ;;
7869 *)
7870 if test "$lt_cv_prog_gnu_ld" = yes; then
7871 version_type=linux
7872 else
7873 version_type=irix
7874 fi ;;
7875 esac
7876 need_lib_prefix=no
7877 need_version=no
7878 soname_spec='${libname}${release}${shared_ext}$major'
7879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7880 case $host_os in
7881 irix5* | nonstopux*)
7882 libsuff= shlibsuff=
7883 ;;
7884 *)
7885 case $LD in # libtool.m4 will add one of these switches to LD
7886 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7887 libsuff= shlibsuff= libmagic=32-bit;;
7888 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7889 libsuff=32 shlibsuff=N32 libmagic=N32;;
7890 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7891 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7892 *) libsuff= shlibsuff= libmagic=never-match;;
7893 esac
7894 ;;
7895 esac
7896 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7897 shlibpath_overrides_runpath=no
7898 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7899 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7900 hardcode_into_libs=yes
7901 ;;
7902
7903# No shared lib support for Linux oldld, aout, or coff.
7904linux*oldld* | linux*aout* | linux*coff*)
7905 dynamic_linker=no
7906 ;;
7907
7908# This must be Linux ELF.
7909linux*)
7910 version_type=linux
7911 need_lib_prefix=no
7912 need_version=no
7913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7914 soname_spec='${libname}${release}${shared_ext}$major'
7915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7916 shlibpath_var=LD_LIBRARY_PATH
7917 shlibpath_overrides_runpath=no
7918 # This implies no fast_install, which is unacceptable.
7919 # Some rework will be needed to allow for fast_install
7920 # before this can be enabled.
7921 hardcode_into_libs=yes
7922
7923 # Append ld.so.conf contents to the search path
7924 if test -f /etc/ld.so.conf; then
7925 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7926 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7927 fi
7928
7929 # We used to test for /lib/ld.so.1 and disable shared libraries on
7930 # powerpc, because MkLinux only supported shared libraries with the
7931 # GNU dynamic linker. Since this was broken with cross compilers,
7932 # most powerpc-linux boxes support dynamic linking these days and
7933 # people can always --disable-shared, the test was removed, and we
7934 # assume the GNU/Linux dynamic linker is in use.
7935 dynamic_linker='GNU/Linux ld.so'
7936 ;;
7937
7938knetbsd*-gnu)
7939 version_type=linux
7940 need_lib_prefix=no
7941 need_version=no
7942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7943 soname_spec='${libname}${release}${shared_ext}$major'
7944 shlibpath_var=LD_LIBRARY_PATH
7945 shlibpath_overrides_runpath=no
7946 hardcode_into_libs=yes
7947 dynamic_linker='GNU ld.so'
7948 ;;
7949
7950netbsd*)
7951 version_type=sunos
7952 need_lib_prefix=no
7953 need_version=no
7954 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7956 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7957 dynamic_linker='NetBSD (a.out) ld.so'
7958 else
7959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7960 soname_spec='${libname}${release}${shared_ext}$major'
7961 dynamic_linker='NetBSD ld.elf_so'
7962 fi
7963 shlibpath_var=LD_LIBRARY_PATH
7964 shlibpath_overrides_runpath=yes
7965 hardcode_into_libs=yes
7966 ;;
7967
7968newsos6)
7969 version_type=linux
7970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7971 shlibpath_var=LD_LIBRARY_PATH
7972 shlibpath_overrides_runpath=yes
7973 ;;
7974
7975nto-qnx*)
7976 version_type=linux
7977 need_lib_prefix=no
7978 need_version=no
7979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7980 soname_spec='${libname}${release}${shared_ext}$major'
7981 shlibpath_var=LD_LIBRARY_PATH
7982 shlibpath_overrides_runpath=yes
7983 ;;
7984
7985openbsd*)
7986 version_type=sunos
7987 need_lib_prefix=no
7988 need_version=yes
7989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7991 shlibpath_var=LD_LIBRARY_PATH
7992 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7993 case $host_os in
7994 openbsd2.[89] | openbsd2.[89].*)
7995 shlibpath_overrides_runpath=no
7996 ;;
7997 *)
7998 shlibpath_overrides_runpath=yes
7999 ;;
8000 esac
8001 else
8002 shlibpath_overrides_runpath=yes
8003 fi
8004 ;;
8005
8006os2*)
8007 libname_spec='$name'
8008 shrext_cmds=".dll"
8009 need_lib_prefix=no
8010 library_names_spec='$libname${shared_ext} $libname.a'
8011 dynamic_linker='OS/2 ld.exe'
8012 shlibpath_var=LIBPATH
8013 ;;
8014
8015osf3* | osf4* | osf5*)
8016 version_type=osf
8017 need_lib_prefix=no
8018 need_version=no
8019 soname_spec='${libname}${release}${shared_ext}$major'
8020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8021 shlibpath_var=LD_LIBRARY_PATH
8022 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8023 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8024 ;;
8025
8026sco3.2v5*)
8027 version_type=osf
8028 soname_spec='${libname}${release}${shared_ext}$major'
8029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8030 shlibpath_var=LD_LIBRARY_PATH
8031 ;;
8032
8033solaris*)
8034 version_type=linux
8035 need_lib_prefix=no
8036 need_version=no
8037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8038 soname_spec='${libname}${release}${shared_ext}$major'
8039 shlibpath_var=LD_LIBRARY_PATH
8040 shlibpath_overrides_runpath=yes
8041 hardcode_into_libs=yes
8042 # ldd complains unless libraries are executable
8043 postinstall_cmds='chmod +x $lib'
8044 ;;
8045
8046sunos4*)
8047 version_type=sunos
8048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8049 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8050 shlibpath_var=LD_LIBRARY_PATH
8051 shlibpath_overrides_runpath=yes
8052 if test "$with_gnu_ld" = yes; then
8053 need_lib_prefix=no
8054 fi
8055 need_version=yes
8056 ;;
8057
8058sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8059 version_type=linux
8060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8061 soname_spec='${libname}${release}${shared_ext}$major'
8062 shlibpath_var=LD_LIBRARY_PATH
8063 case $host_vendor in
8064 sni)
8065 shlibpath_overrides_runpath=no
8066 need_lib_prefix=no
8067 export_dynamic_flag_spec='${wl}-Blargedynsym'
8068 runpath_var=LD_RUN_PATH
8069 ;;
8070 siemens)
8071 need_lib_prefix=no
8072 ;;
8073 motorola)
8074 need_lib_prefix=no
8075 need_version=no
8076 shlibpath_overrides_runpath=no
8077 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8078 ;;
8079 esac
8080 ;;
8081
8082sysv4*MP*)
8083 if test -d /usr/nec ;then
8084 version_type=linux
8085 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8086 soname_spec='$libname${shared_ext}.$major'
8087 shlibpath_var=LD_LIBRARY_PATH
8088 fi
8089 ;;
8090
8091uts4*)
8092 version_type=linux
8093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8094 soname_spec='${libname}${release}${shared_ext}$major'
8095 shlibpath_var=LD_LIBRARY_PATH
8096 ;;
8097
8098*)
8099 dynamic_linker=no
8100 ;;
8101esac
8102echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8103echo "${ECHO_T}$dynamic_linker" >&6
8104test "$dynamic_linker" = no && can_build_shared=no
8105
8106echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8107echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8108hardcode_action=
8109if test -n "$hardcode_libdir_flag_spec" || \
8110 test -n "$runpath_var " || \
8111 test "X$hardcode_automatic"="Xyes" ; then
8112
8113 # We can hardcode non-existant directories.
8114 if test "$hardcode_direct" != no &&
8115 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8116 # have to relink, otherwise we might link with an installed library
8117 # when we should be linking with a yet-to-be-installed one
8118 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8119 test "$hardcode_minus_L" != no; then
8120 # Linking always hardcodes the temporary library directory.
8121 hardcode_action=relink
8122 else
8123 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8124 hardcode_action=immediate
8125 fi
8126else
8127 # We cannot hardcode anything, or else we can only hardcode existing
8128 # directories.
8129 hardcode_action=unsupported
8130fi
8131echo "$as_me:$LINENO: result: $hardcode_action" >&5
8132echo "${ECHO_T}$hardcode_action" >&6
8133
8134if test "$hardcode_action" = relink; then
8135 # Fast installation is not supported
8136 enable_fast_install=no
8137elif test "$shlibpath_overrides_runpath" = yes ||
8138 test "$enable_shared" = no; then
8139 # Fast installation is not necessary
8140 enable_fast_install=needless
8141fi
8142
8143striplib=
8144old_striplib=
8145echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8146echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8147if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8148 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8149 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8150 echo "$as_me:$LINENO: result: yes" >&5
8151echo "${ECHO_T}yes" >&6
8152else
8153# FIXME - insert some real tests, host_os isn't really good enough
8154 case $host_os in
8155 darwin*)
8156 if test -n "$STRIP" ; then
8157 striplib="$STRIP -x"
8158 echo "$as_me:$LINENO: result: yes" >&5
8159echo "${ECHO_T}yes" >&6
8160 else
8161 echo "$as_me:$LINENO: result: no" >&5
8162echo "${ECHO_T}no" >&6
8163fi
8164 ;;
8165 *)
8166 echo "$as_me:$LINENO: result: no" >&5
8167echo "${ECHO_T}no" >&6
8168 ;;
8169 esac
8170fi
8171
8172if test "x$enable_dlopen" != xyes; then
8173 enable_dlopen=unknown
8174 enable_dlopen_self=unknown
8175 enable_dlopen_self_static=unknown
8176else
8177 lt_cv_dlopen=no
8178 lt_cv_dlopen_libs=
8179
8180 case $host_os in
8181 beos*)
8182 lt_cv_dlopen="load_add_on"
8183 lt_cv_dlopen_libs=
8184 lt_cv_dlopen_self=yes
8185 ;;
8186
8187 mingw* | pw32*)
8188 lt_cv_dlopen="LoadLibrary"
8189 lt_cv_dlopen_libs=
8190 ;;
8191
8192 cygwin*)
8193 lt_cv_dlopen="dlopen"
8194 lt_cv_dlopen_libs=
8195 ;;
8196
8197 darwin*)
8198 # if libdl is installed we need to link against it
8199 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8200echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8201if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8203else
8204 ac_check_lib_save_LIBS=$LIBS
8205LIBS="-ldl $LIBS"
8206cat >conftest.$ac_ext <<_ACEOF
8207/* confdefs.h. */
8208_ACEOF
8209cat confdefs.h >>conftest.$ac_ext
8210cat >>conftest.$ac_ext <<_ACEOF
8211/* end confdefs.h. */
8212
8213/* Override any gcc2 internal prototype to avoid an error. */
8214#ifdef __cplusplus
8215extern "C"
8216#endif
8217/* We use char because int might match the return type of a gcc2
8218 builtin and then its argument prototype would still apply. */
8219char dlopen ();
8220int
8221main ()
8222{
8223dlopen ();
8224 ;
8225 return 0;
8226}
8227_ACEOF
8228rm -f conftest.$ac_objext conftest$ac_exeext
8229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8230 (eval $ac_link) 2>conftest.er1
8231 ac_status=$?
8232 grep -v '^ *+' conftest.er1 >conftest.err
8233 rm -f conftest.er1
8234 cat conftest.err >&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } &&
8237 { ac_try='test -z "$ac_c_werror_flag"
8238 || test ! -s conftest.err'
8239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8240 (eval $ac_try) 2>&5
8241 ac_status=$?
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); }; } &&
8244 { ac_try='test -s conftest$ac_exeext'
8245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246 (eval $ac_try) 2>&5
8247 ac_status=$?
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); }; }; then
8250 ac_cv_lib_dl_dlopen=yes
8251else
8252 echo "$as_me: failed program was:" >&5
8253sed 's/^/| /' conftest.$ac_ext >&5
8254
8255ac_cv_lib_dl_dlopen=no
8256fi
8257rm -f conftest.err conftest.$ac_objext \
8258 conftest$ac_exeext conftest.$ac_ext
8259LIBS=$ac_check_lib_save_LIBS
8260fi
8261echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8262echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8263if test $ac_cv_lib_dl_dlopen = yes; then
8264 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8265else
8266
8267 lt_cv_dlopen="dyld"
8268 lt_cv_dlopen_libs=
8269 lt_cv_dlopen_self=yes
8270
8271fi
8272
8273 ;;
8274
8275 *)
8276 echo "$as_me:$LINENO: checking for shl_load" >&5
8277echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8278if test "${ac_cv_func_shl_load+set}" = set; then
8279 echo $ECHO_N "(cached) $ECHO_C" >&6
8280else
8281 cat >conftest.$ac_ext <<_ACEOF
8282/* confdefs.h. */
8283_ACEOF
8284cat confdefs.h >>conftest.$ac_ext
8285cat >>conftest.$ac_ext <<_ACEOF
8286/* end confdefs.h. */
8287/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8289#define shl_load innocuous_shl_load
8290
8291/* System header to define __stub macros and hopefully few prototypes,
8292 which can conflict with char shl_load (); below.
8293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8294 <limits.h> exists even on freestanding compilers. */
8295
8296#ifdef __STDC__
8297# include <limits.h>
8298#else
8299# include <assert.h>
8300#endif
8301
8302#undef shl_load
8303
8304/* Override any gcc2 internal prototype to avoid an error. */
8305#ifdef __cplusplus
8306extern "C"
8307{
8308#endif
8309/* We use char because int might match the return type of a gcc2
8310 builtin and then its argument prototype would still apply. */
8311char shl_load ();
8312/* The GNU C library defines this for functions which it implements
8313 to always fail with ENOSYS. Some functions are actually named
8314 something starting with __ and the normal name is an alias. */
8315#if defined (__stub_shl_load) || defined (__stub___shl_load)
8316choke me
8317#else
8318char (*f) () = shl_load;
8319#endif
8320#ifdef __cplusplus
8321}
8322#endif
8323
8324int
8325main ()
8326{
8327return f != shl_load;
8328 ;
8329 return 0;
8330}
8331_ACEOF
8332rm -f conftest.$ac_objext conftest$ac_exeext
8333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8334 (eval $ac_link) 2>conftest.er1
8335 ac_status=$?
8336 grep -v '^ *+' conftest.er1 >conftest.err
8337 rm -f conftest.er1
8338 cat conftest.err >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); } &&
8341 { ac_try='test -z "$ac_c_werror_flag"
8342 || test ! -s conftest.err'
8343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8344 (eval $ac_try) 2>&5
8345 ac_status=$?
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); }; } &&
8348 { ac_try='test -s conftest$ac_exeext'
8349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350 (eval $ac_try) 2>&5
8351 ac_status=$?
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); }; }; then
8354 ac_cv_func_shl_load=yes
8355else
8356 echo "$as_me: failed program was:" >&5
8357sed 's/^/| /' conftest.$ac_ext >&5
8358
8359ac_cv_func_shl_load=no
8360fi
8361rm -f conftest.err conftest.$ac_objext \
8362 conftest$ac_exeext conftest.$ac_ext
8363fi
8364echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8365echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8366if test $ac_cv_func_shl_load = yes; then
8367 lt_cv_dlopen="shl_load"
8368else
8369 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8370echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8371if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8373else
8374 ac_check_lib_save_LIBS=$LIBS
8375LIBS="-ldld $LIBS"
8376cat >conftest.$ac_ext <<_ACEOF
8377/* confdefs.h. */
8378_ACEOF
8379cat confdefs.h >>conftest.$ac_ext
8380cat >>conftest.$ac_ext <<_ACEOF
8381/* end confdefs.h. */
8382
8383/* Override any gcc2 internal prototype to avoid an error. */
8384#ifdef __cplusplus
8385extern "C"
8386#endif
8387/* We use char because int might match the return type of a gcc2
8388 builtin and then its argument prototype would still apply. */
8389char shl_load ();
8390int
8391main ()
8392{
8393shl_load ();
8394 ;
8395 return 0;
8396}
8397_ACEOF
8398rm -f conftest.$ac_objext conftest$ac_exeext
8399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8400 (eval $ac_link) 2>conftest.er1
8401 ac_status=$?
8402 grep -v '^ *+' conftest.er1 >conftest.err
8403 rm -f conftest.er1
8404 cat conftest.err >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } &&
8407 { ac_try='test -z "$ac_c_werror_flag"
8408 || test ! -s conftest.err'
8409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410 (eval $ac_try) 2>&5
8411 ac_status=$?
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; } &&
8414 { ac_try='test -s conftest$ac_exeext'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 (eval $ac_try) 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; }; then
8420 ac_cv_lib_dld_shl_load=yes
8421else
8422 echo "$as_me: failed program was:" >&5
8423sed 's/^/| /' conftest.$ac_ext >&5
8424
8425ac_cv_lib_dld_shl_load=no
8426fi
8427rm -f conftest.err conftest.$ac_objext \
8428 conftest$ac_exeext conftest.$ac_ext
8429LIBS=$ac_check_lib_save_LIBS
8430fi
8431echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8432echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8433if test $ac_cv_lib_dld_shl_load = yes; then
8434 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8435else
8436 echo "$as_me:$LINENO: checking for dlopen" >&5
8437echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8438if test "${ac_cv_func_dlopen+set}" = set; then
8439 echo $ECHO_N "(cached) $ECHO_C" >&6
8440else
8441 cat >conftest.$ac_ext <<_ACEOF
8442/* confdefs.h. */
8443_ACEOF
8444cat confdefs.h >>conftest.$ac_ext
8445cat >>conftest.$ac_ext <<_ACEOF
8446/* end confdefs.h. */
8447/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8449#define dlopen innocuous_dlopen
8450
8451/* System header to define __stub macros and hopefully few prototypes,
8452 which can conflict with char dlopen (); below.
8453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8454 <limits.h> exists even on freestanding compilers. */
8455
8456#ifdef __STDC__
8457# include <limits.h>
8458#else
8459# include <assert.h>
8460#endif
8461
8462#undef dlopen
8463
8464/* Override any gcc2 internal prototype to avoid an error. */
8465#ifdef __cplusplus
8466extern "C"
8467{
8468#endif
8469/* We use char because int might match the return type of a gcc2
8470 builtin and then its argument prototype would still apply. */
8471char dlopen ();
8472/* The GNU C library defines this for functions which it implements
8473 to always fail with ENOSYS. Some functions are actually named
8474 something starting with __ and the normal name is an alias. */
8475#if defined (__stub_dlopen) || defined (__stub___dlopen)
8476choke me
8477#else
8478char (*f) () = dlopen;
8479#endif
8480#ifdef __cplusplus
8481}
8482#endif
8483
8484int
8485main ()
8486{
8487return f != dlopen;
8488 ;
8489 return 0;
8490}
8491_ACEOF
8492rm -f conftest.$ac_objext conftest$ac_exeext
8493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8494 (eval $ac_link) 2>conftest.er1
8495 ac_status=$?
8496 grep -v '^ *+' conftest.er1 >conftest.err
8497 rm -f conftest.er1
8498 cat conftest.err >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); } &&
8501 { ac_try='test -z "$ac_c_werror_flag"
8502 || test ! -s conftest.err'
8503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 (eval $ac_try) 2>&5
8505 ac_status=$?
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; } &&
8508 { ac_try='test -s conftest$ac_exeext'
8509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510 (eval $ac_try) 2>&5
8511 ac_status=$?
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; }; then
8514 ac_cv_func_dlopen=yes
8515else
8516 echo "$as_me: failed program was:" >&5
8517sed 's/^/| /' conftest.$ac_ext >&5
8518
8519ac_cv_func_dlopen=no
8520fi
8521rm -f conftest.err conftest.$ac_objext \
8522 conftest$ac_exeext conftest.$ac_ext
8523fi
8524echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8525echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8526if test $ac_cv_func_dlopen = yes; then
8527 lt_cv_dlopen="dlopen"
8528else
8529 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8530echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8531if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8533else
8534 ac_check_lib_save_LIBS=$LIBS
8535LIBS="-ldl $LIBS"
8536cat >conftest.$ac_ext <<_ACEOF
8537/* confdefs.h. */
8538_ACEOF
8539cat confdefs.h >>conftest.$ac_ext
8540cat >>conftest.$ac_ext <<_ACEOF
8541/* end confdefs.h. */
8542
8543/* Override any gcc2 internal prototype to avoid an error. */
8544#ifdef __cplusplus
8545extern "C"
8546#endif
8547/* We use char because int might match the return type of a gcc2
8548 builtin and then its argument prototype would still apply. */
8549char dlopen ();
8550int
8551main ()
8552{
8553dlopen ();
8554 ;
8555 return 0;
8556}
8557_ACEOF
8558rm -f conftest.$ac_objext conftest$ac_exeext
8559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8560 (eval $ac_link) 2>conftest.er1
8561 ac_status=$?
8562 grep -v '^ *+' conftest.er1 >conftest.err
8563 rm -f conftest.er1
8564 cat conftest.err >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } &&
8567 { ac_try='test -z "$ac_c_werror_flag"
8568 || test ! -s conftest.err'
8569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 (eval $ac_try) 2>&5
8571 ac_status=$?
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; } &&
8574 { ac_try='test -s conftest$ac_exeext'
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576 (eval $ac_try) 2>&5
8577 ac_status=$?
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; }; then
8580 ac_cv_lib_dl_dlopen=yes
8581else
8582 echo "$as_me: failed program was:" >&5
8583sed 's/^/| /' conftest.$ac_ext >&5
8584
8585ac_cv_lib_dl_dlopen=no
8586fi
8587rm -f conftest.err conftest.$ac_objext \
8588 conftest$ac_exeext conftest.$ac_ext
8589LIBS=$ac_check_lib_save_LIBS
8590fi
8591echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8592echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8593if test $ac_cv_lib_dl_dlopen = yes; then
8594 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8595else
8596 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8597echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8598if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8599 echo $ECHO_N "(cached) $ECHO_C" >&6
8600else
8601 ac_check_lib_save_LIBS=$LIBS
8602LIBS="-lsvld $LIBS"
8603cat >conftest.$ac_ext <<_ACEOF
8604/* confdefs.h. */
8605_ACEOF
8606cat confdefs.h >>conftest.$ac_ext
8607cat >>conftest.$ac_ext <<_ACEOF
8608/* end confdefs.h. */
8609
8610/* Override any gcc2 internal prototype to avoid an error. */
8611#ifdef __cplusplus
8612extern "C"
8613#endif
8614/* We use char because int might match the return type of a gcc2
8615 builtin and then its argument prototype would still apply. */
8616char dlopen ();
8617int
8618main ()
8619{
8620dlopen ();
8621 ;
8622 return 0;
8623}
8624_ACEOF
8625rm -f conftest.$ac_objext conftest$ac_exeext
8626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8627 (eval $ac_link) 2>conftest.er1
8628 ac_status=$?
8629 grep -v '^ *+' conftest.er1 >conftest.err
8630 rm -f conftest.er1
8631 cat conftest.err >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); } &&
8634 { ac_try='test -z "$ac_c_werror_flag"
8635 || test ! -s conftest.err'
8636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637 (eval $ac_try) 2>&5
8638 ac_status=$?
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; } &&
8641 { ac_try='test -s conftest$ac_exeext'
8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 (eval $ac_try) 2>&5
8644 ac_status=$?
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; }; then
8647 ac_cv_lib_svld_dlopen=yes
8648else
8649 echo "$as_me: failed program was:" >&5
8650sed 's/^/| /' conftest.$ac_ext >&5
8651
8652ac_cv_lib_svld_dlopen=no
8653fi
8654rm -f conftest.err conftest.$ac_objext \
8655 conftest$ac_exeext conftest.$ac_ext
8656LIBS=$ac_check_lib_save_LIBS
8657fi
8658echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8659echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8660if test $ac_cv_lib_svld_dlopen = yes; then
8661 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8662else
8663 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8664echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8665if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8667else
8668 ac_check_lib_save_LIBS=$LIBS
8669LIBS="-ldld $LIBS"
8670cat >conftest.$ac_ext <<_ACEOF
8671/* confdefs.h. */
8672_ACEOF
8673cat confdefs.h >>conftest.$ac_ext
8674cat >>conftest.$ac_ext <<_ACEOF
8675/* end confdefs.h. */
8676
8677/* Override any gcc2 internal prototype to avoid an error. */
8678#ifdef __cplusplus
8679extern "C"
8680#endif
8681/* We use char because int might match the return type of a gcc2
8682 builtin and then its argument prototype would still apply. */
8683char dld_link ();
8684int
8685main ()
8686{
8687dld_link ();
8688 ;
8689 return 0;
8690}
8691_ACEOF
8692rm -f conftest.$ac_objext conftest$ac_exeext
8693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8694 (eval $ac_link) 2>conftest.er1
8695 ac_status=$?
8696 grep -v '^ *+' conftest.er1 >conftest.err
8697 rm -f conftest.er1
8698 cat conftest.err >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); } &&
8701 { ac_try='test -z "$ac_c_werror_flag"
8702 || test ! -s conftest.err'
8703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704 (eval $ac_try) 2>&5
8705 ac_status=$?
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); }; } &&
8708 { ac_try='test -s conftest$ac_exeext'
8709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710 (eval $ac_try) 2>&5
8711 ac_status=$?
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); }; }; then
8714 ac_cv_lib_dld_dld_link=yes
8715else
8716 echo "$as_me: failed program was:" >&5
8717sed 's/^/| /' conftest.$ac_ext >&5
8718
8719ac_cv_lib_dld_dld_link=no
8720fi
8721rm -f conftest.err conftest.$ac_objext \
8722 conftest$ac_exeext conftest.$ac_ext
8723LIBS=$ac_check_lib_save_LIBS
8724fi
8725echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8726echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8727if test $ac_cv_lib_dld_dld_link = yes; then
8728 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8729fi
8730
8731
8732fi
8733
8734
8735fi
8736
8737
8738fi
8739
8740
8741fi
8742
8743
8744fi
8745
8746 ;;
8747 esac
8748
8749 if test "x$lt_cv_dlopen" != xno; then
8750 enable_dlopen=yes
8751 else
8752 enable_dlopen=no
8753 fi
8754
8755 case $lt_cv_dlopen in
8756 dlopen)
8757 save_CPPFLAGS="$CPPFLAGS"
8758 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8759
8760 save_LDFLAGS="$LDFLAGS"
8761 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8762
8763 save_LIBS="$LIBS"
8764 LIBS="$lt_cv_dlopen_libs $LIBS"
8765
8766 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8767echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8768if test "${lt_cv_dlopen_self+set}" = set; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8770else
8771 if test "$cross_compiling" = yes; then :
8772 lt_cv_dlopen_self=cross
8773else
8774 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8775 lt_status=$lt_dlunknown
8776 cat > conftest.$ac_ext <<EOF
Lev Walkin33cded12004-09-19 19:40:52 +00008777#line 8777 "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +00008778#include "confdefs.h"
8779
8780#if HAVE_DLFCN_H
8781#include <dlfcn.h>
8782#endif
8783
8784#include <stdio.h>
8785
8786#ifdef RTLD_GLOBAL
8787# define LT_DLGLOBAL RTLD_GLOBAL
8788#else
8789# ifdef DL_GLOBAL
8790# define LT_DLGLOBAL DL_GLOBAL
8791# else
8792# define LT_DLGLOBAL 0
8793# endif
8794#endif
8795
8796/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8797 find out it does not work in some platform. */
8798#ifndef LT_DLLAZY_OR_NOW
8799# ifdef RTLD_LAZY
8800# define LT_DLLAZY_OR_NOW RTLD_LAZY
8801# else
8802# ifdef DL_LAZY
8803# define LT_DLLAZY_OR_NOW DL_LAZY
8804# else
8805# ifdef RTLD_NOW
8806# define LT_DLLAZY_OR_NOW RTLD_NOW
8807# else
8808# ifdef DL_NOW
8809# define LT_DLLAZY_OR_NOW DL_NOW
8810# else
8811# define LT_DLLAZY_OR_NOW 0
8812# endif
8813# endif
8814# endif
8815# endif
8816#endif
8817
8818#ifdef __cplusplus
8819extern "C" void exit (int);
8820#endif
8821
8822void fnord() { int i=42;}
8823int main ()
8824{
8825 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8826 int status = $lt_dlunknown;
8827
8828 if (self)
8829 {
8830 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8831 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8832 /* dlclose (self); */
8833 }
8834
8835 exit (status);
8836}
8837EOF
8838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8839 (eval $ac_link) 2>&5
8840 ac_status=$?
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8843 (./conftest; exit; ) 2>/dev/null
8844 lt_status=$?
8845 case x$lt_status in
8846 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8847 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8848 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8849 esac
8850 else :
8851 # compilation failed
8852 lt_cv_dlopen_self=no
8853 fi
8854fi
8855rm -fr conftest*
8856
8857
8858fi
8859echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8860echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8861
8862 if test "x$lt_cv_dlopen_self" = xyes; then
8863 LDFLAGS="$LDFLAGS $link_static_flag"
8864 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8865echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8866if test "${lt_cv_dlopen_self_static+set}" = set; then
8867 echo $ECHO_N "(cached) $ECHO_C" >&6
8868else
8869 if test "$cross_compiling" = yes; then :
8870 lt_cv_dlopen_self_static=cross
8871else
8872 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8873 lt_status=$lt_dlunknown
8874 cat > conftest.$ac_ext <<EOF
Lev Walkin33cded12004-09-19 19:40:52 +00008875#line 8875 "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +00008876#include "confdefs.h"
8877
8878#if HAVE_DLFCN_H
8879#include <dlfcn.h>
8880#endif
8881
8882#include <stdio.h>
8883
8884#ifdef RTLD_GLOBAL
8885# define LT_DLGLOBAL RTLD_GLOBAL
8886#else
8887# ifdef DL_GLOBAL
8888# define LT_DLGLOBAL DL_GLOBAL
8889# else
8890# define LT_DLGLOBAL 0
8891# endif
8892#endif
8893
8894/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8895 find out it does not work in some platform. */
8896#ifndef LT_DLLAZY_OR_NOW
8897# ifdef RTLD_LAZY
8898# define LT_DLLAZY_OR_NOW RTLD_LAZY
8899# else
8900# ifdef DL_LAZY
8901# define LT_DLLAZY_OR_NOW DL_LAZY
8902# else
8903# ifdef RTLD_NOW
8904# define LT_DLLAZY_OR_NOW RTLD_NOW
8905# else
8906# ifdef DL_NOW
8907# define LT_DLLAZY_OR_NOW DL_NOW
8908# else
8909# define LT_DLLAZY_OR_NOW 0
8910# endif
8911# endif
8912# endif
8913# endif
8914#endif
8915
8916#ifdef __cplusplus
8917extern "C" void exit (int);
8918#endif
8919
8920void fnord() { int i=42;}
8921int main ()
8922{
8923 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8924 int status = $lt_dlunknown;
8925
8926 if (self)
8927 {
8928 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8929 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8930 /* dlclose (self); */
8931 }
8932
8933 exit (status);
8934}
8935EOF
8936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8937 (eval $ac_link) 2>&5
8938 ac_status=$?
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8941 (./conftest; exit; ) 2>/dev/null
8942 lt_status=$?
8943 case x$lt_status in
8944 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8945 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8946 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8947 esac
8948 else :
8949 # compilation failed
8950 lt_cv_dlopen_self_static=no
8951 fi
8952fi
8953rm -fr conftest*
8954
8955
8956fi
8957echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8958echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8959 fi
8960
8961 CPPFLAGS="$save_CPPFLAGS"
8962 LDFLAGS="$save_LDFLAGS"
8963 LIBS="$save_LIBS"
8964 ;;
8965 esac
8966
8967 case $lt_cv_dlopen_self in
8968 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8969 *) enable_dlopen_self=unknown ;;
8970 esac
8971
8972 case $lt_cv_dlopen_self_static in
8973 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8974 *) enable_dlopen_self_static=unknown ;;
8975 esac
8976fi
8977
8978
8979# Report which librarie types wil actually be built
8980echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8981echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8982echo "$as_me:$LINENO: result: $can_build_shared" >&5
8983echo "${ECHO_T}$can_build_shared" >&6
8984
8985echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8986echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8987test "$can_build_shared" = "no" && enable_shared=no
8988
8989# On AIX, shared libraries and static libraries use the same namespace, and
8990# are all built from PIC.
8991case "$host_os" in
8992aix3*)
8993 test "$enable_shared" = yes && enable_static=no
8994 if test -n "$RANLIB"; then
8995 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8996 postinstall_cmds='$RANLIB $lib'
8997 fi
8998 ;;
8999
9000aix4* | aix5*)
9001 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9002 test "$enable_shared" = yes && enable_static=no
9003 fi
9004 ;;
9005 darwin* | rhapsody*)
9006 if test "$GCC" = yes; then
9007 archive_cmds_need_lc=no
9008 case "$host_os" in
9009 rhapsody* | darwin1.[012])
9010 allow_undefined_flag='-undefined suppress'
9011 ;;
9012 *) # Darwin 1.3 on
9013 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9014 allow_undefined_flag='-flat_namespace -undefined suppress'
9015 else
9016 case ${MACOSX_DEPLOYMENT_TARGET} in
9017 10.[012])
9018 allow_undefined_flag='-flat_namespace -undefined suppress'
9019 ;;
9020 10.*)
9021 allow_undefined_flag='-undefined dynamic_lookup'
9022 ;;
9023 esac
9024 fi
9025 ;;
9026 esac
9027 output_verbose_link_cmd='echo'
9028 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9029 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9030 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9031 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}'
9032 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}'
9033 hardcode_direct=no
9034 hardcode_automatic=yes
9035 hardcode_shlibpath_var=unsupported
9036 whole_archive_flag_spec='-all_load $convenience'
9037 link_all_deplibs=yes
9038 else
9039 ld_shlibs=no
9040 fi
9041 ;;
9042esac
9043echo "$as_me:$LINENO: result: $enable_shared" >&5
9044echo "${ECHO_T}$enable_shared" >&6
9045
9046echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9047echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9048# Make sure either enable_shared or enable_static is yes.
9049test "$enable_shared" = yes || enable_static=yes
9050echo "$as_me:$LINENO: result: $enable_static" >&5
9051echo "${ECHO_T}$enable_static" >&6
9052
9053# The else clause should only fire when bootstrapping the
9054# libtool distribution, otherwise you forgot to ship ltmain.sh
9055# with your package, and you will get complaints that there are
9056# no rules to generate ltmain.sh.
9057if test -f "$ltmain"; then
9058 # See if we are running on zsh, and set the options which allow our commands through
9059 # without removal of \ escapes.
9060 if test -n "${ZSH_VERSION+set}" ; then
9061 setopt NO_GLOB_SUBST
9062 fi
9063 # Now quote all the things that may contain metacharacters while being
9064 # careful not to overquote the AC_SUBSTed values. We take copies of the
9065 # variables and quote the copies for generation of the libtool script.
9066 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9067 SED SHELL STRIP \
9068 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9069 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9070 deplibs_check_method reload_flag reload_cmds need_locks \
9071 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9072 lt_cv_sys_global_symbol_to_c_name_address \
9073 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9074 old_postinstall_cmds old_postuninstall_cmds \
9075 compiler \
9076 CC \
9077 LD \
9078 lt_prog_compiler_wl \
9079 lt_prog_compiler_pic \
9080 lt_prog_compiler_static \
9081 lt_prog_compiler_no_builtin_flag \
9082 export_dynamic_flag_spec \
9083 thread_safe_flag_spec \
9084 whole_archive_flag_spec \
9085 enable_shared_with_static_runtimes \
9086 old_archive_cmds \
9087 old_archive_from_new_cmds \
9088 predep_objects \
9089 postdep_objects \
9090 predeps \
9091 postdeps \
9092 compiler_lib_search_path \
9093 archive_cmds \
9094 archive_expsym_cmds \
9095 postinstall_cmds \
9096 postuninstall_cmds \
9097 old_archive_from_expsyms_cmds \
9098 allow_undefined_flag \
9099 no_undefined_flag \
9100 export_symbols_cmds \
9101 hardcode_libdir_flag_spec \
9102 hardcode_libdir_flag_spec_ld \
9103 hardcode_libdir_separator \
9104 hardcode_automatic \
9105 module_cmds \
9106 module_expsym_cmds \
9107 lt_cv_prog_compiler_c_o \
9108 exclude_expsyms \
9109 include_expsyms; do
9110
9111 case $var in
9112 old_archive_cmds | \
9113 old_archive_from_new_cmds | \
9114 archive_cmds | \
9115 archive_expsym_cmds | \
9116 module_cmds | \
9117 module_expsym_cmds | \
9118 old_archive_from_expsyms_cmds | \
9119 export_symbols_cmds | \
9120 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9121 postinstall_cmds | postuninstall_cmds | \
9122 old_postinstall_cmds | old_postuninstall_cmds | \
9123 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9124 # Double-quote double-evaled strings.
9125 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9126 ;;
9127 *)
9128 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9129 ;;
9130 esac
9131 done
9132
9133 case $lt_echo in
9134 *'\$0 --fallback-echo"')
9135 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9136 ;;
9137 esac
9138
9139cfgfile="${ofile}T"
9140 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9141 $rm -f "$cfgfile"
9142 { echo "$as_me:$LINENO: creating $ofile" >&5
9143echo "$as_me: creating $ofile" >&6;}
9144
9145 cat <<__EOF__ >> "$cfgfile"
9146#! $SHELL
9147
9148# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9149# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9150# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9151#
9152# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9153# Free Software Foundation, Inc.
9154#
9155# This file is part of GNU Libtool:
9156# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9157#
9158# This program is free software; you can redistribute it and/or modify
9159# it under the terms of the GNU General Public License as published by
9160# the Free Software Foundation; either version 2 of the License, or
9161# (at your option) any later version.
9162#
9163# This program is distributed in the hope that it will be useful, but
9164# WITHOUT ANY WARRANTY; without even the implied warranty of
9165# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9166# General Public License for more details.
9167#
9168# You should have received a copy of the GNU General Public License
9169# along with this program; if not, write to the Free Software
9170# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9171#
9172# As a special exception to the GNU General Public License, if you
9173# distribute this file as part of a program that contains a
9174# configuration script generated by Autoconf, you may include it under
9175# the same distribution terms that you use for the rest of that program.
9176
9177# A sed program that does not truncate output.
9178SED=$lt_SED
9179
9180# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9181Xsed="$SED -e s/^X//"
9182
9183# The HP-UX ksh and POSIX shell print the target directory to stdout
9184# if CDPATH is set.
9185if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9186
9187# The names of the tagged configurations supported by this script.
9188available_tags=
9189
9190# ### BEGIN LIBTOOL CONFIG
9191
9192# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9193
9194# Shell to use when invoking shell scripts.
9195SHELL=$lt_SHELL
9196
9197# Whether or not to build shared libraries.
9198build_libtool_libs=$enable_shared
9199
9200# Whether or not to build static libraries.
9201build_old_libs=$enable_static
9202
9203# Whether or not to add -lc for building shared libraries.
9204build_libtool_need_lc=$archive_cmds_need_lc
9205
9206# Whether or not to disallow shared libs when runtime libs are static
9207allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9208
9209# Whether or not to optimize for fast installation.
9210fast_install=$enable_fast_install
9211
9212# The host system.
9213host_alias=$host_alias
9214host=$host
9215
9216# An echo program that does not interpret backslashes.
9217echo=$lt_echo
9218
9219# The archiver.
9220AR=$lt_AR
9221AR_FLAGS=$lt_AR_FLAGS
9222
9223# A C compiler.
9224LTCC=$lt_LTCC
9225
9226# A language-specific compiler.
9227CC=$lt_compiler
9228
9229# Is the compiler the GNU C compiler?
9230with_gcc=$GCC
9231
9232# An ERE matcher.
9233EGREP=$lt_EGREP
9234
9235# The linker used to build libraries.
9236LD=$lt_LD
9237
9238# Whether we need hard or soft links.
9239LN_S=$lt_LN_S
9240
9241# A BSD-compatible nm program.
9242NM=$lt_NM
9243
9244# A symbol stripping program
9245STRIP=$lt_STRIP
9246
9247# Used to examine libraries when file_magic_cmd begins "file"
9248MAGIC_CMD=$MAGIC_CMD
9249
9250# Used on cygwin: DLL creation program.
9251DLLTOOL="$DLLTOOL"
9252
9253# Used on cygwin: object dumper.
9254OBJDUMP="$OBJDUMP"
9255
9256# Used on cygwin: assembler.
9257AS="$AS"
9258
9259# The name of the directory that contains temporary libtool files.
9260objdir=$objdir
9261
9262# How to create reloadable object files.
9263reload_flag=$lt_reload_flag
9264reload_cmds=$lt_reload_cmds
9265
9266# How to pass a linker flag through the compiler.
9267wl=$lt_lt_prog_compiler_wl
9268
9269# Object file suffix (normally "o").
9270objext="$ac_objext"
9271
9272# Old archive suffix (normally "a").
9273libext="$libext"
9274
9275# Shared library suffix (normally ".so").
9276shrext_cmds='$shrext_cmds'
9277
9278# Executable file suffix (normally "").
9279exeext="$exeext"
9280
9281# Additional compiler flags for building library objects.
9282pic_flag=$lt_lt_prog_compiler_pic
9283pic_mode=$pic_mode
9284
9285# What is the maximum length of a command?
9286max_cmd_len=$lt_cv_sys_max_cmd_len
9287
9288# Does compiler simultaneously support -c and -o options?
9289compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9290
9291# Must we lock files when doing compilation ?
9292need_locks=$lt_need_locks
9293
9294# Do we need the lib prefix for modules?
9295need_lib_prefix=$need_lib_prefix
9296
9297# Do we need a version for libraries?
9298need_version=$need_version
9299
9300# Whether dlopen is supported.
9301dlopen_support=$enable_dlopen
9302
9303# Whether dlopen of programs is supported.
9304dlopen_self=$enable_dlopen_self
9305
9306# Whether dlopen of statically linked programs is supported.
9307dlopen_self_static=$enable_dlopen_self_static
9308
9309# Compiler flag to prevent dynamic linking.
9310link_static_flag=$lt_lt_prog_compiler_static
9311
9312# Compiler flag to turn off builtin functions.
9313no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9314
9315# Compiler flag to allow reflexive dlopens.
9316export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9317
9318# Compiler flag to generate shared objects directly from archives.
9319whole_archive_flag_spec=$lt_whole_archive_flag_spec
9320
9321# Compiler flag to generate thread-safe objects.
9322thread_safe_flag_spec=$lt_thread_safe_flag_spec
9323
9324# Library versioning type.
9325version_type=$version_type
9326
9327# Format of library name prefix.
9328libname_spec=$lt_libname_spec
9329
9330# List of archive names. First name is the real one, the rest are links.
9331# The last name is the one that the linker finds with -lNAME.
9332library_names_spec=$lt_library_names_spec
9333
9334# The coded name of the library, if different from the real name.
9335soname_spec=$lt_soname_spec
9336
9337# Commands used to build and install an old-style archive.
9338RANLIB=$lt_RANLIB
9339old_archive_cmds=$lt_old_archive_cmds
9340old_postinstall_cmds=$lt_old_postinstall_cmds
9341old_postuninstall_cmds=$lt_old_postuninstall_cmds
9342
9343# Create an old-style archive from a shared archive.
9344old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9345
9346# Create a temporary old-style archive to link instead of a shared archive.
9347old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9348
9349# Commands used to build and install a shared archive.
9350archive_cmds=$lt_archive_cmds
9351archive_expsym_cmds=$lt_archive_expsym_cmds
9352postinstall_cmds=$lt_postinstall_cmds
9353postuninstall_cmds=$lt_postuninstall_cmds
9354
9355# Commands used to build a loadable module (assumed same as above if empty)
9356module_cmds=$lt_module_cmds
9357module_expsym_cmds=$lt_module_expsym_cmds
9358
9359# Commands to strip libraries.
9360old_striplib=$lt_old_striplib
9361striplib=$lt_striplib
9362
9363# Dependencies to place before the objects being linked to create a
9364# shared library.
9365predep_objects=$lt_predep_objects
9366
9367# Dependencies to place after the objects being linked to create a
9368# shared library.
9369postdep_objects=$lt_postdep_objects
9370
9371# Dependencies to place before the objects being linked to create a
9372# shared library.
9373predeps=$lt_predeps
9374
9375# Dependencies to place after the objects being linked to create a
9376# shared library.
9377postdeps=$lt_postdeps
9378
9379# The library search path used internally by the compiler when linking
9380# a shared library.
9381compiler_lib_search_path=$lt_compiler_lib_search_path
9382
9383# Method to check whether dependent libraries are shared objects.
9384deplibs_check_method=$lt_deplibs_check_method
9385
9386# Command to use when deplibs_check_method == file_magic.
9387file_magic_cmd=$lt_file_magic_cmd
9388
9389# Flag that allows shared libraries with undefined symbols to be built.
9390allow_undefined_flag=$lt_allow_undefined_flag
9391
9392# Flag that forces no undefined symbols.
9393no_undefined_flag=$lt_no_undefined_flag
9394
9395# Commands used to finish a libtool library installation in a directory.
9396finish_cmds=$lt_finish_cmds
9397
9398# Same as above, but a single script fragment to be evaled but not shown.
9399finish_eval=$lt_finish_eval
9400
9401# Take the output of nm and produce a listing of raw symbols and C names.
9402global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9403
9404# Transform the output of nm in a proper C declaration
9405global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9406
9407# Transform the output of nm in a C name address pair
9408global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9409
9410# This is the shared library runtime path variable.
9411runpath_var=$runpath_var
9412
9413# This is the shared library path variable.
9414shlibpath_var=$shlibpath_var
9415
9416# Is shlibpath searched before the hard-coded library search path?
9417shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9418
9419# How to hardcode a shared library path into an executable.
9420hardcode_action=$hardcode_action
9421
9422# Whether we should hardcode library paths into libraries.
9423hardcode_into_libs=$hardcode_into_libs
9424
9425# Flag to hardcode \$libdir into a binary during linking.
9426# This must work even if \$libdir does not exist.
9427hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9428
9429# If ld is used when linking, flag to hardcode \$libdir into
9430# a binary during linking. This must work even if \$libdir does
9431# not exist.
9432hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9433
9434# Whether we need a single -rpath flag with a separated argument.
9435hardcode_libdir_separator=$lt_hardcode_libdir_separator
9436
9437# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9438# resulting binary.
9439hardcode_direct=$hardcode_direct
9440
9441# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9442# resulting binary.
9443hardcode_minus_L=$hardcode_minus_L
9444
9445# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9446# the resulting binary.
9447hardcode_shlibpath_var=$hardcode_shlibpath_var
9448
9449# Set to yes if building a shared library automatically hardcodes DIR into the library
9450# and all subsequent libraries and executables linked against it.
9451hardcode_automatic=$hardcode_automatic
9452
9453# Variables whose values should be saved in libtool wrapper scripts and
9454# restored at relink time.
9455variables_saved_for_relink="$variables_saved_for_relink"
9456
9457# Whether libtool must link a program against all its dependency libraries.
9458link_all_deplibs=$link_all_deplibs
9459
9460# Compile-time system search path for libraries
9461sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9462
9463# Run-time system search path for libraries
9464sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9465
9466# Fix the shell variable \$srcfile for the compiler.
9467fix_srcfile_path="$fix_srcfile_path"
9468
9469# Set to yes if exported symbols are required.
9470always_export_symbols=$always_export_symbols
9471
9472# The commands to list exported symbols.
9473export_symbols_cmds=$lt_export_symbols_cmds
9474
9475# The commands to extract the exported symbol list from a shared archive.
9476extract_expsyms_cmds=$lt_extract_expsyms_cmds
9477
9478# Symbols that should not be listed in the preloaded symbols.
9479exclude_expsyms=$lt_exclude_expsyms
9480
9481# Symbols that must always be exported.
9482include_expsyms=$lt_include_expsyms
9483
9484# ### END LIBTOOL CONFIG
9485
9486__EOF__
9487
9488
9489 case $host_os in
9490 aix3*)
9491 cat <<\EOF >> "$cfgfile"
9492
9493# AIX sometimes has problems with the GCC collect2 program. For some
9494# reason, if we set the COLLECT_NAMES environment variable, the problems
9495# vanish in a puff of smoke.
9496if test "X${COLLECT_NAMES+set}" != Xset; then
9497 COLLECT_NAMES=
9498 export COLLECT_NAMES
9499fi
9500EOF
9501 ;;
9502 esac
9503
9504 # We use sed instead of cat because bash on DJGPP gets confused if
9505 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9506 # text mode, it properly converts lines to CR/LF. This bash problem
9507 # is reportedly fixed, but why not run on old versions too?
9508 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9509
9510 mv -f "$cfgfile" "$ofile" || \
9511 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9512 chmod +x "$ofile"
9513
9514else
9515 # If there is no Makefile yet, we rely on a make rule to execute
9516 # `config.status --recheck' to rerun these tests and create the
9517 # libtool script then.
9518 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9519 if test -f "$ltmain_in"; then
9520 test -f Makefile && make "$ltmain"
9521 fi
9522fi
9523
9524
9525ac_ext=c
9526ac_cpp='$CPP $CPPFLAGS'
9527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9529ac_compiler_gnu=$ac_cv_c_compiler_gnu
9530
9531CC="$lt_save_CC"
9532
9533
9534# Check whether --with-tags or --without-tags was given.
9535if test "${with_tags+set}" = set; then
9536 withval="$with_tags"
9537 tagnames="$withval"
9538fi;
9539
9540if test -f "$ltmain" && test -n "$tagnames"; then
9541 if test ! -f "${ofile}"; then
9542 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9543echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9544 fi
9545
9546 if test -z "$LTCC"; then
9547 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9548 if test -z "$LTCC"; then
9549 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9550echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9551 else
9552 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9553echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9554 fi
9555 fi
9556
9557 # Extract list of available tagged configurations in $ofile.
9558 # Note that this assumes the entire list is on one line.
9559 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9560
9561 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9562 for tagname in $tagnames; do
9563 IFS="$lt_save_ifs"
9564 # Check whether tagname contains only valid characters
9565 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9566 "") ;;
9567 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9568echo "$as_me: error: invalid tag name: $tagname" >&2;}
9569 { (exit 1); exit 1; }; }
9570 ;;
9571 esac
9572
9573 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9574 then
9575 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9576echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9577 { (exit 1); exit 1; }; }
9578 fi
9579
9580 # Update the list of available tags.
9581 if test -n "$tagname"; then
9582 echo appending configuration tag \"$tagname\" to $ofile
9583
9584 case $tagname in
9585 CXX)
9586 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9587 ac_ext=cc
9588ac_cpp='$CXXCPP $CPPFLAGS'
9589ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9590ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9591ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9592
9593
9594
9595
9596archive_cmds_need_lc_CXX=no
9597allow_undefined_flag_CXX=
9598always_export_symbols_CXX=no
9599archive_expsym_cmds_CXX=
9600export_dynamic_flag_spec_CXX=
9601hardcode_direct_CXX=no
9602hardcode_libdir_flag_spec_CXX=
9603hardcode_libdir_flag_spec_ld_CXX=
9604hardcode_libdir_separator_CXX=
9605hardcode_minus_L_CXX=no
9606hardcode_automatic_CXX=no
9607module_cmds_CXX=
9608module_expsym_cmds_CXX=
9609link_all_deplibs_CXX=unknown
9610old_archive_cmds_CXX=$old_archive_cmds
9611no_undefined_flag_CXX=
9612whole_archive_flag_spec_CXX=
9613enable_shared_with_static_runtimes_CXX=no
9614
9615# Dependencies to place before and after the object being linked:
9616predep_objects_CXX=
9617postdep_objects_CXX=
9618predeps_CXX=
9619postdeps_CXX=
9620compiler_lib_search_path_CXX=
9621
9622# Source file extension for C++ test sources.
9623ac_ext=cc
9624
9625# Object file extension for compiled C++ test sources.
9626objext=o
9627objext_CXX=$objext
9628
9629# Code to be used in simple compile tests
9630lt_simple_compile_test_code="int some_variable = 0;\n"
9631
9632# Code to be used in simple link tests
9633lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9634
9635# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9636
9637# If no C compiler was specified, use CC.
9638LTCC=${LTCC-"$CC"}
9639
9640# Allow CC to be a program name with arguments.
9641compiler=$CC
9642
9643
9644# Allow CC to be a program name with arguments.
9645lt_save_CC=$CC
9646lt_save_LD=$LD
9647lt_save_GCC=$GCC
9648GCC=$GXX
9649lt_save_with_gnu_ld=$with_gnu_ld
9650lt_save_path_LD=$lt_cv_path_LD
9651if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9652 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9653else
9654 unset lt_cv_prog_gnu_ld
9655fi
9656if test -n "${lt_cv_path_LDCXX+set}"; then
9657 lt_cv_path_LD=$lt_cv_path_LDCXX
9658else
9659 unset lt_cv_path_LD
9660fi
9661test -z "${LDCXX+set}" || LD=$LDCXX
9662CC=${CXX-"c++"}
9663compiler=$CC
9664compiler_CXX=$CC
9665cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9666
9667# We don't want -fno-exception wen compiling C++ code, so set the
9668# no_builtin_flag separately
9669if test "$GXX" = yes; then
9670 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9671else
9672 lt_prog_compiler_no_builtin_flag_CXX=
9673fi
9674
9675if test "$GXX" = yes; then
9676 # Set up default GNU C++ configuration
9677
9678
9679# Check whether --with-gnu-ld or --without-gnu-ld was given.
9680if test "${with_gnu_ld+set}" = set; then
9681 withval="$with_gnu_ld"
9682 test "$withval" = no || with_gnu_ld=yes
9683else
9684 with_gnu_ld=no
9685fi;
9686ac_prog=ld
9687if test "$GCC" = yes; then
9688 # Check if gcc -print-prog-name=ld gives a path.
9689 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9690echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9691 case $host in
9692 *-*-mingw*)
9693 # gcc leaves a trailing carriage return which upsets mingw
9694 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9695 *)
9696 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9697 esac
9698 case $ac_prog in
9699 # Accept absolute paths.
9700 [\\/]* | ?:[\\/]*)
9701 re_direlt='/[^/][^/]*/\.\./'
9702 # Canonicalize the pathname of ld
9703 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9704 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9705 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9706 done
9707 test -z "$LD" && LD="$ac_prog"
9708 ;;
9709 "")
9710 # If it fails, then pretend we aren't using GCC.
9711 ac_prog=ld
9712 ;;
9713 *)
9714 # If it is relative, then search for the first ld in PATH.
9715 with_gnu_ld=unknown
9716 ;;
9717 esac
9718elif test "$with_gnu_ld" = yes; then
9719 echo "$as_me:$LINENO: checking for GNU ld" >&5
9720echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9721else
9722 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9723echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9724fi
9725if test "${lt_cv_path_LD+set}" = set; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
9727else
9728 if test -z "$LD"; then
9729 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9730 for ac_dir in $PATH; do
9731 IFS="$lt_save_ifs"
9732 test -z "$ac_dir" && ac_dir=.
9733 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9734 lt_cv_path_LD="$ac_dir/$ac_prog"
9735 # Check to see if the program is GNU ld. I'd rather use --version,
9736 # but apparently some GNU ld's only accept -v.
9737 # Break only if it was the GNU/non-GNU ld that we prefer.
9738 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9739 *GNU* | *'with BFD'*)
9740 test "$with_gnu_ld" != no && break
9741 ;;
9742 *)
9743 test "$with_gnu_ld" != yes && break
9744 ;;
9745 esac
9746 fi
9747 done
9748 IFS="$lt_save_ifs"
9749else
9750 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9751fi
9752fi
9753
9754LD="$lt_cv_path_LD"
9755if test -n "$LD"; then
9756 echo "$as_me:$LINENO: result: $LD" >&5
9757echo "${ECHO_T}$LD" >&6
9758else
9759 echo "$as_me:$LINENO: result: no" >&5
9760echo "${ECHO_T}no" >&6
9761fi
9762test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9763echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9764 { (exit 1); exit 1; }; }
9765echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9766echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9767if test "${lt_cv_prog_gnu_ld+set}" = set; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9769else
9770 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9771case `$LD -v 2>&1 </dev/null` in
9772*GNU* | *'with BFD'*)
9773 lt_cv_prog_gnu_ld=yes
9774 ;;
9775*)
9776 lt_cv_prog_gnu_ld=no
9777 ;;
9778esac
9779fi
9780echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9781echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9782with_gnu_ld=$lt_cv_prog_gnu_ld
9783
9784
9785
9786 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9787 # archiving commands below assume that GNU ld is being used.
9788 if test "$with_gnu_ld" = yes; then
9789 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9790 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'
9791
9792 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9793 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9794
9795 # If archive_cmds runs LD, not CC, wlarc should be empty
9796 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9797 # investigate it a little bit more. (MM)
9798 wlarc='${wl}'
9799
9800 # ancient GNU ld didn't support --whole-archive et. al.
9801 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9802 grep 'no-whole-archive' > /dev/null; then
9803 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9804 else
9805 whole_archive_flag_spec_CXX=
9806 fi
9807 else
9808 with_gnu_ld=no
9809 wlarc=
9810
9811 # A generic and very simple default shared library creation
9812 # command for GNU C++ for the case where it uses the native
9813 # linker, instead of GNU ld. If possible, this setting should
9814 # overridden to take advantage of the native linker features on
9815 # the platform it is being used on.
9816 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9817 fi
9818
9819 # Commands to make compiler produce verbose output that lists
9820 # what "hidden" libraries, object files and flags are used when
9821 # linking a shared library.
9822 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9823
9824else
9825 GXX=no
9826 with_gnu_ld=no
9827 wlarc=
9828fi
9829
9830# PORTME: fill in a description of your system's C++ link characteristics
9831echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9832echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9833ld_shlibs_CXX=yes
9834case $host_os in
9835 aix3*)
9836 # FIXME: insert proper C++ library support
9837 ld_shlibs_CXX=no
9838 ;;
9839 aix4* | aix5*)
9840 if test "$host_cpu" = ia64; then
9841 # On IA64, the linker does run time linking by default, so we don't
9842 # have to do anything special.
9843 aix_use_runtimelinking=no
9844 exp_sym_flag='-Bexport'
9845 no_entry_flag=""
9846 else
9847 aix_use_runtimelinking=no
9848
9849 # Test if we are trying to use run time linking or normal
9850 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9851 # need to do runtime linking.
9852 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9853 for ld_flag in $LDFLAGS; do
9854 case $ld_flag in
9855 *-brtl*)
9856 aix_use_runtimelinking=yes
9857 break
9858 ;;
9859 esac
9860 done
9861 esac
9862
9863 exp_sym_flag='-bexport'
9864 no_entry_flag='-bnoentry'
9865 fi
9866
9867 # When large executables or shared objects are built, AIX ld can
9868 # have problems creating the table of contents. If linking a library
9869 # or program results in "error TOC overflow" add -mminimal-toc to
9870 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9871 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9872
9873 archive_cmds_CXX=''
9874 hardcode_direct_CXX=yes
9875 hardcode_libdir_separator_CXX=':'
9876 link_all_deplibs_CXX=yes
9877
9878 if test "$GXX" = yes; then
9879 case $host_os in aix4.012|aix4.012.*)
9880 # We only want to do this on AIX 4.2 and lower, the check
9881 # below for broken collect2 doesn't work under 4.3+
9882 collect2name=`${CC} -print-prog-name=collect2`
9883 if test -f "$collect2name" && \
9884 strings "$collect2name" | grep resolve_lib_name >/dev/null
9885 then
9886 # We have reworked collect2
9887 hardcode_direct_CXX=yes
9888 else
9889 # We have old collect2
9890 hardcode_direct_CXX=unsupported
9891 # It fails to find uninstalled libraries when the uninstalled
9892 # path is not listed in the libpath. Setting hardcode_minus_L
9893 # to unsupported forces relinking
9894 hardcode_minus_L_CXX=yes
9895 hardcode_libdir_flag_spec_CXX='-L$libdir'
9896 hardcode_libdir_separator_CXX=
9897 fi
9898 esac
9899 shared_flag='-shared'
9900 else
9901 # not using gcc
9902 if test "$host_cpu" = ia64; then
9903 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9904 # chokes on -Wl,-G. The following line is correct:
9905 shared_flag='-G'
9906 else
9907 if test "$aix_use_runtimelinking" = yes; then
9908 shared_flag='${wl}-G'
9909 else
9910 shared_flag='${wl}-bM:SRE'
9911 fi
9912 fi
9913 fi
9914
9915 # It seems that -bexpall does not export symbols beginning with
9916 # underscore (_), so it is better to generate a list of symbols to export.
9917 always_export_symbols_CXX=yes
9918 if test "$aix_use_runtimelinking" = yes; then
9919 # Warning - without using the other runtime loading flags (-brtl),
9920 # -berok will link without error, but may produce a broken library.
9921 allow_undefined_flag_CXX='-berok'
9922 # Determine the default libpath from the value encoded in an empty executable.
9923 cat >conftest.$ac_ext <<_ACEOF
9924/* confdefs.h. */
9925_ACEOF
9926cat confdefs.h >>conftest.$ac_ext
9927cat >>conftest.$ac_ext <<_ACEOF
9928/* end confdefs.h. */
9929
9930int
9931main ()
9932{
9933
9934 ;
9935 return 0;
9936}
9937_ACEOF
9938rm -f conftest.$ac_objext conftest$ac_exeext
9939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9940 (eval $ac_link) 2>conftest.er1
9941 ac_status=$?
9942 grep -v '^ *+' conftest.er1 >conftest.err
9943 rm -f conftest.er1
9944 cat conftest.err >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); } &&
9947 { ac_try='test -z "$ac_cxx_werror_flag"
9948 || test ! -s conftest.err'
9949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950 (eval $ac_try) 2>&5
9951 ac_status=$?
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; } &&
9954 { ac_try='test -s conftest$ac_exeext'
9955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956 (eval $ac_try) 2>&5
9957 ac_status=$?
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); }; }; then
9960
9961aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9962}'`
9963# Check for a 64-bit object if we didn't find anything.
9964if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9965}'`; fi
9966else
9967 echo "$as_me: failed program was:" >&5
9968sed 's/^/| /' conftest.$ac_ext >&5
9969
9970fi
9971rm -f conftest.err conftest.$ac_objext \
9972 conftest$ac_exeext conftest.$ac_ext
9973if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9974
9975 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9976
9977 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9978 else
9979 if test "$host_cpu" = ia64; then
9980 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9981 allow_undefined_flag_CXX="-z nodefs"
9982 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9983 else
9984 # Determine the default libpath from the value encoded in an empty executable.
9985 cat >conftest.$ac_ext <<_ACEOF
9986/* confdefs.h. */
9987_ACEOF
9988cat confdefs.h >>conftest.$ac_ext
9989cat >>conftest.$ac_ext <<_ACEOF
9990/* end confdefs.h. */
9991
9992int
9993main ()
9994{
9995
9996 ;
9997 return 0;
9998}
9999_ACEOF
10000rm -f conftest.$ac_objext conftest$ac_exeext
10001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10002 (eval $ac_link) 2>conftest.er1
10003 ac_status=$?
10004 grep -v '^ *+' conftest.er1 >conftest.err
10005 rm -f conftest.er1
10006 cat conftest.err >&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); } &&
10009 { ac_try='test -z "$ac_cxx_werror_flag"
10010 || test ! -s conftest.err'
10011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10012 (eval $ac_try) 2>&5
10013 ac_status=$?
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); }; } &&
10016 { ac_try='test -s conftest$ac_exeext'
10017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10018 (eval $ac_try) 2>&5
10019 ac_status=$?
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); }; }; then
10022
10023aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10024}'`
10025# Check for a 64-bit object if we didn't find anything.
10026if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10027}'`; fi
10028else
10029 echo "$as_me: failed program was:" >&5
10030sed 's/^/| /' conftest.$ac_ext >&5
10031
10032fi
10033rm -f conftest.err conftest.$ac_objext \
10034 conftest$ac_exeext conftest.$ac_ext
10035if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10036
10037 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10038 # Warning - without using the other run time loading flags,
10039 # -berok will link without error, but may produce a broken library.
10040 no_undefined_flag_CXX=' ${wl}-bernotok'
10041 allow_undefined_flag_CXX=' ${wl}-berok'
10042 # -bexpall does not export symbols beginning with underscore (_)
10043 always_export_symbols_CXX=yes
10044 # Exported symbols can be pulled into shared objects from archives
10045 whole_archive_flag_spec_CXX=' '
10046 archive_cmds_need_lc_CXX=yes
10047 # This is similar to how AIX traditionally builds it's shared libraries.
10048 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10049 fi
10050 fi
10051 ;;
10052 chorus*)
10053 case $cc_basename in
10054 *)
10055 # FIXME: insert proper C++ library support
10056 ld_shlibs_CXX=no
10057 ;;
10058 esac
10059 ;;
10060
10061 cygwin* | mingw* | pw32*)
10062 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10063 # as there is no search path for DLLs.
10064 hardcode_libdir_flag_spec_CXX='-L$libdir'
10065 allow_undefined_flag_CXX=unsupported
10066 always_export_symbols_CXX=no
10067 enable_shared_with_static_runtimes_CXX=yes
10068
10069 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10070 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10071 # If the export-symbols file already is a .def file (1st line
10072 # is EXPORTS), use it as is; otherwise, prepend...
10073 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10074 cp $export_symbols $output_objdir/$soname.def;
10075 else
10076 echo EXPORTS > $output_objdir/$soname.def;
10077 cat $export_symbols >> $output_objdir/$soname.def;
10078 fi~
10079 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10080 else
10081 ld_shlibs_CXX=no
10082 fi
10083 ;;
10084
10085 darwin* | rhapsody*)
10086 if test "$GXX" = yes; then
10087 archive_cmds_need_lc_CXX=no
10088 case "$host_os" in
10089 rhapsody* | darwin1.[012])
10090 allow_undefined_flag_CXX='-undefined suppress'
10091 ;;
10092 *) # Darwin 1.3 on
10093 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10094 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10095 else
10096 case ${MACOSX_DEPLOYMENT_TARGET} in
10097 10.[012])
10098 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10099 ;;
10100 10.*)
10101 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10102 ;;
10103 esac
10104 fi
10105 ;;
10106 esac
10107 lt_int_apple_cc_single_mod=no
10108 output_verbose_link_cmd='echo'
10109 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10110 lt_int_apple_cc_single_mod=yes
10111 fi
10112 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10113 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10114 else
10115 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10116 fi
10117 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10118
10119 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10120 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10121 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}'
10122 else
10123 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10124 fi
10125 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}'
10126 hardcode_direct_CXX=no
10127 hardcode_automatic_CXX=yes
10128 hardcode_shlibpath_var_CXX=unsupported
10129 whole_archive_flag_spec_CXX='-all_load $convenience'
10130 link_all_deplibs_CXX=yes
10131 else
10132 ld_shlibs_CXX=no
10133 fi
10134 ;;
10135
10136 dgux*)
10137 case $cc_basename in
10138 ec++)
10139 # FIXME: insert proper C++ library support
10140 ld_shlibs_CXX=no
10141 ;;
10142 ghcx)
10143 # Green Hills C++ Compiler
10144 # FIXME: insert proper C++ library support
10145 ld_shlibs_CXX=no
10146 ;;
10147 *)
10148 # FIXME: insert proper C++ library support
10149 ld_shlibs_CXX=no
10150 ;;
10151 esac
10152 ;;
10153 freebsd12*)
10154 # C++ shared libraries reported to be fairly broken before switch to ELF
10155 ld_shlibs_CXX=no
10156 ;;
10157 freebsd-elf*)
10158 archive_cmds_need_lc_CXX=no
10159 ;;
10160 freebsd* | kfreebsd*-gnu)
10161 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10162 # conventions
10163 ld_shlibs_CXX=yes
10164 ;;
10165 gnu*)
10166 ;;
10167 hpux9*)
10168 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10169 hardcode_libdir_separator_CXX=:
10170 export_dynamic_flag_spec_CXX='${wl}-E'
10171 hardcode_direct_CXX=yes
10172 hardcode_minus_L_CXX=yes # Not in the search PATH,
10173 # but as the default
10174 # location of the library.
10175
10176 case $cc_basename in
10177 CC)
10178 # FIXME: insert proper C++ library support
10179 ld_shlibs_CXX=no
10180 ;;
10181 aCC)
10182 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'
10183 # Commands to make compiler produce verbose output that lists
10184 # what "hidden" libraries, object files and flags are used when
10185 # linking a shared library.
10186 #
10187 # There doesn't appear to be a way to prevent this compiler from
10188 # explicitly linking system object files so we need to strip them
10189 # from the output so that they don't get included in the library
10190 # dependencies.
10191 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'
10192 ;;
10193 *)
10194 if test "$GXX" = yes; then
10195 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'
10196 else
10197 # FIXME: insert proper C++ library support
10198 ld_shlibs_CXX=no
10199 fi
10200 ;;
10201 esac
10202 ;;
10203 hpux10*|hpux11*)
10204 if test $with_gnu_ld = no; then
10205 case "$host_cpu" in
10206 hppa*64*)
10207 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10208 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10209 hardcode_libdir_separator_CXX=:
10210 ;;
10211 ia64*)
10212 hardcode_libdir_flag_spec_CXX='-L$libdir'
10213 ;;
10214 *)
10215 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10216 hardcode_libdir_separator_CXX=:
10217 export_dynamic_flag_spec_CXX='${wl}-E'
10218 ;;
10219 esac
10220 fi
10221 case "$host_cpu" in
10222 hppa*64*)
10223 hardcode_direct_CXX=no
10224 hardcode_shlibpath_var_CXX=no
10225 ;;
10226 ia64*)
10227 hardcode_direct_CXX=no
10228 hardcode_shlibpath_var_CXX=no
10229 hardcode_minus_L_CXX=yes # Not in the search PATH,
10230 # but as the default
10231 # location of the library.
10232 ;;
10233 *)
10234 hardcode_direct_CXX=yes
10235 hardcode_minus_L_CXX=yes # Not in the search PATH,
10236 # but as the default
10237 # location of the library.
10238 ;;
10239 esac
10240
10241 case $cc_basename in
10242 CC)
10243 # FIXME: insert proper C++ library support
10244 ld_shlibs_CXX=no
10245 ;;
10246 aCC)
10247 case "$host_cpu" in
10248 hppa*64*|ia64*)
10249 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10250 ;;
10251 *)
10252 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10253 ;;
10254 esac
10255 # Commands to make compiler produce verbose output that lists
10256 # what "hidden" libraries, object files and flags are used when
10257 # linking a shared library.
10258 #
10259 # There doesn't appear to be a way to prevent this compiler from
10260 # explicitly linking system object files so we need to strip them
10261 # from the output so that they don't get included in the library
10262 # dependencies.
10263 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'
10264 ;;
10265 *)
10266 if test "$GXX" = yes; then
10267 if test $with_gnu_ld = no; then
10268 case "$host_cpu" in
10269 ia64*|hppa*64*)
10270 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10271 ;;
10272 *)
10273 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'
10274 ;;
10275 esac
10276 fi
10277 else
10278 # FIXME: insert proper C++ library support
10279 ld_shlibs_CXX=no
10280 fi
10281 ;;
10282 esac
10283 ;;
10284 irix5* | irix6*)
10285 case $cc_basename in
10286 CC)
10287 # SGI C++
10288 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10289
10290 # Archives containing C++ object files must be created using
10291 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10292 # necessary to make sure instantiated templates are included
10293 # in the archive.
10294 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10295 ;;
10296 *)
10297 if test "$GXX" = yes; then
10298 if test "$with_gnu_ld" = no; then
10299 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10300 else
10301 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'
10302 fi
10303 fi
10304 link_all_deplibs_CXX=yes
10305 ;;
10306 esac
10307 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10308 hardcode_libdir_separator_CXX=:
10309 ;;
10310 linux*)
10311 case $cc_basename in
10312 KCC)
10313 # Kuck and Associates, Inc. (KAI) C++ Compiler
10314
10315 # KCC will only create a shared library if the output file
10316 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10317 # to its proper name (with version) after linking.
10318 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'
10319 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'
10320 # Commands to make compiler produce verbose output that lists
10321 # what "hidden" libraries, object files and flags are used when
10322 # linking a shared library.
10323 #
10324 # There doesn't appear to be a way to prevent this compiler from
10325 # explicitly linking system object files so we need to strip them
10326 # from the output so that they don't get included in the library
10327 # dependencies.
10328 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'
10329
10330 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10331 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10332
10333 # Archives containing C++ object files must be created using
10334 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10335 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10336 ;;
10337 icpc)
10338 # Intel C++
10339 with_gnu_ld=yes
10340 archive_cmds_need_lc_CXX=no
10341 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10342 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'
10343 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10344 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10345 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10346 ;;
10347 cxx)
10348 # Compaq C++
10349 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10350 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'
10351
10352 runpath_var=LD_RUN_PATH
10353 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10354 hardcode_libdir_separator_CXX=:
10355
10356 # Commands to make compiler produce verbose output that lists
10357 # what "hidden" libraries, object files and flags are used when
10358 # linking a shared library.
10359 #
10360 # There doesn't appear to be a way to prevent this compiler from
10361 # explicitly linking system object files so we need to strip them
10362 # from the output so that they don't get included in the library
10363 # dependencies.
10364 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'
10365 ;;
10366 esac
10367 ;;
10368 lynxos*)
10369 # FIXME: insert proper C++ library support
10370 ld_shlibs_CXX=no
10371 ;;
10372 m88k*)
10373 # FIXME: insert proper C++ library support
10374 ld_shlibs_CXX=no
10375 ;;
10376 mvs*)
10377 case $cc_basename in
10378 cxx)
10379 # FIXME: insert proper C++ library support
10380 ld_shlibs_CXX=no
10381 ;;
10382 *)
10383 # FIXME: insert proper C++ library support
10384 ld_shlibs_CXX=no
10385 ;;
10386 esac
10387 ;;
10388 netbsd*)
10389 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10390 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10391 wlarc=
10392 hardcode_libdir_flag_spec_CXX='-R$libdir'
10393 hardcode_direct_CXX=yes
10394 hardcode_shlibpath_var_CXX=no
10395 fi
10396 # Workaround some broken pre-1.5 toolchains
10397 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10398 ;;
10399 osf3*)
10400 case $cc_basename in
10401 KCC)
10402 # Kuck and Associates, Inc. (KAI) C++ Compiler
10403
10404 # KCC will only create a shared library if the output file
10405 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10406 # to its proper name (with version) after linking.
10407 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'
10408
10409 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10410 hardcode_libdir_separator_CXX=:
10411
10412 # Archives containing C++ object files must be created using
10413 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10414 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10415
10416 ;;
10417 RCC)
10418 # Rational C++ 2.4.1
10419 # FIXME: insert proper C++ library support
10420 ld_shlibs_CXX=no
10421 ;;
10422 cxx)
10423 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10424 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10425
10426 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10427 hardcode_libdir_separator_CXX=:
10428
10429 # Commands to make compiler produce verbose output that lists
10430 # what "hidden" libraries, object files and flags are used when
10431 # linking a shared library.
10432 #
10433 # There doesn't appear to be a way to prevent this compiler from
10434 # explicitly linking system object files so we need to strip them
10435 # from the output so that they don't get included in the library
10436 # dependencies.
10437 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'
10438 ;;
10439 *)
10440 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10441 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10442 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10443
10444 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10445 hardcode_libdir_separator_CXX=:
10446
10447 # Commands to make compiler produce verbose output that lists
10448 # what "hidden" libraries, object files and flags are used when
10449 # linking a shared library.
10450 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10451
10452 else
10453 # FIXME: insert proper C++ library support
10454 ld_shlibs_CXX=no
10455 fi
10456 ;;
10457 esac
10458 ;;
10459 osf4* | osf5*)
10460 case $cc_basename in
10461 KCC)
10462 # Kuck and Associates, Inc. (KAI) C++ Compiler
10463
10464 # KCC will only create a shared library if the output file
10465 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10466 # to its proper name (with version) after linking.
10467 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'
10468
10469 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10470 hardcode_libdir_separator_CXX=:
10471
10472 # Archives containing C++ object files must be created using
10473 # the KAI C++ compiler.
10474 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10475 ;;
10476 RCC)
10477 # Rational C++ 2.4.1
10478 # FIXME: insert proper C++ library support
10479 ld_shlibs_CXX=no
10480 ;;
10481 cxx)
10482 allow_undefined_flag_CXX=' -expect_unresolved \*'
10483 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10484 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10485 echo "-hidden">> $lib.exp~
10486 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10487 $rm $lib.exp'
10488
10489 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10490 hardcode_libdir_separator_CXX=:
10491
10492 # Commands to make compiler produce verbose output that lists
10493 # what "hidden" libraries, object files and flags are used when
10494 # linking a shared library.
10495 #
10496 # There doesn't appear to be a way to prevent this compiler from
10497 # explicitly linking system object files so we need to strip them
10498 # from the output so that they don't get included in the library
10499 # dependencies.
10500 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'
10501 ;;
10502 *)
10503 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10504 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10505 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10506
10507 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10508 hardcode_libdir_separator_CXX=:
10509
10510 # Commands to make compiler produce verbose output that lists
10511 # what "hidden" libraries, object files and flags are used when
10512 # linking a shared library.
10513 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10514
10515 else
10516 # FIXME: insert proper C++ library support
10517 ld_shlibs_CXX=no
10518 fi
10519 ;;
10520 esac
10521 ;;
10522 psos*)
10523 # FIXME: insert proper C++ library support
10524 ld_shlibs_CXX=no
10525 ;;
10526 sco*)
10527 archive_cmds_need_lc_CXX=no
10528 case $cc_basename in
10529 CC)
10530 # FIXME: insert proper C++ library support
10531 ld_shlibs_CXX=no
10532 ;;
10533 *)
10534 # FIXME: insert proper C++ library support
10535 ld_shlibs_CXX=no
10536 ;;
10537 esac
10538 ;;
10539 sunos4*)
10540 case $cc_basename in
10541 CC)
10542 # Sun C++ 4.x
10543 # FIXME: insert proper C++ library support
10544 ld_shlibs_CXX=no
10545 ;;
10546 lcc)
10547 # Lucid
10548 # FIXME: insert proper C++ library support
10549 ld_shlibs_CXX=no
10550 ;;
10551 *)
10552 # FIXME: insert proper C++ library support
10553 ld_shlibs_CXX=no
10554 ;;
10555 esac
10556 ;;
10557 solaris*)
10558 case $cc_basename in
10559 CC)
10560 # Sun C++ 4.2, 5.x and Centerline C++
10561 no_undefined_flag_CXX=' -zdefs'
10562 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10563 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10564 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10565
10566 hardcode_libdir_flag_spec_CXX='-R$libdir'
10567 hardcode_shlibpath_var_CXX=no
10568 case $host_os in
10569 solaris2.0-5 | solaris2.0-5.*) ;;
10570 *)
10571 # The C++ compiler is used as linker so we must use $wl
10572 # flag to pass the commands to the underlying system
10573 # linker.
10574 # Supported since Solaris 2.6 (maybe 2.5.1?)
10575 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10576 ;;
10577 esac
10578 link_all_deplibs_CXX=yes
10579
10580 # Commands to make compiler produce verbose output that lists
10581 # what "hidden" libraries, object files and flags are used when
10582 # linking a shared library.
10583 #
10584 # There doesn't appear to be a way to prevent this compiler from
10585 # explicitly linking system object files so we need to strip them
10586 # from the output so that they don't get included in the library
10587 # dependencies.
10588 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10589
10590 # Archives containing C++ object files must be created using
10591 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10592 # necessary to make sure instantiated templates are included
10593 # in the archive.
10594 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10595 ;;
10596 gcx)
10597 # Green Hills C++ Compiler
10598 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10599
10600 # The C++ compiler must be used to create the archive.
10601 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10602 ;;
10603 *)
10604 # GNU C++ compiler with Solaris linker
10605 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10606 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10607 if $CC --version | grep -v '^2\.7' > /dev/null; then
10608 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10609 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10610 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10611
10612 # Commands to make compiler produce verbose output that lists
10613 # what "hidden" libraries, object files and flags are used when
10614 # linking a shared library.
10615 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10616 else
10617 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10618 # platform.
10619 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10620 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10621 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10622
10623 # Commands to make compiler produce verbose output that lists
10624 # what "hidden" libraries, object files and flags are used when
10625 # linking a shared library.
10626 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10627 fi
10628
10629 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10630 fi
10631 ;;
10632 esac
10633 ;;
10634 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10635 archive_cmds_need_lc_CXX=no
10636 ;;
10637 tandem*)
10638 case $cc_basename in
10639 NCC)
10640 # NonStop-UX NCC 3.20
10641 # FIXME: insert proper C++ library support
10642 ld_shlibs_CXX=no
10643 ;;
10644 *)
10645 # FIXME: insert proper C++ library support
10646 ld_shlibs_CXX=no
10647 ;;
10648 esac
10649 ;;
10650 vxworks*)
10651 # FIXME: insert proper C++ library support
10652 ld_shlibs_CXX=no
10653 ;;
10654 *)
10655 # FIXME: insert proper C++ library support
10656 ld_shlibs_CXX=no
10657 ;;
10658esac
10659echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10660echo "${ECHO_T}$ld_shlibs_CXX" >&6
10661test "$ld_shlibs_CXX" = no && can_build_shared=no
10662
10663GCC_CXX="$GXX"
10664LD_CXX="$LD"
10665
10666
10667cat > conftest.$ac_ext <<EOF
10668class Foo
10669{
10670public:
10671 Foo (void) { a = 0; }
10672private:
10673 int a;
10674};
10675EOF
10676
10677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10678 (eval $ac_compile) 2>&5
10679 ac_status=$?
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; then
10682 # Parse the compiler output and extract the necessary
10683 # objects, libraries and library flags.
10684
10685 # Sentinel used to keep track of whether or not we are before
10686 # the conftest object file.
10687 pre_test_object_deps_done=no
10688
10689 # The `*' in the case matches for architectures that use `case' in
10690 # $output_verbose_cmd can trigger glob expansion during the loop
10691 # eval without this substitution.
10692 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10693
10694 for p in `eval $output_verbose_link_cmd`; do
10695 case $p in
10696
10697 -L* | -R* | -l*)
10698 # Some compilers place space between "-{L,R}" and the path.
10699 # Remove the space.
10700 if test $p = "-L" \
10701 || test $p = "-R"; then
10702 prev=$p
10703 continue
10704 else
10705 prev=
10706 fi
10707
10708 if test "$pre_test_object_deps_done" = no; then
10709 case $p in
10710 -L* | -R*)
10711 # Internal compiler library paths should come after those
10712 # provided the user. The postdeps already come after the
10713 # user supplied libs so there is no need to process them.
10714 if test -z "$compiler_lib_search_path_CXX"; then
10715 compiler_lib_search_path_CXX="${prev}${p}"
10716 else
10717 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10718 fi
10719 ;;
10720 # The "-l" case would never come before the object being
10721 # linked, so don't bother handling this case.
10722 esac
10723 else
10724 if test -z "$postdeps_CXX"; then
10725 postdeps_CXX="${prev}${p}"
10726 else
10727 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10728 fi
10729 fi
10730 ;;
10731
10732 *.$objext)
10733 # This assumes that the test object file only shows up
10734 # once in the compiler output.
10735 if test "$p" = "conftest.$objext"; then
10736 pre_test_object_deps_done=yes
10737 continue
10738 fi
10739
10740 if test "$pre_test_object_deps_done" = no; then
10741 if test -z "$predep_objects_CXX"; then
10742 predep_objects_CXX="$p"
10743 else
10744 predep_objects_CXX="$predep_objects_CXX $p"
10745 fi
10746 else
10747 if test -z "$postdep_objects_CXX"; then
10748 postdep_objects_CXX="$p"
10749 else
10750 postdep_objects_CXX="$postdep_objects_CXX $p"
10751 fi
10752 fi
10753 ;;
10754
10755 *) ;; # Ignore the rest.
10756
10757 esac
10758 done
10759
10760 # Clean up.
10761 rm -f a.out a.exe
10762else
10763 echo "libtool.m4: error: problem compiling CXX test program"
10764fi
10765
10766$rm -f confest.$objext
10767
10768case " $postdeps_CXX " in
10769*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10770esac
10771
10772lt_prog_compiler_wl_CXX=
10773lt_prog_compiler_pic_CXX=
10774lt_prog_compiler_static_CXX=
10775
10776echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10777echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10778
10779 # C++ specific cases for pic, static, wl, etc.
10780 if test "$GXX" = yes; then
10781 lt_prog_compiler_wl_CXX='-Wl,'
10782 lt_prog_compiler_static_CXX='-static'
10783
10784 case $host_os in
10785 aix*)
10786 # All AIX code is PIC.
10787 if test "$host_cpu" = ia64; then
10788 # AIX 5 now supports IA64 processor
10789 lt_prog_compiler_static_CXX='-Bstatic'
10790 fi
10791 ;;
10792 amigaos*)
10793 # FIXME: we need at least 68020 code to build shared libraries, but
10794 # adding the `-m68020' flag to GCC prevents building anything better,
10795 # like `-m68040'.
10796 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10797 ;;
10798 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10799 # PIC is the default for these OSes.
10800 ;;
10801 mingw* | os2* | pw32*)
10802 # This hack is so that the source file can tell whether it is being
10803 # built for inclusion in a dll (and should export symbols for example).
10804 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10805 ;;
10806 darwin* | rhapsody*)
10807 # PIC is the default on this platform
10808 # Common symbols not allowed in MH_DYLIB files
10809 lt_prog_compiler_pic_CXX='-fno-common'
10810 ;;
10811 *djgpp*)
10812 # DJGPP does not support shared libraries at all
10813 lt_prog_compiler_pic_CXX=
10814 ;;
10815 sysv4*MP*)
10816 if test -d /usr/nec; then
10817 lt_prog_compiler_pic_CXX=-Kconform_pic
10818 fi
10819 ;;
10820 hpux*)
10821 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10822 # not for PA HP-UX.
10823 case "$host_cpu" in
10824 hppa*64*|ia64*)
10825 ;;
10826 *)
10827 lt_prog_compiler_pic_CXX='-fPIC'
10828 ;;
10829 esac
10830 ;;
10831 *)
10832 lt_prog_compiler_pic_CXX='-fPIC'
10833 ;;
10834 esac
10835 else
10836 case $host_os in
10837 aix4* | aix5*)
10838 # All AIX code is PIC.
10839 if test "$host_cpu" = ia64; then
10840 # AIX 5 now supports IA64 processor
10841 lt_prog_compiler_static_CXX='-Bstatic'
10842 else
10843 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10844 fi
10845 ;;
10846 chorus*)
10847 case $cc_basename in
10848 cxch68)
10849 # Green Hills C++ Compiler
10850 # _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"
10851 ;;
10852 esac
10853 ;;
10854 dgux*)
10855 case $cc_basename in
10856 ec++)
10857 lt_prog_compiler_pic_CXX='-KPIC'
10858 ;;
10859 ghcx)
10860 # Green Hills C++ Compiler
10861 lt_prog_compiler_pic_CXX='-pic'
10862 ;;
10863 *)
10864 ;;
10865 esac
10866 ;;
10867 freebsd* | kfreebsd*-gnu)
10868 # FreeBSD uses GNU C++
10869 ;;
10870 hpux9* | hpux10* | hpux11*)
10871 case $cc_basename in
10872 CC)
10873 lt_prog_compiler_wl_CXX='-Wl,'
10874 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10875 if test "$host_cpu" != ia64; then
10876 lt_prog_compiler_pic_CXX='+Z'
10877 fi
10878 ;;
10879 aCC)
10880 lt_prog_compiler_wl_CXX='-Wl,'
10881 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10882 case "$host_cpu" in
10883 hppa*64*|ia64*)
10884 # +Z the default
10885 ;;
10886 *)
10887 lt_prog_compiler_pic_CXX='+Z'
10888 ;;
10889 esac
10890 ;;
10891 *)
10892 ;;
10893 esac
10894 ;;
10895 irix5* | irix6* | nonstopux*)
10896 case $cc_basename in
10897 CC)
10898 lt_prog_compiler_wl_CXX='-Wl,'
10899 lt_prog_compiler_static_CXX='-non_shared'
10900 # CC pic flag -KPIC is the default.
10901 ;;
10902 *)
10903 ;;
10904 esac
10905 ;;
10906 linux*)
10907 case $cc_basename in
10908 KCC)
10909 # KAI C++ Compiler
10910 lt_prog_compiler_wl_CXX='--backend -Wl,'
10911 lt_prog_compiler_pic_CXX='-fPIC'
10912 ;;
10913 icpc)
10914 # Intel C++
10915 lt_prog_compiler_wl_CXX='-Wl,'
10916 lt_prog_compiler_pic_CXX='-KPIC'
10917 lt_prog_compiler_static_CXX='-static'
10918 ;;
10919 cxx)
10920 # Compaq C++
10921 # Make sure the PIC flag is empty. It appears that all Alpha
10922 # Linux and Compaq Tru64 Unix objects are PIC.
10923 lt_prog_compiler_pic_CXX=
10924 lt_prog_compiler_static_CXX='-non_shared'
10925 ;;
10926 *)
10927 ;;
10928 esac
10929 ;;
10930 lynxos*)
10931 ;;
10932 m88k*)
10933 ;;
10934 mvs*)
10935 case $cc_basename in
10936 cxx)
10937 lt_prog_compiler_pic_CXX='-W c,exportall'
10938 ;;
10939 *)
10940 ;;
10941 esac
10942 ;;
10943 netbsd*)
10944 ;;
10945 osf3* | osf4* | osf5*)
10946 case $cc_basename in
10947 KCC)
10948 lt_prog_compiler_wl_CXX='--backend -Wl,'
10949 ;;
10950 RCC)
10951 # Rational C++ 2.4.1
10952 lt_prog_compiler_pic_CXX='-pic'
10953 ;;
10954 cxx)
10955 # Digital/Compaq C++
10956 lt_prog_compiler_wl_CXX='-Wl,'
10957 # Make sure the PIC flag is empty. It appears that all Alpha
10958 # Linux and Compaq Tru64 Unix objects are PIC.
10959 lt_prog_compiler_pic_CXX=
10960 lt_prog_compiler_static_CXX='-non_shared'
10961 ;;
10962 *)
10963 ;;
10964 esac
10965 ;;
10966 psos*)
10967 ;;
10968 sco*)
10969 case $cc_basename in
10970 CC)
10971 lt_prog_compiler_pic_CXX='-fPIC'
10972 ;;
10973 *)
10974 ;;
10975 esac
10976 ;;
10977 solaris*)
10978 case $cc_basename in
10979 CC)
10980 # Sun C++ 4.2, 5.x and Centerline C++
10981 lt_prog_compiler_pic_CXX='-KPIC'
10982 lt_prog_compiler_static_CXX='-Bstatic'
10983 lt_prog_compiler_wl_CXX='-Qoption ld '
10984 ;;
10985 gcx)
10986 # Green Hills C++ Compiler
10987 lt_prog_compiler_pic_CXX='-PIC'
10988 ;;
10989 *)
10990 ;;
10991 esac
10992 ;;
10993 sunos4*)
10994 case $cc_basename in
10995 CC)
10996 # Sun C++ 4.x
10997 lt_prog_compiler_pic_CXX='-pic'
10998 lt_prog_compiler_static_CXX='-Bstatic'
10999 ;;
11000 lcc)
11001 # Lucid
11002 lt_prog_compiler_pic_CXX='-pic'
11003 ;;
11004 *)
11005 ;;
11006 esac
11007 ;;
11008 tandem*)
11009 case $cc_basename in
11010 NCC)
11011 # NonStop-UX NCC 3.20
11012 lt_prog_compiler_pic_CXX='-KPIC'
11013 ;;
11014 *)
11015 ;;
11016 esac
11017 ;;
11018 unixware*)
11019 ;;
11020 vxworks*)
11021 ;;
11022 *)
11023 lt_prog_compiler_can_build_shared_CXX=no
11024 ;;
11025 esac
11026 fi
11027
11028echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11029echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11030
11031#
11032# Check to make sure the PIC flag actually works.
11033#
11034if test -n "$lt_prog_compiler_pic_CXX"; then
11035
11036echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11037echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11038if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11039 echo $ECHO_N "(cached) $ECHO_C" >&6
11040else
11041 lt_prog_compiler_pic_works_CXX=no
11042 ac_outfile=conftest.$ac_objext
11043 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11044 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11045 # Insert the option either (1) after the last *FLAGS variable, or
11046 # (2) before a word containing "conftest.", or (3) at the end.
11047 # Note that $ac_compile itself does not contain backslashes and begins
11048 # with a dollar sign (not a hyphen), so the echo should work correctly.
11049 # The option is referenced via a variable to avoid confusing sed.
11050 lt_compile=`echo "$ac_compile" | $SED \
11051 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11053 -e 's:$: $lt_compiler_flag:'`
Lev Walkin33cded12004-09-19 19:40:52 +000011054 (eval echo "\"\$as_me:11054: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +000011055 (eval "$lt_compile" 2>conftest.err)
11056 ac_status=$?
11057 cat conftest.err >&5
Lev Walkin33cded12004-09-19 19:40:52 +000011058 echo "$as_me:11058: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011059 if (exit $ac_status) && test -s "$ac_outfile"; then
11060 # The compiler can only warn and ignore the option if not recognized
11061 # So say no if there are warnings
11062 if test ! -s conftest.err; then
11063 lt_prog_compiler_pic_works_CXX=yes
11064 fi
11065 fi
11066 $rm conftest*
11067
11068fi
11069echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11070echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11071
11072if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11073 case $lt_prog_compiler_pic_CXX in
11074 "" | " "*) ;;
11075 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11076 esac
11077else
11078 lt_prog_compiler_pic_CXX=
11079 lt_prog_compiler_can_build_shared_CXX=no
11080fi
11081
11082fi
11083case "$host_os" in
11084 # For platforms which do not support PIC, -DPIC is meaningless:
11085 *djgpp*)
11086 lt_prog_compiler_pic_CXX=
11087 ;;
11088 *)
11089 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11090 ;;
11091esac
11092
11093echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11094echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11095if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11097else
11098 lt_cv_prog_compiler_c_o_CXX=no
11099 $rm -r conftest 2>/dev/null
11100 mkdir conftest
11101 cd conftest
11102 mkdir out
11103 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11104
11105 lt_compiler_flag="-o out/conftest2.$ac_objext"
11106 # Insert the option either (1) after the last *FLAGS variable, or
11107 # (2) before a word containing "conftest.", or (3) at the end.
11108 # Note that $ac_compile itself does not contain backslashes and begins
11109 # with a dollar sign (not a hyphen), so the echo should work correctly.
11110 lt_compile=`echo "$ac_compile" | $SED \
11111 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11113 -e 's:$: $lt_compiler_flag:'`
Lev Walkin33cded12004-09-19 19:40:52 +000011114 (eval echo "\"\$as_me:11114: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +000011115 (eval "$lt_compile" 2>out/conftest.err)
11116 ac_status=$?
11117 cat out/conftest.err >&5
Lev Walkin33cded12004-09-19 19:40:52 +000011118 echo "$as_me:11118: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011119 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11120 then
11121 # The compiler can only warn and ignore the option if not recognized
11122 # So say no if there are warnings
11123 if test ! -s out/conftest.err; then
11124 lt_cv_prog_compiler_c_o_CXX=yes
11125 fi
11126 fi
11127 chmod u+w .
11128 $rm conftest*
11129 # SGI C++ compiler will create directory out/ii_files/ for
11130 # template instantiation
11131 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11132 $rm out/* && rmdir out
11133 cd ..
11134 rmdir conftest
11135 $rm conftest*
11136
11137fi
11138echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11139echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11140
11141
11142hard_links="nottested"
11143if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11144 # do not overwrite the value of need_locks provided by the user
11145 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11146echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11147 hard_links=yes
11148 $rm conftest*
11149 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11150 touch conftest.a
11151 ln conftest.a conftest.b 2>&5 || hard_links=no
11152 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11153 echo "$as_me:$LINENO: result: $hard_links" >&5
11154echo "${ECHO_T}$hard_links" >&6
11155 if test "$hard_links" = no; then
11156 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11157echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11158 need_locks=warn
11159 fi
11160else
11161 need_locks=no
11162fi
11163
11164echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11165echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11166
11167 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11168 case $host_os in
11169 aix4* | aix5*)
11170 # If we're using GNU nm, then we don't want the "-C" option.
11171 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11172 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11173 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'
11174 else
11175 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'
11176 fi
11177 ;;
11178 pw32*)
11179 export_symbols_cmds_CXX="$ltdll_cmds"
11180 ;;
11181 cygwin* | mingw*)
11182 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11183 ;;
11184 *)
11185 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11186 ;;
11187 esac
11188
11189echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11190echo "${ECHO_T}$ld_shlibs_CXX" >&6
11191test "$ld_shlibs_CXX" = no && can_build_shared=no
11192
11193variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11194if test "$GCC" = yes; then
11195 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11196fi
11197
11198#
11199# Do we need to explicitly link libc?
11200#
11201case "x$archive_cmds_need_lc_CXX" in
11202x|xyes)
11203 # Assume -lc should be added
11204 archive_cmds_need_lc_CXX=yes
11205
11206 if test "$enable_shared" = yes && test "$GCC" = yes; then
11207 case $archive_cmds_CXX in
11208 *'~'*)
11209 # FIXME: we may have to deal with multi-command sequences.
11210 ;;
11211 '$CC '*)
11212 # Test whether the compiler implicitly links with -lc since on some
11213 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11214 # to ld, don't add -lc before -lgcc.
11215 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11216echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11217 $rm conftest*
11218 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11219
11220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11221 (eval $ac_compile) 2>&5
11222 ac_status=$?
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } 2>conftest.err; then
11225 soname=conftest
11226 lib=conftest
11227 libobjs=conftest.$ac_objext
11228 deplibs=
11229 wl=$lt_prog_compiler_wl_CXX
11230 compiler_flags=-v
11231 linker_flags=-v
11232 verstring=
11233 output_objdir=.
11234 libname=conftest
11235 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11236 allow_undefined_flag_CXX=
11237 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11238 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11239 ac_status=$?
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); }
11242 then
11243 archive_cmds_need_lc_CXX=no
11244 else
11245 archive_cmds_need_lc_CXX=yes
11246 fi
11247 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11248 else
11249 cat conftest.err 1>&5
11250 fi
11251 $rm conftest*
11252 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11253echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11254 ;;
11255 esac
11256 fi
11257 ;;
11258esac
11259
11260echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11261echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11262library_names_spec=
11263libname_spec='lib$name'
11264soname_spec=
11265shrext_cmds=".so"
11266postinstall_cmds=
11267postuninstall_cmds=
11268finish_cmds=
11269finish_eval=
11270shlibpath_var=
11271shlibpath_overrides_runpath=unknown
11272version_type=none
11273dynamic_linker="$host_os ld.so"
11274sys_lib_dlsearch_path_spec="/lib /usr/lib"
11275if test "$GCC" = yes; then
11276 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11277 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11278 # if the path contains ";" then we assume it to be the separator
11279 # otherwise default to the standard path separator (i.e. ":") - it is
11280 # assumed that no part of a normal pathname contains ";" but that should
11281 # okay in the real world where ";" in dirpaths is itself problematic.
11282 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11283 else
11284 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11285 fi
11286else
11287 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11288fi
11289need_lib_prefix=unknown
11290hardcode_into_libs=no
11291
11292# when you set need_version to no, make sure it does not cause -set_version
11293# flags to be left without arguments
11294need_version=unknown
11295
11296case $host_os in
11297aix3*)
11298 version_type=linux
11299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11300 shlibpath_var=LIBPATH
11301
11302 # AIX 3 has no versioning support, so we append a major version to the name.
11303 soname_spec='${libname}${release}${shared_ext}$major'
11304 ;;
11305
11306aix4* | aix5*)
11307 version_type=linux
11308 need_lib_prefix=no
11309 need_version=no
11310 hardcode_into_libs=yes
11311 if test "$host_cpu" = ia64; then
11312 # AIX 5 supports IA64
11313 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11314 shlibpath_var=LD_LIBRARY_PATH
11315 else
11316 # With GCC up to 2.95.x, collect2 would create an import file
11317 # for dependence libraries. The import file would start with
11318 # the line `#! .'. This would cause the generated library to
11319 # depend on `.', always an invalid library. This was fixed in
11320 # development snapshots of GCC prior to 3.0.
11321 case $host_os in
11322 aix4 | aix4.[01] | aix4.[01].*)
11323 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11324 echo ' yes '
11325 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11326 :
11327 else
11328 can_build_shared=no
11329 fi
11330 ;;
11331 esac
11332 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11333 # soname into executable. Probably we can add versioning support to
11334 # collect2, so additional links can be useful in future.
11335 if test "$aix_use_runtimelinking" = yes; then
11336 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11337 # instead of lib<name>.a to let people know that these are not
11338 # typical AIX shared libraries.
11339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11340 else
11341 # We preserve .a as extension for shared libraries through AIX4.2
11342 # and later when we are not doing run time linking.
11343 library_names_spec='${libname}${release}.a $libname.a'
11344 soname_spec='${libname}${release}${shared_ext}$major'
11345 fi
11346 shlibpath_var=LIBPATH
11347 fi
11348 ;;
11349
11350amigaos*)
11351 library_names_spec='$libname.ixlibrary $libname.a'
11352 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11353 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'
11354 ;;
11355
11356beos*)
11357 library_names_spec='${libname}${shared_ext}'
11358 dynamic_linker="$host_os ld.so"
11359 shlibpath_var=LIBRARY_PATH
11360 ;;
11361
11362bsdi4*)
11363 version_type=linux
11364 need_version=no
11365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11366 soname_spec='${libname}${release}${shared_ext}$major'
11367 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11368 shlibpath_var=LD_LIBRARY_PATH
11369 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11370 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11371 # the default ld.so.conf also contains /usr/contrib/lib and
11372 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11373 # libtool to hard-code these into programs
11374 ;;
11375
11376cygwin* | mingw* | pw32*)
11377 version_type=windows
11378 shrext_cmds=".dll"
11379 need_version=no
11380 need_lib_prefix=no
11381
11382 case $GCC,$host_os in
11383 yes,cygwin* | yes,mingw* | yes,pw32*)
11384 library_names_spec='$libname.dll.a'
11385 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11386 postinstall_cmds='base_file=`basename \${file}`~
11387 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11388 dldir=$destdir/`dirname \$dlpath`~
11389 test -d \$dldir || mkdir -p \$dldir~
11390 $install_prog $dir/$dlname \$dldir/$dlname'
11391 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11392 dlpath=$dir/\$dldll~
11393 $rm \$dlpath'
11394 shlibpath_overrides_runpath=yes
11395
11396 case $host_os in
11397 cygwin*)
11398 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11399 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11400 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11401 ;;
11402 mingw*)
11403 # MinGW DLLs use traditional 'lib' prefix
11404 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11405 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11406 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11407 # It is most probably a Windows format PATH printed by
11408 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11409 # path with ; separators, and with drive letters. We can handle the
11410 # drive letters (cygwin fileutils understands them), so leave them,
11411 # especially as we might pass files found there to a mingw objdump,
11412 # which wouldn't understand a cygwinified path. Ahh.
11413 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11414 else
11415 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11416 fi
11417 ;;
11418 pw32*)
11419 # pw32 DLLs use 'pw' prefix rather than 'lib'
11420 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11421 ;;
11422 esac
11423 ;;
11424
11425 *)
11426 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11427 ;;
11428 esac
11429 dynamic_linker='Win32 ld.exe'
11430 # FIXME: first we should search . and the directory the executable is in
11431 shlibpath_var=PATH
11432 ;;
11433
11434darwin* | rhapsody*)
11435 dynamic_linker="$host_os dyld"
11436 version_type=darwin
11437 need_lib_prefix=no
11438 need_version=no
11439 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11440 soname_spec='${libname}${release}${major}$shared_ext'
11441 shlibpath_overrides_runpath=yes
11442 shlibpath_var=DYLD_LIBRARY_PATH
11443 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11444 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11445 if test "$GCC" = yes; then
11446 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11447 else
11448 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11449 fi
11450 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11451 ;;
11452
11453dgux*)
11454 version_type=linux
11455 need_lib_prefix=no
11456 need_version=no
11457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11458 soname_spec='${libname}${release}${shared_ext}$major'
11459 shlibpath_var=LD_LIBRARY_PATH
11460 ;;
11461
11462freebsd1*)
11463 dynamic_linker=no
11464 ;;
11465
11466kfreebsd*-gnu)
11467 version_type=linux
11468 need_lib_prefix=no
11469 need_version=no
11470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11471 soname_spec='${libname}${release}${shared_ext}$major'
11472 shlibpath_var=LD_LIBRARY_PATH
11473 shlibpath_overrides_runpath=no
11474 hardcode_into_libs=yes
11475 dynamic_linker='GNU ld.so'
11476 ;;
11477
11478freebsd*)
11479 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11480 version_type=freebsd-$objformat
11481 case $version_type in
11482 freebsd-elf*)
11483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11484 need_version=no
11485 need_lib_prefix=no
11486 ;;
11487 freebsd-*)
11488 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11489 need_version=yes
11490 ;;
11491 esac
11492 shlibpath_var=LD_LIBRARY_PATH
11493 case $host_os in
11494 freebsd2*)
11495 shlibpath_overrides_runpath=yes
11496 ;;
11497 freebsd3.01* | freebsdelf3.01*)
11498 shlibpath_overrides_runpath=yes
11499 hardcode_into_libs=yes
11500 ;;
11501 *) # from 3.2 on
11502 shlibpath_overrides_runpath=no
11503 hardcode_into_libs=yes
11504 ;;
11505 esac
11506 ;;
11507
11508gnu*)
11509 version_type=linux
11510 need_lib_prefix=no
11511 need_version=no
11512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11513 soname_spec='${libname}${release}${shared_ext}$major'
11514 shlibpath_var=LD_LIBRARY_PATH
11515 hardcode_into_libs=yes
11516 ;;
11517
11518hpux9* | hpux10* | hpux11*)
11519 # Give a soname corresponding to the major version so that dld.sl refuses to
11520 # link against other versions.
11521 version_type=sunos
11522 need_lib_prefix=no
11523 need_version=no
11524 case "$host_cpu" in
11525 ia64*)
11526 shrext_cmds='.so'
11527 hardcode_into_libs=yes
11528 dynamic_linker="$host_os dld.so"
11529 shlibpath_var=LD_LIBRARY_PATH
11530 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11532 soname_spec='${libname}${release}${shared_ext}$major'
11533 if test "X$HPUX_IA64_MODE" = X32; then
11534 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11535 else
11536 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11537 fi
11538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11539 ;;
11540 hppa*64*)
11541 shrext_cmds='.sl'
11542 hardcode_into_libs=yes
11543 dynamic_linker="$host_os dld.sl"
11544 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11545 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11547 soname_spec='${libname}${release}${shared_ext}$major'
11548 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11549 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11550 ;;
11551 *)
11552 shrext_cmds='.sl'
11553 dynamic_linker="$host_os dld.sl"
11554 shlibpath_var=SHLIB_PATH
11555 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11557 soname_spec='${libname}${release}${shared_ext}$major'
11558 ;;
11559 esac
11560 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11561 postinstall_cmds='chmod 555 $lib'
11562 ;;
11563
11564irix5* | irix6* | nonstopux*)
11565 case $host_os in
11566 nonstopux*) version_type=nonstopux ;;
11567 *)
11568 if test "$lt_cv_prog_gnu_ld" = yes; then
11569 version_type=linux
11570 else
11571 version_type=irix
11572 fi ;;
11573 esac
11574 need_lib_prefix=no
11575 need_version=no
11576 soname_spec='${libname}${release}${shared_ext}$major'
11577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11578 case $host_os in
11579 irix5* | nonstopux*)
11580 libsuff= shlibsuff=
11581 ;;
11582 *)
11583 case $LD in # libtool.m4 will add one of these switches to LD
11584 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11585 libsuff= shlibsuff= libmagic=32-bit;;
11586 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11587 libsuff=32 shlibsuff=N32 libmagic=N32;;
11588 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11589 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11590 *) libsuff= shlibsuff= libmagic=never-match;;
11591 esac
11592 ;;
11593 esac
11594 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11595 shlibpath_overrides_runpath=no
11596 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11597 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11598 hardcode_into_libs=yes
11599 ;;
11600
11601# No shared lib support for Linux oldld, aout, or coff.
11602linux*oldld* | linux*aout* | linux*coff*)
11603 dynamic_linker=no
11604 ;;
11605
11606# This must be Linux ELF.
11607linux*)
11608 version_type=linux
11609 need_lib_prefix=no
11610 need_version=no
11611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11612 soname_spec='${libname}${release}${shared_ext}$major'
11613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11614 shlibpath_var=LD_LIBRARY_PATH
11615 shlibpath_overrides_runpath=no
11616 # This implies no fast_install, which is unacceptable.
11617 # Some rework will be needed to allow for fast_install
11618 # before this can be enabled.
11619 hardcode_into_libs=yes
11620
11621 # Append ld.so.conf contents to the search path
11622 if test -f /etc/ld.so.conf; then
11623 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11624 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11625 fi
11626
11627 # We used to test for /lib/ld.so.1 and disable shared libraries on
11628 # powerpc, because MkLinux only supported shared libraries with the
11629 # GNU dynamic linker. Since this was broken with cross compilers,
11630 # most powerpc-linux boxes support dynamic linking these days and
11631 # people can always --disable-shared, the test was removed, and we
11632 # assume the GNU/Linux dynamic linker is in use.
11633 dynamic_linker='GNU/Linux ld.so'
11634 ;;
11635
11636knetbsd*-gnu)
11637 version_type=linux
11638 need_lib_prefix=no
11639 need_version=no
11640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11641 soname_spec='${libname}${release}${shared_ext}$major'
11642 shlibpath_var=LD_LIBRARY_PATH
11643 shlibpath_overrides_runpath=no
11644 hardcode_into_libs=yes
11645 dynamic_linker='GNU ld.so'
11646 ;;
11647
11648netbsd*)
11649 version_type=sunos
11650 need_lib_prefix=no
11651 need_version=no
11652 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11655 dynamic_linker='NetBSD (a.out) ld.so'
11656 else
11657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11658 soname_spec='${libname}${release}${shared_ext}$major'
11659 dynamic_linker='NetBSD ld.elf_so'
11660 fi
11661 shlibpath_var=LD_LIBRARY_PATH
11662 shlibpath_overrides_runpath=yes
11663 hardcode_into_libs=yes
11664 ;;
11665
11666newsos6)
11667 version_type=linux
11668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11669 shlibpath_var=LD_LIBRARY_PATH
11670 shlibpath_overrides_runpath=yes
11671 ;;
11672
11673nto-qnx*)
11674 version_type=linux
11675 need_lib_prefix=no
11676 need_version=no
11677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11678 soname_spec='${libname}${release}${shared_ext}$major'
11679 shlibpath_var=LD_LIBRARY_PATH
11680 shlibpath_overrides_runpath=yes
11681 ;;
11682
11683openbsd*)
11684 version_type=sunos
11685 need_lib_prefix=no
11686 need_version=yes
11687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11689 shlibpath_var=LD_LIBRARY_PATH
11690 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11691 case $host_os in
11692 openbsd2.[89] | openbsd2.[89].*)
11693 shlibpath_overrides_runpath=no
11694 ;;
11695 *)
11696 shlibpath_overrides_runpath=yes
11697 ;;
11698 esac
11699 else
11700 shlibpath_overrides_runpath=yes
11701 fi
11702 ;;
11703
11704os2*)
11705 libname_spec='$name'
11706 shrext_cmds=".dll"
11707 need_lib_prefix=no
11708 library_names_spec='$libname${shared_ext} $libname.a'
11709 dynamic_linker='OS/2 ld.exe'
11710 shlibpath_var=LIBPATH
11711 ;;
11712
11713osf3* | osf4* | osf5*)
11714 version_type=osf
11715 need_lib_prefix=no
11716 need_version=no
11717 soname_spec='${libname}${release}${shared_ext}$major'
11718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11719 shlibpath_var=LD_LIBRARY_PATH
11720 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11721 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11722 ;;
11723
11724sco3.2v5*)
11725 version_type=osf
11726 soname_spec='${libname}${release}${shared_ext}$major'
11727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11728 shlibpath_var=LD_LIBRARY_PATH
11729 ;;
11730
11731solaris*)
11732 version_type=linux
11733 need_lib_prefix=no
11734 need_version=no
11735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11736 soname_spec='${libname}${release}${shared_ext}$major'
11737 shlibpath_var=LD_LIBRARY_PATH
11738 shlibpath_overrides_runpath=yes
11739 hardcode_into_libs=yes
11740 # ldd complains unless libraries are executable
11741 postinstall_cmds='chmod +x $lib'
11742 ;;
11743
11744sunos4*)
11745 version_type=sunos
11746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11747 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11748 shlibpath_var=LD_LIBRARY_PATH
11749 shlibpath_overrides_runpath=yes
11750 if test "$with_gnu_ld" = yes; then
11751 need_lib_prefix=no
11752 fi
11753 need_version=yes
11754 ;;
11755
11756sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11757 version_type=linux
11758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11759 soname_spec='${libname}${release}${shared_ext}$major'
11760 shlibpath_var=LD_LIBRARY_PATH
11761 case $host_vendor in
11762 sni)
11763 shlibpath_overrides_runpath=no
11764 need_lib_prefix=no
11765 export_dynamic_flag_spec='${wl}-Blargedynsym'
11766 runpath_var=LD_RUN_PATH
11767 ;;
11768 siemens)
11769 need_lib_prefix=no
11770 ;;
11771 motorola)
11772 need_lib_prefix=no
11773 need_version=no
11774 shlibpath_overrides_runpath=no
11775 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11776 ;;
11777 esac
11778 ;;
11779
11780sysv4*MP*)
11781 if test -d /usr/nec ;then
11782 version_type=linux
11783 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11784 soname_spec='$libname${shared_ext}.$major'
11785 shlibpath_var=LD_LIBRARY_PATH
11786 fi
11787 ;;
11788
11789uts4*)
11790 version_type=linux
11791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11792 soname_spec='${libname}${release}${shared_ext}$major'
11793 shlibpath_var=LD_LIBRARY_PATH
11794 ;;
11795
11796*)
11797 dynamic_linker=no
11798 ;;
11799esac
11800echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11801echo "${ECHO_T}$dynamic_linker" >&6
11802test "$dynamic_linker" = no && can_build_shared=no
11803
11804echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11805echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11806hardcode_action_CXX=
11807if test -n "$hardcode_libdir_flag_spec_CXX" || \
11808 test -n "$runpath_var CXX" || \
11809 test "X$hardcode_automatic_CXX"="Xyes" ; then
11810
11811 # We can hardcode non-existant directories.
11812 if test "$hardcode_direct_CXX" != no &&
11813 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11814 # have to relink, otherwise we might link with an installed library
11815 # when we should be linking with a yet-to-be-installed one
11816 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11817 test "$hardcode_minus_L_CXX" != no; then
11818 # Linking always hardcodes the temporary library directory.
11819 hardcode_action_CXX=relink
11820 else
11821 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11822 hardcode_action_CXX=immediate
11823 fi
11824else
11825 # We cannot hardcode anything, or else we can only hardcode existing
11826 # directories.
11827 hardcode_action_CXX=unsupported
11828fi
11829echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11830echo "${ECHO_T}$hardcode_action_CXX" >&6
11831
11832if test "$hardcode_action_CXX" = relink; then
11833 # Fast installation is not supported
11834 enable_fast_install=no
11835elif test "$shlibpath_overrides_runpath" = yes ||
11836 test "$enable_shared" = no; then
11837 # Fast installation is not necessary
11838 enable_fast_install=needless
11839fi
11840
11841striplib=
11842old_striplib=
11843echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11844echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11845if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11846 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11847 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11848 echo "$as_me:$LINENO: result: yes" >&5
11849echo "${ECHO_T}yes" >&6
11850else
11851# FIXME - insert some real tests, host_os isn't really good enough
11852 case $host_os in
11853 darwin*)
11854 if test -n "$STRIP" ; then
11855 striplib="$STRIP -x"
11856 echo "$as_me:$LINENO: result: yes" >&5
11857echo "${ECHO_T}yes" >&6
11858 else
11859 echo "$as_me:$LINENO: result: no" >&5
11860echo "${ECHO_T}no" >&6
11861fi
11862 ;;
11863 *)
11864 echo "$as_me:$LINENO: result: no" >&5
11865echo "${ECHO_T}no" >&6
11866 ;;
11867 esac
11868fi
11869
11870if test "x$enable_dlopen" != xyes; then
11871 enable_dlopen=unknown
11872 enable_dlopen_self=unknown
11873 enable_dlopen_self_static=unknown
11874else
11875 lt_cv_dlopen=no
11876 lt_cv_dlopen_libs=
11877
11878 case $host_os in
11879 beos*)
11880 lt_cv_dlopen="load_add_on"
11881 lt_cv_dlopen_libs=
11882 lt_cv_dlopen_self=yes
11883 ;;
11884
11885 mingw* | pw32*)
11886 lt_cv_dlopen="LoadLibrary"
11887 lt_cv_dlopen_libs=
11888 ;;
11889
11890 cygwin*)
11891 lt_cv_dlopen="dlopen"
11892 lt_cv_dlopen_libs=
11893 ;;
11894
11895 darwin*)
11896 # if libdl is installed we need to link against it
11897 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11898echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11899if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11900 echo $ECHO_N "(cached) $ECHO_C" >&6
11901else
11902 ac_check_lib_save_LIBS=$LIBS
11903LIBS="-ldl $LIBS"
11904cat >conftest.$ac_ext <<_ACEOF
11905/* confdefs.h. */
11906_ACEOF
11907cat confdefs.h >>conftest.$ac_ext
11908cat >>conftest.$ac_ext <<_ACEOF
11909/* end confdefs.h. */
11910
11911/* Override any gcc2 internal prototype to avoid an error. */
11912#ifdef __cplusplus
11913extern "C"
11914#endif
11915/* We use char because int might match the return type of a gcc2
11916 builtin and then its argument prototype would still apply. */
11917char dlopen ();
11918int
11919main ()
11920{
11921dlopen ();
11922 ;
11923 return 0;
11924}
11925_ACEOF
11926rm -f conftest.$ac_objext conftest$ac_exeext
11927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11928 (eval $ac_link) 2>conftest.er1
11929 ac_status=$?
11930 grep -v '^ *+' conftest.er1 >conftest.err
11931 rm -f conftest.er1
11932 cat conftest.err >&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); } &&
11935 { ac_try='test -z "$ac_cxx_werror_flag"
11936 || test ! -s conftest.err'
11937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938 (eval $ac_try) 2>&5
11939 ac_status=$?
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; } &&
11942 { ac_try='test -s conftest$ac_exeext'
11943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944 (eval $ac_try) 2>&5
11945 ac_status=$?
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; }; then
11948 ac_cv_lib_dl_dlopen=yes
11949else
11950 echo "$as_me: failed program was:" >&5
11951sed 's/^/| /' conftest.$ac_ext >&5
11952
11953ac_cv_lib_dl_dlopen=no
11954fi
11955rm -f conftest.err conftest.$ac_objext \
11956 conftest$ac_exeext conftest.$ac_ext
11957LIBS=$ac_check_lib_save_LIBS
11958fi
11959echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11960echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11961if test $ac_cv_lib_dl_dlopen = yes; then
11962 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11963else
11964
11965 lt_cv_dlopen="dyld"
11966 lt_cv_dlopen_libs=
11967 lt_cv_dlopen_self=yes
11968
11969fi
11970
11971 ;;
11972
11973 *)
11974 echo "$as_me:$LINENO: checking for shl_load" >&5
11975echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11976if test "${ac_cv_func_shl_load+set}" = set; then
11977 echo $ECHO_N "(cached) $ECHO_C" >&6
11978else
11979 cat >conftest.$ac_ext <<_ACEOF
11980/* confdefs.h. */
11981_ACEOF
11982cat confdefs.h >>conftest.$ac_ext
11983cat >>conftest.$ac_ext <<_ACEOF
11984/* end confdefs.h. */
11985/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11987#define shl_load innocuous_shl_load
11988
11989/* System header to define __stub macros and hopefully few prototypes,
11990 which can conflict with char shl_load (); below.
11991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11992 <limits.h> exists even on freestanding compilers. */
11993
11994#ifdef __STDC__
11995# include <limits.h>
11996#else
11997# include <assert.h>
11998#endif
11999
12000#undef shl_load
12001
12002/* Override any gcc2 internal prototype to avoid an error. */
12003#ifdef __cplusplus
12004extern "C"
12005{
12006#endif
12007/* We use char because int might match the return type of a gcc2
12008 builtin and then its argument prototype would still apply. */
12009char shl_load ();
12010/* The GNU C library defines this for functions which it implements
12011 to always fail with ENOSYS. Some functions are actually named
12012 something starting with __ and the normal name is an alias. */
12013#if defined (__stub_shl_load) || defined (__stub___shl_load)
12014choke me
12015#else
12016char (*f) () = shl_load;
12017#endif
12018#ifdef __cplusplus
12019}
12020#endif
12021
12022int
12023main ()
12024{
12025return f != shl_load;
12026 ;
12027 return 0;
12028}
12029_ACEOF
12030rm -f conftest.$ac_objext conftest$ac_exeext
12031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12032 (eval $ac_link) 2>conftest.er1
12033 ac_status=$?
12034 grep -v '^ *+' conftest.er1 >conftest.err
12035 rm -f conftest.er1
12036 cat conftest.err >&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); } &&
12039 { ac_try='test -z "$ac_cxx_werror_flag"
12040 || test ! -s conftest.err'
12041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12042 (eval $ac_try) 2>&5
12043 ac_status=$?
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; } &&
12046 { ac_try='test -s conftest$ac_exeext'
12047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12048 (eval $ac_try) 2>&5
12049 ac_status=$?
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); }; }; then
12052 ac_cv_func_shl_load=yes
12053else
12054 echo "$as_me: failed program was:" >&5
12055sed 's/^/| /' conftest.$ac_ext >&5
12056
12057ac_cv_func_shl_load=no
12058fi
12059rm -f conftest.err conftest.$ac_objext \
12060 conftest$ac_exeext conftest.$ac_ext
12061fi
12062echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12063echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12064if test $ac_cv_func_shl_load = yes; then
12065 lt_cv_dlopen="shl_load"
12066else
12067 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12068echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12069if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12070 echo $ECHO_N "(cached) $ECHO_C" >&6
12071else
12072 ac_check_lib_save_LIBS=$LIBS
12073LIBS="-ldld $LIBS"
12074cat >conftest.$ac_ext <<_ACEOF
12075/* confdefs.h. */
12076_ACEOF
12077cat confdefs.h >>conftest.$ac_ext
12078cat >>conftest.$ac_ext <<_ACEOF
12079/* end confdefs.h. */
12080
12081/* Override any gcc2 internal prototype to avoid an error. */
12082#ifdef __cplusplus
12083extern "C"
12084#endif
12085/* We use char because int might match the return type of a gcc2
12086 builtin and then its argument prototype would still apply. */
12087char shl_load ();
12088int
12089main ()
12090{
12091shl_load ();
12092 ;
12093 return 0;
12094}
12095_ACEOF
12096rm -f conftest.$ac_objext conftest$ac_exeext
12097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12098 (eval $ac_link) 2>conftest.er1
12099 ac_status=$?
12100 grep -v '^ *+' conftest.er1 >conftest.err
12101 rm -f conftest.er1
12102 cat conftest.err >&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } &&
12105 { ac_try='test -z "$ac_cxx_werror_flag"
12106 || test ! -s conftest.err'
12107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108 (eval $ac_try) 2>&5
12109 ac_status=$?
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; } &&
12112 { ac_try='test -s conftest$ac_exeext'
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; }; then
12118 ac_cv_lib_dld_shl_load=yes
12119else
12120 echo "$as_me: failed program was:" >&5
12121sed 's/^/| /' conftest.$ac_ext >&5
12122
12123ac_cv_lib_dld_shl_load=no
12124fi
12125rm -f conftest.err conftest.$ac_objext \
12126 conftest$ac_exeext conftest.$ac_ext
12127LIBS=$ac_check_lib_save_LIBS
12128fi
12129echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12130echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12131if test $ac_cv_lib_dld_shl_load = yes; then
12132 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12133else
12134 echo "$as_me:$LINENO: checking for dlopen" >&5
12135echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12136if test "${ac_cv_func_dlopen+set}" = set; then
12137 echo $ECHO_N "(cached) $ECHO_C" >&6
12138else
12139 cat >conftest.$ac_ext <<_ACEOF
12140/* confdefs.h. */
12141_ACEOF
12142cat confdefs.h >>conftest.$ac_ext
12143cat >>conftest.$ac_ext <<_ACEOF
12144/* end confdefs.h. */
12145/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12147#define dlopen innocuous_dlopen
12148
12149/* System header to define __stub macros and hopefully few prototypes,
12150 which can conflict with char dlopen (); below.
12151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12152 <limits.h> exists even on freestanding compilers. */
12153
12154#ifdef __STDC__
12155# include <limits.h>
12156#else
12157# include <assert.h>
12158#endif
12159
12160#undef dlopen
12161
12162/* Override any gcc2 internal prototype to avoid an error. */
12163#ifdef __cplusplus
12164extern "C"
12165{
12166#endif
12167/* We use char because int might match the return type of a gcc2
12168 builtin and then its argument prototype would still apply. */
12169char dlopen ();
12170/* The GNU C library defines this for functions which it implements
12171 to always fail with ENOSYS. Some functions are actually named
12172 something starting with __ and the normal name is an alias. */
12173#if defined (__stub_dlopen) || defined (__stub___dlopen)
12174choke me
12175#else
12176char (*f) () = dlopen;
12177#endif
12178#ifdef __cplusplus
12179}
12180#endif
12181
12182int
12183main ()
12184{
12185return f != dlopen;
12186 ;
12187 return 0;
12188}
12189_ACEOF
12190rm -f conftest.$ac_objext conftest$ac_exeext
12191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12192 (eval $ac_link) 2>conftest.er1
12193 ac_status=$?
12194 grep -v '^ *+' conftest.er1 >conftest.err
12195 rm -f conftest.er1
12196 cat conftest.err >&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } &&
12199 { ac_try='test -z "$ac_cxx_werror_flag"
12200 || test ! -s conftest.err'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12203 ac_status=$?
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; } &&
12206 { ac_try='test -s conftest$ac_exeext'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12209 ac_status=$?
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
12212 ac_cv_func_dlopen=yes
12213else
12214 echo "$as_me: failed program was:" >&5
12215sed 's/^/| /' conftest.$ac_ext >&5
12216
12217ac_cv_func_dlopen=no
12218fi
12219rm -f conftest.err conftest.$ac_objext \
12220 conftest$ac_exeext conftest.$ac_ext
12221fi
12222echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12223echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12224if test $ac_cv_func_dlopen = yes; then
12225 lt_cv_dlopen="dlopen"
12226else
12227 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12228echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12229if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12231else
12232 ac_check_lib_save_LIBS=$LIBS
12233LIBS="-ldl $LIBS"
12234cat >conftest.$ac_ext <<_ACEOF
12235/* confdefs.h. */
12236_ACEOF
12237cat confdefs.h >>conftest.$ac_ext
12238cat >>conftest.$ac_ext <<_ACEOF
12239/* end confdefs.h. */
12240
12241/* Override any gcc2 internal prototype to avoid an error. */
12242#ifdef __cplusplus
12243extern "C"
12244#endif
12245/* We use char because int might match the return type of a gcc2
12246 builtin and then its argument prototype would still apply. */
12247char dlopen ();
12248int
12249main ()
12250{
12251dlopen ();
12252 ;
12253 return 0;
12254}
12255_ACEOF
12256rm -f conftest.$ac_objext conftest$ac_exeext
12257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12258 (eval $ac_link) 2>conftest.er1
12259 ac_status=$?
12260 grep -v '^ *+' conftest.er1 >conftest.err
12261 rm -f conftest.er1
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } &&
12265 { ac_try='test -z "$ac_cxx_werror_flag"
12266 || test ! -s conftest.err'
12267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268 (eval $ac_try) 2>&5
12269 ac_status=$?
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; } &&
12272 { ac_try='test -s conftest$ac_exeext'
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; }; then
12278 ac_cv_lib_dl_dlopen=yes
12279else
12280 echo "$as_me: failed program was:" >&5
12281sed 's/^/| /' conftest.$ac_ext >&5
12282
12283ac_cv_lib_dl_dlopen=no
12284fi
12285rm -f conftest.err conftest.$ac_objext \
12286 conftest$ac_exeext conftest.$ac_ext
12287LIBS=$ac_check_lib_save_LIBS
12288fi
12289echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12290echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12291if test $ac_cv_lib_dl_dlopen = yes; then
12292 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12293else
12294 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12295echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12296if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12298else
12299 ac_check_lib_save_LIBS=$LIBS
12300LIBS="-lsvld $LIBS"
12301cat >conftest.$ac_ext <<_ACEOF
12302/* confdefs.h. */
12303_ACEOF
12304cat confdefs.h >>conftest.$ac_ext
12305cat >>conftest.$ac_ext <<_ACEOF
12306/* end confdefs.h. */
12307
12308/* Override any gcc2 internal prototype to avoid an error. */
12309#ifdef __cplusplus
12310extern "C"
12311#endif
12312/* We use char because int might match the return type of a gcc2
12313 builtin and then its argument prototype would still apply. */
12314char dlopen ();
12315int
12316main ()
12317{
12318dlopen ();
12319 ;
12320 return 0;
12321}
12322_ACEOF
12323rm -f conftest.$ac_objext conftest$ac_exeext
12324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12325 (eval $ac_link) 2>conftest.er1
12326 ac_status=$?
12327 grep -v '^ *+' conftest.er1 >conftest.err
12328 rm -f conftest.er1
12329 cat conftest.err >&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } &&
12332 { ac_try='test -z "$ac_cxx_werror_flag"
12333 || test ! -s conftest.err'
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12336 ac_status=$?
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; } &&
12339 { ac_try='test -s conftest$ac_exeext'
12340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5
12342 ac_status=$?
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; }; then
12345 ac_cv_lib_svld_dlopen=yes
12346else
12347 echo "$as_me: failed program was:" >&5
12348sed 's/^/| /' conftest.$ac_ext >&5
12349
12350ac_cv_lib_svld_dlopen=no
12351fi
12352rm -f conftest.err conftest.$ac_objext \
12353 conftest$ac_exeext conftest.$ac_ext
12354LIBS=$ac_check_lib_save_LIBS
12355fi
12356echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12357echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12358if test $ac_cv_lib_svld_dlopen = yes; then
12359 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12360else
12361 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12362echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12363if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12364 echo $ECHO_N "(cached) $ECHO_C" >&6
12365else
12366 ac_check_lib_save_LIBS=$LIBS
12367LIBS="-ldld $LIBS"
12368cat >conftest.$ac_ext <<_ACEOF
12369/* confdefs.h. */
12370_ACEOF
12371cat confdefs.h >>conftest.$ac_ext
12372cat >>conftest.$ac_ext <<_ACEOF
12373/* end confdefs.h. */
12374
12375/* Override any gcc2 internal prototype to avoid an error. */
12376#ifdef __cplusplus
12377extern "C"
12378#endif
12379/* We use char because int might match the return type of a gcc2
12380 builtin and then its argument prototype would still apply. */
12381char dld_link ();
12382int
12383main ()
12384{
12385dld_link ();
12386 ;
12387 return 0;
12388}
12389_ACEOF
12390rm -f conftest.$ac_objext conftest$ac_exeext
12391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12392 (eval $ac_link) 2>conftest.er1
12393 ac_status=$?
12394 grep -v '^ *+' conftest.er1 >conftest.err
12395 rm -f conftest.er1
12396 cat conftest.err >&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } &&
12399 { ac_try='test -z "$ac_cxx_werror_flag"
12400 || test ! -s conftest.err'
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; } &&
12406 { ac_try='test -s conftest$ac_exeext'
12407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12408 (eval $ac_try) 2>&5
12409 ac_status=$?
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }; }; then
12412 ac_cv_lib_dld_dld_link=yes
12413else
12414 echo "$as_me: failed program was:" >&5
12415sed 's/^/| /' conftest.$ac_ext >&5
12416
12417ac_cv_lib_dld_dld_link=no
12418fi
12419rm -f conftest.err conftest.$ac_objext \
12420 conftest$ac_exeext conftest.$ac_ext
12421LIBS=$ac_check_lib_save_LIBS
12422fi
12423echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12424echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12425if test $ac_cv_lib_dld_dld_link = yes; then
12426 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12427fi
12428
12429
12430fi
12431
12432
12433fi
12434
12435
12436fi
12437
12438
12439fi
12440
12441
12442fi
12443
12444 ;;
12445 esac
12446
12447 if test "x$lt_cv_dlopen" != xno; then
12448 enable_dlopen=yes
12449 else
12450 enable_dlopen=no
12451 fi
12452
12453 case $lt_cv_dlopen in
12454 dlopen)
12455 save_CPPFLAGS="$CPPFLAGS"
12456 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12457
12458 save_LDFLAGS="$LDFLAGS"
12459 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12460
12461 save_LIBS="$LIBS"
12462 LIBS="$lt_cv_dlopen_libs $LIBS"
12463
12464 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12465echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12466if test "${lt_cv_dlopen_self+set}" = set; then
12467 echo $ECHO_N "(cached) $ECHO_C" >&6
12468else
12469 if test "$cross_compiling" = yes; then :
12470 lt_cv_dlopen_self=cross
12471else
12472 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12473 lt_status=$lt_dlunknown
12474 cat > conftest.$ac_ext <<EOF
Lev Walkin33cded12004-09-19 19:40:52 +000012475#line 12475 "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +000012476#include "confdefs.h"
12477
12478#if HAVE_DLFCN_H
12479#include <dlfcn.h>
12480#endif
12481
12482#include <stdio.h>
12483
12484#ifdef RTLD_GLOBAL
12485# define LT_DLGLOBAL RTLD_GLOBAL
12486#else
12487# ifdef DL_GLOBAL
12488# define LT_DLGLOBAL DL_GLOBAL
12489# else
12490# define LT_DLGLOBAL 0
12491# endif
12492#endif
12493
12494/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12495 find out it does not work in some platform. */
12496#ifndef LT_DLLAZY_OR_NOW
12497# ifdef RTLD_LAZY
12498# define LT_DLLAZY_OR_NOW RTLD_LAZY
12499# else
12500# ifdef DL_LAZY
12501# define LT_DLLAZY_OR_NOW DL_LAZY
12502# else
12503# ifdef RTLD_NOW
12504# define LT_DLLAZY_OR_NOW RTLD_NOW
12505# else
12506# ifdef DL_NOW
12507# define LT_DLLAZY_OR_NOW DL_NOW
12508# else
12509# define LT_DLLAZY_OR_NOW 0
12510# endif
12511# endif
12512# endif
12513# endif
12514#endif
12515
12516#ifdef __cplusplus
12517extern "C" void exit (int);
12518#endif
12519
12520void fnord() { int i=42;}
12521int main ()
12522{
12523 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12524 int status = $lt_dlunknown;
12525
12526 if (self)
12527 {
12528 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12529 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12530 /* dlclose (self); */
12531 }
12532
12533 exit (status);
12534}
12535EOF
12536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12537 (eval $ac_link) 2>&5
12538 ac_status=$?
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12541 (./conftest; exit; ) 2>/dev/null
12542 lt_status=$?
12543 case x$lt_status in
12544 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12545 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12546 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12547 esac
12548 else :
12549 # compilation failed
12550 lt_cv_dlopen_self=no
12551 fi
12552fi
12553rm -fr conftest*
12554
12555
12556fi
12557echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12558echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12559
12560 if test "x$lt_cv_dlopen_self" = xyes; then
12561 LDFLAGS="$LDFLAGS $link_static_flag"
12562 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12563echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12564if test "${lt_cv_dlopen_self_static+set}" = set; then
12565 echo $ECHO_N "(cached) $ECHO_C" >&6
12566else
12567 if test "$cross_compiling" = yes; then :
12568 lt_cv_dlopen_self_static=cross
12569else
12570 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12571 lt_status=$lt_dlunknown
12572 cat > conftest.$ac_ext <<EOF
Lev Walkin33cded12004-09-19 19:40:52 +000012573#line 12573 "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +000012574#include "confdefs.h"
12575
12576#if HAVE_DLFCN_H
12577#include <dlfcn.h>
12578#endif
12579
12580#include <stdio.h>
12581
12582#ifdef RTLD_GLOBAL
12583# define LT_DLGLOBAL RTLD_GLOBAL
12584#else
12585# ifdef DL_GLOBAL
12586# define LT_DLGLOBAL DL_GLOBAL
12587# else
12588# define LT_DLGLOBAL 0
12589# endif
12590#endif
12591
12592/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12593 find out it does not work in some platform. */
12594#ifndef LT_DLLAZY_OR_NOW
12595# ifdef RTLD_LAZY
12596# define LT_DLLAZY_OR_NOW RTLD_LAZY
12597# else
12598# ifdef DL_LAZY
12599# define LT_DLLAZY_OR_NOW DL_LAZY
12600# else
12601# ifdef RTLD_NOW
12602# define LT_DLLAZY_OR_NOW RTLD_NOW
12603# else
12604# ifdef DL_NOW
12605# define LT_DLLAZY_OR_NOW DL_NOW
12606# else
12607# define LT_DLLAZY_OR_NOW 0
12608# endif
12609# endif
12610# endif
12611# endif
12612#endif
12613
12614#ifdef __cplusplus
12615extern "C" void exit (int);
12616#endif
12617
12618void fnord() { int i=42;}
12619int main ()
12620{
12621 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12622 int status = $lt_dlunknown;
12623
12624 if (self)
12625 {
12626 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12627 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12628 /* dlclose (self); */
12629 }
12630
12631 exit (status);
12632}
12633EOF
12634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12635 (eval $ac_link) 2>&5
12636 ac_status=$?
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12639 (./conftest; exit; ) 2>/dev/null
12640 lt_status=$?
12641 case x$lt_status in
12642 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12643 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12644 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12645 esac
12646 else :
12647 # compilation failed
12648 lt_cv_dlopen_self_static=no
12649 fi
12650fi
12651rm -fr conftest*
12652
12653
12654fi
12655echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12656echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12657 fi
12658
12659 CPPFLAGS="$save_CPPFLAGS"
12660 LDFLAGS="$save_LDFLAGS"
12661 LIBS="$save_LIBS"
12662 ;;
12663 esac
12664
12665 case $lt_cv_dlopen_self in
12666 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12667 *) enable_dlopen_self=unknown ;;
12668 esac
12669
12670 case $lt_cv_dlopen_self_static in
12671 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12672 *) enable_dlopen_self_static=unknown ;;
12673 esac
12674fi
12675
12676
12677# The else clause should only fire when bootstrapping the
12678# libtool distribution, otherwise you forgot to ship ltmain.sh
12679# with your package, and you will get complaints that there are
12680# no rules to generate ltmain.sh.
12681if test -f "$ltmain"; then
12682 # See if we are running on zsh, and set the options which allow our commands through
12683 # without removal of \ escapes.
12684 if test -n "${ZSH_VERSION+set}" ; then
12685 setopt NO_GLOB_SUBST
12686 fi
12687 # Now quote all the things that may contain metacharacters while being
12688 # careful not to overquote the AC_SUBSTed values. We take copies of the
12689 # variables and quote the copies for generation of the libtool script.
12690 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12691 SED SHELL STRIP \
12692 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12693 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12694 deplibs_check_method reload_flag reload_cmds need_locks \
12695 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12696 lt_cv_sys_global_symbol_to_c_name_address \
12697 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12698 old_postinstall_cmds old_postuninstall_cmds \
12699 compiler_CXX \
12700 CC_CXX \
12701 LD_CXX \
12702 lt_prog_compiler_wl_CXX \
12703 lt_prog_compiler_pic_CXX \
12704 lt_prog_compiler_static_CXX \
12705 lt_prog_compiler_no_builtin_flag_CXX \
12706 export_dynamic_flag_spec_CXX \
12707 thread_safe_flag_spec_CXX \
12708 whole_archive_flag_spec_CXX \
12709 enable_shared_with_static_runtimes_CXX \
12710 old_archive_cmds_CXX \
12711 old_archive_from_new_cmds_CXX \
12712 predep_objects_CXX \
12713 postdep_objects_CXX \
12714 predeps_CXX \
12715 postdeps_CXX \
12716 compiler_lib_search_path_CXX \
12717 archive_cmds_CXX \
12718 archive_expsym_cmds_CXX \
12719 postinstall_cmds_CXX \
12720 postuninstall_cmds_CXX \
12721 old_archive_from_expsyms_cmds_CXX \
12722 allow_undefined_flag_CXX \
12723 no_undefined_flag_CXX \
12724 export_symbols_cmds_CXX \
12725 hardcode_libdir_flag_spec_CXX \
12726 hardcode_libdir_flag_spec_ld_CXX \
12727 hardcode_libdir_separator_CXX \
12728 hardcode_automatic_CXX \
12729 module_cmds_CXX \
12730 module_expsym_cmds_CXX \
12731 lt_cv_prog_compiler_c_o_CXX \
12732 exclude_expsyms_CXX \
12733 include_expsyms_CXX; do
12734
12735 case $var in
12736 old_archive_cmds_CXX | \
12737 old_archive_from_new_cmds_CXX | \
12738 archive_cmds_CXX | \
12739 archive_expsym_cmds_CXX | \
12740 module_cmds_CXX | \
12741 module_expsym_cmds_CXX | \
12742 old_archive_from_expsyms_cmds_CXX | \
12743 export_symbols_cmds_CXX | \
12744 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12745 postinstall_cmds | postuninstall_cmds | \
12746 old_postinstall_cmds | old_postuninstall_cmds | \
12747 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12748 # Double-quote double-evaled strings.
12749 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12750 ;;
12751 *)
12752 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12753 ;;
12754 esac
12755 done
12756
12757 case $lt_echo in
12758 *'\$0 --fallback-echo"')
12759 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12760 ;;
12761 esac
12762
12763cfgfile="$ofile"
12764
12765 cat <<__EOF__ >> "$cfgfile"
12766# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12767
12768# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12769
12770# Shell to use when invoking shell scripts.
12771SHELL=$lt_SHELL
12772
12773# Whether or not to build shared libraries.
12774build_libtool_libs=$enable_shared
12775
12776# Whether or not to build static libraries.
12777build_old_libs=$enable_static
12778
12779# Whether or not to add -lc for building shared libraries.
12780build_libtool_need_lc=$archive_cmds_need_lc_CXX
12781
12782# Whether or not to disallow shared libs when runtime libs are static
12783allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12784
12785# Whether or not to optimize for fast installation.
12786fast_install=$enable_fast_install
12787
12788# The host system.
12789host_alias=$host_alias
12790host=$host
12791
12792# An echo program that does not interpret backslashes.
12793echo=$lt_echo
12794
12795# The archiver.
12796AR=$lt_AR
12797AR_FLAGS=$lt_AR_FLAGS
12798
12799# A C compiler.
12800LTCC=$lt_LTCC
12801
12802# A language-specific compiler.
12803CC=$lt_compiler_CXX
12804
12805# Is the compiler the GNU C compiler?
12806with_gcc=$GCC_CXX
12807
12808# An ERE matcher.
12809EGREP=$lt_EGREP
12810
12811# The linker used to build libraries.
12812LD=$lt_LD_CXX
12813
12814# Whether we need hard or soft links.
12815LN_S=$lt_LN_S
12816
12817# A BSD-compatible nm program.
12818NM=$lt_NM
12819
12820# A symbol stripping program
12821STRIP=$lt_STRIP
12822
12823# Used to examine libraries when file_magic_cmd begins "file"
12824MAGIC_CMD=$MAGIC_CMD
12825
12826# Used on cygwin: DLL creation program.
12827DLLTOOL="$DLLTOOL"
12828
12829# Used on cygwin: object dumper.
12830OBJDUMP="$OBJDUMP"
12831
12832# Used on cygwin: assembler.
12833AS="$AS"
12834
12835# The name of the directory that contains temporary libtool files.
12836objdir=$objdir
12837
12838# How to create reloadable object files.
12839reload_flag=$lt_reload_flag
12840reload_cmds=$lt_reload_cmds
12841
12842# How to pass a linker flag through the compiler.
12843wl=$lt_lt_prog_compiler_wl_CXX
12844
12845# Object file suffix (normally "o").
12846objext="$ac_objext"
12847
12848# Old archive suffix (normally "a").
12849libext="$libext"
12850
12851# Shared library suffix (normally ".so").
12852shrext_cmds='$shrext_cmds'
12853
12854# Executable file suffix (normally "").
12855exeext="$exeext"
12856
12857# Additional compiler flags for building library objects.
12858pic_flag=$lt_lt_prog_compiler_pic_CXX
12859pic_mode=$pic_mode
12860
12861# What is the maximum length of a command?
12862max_cmd_len=$lt_cv_sys_max_cmd_len
12863
12864# Does compiler simultaneously support -c and -o options?
12865compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12866
12867# Must we lock files when doing compilation ?
12868need_locks=$lt_need_locks
12869
12870# Do we need the lib prefix for modules?
12871need_lib_prefix=$need_lib_prefix
12872
12873# Do we need a version for libraries?
12874need_version=$need_version
12875
12876# Whether dlopen is supported.
12877dlopen_support=$enable_dlopen
12878
12879# Whether dlopen of programs is supported.
12880dlopen_self=$enable_dlopen_self
12881
12882# Whether dlopen of statically linked programs is supported.
12883dlopen_self_static=$enable_dlopen_self_static
12884
12885# Compiler flag to prevent dynamic linking.
12886link_static_flag=$lt_lt_prog_compiler_static_CXX
12887
12888# Compiler flag to turn off builtin functions.
12889no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12890
12891# Compiler flag to allow reflexive dlopens.
12892export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12893
12894# Compiler flag to generate shared objects directly from archives.
12895whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12896
12897# Compiler flag to generate thread-safe objects.
12898thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12899
12900# Library versioning type.
12901version_type=$version_type
12902
12903# Format of library name prefix.
12904libname_spec=$lt_libname_spec
12905
12906# List of archive names. First name is the real one, the rest are links.
12907# The last name is the one that the linker finds with -lNAME.
12908library_names_spec=$lt_library_names_spec
12909
12910# The coded name of the library, if different from the real name.
12911soname_spec=$lt_soname_spec
12912
12913# Commands used to build and install an old-style archive.
12914RANLIB=$lt_RANLIB
12915old_archive_cmds=$lt_old_archive_cmds_CXX
12916old_postinstall_cmds=$lt_old_postinstall_cmds
12917old_postuninstall_cmds=$lt_old_postuninstall_cmds
12918
12919# Create an old-style archive from a shared archive.
12920old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12921
12922# Create a temporary old-style archive to link instead of a shared archive.
12923old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12924
12925# Commands used to build and install a shared archive.
12926archive_cmds=$lt_archive_cmds_CXX
12927archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12928postinstall_cmds=$lt_postinstall_cmds
12929postuninstall_cmds=$lt_postuninstall_cmds
12930
12931# Commands used to build a loadable module (assumed same as above if empty)
12932module_cmds=$lt_module_cmds_CXX
12933module_expsym_cmds=$lt_module_expsym_cmds_CXX
12934
12935# Commands to strip libraries.
12936old_striplib=$lt_old_striplib
12937striplib=$lt_striplib
12938
12939# Dependencies to place before the objects being linked to create a
12940# shared library.
12941predep_objects=$lt_predep_objects_CXX
12942
12943# Dependencies to place after the objects being linked to create a
12944# shared library.
12945postdep_objects=$lt_postdep_objects_CXX
12946
12947# Dependencies to place before the objects being linked to create a
12948# shared library.
12949predeps=$lt_predeps_CXX
12950
12951# Dependencies to place after the objects being linked to create a
12952# shared library.
12953postdeps=$lt_postdeps_CXX
12954
12955# The library search path used internally by the compiler when linking
12956# a shared library.
12957compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12958
12959# Method to check whether dependent libraries are shared objects.
12960deplibs_check_method=$lt_deplibs_check_method
12961
12962# Command to use when deplibs_check_method == file_magic.
12963file_magic_cmd=$lt_file_magic_cmd
12964
12965# Flag that allows shared libraries with undefined symbols to be built.
12966allow_undefined_flag=$lt_allow_undefined_flag_CXX
12967
12968# Flag that forces no undefined symbols.
12969no_undefined_flag=$lt_no_undefined_flag_CXX
12970
12971# Commands used to finish a libtool library installation in a directory.
12972finish_cmds=$lt_finish_cmds
12973
12974# Same as above, but a single script fragment to be evaled but not shown.
12975finish_eval=$lt_finish_eval
12976
12977# Take the output of nm and produce a listing of raw symbols and C names.
12978global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12979
12980# Transform the output of nm in a proper C declaration
12981global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12982
12983# Transform the output of nm in a C name address pair
12984global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12985
12986# This is the shared library runtime path variable.
12987runpath_var=$runpath_var
12988
12989# This is the shared library path variable.
12990shlibpath_var=$shlibpath_var
12991
12992# Is shlibpath searched before the hard-coded library search path?
12993shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12994
12995# How to hardcode a shared library path into an executable.
12996hardcode_action=$hardcode_action_CXX
12997
12998# Whether we should hardcode library paths into libraries.
12999hardcode_into_libs=$hardcode_into_libs
13000
13001# Flag to hardcode \$libdir into a binary during linking.
13002# This must work even if \$libdir does not exist.
13003hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13004
13005# If ld is used when linking, flag to hardcode \$libdir into
13006# a binary during linking. This must work even if \$libdir does
13007# not exist.
13008hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13009
13010# Whether we need a single -rpath flag with a separated argument.
13011hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13012
13013# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13014# resulting binary.
13015hardcode_direct=$hardcode_direct_CXX
13016
13017# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13018# resulting binary.
13019hardcode_minus_L=$hardcode_minus_L_CXX
13020
13021# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13022# the resulting binary.
13023hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13024
13025# Set to yes if building a shared library automatically hardcodes DIR into the library
13026# and all subsequent libraries and executables linked against it.
13027hardcode_automatic=$hardcode_automatic_CXX
13028
13029# Variables whose values should be saved in libtool wrapper scripts and
13030# restored at relink time.
13031variables_saved_for_relink="$variables_saved_for_relink"
13032
13033# Whether libtool must link a program against all its dependency libraries.
13034link_all_deplibs=$link_all_deplibs_CXX
13035
13036# Compile-time system search path for libraries
13037sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13038
13039# Run-time system search path for libraries
13040sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13041
13042# Fix the shell variable \$srcfile for the compiler.
13043fix_srcfile_path="$fix_srcfile_path_CXX"
13044
13045# Set to yes if exported symbols are required.
13046always_export_symbols=$always_export_symbols_CXX
13047
13048# The commands to list exported symbols.
13049export_symbols_cmds=$lt_export_symbols_cmds_CXX
13050
13051# The commands to extract the exported symbol list from a shared archive.
13052extract_expsyms_cmds=$lt_extract_expsyms_cmds
13053
13054# Symbols that should not be listed in the preloaded symbols.
13055exclude_expsyms=$lt_exclude_expsyms_CXX
13056
13057# Symbols that must always be exported.
13058include_expsyms=$lt_include_expsyms_CXX
13059
13060# ### END LIBTOOL TAG CONFIG: $tagname
13061
13062__EOF__
13063
13064
13065else
13066 # If there is no Makefile yet, we rely on a make rule to execute
13067 # `config.status --recheck' to rerun these tests and create the
13068 # libtool script then.
13069 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13070 if test -f "$ltmain_in"; then
13071 test -f Makefile && make "$ltmain"
13072 fi
13073fi
13074
13075
13076ac_ext=c
13077ac_cpp='$CPP $CPPFLAGS'
13078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13080ac_compiler_gnu=$ac_cv_c_compiler_gnu
13081
13082CC=$lt_save_CC
13083LDCXX=$LD
13084LD=$lt_save_LD
13085GCC=$lt_save_GCC
13086with_gnu_ldcxx=$with_gnu_ld
13087with_gnu_ld=$lt_save_with_gnu_ld
13088lt_cv_path_LDCXX=$lt_cv_path_LD
13089lt_cv_path_LD=$lt_save_path_LD
13090lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13091lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13092
13093 else
13094 tagname=""
13095 fi
13096 ;;
13097
13098 F77)
13099 if test -n "$F77" && test "X$F77" != "Xno"; then
13100
13101ac_ext=f
13102ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13103ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13104ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13105
13106
13107archive_cmds_need_lc_F77=no
13108allow_undefined_flag_F77=
13109always_export_symbols_F77=no
13110archive_expsym_cmds_F77=
13111export_dynamic_flag_spec_F77=
13112hardcode_direct_F77=no
13113hardcode_libdir_flag_spec_F77=
13114hardcode_libdir_flag_spec_ld_F77=
13115hardcode_libdir_separator_F77=
13116hardcode_minus_L_F77=no
13117hardcode_automatic_F77=no
13118module_cmds_F77=
13119module_expsym_cmds_F77=
13120link_all_deplibs_F77=unknown
13121old_archive_cmds_F77=$old_archive_cmds
13122no_undefined_flag_F77=
13123whole_archive_flag_spec_F77=
13124enable_shared_with_static_runtimes_F77=no
13125
13126# Source file extension for f77 test sources.
13127ac_ext=f
13128
13129# Object file extension for compiled f77 test sources.
13130objext=o
13131objext_F77=$objext
13132
13133# Code to be used in simple compile tests
13134lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13135
13136# Code to be used in simple link tests
13137lt_simple_link_test_code=" program t\n end\n"
13138
13139# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13140
13141# If no C compiler was specified, use CC.
13142LTCC=${LTCC-"$CC"}
13143
13144# Allow CC to be a program name with arguments.
13145compiler=$CC
13146
13147
13148# Allow CC to be a program name with arguments.
13149lt_save_CC="$CC"
13150CC=${F77-"f77"}
13151compiler=$CC
13152compiler_F77=$CC
13153cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13154
13155echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13156echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13157echo "$as_me:$LINENO: result: $can_build_shared" >&5
13158echo "${ECHO_T}$can_build_shared" >&6
13159
13160echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13161echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13162test "$can_build_shared" = "no" && enable_shared=no
13163
13164# On AIX, shared libraries and static libraries use the same namespace, and
13165# are all built from PIC.
13166case "$host_os" in
13167aix3*)
13168 test "$enable_shared" = yes && enable_static=no
13169 if test -n "$RANLIB"; then
13170 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13171 postinstall_cmds='$RANLIB $lib'
13172 fi
13173 ;;
13174aix4* | aix5*)
13175 test "$enable_shared" = yes && enable_static=no
13176 ;;
13177esac
13178echo "$as_me:$LINENO: result: $enable_shared" >&5
13179echo "${ECHO_T}$enable_shared" >&6
13180
13181echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13182echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13183# Make sure either enable_shared or enable_static is yes.
13184test "$enable_shared" = yes || enable_static=yes
13185echo "$as_me:$LINENO: result: $enable_static" >&5
13186echo "${ECHO_T}$enable_static" >&6
13187
13188test "$ld_shlibs_F77" = no && can_build_shared=no
13189
13190GCC_F77="$G77"
13191LD_F77="$LD"
13192
13193lt_prog_compiler_wl_F77=
13194lt_prog_compiler_pic_F77=
13195lt_prog_compiler_static_F77=
13196
13197echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13198echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13199
13200 if test "$GCC" = yes; then
13201 lt_prog_compiler_wl_F77='-Wl,'
13202 lt_prog_compiler_static_F77='-static'
13203
13204 case $host_os in
13205 aix*)
13206 # All AIX code is PIC.
13207 if test "$host_cpu" = ia64; then
13208 # AIX 5 now supports IA64 processor
13209 lt_prog_compiler_static_F77='-Bstatic'
13210 fi
13211 ;;
13212
13213 amigaos*)
13214 # FIXME: we need at least 68020 code to build shared libraries, but
13215 # adding the `-m68020' flag to GCC prevents building anything better,
13216 # like `-m68040'.
13217 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13218 ;;
13219
13220 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13221 # PIC is the default for these OSes.
13222 ;;
13223
13224 mingw* | pw32* | os2*)
13225 # This hack is so that the source file can tell whether it is being
13226 # built for inclusion in a dll (and should export symbols for example).
13227 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13228 ;;
13229
13230 darwin* | rhapsody*)
13231 # PIC is the default on this platform
13232 # Common symbols not allowed in MH_DYLIB files
13233 lt_prog_compiler_pic_F77='-fno-common'
13234 ;;
13235
13236 msdosdjgpp*)
13237 # Just because we use GCC doesn't mean we suddenly get shared libraries
13238 # on systems that don't support them.
13239 lt_prog_compiler_can_build_shared_F77=no
13240 enable_shared=no
13241 ;;
13242
13243 sysv4*MP*)
13244 if test -d /usr/nec; then
13245 lt_prog_compiler_pic_F77=-Kconform_pic
13246 fi
13247 ;;
13248
13249 hpux*)
13250 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13251 # not for PA HP-UX.
13252 case "$host_cpu" in
13253 hppa*64*|ia64*)
13254 # +Z the default
13255 ;;
13256 *)
13257 lt_prog_compiler_pic_F77='-fPIC'
13258 ;;
13259 esac
13260 ;;
13261
13262 *)
13263 lt_prog_compiler_pic_F77='-fPIC'
13264 ;;
13265 esac
13266 else
13267 # PORTME Check for flag to pass linker flags through the system compiler.
13268 case $host_os in
13269 aix*)
13270 lt_prog_compiler_wl_F77='-Wl,'
13271 if test "$host_cpu" = ia64; then
13272 # AIX 5 now supports IA64 processor
13273 lt_prog_compiler_static_F77='-Bstatic'
13274 else
13275 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13276 fi
13277 ;;
13278
13279 mingw* | pw32* | os2*)
13280 # This hack is so that the source file can tell whether it is being
13281 # built for inclusion in a dll (and should export symbols for example).
13282 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13283 ;;
13284
13285 hpux9* | hpux10* | hpux11*)
13286 lt_prog_compiler_wl_F77='-Wl,'
13287 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13288 # not for PA HP-UX.
13289 case "$host_cpu" in
13290 hppa*64*|ia64*)
13291 # +Z the default
13292 ;;
13293 *)
13294 lt_prog_compiler_pic_F77='+Z'
13295 ;;
13296 esac
13297 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13298 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13299 ;;
13300
13301 irix5* | irix6* | nonstopux*)
13302 lt_prog_compiler_wl_F77='-Wl,'
13303 # PIC (with -KPIC) is the default.
13304 lt_prog_compiler_static_F77='-non_shared'
13305 ;;
13306
13307 newsos6)
13308 lt_prog_compiler_pic_F77='-KPIC'
13309 lt_prog_compiler_static_F77='-Bstatic'
13310 ;;
13311
13312 linux*)
13313 case $CC in
13314 icc* | ecc*)
13315 lt_prog_compiler_wl_F77='-Wl,'
13316 lt_prog_compiler_pic_F77='-KPIC'
13317 lt_prog_compiler_static_F77='-static'
13318 ;;
13319 ccc*)
13320 lt_prog_compiler_wl_F77='-Wl,'
13321 # All Alpha code is PIC.
13322 lt_prog_compiler_static_F77='-non_shared'
13323 ;;
13324 esac
13325 ;;
13326
13327 osf3* | osf4* | osf5*)
13328 lt_prog_compiler_wl_F77='-Wl,'
13329 # All OSF/1 code is PIC.
13330 lt_prog_compiler_static_F77='-non_shared'
13331 ;;
13332
13333 sco3.2v5*)
13334 lt_prog_compiler_pic_F77='-Kpic'
13335 lt_prog_compiler_static_F77='-dn'
13336 ;;
13337
13338 solaris*)
13339 lt_prog_compiler_wl_F77='-Wl,'
13340 lt_prog_compiler_pic_F77='-KPIC'
13341 lt_prog_compiler_static_F77='-Bstatic'
13342 ;;
13343
13344 sunos4*)
13345 lt_prog_compiler_wl_F77='-Qoption ld '
13346 lt_prog_compiler_pic_F77='-PIC'
13347 lt_prog_compiler_static_F77='-Bstatic'
13348 ;;
13349
13350 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13351 lt_prog_compiler_wl_F77='-Wl,'
13352 lt_prog_compiler_pic_F77='-KPIC'
13353 lt_prog_compiler_static_F77='-Bstatic'
13354 ;;
13355
13356 sysv4*MP*)
13357 if test -d /usr/nec ;then
13358 lt_prog_compiler_pic_F77='-Kconform_pic'
13359 lt_prog_compiler_static_F77='-Bstatic'
13360 fi
13361 ;;
13362
13363 uts4*)
13364 lt_prog_compiler_pic_F77='-pic'
13365 lt_prog_compiler_static_F77='-Bstatic'
13366 ;;
13367
13368 *)
13369 lt_prog_compiler_can_build_shared_F77=no
13370 ;;
13371 esac
13372 fi
13373
13374echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13375echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13376
13377#
13378# Check to make sure the PIC flag actually works.
13379#
13380if test -n "$lt_prog_compiler_pic_F77"; then
13381
13382echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13383echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13384if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13386else
13387 lt_prog_compiler_pic_works_F77=no
13388 ac_outfile=conftest.$ac_objext
13389 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13390 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13391 # Insert the option either (1) after the last *FLAGS variable, or
13392 # (2) before a word containing "conftest.", or (3) at the end.
13393 # Note that $ac_compile itself does not contain backslashes and begins
13394 # with a dollar sign (not a hyphen), so the echo should work correctly.
13395 # The option is referenced via a variable to avoid confusing sed.
13396 lt_compile=`echo "$ac_compile" | $SED \
13397 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13399 -e 's:$: $lt_compiler_flag:'`
Lev Walkin33cded12004-09-19 19:40:52 +000013400 (eval echo "\"\$as_me:13400: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +000013401 (eval "$lt_compile" 2>conftest.err)
13402 ac_status=$?
13403 cat conftest.err >&5
Lev Walkin33cded12004-09-19 19:40:52 +000013404 echo "$as_me:13404: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013405 if (exit $ac_status) && test -s "$ac_outfile"; then
13406 # The compiler can only warn and ignore the option if not recognized
13407 # So say no if there are warnings
13408 if test ! -s conftest.err; then
13409 lt_prog_compiler_pic_works_F77=yes
13410 fi
13411 fi
13412 $rm conftest*
13413
13414fi
13415echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13416echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13417
13418if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13419 case $lt_prog_compiler_pic_F77 in
13420 "" | " "*) ;;
13421 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13422 esac
13423else
13424 lt_prog_compiler_pic_F77=
13425 lt_prog_compiler_can_build_shared_F77=no
13426fi
13427
13428fi
13429case "$host_os" in
13430 # For platforms which do not support PIC, -DPIC is meaningless:
13431 *djgpp*)
13432 lt_prog_compiler_pic_F77=
13433 ;;
13434 *)
13435 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13436 ;;
13437esac
13438
13439echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13440echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13441if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13442 echo $ECHO_N "(cached) $ECHO_C" >&6
13443else
13444 lt_cv_prog_compiler_c_o_F77=no
13445 $rm -r conftest 2>/dev/null
13446 mkdir conftest
13447 cd conftest
13448 mkdir out
13449 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13450
13451 lt_compiler_flag="-o out/conftest2.$ac_objext"
13452 # Insert the option either (1) after the last *FLAGS variable, or
13453 # (2) before a word containing "conftest.", or (3) at the end.
13454 # Note that $ac_compile itself does not contain backslashes and begins
13455 # with a dollar sign (not a hyphen), so the echo should work correctly.
13456 lt_compile=`echo "$ac_compile" | $SED \
13457 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13459 -e 's:$: $lt_compiler_flag:'`
Lev Walkin33cded12004-09-19 19:40:52 +000013460 (eval echo "\"\$as_me:13460: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +000013461 (eval "$lt_compile" 2>out/conftest.err)
13462 ac_status=$?
13463 cat out/conftest.err >&5
Lev Walkin33cded12004-09-19 19:40:52 +000013464 echo "$as_me:13464: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013465 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13466 then
13467 # The compiler can only warn and ignore the option if not recognized
13468 # So say no if there are warnings
13469 if test ! -s out/conftest.err; then
13470 lt_cv_prog_compiler_c_o_F77=yes
13471 fi
13472 fi
13473 chmod u+w .
13474 $rm conftest*
13475 # SGI C++ compiler will create directory out/ii_files/ for
13476 # template instantiation
13477 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13478 $rm out/* && rmdir out
13479 cd ..
13480 rmdir conftest
13481 $rm conftest*
13482
13483fi
13484echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13485echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13486
13487
13488hard_links="nottested"
13489if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13490 # do not overwrite the value of need_locks provided by the user
13491 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13492echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13493 hard_links=yes
13494 $rm conftest*
13495 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13496 touch conftest.a
13497 ln conftest.a conftest.b 2>&5 || hard_links=no
13498 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13499 echo "$as_me:$LINENO: result: $hard_links" >&5
13500echo "${ECHO_T}$hard_links" >&6
13501 if test "$hard_links" = no; then
13502 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13503echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13504 need_locks=warn
13505 fi
13506else
13507 need_locks=no
13508fi
13509
13510echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13511echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13512
13513 runpath_var=
13514 allow_undefined_flag_F77=
13515 enable_shared_with_static_runtimes_F77=no
13516 archive_cmds_F77=
13517 archive_expsym_cmds_F77=
13518 old_archive_From_new_cmds_F77=
13519 old_archive_from_expsyms_cmds_F77=
13520 export_dynamic_flag_spec_F77=
13521 whole_archive_flag_spec_F77=
13522 thread_safe_flag_spec_F77=
13523 hardcode_libdir_flag_spec_F77=
13524 hardcode_libdir_flag_spec_ld_F77=
13525 hardcode_libdir_separator_F77=
13526 hardcode_direct_F77=no
13527 hardcode_minus_L_F77=no
13528 hardcode_shlibpath_var_F77=unsupported
13529 link_all_deplibs_F77=unknown
13530 hardcode_automatic_F77=no
13531 module_cmds_F77=
13532 module_expsym_cmds_F77=
13533 always_export_symbols_F77=no
13534 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13535 # include_expsyms should be a list of space-separated symbols to be *always*
13536 # included in the symbol list
13537 include_expsyms_F77=
13538 # exclude_expsyms can be an extended regexp of symbols to exclude
13539 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13540 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13541 # as well as any symbol that contains `d'.
13542 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13543 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13544 # platforms (ab)use it in PIC code, but their linkers get confused if
13545 # the symbol is explicitly referenced. Since portable code cannot
13546 # rely on this symbol name, it's probably fine to never include it in
13547 # preloaded symbol tables.
13548 extract_expsyms_cmds=
13549
13550 case $host_os in
13551 cygwin* | mingw* | pw32*)
13552 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13553 # When not using gcc, we currently assume that we are using
13554 # Microsoft Visual C++.
13555 if test "$GCC" != yes; then
13556 with_gnu_ld=no
13557 fi
13558 ;;
13559 openbsd*)
13560 with_gnu_ld=no
13561 ;;
13562 esac
13563
13564 ld_shlibs_F77=yes
13565 if test "$with_gnu_ld" = yes; then
13566 # If archive_cmds runs LD, not CC, wlarc should be empty
13567 wlarc='${wl}'
13568
13569 # See if GNU ld supports shared libraries.
13570 case $host_os in
13571 aix3* | aix4* | aix5*)
13572 # On AIX/PPC, the GNU linker is very broken
13573 if test "$host_cpu" != ia64; then
13574 ld_shlibs_F77=no
13575 cat <<EOF 1>&2
13576
13577*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13578*** to be unable to reliably create shared libraries on AIX.
13579*** Therefore, libtool is disabling shared libraries support. If you
13580*** really care for shared libraries, you may want to modify your PATH
13581*** so that a non-GNU linker is found, and then restart.
13582
13583EOF
13584 fi
13585 ;;
13586
13587 amigaos*)
13588 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)'
13589 hardcode_libdir_flag_spec_F77='-L$libdir'
13590 hardcode_minus_L_F77=yes
13591
13592 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13593 # that the semantics of dynamic libraries on AmigaOS, at least up
13594 # to version 4, is to share data among multiple programs linked
13595 # with the same dynamic library. Since this doesn't match the
13596 # behavior of shared libraries on other platforms, we can't use
13597 # them.
13598 ld_shlibs_F77=no
13599 ;;
13600
13601 beos*)
13602 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13603 allow_undefined_flag_F77=unsupported
13604 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13605 # support --undefined. This deserves some investigation. FIXME
13606 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13607 else
13608 ld_shlibs_F77=no
13609 fi
13610 ;;
13611
13612 cygwin* | mingw* | pw32*)
13613 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13614 # as there is no search path for DLLs.
13615 hardcode_libdir_flag_spec_F77='-L$libdir'
13616 allow_undefined_flag_F77=unsupported
13617 always_export_symbols_F77=no
13618 enable_shared_with_static_runtimes_F77=yes
13619 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13620
13621 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13622 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13623 # If the export-symbols file already is a .def file (1st line
13624 # is EXPORTS), use it as is; otherwise, prepend...
13625 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13626 cp $export_symbols $output_objdir/$soname.def;
13627 else
13628 echo EXPORTS > $output_objdir/$soname.def;
13629 cat $export_symbols >> $output_objdir/$soname.def;
13630 fi~
13631 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13632 else
13633 ld_shlibs=no
13634 fi
13635 ;;
13636
13637 netbsd*)
13638 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13639 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13640 wlarc=
13641 else
13642 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13643 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13644 fi
13645 ;;
13646
13647 solaris* | sysv5*)
13648 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13649 ld_shlibs_F77=no
13650 cat <<EOF 1>&2
13651
13652*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13653*** create shared libraries on Solaris systems. Therefore, libtool
13654*** is disabling shared libraries support. We urge you to upgrade GNU
13655*** binutils to release 2.9.1 or newer. Another option is to modify
13656*** your PATH or compiler configuration so that the native linker is
13657*** used, and then restart.
13658
13659EOF
13660 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13661 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13662 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13663 else
13664 ld_shlibs_F77=no
13665 fi
13666 ;;
13667
13668 sunos4*)
13669 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13670 wlarc=
13671 hardcode_direct_F77=yes
13672 hardcode_shlibpath_var_F77=no
13673 ;;
13674
13675 linux*)
13676 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13677 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13678 archive_cmds_F77="$tmp_archive_cmds"
13679 supports_anon_versioning=no
13680 case `$LD -v 2>/dev/null` in
13681 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13682 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13683 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13684 *\ 2.11.*) ;; # other 2.11 versions
13685 *) supports_anon_versioning=yes ;;
13686 esac
13687 if test $supports_anon_versioning = yes; then
13688 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13689cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13690$echo "local: *; };" >> $output_objdir/$libname.ver~
13691 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13692 else
13693 archive_expsym_cmds_F77="$tmp_archive_cmds"
13694 fi
13695 else
13696 ld_shlibs_F77=no
13697 fi
13698 ;;
13699
13700 *)
13701 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13702 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13703 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13704 else
13705 ld_shlibs_F77=no
13706 fi
13707 ;;
13708 esac
13709
13710 if test "$ld_shlibs_F77" = yes; then
13711 runpath_var=LD_RUN_PATH
13712 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13713 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13714 # ancient GNU ld didn't support --whole-archive et. al.
13715 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13716 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13717 else
13718 whole_archive_flag_spec_F77=
13719 fi
13720 fi
13721 else
13722 # PORTME fill in a description of your system's linker (not GNU ld)
13723 case $host_os in
13724 aix3*)
13725 allow_undefined_flag_F77=unsupported
13726 always_export_symbols_F77=yes
13727 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'
13728 # Note: this linker hardcodes the directories in LIBPATH if there
13729 # are no directories specified by -L.
13730 hardcode_minus_L_F77=yes
13731 if test "$GCC" = yes && test -z "$link_static_flag"; then
13732 # Neither direct hardcoding nor static linking is supported with a
13733 # broken collect2.
13734 hardcode_direct_F77=unsupported
13735 fi
13736 ;;
13737
13738 aix4* | aix5*)
13739 if test "$host_cpu" = ia64; then
13740 # On IA64, the linker does run time linking by default, so we don't
13741 # have to do anything special.
13742 aix_use_runtimelinking=no
13743 exp_sym_flag='-Bexport'
13744 no_entry_flag=""
13745 else
13746 # If we're using GNU nm, then we don't want the "-C" option.
13747 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13748 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13749 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'
13750 else
13751 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'
13752 fi
13753 aix_use_runtimelinking=no
13754
13755 # Test if we are trying to use run time linking or normal
13756 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13757 # need to do runtime linking.
13758 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13759 for ld_flag in $LDFLAGS; do
13760 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13761 aix_use_runtimelinking=yes
13762 break
13763 fi
13764 done
13765 esac
13766
13767 exp_sym_flag='-bexport'
13768 no_entry_flag='-bnoentry'
13769 fi
13770
13771 # When large executables or shared objects are built, AIX ld can
13772 # have problems creating the table of contents. If linking a library
13773 # or program results in "error TOC overflow" add -mminimal-toc to
13774 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13775 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13776
13777 archive_cmds_F77=''
13778 hardcode_direct_F77=yes
13779 hardcode_libdir_separator_F77=':'
13780 link_all_deplibs_F77=yes
13781
13782 if test "$GCC" = yes; then
13783 case $host_os in aix4.012|aix4.012.*)
13784 # We only want to do this on AIX 4.2 and lower, the check
13785 # below for broken collect2 doesn't work under 4.3+
13786 collect2name=`${CC} -print-prog-name=collect2`
13787 if test -f "$collect2name" && \
13788 strings "$collect2name" | grep resolve_lib_name >/dev/null
13789 then
13790 # We have reworked collect2
13791 hardcode_direct_F77=yes
13792 else
13793 # We have old collect2
13794 hardcode_direct_F77=unsupported
13795 # It fails to find uninstalled libraries when the uninstalled
13796 # path is not listed in the libpath. Setting hardcode_minus_L
13797 # to unsupported forces relinking
13798 hardcode_minus_L_F77=yes
13799 hardcode_libdir_flag_spec_F77='-L$libdir'
13800 hardcode_libdir_separator_F77=
13801 fi
13802 esac
13803 shared_flag='-shared'
13804 else
13805 # not using gcc
13806 if test "$host_cpu" = ia64; then
13807 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13808 # chokes on -Wl,-G. The following line is correct:
13809 shared_flag='-G'
13810 else
13811 if test "$aix_use_runtimelinking" = yes; then
13812 shared_flag='${wl}-G'
13813 else
13814 shared_flag='${wl}-bM:SRE'
13815 fi
13816 fi
13817 fi
13818
13819 # It seems that -bexpall does not export symbols beginning with
13820 # underscore (_), so it is better to generate a list of symbols to export.
13821 always_export_symbols_F77=yes
13822 if test "$aix_use_runtimelinking" = yes; then
13823 # Warning - without using the other runtime loading flags (-brtl),
13824 # -berok will link without error, but may produce a broken library.
13825 allow_undefined_flag_F77='-berok'
13826 # Determine the default libpath from the value encoded in an empty executable.
13827 cat >conftest.$ac_ext <<_ACEOF
13828 program main
13829
13830 end
13831_ACEOF
13832rm -f conftest.$ac_objext conftest$ac_exeext
13833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13834 (eval $ac_link) 2>conftest.er1
13835 ac_status=$?
13836 grep -v '^ *+' conftest.er1 >conftest.err
13837 rm -f conftest.er1
13838 cat conftest.err >&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } &&
13841 { ac_try='test -z "$ac_f77_werror_flag"
13842 || test ! -s conftest.err'
13843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13845 ac_status=$?
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; } &&
13848 { ac_try='test -s conftest$ac_exeext'
13849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850 (eval $ac_try) 2>&5
13851 ac_status=$?
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; }; then
13854
13855aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13856}'`
13857# Check for a 64-bit object if we didn't find anything.
13858if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13859}'`; fi
13860else
13861 echo "$as_me: failed program was:" >&5
13862sed 's/^/| /' conftest.$ac_ext >&5
13863
13864fi
13865rm -f conftest.err conftest.$ac_objext \
13866 conftest$ac_exeext conftest.$ac_ext
13867if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13868
13869 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13870 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13871 else
13872 if test "$host_cpu" = ia64; then
13873 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13874 allow_undefined_flag_F77="-z nodefs"
13875 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13876 else
13877 # Determine the default libpath from the value encoded in an empty executable.
13878 cat >conftest.$ac_ext <<_ACEOF
13879 program main
13880
13881 end
13882_ACEOF
13883rm -f conftest.$ac_objext conftest$ac_exeext
13884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13885 (eval $ac_link) 2>conftest.er1
13886 ac_status=$?
13887 grep -v '^ *+' conftest.er1 >conftest.err
13888 rm -f conftest.er1
13889 cat conftest.err >&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } &&
13892 { ac_try='test -z "$ac_f77_werror_flag"
13893 || test ! -s conftest.err'
13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
13896 ac_status=$?
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; } &&
13899 { ac_try='test -s conftest$ac_exeext'
13900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13901 (eval $ac_try) 2>&5
13902 ac_status=$?
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); }; }; then
13905
13906aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13907}'`
13908# Check for a 64-bit object if we didn't find anything.
13909if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13910}'`; fi
13911else
13912 echo "$as_me: failed program was:" >&5
13913sed 's/^/| /' conftest.$ac_ext >&5
13914
13915fi
13916rm -f conftest.err conftest.$ac_objext \
13917 conftest$ac_exeext conftest.$ac_ext
13918if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13919
13920 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13921 # Warning - without using the other run time loading flags,
13922 # -berok will link without error, but may produce a broken library.
13923 no_undefined_flag_F77=' ${wl}-bernotok'
13924 allow_undefined_flag_F77=' ${wl}-berok'
13925 # -bexpall does not export symbols beginning with underscore (_)
13926 always_export_symbols_F77=yes
13927 # Exported symbols can be pulled into shared objects from archives
13928 whole_archive_flag_spec_F77=' '
13929 archive_cmds_need_lc_F77=yes
13930 # This is similar to how AIX traditionally builds it's shared libraries.
13931 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13932 fi
13933 fi
13934 ;;
13935
13936 amigaos*)
13937 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)'
13938 hardcode_libdir_flag_spec_F77='-L$libdir'
13939 hardcode_minus_L_F77=yes
13940 # see comment about different semantics on the GNU ld section
13941 ld_shlibs_F77=no
13942 ;;
13943
13944 bsdi4*)
13945 export_dynamic_flag_spec_F77=-rdynamic
13946 ;;
13947
13948 cygwin* | mingw* | pw32*)
13949 # When not using gcc, we currently assume that we are using
13950 # Microsoft Visual C++.
13951 # hardcode_libdir_flag_spec is actually meaningless, as there is
13952 # no search path for DLLs.
13953 hardcode_libdir_flag_spec_F77=' '
13954 allow_undefined_flag_F77=unsupported
13955 # Tell ltmain to make .lib files, not .a files.
13956 libext=lib
13957 # Tell ltmain to make .dll files, not .so files.
13958 shrext_cmds=".dll"
13959 # FIXME: Setting linknames here is a bad hack.
13960 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13961 # The linker will automatically build a .lib file if we build a DLL.
13962 old_archive_From_new_cmds_F77='true'
13963 # FIXME: Should let the user specify the lib program.
13964 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13965 fix_srcfile_path='`cygpath -w "$srcfile"`'
13966 enable_shared_with_static_runtimes_F77=yes
13967 ;;
13968
13969 darwin* | rhapsody*)
13970 if test "$GXX" = yes ; then
13971 archive_cmds_need_lc_F77=no
13972 case "$host_os" in
13973 rhapsody* | darwin1.[012])
13974 allow_undefined_flag_F77='-undefined suppress'
13975 ;;
13976 *) # Darwin 1.3 on
13977 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13978 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13979 else
13980 case ${MACOSX_DEPLOYMENT_TARGET} in
13981 10.[012])
13982 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13983 ;;
13984 10.*)
13985 allow_undefined_flag_F77='-undefined dynamic_lookup'
13986 ;;
13987 esac
13988 fi
13989 ;;
13990 esac
13991 lt_int_apple_cc_single_mod=no
13992 output_verbose_link_cmd='echo'
13993 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13994 lt_int_apple_cc_single_mod=yes
13995 fi
13996 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13997 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13998 else
13999 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14000 fi
14001 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14002 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14003 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14004 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14005 else
14006 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14007 fi
14008 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}'
14009 hardcode_direct_F77=no
14010 hardcode_automatic_F77=yes
14011 hardcode_shlibpath_var_F77=unsupported
14012 whole_archive_flag_spec_F77='-all_load $convenience'
14013 link_all_deplibs_F77=yes
14014 else
14015 ld_shlibs_F77=no
14016 fi
14017 ;;
14018
14019 dgux*)
14020 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14021 hardcode_libdir_flag_spec_F77='-L$libdir'
14022 hardcode_shlibpath_var_F77=no
14023 ;;
14024
14025 freebsd1*)
14026 ld_shlibs_F77=no
14027 ;;
14028
14029 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14030 # support. Future versions do this automatically, but an explicit c++rt0.o
14031 # does not break anything, and helps significantly (at the cost of a little
14032 # extra space).
14033 freebsd2.2*)
14034 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14035 hardcode_libdir_flag_spec_F77='-R$libdir'
14036 hardcode_direct_F77=yes
14037 hardcode_shlibpath_var_F77=no
14038 ;;
14039
14040 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14041 freebsd2*)
14042 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14043 hardcode_direct_F77=yes
14044 hardcode_minus_L_F77=yes
14045 hardcode_shlibpath_var_F77=no
14046 ;;
14047
14048 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14049 freebsd* | kfreebsd*-gnu)
14050 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14051 hardcode_libdir_flag_spec_F77='-R$libdir'
14052 hardcode_direct_F77=yes
14053 hardcode_shlibpath_var_F77=no
14054 ;;
14055
14056 hpux9*)
14057 if test "$GCC" = yes; then
14058 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'
14059 else
14060 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'
14061 fi
14062 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14063 hardcode_libdir_separator_F77=:
14064 hardcode_direct_F77=yes
14065
14066 # hardcode_minus_L: Not really in the search PATH,
14067 # but as the default location of the library.
14068 hardcode_minus_L_F77=yes
14069 export_dynamic_flag_spec_F77='${wl}-E'
14070 ;;
14071
14072 hpux10* | hpux11*)
14073 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14074 case "$host_cpu" in
14075 hppa*64*|ia64*)
14076 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14077 ;;
14078 *)
14079 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14080 ;;
14081 esac
14082 else
14083 case "$host_cpu" in
14084 hppa*64*|ia64*)
14085 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14086 ;;
14087 *)
14088 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14089 ;;
14090 esac
14091 fi
14092 if test "$with_gnu_ld" = no; then
14093 case "$host_cpu" in
14094 hppa*64*)
14095 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14096 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14097 hardcode_libdir_separator_F77=:
14098 hardcode_direct_F77=no
14099 hardcode_shlibpath_var_F77=no
14100 ;;
14101 ia64*)
14102 hardcode_libdir_flag_spec_F77='-L$libdir'
14103 hardcode_direct_F77=no
14104 hardcode_shlibpath_var_F77=no
14105
14106 # hardcode_minus_L: Not really in the search PATH,
14107 # but as the default location of the library.
14108 hardcode_minus_L_F77=yes
14109 ;;
14110 *)
14111 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14112 hardcode_libdir_separator_F77=:
14113 hardcode_direct_F77=yes
14114 export_dynamic_flag_spec_F77='${wl}-E'
14115
14116 # hardcode_minus_L: Not really in the search PATH,
14117 # but as the default location of the library.
14118 hardcode_minus_L_F77=yes
14119 ;;
14120 esac
14121 fi
14122 ;;
14123
14124 irix5* | irix6* | nonstopux*)
14125 if test "$GCC" = yes; then
14126 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'
14127 else
14128 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'
14129 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14130 fi
14131 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14132 hardcode_libdir_separator_F77=:
14133 link_all_deplibs_F77=yes
14134 ;;
14135
14136 netbsd*)
14137 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14138 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14139 else
14140 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14141 fi
14142 hardcode_libdir_flag_spec_F77='-R$libdir'
14143 hardcode_direct_F77=yes
14144 hardcode_shlibpath_var_F77=no
14145 ;;
14146
14147 newsos6)
14148 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14149 hardcode_direct_F77=yes
14150 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14151 hardcode_libdir_separator_F77=:
14152 hardcode_shlibpath_var_F77=no
14153 ;;
14154
14155 openbsd*)
14156 hardcode_direct_F77=yes
14157 hardcode_shlibpath_var_F77=no
14158 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14159 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14160 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14161 export_dynamic_flag_spec_F77='${wl}-E'
14162 else
14163 case $host_os in
14164 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14165 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14166 hardcode_libdir_flag_spec_F77='-R$libdir'
14167 ;;
14168 *)
14169 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14170 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14171 ;;
14172 esac
14173 fi
14174 ;;
14175
14176 os2*)
14177 hardcode_libdir_flag_spec_F77='-L$libdir'
14178 hardcode_minus_L_F77=yes
14179 allow_undefined_flag_F77=unsupported
14180 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'
14181 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14182 ;;
14183
14184 osf3*)
14185 if test "$GCC" = yes; then
14186 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14187 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14188 else
14189 allow_undefined_flag_F77=' -expect_unresolved \*'
14190 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'
14191 fi
14192 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14193 hardcode_libdir_separator_F77=:
14194 ;;
14195
14196 osf4* | osf5*) # as osf3* with the addition of -msym flag
14197 if test "$GCC" = yes; then
14198 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14199 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'
14200 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14201 else
14202 allow_undefined_flag_F77=' -expect_unresolved \*'
14203 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'
14204 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~
14205 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14206
14207 # Both c and cxx compiler support -rpath directly
14208 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14209 fi
14210 hardcode_libdir_separator_F77=:
14211 ;;
14212
14213 sco3.2v5*)
14214 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14215 hardcode_shlibpath_var_F77=no
14216 export_dynamic_flag_spec_F77='${wl}-Bexport'
14217 runpath_var=LD_RUN_PATH
14218 hardcode_runpath_var=yes
14219 ;;
14220
14221 solaris*)
14222 no_undefined_flag_F77=' -z text'
14223 if test "$GCC" = yes; then
14224 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14225 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14226 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14227 else
14228 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14229 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14230 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14231 fi
14232 hardcode_libdir_flag_spec_F77='-R$libdir'
14233 hardcode_shlibpath_var_F77=no
14234 case $host_os in
14235 solaris2.[0-5] | solaris2.[0-5].*) ;;
14236 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14237 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14238 esac
14239 link_all_deplibs_F77=yes
14240 ;;
14241
14242 sunos4*)
14243 if test "x$host_vendor" = xsequent; then
14244 # Use $CC to link under sequent, because it throws in some extra .o
14245 # files that make .init and .fini sections work.
14246 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14247 else
14248 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14249 fi
14250 hardcode_libdir_flag_spec_F77='-L$libdir'
14251 hardcode_direct_F77=yes
14252 hardcode_minus_L_F77=yes
14253 hardcode_shlibpath_var_F77=no
14254 ;;
14255
14256 sysv4)
14257 case $host_vendor in
14258 sni)
14259 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14260 hardcode_direct_F77=yes # is this really true???
14261 ;;
14262 siemens)
14263 ## LD is ld it makes a PLAMLIB
14264 ## CC just makes a GrossModule.
14265 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14266 reload_cmds_F77='$CC -r -o $output$reload_objs'
14267 hardcode_direct_F77=no
14268 ;;
14269 motorola)
14270 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14271 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14272 ;;
14273 esac
14274 runpath_var='LD_RUN_PATH'
14275 hardcode_shlibpath_var_F77=no
14276 ;;
14277
14278 sysv4.3*)
14279 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14280 hardcode_shlibpath_var_F77=no
14281 export_dynamic_flag_spec_F77='-Bexport'
14282 ;;
14283
14284 sysv4*MP*)
14285 if test -d /usr/nec; then
14286 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14287 hardcode_shlibpath_var_F77=no
14288 runpath_var=LD_RUN_PATH
14289 hardcode_runpath_var=yes
14290 ld_shlibs_F77=yes
14291 fi
14292 ;;
14293
14294 sysv4.2uw2*)
14295 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14296 hardcode_direct_F77=yes
14297 hardcode_minus_L_F77=no
14298 hardcode_shlibpath_var_F77=no
14299 hardcode_runpath_var=yes
14300 runpath_var=LD_RUN_PATH
14301 ;;
14302
14303 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14304 no_undefined_flag_F77='${wl}-z ${wl}text'
14305 if test "$GCC" = yes; then
14306 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14307 else
14308 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14309 fi
14310 runpath_var='LD_RUN_PATH'
14311 hardcode_shlibpath_var_F77=no
14312 ;;
14313
14314 sysv5*)
14315 no_undefined_flag_F77=' -z text'
14316 # $CC -shared without GNU ld will not create a library from C++
14317 # object files and a static libstdc++, better avoid it by now
14318 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14319 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14320 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14321 hardcode_libdir_flag_spec_F77=
14322 hardcode_shlibpath_var_F77=no
14323 runpath_var='LD_RUN_PATH'
14324 ;;
14325
14326 uts4*)
14327 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14328 hardcode_libdir_flag_spec_F77='-L$libdir'
14329 hardcode_shlibpath_var_F77=no
14330 ;;
14331
14332 *)
14333 ld_shlibs_F77=no
14334 ;;
14335 esac
14336 fi
14337
14338echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14339echo "${ECHO_T}$ld_shlibs_F77" >&6
14340test "$ld_shlibs_F77" = no && can_build_shared=no
14341
14342variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14343if test "$GCC" = yes; then
14344 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14345fi
14346
14347#
14348# Do we need to explicitly link libc?
14349#
14350case "x$archive_cmds_need_lc_F77" in
14351x|xyes)
14352 # Assume -lc should be added
14353 archive_cmds_need_lc_F77=yes
14354
14355 if test "$enable_shared" = yes && test "$GCC" = yes; then
14356 case $archive_cmds_F77 in
14357 *'~'*)
14358 # FIXME: we may have to deal with multi-command sequences.
14359 ;;
14360 '$CC '*)
14361 # Test whether the compiler implicitly links with -lc since on some
14362 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14363 # to ld, don't add -lc before -lgcc.
14364 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14365echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14366 $rm conftest*
14367 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14368
14369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14370 (eval $ac_compile) 2>&5
14371 ac_status=$?
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); } 2>conftest.err; then
14374 soname=conftest
14375 lib=conftest
14376 libobjs=conftest.$ac_objext
14377 deplibs=
14378 wl=$lt_prog_compiler_wl_F77
14379 compiler_flags=-v
14380 linker_flags=-v
14381 verstring=
14382 output_objdir=.
14383 libname=conftest
14384 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14385 allow_undefined_flag_F77=
14386 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14387 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14388 ac_status=$?
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }
14391 then
14392 archive_cmds_need_lc_F77=no
14393 else
14394 archive_cmds_need_lc_F77=yes
14395 fi
14396 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14397 else
14398 cat conftest.err 1>&5
14399 fi
14400 $rm conftest*
14401 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14402echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14403 ;;
14404 esac
14405 fi
14406 ;;
14407esac
14408
14409echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14410echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14411library_names_spec=
14412libname_spec='lib$name'
14413soname_spec=
14414shrext_cmds=".so"
14415postinstall_cmds=
14416postuninstall_cmds=
14417finish_cmds=
14418finish_eval=
14419shlibpath_var=
14420shlibpath_overrides_runpath=unknown
14421version_type=none
14422dynamic_linker="$host_os ld.so"
14423sys_lib_dlsearch_path_spec="/lib /usr/lib"
14424if test "$GCC" = yes; then
14425 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14426 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14427 # if the path contains ";" then we assume it to be the separator
14428 # otherwise default to the standard path separator (i.e. ":") - it is
14429 # assumed that no part of a normal pathname contains ";" but that should
14430 # okay in the real world where ";" in dirpaths is itself problematic.
14431 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14432 else
14433 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14434 fi
14435else
14436 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14437fi
14438need_lib_prefix=unknown
14439hardcode_into_libs=no
14440
14441# when you set need_version to no, make sure it does not cause -set_version
14442# flags to be left without arguments
14443need_version=unknown
14444
14445case $host_os in
14446aix3*)
14447 version_type=linux
14448 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14449 shlibpath_var=LIBPATH
14450
14451 # AIX 3 has no versioning support, so we append a major version to the name.
14452 soname_spec='${libname}${release}${shared_ext}$major'
14453 ;;
14454
14455aix4* | aix5*)
14456 version_type=linux
14457 need_lib_prefix=no
14458 need_version=no
14459 hardcode_into_libs=yes
14460 if test "$host_cpu" = ia64; then
14461 # AIX 5 supports IA64
14462 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14463 shlibpath_var=LD_LIBRARY_PATH
14464 else
14465 # With GCC up to 2.95.x, collect2 would create an import file
14466 # for dependence libraries. The import file would start with
14467 # the line `#! .'. This would cause the generated library to
14468 # depend on `.', always an invalid library. This was fixed in
14469 # development snapshots of GCC prior to 3.0.
14470 case $host_os in
14471 aix4 | aix4.[01] | aix4.[01].*)
14472 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14473 echo ' yes '
14474 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14475 :
14476 else
14477 can_build_shared=no
14478 fi
14479 ;;
14480 esac
14481 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14482 # soname into executable. Probably we can add versioning support to
14483 # collect2, so additional links can be useful in future.
14484 if test "$aix_use_runtimelinking" = yes; then
14485 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14486 # instead of lib<name>.a to let people know that these are not
14487 # typical AIX shared libraries.
14488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14489 else
14490 # We preserve .a as extension for shared libraries through AIX4.2
14491 # and later when we are not doing run time linking.
14492 library_names_spec='${libname}${release}.a $libname.a'
14493 soname_spec='${libname}${release}${shared_ext}$major'
14494 fi
14495 shlibpath_var=LIBPATH
14496 fi
14497 ;;
14498
14499amigaos*)
14500 library_names_spec='$libname.ixlibrary $libname.a'
14501 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14502 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'
14503 ;;
14504
14505beos*)
14506 library_names_spec='${libname}${shared_ext}'
14507 dynamic_linker="$host_os ld.so"
14508 shlibpath_var=LIBRARY_PATH
14509 ;;
14510
14511bsdi4*)
14512 version_type=linux
14513 need_version=no
14514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14515 soname_spec='${libname}${release}${shared_ext}$major'
14516 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14517 shlibpath_var=LD_LIBRARY_PATH
14518 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14519 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14520 # the default ld.so.conf also contains /usr/contrib/lib and
14521 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14522 # libtool to hard-code these into programs
14523 ;;
14524
14525cygwin* | mingw* | pw32*)
14526 version_type=windows
14527 shrext_cmds=".dll"
14528 need_version=no
14529 need_lib_prefix=no
14530
14531 case $GCC,$host_os in
14532 yes,cygwin* | yes,mingw* | yes,pw32*)
14533 library_names_spec='$libname.dll.a'
14534 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14535 postinstall_cmds='base_file=`basename \${file}`~
14536 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14537 dldir=$destdir/`dirname \$dlpath`~
14538 test -d \$dldir || mkdir -p \$dldir~
14539 $install_prog $dir/$dlname \$dldir/$dlname'
14540 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14541 dlpath=$dir/\$dldll~
14542 $rm \$dlpath'
14543 shlibpath_overrides_runpath=yes
14544
14545 case $host_os in
14546 cygwin*)
14547 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14548 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14549 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14550 ;;
14551 mingw*)
14552 # MinGW DLLs use traditional 'lib' prefix
14553 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14554 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14555 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14556 # It is most probably a Windows format PATH printed by
14557 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14558 # path with ; separators, and with drive letters. We can handle the
14559 # drive letters (cygwin fileutils understands them), so leave them,
14560 # especially as we might pass files found there to a mingw objdump,
14561 # which wouldn't understand a cygwinified path. Ahh.
14562 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14563 else
14564 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14565 fi
14566 ;;
14567 pw32*)
14568 # pw32 DLLs use 'pw' prefix rather than 'lib'
14569 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14570 ;;
14571 esac
14572 ;;
14573
14574 *)
14575 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14576 ;;
14577 esac
14578 dynamic_linker='Win32 ld.exe'
14579 # FIXME: first we should search . and the directory the executable is in
14580 shlibpath_var=PATH
14581 ;;
14582
14583darwin* | rhapsody*)
14584 dynamic_linker="$host_os dyld"
14585 version_type=darwin
14586 need_lib_prefix=no
14587 need_version=no
14588 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14589 soname_spec='${libname}${release}${major}$shared_ext'
14590 shlibpath_overrides_runpath=yes
14591 shlibpath_var=DYLD_LIBRARY_PATH
14592 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14593 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14594 if test "$GCC" = yes; then
14595 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14596 else
14597 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14598 fi
14599 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14600 ;;
14601
14602dgux*)
14603 version_type=linux
14604 need_lib_prefix=no
14605 need_version=no
14606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14607 soname_spec='${libname}${release}${shared_ext}$major'
14608 shlibpath_var=LD_LIBRARY_PATH
14609 ;;
14610
14611freebsd1*)
14612 dynamic_linker=no
14613 ;;
14614
14615kfreebsd*-gnu)
14616 version_type=linux
14617 need_lib_prefix=no
14618 need_version=no
14619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14620 soname_spec='${libname}${release}${shared_ext}$major'
14621 shlibpath_var=LD_LIBRARY_PATH
14622 shlibpath_overrides_runpath=no
14623 hardcode_into_libs=yes
14624 dynamic_linker='GNU ld.so'
14625 ;;
14626
14627freebsd*)
14628 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14629 version_type=freebsd-$objformat
14630 case $version_type in
14631 freebsd-elf*)
14632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14633 need_version=no
14634 need_lib_prefix=no
14635 ;;
14636 freebsd-*)
14637 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14638 need_version=yes
14639 ;;
14640 esac
14641 shlibpath_var=LD_LIBRARY_PATH
14642 case $host_os in
14643 freebsd2*)
14644 shlibpath_overrides_runpath=yes
14645 ;;
14646 freebsd3.01* | freebsdelf3.01*)
14647 shlibpath_overrides_runpath=yes
14648 hardcode_into_libs=yes
14649 ;;
14650 *) # from 3.2 on
14651 shlibpath_overrides_runpath=no
14652 hardcode_into_libs=yes
14653 ;;
14654 esac
14655 ;;
14656
14657gnu*)
14658 version_type=linux
14659 need_lib_prefix=no
14660 need_version=no
14661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14662 soname_spec='${libname}${release}${shared_ext}$major'
14663 shlibpath_var=LD_LIBRARY_PATH
14664 hardcode_into_libs=yes
14665 ;;
14666
14667hpux9* | hpux10* | hpux11*)
14668 # Give a soname corresponding to the major version so that dld.sl refuses to
14669 # link against other versions.
14670 version_type=sunos
14671 need_lib_prefix=no
14672 need_version=no
14673 case "$host_cpu" in
14674 ia64*)
14675 shrext_cmds='.so'
14676 hardcode_into_libs=yes
14677 dynamic_linker="$host_os dld.so"
14678 shlibpath_var=LD_LIBRARY_PATH
14679 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14681 soname_spec='${libname}${release}${shared_ext}$major'
14682 if test "X$HPUX_IA64_MODE" = X32; then
14683 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14684 else
14685 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14686 fi
14687 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14688 ;;
14689 hppa*64*)
14690 shrext_cmds='.sl'
14691 hardcode_into_libs=yes
14692 dynamic_linker="$host_os dld.sl"
14693 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14694 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14696 soname_spec='${libname}${release}${shared_ext}$major'
14697 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14699 ;;
14700 *)
14701 shrext_cmds='.sl'
14702 dynamic_linker="$host_os dld.sl"
14703 shlibpath_var=SHLIB_PATH
14704 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14706 soname_spec='${libname}${release}${shared_ext}$major'
14707 ;;
14708 esac
14709 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14710 postinstall_cmds='chmod 555 $lib'
14711 ;;
14712
14713irix5* | irix6* | nonstopux*)
14714 case $host_os in
14715 nonstopux*) version_type=nonstopux ;;
14716 *)
14717 if test "$lt_cv_prog_gnu_ld" = yes; then
14718 version_type=linux
14719 else
14720 version_type=irix
14721 fi ;;
14722 esac
14723 need_lib_prefix=no
14724 need_version=no
14725 soname_spec='${libname}${release}${shared_ext}$major'
14726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14727 case $host_os in
14728 irix5* | nonstopux*)
14729 libsuff= shlibsuff=
14730 ;;
14731 *)
14732 case $LD in # libtool.m4 will add one of these switches to LD
14733 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14734 libsuff= shlibsuff= libmagic=32-bit;;
14735 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14736 libsuff=32 shlibsuff=N32 libmagic=N32;;
14737 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14738 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14739 *) libsuff= shlibsuff= libmagic=never-match;;
14740 esac
14741 ;;
14742 esac
14743 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14744 shlibpath_overrides_runpath=no
14745 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14746 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14747 hardcode_into_libs=yes
14748 ;;
14749
14750# No shared lib support for Linux oldld, aout, or coff.
14751linux*oldld* | linux*aout* | linux*coff*)
14752 dynamic_linker=no
14753 ;;
14754
14755# This must be Linux ELF.
14756linux*)
14757 version_type=linux
14758 need_lib_prefix=no
14759 need_version=no
14760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14761 soname_spec='${libname}${release}${shared_ext}$major'
14762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14763 shlibpath_var=LD_LIBRARY_PATH
14764 shlibpath_overrides_runpath=no
14765 # This implies no fast_install, which is unacceptable.
14766 # Some rework will be needed to allow for fast_install
14767 # before this can be enabled.
14768 hardcode_into_libs=yes
14769
14770 # Append ld.so.conf contents to the search path
14771 if test -f /etc/ld.so.conf; then
14772 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14773 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14774 fi
14775
14776 # We used to test for /lib/ld.so.1 and disable shared libraries on
14777 # powerpc, because MkLinux only supported shared libraries with the
14778 # GNU dynamic linker. Since this was broken with cross compilers,
14779 # most powerpc-linux boxes support dynamic linking these days and
14780 # people can always --disable-shared, the test was removed, and we
14781 # assume the GNU/Linux dynamic linker is in use.
14782 dynamic_linker='GNU/Linux ld.so'
14783 ;;
14784
14785knetbsd*-gnu)
14786 version_type=linux
14787 need_lib_prefix=no
14788 need_version=no
14789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14790 soname_spec='${libname}${release}${shared_ext}$major'
14791 shlibpath_var=LD_LIBRARY_PATH
14792 shlibpath_overrides_runpath=no
14793 hardcode_into_libs=yes
14794 dynamic_linker='GNU ld.so'
14795 ;;
14796
14797netbsd*)
14798 version_type=sunos
14799 need_lib_prefix=no
14800 need_version=no
14801 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14803 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14804 dynamic_linker='NetBSD (a.out) ld.so'
14805 else
14806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14807 soname_spec='${libname}${release}${shared_ext}$major'
14808 dynamic_linker='NetBSD ld.elf_so'
14809 fi
14810 shlibpath_var=LD_LIBRARY_PATH
14811 shlibpath_overrides_runpath=yes
14812 hardcode_into_libs=yes
14813 ;;
14814
14815newsos6)
14816 version_type=linux
14817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14818 shlibpath_var=LD_LIBRARY_PATH
14819 shlibpath_overrides_runpath=yes
14820 ;;
14821
14822nto-qnx*)
14823 version_type=linux
14824 need_lib_prefix=no
14825 need_version=no
14826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14827 soname_spec='${libname}${release}${shared_ext}$major'
14828 shlibpath_var=LD_LIBRARY_PATH
14829 shlibpath_overrides_runpath=yes
14830 ;;
14831
14832openbsd*)
14833 version_type=sunos
14834 need_lib_prefix=no
14835 need_version=yes
14836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14837 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14838 shlibpath_var=LD_LIBRARY_PATH
14839 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14840 case $host_os in
14841 openbsd2.[89] | openbsd2.[89].*)
14842 shlibpath_overrides_runpath=no
14843 ;;
14844 *)
14845 shlibpath_overrides_runpath=yes
14846 ;;
14847 esac
14848 else
14849 shlibpath_overrides_runpath=yes
14850 fi
14851 ;;
14852
14853os2*)
14854 libname_spec='$name'
14855 shrext_cmds=".dll"
14856 need_lib_prefix=no
14857 library_names_spec='$libname${shared_ext} $libname.a'
14858 dynamic_linker='OS/2 ld.exe'
14859 shlibpath_var=LIBPATH
14860 ;;
14861
14862osf3* | osf4* | osf5*)
14863 version_type=osf
14864 need_lib_prefix=no
14865 need_version=no
14866 soname_spec='${libname}${release}${shared_ext}$major'
14867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14868 shlibpath_var=LD_LIBRARY_PATH
14869 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14870 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14871 ;;
14872
14873sco3.2v5*)
14874 version_type=osf
14875 soname_spec='${libname}${release}${shared_ext}$major'
14876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14877 shlibpath_var=LD_LIBRARY_PATH
14878 ;;
14879
14880solaris*)
14881 version_type=linux
14882 need_lib_prefix=no
14883 need_version=no
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14885 soname_spec='${libname}${release}${shared_ext}$major'
14886 shlibpath_var=LD_LIBRARY_PATH
14887 shlibpath_overrides_runpath=yes
14888 hardcode_into_libs=yes
14889 # ldd complains unless libraries are executable
14890 postinstall_cmds='chmod +x $lib'
14891 ;;
14892
14893sunos4*)
14894 version_type=sunos
14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14896 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14897 shlibpath_var=LD_LIBRARY_PATH
14898 shlibpath_overrides_runpath=yes
14899 if test "$with_gnu_ld" = yes; then
14900 need_lib_prefix=no
14901 fi
14902 need_version=yes
14903 ;;
14904
14905sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14906 version_type=linux
14907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14908 soname_spec='${libname}${release}${shared_ext}$major'
14909 shlibpath_var=LD_LIBRARY_PATH
14910 case $host_vendor in
14911 sni)
14912 shlibpath_overrides_runpath=no
14913 need_lib_prefix=no
14914 export_dynamic_flag_spec='${wl}-Blargedynsym'
14915 runpath_var=LD_RUN_PATH
14916 ;;
14917 siemens)
14918 need_lib_prefix=no
14919 ;;
14920 motorola)
14921 need_lib_prefix=no
14922 need_version=no
14923 shlibpath_overrides_runpath=no
14924 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14925 ;;
14926 esac
14927 ;;
14928
14929sysv4*MP*)
14930 if test -d /usr/nec ;then
14931 version_type=linux
14932 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14933 soname_spec='$libname${shared_ext}.$major'
14934 shlibpath_var=LD_LIBRARY_PATH
14935 fi
14936 ;;
14937
14938uts4*)
14939 version_type=linux
14940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14941 soname_spec='${libname}${release}${shared_ext}$major'
14942 shlibpath_var=LD_LIBRARY_PATH
14943 ;;
14944
14945*)
14946 dynamic_linker=no
14947 ;;
14948esac
14949echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14950echo "${ECHO_T}$dynamic_linker" >&6
14951test "$dynamic_linker" = no && can_build_shared=no
14952
14953echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14954echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14955hardcode_action_F77=
14956if test -n "$hardcode_libdir_flag_spec_F77" || \
14957 test -n "$runpath_var F77" || \
14958 test "X$hardcode_automatic_F77"="Xyes" ; then
14959
14960 # We can hardcode non-existant directories.
14961 if test "$hardcode_direct_F77" != no &&
14962 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14963 # have to relink, otherwise we might link with an installed library
14964 # when we should be linking with a yet-to-be-installed one
14965 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14966 test "$hardcode_minus_L_F77" != no; then
14967 # Linking always hardcodes the temporary library directory.
14968 hardcode_action_F77=relink
14969 else
14970 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14971 hardcode_action_F77=immediate
14972 fi
14973else
14974 # We cannot hardcode anything, or else we can only hardcode existing
14975 # directories.
14976 hardcode_action_F77=unsupported
14977fi
14978echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14979echo "${ECHO_T}$hardcode_action_F77" >&6
14980
14981if test "$hardcode_action_F77" = relink; then
14982 # Fast installation is not supported
14983 enable_fast_install=no
14984elif test "$shlibpath_overrides_runpath" = yes ||
14985 test "$enable_shared" = no; then
14986 # Fast installation is not necessary
14987 enable_fast_install=needless
14988fi
14989
14990striplib=
14991old_striplib=
14992echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14993echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14994if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14995 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14996 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14997 echo "$as_me:$LINENO: result: yes" >&5
14998echo "${ECHO_T}yes" >&6
14999else
15000# FIXME - insert some real tests, host_os isn't really good enough
15001 case $host_os in
15002 darwin*)
15003 if test -n "$STRIP" ; then
15004 striplib="$STRIP -x"
15005 echo "$as_me:$LINENO: result: yes" >&5
15006echo "${ECHO_T}yes" >&6
15007 else
15008 echo "$as_me:$LINENO: result: no" >&5
15009echo "${ECHO_T}no" >&6
15010fi
15011 ;;
15012 *)
15013 echo "$as_me:$LINENO: result: no" >&5
15014echo "${ECHO_T}no" >&6
15015 ;;
15016 esac
15017fi
15018
15019
15020
15021# The else clause should only fire when bootstrapping the
15022# libtool distribution, otherwise you forgot to ship ltmain.sh
15023# with your package, and you will get complaints that there are
15024# no rules to generate ltmain.sh.
15025if test -f "$ltmain"; then
15026 # See if we are running on zsh, and set the options which allow our commands through
15027 # without removal of \ escapes.
15028 if test -n "${ZSH_VERSION+set}" ; then
15029 setopt NO_GLOB_SUBST
15030 fi
15031 # Now quote all the things that may contain metacharacters while being
15032 # careful not to overquote the AC_SUBSTed values. We take copies of the
15033 # variables and quote the copies for generation of the libtool script.
15034 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15035 SED SHELL STRIP \
15036 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15037 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15038 deplibs_check_method reload_flag reload_cmds need_locks \
15039 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15040 lt_cv_sys_global_symbol_to_c_name_address \
15041 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15042 old_postinstall_cmds old_postuninstall_cmds \
15043 compiler_F77 \
15044 CC_F77 \
15045 LD_F77 \
15046 lt_prog_compiler_wl_F77 \
15047 lt_prog_compiler_pic_F77 \
15048 lt_prog_compiler_static_F77 \
15049 lt_prog_compiler_no_builtin_flag_F77 \
15050 export_dynamic_flag_spec_F77 \
15051 thread_safe_flag_spec_F77 \
15052 whole_archive_flag_spec_F77 \
15053 enable_shared_with_static_runtimes_F77 \
15054 old_archive_cmds_F77 \
15055 old_archive_from_new_cmds_F77 \
15056 predep_objects_F77 \
15057 postdep_objects_F77 \
15058 predeps_F77 \
15059 postdeps_F77 \
15060 compiler_lib_search_path_F77 \
15061 archive_cmds_F77 \
15062 archive_expsym_cmds_F77 \
15063 postinstall_cmds_F77 \
15064 postuninstall_cmds_F77 \
15065 old_archive_from_expsyms_cmds_F77 \
15066 allow_undefined_flag_F77 \
15067 no_undefined_flag_F77 \
15068 export_symbols_cmds_F77 \
15069 hardcode_libdir_flag_spec_F77 \
15070 hardcode_libdir_flag_spec_ld_F77 \
15071 hardcode_libdir_separator_F77 \
15072 hardcode_automatic_F77 \
15073 module_cmds_F77 \
15074 module_expsym_cmds_F77 \
15075 lt_cv_prog_compiler_c_o_F77 \
15076 exclude_expsyms_F77 \
15077 include_expsyms_F77; do
15078
15079 case $var in
15080 old_archive_cmds_F77 | \
15081 old_archive_from_new_cmds_F77 | \
15082 archive_cmds_F77 | \
15083 archive_expsym_cmds_F77 | \
15084 module_cmds_F77 | \
15085 module_expsym_cmds_F77 | \
15086 old_archive_from_expsyms_cmds_F77 | \
15087 export_symbols_cmds_F77 | \
15088 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15089 postinstall_cmds | postuninstall_cmds | \
15090 old_postinstall_cmds | old_postuninstall_cmds | \
15091 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15092 # Double-quote double-evaled strings.
15093 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15094 ;;
15095 *)
15096 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15097 ;;
15098 esac
15099 done
15100
15101 case $lt_echo in
15102 *'\$0 --fallback-echo"')
15103 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15104 ;;
15105 esac
15106
15107cfgfile="$ofile"
15108
15109 cat <<__EOF__ >> "$cfgfile"
15110# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15111
15112# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15113
15114# Shell to use when invoking shell scripts.
15115SHELL=$lt_SHELL
15116
15117# Whether or not to build shared libraries.
15118build_libtool_libs=$enable_shared
15119
15120# Whether or not to build static libraries.
15121build_old_libs=$enable_static
15122
15123# Whether or not to add -lc for building shared libraries.
15124build_libtool_need_lc=$archive_cmds_need_lc_F77
15125
15126# Whether or not to disallow shared libs when runtime libs are static
15127allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15128
15129# Whether or not to optimize for fast installation.
15130fast_install=$enable_fast_install
15131
15132# The host system.
15133host_alias=$host_alias
15134host=$host
15135
15136# An echo program that does not interpret backslashes.
15137echo=$lt_echo
15138
15139# The archiver.
15140AR=$lt_AR
15141AR_FLAGS=$lt_AR_FLAGS
15142
15143# A C compiler.
15144LTCC=$lt_LTCC
15145
15146# A language-specific compiler.
15147CC=$lt_compiler_F77
15148
15149# Is the compiler the GNU C compiler?
15150with_gcc=$GCC_F77
15151
15152# An ERE matcher.
15153EGREP=$lt_EGREP
15154
15155# The linker used to build libraries.
15156LD=$lt_LD_F77
15157
15158# Whether we need hard or soft links.
15159LN_S=$lt_LN_S
15160
15161# A BSD-compatible nm program.
15162NM=$lt_NM
15163
15164# A symbol stripping program
15165STRIP=$lt_STRIP
15166
15167# Used to examine libraries when file_magic_cmd begins "file"
15168MAGIC_CMD=$MAGIC_CMD
15169
15170# Used on cygwin: DLL creation program.
15171DLLTOOL="$DLLTOOL"
15172
15173# Used on cygwin: object dumper.
15174OBJDUMP="$OBJDUMP"
15175
15176# Used on cygwin: assembler.
15177AS="$AS"
15178
15179# The name of the directory that contains temporary libtool files.
15180objdir=$objdir
15181
15182# How to create reloadable object files.
15183reload_flag=$lt_reload_flag
15184reload_cmds=$lt_reload_cmds
15185
15186# How to pass a linker flag through the compiler.
15187wl=$lt_lt_prog_compiler_wl_F77
15188
15189# Object file suffix (normally "o").
15190objext="$ac_objext"
15191
15192# Old archive suffix (normally "a").
15193libext="$libext"
15194
15195# Shared library suffix (normally ".so").
15196shrext_cmds='$shrext_cmds'
15197
15198# Executable file suffix (normally "").
15199exeext="$exeext"
15200
15201# Additional compiler flags for building library objects.
15202pic_flag=$lt_lt_prog_compiler_pic_F77
15203pic_mode=$pic_mode
15204
15205# What is the maximum length of a command?
15206max_cmd_len=$lt_cv_sys_max_cmd_len
15207
15208# Does compiler simultaneously support -c and -o options?
15209compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15210
15211# Must we lock files when doing compilation ?
15212need_locks=$lt_need_locks
15213
15214# Do we need the lib prefix for modules?
15215need_lib_prefix=$need_lib_prefix
15216
15217# Do we need a version for libraries?
15218need_version=$need_version
15219
15220# Whether dlopen is supported.
15221dlopen_support=$enable_dlopen
15222
15223# Whether dlopen of programs is supported.
15224dlopen_self=$enable_dlopen_self
15225
15226# Whether dlopen of statically linked programs is supported.
15227dlopen_self_static=$enable_dlopen_self_static
15228
15229# Compiler flag to prevent dynamic linking.
15230link_static_flag=$lt_lt_prog_compiler_static_F77
15231
15232# Compiler flag to turn off builtin functions.
15233no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15234
15235# Compiler flag to allow reflexive dlopens.
15236export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15237
15238# Compiler flag to generate shared objects directly from archives.
15239whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15240
15241# Compiler flag to generate thread-safe objects.
15242thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15243
15244# Library versioning type.
15245version_type=$version_type
15246
15247# Format of library name prefix.
15248libname_spec=$lt_libname_spec
15249
15250# List of archive names. First name is the real one, the rest are links.
15251# The last name is the one that the linker finds with -lNAME.
15252library_names_spec=$lt_library_names_spec
15253
15254# The coded name of the library, if different from the real name.
15255soname_spec=$lt_soname_spec
15256
15257# Commands used to build and install an old-style archive.
15258RANLIB=$lt_RANLIB
15259old_archive_cmds=$lt_old_archive_cmds_F77
15260old_postinstall_cmds=$lt_old_postinstall_cmds
15261old_postuninstall_cmds=$lt_old_postuninstall_cmds
15262
15263# Create an old-style archive from a shared archive.
15264old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15265
15266# Create a temporary old-style archive to link instead of a shared archive.
15267old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15268
15269# Commands used to build and install a shared archive.
15270archive_cmds=$lt_archive_cmds_F77
15271archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15272postinstall_cmds=$lt_postinstall_cmds
15273postuninstall_cmds=$lt_postuninstall_cmds
15274
15275# Commands used to build a loadable module (assumed same as above if empty)
15276module_cmds=$lt_module_cmds_F77
15277module_expsym_cmds=$lt_module_expsym_cmds_F77
15278
15279# Commands to strip libraries.
15280old_striplib=$lt_old_striplib
15281striplib=$lt_striplib
15282
15283# Dependencies to place before the objects being linked to create a
15284# shared library.
15285predep_objects=$lt_predep_objects_F77
15286
15287# Dependencies to place after the objects being linked to create a
15288# shared library.
15289postdep_objects=$lt_postdep_objects_F77
15290
15291# Dependencies to place before the objects being linked to create a
15292# shared library.
15293predeps=$lt_predeps_F77
15294
15295# Dependencies to place after the objects being linked to create a
15296# shared library.
15297postdeps=$lt_postdeps_F77
15298
15299# The library search path used internally by the compiler when linking
15300# a shared library.
15301compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15302
15303# Method to check whether dependent libraries are shared objects.
15304deplibs_check_method=$lt_deplibs_check_method
15305
15306# Command to use when deplibs_check_method == file_magic.
15307file_magic_cmd=$lt_file_magic_cmd
15308
15309# Flag that allows shared libraries with undefined symbols to be built.
15310allow_undefined_flag=$lt_allow_undefined_flag_F77
15311
15312# Flag that forces no undefined symbols.
15313no_undefined_flag=$lt_no_undefined_flag_F77
15314
15315# Commands used to finish a libtool library installation in a directory.
15316finish_cmds=$lt_finish_cmds
15317
15318# Same as above, but a single script fragment to be evaled but not shown.
15319finish_eval=$lt_finish_eval
15320
15321# Take the output of nm and produce a listing of raw symbols and C names.
15322global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15323
15324# Transform the output of nm in a proper C declaration
15325global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15326
15327# Transform the output of nm in a C name address pair
15328global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15329
15330# This is the shared library runtime path variable.
15331runpath_var=$runpath_var
15332
15333# This is the shared library path variable.
15334shlibpath_var=$shlibpath_var
15335
15336# Is shlibpath searched before the hard-coded library search path?
15337shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15338
15339# How to hardcode a shared library path into an executable.
15340hardcode_action=$hardcode_action_F77
15341
15342# Whether we should hardcode library paths into libraries.
15343hardcode_into_libs=$hardcode_into_libs
15344
15345# Flag to hardcode \$libdir into a binary during linking.
15346# This must work even if \$libdir does not exist.
15347hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15348
15349# If ld is used when linking, flag to hardcode \$libdir into
15350# a binary during linking. This must work even if \$libdir does
15351# not exist.
15352hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15353
15354# Whether we need a single -rpath flag with a separated argument.
15355hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15356
15357# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15358# resulting binary.
15359hardcode_direct=$hardcode_direct_F77
15360
15361# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15362# resulting binary.
15363hardcode_minus_L=$hardcode_minus_L_F77
15364
15365# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15366# the resulting binary.
15367hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15368
15369# Set to yes if building a shared library automatically hardcodes DIR into the library
15370# and all subsequent libraries and executables linked against it.
15371hardcode_automatic=$hardcode_automatic_F77
15372
15373# Variables whose values should be saved in libtool wrapper scripts and
15374# restored at relink time.
15375variables_saved_for_relink="$variables_saved_for_relink"
15376
15377# Whether libtool must link a program against all its dependency libraries.
15378link_all_deplibs=$link_all_deplibs_F77
15379
15380# Compile-time system search path for libraries
15381sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15382
15383# Run-time system search path for libraries
15384sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15385
15386# Fix the shell variable \$srcfile for the compiler.
15387fix_srcfile_path="$fix_srcfile_path_F77"
15388
15389# Set to yes if exported symbols are required.
15390always_export_symbols=$always_export_symbols_F77
15391
15392# The commands to list exported symbols.
15393export_symbols_cmds=$lt_export_symbols_cmds_F77
15394
15395# The commands to extract the exported symbol list from a shared archive.
15396extract_expsyms_cmds=$lt_extract_expsyms_cmds
15397
15398# Symbols that should not be listed in the preloaded symbols.
15399exclude_expsyms=$lt_exclude_expsyms_F77
15400
15401# Symbols that must always be exported.
15402include_expsyms=$lt_include_expsyms_F77
15403
15404# ### END LIBTOOL TAG CONFIG: $tagname
15405
15406__EOF__
15407
15408
15409else
15410 # If there is no Makefile yet, we rely on a make rule to execute
15411 # `config.status --recheck' to rerun these tests and create the
15412 # libtool script then.
15413 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15414 if test -f "$ltmain_in"; then
15415 test -f Makefile && make "$ltmain"
15416 fi
15417fi
15418
15419
15420ac_ext=c
15421ac_cpp='$CPP $CPPFLAGS'
15422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15424ac_compiler_gnu=$ac_cv_c_compiler_gnu
15425
15426CC="$lt_save_CC"
15427
15428 else
15429 tagname=""
15430 fi
15431 ;;
15432
15433 GCJ)
15434 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15435
15436
15437
15438# Source file extension for Java test sources.
15439ac_ext=java
15440
15441# Object file extension for compiled Java test sources.
15442objext=o
15443objext_GCJ=$objext
15444
15445# Code to be used in simple compile tests
15446lt_simple_compile_test_code="class foo {}\n"
15447
15448# Code to be used in simple link tests
15449lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15450
15451# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15452
15453# If no C compiler was specified, use CC.
15454LTCC=${LTCC-"$CC"}
15455
15456# Allow CC to be a program name with arguments.
15457compiler=$CC
15458
15459
15460# Allow CC to be a program name with arguments.
15461lt_save_CC="$CC"
15462CC=${GCJ-"gcj"}
15463compiler=$CC
15464compiler_GCJ=$CC
15465
15466# GCJ did not exist at the time GCC didn't implicitly link libc in.
15467archive_cmds_need_lc_GCJ=no
15468
15469
15470lt_prog_compiler_no_builtin_flag_GCJ=
15471
15472if test "$GCC" = yes; then
15473 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15474
15475
15476echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15477echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15478if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15479 echo $ECHO_N "(cached) $ECHO_C" >&6
15480else
15481 lt_cv_prog_compiler_rtti_exceptions=no
15482 ac_outfile=conftest.$ac_objext
15483 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15484 lt_compiler_flag="-fno-rtti -fno-exceptions"
15485 # Insert the option either (1) after the last *FLAGS variable, or
15486 # (2) before a word containing "conftest.", or (3) at the end.
15487 # Note that $ac_compile itself does not contain backslashes and begins
15488 # with a dollar sign (not a hyphen), so the echo should work correctly.
15489 # The option is referenced via a variable to avoid confusing sed.
15490 lt_compile=`echo "$ac_compile" | $SED \
15491 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15493 -e 's:$: $lt_compiler_flag:'`
Lev Walkin33cded12004-09-19 19:40:52 +000015494 (eval echo "\"\$as_me:15494: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +000015495 (eval "$lt_compile" 2>conftest.err)
15496 ac_status=$?
15497 cat conftest.err >&5
Lev Walkin33cded12004-09-19 19:40:52 +000015498 echo "$as_me:15498: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000015499 if (exit $ac_status) && test -s "$ac_outfile"; then
15500 # The compiler can only warn and ignore the option if not recognized
15501 # So say no if there are warnings
15502 if test ! -s conftest.err; then
15503 lt_cv_prog_compiler_rtti_exceptions=yes
15504 fi
15505 fi
15506 $rm conftest*
15507
15508fi
15509echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15510echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15511
15512if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15513 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15514else
15515 :
15516fi
15517
15518fi
15519
15520lt_prog_compiler_wl_GCJ=
15521lt_prog_compiler_pic_GCJ=
15522lt_prog_compiler_static_GCJ=
15523
15524echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15525echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15526
15527 if test "$GCC" = yes; then
15528 lt_prog_compiler_wl_GCJ='-Wl,'
15529 lt_prog_compiler_static_GCJ='-static'
15530
15531 case $host_os in
15532 aix*)
15533 # All AIX code is PIC.
15534 if test "$host_cpu" = ia64; then
15535 # AIX 5 now supports IA64 processor
15536 lt_prog_compiler_static_GCJ='-Bstatic'
15537 fi
15538 ;;
15539
15540 amigaos*)
15541 # FIXME: we need at least 68020 code to build shared libraries, but
15542 # adding the `-m68020' flag to GCC prevents building anything better,
15543 # like `-m68040'.
15544 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15545 ;;
15546
15547 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15548 # PIC is the default for these OSes.
15549 ;;
15550
15551 mingw* | pw32* | os2*)
15552 # This hack is so that the source file can tell whether it is being
15553 # built for inclusion in a dll (and should export symbols for example).
15554 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15555 ;;
15556
15557 darwin* | rhapsody*)
15558 # PIC is the default on this platform
15559 # Common symbols not allowed in MH_DYLIB files
15560 lt_prog_compiler_pic_GCJ='-fno-common'
15561 ;;
15562
15563 msdosdjgpp*)
15564 # Just because we use GCC doesn't mean we suddenly get shared libraries
15565 # on systems that don't support them.
15566 lt_prog_compiler_can_build_shared_GCJ=no
15567 enable_shared=no
15568 ;;
15569
15570 sysv4*MP*)
15571 if test -d /usr/nec; then
15572 lt_prog_compiler_pic_GCJ=-Kconform_pic
15573 fi
15574 ;;
15575
15576 hpux*)
15577 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15578 # not for PA HP-UX.
15579 case "$host_cpu" in
15580 hppa*64*|ia64*)
15581 # +Z the default
15582 ;;
15583 *)
15584 lt_prog_compiler_pic_GCJ='-fPIC'
15585 ;;
15586 esac
15587 ;;
15588
15589 *)
15590 lt_prog_compiler_pic_GCJ='-fPIC'
15591 ;;
15592 esac
15593 else
15594 # PORTME Check for flag to pass linker flags through the system compiler.
15595 case $host_os in
15596 aix*)
15597 lt_prog_compiler_wl_GCJ='-Wl,'
15598 if test "$host_cpu" = ia64; then
15599 # AIX 5 now supports IA64 processor
15600 lt_prog_compiler_static_GCJ='-Bstatic'
15601 else
15602 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15603 fi
15604 ;;
15605
15606 mingw* | pw32* | os2*)
15607 # This hack is so that the source file can tell whether it is being
15608 # built for inclusion in a dll (and should export symbols for example).
15609 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15610 ;;
15611
15612 hpux9* | hpux10* | hpux11*)
15613 lt_prog_compiler_wl_GCJ='-Wl,'
15614 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15615 # not for PA HP-UX.
15616 case "$host_cpu" in
15617 hppa*64*|ia64*)
15618 # +Z the default
15619 ;;
15620 *)
15621 lt_prog_compiler_pic_GCJ='+Z'
15622 ;;
15623 esac
15624 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15625 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15626 ;;
15627
15628 irix5* | irix6* | nonstopux*)
15629 lt_prog_compiler_wl_GCJ='-Wl,'
15630 # PIC (with -KPIC) is the default.
15631 lt_prog_compiler_static_GCJ='-non_shared'
15632 ;;
15633
15634 newsos6)
15635 lt_prog_compiler_pic_GCJ='-KPIC'
15636 lt_prog_compiler_static_GCJ='-Bstatic'
15637 ;;
15638
15639 linux*)
15640 case $CC in
15641 icc* | ecc*)
15642 lt_prog_compiler_wl_GCJ='-Wl,'
15643 lt_prog_compiler_pic_GCJ='-KPIC'
15644 lt_prog_compiler_static_GCJ='-static'
15645 ;;
15646 ccc*)
15647 lt_prog_compiler_wl_GCJ='-Wl,'
15648 # All Alpha code is PIC.
15649 lt_prog_compiler_static_GCJ='-non_shared'
15650 ;;
15651 esac
15652 ;;
15653
15654 osf3* | osf4* | osf5*)
15655 lt_prog_compiler_wl_GCJ='-Wl,'
15656 # All OSF/1 code is PIC.
15657 lt_prog_compiler_static_GCJ='-non_shared'
15658 ;;
15659
15660 sco3.2v5*)
15661 lt_prog_compiler_pic_GCJ='-Kpic'
15662 lt_prog_compiler_static_GCJ='-dn'
15663 ;;
15664
15665 solaris*)
15666 lt_prog_compiler_wl_GCJ='-Wl,'
15667 lt_prog_compiler_pic_GCJ='-KPIC'
15668 lt_prog_compiler_static_GCJ='-Bstatic'
15669 ;;
15670
15671 sunos4*)
15672 lt_prog_compiler_wl_GCJ='-Qoption ld '
15673 lt_prog_compiler_pic_GCJ='-PIC'
15674 lt_prog_compiler_static_GCJ='-Bstatic'
15675 ;;
15676
15677 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15678 lt_prog_compiler_wl_GCJ='-Wl,'
15679 lt_prog_compiler_pic_GCJ='-KPIC'
15680 lt_prog_compiler_static_GCJ='-Bstatic'
15681 ;;
15682
15683 sysv4*MP*)
15684 if test -d /usr/nec ;then
15685 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15686 lt_prog_compiler_static_GCJ='-Bstatic'
15687 fi
15688 ;;
15689
15690 uts4*)
15691 lt_prog_compiler_pic_GCJ='-pic'
15692 lt_prog_compiler_static_GCJ='-Bstatic'
15693 ;;
15694
15695 *)
15696 lt_prog_compiler_can_build_shared_GCJ=no
15697 ;;
15698 esac
15699 fi
15700
15701echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15702echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15703
15704#
15705# Check to make sure the PIC flag actually works.
15706#
15707if test -n "$lt_prog_compiler_pic_GCJ"; then
15708
15709echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15710echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15711if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15712 echo $ECHO_N "(cached) $ECHO_C" >&6
15713else
15714 lt_prog_compiler_pic_works_GCJ=no
15715 ac_outfile=conftest.$ac_objext
15716 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15717 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15718 # Insert the option either (1) after the last *FLAGS variable, or
15719 # (2) before a word containing "conftest.", or (3) at the end.
15720 # Note that $ac_compile itself does not contain backslashes and begins
15721 # with a dollar sign (not a hyphen), so the echo should work correctly.
15722 # The option is referenced via a variable to avoid confusing sed.
15723 lt_compile=`echo "$ac_compile" | $SED \
15724 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15726 -e 's:$: $lt_compiler_flag:'`
Lev Walkin33cded12004-09-19 19:40:52 +000015727 (eval echo "\"\$as_me:15727: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +000015728 (eval "$lt_compile" 2>conftest.err)
15729 ac_status=$?
15730 cat conftest.err >&5
Lev Walkin33cded12004-09-19 19:40:52 +000015731 echo "$as_me:15731: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000015732 if (exit $ac_status) && test -s "$ac_outfile"; then
15733 # The compiler can only warn and ignore the option if not recognized
15734 # So say no if there are warnings
15735 if test ! -s conftest.err; then
15736 lt_prog_compiler_pic_works_GCJ=yes
15737 fi
15738 fi
15739 $rm conftest*
15740
15741fi
15742echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15743echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15744
15745if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15746 case $lt_prog_compiler_pic_GCJ in
15747 "" | " "*) ;;
15748 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15749 esac
15750else
15751 lt_prog_compiler_pic_GCJ=
15752 lt_prog_compiler_can_build_shared_GCJ=no
15753fi
15754
15755fi
15756case "$host_os" in
15757 # For platforms which do not support PIC, -DPIC is meaningless:
15758 *djgpp*)
15759 lt_prog_compiler_pic_GCJ=
15760 ;;
15761 *)
15762 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15763 ;;
15764esac
15765
15766echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15767echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15768if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15769 echo $ECHO_N "(cached) $ECHO_C" >&6
15770else
15771 lt_cv_prog_compiler_c_o_GCJ=no
15772 $rm -r conftest 2>/dev/null
15773 mkdir conftest
15774 cd conftest
15775 mkdir out
15776 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15777
15778 lt_compiler_flag="-o out/conftest2.$ac_objext"
15779 # Insert the option either (1) after the last *FLAGS variable, or
15780 # (2) before a word containing "conftest.", or (3) at the end.
15781 # Note that $ac_compile itself does not contain backslashes and begins
15782 # with a dollar sign (not a hyphen), so the echo should work correctly.
15783 lt_compile=`echo "$ac_compile" | $SED \
15784 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15786 -e 's:$: $lt_compiler_flag:'`
Lev Walkin33cded12004-09-19 19:40:52 +000015787 (eval echo "\"\$as_me:15787: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +000015788 (eval "$lt_compile" 2>out/conftest.err)
15789 ac_status=$?
15790 cat out/conftest.err >&5
Lev Walkin33cded12004-09-19 19:40:52 +000015791 echo "$as_me:15791: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000015792 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15793 then
15794 # The compiler can only warn and ignore the option if not recognized
15795 # So say no if there are warnings
15796 if test ! -s out/conftest.err; then
15797 lt_cv_prog_compiler_c_o_GCJ=yes
15798 fi
15799 fi
15800 chmod u+w .
15801 $rm conftest*
15802 # SGI C++ compiler will create directory out/ii_files/ for
15803 # template instantiation
15804 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15805 $rm out/* && rmdir out
15806 cd ..
15807 rmdir conftest
15808 $rm conftest*
15809
15810fi
15811echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15812echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15813
15814
15815hard_links="nottested"
15816if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15817 # do not overwrite the value of need_locks provided by the user
15818 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15819echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15820 hard_links=yes
15821 $rm conftest*
15822 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15823 touch conftest.a
15824 ln conftest.a conftest.b 2>&5 || hard_links=no
15825 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15826 echo "$as_me:$LINENO: result: $hard_links" >&5
15827echo "${ECHO_T}$hard_links" >&6
15828 if test "$hard_links" = no; then
15829 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15830echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15831 need_locks=warn
15832 fi
15833else
15834 need_locks=no
15835fi
15836
15837echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15838echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15839
15840 runpath_var=
15841 allow_undefined_flag_GCJ=
15842 enable_shared_with_static_runtimes_GCJ=no
15843 archive_cmds_GCJ=
15844 archive_expsym_cmds_GCJ=
15845 old_archive_From_new_cmds_GCJ=
15846 old_archive_from_expsyms_cmds_GCJ=
15847 export_dynamic_flag_spec_GCJ=
15848 whole_archive_flag_spec_GCJ=
15849 thread_safe_flag_spec_GCJ=
15850 hardcode_libdir_flag_spec_GCJ=
15851 hardcode_libdir_flag_spec_ld_GCJ=
15852 hardcode_libdir_separator_GCJ=
15853 hardcode_direct_GCJ=no
15854 hardcode_minus_L_GCJ=no
15855 hardcode_shlibpath_var_GCJ=unsupported
15856 link_all_deplibs_GCJ=unknown
15857 hardcode_automatic_GCJ=no
15858 module_cmds_GCJ=
15859 module_expsym_cmds_GCJ=
15860 always_export_symbols_GCJ=no
15861 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15862 # include_expsyms should be a list of space-separated symbols to be *always*
15863 # included in the symbol list
15864 include_expsyms_GCJ=
15865 # exclude_expsyms can be an extended regexp of symbols to exclude
15866 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15867 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15868 # as well as any symbol that contains `d'.
15869 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15870 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15871 # platforms (ab)use it in PIC code, but their linkers get confused if
15872 # the symbol is explicitly referenced. Since portable code cannot
15873 # rely on this symbol name, it's probably fine to never include it in
15874 # preloaded symbol tables.
15875 extract_expsyms_cmds=
15876
15877 case $host_os in
15878 cygwin* | mingw* | pw32*)
15879 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15880 # When not using gcc, we currently assume that we are using
15881 # Microsoft Visual C++.
15882 if test "$GCC" != yes; then
15883 with_gnu_ld=no
15884 fi
15885 ;;
15886 openbsd*)
15887 with_gnu_ld=no
15888 ;;
15889 esac
15890
15891 ld_shlibs_GCJ=yes
15892 if test "$with_gnu_ld" = yes; then
15893 # If archive_cmds runs LD, not CC, wlarc should be empty
15894 wlarc='${wl}'
15895
15896 # See if GNU ld supports shared libraries.
15897 case $host_os in
15898 aix3* | aix4* | aix5*)
15899 # On AIX/PPC, the GNU linker is very broken
15900 if test "$host_cpu" != ia64; then
15901 ld_shlibs_GCJ=no
15902 cat <<EOF 1>&2
15903
15904*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15905*** to be unable to reliably create shared libraries on AIX.
15906*** Therefore, libtool is disabling shared libraries support. If you
15907*** really care for shared libraries, you may want to modify your PATH
15908*** so that a non-GNU linker is found, and then restart.
15909
15910EOF
15911 fi
15912 ;;
15913
15914 amigaos*)
15915 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15916 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15917 hardcode_minus_L_GCJ=yes
15918
15919 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15920 # that the semantics of dynamic libraries on AmigaOS, at least up
15921 # to version 4, is to share data among multiple programs linked
15922 # with the same dynamic library. Since this doesn't match the
15923 # behavior of shared libraries on other platforms, we can't use
15924 # them.
15925 ld_shlibs_GCJ=no
15926 ;;
15927
15928 beos*)
15929 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15930 allow_undefined_flag_GCJ=unsupported
15931 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15932 # support --undefined. This deserves some investigation. FIXME
15933 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15934 else
15935 ld_shlibs_GCJ=no
15936 fi
15937 ;;
15938
15939 cygwin* | mingw* | pw32*)
15940 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15941 # as there is no search path for DLLs.
15942 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15943 allow_undefined_flag_GCJ=unsupported
15944 always_export_symbols_GCJ=no
15945 enable_shared_with_static_runtimes_GCJ=yes
15946 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15947
15948 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15949 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15950 # If the export-symbols file already is a .def file (1st line
15951 # is EXPORTS), use it as is; otherwise, prepend...
15952 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15953 cp $export_symbols $output_objdir/$soname.def;
15954 else
15955 echo EXPORTS > $output_objdir/$soname.def;
15956 cat $export_symbols >> $output_objdir/$soname.def;
15957 fi~
15958 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15959 else
15960 ld_shlibs=no
15961 fi
15962 ;;
15963
15964 netbsd*)
15965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15966 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15967 wlarc=
15968 else
15969 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15970 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15971 fi
15972 ;;
15973
15974 solaris* | sysv5*)
15975 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15976 ld_shlibs_GCJ=no
15977 cat <<EOF 1>&2
15978
15979*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15980*** create shared libraries on Solaris systems. Therefore, libtool
15981*** is disabling shared libraries support. We urge you to upgrade GNU
15982*** binutils to release 2.9.1 or newer. Another option is to modify
15983*** your PATH or compiler configuration so that the native linker is
15984*** used, and then restart.
15985
15986EOF
15987 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15988 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15989 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15990 else
15991 ld_shlibs_GCJ=no
15992 fi
15993 ;;
15994
15995 sunos4*)
15996 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15997 wlarc=
15998 hardcode_direct_GCJ=yes
15999 hardcode_shlibpath_var_GCJ=no
16000 ;;
16001
16002 linux*)
16003 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16004 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16005 archive_cmds_GCJ="$tmp_archive_cmds"
16006 supports_anon_versioning=no
16007 case `$LD -v 2>/dev/null` in
16008 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16009 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16010 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16011 *\ 2.11.*) ;; # other 2.11 versions
16012 *) supports_anon_versioning=yes ;;
16013 esac
16014 if test $supports_anon_versioning = yes; then
16015 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16016cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16017$echo "local: *; };" >> $output_objdir/$libname.ver~
16018 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16019 else
16020 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16021 fi
16022 else
16023 ld_shlibs_GCJ=no
16024 fi
16025 ;;
16026
16027 *)
16028 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16029 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16030 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16031 else
16032 ld_shlibs_GCJ=no
16033 fi
16034 ;;
16035 esac
16036
16037 if test "$ld_shlibs_GCJ" = yes; then
16038 runpath_var=LD_RUN_PATH
16039 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16040 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16041 # ancient GNU ld didn't support --whole-archive et. al.
16042 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16043 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16044 else
16045 whole_archive_flag_spec_GCJ=
16046 fi
16047 fi
16048 else
16049 # PORTME fill in a description of your system's linker (not GNU ld)
16050 case $host_os in
16051 aix3*)
16052 allow_undefined_flag_GCJ=unsupported
16053 always_export_symbols_GCJ=yes
16054 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'
16055 # Note: this linker hardcodes the directories in LIBPATH if there
16056 # are no directories specified by -L.
16057 hardcode_minus_L_GCJ=yes
16058 if test "$GCC" = yes && test -z "$link_static_flag"; then
16059 # Neither direct hardcoding nor static linking is supported with a
16060 # broken collect2.
16061 hardcode_direct_GCJ=unsupported
16062 fi
16063 ;;
16064
16065 aix4* | aix5*)
16066 if test "$host_cpu" = ia64; then
16067 # On IA64, the linker does run time linking by default, so we don't
16068 # have to do anything special.
16069 aix_use_runtimelinking=no
16070 exp_sym_flag='-Bexport'
16071 no_entry_flag=""
16072 else
16073 # If we're using GNU nm, then we don't want the "-C" option.
16074 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16075 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16076 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'
16077 else
16078 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'
16079 fi
16080 aix_use_runtimelinking=no
16081
16082 # Test if we are trying to use run time linking or normal
16083 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16084 # need to do runtime linking.
16085 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16086 for ld_flag in $LDFLAGS; do
16087 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16088 aix_use_runtimelinking=yes
16089 break
16090 fi
16091 done
16092 esac
16093
16094 exp_sym_flag='-bexport'
16095 no_entry_flag='-bnoentry'
16096 fi
16097
16098 # When large executables or shared objects are built, AIX ld can
16099 # have problems creating the table of contents. If linking a library
16100 # or program results in "error TOC overflow" add -mminimal-toc to
16101 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16102 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16103
16104 archive_cmds_GCJ=''
16105 hardcode_direct_GCJ=yes
16106 hardcode_libdir_separator_GCJ=':'
16107 link_all_deplibs_GCJ=yes
16108
16109 if test "$GCC" = yes; then
16110 case $host_os in aix4.012|aix4.012.*)
16111 # We only want to do this on AIX 4.2 and lower, the check
16112 # below for broken collect2 doesn't work under 4.3+
16113 collect2name=`${CC} -print-prog-name=collect2`
16114 if test -f "$collect2name" && \
16115 strings "$collect2name" | grep resolve_lib_name >/dev/null
16116 then
16117 # We have reworked collect2
16118 hardcode_direct_GCJ=yes
16119 else
16120 # We have old collect2
16121 hardcode_direct_GCJ=unsupported
16122 # It fails to find uninstalled libraries when the uninstalled
16123 # path is not listed in the libpath. Setting hardcode_minus_L
16124 # to unsupported forces relinking
16125 hardcode_minus_L_GCJ=yes
16126 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16127 hardcode_libdir_separator_GCJ=
16128 fi
16129 esac
16130 shared_flag='-shared'
16131 else
16132 # not using gcc
16133 if test "$host_cpu" = ia64; then
16134 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16135 # chokes on -Wl,-G. The following line is correct:
16136 shared_flag='-G'
16137 else
16138 if test "$aix_use_runtimelinking" = yes; then
16139 shared_flag='${wl}-G'
16140 else
16141 shared_flag='${wl}-bM:SRE'
16142 fi
16143 fi
16144 fi
16145
16146 # It seems that -bexpall does not export symbols beginning with
16147 # underscore (_), so it is better to generate a list of symbols to export.
16148 always_export_symbols_GCJ=yes
16149 if test "$aix_use_runtimelinking" = yes; then
16150 # Warning - without using the other runtime loading flags (-brtl),
16151 # -berok will link without error, but may produce a broken library.
16152 allow_undefined_flag_GCJ='-berok'
16153 # Determine the default libpath from the value encoded in an empty executable.
16154 cat >conftest.$ac_ext <<_ACEOF
16155/* confdefs.h. */
16156_ACEOF
16157cat confdefs.h >>conftest.$ac_ext
16158cat >>conftest.$ac_ext <<_ACEOF
16159/* end confdefs.h. */
16160
16161int
16162main ()
16163{
16164
16165 ;
16166 return 0;
16167}
16168_ACEOF
16169rm -f conftest.$ac_objext conftest$ac_exeext
16170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16171 (eval $ac_link) 2>conftest.er1
16172 ac_status=$?
16173 grep -v '^ *+' conftest.er1 >conftest.err
16174 rm -f conftest.er1
16175 cat conftest.err >&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); } &&
16178 { ac_try='test -z "$ac_c_werror_flag"
16179 || test ! -s conftest.err'
16180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16181 (eval $ac_try) 2>&5
16182 ac_status=$?
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; } &&
16185 { ac_try='test -s conftest$ac_exeext'
16186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16187 (eval $ac_try) 2>&5
16188 ac_status=$?
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; }; then
16191
16192aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16193}'`
16194# Check for a 64-bit object if we didn't find anything.
16195if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16196}'`; fi
16197else
16198 echo "$as_me: failed program was:" >&5
16199sed 's/^/| /' conftest.$ac_ext >&5
16200
16201fi
16202rm -f conftest.err conftest.$ac_objext \
16203 conftest$ac_exeext conftest.$ac_ext
16204if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16205
16206 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16207 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16208 else
16209 if test "$host_cpu" = ia64; then
16210 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16211 allow_undefined_flag_GCJ="-z nodefs"
16212 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16213 else
16214 # Determine the default libpath from the value encoded in an empty executable.
16215 cat >conftest.$ac_ext <<_ACEOF
16216/* confdefs.h. */
16217_ACEOF
16218cat confdefs.h >>conftest.$ac_ext
16219cat >>conftest.$ac_ext <<_ACEOF
16220/* end confdefs.h. */
16221
16222int
16223main ()
16224{
16225
16226 ;
16227 return 0;
16228}
16229_ACEOF
16230rm -f conftest.$ac_objext conftest$ac_exeext
16231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16232 (eval $ac_link) 2>conftest.er1
16233 ac_status=$?
16234 grep -v '^ *+' conftest.er1 >conftest.err
16235 rm -f conftest.er1
16236 cat conftest.err >&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); } &&
16239 { ac_try='test -z "$ac_c_werror_flag"
16240 || test ! -s conftest.err'
16241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16242 (eval $ac_try) 2>&5
16243 ac_status=$?
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); }; } &&
16246 { ac_try='test -s conftest$ac_exeext'
16247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16248 (eval $ac_try) 2>&5
16249 ac_status=$?
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); }; }; then
16252
16253aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16254}'`
16255# Check for a 64-bit object if we didn't find anything.
16256if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16257}'`; fi
16258else
16259 echo "$as_me: failed program was:" >&5
16260sed 's/^/| /' conftest.$ac_ext >&5
16261
16262fi
16263rm -f conftest.err conftest.$ac_objext \
16264 conftest$ac_exeext conftest.$ac_ext
16265if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16266
16267 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16268 # Warning - without using the other run time loading flags,
16269 # -berok will link without error, but may produce a broken library.
16270 no_undefined_flag_GCJ=' ${wl}-bernotok'
16271 allow_undefined_flag_GCJ=' ${wl}-berok'
16272 # -bexpall does not export symbols beginning with underscore (_)
16273 always_export_symbols_GCJ=yes
16274 # Exported symbols can be pulled into shared objects from archives
16275 whole_archive_flag_spec_GCJ=' '
16276 archive_cmds_need_lc_GCJ=yes
16277 # This is similar to how AIX traditionally builds it's shared libraries.
16278 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16279 fi
16280 fi
16281 ;;
16282
16283 amigaos*)
16284 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)'
16285 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16286 hardcode_minus_L_GCJ=yes
16287 # see comment about different semantics on the GNU ld section
16288 ld_shlibs_GCJ=no
16289 ;;
16290
16291 bsdi4*)
16292 export_dynamic_flag_spec_GCJ=-rdynamic
16293 ;;
16294
16295 cygwin* | mingw* | pw32*)
16296 # When not using gcc, we currently assume that we are using
16297 # Microsoft Visual C++.
16298 # hardcode_libdir_flag_spec is actually meaningless, as there is
16299 # no search path for DLLs.
16300 hardcode_libdir_flag_spec_GCJ=' '
16301 allow_undefined_flag_GCJ=unsupported
16302 # Tell ltmain to make .lib files, not .a files.
16303 libext=lib
16304 # Tell ltmain to make .dll files, not .so files.
16305 shrext_cmds=".dll"
16306 # FIXME: Setting linknames here is a bad hack.
16307 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16308 # The linker will automatically build a .lib file if we build a DLL.
16309 old_archive_From_new_cmds_GCJ='true'
16310 # FIXME: Should let the user specify the lib program.
16311 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16312 fix_srcfile_path='`cygpath -w "$srcfile"`'
16313 enable_shared_with_static_runtimes_GCJ=yes
16314 ;;
16315
16316 darwin* | rhapsody*)
16317 if test "$GXX" = yes ; then
16318 archive_cmds_need_lc_GCJ=no
16319 case "$host_os" in
16320 rhapsody* | darwin1.[012])
16321 allow_undefined_flag_GCJ='-undefined suppress'
16322 ;;
16323 *) # Darwin 1.3 on
16324 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16325 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16326 else
16327 case ${MACOSX_DEPLOYMENT_TARGET} in
16328 10.[012])
16329 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16330 ;;
16331 10.*)
16332 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16333 ;;
16334 esac
16335 fi
16336 ;;
16337 esac
16338 lt_int_apple_cc_single_mod=no
16339 output_verbose_link_cmd='echo'
16340 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16341 lt_int_apple_cc_single_mod=yes
16342 fi
16343 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16344 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16345 else
16346 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16347 fi
16348 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16349 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16350 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16351 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16352 else
16353 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16354 fi
16355 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}'
16356 hardcode_direct_GCJ=no
16357 hardcode_automatic_GCJ=yes
16358 hardcode_shlibpath_var_GCJ=unsupported
16359 whole_archive_flag_spec_GCJ='-all_load $convenience'
16360 link_all_deplibs_GCJ=yes
16361 else
16362 ld_shlibs_GCJ=no
16363 fi
16364 ;;
16365
16366 dgux*)
16367 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16368 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16369 hardcode_shlibpath_var_GCJ=no
16370 ;;
16371
16372 freebsd1*)
16373 ld_shlibs_GCJ=no
16374 ;;
16375
16376 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16377 # support. Future versions do this automatically, but an explicit c++rt0.o
16378 # does not break anything, and helps significantly (at the cost of a little
16379 # extra space).
16380 freebsd2.2*)
16381 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16382 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16383 hardcode_direct_GCJ=yes
16384 hardcode_shlibpath_var_GCJ=no
16385 ;;
16386
16387 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16388 freebsd2*)
16389 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16390 hardcode_direct_GCJ=yes
16391 hardcode_minus_L_GCJ=yes
16392 hardcode_shlibpath_var_GCJ=no
16393 ;;
16394
16395 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16396 freebsd* | kfreebsd*-gnu)
16397 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16398 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16399 hardcode_direct_GCJ=yes
16400 hardcode_shlibpath_var_GCJ=no
16401 ;;
16402
16403 hpux9*)
16404 if test "$GCC" = yes; then
16405 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'
16406 else
16407 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16408 fi
16409 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16410 hardcode_libdir_separator_GCJ=:
16411 hardcode_direct_GCJ=yes
16412
16413 # hardcode_minus_L: Not really in the search PATH,
16414 # but as the default location of the library.
16415 hardcode_minus_L_GCJ=yes
16416 export_dynamic_flag_spec_GCJ='${wl}-E'
16417 ;;
16418
16419 hpux10* | hpux11*)
16420 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16421 case "$host_cpu" in
16422 hppa*64*|ia64*)
16423 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16424 ;;
16425 *)
16426 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16427 ;;
16428 esac
16429 else
16430 case "$host_cpu" in
16431 hppa*64*|ia64*)
16432 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16433 ;;
16434 *)
16435 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16436 ;;
16437 esac
16438 fi
16439 if test "$with_gnu_ld" = no; then
16440 case "$host_cpu" in
16441 hppa*64*)
16442 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16443 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16444 hardcode_libdir_separator_GCJ=:
16445 hardcode_direct_GCJ=no
16446 hardcode_shlibpath_var_GCJ=no
16447 ;;
16448 ia64*)
16449 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16450 hardcode_direct_GCJ=no
16451 hardcode_shlibpath_var_GCJ=no
16452
16453 # hardcode_minus_L: Not really in the search PATH,
16454 # but as the default location of the library.
16455 hardcode_minus_L_GCJ=yes
16456 ;;
16457 *)
16458 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16459 hardcode_libdir_separator_GCJ=:
16460 hardcode_direct_GCJ=yes
16461 export_dynamic_flag_spec_GCJ='${wl}-E'
16462
16463 # hardcode_minus_L: Not really in the search PATH,
16464 # but as the default location of the library.
16465 hardcode_minus_L_GCJ=yes
16466 ;;
16467 esac
16468 fi
16469 ;;
16470
16471 irix5* | irix6* | nonstopux*)
16472 if test "$GCC" = yes; then
16473 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'
16474 else
16475 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'
16476 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16477 fi
16478 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16479 hardcode_libdir_separator_GCJ=:
16480 link_all_deplibs_GCJ=yes
16481 ;;
16482
16483 netbsd*)
16484 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16485 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16486 else
16487 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16488 fi
16489 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16490 hardcode_direct_GCJ=yes
16491 hardcode_shlibpath_var_GCJ=no
16492 ;;
16493
16494 newsos6)
16495 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16496 hardcode_direct_GCJ=yes
16497 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16498 hardcode_libdir_separator_GCJ=:
16499 hardcode_shlibpath_var_GCJ=no
16500 ;;
16501
16502 openbsd*)
16503 hardcode_direct_GCJ=yes
16504 hardcode_shlibpath_var_GCJ=no
16505 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16506 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16507 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16508 export_dynamic_flag_spec_GCJ='${wl}-E'
16509 else
16510 case $host_os in
16511 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16512 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16513 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16514 ;;
16515 *)
16516 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16517 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16518 ;;
16519 esac
16520 fi
16521 ;;
16522
16523 os2*)
16524 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16525 hardcode_minus_L_GCJ=yes
16526 allow_undefined_flag_GCJ=unsupported
16527 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'
16528 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16529 ;;
16530
16531 osf3*)
16532 if test "$GCC" = yes; then
16533 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16534 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'
16535 else
16536 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16537 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16538 fi
16539 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16540 hardcode_libdir_separator_GCJ=:
16541 ;;
16542
16543 osf4* | osf5*) # as osf3* with the addition of -msym flag
16544 if test "$GCC" = yes; then
16545 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16546 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'
16547 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16548 else
16549 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16550 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'
16551 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~
16552 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16553
16554 # Both c and cxx compiler support -rpath directly
16555 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16556 fi
16557 hardcode_libdir_separator_GCJ=:
16558 ;;
16559
16560 sco3.2v5*)
16561 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16562 hardcode_shlibpath_var_GCJ=no
16563 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16564 runpath_var=LD_RUN_PATH
16565 hardcode_runpath_var=yes
16566 ;;
16567
16568 solaris*)
16569 no_undefined_flag_GCJ=' -z text'
16570 if test "$GCC" = yes; then
16571 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16572 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16573 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16574 else
16575 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16576 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16577 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16578 fi
16579 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16580 hardcode_shlibpath_var_GCJ=no
16581 case $host_os in
16582 solaris2.[0-5] | solaris2.[0-5].*) ;;
16583 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16584 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16585 esac
16586 link_all_deplibs_GCJ=yes
16587 ;;
16588
16589 sunos4*)
16590 if test "x$host_vendor" = xsequent; then
16591 # Use $CC to link under sequent, because it throws in some extra .o
16592 # files that make .init and .fini sections work.
16593 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16594 else
16595 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16596 fi
16597 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16598 hardcode_direct_GCJ=yes
16599 hardcode_minus_L_GCJ=yes
16600 hardcode_shlibpath_var_GCJ=no
16601 ;;
16602
16603 sysv4)
16604 case $host_vendor in
16605 sni)
16606 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16607 hardcode_direct_GCJ=yes # is this really true???
16608 ;;
16609 siemens)
16610 ## LD is ld it makes a PLAMLIB
16611 ## CC just makes a GrossModule.
16612 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16613 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16614 hardcode_direct_GCJ=no
16615 ;;
16616 motorola)
16617 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16618 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16619 ;;
16620 esac
16621 runpath_var='LD_RUN_PATH'
16622 hardcode_shlibpath_var_GCJ=no
16623 ;;
16624
16625 sysv4.3*)
16626 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16627 hardcode_shlibpath_var_GCJ=no
16628 export_dynamic_flag_spec_GCJ='-Bexport'
16629 ;;
16630
16631 sysv4*MP*)
16632 if test -d /usr/nec; then
16633 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16634 hardcode_shlibpath_var_GCJ=no
16635 runpath_var=LD_RUN_PATH
16636 hardcode_runpath_var=yes
16637 ld_shlibs_GCJ=yes
16638 fi
16639 ;;
16640
16641 sysv4.2uw2*)
16642 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16643 hardcode_direct_GCJ=yes
16644 hardcode_minus_L_GCJ=no
16645 hardcode_shlibpath_var_GCJ=no
16646 hardcode_runpath_var=yes
16647 runpath_var=LD_RUN_PATH
16648 ;;
16649
16650 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16651 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16652 if test "$GCC" = yes; then
16653 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16654 else
16655 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16656 fi
16657 runpath_var='LD_RUN_PATH'
16658 hardcode_shlibpath_var_GCJ=no
16659 ;;
16660
16661 sysv5*)
16662 no_undefined_flag_GCJ=' -z text'
16663 # $CC -shared without GNU ld will not create a library from C++
16664 # object files and a static libstdc++, better avoid it by now
16665 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16666 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16667 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16668 hardcode_libdir_flag_spec_GCJ=
16669 hardcode_shlibpath_var_GCJ=no
16670 runpath_var='LD_RUN_PATH'
16671 ;;
16672
16673 uts4*)
16674 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16675 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16676 hardcode_shlibpath_var_GCJ=no
16677 ;;
16678
16679 *)
16680 ld_shlibs_GCJ=no
16681 ;;
16682 esac
16683 fi
16684
16685echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16686echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16687test "$ld_shlibs_GCJ" = no && can_build_shared=no
16688
16689variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16690if test "$GCC" = yes; then
16691 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16692fi
16693
16694#
16695# Do we need to explicitly link libc?
16696#
16697case "x$archive_cmds_need_lc_GCJ" in
16698x|xyes)
16699 # Assume -lc should be added
16700 archive_cmds_need_lc_GCJ=yes
16701
16702 if test "$enable_shared" = yes && test "$GCC" = yes; then
16703 case $archive_cmds_GCJ in
16704 *'~'*)
16705 # FIXME: we may have to deal with multi-command sequences.
16706 ;;
16707 '$CC '*)
16708 # Test whether the compiler implicitly links with -lc since on some
16709 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16710 # to ld, don't add -lc before -lgcc.
16711 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16712echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16713 $rm conftest*
16714 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16715
16716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16717 (eval $ac_compile) 2>&5
16718 ac_status=$?
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } 2>conftest.err; then
16721 soname=conftest
16722 lib=conftest
16723 libobjs=conftest.$ac_objext
16724 deplibs=
16725 wl=$lt_prog_compiler_wl_GCJ
16726 compiler_flags=-v
16727 linker_flags=-v
16728 verstring=
16729 output_objdir=.
16730 libname=conftest
16731 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16732 allow_undefined_flag_GCJ=
16733 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16734 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16735 ac_status=$?
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); }
16738 then
16739 archive_cmds_need_lc_GCJ=no
16740 else
16741 archive_cmds_need_lc_GCJ=yes
16742 fi
16743 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16744 else
16745 cat conftest.err 1>&5
16746 fi
16747 $rm conftest*
16748 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16749echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16750 ;;
16751 esac
16752 fi
16753 ;;
16754esac
16755
16756echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16757echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16758library_names_spec=
16759libname_spec='lib$name'
16760soname_spec=
16761shrext_cmds=".so"
16762postinstall_cmds=
16763postuninstall_cmds=
16764finish_cmds=
16765finish_eval=
16766shlibpath_var=
16767shlibpath_overrides_runpath=unknown
16768version_type=none
16769dynamic_linker="$host_os ld.so"
16770sys_lib_dlsearch_path_spec="/lib /usr/lib"
16771if test "$GCC" = yes; then
16772 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16773 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16774 # if the path contains ";" then we assume it to be the separator
16775 # otherwise default to the standard path separator (i.e. ":") - it is
16776 # assumed that no part of a normal pathname contains ";" but that should
16777 # okay in the real world where ";" in dirpaths is itself problematic.
16778 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16779 else
16780 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16781 fi
16782else
16783 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16784fi
16785need_lib_prefix=unknown
16786hardcode_into_libs=no
16787
16788# when you set need_version to no, make sure it does not cause -set_version
16789# flags to be left without arguments
16790need_version=unknown
16791
16792case $host_os in
16793aix3*)
16794 version_type=linux
16795 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16796 shlibpath_var=LIBPATH
16797
16798 # AIX 3 has no versioning support, so we append a major version to the name.
16799 soname_spec='${libname}${release}${shared_ext}$major'
16800 ;;
16801
16802aix4* | aix5*)
16803 version_type=linux
16804 need_lib_prefix=no
16805 need_version=no
16806 hardcode_into_libs=yes
16807 if test "$host_cpu" = ia64; then
16808 # AIX 5 supports IA64
16809 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16810 shlibpath_var=LD_LIBRARY_PATH
16811 else
16812 # With GCC up to 2.95.x, collect2 would create an import file
16813 # for dependence libraries. The import file would start with
16814 # the line `#! .'. This would cause the generated library to
16815 # depend on `.', always an invalid library. This was fixed in
16816 # development snapshots of GCC prior to 3.0.
16817 case $host_os in
16818 aix4 | aix4.[01] | aix4.[01].*)
16819 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16820 echo ' yes '
16821 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16822 :
16823 else
16824 can_build_shared=no
16825 fi
16826 ;;
16827 esac
16828 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16829 # soname into executable. Probably we can add versioning support to
16830 # collect2, so additional links can be useful in future.
16831 if test "$aix_use_runtimelinking" = yes; then
16832 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16833 # instead of lib<name>.a to let people know that these are not
16834 # typical AIX shared libraries.
16835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16836 else
16837 # We preserve .a as extension for shared libraries through AIX4.2
16838 # and later when we are not doing run time linking.
16839 library_names_spec='${libname}${release}.a $libname.a'
16840 soname_spec='${libname}${release}${shared_ext}$major'
16841 fi
16842 shlibpath_var=LIBPATH
16843 fi
16844 ;;
16845
16846amigaos*)
16847 library_names_spec='$libname.ixlibrary $libname.a'
16848 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16849 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'
16850 ;;
16851
16852beos*)
16853 library_names_spec='${libname}${shared_ext}'
16854 dynamic_linker="$host_os ld.so"
16855 shlibpath_var=LIBRARY_PATH
16856 ;;
16857
16858bsdi4*)
16859 version_type=linux
16860 need_version=no
16861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16862 soname_spec='${libname}${release}${shared_ext}$major'
16863 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16864 shlibpath_var=LD_LIBRARY_PATH
16865 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16866 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16867 # the default ld.so.conf also contains /usr/contrib/lib and
16868 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16869 # libtool to hard-code these into programs
16870 ;;
16871
16872cygwin* | mingw* | pw32*)
16873 version_type=windows
16874 shrext_cmds=".dll"
16875 need_version=no
16876 need_lib_prefix=no
16877
16878 case $GCC,$host_os in
16879 yes,cygwin* | yes,mingw* | yes,pw32*)
16880 library_names_spec='$libname.dll.a'
16881 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16882 postinstall_cmds='base_file=`basename \${file}`~
16883 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16884 dldir=$destdir/`dirname \$dlpath`~
16885 test -d \$dldir || mkdir -p \$dldir~
16886 $install_prog $dir/$dlname \$dldir/$dlname'
16887 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16888 dlpath=$dir/\$dldll~
16889 $rm \$dlpath'
16890 shlibpath_overrides_runpath=yes
16891
16892 case $host_os in
16893 cygwin*)
16894 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16895 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16896 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16897 ;;
16898 mingw*)
16899 # MinGW DLLs use traditional 'lib' prefix
16900 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16901 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16902 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16903 # It is most probably a Windows format PATH printed by
16904 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16905 # path with ; separators, and with drive letters. We can handle the
16906 # drive letters (cygwin fileutils understands them), so leave them,
16907 # especially as we might pass files found there to a mingw objdump,
16908 # which wouldn't understand a cygwinified path. Ahh.
16909 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16910 else
16911 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16912 fi
16913 ;;
16914 pw32*)
16915 # pw32 DLLs use 'pw' prefix rather than 'lib'
16916 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16917 ;;
16918 esac
16919 ;;
16920
16921 *)
16922 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16923 ;;
16924 esac
16925 dynamic_linker='Win32 ld.exe'
16926 # FIXME: first we should search . and the directory the executable is in
16927 shlibpath_var=PATH
16928 ;;
16929
16930darwin* | rhapsody*)
16931 dynamic_linker="$host_os dyld"
16932 version_type=darwin
16933 need_lib_prefix=no
16934 need_version=no
16935 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16936 soname_spec='${libname}${release}${major}$shared_ext'
16937 shlibpath_overrides_runpath=yes
16938 shlibpath_var=DYLD_LIBRARY_PATH
16939 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16940 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16941 if test "$GCC" = yes; then
16942 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16943 else
16944 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16945 fi
16946 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16947 ;;
16948
16949dgux*)
16950 version_type=linux
16951 need_lib_prefix=no
16952 need_version=no
16953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16954 soname_spec='${libname}${release}${shared_ext}$major'
16955 shlibpath_var=LD_LIBRARY_PATH
16956 ;;
16957
16958freebsd1*)
16959 dynamic_linker=no
16960 ;;
16961
16962kfreebsd*-gnu)
16963 version_type=linux
16964 need_lib_prefix=no
16965 need_version=no
16966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16967 soname_spec='${libname}${release}${shared_ext}$major'
16968 shlibpath_var=LD_LIBRARY_PATH
16969 shlibpath_overrides_runpath=no
16970 hardcode_into_libs=yes
16971 dynamic_linker='GNU ld.so'
16972 ;;
16973
16974freebsd*)
16975 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16976 version_type=freebsd-$objformat
16977 case $version_type in
16978 freebsd-elf*)
16979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16980 need_version=no
16981 need_lib_prefix=no
16982 ;;
16983 freebsd-*)
16984 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16985 need_version=yes
16986 ;;
16987 esac
16988 shlibpath_var=LD_LIBRARY_PATH
16989 case $host_os in
16990 freebsd2*)
16991 shlibpath_overrides_runpath=yes
16992 ;;
16993 freebsd3.01* | freebsdelf3.01*)
16994 shlibpath_overrides_runpath=yes
16995 hardcode_into_libs=yes
16996 ;;
16997 *) # from 3.2 on
16998 shlibpath_overrides_runpath=no
16999 hardcode_into_libs=yes
17000 ;;
17001 esac
17002 ;;
17003
17004gnu*)
17005 version_type=linux
17006 need_lib_prefix=no
17007 need_version=no
17008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17009 soname_spec='${libname}${release}${shared_ext}$major'
17010 shlibpath_var=LD_LIBRARY_PATH
17011 hardcode_into_libs=yes
17012 ;;
17013
17014hpux9* | hpux10* | hpux11*)
17015 # Give a soname corresponding to the major version so that dld.sl refuses to
17016 # link against other versions.
17017 version_type=sunos
17018 need_lib_prefix=no
17019 need_version=no
17020 case "$host_cpu" in
17021 ia64*)
17022 shrext_cmds='.so'
17023 hardcode_into_libs=yes
17024 dynamic_linker="$host_os dld.so"
17025 shlibpath_var=LD_LIBRARY_PATH
17026 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17028 soname_spec='${libname}${release}${shared_ext}$major'
17029 if test "X$HPUX_IA64_MODE" = X32; then
17030 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17031 else
17032 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17033 fi
17034 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17035 ;;
17036 hppa*64*)
17037 shrext_cmds='.sl'
17038 hardcode_into_libs=yes
17039 dynamic_linker="$host_os dld.sl"
17040 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17041 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17043 soname_spec='${libname}${release}${shared_ext}$major'
17044 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17045 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17046 ;;
17047 *)
17048 shrext_cmds='.sl'
17049 dynamic_linker="$host_os dld.sl"
17050 shlibpath_var=SHLIB_PATH
17051 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17053 soname_spec='${libname}${release}${shared_ext}$major'
17054 ;;
17055 esac
17056 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17057 postinstall_cmds='chmod 555 $lib'
17058 ;;
17059
17060irix5* | irix6* | nonstopux*)
17061 case $host_os in
17062 nonstopux*) version_type=nonstopux ;;
17063 *)
17064 if test "$lt_cv_prog_gnu_ld" = yes; then
17065 version_type=linux
17066 else
17067 version_type=irix
17068 fi ;;
17069 esac
17070 need_lib_prefix=no
17071 need_version=no
17072 soname_spec='${libname}${release}${shared_ext}$major'
17073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17074 case $host_os in
17075 irix5* | nonstopux*)
17076 libsuff= shlibsuff=
17077 ;;
17078 *)
17079 case $LD in # libtool.m4 will add one of these switches to LD
17080 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17081 libsuff= shlibsuff= libmagic=32-bit;;
17082 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17083 libsuff=32 shlibsuff=N32 libmagic=N32;;
17084 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17085 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17086 *) libsuff= shlibsuff= libmagic=never-match;;
17087 esac
17088 ;;
17089 esac
17090 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17091 shlibpath_overrides_runpath=no
17092 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17093 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17094 hardcode_into_libs=yes
17095 ;;
17096
17097# No shared lib support for Linux oldld, aout, or coff.
17098linux*oldld* | linux*aout* | linux*coff*)
17099 dynamic_linker=no
17100 ;;
17101
17102# This must be Linux ELF.
17103linux*)
17104 version_type=linux
17105 need_lib_prefix=no
17106 need_version=no
17107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17108 soname_spec='${libname}${release}${shared_ext}$major'
17109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17110 shlibpath_var=LD_LIBRARY_PATH
17111 shlibpath_overrides_runpath=no
17112 # This implies no fast_install, which is unacceptable.
17113 # Some rework will be needed to allow for fast_install
17114 # before this can be enabled.
17115 hardcode_into_libs=yes
17116
17117 # Append ld.so.conf contents to the search path
17118 if test -f /etc/ld.so.conf; then
17119 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17120 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17121 fi
17122
17123 # We used to test for /lib/ld.so.1 and disable shared libraries on
17124 # powerpc, because MkLinux only supported shared libraries with the
17125 # GNU dynamic linker. Since this was broken with cross compilers,
17126 # most powerpc-linux boxes support dynamic linking these days and
17127 # people can always --disable-shared, the test was removed, and we
17128 # assume the GNU/Linux dynamic linker is in use.
17129 dynamic_linker='GNU/Linux ld.so'
17130 ;;
17131
17132knetbsd*-gnu)
17133 version_type=linux
17134 need_lib_prefix=no
17135 need_version=no
17136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17137 soname_spec='${libname}${release}${shared_ext}$major'
17138 shlibpath_var=LD_LIBRARY_PATH
17139 shlibpath_overrides_runpath=no
17140 hardcode_into_libs=yes
17141 dynamic_linker='GNU ld.so'
17142 ;;
17143
17144netbsd*)
17145 version_type=sunos
17146 need_lib_prefix=no
17147 need_version=no
17148 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17151 dynamic_linker='NetBSD (a.out) ld.so'
17152 else
17153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17154 soname_spec='${libname}${release}${shared_ext}$major'
17155 dynamic_linker='NetBSD ld.elf_so'
17156 fi
17157 shlibpath_var=LD_LIBRARY_PATH
17158 shlibpath_overrides_runpath=yes
17159 hardcode_into_libs=yes
17160 ;;
17161
17162newsos6)
17163 version_type=linux
17164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17165 shlibpath_var=LD_LIBRARY_PATH
17166 shlibpath_overrides_runpath=yes
17167 ;;
17168
17169nto-qnx*)
17170 version_type=linux
17171 need_lib_prefix=no
17172 need_version=no
17173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17174 soname_spec='${libname}${release}${shared_ext}$major'
17175 shlibpath_var=LD_LIBRARY_PATH
17176 shlibpath_overrides_runpath=yes
17177 ;;
17178
17179openbsd*)
17180 version_type=sunos
17181 need_lib_prefix=no
17182 need_version=yes
17183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17185 shlibpath_var=LD_LIBRARY_PATH
17186 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17187 case $host_os in
17188 openbsd2.[89] | openbsd2.[89].*)
17189 shlibpath_overrides_runpath=no
17190 ;;
17191 *)
17192 shlibpath_overrides_runpath=yes
17193 ;;
17194 esac
17195 else
17196 shlibpath_overrides_runpath=yes
17197 fi
17198 ;;
17199
17200os2*)
17201 libname_spec='$name'
17202 shrext_cmds=".dll"
17203 need_lib_prefix=no
17204 library_names_spec='$libname${shared_ext} $libname.a'
17205 dynamic_linker='OS/2 ld.exe'
17206 shlibpath_var=LIBPATH
17207 ;;
17208
17209osf3* | osf4* | osf5*)
17210 version_type=osf
17211 need_lib_prefix=no
17212 need_version=no
17213 soname_spec='${libname}${release}${shared_ext}$major'
17214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17215 shlibpath_var=LD_LIBRARY_PATH
17216 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17217 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17218 ;;
17219
17220sco3.2v5*)
17221 version_type=osf
17222 soname_spec='${libname}${release}${shared_ext}$major'
17223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17224 shlibpath_var=LD_LIBRARY_PATH
17225 ;;
17226
17227solaris*)
17228 version_type=linux
17229 need_lib_prefix=no
17230 need_version=no
17231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17232 soname_spec='${libname}${release}${shared_ext}$major'
17233 shlibpath_var=LD_LIBRARY_PATH
17234 shlibpath_overrides_runpath=yes
17235 hardcode_into_libs=yes
17236 # ldd complains unless libraries are executable
17237 postinstall_cmds='chmod +x $lib'
17238 ;;
17239
17240sunos4*)
17241 version_type=sunos
17242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17243 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17244 shlibpath_var=LD_LIBRARY_PATH
17245 shlibpath_overrides_runpath=yes
17246 if test "$with_gnu_ld" = yes; then
17247 need_lib_prefix=no
17248 fi
17249 need_version=yes
17250 ;;
17251
17252sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17253 version_type=linux
17254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17255 soname_spec='${libname}${release}${shared_ext}$major'
17256 shlibpath_var=LD_LIBRARY_PATH
17257 case $host_vendor in
17258 sni)
17259 shlibpath_overrides_runpath=no
17260 need_lib_prefix=no
17261 export_dynamic_flag_spec='${wl}-Blargedynsym'
17262 runpath_var=LD_RUN_PATH
17263 ;;
17264 siemens)
17265 need_lib_prefix=no
17266 ;;
17267 motorola)
17268 need_lib_prefix=no
17269 need_version=no
17270 shlibpath_overrides_runpath=no
17271 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17272 ;;
17273 esac
17274 ;;
17275
17276sysv4*MP*)
17277 if test -d /usr/nec ;then
17278 version_type=linux
17279 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17280 soname_spec='$libname${shared_ext}.$major'
17281 shlibpath_var=LD_LIBRARY_PATH
17282 fi
17283 ;;
17284
17285uts4*)
17286 version_type=linux
17287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17288 soname_spec='${libname}${release}${shared_ext}$major'
17289 shlibpath_var=LD_LIBRARY_PATH
17290 ;;
17291
17292*)
17293 dynamic_linker=no
17294 ;;
17295esac
17296echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17297echo "${ECHO_T}$dynamic_linker" >&6
17298test "$dynamic_linker" = no && can_build_shared=no
17299
17300echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17301echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17302hardcode_action_GCJ=
17303if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17304 test -n "$runpath_var GCJ" || \
17305 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17306
17307 # We can hardcode non-existant directories.
17308 if test "$hardcode_direct_GCJ" != no &&
17309 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17310 # have to relink, otherwise we might link with an installed library
17311 # when we should be linking with a yet-to-be-installed one
17312 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17313 test "$hardcode_minus_L_GCJ" != no; then
17314 # Linking always hardcodes the temporary library directory.
17315 hardcode_action_GCJ=relink
17316 else
17317 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17318 hardcode_action_GCJ=immediate
17319 fi
17320else
17321 # We cannot hardcode anything, or else we can only hardcode existing
17322 # directories.
17323 hardcode_action_GCJ=unsupported
17324fi
17325echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17326echo "${ECHO_T}$hardcode_action_GCJ" >&6
17327
17328if test "$hardcode_action_GCJ" = relink; then
17329 # Fast installation is not supported
17330 enable_fast_install=no
17331elif test "$shlibpath_overrides_runpath" = yes ||
17332 test "$enable_shared" = no; then
17333 # Fast installation is not necessary
17334 enable_fast_install=needless
17335fi
17336
17337striplib=
17338old_striplib=
17339echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17340echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17341if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17342 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17343 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17344 echo "$as_me:$LINENO: result: yes" >&5
17345echo "${ECHO_T}yes" >&6
17346else
17347# FIXME - insert some real tests, host_os isn't really good enough
17348 case $host_os in
17349 darwin*)
17350 if test -n "$STRIP" ; then
17351 striplib="$STRIP -x"
17352 echo "$as_me:$LINENO: result: yes" >&5
17353echo "${ECHO_T}yes" >&6
17354 else
17355 echo "$as_me:$LINENO: result: no" >&5
17356echo "${ECHO_T}no" >&6
17357fi
17358 ;;
17359 *)
17360 echo "$as_me:$LINENO: result: no" >&5
17361echo "${ECHO_T}no" >&6
17362 ;;
17363 esac
17364fi
17365
17366if test "x$enable_dlopen" != xyes; then
17367 enable_dlopen=unknown
17368 enable_dlopen_self=unknown
17369 enable_dlopen_self_static=unknown
17370else
17371 lt_cv_dlopen=no
17372 lt_cv_dlopen_libs=
17373
17374 case $host_os in
17375 beos*)
17376 lt_cv_dlopen="load_add_on"
17377 lt_cv_dlopen_libs=
17378 lt_cv_dlopen_self=yes
17379 ;;
17380
17381 mingw* | pw32*)
17382 lt_cv_dlopen="LoadLibrary"
17383 lt_cv_dlopen_libs=
17384 ;;
17385
17386 cygwin*)
17387 lt_cv_dlopen="dlopen"
17388 lt_cv_dlopen_libs=
17389 ;;
17390
17391 darwin*)
17392 # if libdl is installed we need to link against it
17393 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17394echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17395if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17397else
17398 ac_check_lib_save_LIBS=$LIBS
17399LIBS="-ldl $LIBS"
17400cat >conftest.$ac_ext <<_ACEOF
17401/* confdefs.h. */
17402_ACEOF
17403cat confdefs.h >>conftest.$ac_ext
17404cat >>conftest.$ac_ext <<_ACEOF
17405/* end confdefs.h. */
17406
17407/* Override any gcc2 internal prototype to avoid an error. */
17408#ifdef __cplusplus
17409extern "C"
17410#endif
17411/* We use char because int might match the return type of a gcc2
17412 builtin and then its argument prototype would still apply. */
17413char dlopen ();
17414int
17415main ()
17416{
17417dlopen ();
17418 ;
17419 return 0;
17420}
17421_ACEOF
17422rm -f conftest.$ac_objext conftest$ac_exeext
17423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17424 (eval $ac_link) 2>conftest.er1
17425 ac_status=$?
17426 grep -v '^ *+' conftest.er1 >conftest.err
17427 rm -f conftest.er1
17428 cat conftest.err >&5
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); } &&
17431 { ac_try='test -z "$ac_c_werror_flag"
17432 || test ! -s conftest.err'
17433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17434 (eval $ac_try) 2>&5
17435 ac_status=$?
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; } &&
17438 { ac_try='test -s conftest$ac_exeext'
17439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17440 (eval $ac_try) 2>&5
17441 ac_status=$?
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); }; }; then
17444 ac_cv_lib_dl_dlopen=yes
17445else
17446 echo "$as_me: failed program was:" >&5
17447sed 's/^/| /' conftest.$ac_ext >&5
17448
17449ac_cv_lib_dl_dlopen=no
17450fi
17451rm -f conftest.err conftest.$ac_objext \
17452 conftest$ac_exeext conftest.$ac_ext
17453LIBS=$ac_check_lib_save_LIBS
17454fi
17455echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17456echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17457if test $ac_cv_lib_dl_dlopen = yes; then
17458 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17459else
17460
17461 lt_cv_dlopen="dyld"
17462 lt_cv_dlopen_libs=
17463 lt_cv_dlopen_self=yes
17464
17465fi
17466
17467 ;;
17468
17469 *)
17470 echo "$as_me:$LINENO: checking for shl_load" >&5
17471echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17472if test "${ac_cv_func_shl_load+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17474else
17475 cat >conftest.$ac_ext <<_ACEOF
17476/* confdefs.h. */
17477_ACEOF
17478cat confdefs.h >>conftest.$ac_ext
17479cat >>conftest.$ac_ext <<_ACEOF
17480/* end confdefs.h. */
17481/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17483#define shl_load innocuous_shl_load
17484
17485/* System header to define __stub macros and hopefully few prototypes,
17486 which can conflict with char shl_load (); below.
17487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17488 <limits.h> exists even on freestanding compilers. */
17489
17490#ifdef __STDC__
17491# include <limits.h>
17492#else
17493# include <assert.h>
17494#endif
17495
17496#undef shl_load
17497
17498/* Override any gcc2 internal prototype to avoid an error. */
17499#ifdef __cplusplus
17500extern "C"
17501{
17502#endif
17503/* We use char because int might match the return type of a gcc2
17504 builtin and then its argument prototype would still apply. */
17505char shl_load ();
17506/* The GNU C library defines this for functions which it implements
17507 to always fail with ENOSYS. Some functions are actually named
17508 something starting with __ and the normal name is an alias. */
17509#if defined (__stub_shl_load) || defined (__stub___shl_load)
17510choke me
17511#else
17512char (*f) () = shl_load;
17513#endif
17514#ifdef __cplusplus
17515}
17516#endif
17517
17518int
17519main ()
17520{
17521return f != shl_load;
17522 ;
17523 return 0;
17524}
17525_ACEOF
17526rm -f conftest.$ac_objext conftest$ac_exeext
17527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17528 (eval $ac_link) 2>conftest.er1
17529 ac_status=$?
17530 grep -v '^ *+' conftest.er1 >conftest.err
17531 rm -f conftest.er1
17532 cat conftest.err >&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); } &&
17535 { ac_try='test -z "$ac_c_werror_flag"
17536 || test ! -s conftest.err'
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17539 ac_status=$?
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; } &&
17542 { ac_try='test -s conftest$ac_exeext'
17543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544 (eval $ac_try) 2>&5
17545 ac_status=$?
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; }; then
17548 ac_cv_func_shl_load=yes
17549else
17550 echo "$as_me: failed program was:" >&5
17551sed 's/^/| /' conftest.$ac_ext >&5
17552
17553ac_cv_func_shl_load=no
17554fi
17555rm -f conftest.err conftest.$ac_objext \
17556 conftest$ac_exeext conftest.$ac_ext
17557fi
17558echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17559echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17560if test $ac_cv_func_shl_load = yes; then
17561 lt_cv_dlopen="shl_load"
17562else
17563 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17564echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17565if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17566 echo $ECHO_N "(cached) $ECHO_C" >&6
17567else
17568 ac_check_lib_save_LIBS=$LIBS
17569LIBS="-ldld $LIBS"
17570cat >conftest.$ac_ext <<_ACEOF
17571/* confdefs.h. */
17572_ACEOF
17573cat confdefs.h >>conftest.$ac_ext
17574cat >>conftest.$ac_ext <<_ACEOF
17575/* end confdefs.h. */
17576
17577/* Override any gcc2 internal prototype to avoid an error. */
17578#ifdef __cplusplus
17579extern "C"
17580#endif
17581/* We use char because int might match the return type of a gcc2
17582 builtin and then its argument prototype would still apply. */
17583char shl_load ();
17584int
17585main ()
17586{
17587shl_load ();
17588 ;
17589 return 0;
17590}
17591_ACEOF
17592rm -f conftest.$ac_objext conftest$ac_exeext
17593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17594 (eval $ac_link) 2>conftest.er1
17595 ac_status=$?
17596 grep -v '^ *+' conftest.er1 >conftest.err
17597 rm -f conftest.er1
17598 cat conftest.err >&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); } &&
17601 { ac_try='test -z "$ac_c_werror_flag"
17602 || test ! -s conftest.err'
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17605 ac_status=$?
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; } &&
17608 { ac_try='test -s conftest$ac_exeext'
17609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610 (eval $ac_try) 2>&5
17611 ac_status=$?
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); }; }; then
17614 ac_cv_lib_dld_shl_load=yes
17615else
17616 echo "$as_me: failed program was:" >&5
17617sed 's/^/| /' conftest.$ac_ext >&5
17618
17619ac_cv_lib_dld_shl_load=no
17620fi
17621rm -f conftest.err conftest.$ac_objext \
17622 conftest$ac_exeext conftest.$ac_ext
17623LIBS=$ac_check_lib_save_LIBS
17624fi
17625echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17626echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17627if test $ac_cv_lib_dld_shl_load = yes; then
17628 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17629else
17630 echo "$as_me:$LINENO: checking for dlopen" >&5
17631echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17632if test "${ac_cv_func_dlopen+set}" = set; then
17633 echo $ECHO_N "(cached) $ECHO_C" >&6
17634else
17635 cat >conftest.$ac_ext <<_ACEOF
17636/* confdefs.h. */
17637_ACEOF
17638cat confdefs.h >>conftest.$ac_ext
17639cat >>conftest.$ac_ext <<_ACEOF
17640/* end confdefs.h. */
17641/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17643#define dlopen innocuous_dlopen
17644
17645/* System header to define __stub macros and hopefully few prototypes,
17646 which can conflict with char dlopen (); below.
17647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17648 <limits.h> exists even on freestanding compilers. */
17649
17650#ifdef __STDC__
17651# include <limits.h>
17652#else
17653# include <assert.h>
17654#endif
17655
17656#undef dlopen
17657
17658/* Override any gcc2 internal prototype to avoid an error. */
17659#ifdef __cplusplus
17660extern "C"
17661{
17662#endif
17663/* We use char because int might match the return type of a gcc2
17664 builtin and then its argument prototype would still apply. */
17665char dlopen ();
17666/* The GNU C library defines this for functions which it implements
17667 to always fail with ENOSYS. Some functions are actually named
17668 something starting with __ and the normal name is an alias. */
17669#if defined (__stub_dlopen) || defined (__stub___dlopen)
17670choke me
17671#else
17672char (*f) () = dlopen;
17673#endif
17674#ifdef __cplusplus
17675}
17676#endif
17677
17678int
17679main ()
17680{
17681return f != dlopen;
17682 ;
17683 return 0;
17684}
17685_ACEOF
17686rm -f conftest.$ac_objext conftest$ac_exeext
17687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17688 (eval $ac_link) 2>conftest.er1
17689 ac_status=$?
17690 grep -v '^ *+' conftest.er1 >conftest.err
17691 rm -f conftest.er1
17692 cat conftest.err >&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); } &&
17695 { ac_try='test -z "$ac_c_werror_flag"
17696 || test ! -s conftest.err'
17697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698 (eval $ac_try) 2>&5
17699 ac_status=$?
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; } &&
17702 { ac_try='test -s conftest$ac_exeext'
17703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704 (eval $ac_try) 2>&5
17705 ac_status=$?
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; }; then
17708 ac_cv_func_dlopen=yes
17709else
17710 echo "$as_me: failed program was:" >&5
17711sed 's/^/| /' conftest.$ac_ext >&5
17712
17713ac_cv_func_dlopen=no
17714fi
17715rm -f conftest.err conftest.$ac_objext \
17716 conftest$ac_exeext conftest.$ac_ext
17717fi
17718echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17719echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17720if test $ac_cv_func_dlopen = yes; then
17721 lt_cv_dlopen="dlopen"
17722else
17723 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17724echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17725if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17726 echo $ECHO_N "(cached) $ECHO_C" >&6
17727else
17728 ac_check_lib_save_LIBS=$LIBS
17729LIBS="-ldl $LIBS"
17730cat >conftest.$ac_ext <<_ACEOF
17731/* confdefs.h. */
17732_ACEOF
17733cat confdefs.h >>conftest.$ac_ext
17734cat >>conftest.$ac_ext <<_ACEOF
17735/* end confdefs.h. */
17736
17737/* Override any gcc2 internal prototype to avoid an error. */
17738#ifdef __cplusplus
17739extern "C"
17740#endif
17741/* We use char because int might match the return type of a gcc2
17742 builtin and then its argument prototype would still apply. */
17743char dlopen ();
17744int
17745main ()
17746{
17747dlopen ();
17748 ;
17749 return 0;
17750}
17751_ACEOF
17752rm -f conftest.$ac_objext conftest$ac_exeext
17753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17754 (eval $ac_link) 2>conftest.er1
17755 ac_status=$?
17756 grep -v '^ *+' conftest.er1 >conftest.err
17757 rm -f conftest.er1
17758 cat conftest.err >&5
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); } &&
17761 { ac_try='test -z "$ac_c_werror_flag"
17762 || test ! -s conftest.err'
17763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764 (eval $ac_try) 2>&5
17765 ac_status=$?
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; } &&
17768 { ac_try='test -s conftest$ac_exeext'
17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770 (eval $ac_try) 2>&5
17771 ac_status=$?
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; }; then
17774 ac_cv_lib_dl_dlopen=yes
17775else
17776 echo "$as_me: failed program was:" >&5
17777sed 's/^/| /' conftest.$ac_ext >&5
17778
17779ac_cv_lib_dl_dlopen=no
17780fi
17781rm -f conftest.err conftest.$ac_objext \
17782 conftest$ac_exeext conftest.$ac_ext
17783LIBS=$ac_check_lib_save_LIBS
17784fi
17785echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17786echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17787if test $ac_cv_lib_dl_dlopen = yes; then
17788 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17789else
17790 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17791echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17792if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17793 echo $ECHO_N "(cached) $ECHO_C" >&6
17794else
17795 ac_check_lib_save_LIBS=$LIBS
17796LIBS="-lsvld $LIBS"
17797cat >conftest.$ac_ext <<_ACEOF
17798/* confdefs.h. */
17799_ACEOF
17800cat confdefs.h >>conftest.$ac_ext
17801cat >>conftest.$ac_ext <<_ACEOF
17802/* end confdefs.h. */
17803
17804/* Override any gcc2 internal prototype to avoid an error. */
17805#ifdef __cplusplus
17806extern "C"
17807#endif
17808/* We use char because int might match the return type of a gcc2
17809 builtin and then its argument prototype would still apply. */
17810char dlopen ();
17811int
17812main ()
17813{
17814dlopen ();
17815 ;
17816 return 0;
17817}
17818_ACEOF
17819rm -f conftest.$ac_objext conftest$ac_exeext
17820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17821 (eval $ac_link) 2>conftest.er1
17822 ac_status=$?
17823 grep -v '^ *+' conftest.er1 >conftest.err
17824 rm -f conftest.er1
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } &&
17828 { ac_try='test -z "$ac_c_werror_flag"
17829 || test ! -s conftest.err'
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17832 ac_status=$?
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; } &&
17835 { ac_try='test -s conftest$ac_exeext'
17836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837 (eval $ac_try) 2>&5
17838 ac_status=$?
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; }; then
17841 ac_cv_lib_svld_dlopen=yes
17842else
17843 echo "$as_me: failed program was:" >&5
17844sed 's/^/| /' conftest.$ac_ext >&5
17845
17846ac_cv_lib_svld_dlopen=no
17847fi
17848rm -f conftest.err conftest.$ac_objext \
17849 conftest$ac_exeext conftest.$ac_ext
17850LIBS=$ac_check_lib_save_LIBS
17851fi
17852echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17853echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17854if test $ac_cv_lib_svld_dlopen = yes; then
17855 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17856else
17857 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17858echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17859if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17860 echo $ECHO_N "(cached) $ECHO_C" >&6
17861else
17862 ac_check_lib_save_LIBS=$LIBS
17863LIBS="-ldld $LIBS"
17864cat >conftest.$ac_ext <<_ACEOF
17865/* confdefs.h. */
17866_ACEOF
17867cat confdefs.h >>conftest.$ac_ext
17868cat >>conftest.$ac_ext <<_ACEOF
17869/* end confdefs.h. */
17870
17871/* Override any gcc2 internal prototype to avoid an error. */
17872#ifdef __cplusplus
17873extern "C"
17874#endif
17875/* We use char because int might match the return type of a gcc2
17876 builtin and then its argument prototype would still apply. */
17877char dld_link ();
17878int
17879main ()
17880{
17881dld_link ();
17882 ;
17883 return 0;
17884}
17885_ACEOF
17886rm -f conftest.$ac_objext conftest$ac_exeext
17887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17888 (eval $ac_link) 2>conftest.er1
17889 ac_status=$?
17890 grep -v '^ *+' conftest.er1 >conftest.err
17891 rm -f conftest.er1
17892 cat conftest.err >&5
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); } &&
17895 { ac_try='test -z "$ac_c_werror_flag"
17896 || test ! -s conftest.err'
17897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17898 (eval $ac_try) 2>&5
17899 ac_status=$?
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; } &&
17902 { ac_try='test -s conftest$ac_exeext'
17903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17904 (eval $ac_try) 2>&5
17905 ac_status=$?
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); }; }; then
17908 ac_cv_lib_dld_dld_link=yes
17909else
17910 echo "$as_me: failed program was:" >&5
17911sed 's/^/| /' conftest.$ac_ext >&5
17912
17913ac_cv_lib_dld_dld_link=no
17914fi
17915rm -f conftest.err conftest.$ac_objext \
17916 conftest$ac_exeext conftest.$ac_ext
17917LIBS=$ac_check_lib_save_LIBS
17918fi
17919echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17920echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17921if test $ac_cv_lib_dld_dld_link = yes; then
17922 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17923fi
17924
17925
17926fi
17927
17928
17929fi
17930
17931
17932fi
17933
17934
17935fi
17936
17937
17938fi
17939
17940 ;;
17941 esac
17942
17943 if test "x$lt_cv_dlopen" != xno; then
17944 enable_dlopen=yes
17945 else
17946 enable_dlopen=no
17947 fi
17948
17949 case $lt_cv_dlopen in
17950 dlopen)
17951 save_CPPFLAGS="$CPPFLAGS"
17952 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17953
17954 save_LDFLAGS="$LDFLAGS"
17955 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17956
17957 save_LIBS="$LIBS"
17958 LIBS="$lt_cv_dlopen_libs $LIBS"
17959
17960 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17961echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17962if test "${lt_cv_dlopen_self+set}" = set; then
17963 echo $ECHO_N "(cached) $ECHO_C" >&6
17964else
17965 if test "$cross_compiling" = yes; then :
17966 lt_cv_dlopen_self=cross
17967else
17968 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17969 lt_status=$lt_dlunknown
17970 cat > conftest.$ac_ext <<EOF
Lev Walkin33cded12004-09-19 19:40:52 +000017971#line 17971 "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +000017972#include "confdefs.h"
17973
17974#if HAVE_DLFCN_H
17975#include <dlfcn.h>
17976#endif
17977
17978#include <stdio.h>
17979
17980#ifdef RTLD_GLOBAL
17981# define LT_DLGLOBAL RTLD_GLOBAL
17982#else
17983# ifdef DL_GLOBAL
17984# define LT_DLGLOBAL DL_GLOBAL
17985# else
17986# define LT_DLGLOBAL 0
17987# endif
17988#endif
17989
17990/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17991 find out it does not work in some platform. */
17992#ifndef LT_DLLAZY_OR_NOW
17993# ifdef RTLD_LAZY
17994# define LT_DLLAZY_OR_NOW RTLD_LAZY
17995# else
17996# ifdef DL_LAZY
17997# define LT_DLLAZY_OR_NOW DL_LAZY
17998# else
17999# ifdef RTLD_NOW
18000# define LT_DLLAZY_OR_NOW RTLD_NOW
18001# else
18002# ifdef DL_NOW
18003# define LT_DLLAZY_OR_NOW DL_NOW
18004# else
18005# define LT_DLLAZY_OR_NOW 0
18006# endif
18007# endif
18008# endif
18009# endif
18010#endif
18011
18012#ifdef __cplusplus
18013extern "C" void exit (int);
18014#endif
18015
18016void fnord() { int i=42;}
18017int main ()
18018{
18019 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18020 int status = $lt_dlunknown;
18021
18022 if (self)
18023 {
18024 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18025 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18026 /* dlclose (self); */
18027 }
18028
18029 exit (status);
18030}
18031EOF
18032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18033 (eval $ac_link) 2>&5
18034 ac_status=$?
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18037 (./conftest; exit; ) 2>/dev/null
18038 lt_status=$?
18039 case x$lt_status in
18040 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18041 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18042 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18043 esac
18044 else :
18045 # compilation failed
18046 lt_cv_dlopen_self=no
18047 fi
18048fi
18049rm -fr conftest*
18050
18051
18052fi
18053echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18054echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18055
18056 if test "x$lt_cv_dlopen_self" = xyes; then
18057 LDFLAGS="$LDFLAGS $link_static_flag"
18058 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18059echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18060if test "${lt_cv_dlopen_self_static+set}" = set; then
18061 echo $ECHO_N "(cached) $ECHO_C" >&6
18062else
18063 if test "$cross_compiling" = yes; then :
18064 lt_cv_dlopen_self_static=cross
18065else
18066 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18067 lt_status=$lt_dlunknown
18068 cat > conftest.$ac_ext <<EOF
Lev Walkin33cded12004-09-19 19:40:52 +000018069#line 18069 "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +000018070#include "confdefs.h"
18071
18072#if HAVE_DLFCN_H
18073#include <dlfcn.h>
18074#endif
18075
18076#include <stdio.h>
18077
18078#ifdef RTLD_GLOBAL
18079# define LT_DLGLOBAL RTLD_GLOBAL
18080#else
18081# ifdef DL_GLOBAL
18082# define LT_DLGLOBAL DL_GLOBAL
18083# else
18084# define LT_DLGLOBAL 0
18085# endif
18086#endif
18087
18088/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18089 find out it does not work in some platform. */
18090#ifndef LT_DLLAZY_OR_NOW
18091# ifdef RTLD_LAZY
18092# define LT_DLLAZY_OR_NOW RTLD_LAZY
18093# else
18094# ifdef DL_LAZY
18095# define LT_DLLAZY_OR_NOW DL_LAZY
18096# else
18097# ifdef RTLD_NOW
18098# define LT_DLLAZY_OR_NOW RTLD_NOW
18099# else
18100# ifdef DL_NOW
18101# define LT_DLLAZY_OR_NOW DL_NOW
18102# else
18103# define LT_DLLAZY_OR_NOW 0
18104# endif
18105# endif
18106# endif
18107# endif
18108#endif
18109
18110#ifdef __cplusplus
18111extern "C" void exit (int);
18112#endif
18113
18114void fnord() { int i=42;}
18115int main ()
18116{
18117 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18118 int status = $lt_dlunknown;
18119
18120 if (self)
18121 {
18122 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18123 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18124 /* dlclose (self); */
18125 }
18126
18127 exit (status);
18128}
18129EOF
18130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18131 (eval $ac_link) 2>&5
18132 ac_status=$?
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18135 (./conftest; exit; ) 2>/dev/null
18136 lt_status=$?
18137 case x$lt_status in
18138 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18139 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18140 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18141 esac
18142 else :
18143 # compilation failed
18144 lt_cv_dlopen_self_static=no
18145 fi
18146fi
18147rm -fr conftest*
18148
18149
18150fi
18151echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18152echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18153 fi
18154
18155 CPPFLAGS="$save_CPPFLAGS"
18156 LDFLAGS="$save_LDFLAGS"
18157 LIBS="$save_LIBS"
18158 ;;
18159 esac
18160
18161 case $lt_cv_dlopen_self in
18162 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18163 *) enable_dlopen_self=unknown ;;
18164 esac
18165
18166 case $lt_cv_dlopen_self_static in
18167 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18168 *) enable_dlopen_self_static=unknown ;;
18169 esac
18170fi
18171
18172
18173# The else clause should only fire when bootstrapping the
18174# libtool distribution, otherwise you forgot to ship ltmain.sh
18175# with your package, and you will get complaints that there are
18176# no rules to generate ltmain.sh.
18177if test -f "$ltmain"; then
18178 # See if we are running on zsh, and set the options which allow our commands through
18179 # without removal of \ escapes.
18180 if test -n "${ZSH_VERSION+set}" ; then
18181 setopt NO_GLOB_SUBST
18182 fi
18183 # Now quote all the things that may contain metacharacters while being
18184 # careful not to overquote the AC_SUBSTed values. We take copies of the
18185 # variables and quote the copies for generation of the libtool script.
18186 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18187 SED SHELL STRIP \
18188 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18189 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18190 deplibs_check_method reload_flag reload_cmds need_locks \
18191 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18192 lt_cv_sys_global_symbol_to_c_name_address \
18193 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18194 old_postinstall_cmds old_postuninstall_cmds \
18195 compiler_GCJ \
18196 CC_GCJ \
18197 LD_GCJ \
18198 lt_prog_compiler_wl_GCJ \
18199 lt_prog_compiler_pic_GCJ \
18200 lt_prog_compiler_static_GCJ \
18201 lt_prog_compiler_no_builtin_flag_GCJ \
18202 export_dynamic_flag_spec_GCJ \
18203 thread_safe_flag_spec_GCJ \
18204 whole_archive_flag_spec_GCJ \
18205 enable_shared_with_static_runtimes_GCJ \
18206 old_archive_cmds_GCJ \
18207 old_archive_from_new_cmds_GCJ \
18208 predep_objects_GCJ \
18209 postdep_objects_GCJ \
18210 predeps_GCJ \
18211 postdeps_GCJ \
18212 compiler_lib_search_path_GCJ \
18213 archive_cmds_GCJ \
18214 archive_expsym_cmds_GCJ \
18215 postinstall_cmds_GCJ \
18216 postuninstall_cmds_GCJ \
18217 old_archive_from_expsyms_cmds_GCJ \
18218 allow_undefined_flag_GCJ \
18219 no_undefined_flag_GCJ \
18220 export_symbols_cmds_GCJ \
18221 hardcode_libdir_flag_spec_GCJ \
18222 hardcode_libdir_flag_spec_ld_GCJ \
18223 hardcode_libdir_separator_GCJ \
18224 hardcode_automatic_GCJ \
18225 module_cmds_GCJ \
18226 module_expsym_cmds_GCJ \
18227 lt_cv_prog_compiler_c_o_GCJ \
18228 exclude_expsyms_GCJ \
18229 include_expsyms_GCJ; do
18230
18231 case $var in
18232 old_archive_cmds_GCJ | \
18233 old_archive_from_new_cmds_GCJ | \
18234 archive_cmds_GCJ | \
18235 archive_expsym_cmds_GCJ | \
18236 module_cmds_GCJ | \
18237 module_expsym_cmds_GCJ | \
18238 old_archive_from_expsyms_cmds_GCJ | \
18239 export_symbols_cmds_GCJ | \
18240 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18241 postinstall_cmds | postuninstall_cmds | \
18242 old_postinstall_cmds | old_postuninstall_cmds | \
18243 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18244 # Double-quote double-evaled strings.
18245 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18246 ;;
18247 *)
18248 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18249 ;;
18250 esac
18251 done
18252
18253 case $lt_echo in
18254 *'\$0 --fallback-echo"')
18255 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18256 ;;
18257 esac
18258
18259cfgfile="$ofile"
18260
18261 cat <<__EOF__ >> "$cfgfile"
18262# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18263
18264# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18265
18266# Shell to use when invoking shell scripts.
18267SHELL=$lt_SHELL
18268
18269# Whether or not to build shared libraries.
18270build_libtool_libs=$enable_shared
18271
18272# Whether or not to build static libraries.
18273build_old_libs=$enable_static
18274
18275# Whether or not to add -lc for building shared libraries.
18276build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18277
18278# Whether or not to disallow shared libs when runtime libs are static
18279allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18280
18281# Whether or not to optimize for fast installation.
18282fast_install=$enable_fast_install
18283
18284# The host system.
18285host_alias=$host_alias
18286host=$host
18287
18288# An echo program that does not interpret backslashes.
18289echo=$lt_echo
18290
18291# The archiver.
18292AR=$lt_AR
18293AR_FLAGS=$lt_AR_FLAGS
18294
18295# A C compiler.
18296LTCC=$lt_LTCC
18297
18298# A language-specific compiler.
18299CC=$lt_compiler_GCJ
18300
18301# Is the compiler the GNU C compiler?
18302with_gcc=$GCC_GCJ
18303
18304# An ERE matcher.
18305EGREP=$lt_EGREP
18306
18307# The linker used to build libraries.
18308LD=$lt_LD_GCJ
18309
18310# Whether we need hard or soft links.
18311LN_S=$lt_LN_S
18312
18313# A BSD-compatible nm program.
18314NM=$lt_NM
18315
18316# A symbol stripping program
18317STRIP=$lt_STRIP
18318
18319# Used to examine libraries when file_magic_cmd begins "file"
18320MAGIC_CMD=$MAGIC_CMD
18321
18322# Used on cygwin: DLL creation program.
18323DLLTOOL="$DLLTOOL"
18324
18325# Used on cygwin: object dumper.
18326OBJDUMP="$OBJDUMP"
18327
18328# Used on cygwin: assembler.
18329AS="$AS"
18330
18331# The name of the directory that contains temporary libtool files.
18332objdir=$objdir
18333
18334# How to create reloadable object files.
18335reload_flag=$lt_reload_flag
18336reload_cmds=$lt_reload_cmds
18337
18338# How to pass a linker flag through the compiler.
18339wl=$lt_lt_prog_compiler_wl_GCJ
18340
18341# Object file suffix (normally "o").
18342objext="$ac_objext"
18343
18344# Old archive suffix (normally "a").
18345libext="$libext"
18346
18347# Shared library suffix (normally ".so").
18348shrext_cmds='$shrext_cmds'
18349
18350# Executable file suffix (normally "").
18351exeext="$exeext"
18352
18353# Additional compiler flags for building library objects.
18354pic_flag=$lt_lt_prog_compiler_pic_GCJ
18355pic_mode=$pic_mode
18356
18357# What is the maximum length of a command?
18358max_cmd_len=$lt_cv_sys_max_cmd_len
18359
18360# Does compiler simultaneously support -c and -o options?
18361compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18362
18363# Must we lock files when doing compilation ?
18364need_locks=$lt_need_locks
18365
18366# Do we need the lib prefix for modules?
18367need_lib_prefix=$need_lib_prefix
18368
18369# Do we need a version for libraries?
18370need_version=$need_version
18371
18372# Whether dlopen is supported.
18373dlopen_support=$enable_dlopen
18374
18375# Whether dlopen of programs is supported.
18376dlopen_self=$enable_dlopen_self
18377
18378# Whether dlopen of statically linked programs is supported.
18379dlopen_self_static=$enable_dlopen_self_static
18380
18381# Compiler flag to prevent dynamic linking.
18382link_static_flag=$lt_lt_prog_compiler_static_GCJ
18383
18384# Compiler flag to turn off builtin functions.
18385no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18386
18387# Compiler flag to allow reflexive dlopens.
18388export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18389
18390# Compiler flag to generate shared objects directly from archives.
18391whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18392
18393# Compiler flag to generate thread-safe objects.
18394thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18395
18396# Library versioning type.
18397version_type=$version_type
18398
18399# Format of library name prefix.
18400libname_spec=$lt_libname_spec
18401
18402# List of archive names. First name is the real one, the rest are links.
18403# The last name is the one that the linker finds with -lNAME.
18404library_names_spec=$lt_library_names_spec
18405
18406# The coded name of the library, if different from the real name.
18407soname_spec=$lt_soname_spec
18408
18409# Commands used to build and install an old-style archive.
18410RANLIB=$lt_RANLIB
18411old_archive_cmds=$lt_old_archive_cmds_GCJ
18412old_postinstall_cmds=$lt_old_postinstall_cmds
18413old_postuninstall_cmds=$lt_old_postuninstall_cmds
18414
18415# Create an old-style archive from a shared archive.
18416old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18417
18418# Create a temporary old-style archive to link instead of a shared archive.
18419old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18420
18421# Commands used to build and install a shared archive.
18422archive_cmds=$lt_archive_cmds_GCJ
18423archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18424postinstall_cmds=$lt_postinstall_cmds
18425postuninstall_cmds=$lt_postuninstall_cmds
18426
18427# Commands used to build a loadable module (assumed same as above if empty)
18428module_cmds=$lt_module_cmds_GCJ
18429module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18430
18431# Commands to strip libraries.
18432old_striplib=$lt_old_striplib
18433striplib=$lt_striplib
18434
18435# Dependencies to place before the objects being linked to create a
18436# shared library.
18437predep_objects=$lt_predep_objects_GCJ
18438
18439# Dependencies to place after the objects being linked to create a
18440# shared library.
18441postdep_objects=$lt_postdep_objects_GCJ
18442
18443# Dependencies to place before the objects being linked to create a
18444# shared library.
18445predeps=$lt_predeps_GCJ
18446
18447# Dependencies to place after the objects being linked to create a
18448# shared library.
18449postdeps=$lt_postdeps_GCJ
18450
18451# The library search path used internally by the compiler when linking
18452# a shared library.
18453compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18454
18455# Method to check whether dependent libraries are shared objects.
18456deplibs_check_method=$lt_deplibs_check_method
18457
18458# Command to use when deplibs_check_method == file_magic.
18459file_magic_cmd=$lt_file_magic_cmd
18460
18461# Flag that allows shared libraries with undefined symbols to be built.
18462allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18463
18464# Flag that forces no undefined symbols.
18465no_undefined_flag=$lt_no_undefined_flag_GCJ
18466
18467# Commands used to finish a libtool library installation in a directory.
18468finish_cmds=$lt_finish_cmds
18469
18470# Same as above, but a single script fragment to be evaled but not shown.
18471finish_eval=$lt_finish_eval
18472
18473# Take the output of nm and produce a listing of raw symbols and C names.
18474global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18475
18476# Transform the output of nm in a proper C declaration
18477global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18478
18479# Transform the output of nm in a C name address pair
18480global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18481
18482# This is the shared library runtime path variable.
18483runpath_var=$runpath_var
18484
18485# This is the shared library path variable.
18486shlibpath_var=$shlibpath_var
18487
18488# Is shlibpath searched before the hard-coded library search path?
18489shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18490
18491# How to hardcode a shared library path into an executable.
18492hardcode_action=$hardcode_action_GCJ
18493
18494# Whether we should hardcode library paths into libraries.
18495hardcode_into_libs=$hardcode_into_libs
18496
18497# Flag to hardcode \$libdir into a binary during linking.
18498# This must work even if \$libdir does not exist.
18499hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18500
18501# If ld is used when linking, flag to hardcode \$libdir into
18502# a binary during linking. This must work even if \$libdir does
18503# not exist.
18504hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18505
18506# Whether we need a single -rpath flag with a separated argument.
18507hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18508
18509# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18510# resulting binary.
18511hardcode_direct=$hardcode_direct_GCJ
18512
18513# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18514# resulting binary.
18515hardcode_minus_L=$hardcode_minus_L_GCJ
18516
18517# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18518# the resulting binary.
18519hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18520
18521# Set to yes if building a shared library automatically hardcodes DIR into the library
18522# and all subsequent libraries and executables linked against it.
18523hardcode_automatic=$hardcode_automatic_GCJ
18524
18525# Variables whose values should be saved in libtool wrapper scripts and
18526# restored at relink time.
18527variables_saved_for_relink="$variables_saved_for_relink"
18528
18529# Whether libtool must link a program against all its dependency libraries.
18530link_all_deplibs=$link_all_deplibs_GCJ
18531
18532# Compile-time system search path for libraries
18533sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18534
18535# Run-time system search path for libraries
18536sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18537
18538# Fix the shell variable \$srcfile for the compiler.
18539fix_srcfile_path="$fix_srcfile_path_GCJ"
18540
18541# Set to yes if exported symbols are required.
18542always_export_symbols=$always_export_symbols_GCJ
18543
18544# The commands to list exported symbols.
18545export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18546
18547# The commands to extract the exported symbol list from a shared archive.
18548extract_expsyms_cmds=$lt_extract_expsyms_cmds
18549
18550# Symbols that should not be listed in the preloaded symbols.
18551exclude_expsyms=$lt_exclude_expsyms_GCJ
18552
18553# Symbols that must always be exported.
18554include_expsyms=$lt_include_expsyms_GCJ
18555
18556# ### END LIBTOOL TAG CONFIG: $tagname
18557
18558__EOF__
18559
18560
18561else
18562 # If there is no Makefile yet, we rely on a make rule to execute
18563 # `config.status --recheck' to rerun these tests and create the
18564 # libtool script then.
18565 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18566 if test -f "$ltmain_in"; then
18567 test -f Makefile && make "$ltmain"
18568 fi
18569fi
18570
18571
18572ac_ext=c
18573ac_cpp='$CPP $CPPFLAGS'
18574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18576ac_compiler_gnu=$ac_cv_c_compiler_gnu
18577
18578CC="$lt_save_CC"
18579
18580 else
18581 tagname=""
18582 fi
18583 ;;
18584
18585 RC)
18586
18587
18588
18589# Source file extension for RC test sources.
18590ac_ext=rc
18591
18592# Object file extension for compiled RC test sources.
18593objext=o
18594objext_RC=$objext
18595
18596# Code to be used in simple compile tests
18597lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18598
18599# Code to be used in simple link tests
18600lt_simple_link_test_code="$lt_simple_compile_test_code"
18601
18602# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18603
18604# If no C compiler was specified, use CC.
18605LTCC=${LTCC-"$CC"}
18606
18607# Allow CC to be a program name with arguments.
18608compiler=$CC
18609
18610
18611# Allow CC to be a program name with arguments.
18612lt_save_CC="$CC"
18613CC=${RC-"windres"}
18614compiler=$CC
18615compiler_RC=$CC
18616lt_cv_prog_compiler_c_o_RC=yes
18617
18618# The else clause should only fire when bootstrapping the
18619# libtool distribution, otherwise you forgot to ship ltmain.sh
18620# with your package, and you will get complaints that there are
18621# no rules to generate ltmain.sh.
18622if test -f "$ltmain"; then
18623 # See if we are running on zsh, and set the options which allow our commands through
18624 # without removal of \ escapes.
18625 if test -n "${ZSH_VERSION+set}" ; then
18626 setopt NO_GLOB_SUBST
18627 fi
18628 # Now quote all the things that may contain metacharacters while being
18629 # careful not to overquote the AC_SUBSTed values. We take copies of the
18630 # variables and quote the copies for generation of the libtool script.
18631 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18632 SED SHELL STRIP \
18633 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18634 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18635 deplibs_check_method reload_flag reload_cmds need_locks \
18636 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18637 lt_cv_sys_global_symbol_to_c_name_address \
18638 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18639 old_postinstall_cmds old_postuninstall_cmds \
18640 compiler_RC \
18641 CC_RC \
18642 LD_RC \
18643 lt_prog_compiler_wl_RC \
18644 lt_prog_compiler_pic_RC \
18645 lt_prog_compiler_static_RC \
18646 lt_prog_compiler_no_builtin_flag_RC \
18647 export_dynamic_flag_spec_RC \
18648 thread_safe_flag_spec_RC \
18649 whole_archive_flag_spec_RC \
18650 enable_shared_with_static_runtimes_RC \
18651 old_archive_cmds_RC \
18652 old_archive_from_new_cmds_RC \
18653 predep_objects_RC \
18654 postdep_objects_RC \
18655 predeps_RC \
18656 postdeps_RC \
18657 compiler_lib_search_path_RC \
18658 archive_cmds_RC \
18659 archive_expsym_cmds_RC \
18660 postinstall_cmds_RC \
18661 postuninstall_cmds_RC \
18662 old_archive_from_expsyms_cmds_RC \
18663 allow_undefined_flag_RC \
18664 no_undefined_flag_RC \
18665 export_symbols_cmds_RC \
18666 hardcode_libdir_flag_spec_RC \
18667 hardcode_libdir_flag_spec_ld_RC \
18668 hardcode_libdir_separator_RC \
18669 hardcode_automatic_RC \
18670 module_cmds_RC \
18671 module_expsym_cmds_RC \
18672 lt_cv_prog_compiler_c_o_RC \
18673 exclude_expsyms_RC \
18674 include_expsyms_RC; do
18675
18676 case $var in
18677 old_archive_cmds_RC | \
18678 old_archive_from_new_cmds_RC | \
18679 archive_cmds_RC | \
18680 archive_expsym_cmds_RC | \
18681 module_cmds_RC | \
18682 module_expsym_cmds_RC | \
18683 old_archive_from_expsyms_cmds_RC | \
18684 export_symbols_cmds_RC | \
18685 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18686 postinstall_cmds | postuninstall_cmds | \
18687 old_postinstall_cmds | old_postuninstall_cmds | \
18688 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18689 # Double-quote double-evaled strings.
18690 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18691 ;;
18692 *)
18693 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18694 ;;
18695 esac
18696 done
18697
18698 case $lt_echo in
18699 *'\$0 --fallback-echo"')
18700 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18701 ;;
18702 esac
18703
18704cfgfile="$ofile"
18705
18706 cat <<__EOF__ >> "$cfgfile"
18707# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18708
18709# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18710
18711# Shell to use when invoking shell scripts.
18712SHELL=$lt_SHELL
18713
18714# Whether or not to build shared libraries.
18715build_libtool_libs=$enable_shared
18716
18717# Whether or not to build static libraries.
18718build_old_libs=$enable_static
18719
18720# Whether or not to add -lc for building shared libraries.
18721build_libtool_need_lc=$archive_cmds_need_lc_RC
18722
18723# Whether or not to disallow shared libs when runtime libs are static
18724allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18725
18726# Whether or not to optimize for fast installation.
18727fast_install=$enable_fast_install
18728
18729# The host system.
18730host_alias=$host_alias
18731host=$host
18732
18733# An echo program that does not interpret backslashes.
18734echo=$lt_echo
18735
18736# The archiver.
18737AR=$lt_AR
18738AR_FLAGS=$lt_AR_FLAGS
18739
18740# A C compiler.
18741LTCC=$lt_LTCC
18742
18743# A language-specific compiler.
18744CC=$lt_compiler_RC
18745
18746# Is the compiler the GNU C compiler?
18747with_gcc=$GCC_RC
18748
18749# An ERE matcher.
18750EGREP=$lt_EGREP
18751
18752# The linker used to build libraries.
18753LD=$lt_LD_RC
18754
18755# Whether we need hard or soft links.
18756LN_S=$lt_LN_S
18757
18758# A BSD-compatible nm program.
18759NM=$lt_NM
18760
18761# A symbol stripping program
18762STRIP=$lt_STRIP
18763
18764# Used to examine libraries when file_magic_cmd begins "file"
18765MAGIC_CMD=$MAGIC_CMD
18766
18767# Used on cygwin: DLL creation program.
18768DLLTOOL="$DLLTOOL"
18769
18770# Used on cygwin: object dumper.
18771OBJDUMP="$OBJDUMP"
18772
18773# Used on cygwin: assembler.
18774AS="$AS"
18775
18776# The name of the directory that contains temporary libtool files.
18777objdir=$objdir
18778
18779# How to create reloadable object files.
18780reload_flag=$lt_reload_flag
18781reload_cmds=$lt_reload_cmds
18782
18783# How to pass a linker flag through the compiler.
18784wl=$lt_lt_prog_compiler_wl_RC
18785
18786# Object file suffix (normally "o").
18787objext="$ac_objext"
18788
18789# Old archive suffix (normally "a").
18790libext="$libext"
18791
18792# Shared library suffix (normally ".so").
18793shrext_cmds='$shrext_cmds'
18794
18795# Executable file suffix (normally "").
18796exeext="$exeext"
18797
18798# Additional compiler flags for building library objects.
18799pic_flag=$lt_lt_prog_compiler_pic_RC
18800pic_mode=$pic_mode
18801
18802# What is the maximum length of a command?
18803max_cmd_len=$lt_cv_sys_max_cmd_len
18804
18805# Does compiler simultaneously support -c and -o options?
18806compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18807
18808# Must we lock files when doing compilation ?
18809need_locks=$lt_need_locks
18810
18811# Do we need the lib prefix for modules?
18812need_lib_prefix=$need_lib_prefix
18813
18814# Do we need a version for libraries?
18815need_version=$need_version
18816
18817# Whether dlopen is supported.
18818dlopen_support=$enable_dlopen
18819
18820# Whether dlopen of programs is supported.
18821dlopen_self=$enable_dlopen_self
18822
18823# Whether dlopen of statically linked programs is supported.
18824dlopen_self_static=$enable_dlopen_self_static
18825
18826# Compiler flag to prevent dynamic linking.
18827link_static_flag=$lt_lt_prog_compiler_static_RC
18828
18829# Compiler flag to turn off builtin functions.
18830no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18831
18832# Compiler flag to allow reflexive dlopens.
18833export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18834
18835# Compiler flag to generate shared objects directly from archives.
18836whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18837
18838# Compiler flag to generate thread-safe objects.
18839thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18840
18841# Library versioning type.
18842version_type=$version_type
18843
18844# Format of library name prefix.
18845libname_spec=$lt_libname_spec
18846
18847# List of archive names. First name is the real one, the rest are links.
18848# The last name is the one that the linker finds with -lNAME.
18849library_names_spec=$lt_library_names_spec
18850
18851# The coded name of the library, if different from the real name.
18852soname_spec=$lt_soname_spec
18853
18854# Commands used to build and install an old-style archive.
18855RANLIB=$lt_RANLIB
18856old_archive_cmds=$lt_old_archive_cmds_RC
18857old_postinstall_cmds=$lt_old_postinstall_cmds
18858old_postuninstall_cmds=$lt_old_postuninstall_cmds
18859
18860# Create an old-style archive from a shared archive.
18861old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18862
18863# Create a temporary old-style archive to link instead of a shared archive.
18864old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18865
18866# Commands used to build and install a shared archive.
18867archive_cmds=$lt_archive_cmds_RC
18868archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18869postinstall_cmds=$lt_postinstall_cmds
18870postuninstall_cmds=$lt_postuninstall_cmds
18871
18872# Commands used to build a loadable module (assumed same as above if empty)
18873module_cmds=$lt_module_cmds_RC
18874module_expsym_cmds=$lt_module_expsym_cmds_RC
18875
18876# Commands to strip libraries.
18877old_striplib=$lt_old_striplib
18878striplib=$lt_striplib
18879
18880# Dependencies to place before the objects being linked to create a
18881# shared library.
18882predep_objects=$lt_predep_objects_RC
18883
18884# Dependencies to place after the objects being linked to create a
18885# shared library.
18886postdep_objects=$lt_postdep_objects_RC
18887
18888# Dependencies to place before the objects being linked to create a
18889# shared library.
18890predeps=$lt_predeps_RC
18891
18892# Dependencies to place after the objects being linked to create a
18893# shared library.
18894postdeps=$lt_postdeps_RC
18895
18896# The library search path used internally by the compiler when linking
18897# a shared library.
18898compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18899
18900# Method to check whether dependent libraries are shared objects.
18901deplibs_check_method=$lt_deplibs_check_method
18902
18903# Command to use when deplibs_check_method == file_magic.
18904file_magic_cmd=$lt_file_magic_cmd
18905
18906# Flag that allows shared libraries with undefined symbols to be built.
18907allow_undefined_flag=$lt_allow_undefined_flag_RC
18908
18909# Flag that forces no undefined symbols.
18910no_undefined_flag=$lt_no_undefined_flag_RC
18911
18912# Commands used to finish a libtool library installation in a directory.
18913finish_cmds=$lt_finish_cmds
18914
18915# Same as above, but a single script fragment to be evaled but not shown.
18916finish_eval=$lt_finish_eval
18917
18918# Take the output of nm and produce a listing of raw symbols and C names.
18919global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18920
18921# Transform the output of nm in a proper C declaration
18922global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18923
18924# Transform the output of nm in a C name address pair
18925global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18926
18927# This is the shared library runtime path variable.
18928runpath_var=$runpath_var
18929
18930# This is the shared library path variable.
18931shlibpath_var=$shlibpath_var
18932
18933# Is shlibpath searched before the hard-coded library search path?
18934shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18935
18936# How to hardcode a shared library path into an executable.
18937hardcode_action=$hardcode_action_RC
18938
18939# Whether we should hardcode library paths into libraries.
18940hardcode_into_libs=$hardcode_into_libs
18941
18942# Flag to hardcode \$libdir into a binary during linking.
18943# This must work even if \$libdir does not exist.
18944hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18945
18946# If ld is used when linking, flag to hardcode \$libdir into
18947# a binary during linking. This must work even if \$libdir does
18948# not exist.
18949hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18950
18951# Whether we need a single -rpath flag with a separated argument.
18952hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18953
18954# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18955# resulting binary.
18956hardcode_direct=$hardcode_direct_RC
18957
18958# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18959# resulting binary.
18960hardcode_minus_L=$hardcode_minus_L_RC
18961
18962# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18963# the resulting binary.
18964hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18965
18966# Set to yes if building a shared library automatically hardcodes DIR into the library
18967# and all subsequent libraries and executables linked against it.
18968hardcode_automatic=$hardcode_automatic_RC
18969
18970# Variables whose values should be saved in libtool wrapper scripts and
18971# restored at relink time.
18972variables_saved_for_relink="$variables_saved_for_relink"
18973
18974# Whether libtool must link a program against all its dependency libraries.
18975link_all_deplibs=$link_all_deplibs_RC
18976
18977# Compile-time system search path for libraries
18978sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18979
18980# Run-time system search path for libraries
18981sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18982
18983# Fix the shell variable \$srcfile for the compiler.
18984fix_srcfile_path="$fix_srcfile_path_RC"
18985
18986# Set to yes if exported symbols are required.
18987always_export_symbols=$always_export_symbols_RC
18988
18989# The commands to list exported symbols.
18990export_symbols_cmds=$lt_export_symbols_cmds_RC
18991
18992# The commands to extract the exported symbol list from a shared archive.
18993extract_expsyms_cmds=$lt_extract_expsyms_cmds
18994
18995# Symbols that should not be listed in the preloaded symbols.
18996exclude_expsyms=$lt_exclude_expsyms_RC
18997
18998# Symbols that must always be exported.
18999include_expsyms=$lt_include_expsyms_RC
19000
19001# ### END LIBTOOL TAG CONFIG: $tagname
19002
19003__EOF__
19004
19005
19006else
19007 # If there is no Makefile yet, we rely on a make rule to execute
19008 # `config.status --recheck' to rerun these tests and create the
19009 # libtool script then.
19010 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19011 if test -f "$ltmain_in"; then
19012 test -f Makefile && make "$ltmain"
19013 fi
19014fi
19015
19016
19017ac_ext=c
19018ac_cpp='$CPP $CPPFLAGS'
19019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19021ac_compiler_gnu=$ac_cv_c_compiler_gnu
19022
19023CC="$lt_save_CC"
19024
19025 ;;
19026
19027 *)
19028 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19029echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19030 { (exit 1); exit 1; }; }
19031 ;;
19032 esac
19033
19034 # Append the new tag name to the list of available tags.
19035 if test -n "$tagname" ; then
19036 available_tags="$available_tags $tagname"
19037 fi
19038 fi
19039 done
19040 IFS="$lt_save_ifs"
19041
19042 # Now substitute the updated list of available tags.
19043 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19044 mv "${ofile}T" "$ofile"
19045 chmod +x "$ofile"
19046 else
19047 rm -f "${ofile}T"
19048 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19049echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19050 { (exit 1); exit 1; }; }
19051 fi
19052fi
19053
Lev Walkinf15320b2004-06-03 03:38:44 +000019054
19055
19056# This can be used to rebuild libtool when needed
Lev Walkin8e8b5482004-06-17 23:42:48 +000019057LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
Lev Walkinf15320b2004-06-03 03:38:44 +000019058
19059# Always use our own libtool.
19060LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19061
Lev Walkin8e8b5482004-06-17 23:42:48 +000019062# Prevent multiple expansion
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
Lev Walkinf15320b2004-06-03 03:38:44 +000019082
19083
19084# Check whether --enable-autoconf or --disable-autoconf was given.
19085if test "${enable_autoconf+set}" = set; then
19086 enableval="$enable_autoconf"
19087 enable_autoconf=$enableval
19088else
19089 enable_autoconf=yes
19090
19091fi;
19092# Extract the first word of "autoconf", so it can be a program name with args.
19093set dummy autoconf; ac_word=$2
19094echo "$as_me:$LINENO: checking for $ac_word" >&5
19095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19096if test "${ac_cv_path_AUTOCONF+set}" = set; then
19097 echo $ECHO_N "(cached) $ECHO_C" >&6
19098else
19099 case $AUTOCONF in
19100 [\\/]* | ?:[\\/]*)
19101 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
19102 ;;
19103 *)
19104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19105for as_dir in $PATH
19106do
19107 IFS=$as_save_IFS
19108 test -z "$as_dir" && as_dir=.
19109 for ac_exec_ext in '' $ac_executable_extensions; do
19110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19111 ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext"
19112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19113 break 2
19114 fi
19115done
19116done
19117
19118 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="@echo autoconf not available"
19119 ;;
19120esac
19121fi
19122AUTOCONF=$ac_cv_path_AUTOCONF
19123
19124if test -n "$AUTOCONF"; then
19125 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
19126echo "${ECHO_T}$AUTOCONF" >&6
19127else
19128 echo "$as_me:$LINENO: result: no" >&5
19129echo "${ECHO_T}no" >&6
19130fi
19131
19132# Extract the first word of "autoheader", so it can be a program name with args.
19133set dummy autoheader; ac_word=$2
19134echo "$as_me:$LINENO: checking for $ac_word" >&5
19135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19136if test "${ac_cv_path_AUTOHEADER+set}" = set; then
19137 echo $ECHO_N "(cached) $ECHO_C" >&6
19138else
19139 case $AUTOHEADER in
19140 [\\/]* | ?:[\\/]*)
19141 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
19142 ;;
19143 *)
19144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19145for as_dir in $PATH
19146do
19147 IFS=$as_save_IFS
19148 test -z "$as_dir" && as_dir=.
19149 for ac_exec_ext in '' $ac_executable_extensions; do
19150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19151 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
19152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19153 break 2
19154 fi
19155done
19156done
19157
19158 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="@echo autoheader not available"
19159 ;;
19160esac
19161fi
19162AUTOHEADER=$ac_cv_path_AUTOHEADER
19163
19164if test -n "$AUTOHEADER"; then
19165 echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
19166echo "${ECHO_T}$AUTOHEADER" >&6
19167else
19168 echo "$as_me:$LINENO: result: no" >&5
19169echo "${ECHO_T}no" >&6
19170fi
19171
19172if test -z "$AUTOCONF"; then enable_autoconf=no ; fi
19173if test -z "$AUTOHEADER"; then enable_autoconf=no ; fi
19174if test x$enable_autoconf = xyes; then
19175 CONFIGURE_DEPENDS="configure.in aclocal.m4"
19176fi
19177
19178
19179ac_ext=c
19180ac_cpp='$CPP $CPPFLAGS'
19181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19183ac_compiler_gnu=$ac_cv_c_compiler_gnu
19184if test -n "$ac_tool_prefix"; then
19185 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19186set dummy ${ac_tool_prefix}gcc; ac_word=$2
19187echo "$as_me:$LINENO: checking for $ac_word" >&5
19188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19189if test "${ac_cv_prog_CC+set}" = set; then
19190 echo $ECHO_N "(cached) $ECHO_C" >&6
19191else
19192 if test -n "$CC"; then
19193 ac_cv_prog_CC="$CC" # Let the user override the test.
19194else
19195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19196for as_dir in $PATH
19197do
19198 IFS=$as_save_IFS
19199 test -z "$as_dir" && as_dir=.
19200 for ac_exec_ext in '' $ac_executable_extensions; do
19201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19202 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19204 break 2
19205 fi
19206done
19207done
19208
19209fi
19210fi
19211CC=$ac_cv_prog_CC
19212if test -n "$CC"; then
19213 echo "$as_me:$LINENO: result: $CC" >&5
19214echo "${ECHO_T}$CC" >&6
19215else
19216 echo "$as_me:$LINENO: result: no" >&5
19217echo "${ECHO_T}no" >&6
19218fi
19219
19220fi
19221if test -z "$ac_cv_prog_CC"; then
19222 ac_ct_CC=$CC
19223 # Extract the first word of "gcc", so it can be a program name with args.
19224set dummy gcc; ac_word=$2
19225echo "$as_me:$LINENO: checking for $ac_word" >&5
19226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19227if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19228 echo $ECHO_N "(cached) $ECHO_C" >&6
19229else
19230 if test -n "$ac_ct_CC"; then
19231 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19232else
19233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19234for as_dir in $PATH
19235do
19236 IFS=$as_save_IFS
19237 test -z "$as_dir" && as_dir=.
19238 for ac_exec_ext in '' $ac_executable_extensions; do
19239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19240 ac_cv_prog_ac_ct_CC="gcc"
19241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19242 break 2
19243 fi
19244done
19245done
19246
19247fi
19248fi
19249ac_ct_CC=$ac_cv_prog_ac_ct_CC
19250if test -n "$ac_ct_CC"; then
19251 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19252echo "${ECHO_T}$ac_ct_CC" >&6
19253else
19254 echo "$as_me:$LINENO: result: no" >&5
19255echo "${ECHO_T}no" >&6
19256fi
19257
19258 CC=$ac_ct_CC
19259else
19260 CC="$ac_cv_prog_CC"
19261fi
19262
19263if test -z "$CC"; then
19264 if test -n "$ac_tool_prefix"; then
19265 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19266set dummy ${ac_tool_prefix}cc; ac_word=$2
19267echo "$as_me:$LINENO: checking for $ac_word" >&5
19268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19269if test "${ac_cv_prog_CC+set}" = set; then
19270 echo $ECHO_N "(cached) $ECHO_C" >&6
19271else
19272 if test -n "$CC"; then
19273 ac_cv_prog_CC="$CC" # Let the user override the test.
19274else
19275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19276for as_dir in $PATH
19277do
19278 IFS=$as_save_IFS
19279 test -z "$as_dir" && as_dir=.
19280 for ac_exec_ext in '' $ac_executable_extensions; do
19281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19282 ac_cv_prog_CC="${ac_tool_prefix}cc"
19283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19284 break 2
19285 fi
19286done
19287done
19288
19289fi
19290fi
19291CC=$ac_cv_prog_CC
19292if test -n "$CC"; then
19293 echo "$as_me:$LINENO: result: $CC" >&5
19294echo "${ECHO_T}$CC" >&6
19295else
19296 echo "$as_me:$LINENO: result: no" >&5
19297echo "${ECHO_T}no" >&6
19298fi
19299
19300fi
19301if test -z "$ac_cv_prog_CC"; then
19302 ac_ct_CC=$CC
19303 # Extract the first word of "cc", so it can be a program name with args.
19304set dummy cc; ac_word=$2
19305echo "$as_me:$LINENO: checking for $ac_word" >&5
19306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19307if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19308 echo $ECHO_N "(cached) $ECHO_C" >&6
19309else
19310 if test -n "$ac_ct_CC"; then
19311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19312else
19313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19314for as_dir in $PATH
19315do
19316 IFS=$as_save_IFS
19317 test -z "$as_dir" && as_dir=.
19318 for ac_exec_ext in '' $ac_executable_extensions; do
19319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19320 ac_cv_prog_ac_ct_CC="cc"
19321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19322 break 2
19323 fi
19324done
19325done
19326
19327fi
19328fi
19329ac_ct_CC=$ac_cv_prog_ac_ct_CC
19330if test -n "$ac_ct_CC"; then
19331 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19332echo "${ECHO_T}$ac_ct_CC" >&6
19333else
19334 echo "$as_me:$LINENO: result: no" >&5
19335echo "${ECHO_T}no" >&6
19336fi
19337
19338 CC=$ac_ct_CC
19339else
19340 CC="$ac_cv_prog_CC"
19341fi
19342
19343fi
19344if test -z "$CC"; then
19345 # Extract the first word of "cc", so it can be a program name with args.
19346set dummy cc; ac_word=$2
19347echo "$as_me:$LINENO: checking for $ac_word" >&5
19348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19349if test "${ac_cv_prog_CC+set}" = set; then
19350 echo $ECHO_N "(cached) $ECHO_C" >&6
19351else
19352 if test -n "$CC"; then
19353 ac_cv_prog_CC="$CC" # Let the user override the test.
19354else
19355 ac_prog_rejected=no
19356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19357for as_dir in $PATH
19358do
19359 IFS=$as_save_IFS
19360 test -z "$as_dir" && as_dir=.
19361 for ac_exec_ext in '' $ac_executable_extensions; do
19362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19363 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19364 ac_prog_rejected=yes
19365 continue
19366 fi
19367 ac_cv_prog_CC="cc"
19368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19369 break 2
19370 fi
19371done
19372done
19373
19374if test $ac_prog_rejected = yes; then
19375 # We found a bogon in the path, so make sure we never use it.
19376 set dummy $ac_cv_prog_CC
19377 shift
19378 if test $# != 0; then
19379 # We chose a different compiler from the bogus one.
19380 # However, it has the same basename, so the bogon will be chosen
19381 # first if we set CC to just the basename; use the full file name.
19382 shift
19383 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19384 fi
19385fi
19386fi
19387fi
19388CC=$ac_cv_prog_CC
19389if test -n "$CC"; then
19390 echo "$as_me:$LINENO: result: $CC" >&5
19391echo "${ECHO_T}$CC" >&6
19392else
19393 echo "$as_me:$LINENO: result: no" >&5
19394echo "${ECHO_T}no" >&6
19395fi
19396
19397fi
19398if test -z "$CC"; then
19399 if test -n "$ac_tool_prefix"; then
19400 for ac_prog in cl
19401 do
19402 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19403set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19404echo "$as_me:$LINENO: checking for $ac_word" >&5
19405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19406if test "${ac_cv_prog_CC+set}" = set; then
19407 echo $ECHO_N "(cached) $ECHO_C" >&6
19408else
19409 if test -n "$CC"; then
19410 ac_cv_prog_CC="$CC" # Let the user override the test.
19411else
19412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19413for as_dir in $PATH
19414do
19415 IFS=$as_save_IFS
19416 test -z "$as_dir" && as_dir=.
19417 for ac_exec_ext in '' $ac_executable_extensions; do
19418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19419 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19421 break 2
19422 fi
19423done
19424done
19425
19426fi
19427fi
19428CC=$ac_cv_prog_CC
19429if test -n "$CC"; then
19430 echo "$as_me:$LINENO: result: $CC" >&5
19431echo "${ECHO_T}$CC" >&6
19432else
19433 echo "$as_me:$LINENO: result: no" >&5
19434echo "${ECHO_T}no" >&6
19435fi
19436
19437 test -n "$CC" && break
19438 done
19439fi
19440if test -z "$CC"; then
19441 ac_ct_CC=$CC
19442 for ac_prog in cl
19443do
19444 # Extract the first word of "$ac_prog", so it can be a program name with args.
19445set dummy $ac_prog; ac_word=$2
19446echo "$as_me:$LINENO: checking for $ac_word" >&5
19447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19448if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19449 echo $ECHO_N "(cached) $ECHO_C" >&6
19450else
19451 if test -n "$ac_ct_CC"; then
19452 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19453else
19454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19455for as_dir in $PATH
19456do
19457 IFS=$as_save_IFS
19458 test -z "$as_dir" && as_dir=.
19459 for ac_exec_ext in '' $ac_executable_extensions; do
19460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19461 ac_cv_prog_ac_ct_CC="$ac_prog"
19462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19463 break 2
19464 fi
19465done
19466done
19467
19468fi
19469fi
19470ac_ct_CC=$ac_cv_prog_ac_ct_CC
19471if test -n "$ac_ct_CC"; then
19472 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19473echo "${ECHO_T}$ac_ct_CC" >&6
19474else
19475 echo "$as_me:$LINENO: result: no" >&5
19476echo "${ECHO_T}no" >&6
19477fi
19478
19479 test -n "$ac_ct_CC" && break
19480done
19481
19482 CC=$ac_ct_CC
19483fi
19484
19485fi
19486
19487
19488test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19489See \`config.log' for more details." >&5
19490echo "$as_me: error: no acceptable C compiler found in \$PATH
19491See \`config.log' for more details." >&2;}
19492 { (exit 1); exit 1; }; }
19493
19494# Provide some information about the compiler.
19495echo "$as_me:$LINENO:" \
19496 "checking for C compiler version" >&5
19497ac_compiler=`set X $ac_compile; echo $2`
19498{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19499 (eval $ac_compiler --version </dev/null >&5) 2>&5
19500 ac_status=$?
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); }
19503{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19504 (eval $ac_compiler -v </dev/null >&5) 2>&5
19505 ac_status=$?
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); }
19508{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19509 (eval $ac_compiler -V </dev/null >&5) 2>&5
19510 ac_status=$?
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); }
19513
19514echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19515echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19516if test "${ac_cv_c_compiler_gnu+set}" = set; then
19517 echo $ECHO_N "(cached) $ECHO_C" >&6
19518else
19519 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000019520/* confdefs.h. */
19521_ACEOF
19522cat confdefs.h >>conftest.$ac_ext
19523cat >>conftest.$ac_ext <<_ACEOF
19524/* end confdefs.h. */
19525
19526int
19527main ()
19528{
19529#ifndef __GNUC__
19530 choke me
19531#endif
19532
19533 ;
19534 return 0;
19535}
19536_ACEOF
19537rm -f conftest.$ac_objext
19538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000019539 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000019540 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000019541 grep -v '^ *+' conftest.er1 >conftest.err
19542 rm -f conftest.er1
19543 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000019544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000019546 { ac_try='test -z "$ac_c_werror_flag"
19547 || test ! -s conftest.err'
19548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19549 (eval $ac_try) 2>&5
19550 ac_status=$?
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); }; } &&
19553 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000019554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555 (eval $ac_try) 2>&5
19556 ac_status=$?
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); }; }; then
19559 ac_compiler_gnu=yes
19560else
19561 echo "$as_me: failed program was:" >&5
19562sed 's/^/| /' conftest.$ac_ext >&5
19563
19564ac_compiler_gnu=no
19565fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000019566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000019567ac_cv_c_compiler_gnu=$ac_compiler_gnu
19568
19569fi
19570echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19571echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19572GCC=`test $ac_compiler_gnu = yes && echo yes`
19573ac_test_CFLAGS=${CFLAGS+set}
19574ac_save_CFLAGS=$CFLAGS
19575CFLAGS="-g"
19576echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19577echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19578if test "${ac_cv_prog_cc_g+set}" = set; then
19579 echo $ECHO_N "(cached) $ECHO_C" >&6
19580else
19581 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000019582/* confdefs.h. */
19583_ACEOF
19584cat confdefs.h >>conftest.$ac_ext
19585cat >>conftest.$ac_ext <<_ACEOF
19586/* end confdefs.h. */
19587
19588int
19589main ()
19590{
19591
19592 ;
19593 return 0;
19594}
19595_ACEOF
19596rm -f conftest.$ac_objext
19597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000019598 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000019599 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000019600 grep -v '^ *+' conftest.er1 >conftest.err
19601 rm -f conftest.er1
19602 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000019603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000019605 { ac_try='test -z "$ac_c_werror_flag"
19606 || test ! -s conftest.err'
19607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19608 (eval $ac_try) 2>&5
19609 ac_status=$?
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); }; } &&
19612 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000019613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19614 (eval $ac_try) 2>&5
19615 ac_status=$?
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); }; }; then
19618 ac_cv_prog_cc_g=yes
19619else
19620 echo "$as_me: failed program was:" >&5
19621sed 's/^/| /' conftest.$ac_ext >&5
19622
19623ac_cv_prog_cc_g=no
19624fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000019625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000019626fi
19627echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19628echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19629if test "$ac_test_CFLAGS" = set; then
19630 CFLAGS=$ac_save_CFLAGS
19631elif test $ac_cv_prog_cc_g = yes; then
19632 if test "$GCC" = yes; then
19633 CFLAGS="-g -O2"
19634 else
19635 CFLAGS="-g"
19636 fi
19637else
19638 if test "$GCC" = yes; then
19639 CFLAGS="-O2"
19640 else
19641 CFLAGS=
19642 fi
19643fi
19644echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19645echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19646if test "${ac_cv_prog_cc_stdc+set}" = set; then
19647 echo $ECHO_N "(cached) $ECHO_C" >&6
19648else
19649 ac_cv_prog_cc_stdc=no
19650ac_save_CC=$CC
19651cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000019652/* confdefs.h. */
19653_ACEOF
19654cat confdefs.h >>conftest.$ac_ext
19655cat >>conftest.$ac_ext <<_ACEOF
19656/* end confdefs.h. */
19657#include <stdarg.h>
19658#include <stdio.h>
19659#include <sys/types.h>
19660#include <sys/stat.h>
19661/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19662struct buf { int x; };
19663FILE * (*rcsopen) (struct buf *, struct stat *, int);
19664static char *e (p, i)
19665 char **p;
19666 int i;
19667{
19668 return p[i];
19669}
19670static char *f (char * (*g) (char **, int), char **p, ...)
19671{
19672 char *s;
19673 va_list v;
19674 va_start (v,p);
19675 s = g (p, va_arg (v,int));
19676 va_end (v);
19677 return s;
19678}
Lev Walkin8e8b5482004-06-17 23:42:48 +000019679
19680/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19681 function prototypes and stuff, but not '\xHH' hex character constants.
19682 These don't provoke an error unfortunately, instead are silently treated
19683 as 'x'. The following induces an error, until -std1 is added to get
19684 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19685 array size at least. It's necessary to write '\x00'==0 to get something
19686 that's true only with -std1. */
19687int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19688
Lev Walkinf15320b2004-06-03 03:38:44 +000019689int test (int i, double x);
19690struct s1 {int (*f) (int a);};
19691struct s2 {int (*f) (double a);};
19692int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19693int argc;
19694char **argv;
19695int
19696main ()
19697{
19698return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19699 ;
19700 return 0;
19701}
19702_ACEOF
19703# Don't try gcc -ansi; that turns off useful extensions and
19704# breaks some systems' header files.
19705# AIX -qlanglvl=ansi
19706# Ultrix and OSF/1 -std1
19707# HP-UX 10.20 and later -Ae
19708# HP-UX older versions -Aa -D_HPUX_SOURCE
19709# SVR4 -Xc -D__EXTENSIONS__
19710for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19711do
19712 CC="$ac_save_CC $ac_arg"
19713 rm -f conftest.$ac_objext
19714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000019715 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000019716 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000019717 grep -v '^ *+' conftest.er1 >conftest.err
19718 rm -f conftest.er1
19719 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000019720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000019722 { ac_try='test -z "$ac_c_werror_flag"
19723 || test ! -s conftest.err'
19724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725 (eval $ac_try) 2>&5
19726 ac_status=$?
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; } &&
19729 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000019730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19731 (eval $ac_try) 2>&5
19732 ac_status=$?
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); }; }; then
19735 ac_cv_prog_cc_stdc=$ac_arg
19736break
19737else
19738 echo "$as_me: failed program was:" >&5
19739sed 's/^/| /' conftest.$ac_ext >&5
19740
19741fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000019742rm -f conftest.err conftest.$ac_objext
Lev Walkinf15320b2004-06-03 03:38:44 +000019743done
19744rm -f conftest.$ac_ext conftest.$ac_objext
19745CC=$ac_save_CC
19746
19747fi
19748
19749case "x$ac_cv_prog_cc_stdc" in
19750 x|xno)
19751 echo "$as_me:$LINENO: result: none needed" >&5
19752echo "${ECHO_T}none needed" >&6 ;;
19753 *)
19754 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19755echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19756 CC="$CC $ac_cv_prog_cc_stdc" ;;
19757esac
19758
19759# Some people use a C++ compiler to compile C. Since we use `exit',
19760# in C++ we need to declare it. In case someone uses the same compiler
19761# for both compiling C and C++ we need to have the C++ compiler decide
19762# the declaration of exit, since it's the most demanding environment.
19763cat >conftest.$ac_ext <<_ACEOF
19764#ifndef __cplusplus
19765 choke me
19766#endif
19767_ACEOF
19768rm -f conftest.$ac_objext
19769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000019770 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000019771 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000019772 grep -v '^ *+' conftest.er1 >conftest.err
19773 rm -f conftest.er1
19774 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000019775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000019777 { ac_try='test -z "$ac_c_werror_flag"
19778 || test ! -s conftest.err'
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19781 ac_status=$?
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; } &&
19784 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000019785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19786 (eval $ac_try) 2>&5
19787 ac_status=$?
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; }; then
19790 for ac_declaration in \
Lev Walkin8e8b5482004-06-17 23:42:48 +000019791 '' \
Lev Walkinf15320b2004-06-03 03:38:44 +000019792 'extern "C" void std::exit (int) throw (); using std::exit;' \
19793 'extern "C" void std::exit (int); using std::exit;' \
19794 'extern "C" void exit (int) throw ();' \
19795 'extern "C" void exit (int);' \
19796 'void exit (int);'
19797do
19798 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000019799/* confdefs.h. */
19800_ACEOF
19801cat confdefs.h >>conftest.$ac_ext
19802cat >>conftest.$ac_ext <<_ACEOF
19803/* end confdefs.h. */
Lev Walkinf15320b2004-06-03 03:38:44 +000019804$ac_declaration
Lev Walkin8e8b5482004-06-17 23:42:48 +000019805#include <stdlib.h>
Lev Walkinf15320b2004-06-03 03:38:44 +000019806int
19807main ()
19808{
19809exit (42);
19810 ;
19811 return 0;
19812}
19813_ACEOF
19814rm -f conftest.$ac_objext
19815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000019816 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000019817 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000019818 grep -v '^ *+' conftest.er1 >conftest.err
19819 rm -f conftest.er1
19820 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000019821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000019823 { ac_try='test -z "$ac_c_werror_flag"
19824 || test ! -s conftest.err'
19825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826 (eval $ac_try) 2>&5
19827 ac_status=$?
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); }; } &&
19830 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000019831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19832 (eval $ac_try) 2>&5
19833 ac_status=$?
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); }; }; then
19836 :
19837else
19838 echo "$as_me: failed program was:" >&5
19839sed 's/^/| /' conftest.$ac_ext >&5
19840
19841continue
19842fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000019843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000019844 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000019845/* confdefs.h. */
19846_ACEOF
19847cat confdefs.h >>conftest.$ac_ext
19848cat >>conftest.$ac_ext <<_ACEOF
19849/* end confdefs.h. */
19850$ac_declaration
19851int
19852main ()
19853{
19854exit (42);
19855 ;
19856 return 0;
19857}
19858_ACEOF
19859rm -f conftest.$ac_objext
19860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000019861 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000019862 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000019863 grep -v '^ *+' conftest.er1 >conftest.err
19864 rm -f conftest.er1
19865 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000019866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000019868 { ac_try='test -z "$ac_c_werror_flag"
19869 || test ! -s conftest.err'
19870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19871 (eval $ac_try) 2>&5
19872 ac_status=$?
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); }; } &&
19875 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000019876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19877 (eval $ac_try) 2>&5
19878 ac_status=$?
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); }; }; then
19881 break
19882else
19883 echo "$as_me: failed program was:" >&5
19884sed 's/^/| /' conftest.$ac_ext >&5
19885
19886fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000019887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000019888done
19889rm -f conftest*
19890if test -n "$ac_declaration"; then
19891 echo '#ifdef __cplusplus' >>confdefs.h
19892 echo $ac_declaration >>confdefs.h
19893 echo '#endif' >>confdefs.h
19894fi
19895
19896else
19897 echo "$as_me: failed program was:" >&5
19898sed 's/^/| /' conftest.$ac_ext >&5
19899
19900fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000019901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000019902ac_ext=c
19903ac_cpp='$CPP $CPPFLAGS'
19904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19906ac_compiler_gnu=$ac_cv_c_compiler_gnu
19907
19908depcc="$CC" am_compiler_list=
19909
19910echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19911echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19912if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19913 echo $ECHO_N "(cached) $ECHO_C" >&6
19914else
19915 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19916 # We make a subdir and do the tests there. Otherwise we can end up
19917 # making bogus files that we don't know about and never remove. For
19918 # instance it was reported that on HP-UX the gcc test will end up
19919 # making a dummy file named `D' -- because `-MD' means `put the output
19920 # in D'.
19921 mkdir conftest.dir
19922 # Copy depcomp to subdir because otherwise we won't find it if we're
19923 # using a relative directory.
19924 cp "$am_depcomp" conftest.dir
19925 cd conftest.dir
Lev Walkin8e8b5482004-06-17 23:42:48 +000019926 # We will build objects and dependencies in a subdirectory because
19927 # it helps to detect inapplicable dependency modes. For instance
19928 # both Tru64's cc and ICC support -MD to output dependencies as a
19929 # side effect of compilation, but ICC will put the dependencies in
19930 # the current directory while Tru64 will put them in the object
19931 # directory.
19932 mkdir sub
Lev Walkinf15320b2004-06-03 03:38:44 +000019933
19934 am_cv_CC_dependencies_compiler_type=none
19935 if test "$am_compiler_list" = ""; then
19936 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19937 fi
19938 for depmode in $am_compiler_list; do
Lev Walkin8e8b5482004-06-17 23:42:48 +000019939 # Setup a source with many dependencies, because some compilers
19940 # like to wrap large dependency lists on column 80 (with \), and
19941 # we should not choose a depcomp mode which is confused by this.
19942 #
Lev Walkinf15320b2004-06-03 03:38:44 +000019943 # We need to recreate these files for each test, as the compiler may
19944 # overwrite some of them when testing with obscure command lines.
19945 # This happens at least with the AIX C compiler.
Lev Walkin8e8b5482004-06-17 23:42:48 +000019946 : > sub/conftest.c
19947 for i in 1 2 3 4 5 6; do
19948 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19949 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19950 # Solaris 8's {/usr,}/bin/sh.
19951 touch sub/conftst$i.h
19952 done
19953 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Lev Walkinf15320b2004-06-03 03:38:44 +000019954
19955 case $depmode in
19956 nosideeffect)
19957 # after this tag, mechanisms are not by side-effect, so they'll
19958 # only be used when explicitly requested
19959 if test "x$enable_dependency_tracking" = xyes; then
19960 continue
19961 else
19962 break
19963 fi
19964 ;;
19965 none) break ;;
19966 esac
19967 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19968 # mode. It turns out that the SunPro C++ compiler does not properly
19969 # handle `-M -o', and we need to detect this.
19970 if depmode=$depmode \
Lev Walkin8e8b5482004-06-17 23:42:48 +000019971 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19972 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19973 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19974 >/dev/null 2>conftest.err &&
19975 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19976 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinf15320b2004-06-03 03:38:44 +000019977 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000019978 # icc doesn't choke on unknown options, it will just issue warnings
19979 # or remarks (even with -Werror). So we grep stderr for any message
19980 # that says an option was ignored or not supported.
19981 # When given -MP, icc 7.0 and 7.1 complain thusly:
19982 # icc: Command line warning: ignoring option '-M'; no argument required
19983 # The diagnosis changed in icc 8.0:
19984 # icc: Command line remark: option '-MP' not supported
19985 if (grep 'ignoring option' conftest.err ||
19986 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19987 am_cv_CC_dependencies_compiler_type=$depmode
19988 break
19989 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000019990 fi
19991 done
19992
19993 cd ..
19994 rm -rf conftest.dir
19995else
19996 am_cv_CC_dependencies_compiler_type=none
19997fi
19998
19999fi
20000echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20001echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000020002CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20003
20004
20005
20006if
20007 test "x$enable_dependency_tracking" != xno \
20008 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20009 am__fastdepCC_TRUE=
20010 am__fastdepCC_FALSE='#'
20011else
20012 am__fastdepCC_TRUE='#'
20013 am__fastdepCC_FALSE=
20014fi
Lev Walkinf15320b2004-06-03 03:38:44 +000020015
20016
20017ac_ext=c
20018ac_cpp='$CPP $CPPFLAGS'
20019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20021ac_compiler_gnu=$ac_cv_c_compiler_gnu
20022echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
20023echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
20024# On Suns, sometimes $CPP names a directory.
20025if test -n "$CPP" && test -d "$CPP"; then
20026 CPP=
20027fi
20028if test -z "$CPP"; then
20029 if test "${ac_cv_prog_CPP+set}" = set; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
20031else
20032 # Double quotes because CPP needs to be expanded
20033 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
20034 do
20035 ac_preproc_ok=false
20036for ac_c_preproc_warn_flag in '' yes
20037do
20038 # Use a header file that comes with gcc, so configuring glibc
20039 # with a fresh cross-compiler works.
20040 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20041 # <limits.h> exists even on freestanding compilers.
20042 # On the NeXT, cc -E runs the code through the compiler's parser,
20043 # not just through cpp. "Syntax error" is here to catch this case.
20044 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000020045/* confdefs.h. */
20046_ACEOF
20047cat confdefs.h >>conftest.$ac_ext
20048cat >>conftest.$ac_ext <<_ACEOF
20049/* end confdefs.h. */
20050#ifdef __STDC__
20051# include <limits.h>
20052#else
20053# include <assert.h>
20054#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000020055 Syntax error
Lev Walkinf15320b2004-06-03 03:38:44 +000020056_ACEOF
20057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20059 ac_status=$?
20060 grep -v '^ *+' conftest.er1 >conftest.err
20061 rm -f conftest.er1
20062 cat conftest.err >&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); } >/dev/null; then
20065 if test -s conftest.err; then
20066 ac_cpp_err=$ac_c_preproc_warn_flag
Lev Walkin8e8b5482004-06-17 23:42:48 +000020067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Lev Walkinf15320b2004-06-03 03:38:44 +000020068 else
20069 ac_cpp_err=
20070 fi
20071else
20072 ac_cpp_err=yes
20073fi
20074if test -z "$ac_cpp_err"; then
20075 :
20076else
20077 echo "$as_me: failed program was:" >&5
20078sed 's/^/| /' conftest.$ac_ext >&5
20079
20080 # Broken: fails on valid input.
20081continue
20082fi
20083rm -f conftest.err conftest.$ac_ext
20084
20085 # OK, works on sane cases. Now check whether non-existent headers
20086 # can be detected and how.
20087 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000020088/* confdefs.h. */
20089_ACEOF
20090cat confdefs.h >>conftest.$ac_ext
20091cat >>conftest.$ac_ext <<_ACEOF
20092/* end confdefs.h. */
20093#include <ac_nonexistent.h>
20094_ACEOF
20095if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20097 ac_status=$?
20098 grep -v '^ *+' conftest.er1 >conftest.err
20099 rm -f conftest.er1
20100 cat conftest.err >&5
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); } >/dev/null; then
20103 if test -s conftest.err; then
20104 ac_cpp_err=$ac_c_preproc_warn_flag
Lev Walkin8e8b5482004-06-17 23:42:48 +000020105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Lev Walkinf15320b2004-06-03 03:38:44 +000020106 else
20107 ac_cpp_err=
20108 fi
20109else
20110 ac_cpp_err=yes
20111fi
20112if test -z "$ac_cpp_err"; then
20113 # Broken: success on invalid input.
20114continue
20115else
20116 echo "$as_me: failed program was:" >&5
20117sed 's/^/| /' conftest.$ac_ext >&5
20118
20119 # Passes both tests.
20120ac_preproc_ok=:
20121break
20122fi
20123rm -f conftest.err conftest.$ac_ext
20124
20125done
20126# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20127rm -f conftest.err conftest.$ac_ext
20128if $ac_preproc_ok; then
20129 break
20130fi
20131
20132 done
20133 ac_cv_prog_CPP=$CPP
20134
20135fi
20136 CPP=$ac_cv_prog_CPP
20137else
20138 ac_cv_prog_CPP=$CPP
20139fi
20140echo "$as_me:$LINENO: result: $CPP" >&5
20141echo "${ECHO_T}$CPP" >&6
20142ac_preproc_ok=false
20143for ac_c_preproc_warn_flag in '' yes
20144do
20145 # Use a header file that comes with gcc, so configuring glibc
20146 # with a fresh cross-compiler works.
20147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20148 # <limits.h> exists even on freestanding compilers.
20149 # On the NeXT, cc -E runs the code through the compiler's parser,
20150 # not just through cpp. "Syntax error" is here to catch this case.
20151 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000020152/* confdefs.h. */
20153_ACEOF
20154cat confdefs.h >>conftest.$ac_ext
20155cat >>conftest.$ac_ext <<_ACEOF
20156/* end confdefs.h. */
20157#ifdef __STDC__
20158# include <limits.h>
20159#else
20160# include <assert.h>
20161#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000020162 Syntax error
Lev Walkinf15320b2004-06-03 03:38:44 +000020163_ACEOF
20164if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20166 ac_status=$?
20167 grep -v '^ *+' conftest.er1 >conftest.err
20168 rm -f conftest.er1
20169 cat conftest.err >&5
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); } >/dev/null; then
20172 if test -s conftest.err; then
20173 ac_cpp_err=$ac_c_preproc_warn_flag
Lev Walkin8e8b5482004-06-17 23:42:48 +000020174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Lev Walkinf15320b2004-06-03 03:38:44 +000020175 else
20176 ac_cpp_err=
20177 fi
20178else
20179 ac_cpp_err=yes
20180fi
20181if test -z "$ac_cpp_err"; then
20182 :
20183else
20184 echo "$as_me: failed program was:" >&5
20185sed 's/^/| /' conftest.$ac_ext >&5
20186
20187 # Broken: fails on valid input.
20188continue
20189fi
20190rm -f conftest.err conftest.$ac_ext
20191
20192 # OK, works on sane cases. Now check whether non-existent headers
20193 # can be detected and how.
20194 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000020195/* confdefs.h. */
20196_ACEOF
20197cat confdefs.h >>conftest.$ac_ext
20198cat >>conftest.$ac_ext <<_ACEOF
20199/* end confdefs.h. */
20200#include <ac_nonexistent.h>
20201_ACEOF
20202if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20204 ac_status=$?
20205 grep -v '^ *+' conftest.er1 >conftest.err
20206 rm -f conftest.er1
20207 cat conftest.err >&5
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); } >/dev/null; then
20210 if test -s conftest.err; then
20211 ac_cpp_err=$ac_c_preproc_warn_flag
Lev Walkin8e8b5482004-06-17 23:42:48 +000020212 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Lev Walkinf15320b2004-06-03 03:38:44 +000020213 else
20214 ac_cpp_err=
20215 fi
20216else
20217 ac_cpp_err=yes
20218fi
20219if test -z "$ac_cpp_err"; then
20220 # Broken: success on invalid input.
20221continue
20222else
20223 echo "$as_me: failed program was:" >&5
20224sed 's/^/| /' conftest.$ac_ext >&5
20225
20226 # Passes both tests.
20227ac_preproc_ok=:
20228break
20229fi
20230rm -f conftest.err conftest.$ac_ext
20231
20232done
20233# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20234rm -f conftest.err conftest.$ac_ext
20235if $ac_preproc_ok; then
20236 :
20237else
20238 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
20239See \`config.log' for more details." >&5
20240echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
20241See \`config.log' for more details." >&2;}
20242 { (exit 1); exit 1; }; }
20243fi
20244
20245ac_ext=c
20246ac_cpp='$CPP $CPPFLAGS'
20247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20249ac_compiler_gnu=$ac_cv_c_compiler_gnu
20250
Lev Walkind8b940c2004-08-11 05:35:51 +000020251ac_ext=cc
20252ac_cpp='$CXXCPP $CPPFLAGS'
20253ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20254ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20255ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20256if test -n "$ac_tool_prefix"; then
20257 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
20258 do
20259 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20260set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20261echo "$as_me:$LINENO: checking for $ac_word" >&5
20262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20263if test "${ac_cv_prog_CXX+set}" = set; then
20264 echo $ECHO_N "(cached) $ECHO_C" >&6
20265else
20266 if test -n "$CXX"; then
20267 ac_cv_prog_CXX="$CXX" # Let the user override the test.
20268else
20269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20270for as_dir in $PATH
20271do
20272 IFS=$as_save_IFS
20273 test -z "$as_dir" && as_dir=.
20274 for ac_exec_ext in '' $ac_executable_extensions; do
20275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20276 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
20277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20278 break 2
20279 fi
20280done
20281done
20282
20283fi
20284fi
20285CXX=$ac_cv_prog_CXX
20286if test -n "$CXX"; then
20287 echo "$as_me:$LINENO: result: $CXX" >&5
20288echo "${ECHO_T}$CXX" >&6
20289else
20290 echo "$as_me:$LINENO: result: no" >&5
20291echo "${ECHO_T}no" >&6
20292fi
20293
20294 test -n "$CXX" && break
20295 done
20296fi
20297if test -z "$CXX"; then
20298 ac_ct_CXX=$CXX
20299 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
20300do
20301 # Extract the first word of "$ac_prog", so it can be a program name with args.
20302set dummy $ac_prog; ac_word=$2
20303echo "$as_me:$LINENO: checking for $ac_word" >&5
20304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20305if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
20306 echo $ECHO_N "(cached) $ECHO_C" >&6
20307else
20308 if test -n "$ac_ct_CXX"; then
20309 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
20310else
20311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20312for as_dir in $PATH
20313do
20314 IFS=$as_save_IFS
20315 test -z "$as_dir" && as_dir=.
20316 for ac_exec_ext in '' $ac_executable_extensions; do
20317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20318 ac_cv_prog_ac_ct_CXX="$ac_prog"
20319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20320 break 2
20321 fi
20322done
20323done
20324
20325fi
20326fi
20327ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
20328if test -n "$ac_ct_CXX"; then
20329 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
20330echo "${ECHO_T}$ac_ct_CXX" >&6
20331else
20332 echo "$as_me:$LINENO: result: no" >&5
20333echo "${ECHO_T}no" >&6
20334fi
20335
20336 test -n "$ac_ct_CXX" && break
20337done
20338test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
20339
20340 CXX=$ac_ct_CXX
20341fi
20342
20343
20344# Provide some information about the compiler.
20345echo "$as_me:$LINENO:" \
20346 "checking for C++ compiler version" >&5
20347ac_compiler=`set X $ac_compile; echo $2`
20348{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
20349 (eval $ac_compiler --version </dev/null >&5) 2>&5
20350 ac_status=$?
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); }
20353{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
20354 (eval $ac_compiler -v </dev/null >&5) 2>&5
20355 ac_status=$?
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); }
20358{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
20359 (eval $ac_compiler -V </dev/null >&5) 2>&5
20360 ac_status=$?
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }
20363
20364echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
20365echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
20366if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
20367 echo $ECHO_N "(cached) $ECHO_C" >&6
20368else
20369 cat >conftest.$ac_ext <<_ACEOF
20370/* confdefs.h. */
20371_ACEOF
20372cat confdefs.h >>conftest.$ac_ext
20373cat >>conftest.$ac_ext <<_ACEOF
20374/* end confdefs.h. */
20375
20376int
20377main ()
20378{
20379#ifndef __GNUC__
20380 choke me
20381#endif
20382
20383 ;
20384 return 0;
20385}
20386_ACEOF
20387rm -f conftest.$ac_objext
20388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20389 (eval $ac_compile) 2>conftest.er1
20390 ac_status=$?
20391 grep -v '^ *+' conftest.er1 >conftest.err
20392 rm -f conftest.er1
20393 cat conftest.err >&5
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395 (exit $ac_status); } &&
20396 { ac_try='test -z "$ac_cxx_werror_flag"
20397 || test ! -s conftest.err'
20398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20399 (eval $ac_try) 2>&5
20400 ac_status=$?
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); }; } &&
20403 { ac_try='test -s conftest.$ac_objext'
20404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20405 (eval $ac_try) 2>&5
20406 ac_status=$?
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); }; }; then
20409 ac_compiler_gnu=yes
20410else
20411 echo "$as_me: failed program was:" >&5
20412sed 's/^/| /' conftest.$ac_ext >&5
20413
20414ac_compiler_gnu=no
20415fi
20416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20417ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
20418
20419fi
20420echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
20421echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
20422GXX=`test $ac_compiler_gnu = yes && echo yes`
20423ac_test_CXXFLAGS=${CXXFLAGS+set}
20424ac_save_CXXFLAGS=$CXXFLAGS
20425CXXFLAGS="-g"
20426echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
20427echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
20428if test "${ac_cv_prog_cxx_g+set}" = set; then
20429 echo $ECHO_N "(cached) $ECHO_C" >&6
20430else
20431 cat >conftest.$ac_ext <<_ACEOF
20432/* confdefs.h. */
20433_ACEOF
20434cat confdefs.h >>conftest.$ac_ext
20435cat >>conftest.$ac_ext <<_ACEOF
20436/* end confdefs.h. */
20437
20438int
20439main ()
20440{
20441
20442 ;
20443 return 0;
20444}
20445_ACEOF
20446rm -f conftest.$ac_objext
20447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20448 (eval $ac_compile) 2>conftest.er1
20449 ac_status=$?
20450 grep -v '^ *+' conftest.er1 >conftest.err
20451 rm -f conftest.er1
20452 cat conftest.err >&5
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); } &&
20455 { ac_try='test -z "$ac_cxx_werror_flag"
20456 || test ! -s conftest.err'
20457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20458 (eval $ac_try) 2>&5
20459 ac_status=$?
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); }; } &&
20462 { ac_try='test -s conftest.$ac_objext'
20463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464 (eval $ac_try) 2>&5
20465 ac_status=$?
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); }; }; then
20468 ac_cv_prog_cxx_g=yes
20469else
20470 echo "$as_me: failed program was:" >&5
20471sed 's/^/| /' conftest.$ac_ext >&5
20472
20473ac_cv_prog_cxx_g=no
20474fi
20475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20476fi
20477echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
20478echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
20479if test "$ac_test_CXXFLAGS" = set; then
20480 CXXFLAGS=$ac_save_CXXFLAGS
20481elif test $ac_cv_prog_cxx_g = yes; then
20482 if test "$GXX" = yes; then
20483 CXXFLAGS="-g -O2"
20484 else
20485 CXXFLAGS="-g"
20486 fi
20487else
20488 if test "$GXX" = yes; then
20489 CXXFLAGS="-O2"
20490 else
20491 CXXFLAGS=
20492 fi
20493fi
20494for ac_declaration in \
20495 '' \
20496 'extern "C" void std::exit (int) throw (); using std::exit;' \
20497 'extern "C" void std::exit (int); using std::exit;' \
20498 'extern "C" void exit (int) throw ();' \
20499 'extern "C" void exit (int);' \
20500 'void exit (int);'
20501do
20502 cat >conftest.$ac_ext <<_ACEOF
20503/* confdefs.h. */
20504_ACEOF
20505cat confdefs.h >>conftest.$ac_ext
20506cat >>conftest.$ac_ext <<_ACEOF
20507/* end confdefs.h. */
20508$ac_declaration
20509#include <stdlib.h>
20510int
20511main ()
20512{
20513exit (42);
20514 ;
20515 return 0;
20516}
20517_ACEOF
20518rm -f conftest.$ac_objext
20519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20520 (eval $ac_compile) 2>conftest.er1
20521 ac_status=$?
20522 grep -v '^ *+' conftest.er1 >conftest.err
20523 rm -f conftest.er1
20524 cat conftest.err >&5
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); } &&
20527 { ac_try='test -z "$ac_cxx_werror_flag"
20528 || test ! -s conftest.err'
20529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20530 (eval $ac_try) 2>&5
20531 ac_status=$?
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); }; } &&
20534 { ac_try='test -s conftest.$ac_objext'
20535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20536 (eval $ac_try) 2>&5
20537 ac_status=$?
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); }; }; then
20540 :
20541else
20542 echo "$as_me: failed program was:" >&5
20543sed 's/^/| /' conftest.$ac_ext >&5
20544
20545continue
20546fi
20547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20548 cat >conftest.$ac_ext <<_ACEOF
20549/* confdefs.h. */
20550_ACEOF
20551cat confdefs.h >>conftest.$ac_ext
20552cat >>conftest.$ac_ext <<_ACEOF
20553/* end confdefs.h. */
20554$ac_declaration
20555int
20556main ()
20557{
20558exit (42);
20559 ;
20560 return 0;
20561}
20562_ACEOF
20563rm -f conftest.$ac_objext
20564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20565 (eval $ac_compile) 2>conftest.er1
20566 ac_status=$?
20567 grep -v '^ *+' conftest.er1 >conftest.err
20568 rm -f conftest.er1
20569 cat conftest.err >&5
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); } &&
20572 { ac_try='test -z "$ac_cxx_werror_flag"
20573 || test ! -s conftest.err'
20574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20575 (eval $ac_try) 2>&5
20576 ac_status=$?
20577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); }; } &&
20579 { ac_try='test -s conftest.$ac_objext'
20580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20581 (eval $ac_try) 2>&5
20582 ac_status=$?
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); }; }; then
20585 break
20586else
20587 echo "$as_me: failed program was:" >&5
20588sed 's/^/| /' conftest.$ac_ext >&5
20589
20590fi
20591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20592done
20593rm -f conftest*
20594if test -n "$ac_declaration"; then
20595 echo '#ifdef __cplusplus' >>confdefs.h
20596 echo $ac_declaration >>confdefs.h
20597 echo '#endif' >>confdefs.h
20598fi
20599
20600ac_ext=c
20601ac_cpp='$CPP $CPPFLAGS'
20602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20604ac_compiler_gnu=$ac_cv_c_compiler_gnu
20605
20606depcc="$CXX" am_compiler_list=
20607
20608echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20609echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
20610if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
20611 echo $ECHO_N "(cached) $ECHO_C" >&6
20612else
20613 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20614 # We make a subdir and do the tests there. Otherwise we can end up
20615 # making bogus files that we don't know about and never remove. For
20616 # instance it was reported that on HP-UX the gcc test will end up
20617 # making a dummy file named `D' -- because `-MD' means `put the output
20618 # in D'.
20619 mkdir conftest.dir
20620 # Copy depcomp to subdir because otherwise we won't find it if we're
20621 # using a relative directory.
20622 cp "$am_depcomp" conftest.dir
20623 cd conftest.dir
20624 # We will build objects and dependencies in a subdirectory because
20625 # it helps to detect inapplicable dependency modes. For instance
20626 # both Tru64's cc and ICC support -MD to output dependencies as a
20627 # side effect of compilation, but ICC will put the dependencies in
20628 # the current directory while Tru64 will put them in the object
20629 # directory.
20630 mkdir sub
20631
20632 am_cv_CXX_dependencies_compiler_type=none
20633 if test "$am_compiler_list" = ""; then
20634 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20635 fi
20636 for depmode in $am_compiler_list; do
20637 # Setup a source with many dependencies, because some compilers
20638 # like to wrap large dependency lists on column 80 (with \), and
20639 # we should not choose a depcomp mode which is confused by this.
20640 #
20641 # We need to recreate these files for each test, as the compiler may
20642 # overwrite some of them when testing with obscure command lines.
20643 # This happens at least with the AIX C compiler.
20644 : > sub/conftest.c
20645 for i in 1 2 3 4 5 6; do
20646 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20647 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20648 # Solaris 8's {/usr,}/bin/sh.
20649 touch sub/conftst$i.h
20650 done
20651 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20652
20653 case $depmode in
20654 nosideeffect)
20655 # after this tag, mechanisms are not by side-effect, so they'll
20656 # only be used when explicitly requested
20657 if test "x$enable_dependency_tracking" = xyes; then
20658 continue
20659 else
20660 break
20661 fi
20662 ;;
20663 none) break ;;
20664 esac
20665 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20666 # mode. It turns out that the SunPro C++ compiler does not properly
20667 # handle `-M -o', and we need to detect this.
20668 if depmode=$depmode \
20669 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20670 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20671 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20672 >/dev/null 2>conftest.err &&
20673 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20674 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20675 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20676 # icc doesn't choke on unknown options, it will just issue warnings
20677 # or remarks (even with -Werror). So we grep stderr for any message
20678 # that says an option was ignored or not supported.
20679 # When given -MP, icc 7.0 and 7.1 complain thusly:
20680 # icc: Command line warning: ignoring option '-M'; no argument required
20681 # The diagnosis changed in icc 8.0:
20682 # icc: Command line remark: option '-MP' not supported
20683 if (grep 'ignoring option' conftest.err ||
20684 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20685 am_cv_CXX_dependencies_compiler_type=$depmode
20686 break
20687 fi
20688 fi
20689 done
20690
20691 cd ..
20692 rm -rf conftest.dir
20693else
20694 am_cv_CXX_dependencies_compiler_type=none
20695fi
20696
20697fi
20698echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
20699echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
20700CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
20701
20702
20703
20704if
20705 test "x$enable_dependency_tracking" != xno \
20706 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
20707 am__fastdepCXX_TRUE=
20708 am__fastdepCXX_FALSE='#'
20709else
20710 am__fastdepCXX_TRUE='#'
20711 am__fastdepCXX_FALSE=
20712fi
20713
20714
20715ac_ext=cc
20716ac_cpp='$CXXCPP $CPPFLAGS'
20717ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20718ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20719ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20720echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20721echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20722if test -z "$CXXCPP"; then
20723 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20724 echo $ECHO_N "(cached) $ECHO_C" >&6
20725else
20726 # Double quotes because CXXCPP needs to be expanded
20727 for CXXCPP in "$CXX -E" "/lib/cpp"
20728 do
20729 ac_preproc_ok=false
20730for ac_cxx_preproc_warn_flag in '' yes
20731do
20732 # Use a header file that comes with gcc, so configuring glibc
20733 # with a fresh cross-compiler works.
20734 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20735 # <limits.h> exists even on freestanding compilers.
20736 # On the NeXT, cc -E runs the code through the compiler's parser,
20737 # not just through cpp. "Syntax error" is here to catch this case.
20738 cat >conftest.$ac_ext <<_ACEOF
20739/* confdefs.h. */
20740_ACEOF
20741cat confdefs.h >>conftest.$ac_ext
20742cat >>conftest.$ac_ext <<_ACEOF
20743/* end confdefs.h. */
20744#ifdef __STDC__
20745# include <limits.h>
20746#else
20747# include <assert.h>
20748#endif
20749 Syntax error
20750_ACEOF
20751if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20753 ac_status=$?
20754 grep -v '^ *+' conftest.er1 >conftest.err
20755 rm -f conftest.er1
20756 cat conftest.err >&5
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); } >/dev/null; then
20759 if test -s conftest.err; then
20760 ac_cpp_err=$ac_cxx_preproc_warn_flag
20761 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20762 else
20763 ac_cpp_err=
20764 fi
20765else
20766 ac_cpp_err=yes
20767fi
20768if test -z "$ac_cpp_err"; then
20769 :
20770else
20771 echo "$as_me: failed program was:" >&5
20772sed 's/^/| /' conftest.$ac_ext >&5
20773
20774 # Broken: fails on valid input.
20775continue
20776fi
20777rm -f conftest.err conftest.$ac_ext
20778
20779 # OK, works on sane cases. Now check whether non-existent headers
20780 # can be detected and how.
20781 cat >conftest.$ac_ext <<_ACEOF
20782/* confdefs.h. */
20783_ACEOF
20784cat confdefs.h >>conftest.$ac_ext
20785cat >>conftest.$ac_ext <<_ACEOF
20786/* end confdefs.h. */
20787#include <ac_nonexistent.h>
20788_ACEOF
20789if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20791 ac_status=$?
20792 grep -v '^ *+' conftest.er1 >conftest.err
20793 rm -f conftest.er1
20794 cat conftest.err >&5
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); } >/dev/null; then
20797 if test -s conftest.err; then
20798 ac_cpp_err=$ac_cxx_preproc_warn_flag
20799 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20800 else
20801 ac_cpp_err=
20802 fi
20803else
20804 ac_cpp_err=yes
20805fi
20806if test -z "$ac_cpp_err"; then
20807 # Broken: success on invalid input.
20808continue
20809else
20810 echo "$as_me: failed program was:" >&5
20811sed 's/^/| /' conftest.$ac_ext >&5
20812
20813 # Passes both tests.
20814ac_preproc_ok=:
20815break
20816fi
20817rm -f conftest.err conftest.$ac_ext
20818
20819done
20820# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20821rm -f conftest.err conftest.$ac_ext
20822if $ac_preproc_ok; then
20823 break
20824fi
20825
20826 done
20827 ac_cv_prog_CXXCPP=$CXXCPP
20828
20829fi
20830 CXXCPP=$ac_cv_prog_CXXCPP
20831else
20832 ac_cv_prog_CXXCPP=$CXXCPP
20833fi
20834echo "$as_me:$LINENO: result: $CXXCPP" >&5
20835echo "${ECHO_T}$CXXCPP" >&6
20836ac_preproc_ok=false
20837for ac_cxx_preproc_warn_flag in '' yes
20838do
20839 # Use a header file that comes with gcc, so configuring glibc
20840 # with a fresh cross-compiler works.
20841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20842 # <limits.h> exists even on freestanding compilers.
20843 # On the NeXT, cc -E runs the code through the compiler's parser,
20844 # not just through cpp. "Syntax error" is here to catch this case.
20845 cat >conftest.$ac_ext <<_ACEOF
20846/* confdefs.h. */
20847_ACEOF
20848cat confdefs.h >>conftest.$ac_ext
20849cat >>conftest.$ac_ext <<_ACEOF
20850/* end confdefs.h. */
20851#ifdef __STDC__
20852# include <limits.h>
20853#else
20854# include <assert.h>
20855#endif
20856 Syntax error
20857_ACEOF
20858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20860 ac_status=$?
20861 grep -v '^ *+' conftest.er1 >conftest.err
20862 rm -f conftest.er1
20863 cat conftest.err >&5
20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); } >/dev/null; then
20866 if test -s conftest.err; then
20867 ac_cpp_err=$ac_cxx_preproc_warn_flag
20868 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20869 else
20870 ac_cpp_err=
20871 fi
20872else
20873 ac_cpp_err=yes
20874fi
20875if test -z "$ac_cpp_err"; then
20876 :
20877else
20878 echo "$as_me: failed program was:" >&5
20879sed 's/^/| /' conftest.$ac_ext >&5
20880
20881 # Broken: fails on valid input.
20882continue
20883fi
20884rm -f conftest.err conftest.$ac_ext
20885
20886 # OK, works on sane cases. Now check whether non-existent headers
20887 # can be detected and how.
20888 cat >conftest.$ac_ext <<_ACEOF
20889/* confdefs.h. */
20890_ACEOF
20891cat confdefs.h >>conftest.$ac_ext
20892cat >>conftest.$ac_ext <<_ACEOF
20893/* end confdefs.h. */
20894#include <ac_nonexistent.h>
20895_ACEOF
20896if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20898 ac_status=$?
20899 grep -v '^ *+' conftest.er1 >conftest.err
20900 rm -f conftest.er1
20901 cat conftest.err >&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); } >/dev/null; then
20904 if test -s conftest.err; then
20905 ac_cpp_err=$ac_cxx_preproc_warn_flag
20906 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20907 else
20908 ac_cpp_err=
20909 fi
20910else
20911 ac_cpp_err=yes
20912fi
20913if test -z "$ac_cpp_err"; then
20914 # Broken: success on invalid input.
20915continue
20916else
20917 echo "$as_me: failed program was:" >&5
20918sed 's/^/| /' conftest.$ac_ext >&5
20919
20920 # Passes both tests.
20921ac_preproc_ok=:
20922break
20923fi
20924rm -f conftest.err conftest.$ac_ext
20925
20926done
20927# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20928rm -f conftest.err conftest.$ac_ext
20929if $ac_preproc_ok; then
20930 :
20931else
20932 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20933See \`config.log' for more details." >&5
20934echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20935See \`config.log' for more details." >&2;}
20936 { (exit 1); exit 1; }; }
20937fi
20938
20939ac_ext=c
20940ac_cpp='$CPP $CPPFLAGS'
20941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20943ac_compiler_gnu=$ac_cv_c_compiler_gnu
20944
20945
20946
20947if test -n "$ac_ct_CXX"; then
20948 CPLUSPLUS_FOUND_TRUE=
20949 CPLUSPLUS_FOUND_FALSE='#'
20950else
20951 CPLUSPLUS_FOUND_TRUE='#'
20952 CPLUSPLUS_FOUND_FALSE=
20953fi
20954
Lev Walkinf15320b2004-06-03 03:38:44 +000020955# Find a good install program. We prefer a C program (faster),
20956# so one script is as good as another. But avoid the broken or
20957# incompatible versions:
20958# SysV /etc/install, /usr/sbin/install
20959# SunOS /usr/etc/install
20960# IRIX /sbin/install
20961# AIX /bin/install
20962# AmigaOS /C/install, which installs bootblocks on floppy discs
20963# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20964# AFS /usr/afsws/bin/install, which mishandles nonexistent args
20965# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Lev Walkin8e8b5482004-06-17 23:42:48 +000020966# OS/2's system install, which has a completely different semantic
Lev Walkinf15320b2004-06-03 03:38:44 +000020967# ./install, which can be erroneously created by make from ./install.sh.
20968echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20969echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
20970if test -z "$INSTALL"; then
20971if test "${ac_cv_path_install+set}" = set; then
20972 echo $ECHO_N "(cached) $ECHO_C" >&6
20973else
20974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20975for as_dir in $PATH
20976do
20977 IFS=$as_save_IFS
20978 test -z "$as_dir" && as_dir=.
20979 # Account for people who put trailing slashes in PATH elements.
20980case $as_dir/ in
20981 ./ | .// | /cC/* | \
20982 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Lev Walkin8e8b5482004-06-17 23:42:48 +000020983 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Lev Walkinf15320b2004-06-03 03:38:44 +000020984 /usr/ucb/* ) ;;
20985 *)
20986 # OSF1 and SCO ODT 3.0 have their own names for install.
20987 # Don't use installbsd from OSF since it installs stuff as root
20988 # by default.
20989 for ac_prog in ginstall scoinst install; do
20990 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin8e8b5482004-06-17 23:42:48 +000020991 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
20992 if test $ac_prog = install &&
20993 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20994 # AIX install. It has an incompatible calling convention.
20995 :
20996 elif test $ac_prog = install &&
20997 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20998 # program-specific install script used by HP pwplus--don't use.
20999 :
21000 else
21001 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
21002 break 3
21003 fi
21004 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000021005 done
21006 done
21007 ;;
21008esac
21009done
21010
21011
21012fi
21013 if test "${ac_cv_path_install+set}" = set; then
21014 INSTALL=$ac_cv_path_install
21015 else
21016 # As a last resort, use the slow shell script. We don't cache a
21017 # path for INSTALL within a source directory, because that will
21018 # break other packages using the cache if that directory is
21019 # removed, or if the path is relative.
21020 INSTALL=$ac_install_sh
21021 fi
21022fi
21023echo "$as_me:$LINENO: result: $INSTALL" >&5
21024echo "${ECHO_T}$INSTALL" >&6
21025
21026# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
21027# It thinks the first close brace ends the variable substitution.
21028test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
21029
21030test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
21031
21032test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
21033
21034echo "$as_me:$LINENO: checking whether ln -s works" >&5
21035echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
21036LN_S=$as_ln_s
21037if test "$LN_S" = "ln -s"; then
21038 echo "$as_me:$LINENO: result: yes" >&5
21039echo "${ECHO_T}yes" >&6
21040else
21041 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
21042echo "${ECHO_T}no, using $LN_S" >&6
21043fi
21044
21045echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
21046echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000021047set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
Lev Walkinf15320b2004-06-03 03:38:44 +000021048if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
21049 echo $ECHO_N "(cached) $ECHO_C" >&6
21050else
21051 cat >conftest.make <<\_ACEOF
21052all:
21053 @echo 'ac_maketemp="$(MAKE)"'
21054_ACEOF
21055# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21056eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
21057if test -n "$ac_maketemp"; then
21058 eval ac_cv_prog_make_${ac_make}_set=yes
21059else
21060 eval ac_cv_prog_make_${ac_make}_set=no
21061fi
21062rm -f conftest.make
21063fi
21064if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
21065 echo "$as_me:$LINENO: result: yes" >&5
21066echo "${ECHO_T}yes" >&6
21067 SET_MAKE=
21068else
21069 echo "$as_me:$LINENO: result: no" >&5
21070echo "${ECHO_T}no" >&6
21071 SET_MAKE="MAKE=${MAKE-make}"
21072fi
21073
21074for ac_prog in 'bison -y' byacc
21075do
21076 # Extract the first word of "$ac_prog", so it can be a program name with args.
21077set dummy $ac_prog; ac_word=$2
21078echo "$as_me:$LINENO: checking for $ac_word" >&5
21079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21080if test "${ac_cv_prog_YACC+set}" = set; then
21081 echo $ECHO_N "(cached) $ECHO_C" >&6
21082else
21083 if test -n "$YACC"; then
21084 ac_cv_prog_YACC="$YACC" # Let the user override the test.
21085else
21086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21087for as_dir in $PATH
21088do
21089 IFS=$as_save_IFS
21090 test -z "$as_dir" && as_dir=.
21091 for ac_exec_ext in '' $ac_executable_extensions; do
21092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21093 ac_cv_prog_YACC="$ac_prog"
21094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21095 break 2
21096 fi
21097done
21098done
21099
21100fi
21101fi
21102YACC=$ac_cv_prog_YACC
21103if test -n "$YACC"; then
21104 echo "$as_me:$LINENO: result: $YACC" >&5
21105echo "${ECHO_T}$YACC" >&6
21106else
21107 echo "$as_me:$LINENO: result: no" >&5
21108echo "${ECHO_T}no" >&6
21109fi
21110
21111 test -n "$YACC" && break
21112done
21113test -n "$YACC" || YACC="yacc"
21114
Lev Walkinf15320b2004-06-03 03:38:44 +000021115for ac_prog in flex lex
21116do
21117 # Extract the first word of "$ac_prog", so it can be a program name with args.
21118set dummy $ac_prog; ac_word=$2
21119echo "$as_me:$LINENO: checking for $ac_word" >&5
21120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21121if test "${ac_cv_prog_LEX+set}" = set; then
21122 echo $ECHO_N "(cached) $ECHO_C" >&6
21123else
21124 if test -n "$LEX"; then
21125 ac_cv_prog_LEX="$LEX" # Let the user override the test.
21126else
21127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21128for as_dir in $PATH
21129do
21130 IFS=$as_save_IFS
21131 test -z "$as_dir" && as_dir=.
21132 for ac_exec_ext in '' $ac_executable_extensions; do
21133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21134 ac_cv_prog_LEX="$ac_prog"
21135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21136 break 2
21137 fi
21138done
21139done
21140
21141fi
21142fi
21143LEX=$ac_cv_prog_LEX
21144if test -n "$LEX"; then
21145 echo "$as_me:$LINENO: result: $LEX" >&5
21146echo "${ECHO_T}$LEX" >&6
21147else
21148 echo "$as_me:$LINENO: result: no" >&5
21149echo "${ECHO_T}no" >&6
21150fi
21151
21152 test -n "$LEX" && break
21153done
21154test -n "$LEX" || LEX=":"
21155
21156if test -z "$LEXLIB"
21157then
21158 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
21159echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
21160if test "${ac_cv_lib_fl_yywrap+set}" = set; then
21161 echo $ECHO_N "(cached) $ECHO_C" >&6
21162else
21163 ac_check_lib_save_LIBS=$LIBS
21164LIBS="-lfl $LIBS"
21165cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021166/* confdefs.h. */
21167_ACEOF
21168cat confdefs.h >>conftest.$ac_ext
21169cat >>conftest.$ac_ext <<_ACEOF
21170/* end confdefs.h. */
21171
21172/* Override any gcc2 internal prototype to avoid an error. */
21173#ifdef __cplusplus
21174extern "C"
21175#endif
21176/* We use char because int might match the return type of a gcc2
21177 builtin and then its argument prototype would still apply. */
21178char yywrap ();
21179int
21180main ()
21181{
21182yywrap ();
21183 ;
21184 return 0;
21185}
21186_ACEOF
21187rm -f conftest.$ac_objext conftest$ac_exeext
21188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000021189 (eval $ac_link) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000021190 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000021191 grep -v '^ *+' conftest.er1 >conftest.err
21192 rm -f conftest.er1
21193 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000021194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000021196 { ac_try='test -z "$ac_c_werror_flag"
21197 || test ! -s conftest.err'
21198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21199 (eval $ac_try) 2>&5
21200 ac_status=$?
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); }; } &&
21203 { ac_try='test -s conftest$ac_exeext'
Lev Walkinf15320b2004-06-03 03:38:44 +000021204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21205 (eval $ac_try) 2>&5
21206 ac_status=$?
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); }; }; then
21209 ac_cv_lib_fl_yywrap=yes
21210else
21211 echo "$as_me: failed program was:" >&5
21212sed 's/^/| /' conftest.$ac_ext >&5
21213
21214ac_cv_lib_fl_yywrap=no
21215fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000021216rm -f conftest.err conftest.$ac_objext \
21217 conftest$ac_exeext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000021218LIBS=$ac_check_lib_save_LIBS
21219fi
21220echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
21221echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
21222if test $ac_cv_lib_fl_yywrap = yes; then
21223 LEXLIB="-lfl"
21224else
21225 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
21226echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
21227if test "${ac_cv_lib_l_yywrap+set}" = set; then
21228 echo $ECHO_N "(cached) $ECHO_C" >&6
21229else
21230 ac_check_lib_save_LIBS=$LIBS
21231LIBS="-ll $LIBS"
21232cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021233/* confdefs.h. */
21234_ACEOF
21235cat confdefs.h >>conftest.$ac_ext
21236cat >>conftest.$ac_ext <<_ACEOF
21237/* end confdefs.h. */
21238
21239/* Override any gcc2 internal prototype to avoid an error. */
21240#ifdef __cplusplus
21241extern "C"
21242#endif
21243/* We use char because int might match the return type of a gcc2
21244 builtin and then its argument prototype would still apply. */
21245char yywrap ();
21246int
21247main ()
21248{
21249yywrap ();
21250 ;
21251 return 0;
21252}
21253_ACEOF
21254rm -f conftest.$ac_objext conftest$ac_exeext
21255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000021256 (eval $ac_link) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000021257 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000021258 grep -v '^ *+' conftest.er1 >conftest.err
21259 rm -f conftest.er1
21260 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000021261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000021263 { ac_try='test -z "$ac_c_werror_flag"
21264 || test ! -s conftest.err'
21265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21266 (eval $ac_try) 2>&5
21267 ac_status=$?
21268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269 (exit $ac_status); }; } &&
21270 { ac_try='test -s conftest$ac_exeext'
Lev Walkinf15320b2004-06-03 03:38:44 +000021271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21272 (eval $ac_try) 2>&5
21273 ac_status=$?
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); }; }; then
21276 ac_cv_lib_l_yywrap=yes
21277else
21278 echo "$as_me: failed program was:" >&5
21279sed 's/^/| /' conftest.$ac_ext >&5
21280
21281ac_cv_lib_l_yywrap=no
21282fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000021283rm -f conftest.err conftest.$ac_objext \
21284 conftest$ac_exeext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000021285LIBS=$ac_check_lib_save_LIBS
21286fi
21287echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
21288echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
21289if test $ac_cv_lib_l_yywrap = yes; then
21290 LEXLIB="-ll"
21291fi
21292
21293fi
21294
21295fi
21296
21297if test "x$LEX" != "x:"; then
21298 echo "$as_me:$LINENO: checking lex output file root" >&5
21299echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
21300if test "${ac_cv_prog_lex_root+set}" = set; then
21301 echo $ECHO_N "(cached) $ECHO_C" >&6
21302else
21303 # The minimal lex program is just a single line: %%. But some broken lexes
21304# (Solaris, I think it was) want two %% lines, so accommodate them.
21305cat >conftest.l <<_ACEOF
21306%%
21307%%
21308_ACEOF
21309{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
21310 (eval $LEX conftest.l) 2>&5
21311 ac_status=$?
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); }
21314if test -f lex.yy.c; then
21315 ac_cv_prog_lex_root=lex.yy
21316elif test -f lexyy.c; then
21317 ac_cv_prog_lex_root=lexyy
21318else
21319 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
21320echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
21321 { (exit 1); exit 1; }; }
21322fi
21323fi
21324echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
21325echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
21326rm -f conftest.l
21327LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
21328
21329echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
21330echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
21331if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
21332 echo $ECHO_N "(cached) $ECHO_C" >&6
21333else
21334 # POSIX says lex can declare yytext either as a pointer or an array; the
21335# default is implementation-dependent. Figure out which it is, since
21336# not all implementations provide the %pointer and %array declarations.
21337ac_cv_prog_lex_yytext_pointer=no
21338echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
21339ac_save_LIBS=$LIBS
21340LIBS="$LIBS $LEXLIB"
21341cat >conftest.$ac_ext <<_ACEOF
21342`cat $LEX_OUTPUT_ROOT.c`
21343_ACEOF
21344rm -f conftest.$ac_objext conftest$ac_exeext
21345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000021346 (eval $ac_link) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000021347 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000021348 grep -v '^ *+' conftest.er1 >conftest.err
21349 rm -f conftest.er1
21350 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000021351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000021353 { ac_try='test -z "$ac_c_werror_flag"
21354 || test ! -s conftest.err'
21355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21356 (eval $ac_try) 2>&5
21357 ac_status=$?
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); }; } &&
21360 { ac_try='test -s conftest$ac_exeext'
Lev Walkinf15320b2004-06-03 03:38:44 +000021361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21362 (eval $ac_try) 2>&5
21363 ac_status=$?
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); }; }; then
21366 ac_cv_prog_lex_yytext_pointer=yes
21367else
21368 echo "$as_me: failed program was:" >&5
21369sed 's/^/| /' conftest.$ac_ext >&5
21370
21371fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000021372rm -f conftest.err conftest.$ac_objext \
21373 conftest$ac_exeext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000021374LIBS=$ac_save_LIBS
21375rm -f "${LEX_OUTPUT_ROOT}.c"
21376
21377fi
21378echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
21379echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
21380if test $ac_cv_prog_lex_yytext_pointer = yes; then
21381
21382cat >>confdefs.h <<\_ACEOF
21383#define YYTEXT_POINTER 1
21384_ACEOF
21385
21386fi
21387
21388fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000021389if test "$LEX" = :; then
21390 LEX=${am_missing_run}flex
21391fi
Lev Walkinf15320b2004-06-03 03:38:44 +000021392
Lev Walkin5f869d02004-08-23 10:41:38 +000021393case "$host_os" in
21394cygwin*)
Lev Walkin2b4c0592004-08-25 01:58:01 +000021395 case "$target" in
Lev Walkin5f869d02004-08-23 10:41:38 +000021396 *mingw*)
21397 CC="$CC -mno-cygwin"
21398 esac
21399 ;;
21400mingw* | p32*)
Lev Walkin2b4c0592004-08-25 01:58:01 +000021401 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000021402esac
21403
21404# Check whether --enable-autoconf or --disable-autoconf was given.
21405if test "${enable_autoconf+set}" = set; then
21406 enableval="$enable_autoconf"
Lev Walkin67c2aec2004-06-05 08:47:18 +000021407 ADD_CFLAGS="-Werror -W"
Lev Walkinf15320b2004-06-03 03:38:44 +000021408fi;
21409
21410
21411case "$GCC" in
21412 yes)
21413 CFLAGS="$CFLAGS -Wall"
21414 CFLAGS="$CFLAGS -Wshadow"
21415 CFLAGS="$CFLAGS -Wcast-qual"
21416 CFLAGS="$CFLAGS -Wcast-align"
21417 CFLAGS="$CFLAGS -Wmissing-prototypes"
21418 CFLAGS="$CFLAGS -Wmissing-declarations"
21419 CFLAGS="$CFLAGS -Wredundant-decls"
Lev Walkinf15320b2004-06-03 03:38:44 +000021420 ;;
21421esac
21422
21423
Lev Walkinf15320b2004-06-03 03:38:44 +000021424echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21425echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21426if test "${ac_cv_header_stdc+set}" = set; then
21427 echo $ECHO_N "(cached) $ECHO_C" >&6
21428else
21429 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021430/* confdefs.h. */
21431_ACEOF
21432cat confdefs.h >>conftest.$ac_ext
21433cat >>conftest.$ac_ext <<_ACEOF
21434/* end confdefs.h. */
21435#include <stdlib.h>
21436#include <stdarg.h>
21437#include <string.h>
21438#include <float.h>
21439
21440int
21441main ()
21442{
21443
21444 ;
21445 return 0;
21446}
21447_ACEOF
21448rm -f conftest.$ac_objext
21449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000021450 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000021451 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000021452 grep -v '^ *+' conftest.er1 >conftest.err
21453 rm -f conftest.er1
21454 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000021455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000021457 { ac_try='test -z "$ac_c_werror_flag"
21458 || test ! -s conftest.err'
21459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21460 (eval $ac_try) 2>&5
21461 ac_status=$?
21462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463 (exit $ac_status); }; } &&
21464 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000021465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21466 (eval $ac_try) 2>&5
21467 ac_status=$?
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); }; }; then
21470 ac_cv_header_stdc=yes
21471else
21472 echo "$as_me: failed program was:" >&5
21473sed 's/^/| /' conftest.$ac_ext >&5
21474
21475ac_cv_header_stdc=no
21476fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000021477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000021478
21479if test $ac_cv_header_stdc = yes; then
21480 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21481 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021482/* confdefs.h. */
21483_ACEOF
21484cat confdefs.h >>conftest.$ac_ext
21485cat >>conftest.$ac_ext <<_ACEOF
21486/* end confdefs.h. */
21487#include <string.h>
21488
21489_ACEOF
21490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21491 $EGREP "memchr" >/dev/null 2>&1; then
21492 :
21493else
21494 ac_cv_header_stdc=no
21495fi
21496rm -f conftest*
21497
21498fi
21499
21500if test $ac_cv_header_stdc = yes; then
21501 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21502 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021503/* confdefs.h. */
21504_ACEOF
21505cat confdefs.h >>conftest.$ac_ext
21506cat >>conftest.$ac_ext <<_ACEOF
21507/* end confdefs.h. */
21508#include <stdlib.h>
21509
21510_ACEOF
21511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21512 $EGREP "free" >/dev/null 2>&1; then
21513 :
21514else
21515 ac_cv_header_stdc=no
21516fi
21517rm -f conftest*
21518
21519fi
21520
21521if test $ac_cv_header_stdc = yes; then
21522 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21523 if test "$cross_compiling" = yes; then
21524 :
21525else
21526 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021527/* confdefs.h. */
21528_ACEOF
21529cat confdefs.h >>conftest.$ac_ext
21530cat >>conftest.$ac_ext <<_ACEOF
21531/* end confdefs.h. */
21532#include <ctype.h>
21533#if ((' ' & 0x0FF) == 0x020)
21534# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21535# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21536#else
21537# define ISLOWER(c) \
Lev Walkin8e8b5482004-06-17 23:42:48 +000021538 (('a' <= (c) && (c) <= 'i') \
21539 || ('j' <= (c) && (c) <= 'r') \
21540 || ('s' <= (c) && (c) <= 'z'))
Lev Walkinf15320b2004-06-03 03:38:44 +000021541# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21542#endif
21543
21544#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21545int
21546main ()
21547{
21548 int i;
21549 for (i = 0; i < 256; i++)
21550 if (XOR (islower (i), ISLOWER (i))
Lev Walkin8e8b5482004-06-17 23:42:48 +000021551 || toupper (i) != TOUPPER (i))
Lev Walkinf15320b2004-06-03 03:38:44 +000021552 exit(2);
21553 exit (0);
21554}
21555_ACEOF
21556rm -f conftest$ac_exeext
21557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21558 (eval $ac_link) 2>&5
21559 ac_status=$?
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21563 (eval $ac_try) 2>&5
21564 ac_status=$?
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); }; }; then
21567 :
21568else
21569 echo "$as_me: program exited with status $ac_status" >&5
21570echo "$as_me: failed program was:" >&5
21571sed 's/^/| /' conftest.$ac_ext >&5
21572
21573( exit $ac_status )
21574ac_cv_header_stdc=no
21575fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000021576rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000021577fi
21578fi
21579fi
21580echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21581echo "${ECHO_T}$ac_cv_header_stdc" >&6
21582if test $ac_cv_header_stdc = yes; then
21583
21584cat >>confdefs.h <<\_ACEOF
21585#define STDC_HEADERS 1
21586_ACEOF
21587
21588fi
21589
Lev Walkinf15320b2004-06-03 03:38:44 +000021590
Lev Walkin79f54952004-08-13 16:58:19 +000021591for ac_header in sys/param.h
Lev Walkinf15320b2004-06-03 03:38:44 +000021592do
21593as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21594if eval "test \"\${$as_ac_Header+set}\" = set"; then
21595 echo "$as_me:$LINENO: checking for $ac_header" >&5
21596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21597if eval "test \"\${$as_ac_Header+set}\" = set"; then
21598 echo $ECHO_N "(cached) $ECHO_C" >&6
21599fi
21600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21601echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21602else
21603 # Is the header compilable?
21604echo "$as_me:$LINENO: checking $ac_header usability" >&5
21605echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21606cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021607/* confdefs.h. */
21608_ACEOF
21609cat confdefs.h >>conftest.$ac_ext
21610cat >>conftest.$ac_ext <<_ACEOF
21611/* end confdefs.h. */
21612$ac_includes_default
21613#include <$ac_header>
21614_ACEOF
21615rm -f conftest.$ac_objext
21616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000021617 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000021618 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000021619 grep -v '^ *+' conftest.er1 >conftest.err
21620 rm -f conftest.er1
21621 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000021622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000021624 { ac_try='test -z "$ac_c_werror_flag"
21625 || test ! -s conftest.err'
21626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21627 (eval $ac_try) 2>&5
21628 ac_status=$?
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); }; } &&
21631 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000021632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21633 (eval $ac_try) 2>&5
21634 ac_status=$?
21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636 (exit $ac_status); }; }; then
21637 ac_header_compiler=yes
21638else
21639 echo "$as_me: failed program was:" >&5
21640sed 's/^/| /' conftest.$ac_ext >&5
21641
21642ac_header_compiler=no
21643fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000021644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000021645echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21646echo "${ECHO_T}$ac_header_compiler" >&6
21647
21648# Is the header present?
21649echo "$as_me:$LINENO: checking $ac_header presence" >&5
21650echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21651cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021652/* confdefs.h. */
21653_ACEOF
21654cat confdefs.h >>conftest.$ac_ext
21655cat >>conftest.$ac_ext <<_ACEOF
21656/* end confdefs.h. */
21657#include <$ac_header>
21658_ACEOF
21659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21661 ac_status=$?
21662 grep -v '^ *+' conftest.er1 >conftest.err
21663 rm -f conftest.er1
21664 cat conftest.err >&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); } >/dev/null; then
21667 if test -s conftest.err; then
21668 ac_cpp_err=$ac_c_preproc_warn_flag
Lev Walkin8e8b5482004-06-17 23:42:48 +000021669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Lev Walkinf15320b2004-06-03 03:38:44 +000021670 else
21671 ac_cpp_err=
21672 fi
21673else
21674 ac_cpp_err=yes
21675fi
21676if test -z "$ac_cpp_err"; then
21677 ac_header_preproc=yes
21678else
21679 echo "$as_me: failed program was:" >&5
21680sed 's/^/| /' conftest.$ac_ext >&5
21681
21682 ac_header_preproc=no
21683fi
21684rm -f conftest.err conftest.$ac_ext
21685echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21686echo "${ECHO_T}$ac_header_preproc" >&6
21687
21688# So? What about this header?
Lev Walkin8e8b5482004-06-17 23:42:48 +000021689case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21690 yes:no: )
Lev Walkinf15320b2004-06-03 03:38:44 +000021691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21692echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000021693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21694echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21695 ac_header_preproc=yes
Lev Walkinf15320b2004-06-03 03:38:44 +000021696 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000021697 no:yes:* )
Lev Walkinf15320b2004-06-03 03:38:44 +000021698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21699echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000021700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21701echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21702 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21703echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21704 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21705echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +000021706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21707echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000021708 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21709echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +000021710 (
21711 cat <<\_ASBOX
Lev Walkin8e8b5482004-06-17 23:42:48 +000021712## ------------------------------------------ ##
21713## Report this to the AC_PACKAGE_NAME lists. ##
21714## ------------------------------------------ ##
Lev Walkinf15320b2004-06-03 03:38:44 +000021715_ASBOX
21716 ) |
21717 sed "s/^/$as_me: WARNING: /" >&2
21718 ;;
21719esac
21720echo "$as_me:$LINENO: checking for $ac_header" >&5
21721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21722if eval "test \"\${$as_ac_Header+set}\" = set"; then
21723 echo $ECHO_N "(cached) $ECHO_C" >&6
21724else
Lev Walkin8e8b5482004-06-17 23:42:48 +000021725 eval "$as_ac_Header=\$ac_header_preproc"
Lev Walkinf15320b2004-06-03 03:38:44 +000021726fi
21727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21728echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21729
21730fi
21731if test `eval echo '${'$as_ac_Header'}'` = yes; then
21732 cat >>confdefs.h <<_ACEOF
21733#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21734_ACEOF
21735
21736fi
21737
21738done
21739
21740
21741echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21742echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21743if test "${ac_cv_c_bigendian+set}" = set; then
21744 echo $ECHO_N "(cached) $ECHO_C" >&6
21745else
21746 # See if sys/param.h defines the BYTE_ORDER macro.
21747cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021748/* confdefs.h. */
21749_ACEOF
21750cat confdefs.h >>conftest.$ac_ext
21751cat >>conftest.$ac_ext <<_ACEOF
21752/* end confdefs.h. */
21753#include <sys/types.h>
21754#include <sys/param.h>
21755
21756int
21757main ()
21758{
21759#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21760 bogus endian macros
21761#endif
21762
21763 ;
21764 return 0;
21765}
21766_ACEOF
21767rm -f conftest.$ac_objext
21768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000021769 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000021770 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000021771 grep -v '^ *+' conftest.er1 >conftest.err
21772 rm -f conftest.er1
21773 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000021774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000021776 { ac_try='test -z "$ac_c_werror_flag"
21777 || test ! -s conftest.err'
21778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21779 (eval $ac_try) 2>&5
21780 ac_status=$?
21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); }; } &&
21783 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000021784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21785 (eval $ac_try) 2>&5
21786 ac_status=$?
21787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788 (exit $ac_status); }; }; then
21789 # It does; now see whether it defined to BIG_ENDIAN or not.
21790cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021791/* confdefs.h. */
21792_ACEOF
21793cat confdefs.h >>conftest.$ac_ext
21794cat >>conftest.$ac_ext <<_ACEOF
21795/* end confdefs.h. */
21796#include <sys/types.h>
21797#include <sys/param.h>
21798
21799int
21800main ()
21801{
21802#if BYTE_ORDER != BIG_ENDIAN
21803 not big endian
21804#endif
21805
21806 ;
21807 return 0;
21808}
21809_ACEOF
21810rm -f conftest.$ac_objext
21811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000021812 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000021813 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000021814 grep -v '^ *+' conftest.er1 >conftest.err
21815 rm -f conftest.er1
21816 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000021817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000021819 { ac_try='test -z "$ac_c_werror_flag"
21820 || test ! -s conftest.err'
21821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21822 (eval $ac_try) 2>&5
21823 ac_status=$?
21824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825 (exit $ac_status); }; } &&
21826 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000021827 { (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); }; }; then
21832 ac_cv_c_bigendian=yes
21833else
21834 echo "$as_me: failed program was:" >&5
21835sed 's/^/| /' conftest.$ac_ext >&5
21836
21837ac_cv_c_bigendian=no
21838fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000021839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000021840else
21841 echo "$as_me: failed program was:" >&5
21842sed 's/^/| /' conftest.$ac_ext >&5
21843
21844# It does not; compile a test program.
21845if test "$cross_compiling" = yes; then
21846 # try to guess the endianness by grepping values into an object file
21847 ac_cv_c_bigendian=unknown
21848 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021849/* confdefs.h. */
21850_ACEOF
21851cat confdefs.h >>conftest.$ac_ext
21852cat >>conftest.$ac_ext <<_ACEOF
21853/* end confdefs.h. */
21854short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21855short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21856void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21857short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21858short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21859void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21860int
21861main ()
21862{
21863 _ascii (); _ebcdic ();
21864 ;
21865 return 0;
21866}
21867_ACEOF
21868rm -f conftest.$ac_objext
21869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000021870 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000021871 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000021872 grep -v '^ *+' conftest.er1 >conftest.err
21873 rm -f conftest.er1
21874 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000021875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000021877 { ac_try='test -z "$ac_c_werror_flag"
21878 || test ! -s conftest.err'
21879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21880 (eval $ac_try) 2>&5
21881 ac_status=$?
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); }; } &&
21884 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000021885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886 (eval $ac_try) 2>&5
21887 ac_status=$?
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; }; then
21890 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21891 ac_cv_c_bigendian=yes
21892fi
21893if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21894 if test "$ac_cv_c_bigendian" = unknown; then
21895 ac_cv_c_bigendian=no
21896 else
21897 # finding both strings is unlikely to happen, but who knows?
21898 ac_cv_c_bigendian=unknown
21899 fi
21900fi
21901else
21902 echo "$as_me: failed program was:" >&5
21903sed 's/^/| /' conftest.$ac_ext >&5
21904
21905fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000021906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000021907else
21908 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021909/* confdefs.h. */
21910_ACEOF
21911cat confdefs.h >>conftest.$ac_ext
21912cat >>conftest.$ac_ext <<_ACEOF
21913/* end confdefs.h. */
21914int
21915main ()
21916{
21917 /* Are we little or big endian? From Harbison&Steele. */
21918 union
21919 {
21920 long l;
21921 char c[sizeof (long)];
21922 } u;
21923 u.l = 1;
21924 exit (u.c[sizeof (long) - 1] == 1);
21925}
21926_ACEOF
21927rm -f conftest$ac_exeext
21928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21929 (eval $ac_link) 2>&5
21930 ac_status=$?
21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21934 (eval $ac_try) 2>&5
21935 ac_status=$?
21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); }; }; then
21938 ac_cv_c_bigendian=no
21939else
21940 echo "$as_me: program exited with status $ac_status" >&5
21941echo "$as_me: failed program was:" >&5
21942sed 's/^/| /' conftest.$ac_ext >&5
21943
21944( exit $ac_status )
21945ac_cv_c_bigendian=yes
21946fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000021947rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000021948fi
21949fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000021950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000021951fi
21952echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21953echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21954case $ac_cv_c_bigendian in
21955 yes)
21956
21957cat >>confdefs.h <<\_ACEOF
21958#define WORDS_BIGENDIAN 1
21959_ACEOF
21960 ;;
21961 no)
21962 ;;
21963 *)
21964 { { echo "$as_me:$LINENO: error: unknown endianness
21965presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21966echo "$as_me: error: unknown endianness
21967presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21968 { (exit 1); exit 1; }; } ;;
21969esac
21970
21971echo "$as_me:$LINENO: checking for off_t" >&5
21972echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21973if test "${ac_cv_type_off_t+set}" = set; then
21974 echo $ECHO_N "(cached) $ECHO_C" >&6
21975else
21976 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021977/* confdefs.h. */
21978_ACEOF
21979cat confdefs.h >>conftest.$ac_ext
21980cat >>conftest.$ac_ext <<_ACEOF
21981/* end confdefs.h. */
21982$ac_includes_default
21983int
21984main ()
21985{
21986if ((off_t *) 0)
21987 return 0;
21988if (sizeof (off_t))
21989 return 0;
21990 ;
21991 return 0;
21992}
21993_ACEOF
21994rm -f conftest.$ac_objext
21995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000021996 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000021997 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000021998 grep -v '^ *+' conftest.er1 >conftest.err
21999 rm -f conftest.er1
22000 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000022003 { ac_try='test -z "$ac_c_werror_flag"
22004 || test ! -s conftest.err'
22005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22006 (eval $ac_try) 2>&5
22007 ac_status=$?
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); }; } &&
22010 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000022011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22012 (eval $ac_try) 2>&5
22013 ac_status=$?
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); }; }; then
22016 ac_cv_type_off_t=yes
22017else
22018 echo "$as_me: failed program was:" >&5
22019sed 's/^/| /' conftest.$ac_ext >&5
22020
22021ac_cv_type_off_t=no
22022fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000022023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000022024fi
22025echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22026echo "${ECHO_T}$ac_cv_type_off_t" >&6
22027if test $ac_cv_type_off_t = yes; then
22028 :
22029else
22030
22031cat >>confdefs.h <<_ACEOF
22032#define off_t long
22033_ACEOF
22034
22035fi
22036
22037echo "$as_me:$LINENO: checking for size_t" >&5
22038echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22039if test "${ac_cv_type_size_t+set}" = set; then
22040 echo $ECHO_N "(cached) $ECHO_C" >&6
22041else
22042 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000022043/* confdefs.h. */
22044_ACEOF
22045cat confdefs.h >>conftest.$ac_ext
22046cat >>conftest.$ac_ext <<_ACEOF
22047/* end confdefs.h. */
22048$ac_includes_default
22049int
22050main ()
22051{
22052if ((size_t *) 0)
22053 return 0;
22054if (sizeof (size_t))
22055 return 0;
22056 ;
22057 return 0;
22058}
22059_ACEOF
22060rm -f conftest.$ac_objext
22061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000022062 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000022063 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000022064 grep -v '^ *+' conftest.er1 >conftest.err
22065 rm -f conftest.er1
22066 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000022069 { ac_try='test -z "$ac_c_werror_flag"
22070 || test ! -s conftest.err'
22071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22072 (eval $ac_try) 2>&5
22073 ac_status=$?
22074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075 (exit $ac_status); }; } &&
22076 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000022077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22078 (eval $ac_try) 2>&5
22079 ac_status=$?
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); }; }; then
22082 ac_cv_type_size_t=yes
22083else
22084 echo "$as_me: failed program was:" >&5
22085sed 's/^/| /' conftest.$ac_ext >&5
22086
22087ac_cv_type_size_t=no
22088fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000022089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000022090fi
22091echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22092echo "${ECHO_T}$ac_cv_type_size_t" >&6
22093if test $ac_cv_type_size_t = yes; then
22094 :
22095else
22096
22097cat >>confdefs.h <<_ACEOF
22098#define size_t unsigned
22099_ACEOF
22100
22101fi
22102
22103echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22104echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22105if test "${ac_cv_struct_tm+set}" = set; then
22106 echo $ECHO_N "(cached) $ECHO_C" >&6
22107else
22108 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000022109/* confdefs.h. */
22110_ACEOF
22111cat confdefs.h >>conftest.$ac_ext
22112cat >>conftest.$ac_ext <<_ACEOF
22113/* end confdefs.h. */
22114#include <sys/types.h>
22115#include <time.h>
22116
22117int
22118main ()
22119{
22120struct tm *tp; tp->tm_sec;
22121 ;
22122 return 0;
22123}
22124_ACEOF
22125rm -f conftest.$ac_objext
22126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000022127 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000022128 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000022129 grep -v '^ *+' conftest.er1 >conftest.err
22130 rm -f conftest.er1
22131 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000022134 { ac_try='test -z "$ac_c_werror_flag"
22135 || test ! -s conftest.err'
22136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22137 (eval $ac_try) 2>&5
22138 ac_status=$?
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); }; } &&
22141 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000022142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22143 (eval $ac_try) 2>&5
22144 ac_status=$?
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); }; }; then
22147 ac_cv_struct_tm=time.h
22148else
22149 echo "$as_me: failed program was:" >&5
22150sed 's/^/| /' conftest.$ac_ext >&5
22151
22152ac_cv_struct_tm=sys/time.h
22153fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000022154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000022155fi
22156echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22157echo "${ECHO_T}$ac_cv_struct_tm" >&6
22158if test $ac_cv_struct_tm = sys/time.h; then
22159
22160cat >>confdefs.h <<\_ACEOF
22161#define TM_IN_SYS_TIME 1
22162_ACEOF
22163
22164fi
22165
22166echo "$as_me:$LINENO: checking for intmax_t" >&5
22167echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
22168if test "${ac_cv_type_intmax_t+set}" = set; then
22169 echo $ECHO_N "(cached) $ECHO_C" >&6
22170else
22171 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000022172/* confdefs.h. */
22173_ACEOF
22174cat confdefs.h >>conftest.$ac_ext
22175cat >>conftest.$ac_ext <<_ACEOF
22176/* end confdefs.h. */
22177$ac_includes_default
22178int
22179main ()
22180{
22181if ((intmax_t *) 0)
22182 return 0;
22183if (sizeof (intmax_t))
22184 return 0;
22185 ;
22186 return 0;
22187}
22188_ACEOF
22189rm -f conftest.$ac_objext
22190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000022191 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000022192 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000022193 grep -v '^ *+' conftest.er1 >conftest.err
22194 rm -f conftest.er1
22195 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000022198 { ac_try='test -z "$ac_c_werror_flag"
22199 || test ! -s conftest.err'
22200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22201 (eval $ac_try) 2>&5
22202 ac_status=$?
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); }; } &&
22205 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000022206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22207 (eval $ac_try) 2>&5
22208 ac_status=$?
22209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210 (exit $ac_status); }; }; then
22211 ac_cv_type_intmax_t=yes
22212else
22213 echo "$as_me: failed program was:" >&5
22214sed 's/^/| /' conftest.$ac_ext >&5
22215
22216ac_cv_type_intmax_t=no
22217fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000022218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000022219fi
22220echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
22221echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
22222if test $ac_cv_type_intmax_t = yes; then
22223 :
22224else
22225
22226cat >>confdefs.h <<_ACEOF
22227#define intmax_t int64_t
22228_ACEOF
22229
22230fi
22231
22232
22233
22234
22235for ac_func in strtoimax strtoll
22236do
22237as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22238echo "$as_me:$LINENO: checking for $ac_func" >&5
22239echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22240if eval "test \"\${$as_ac_var+set}\" = set"; then
22241 echo $ECHO_N "(cached) $ECHO_C" >&6
22242else
22243 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000022244/* confdefs.h. */
22245_ACEOF
22246cat confdefs.h >>conftest.$ac_ext
22247cat >>conftest.$ac_ext <<_ACEOF
22248/* end confdefs.h. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000022249/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22251#define $ac_func innocuous_$ac_func
22252
Lev Walkinf15320b2004-06-03 03:38:44 +000022253/* System header to define __stub macros and hopefully few prototypes,
22254 which can conflict with char $ac_func (); below.
22255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22256 <limits.h> exists even on freestanding compilers. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000022257
Lev Walkinf15320b2004-06-03 03:38:44 +000022258#ifdef __STDC__
22259# include <limits.h>
22260#else
22261# include <assert.h>
22262#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000022263
22264#undef $ac_func
22265
Lev Walkinf15320b2004-06-03 03:38:44 +000022266/* Override any gcc2 internal prototype to avoid an error. */
22267#ifdef __cplusplus
22268extern "C"
22269{
22270#endif
22271/* We use char because int might match the return type of a gcc2
22272 builtin and then its argument prototype would still apply. */
22273char $ac_func ();
22274/* The GNU C library defines this for functions which it implements
22275 to always fail with ENOSYS. Some functions are actually named
22276 something starting with __ and the normal name is an alias. */
22277#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22278choke me
22279#else
22280char (*f) () = $ac_func;
22281#endif
22282#ifdef __cplusplus
22283}
22284#endif
22285
22286int
22287main ()
22288{
22289return f != $ac_func;
22290 ;
22291 return 0;
22292}
22293_ACEOF
22294rm -f conftest.$ac_objext conftest$ac_exeext
22295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000022296 (eval $ac_link) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000022297 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000022298 grep -v '^ *+' conftest.er1 >conftest.err
22299 rm -f conftest.er1
22300 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000022303 { ac_try='test -z "$ac_c_werror_flag"
22304 || test ! -s conftest.err'
22305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22306 (eval $ac_try) 2>&5
22307 ac_status=$?
22308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); }; } &&
22310 { ac_try='test -s conftest$ac_exeext'
Lev Walkinf15320b2004-06-03 03:38:44 +000022311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22312 (eval $ac_try) 2>&5
22313 ac_status=$?
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); }; }; then
22316 eval "$as_ac_var=yes"
22317else
22318 echo "$as_me: failed program was:" >&5
22319sed 's/^/| /' conftest.$ac_ext >&5
22320
22321eval "$as_ac_var=no"
22322fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000022323rm -f conftest.err conftest.$ac_objext \
22324 conftest$ac_exeext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000022325fi
22326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22327echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22328if test `eval echo '${'$as_ac_var'}'` = yes; then
22329 cat >>confdefs.h <<_ACEOF
22330#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22331_ACEOF
22332
22333fi
22334done
22335
22336
Lev Walkin49b0a3e2004-06-28 21:22:35 +000022337for ac_func in mergesort
22338do
22339as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22340echo "$as_me:$LINENO: checking for $ac_func" >&5
22341echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22342if eval "test \"\${$as_ac_var+set}\" = set"; then
22343 echo $ECHO_N "(cached) $ECHO_C" >&6
22344else
22345 cat >conftest.$ac_ext <<_ACEOF
22346/* confdefs.h. */
22347_ACEOF
22348cat confdefs.h >>conftest.$ac_ext
22349cat >>conftest.$ac_ext <<_ACEOF
22350/* end confdefs.h. */
22351/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22353#define $ac_func innocuous_$ac_func
22354
22355/* System header to define __stub macros and hopefully few prototypes,
22356 which can conflict with char $ac_func (); below.
22357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22358 <limits.h> exists even on freestanding compilers. */
22359
22360#ifdef __STDC__
22361# include <limits.h>
22362#else
22363# include <assert.h>
22364#endif
22365
22366#undef $ac_func
22367
22368/* Override any gcc2 internal prototype to avoid an error. */
22369#ifdef __cplusplus
22370extern "C"
22371{
22372#endif
22373/* We use char because int might match the return type of a gcc2
22374 builtin and then its argument prototype would still apply. */
22375char $ac_func ();
22376/* The GNU C library defines this for functions which it implements
22377 to always fail with ENOSYS. Some functions are actually named
22378 something starting with __ and the normal name is an alias. */
22379#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22380choke me
22381#else
22382char (*f) () = $ac_func;
22383#endif
22384#ifdef __cplusplus
22385}
22386#endif
22387
22388int
22389main ()
22390{
22391return f != $ac_func;
22392 ;
22393 return 0;
22394}
22395_ACEOF
22396rm -f conftest.$ac_objext conftest$ac_exeext
22397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22398 (eval $ac_link) 2>conftest.er1
22399 ac_status=$?
22400 grep -v '^ *+' conftest.er1 >conftest.err
22401 rm -f conftest.er1
22402 cat conftest.err >&5
22403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404 (exit $ac_status); } &&
22405 { ac_try='test -z "$ac_c_werror_flag"
22406 || test ! -s conftest.err'
22407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22408 (eval $ac_try) 2>&5
22409 ac_status=$?
22410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22411 (exit $ac_status); }; } &&
22412 { ac_try='test -s conftest$ac_exeext'
22413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22414 (eval $ac_try) 2>&5
22415 ac_status=$?
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); }; }; then
22418 eval "$as_ac_var=yes"
22419else
22420 echo "$as_me: failed program was:" >&5
22421sed 's/^/| /' conftest.$ac_ext >&5
22422
22423eval "$as_ac_var=no"
22424fi
22425rm -f conftest.err conftest.$ac_objext \
22426 conftest$ac_exeext conftest.$ac_ext
22427fi
22428echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22429echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22430if test `eval echo '${'$as_ac_var'}'` = yes; then
22431 cat >>confdefs.h <<_ACEOF
22432#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22433_ACEOF
22434
22435fi
22436done
22437
22438
Lev Walkin8e8b5482004-06-17 23:42:48 +000022439 ac_config_headers="$ac_config_headers config.h"
Lev Walkinf15320b2004-06-03 03:38:44 +000022440
22441
Lev Walkin33cded12004-09-19 19:40:52 +000022442 ac_config_files="$ac_config_files skeletons/tests/Makefile libasn1compiler/Makefile libasn1parser/Makefile libasn1print/Makefile asn1c/webcgi/Makefile asn1c/tests/Makefile libasn1fix/Makefile skeletons/Makefile examples/Makefile tests/Makefile asn1c/Makefile doc/Makefile asn1c.spec Makefile"
Lev Walkinf15320b2004-06-03 03:38:44 +000022443cat >confcache <<\_ACEOF
22444# This file is a shell script that caches the results of configure
22445# tests run on this system so they can be shared between configure
22446# scripts and configure runs, see configure's option --config-cache.
22447# It is not useful on other systems. If it contains results you don't
22448# want to keep, you may remove or edit it.
22449#
22450# config.status only pays attention to the cache file if you give it
22451# the --recheck option to rerun configure.
22452#
22453# `ac_cv_env_foo' variables (set or unset) will be overridden when
22454# loading this file, other *unset* `ac_cv_foo' will be assigned the
22455# following values.
22456
22457_ACEOF
22458
22459# The following way of writing the cache mishandles newlines in values,
22460# but we know of no workaround that is simple, portable, and efficient.
22461# So, don't put newlines in cache variables' values.
22462# Ultrix sh set writes to stderr and can't be redirected directly,
22463# and sets the high bit in the cache file unless we assign to the vars.
22464{
22465 (set) 2>&1 |
22466 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22467 *ac_space=\ *)
22468 # `set' does not quote correctly, so add quotes (double-quote
22469 # substitution turns \\\\ into \\, and sed turns \\ into \).
22470 sed -n \
Lev Walkin8e8b5482004-06-17 23:42:48 +000022471 "s/'/'\\\\''/g;
22472 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Lev Walkinf15320b2004-06-03 03:38:44 +000022473 ;;
22474 *)
22475 # `set' quotes correctly as required by POSIX, so do not add quotes.
22476 sed -n \
Lev Walkin8e8b5482004-06-17 23:42:48 +000022477 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Lev Walkinf15320b2004-06-03 03:38:44 +000022478 ;;
22479 esac;
22480} |
22481 sed '
22482 t clear
22483 : clear
22484 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22485 t end
22486 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22487 : end' >>confcache
22488if diff $cache_file confcache >/dev/null 2>&1; then :; else
22489 if test -w $cache_file; then
22490 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22491 cat confcache >$cache_file
22492 else
22493 echo "not updating unwritable cache $cache_file"
22494 fi
22495fi
22496rm -f confcache
22497
22498test "x$prefix" = xNONE && prefix=$ac_default_prefix
22499# Let make expand exec_prefix.
22500test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22501
22502# VPATH may cause trouble with some makes, so we remove $(srcdir),
22503# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22504# trailing colons and then remove the whole line if VPATH becomes empty
22505# (actually we leave an empty line to preserve line numbers).
22506if test "x$srcdir" = x.; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000022507 ac_vpsub='/^[ ]*VPATH[ ]*=/{
Lev Walkinf15320b2004-06-03 03:38:44 +000022508s/:*\$(srcdir):*/:/;
22509s/:*\${srcdir}:*/:/;
22510s/:*@srcdir@:*/:/;
Lev Walkin8e8b5482004-06-17 23:42:48 +000022511s/^\([^=]*=[ ]*\):*/\1/;
Lev Walkinf15320b2004-06-03 03:38:44 +000022512s/:*$//;
Lev Walkin8e8b5482004-06-17 23:42:48 +000022513s/^[^=]*=[ ]*$//;
Lev Walkinf15320b2004-06-03 03:38:44 +000022514}'
22515fi
22516
22517DEFS=-DHAVE_CONFIG_H
22518
22519ac_libobjs=
22520ac_ltlibobjs=
22521for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22522 # 1. Remove the extension, and $U if already installed.
22523 ac_i=`echo "$ac_i" |
Lev Walkin8e8b5482004-06-17 23:42:48 +000022524 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
Lev Walkinf15320b2004-06-03 03:38:44 +000022525 # 2. Add them.
22526 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22527 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22528done
22529LIBOBJS=$ac_libobjs
22530
22531LTLIBOBJS=$ac_ltlibobjs
22532
22533
Lev Walkin8e8b5482004-06-17 23:42:48 +000022534if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22535 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22536Usually this means the macro was only invoked conditionally." >&5
22537echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22538Usually this means the macro was only invoked conditionally." >&2;}
22539 { (exit 1); exit 1; }; }
22540fi
22541if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22542 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22543Usually this means the macro was only invoked conditionally." >&5
22544echo "$as_me: error: conditional \"AMDEP\" was never defined.
22545Usually this means the macro was only invoked conditionally." >&2;}
22546 { (exit 1); exit 1; }; }
22547fi
22548if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22549 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22550Usually this means the macro was only invoked conditionally." >&5
22551echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22552Usually this means the macro was only invoked conditionally." >&2;}
22553 { (exit 1); exit 1; }; }
22554fi
22555if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22556 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22557Usually this means the macro was only invoked conditionally." >&5
22558echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22559Usually this means the macro was only invoked conditionally." >&2;}
22560 { (exit 1); exit 1; }; }
22561fi
22562if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22563 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22564Usually this means the macro was only invoked conditionally." >&5
22565echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22566Usually this means the macro was only invoked conditionally." >&2;}
22567 { (exit 1); exit 1; }; }
22568fi
Lev Walkind8b940c2004-08-11 05:35:51 +000022569if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22570 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22571Usually this means the macro was only invoked conditionally." >&5
22572echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22573Usually this means the macro was only invoked conditionally." >&2;}
22574 { (exit 1); exit 1; }; }
22575fi
22576if test -z "${CPLUSPLUS_FOUND_TRUE}" && test -z "${CPLUSPLUS_FOUND_FALSE}"; then
22577 { { echo "$as_me:$LINENO: error: conditional \"CPLUSPLUS_FOUND\" was never defined.
22578Usually this means the macro was only invoked conditionally." >&5
22579echo "$as_me: error: conditional \"CPLUSPLUS_FOUND\" was never defined.
22580Usually this means the macro was only invoked conditionally." >&2;}
22581 { (exit 1); exit 1; }; }
22582fi
Lev Walkinf15320b2004-06-03 03:38:44 +000022583
22584: ${CONFIG_STATUS=./config.status}
22585ac_clean_files_save=$ac_clean_files
22586ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22587{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22588echo "$as_me: creating $CONFIG_STATUS" >&6;}
22589cat >$CONFIG_STATUS <<_ACEOF
22590#! $SHELL
22591# Generated by $as_me.
22592# Run this file to recreate the current configuration.
22593# Compiler output produced by configure, useful for debugging
22594# configure, is in config.log if it exists.
22595
22596debug=false
22597ac_cs_recheck=false
22598ac_cs_silent=false
22599SHELL=\${CONFIG_SHELL-$SHELL}
22600_ACEOF
22601
22602cat >>$CONFIG_STATUS <<\_ACEOF
22603## --------------------- ##
22604## M4sh Initialization. ##
22605## --------------------- ##
22606
22607# Be Bourne compatible
22608if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22609 emulate sh
22610 NULLCMD=:
22611 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22612 # is contrary to our usage. Disable this feature.
22613 alias -g '${1+"$@"}'='"$@"'
22614elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22615 set -o posix
22616fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000022617DUALCASE=1; export DUALCASE # for MKS sh
Lev Walkinf15320b2004-06-03 03:38:44 +000022618
22619# Support unset when possible.
Lev Walkin8e8b5482004-06-17 23:42:48 +000022620if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Lev Walkinf15320b2004-06-03 03:38:44 +000022621 as_unset=unset
22622else
22623 as_unset=false
22624fi
22625
22626
22627# Work around bugs in pre-3.0 UWIN ksh.
22628$as_unset ENV MAIL MAILPATH
22629PS1='$ '
22630PS2='> '
22631PS4='+ '
22632
22633# NLS nuisances.
22634for as_var in \
22635 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22636 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22637 LC_TELEPHONE LC_TIME
22638do
Lev Walkin8e8b5482004-06-17 23:42:48 +000022639 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
Lev Walkinf15320b2004-06-03 03:38:44 +000022640 eval $as_var=C; export $as_var
22641 else
22642 $as_unset $as_var
22643 fi
22644done
22645
22646# Required to use basename.
22647if expr a : '\(a\)' >/dev/null 2>&1; then
22648 as_expr=expr
22649else
22650 as_expr=false
22651fi
22652
22653if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22654 as_basename=basename
22655else
22656 as_basename=false
22657fi
22658
22659
22660# Name of the executable.
22661as_me=`$as_basename "$0" ||
22662$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22663 X"$0" : 'X\(//\)$' \| \
22664 X"$0" : 'X\(/\)$' \| \
22665 . : '\(.\)' 2>/dev/null ||
22666echo X/"$0" |
22667 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22668 /^X\/\(\/\/\)$/{ s//\1/; q; }
22669 /^X\/\(\/\).*/{ s//\1/; q; }
22670 s/.*/./; q'`
22671
22672
22673# PATH needs CR, and LINENO needs CR and PATH.
22674# Avoid depending upon Character Ranges.
22675as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22676as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22677as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22678as_cr_digits='0123456789'
22679as_cr_alnum=$as_cr_Letters$as_cr_digits
22680
22681# The user is always right.
22682if test "${PATH_SEPARATOR+set}" != set; then
22683 echo "#! /bin/sh" >conf$$.sh
22684 echo "exit 0" >>conf$$.sh
22685 chmod +x conf$$.sh
22686 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22687 PATH_SEPARATOR=';'
22688 else
22689 PATH_SEPARATOR=:
22690 fi
22691 rm -f conf$$.sh
22692fi
22693
22694
22695 as_lineno_1=$LINENO
22696 as_lineno_2=$LINENO
22697 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22698 test "x$as_lineno_1" != "x$as_lineno_2" &&
22699 test "x$as_lineno_3" = "x$as_lineno_2" || {
22700 # Find who we are. Look in the path if we contain no path at all
22701 # relative or not.
22702 case $0 in
22703 *[\\/]* ) as_myself=$0 ;;
22704 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22705for as_dir in $PATH
22706do
22707 IFS=$as_save_IFS
22708 test -z "$as_dir" && as_dir=.
22709 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22710done
22711
22712 ;;
22713 esac
22714 # We did not find ourselves, most probably we were run as `sh COMMAND'
22715 # in which case we are not to be found in the path.
22716 if test "x$as_myself" = x; then
22717 as_myself=$0
22718 fi
22719 if test ! -f "$as_myself"; then
22720 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22721echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22722 { (exit 1); exit 1; }; }
22723 fi
22724 case $CONFIG_SHELL in
22725 '')
22726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22727for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22728do
22729 IFS=$as_save_IFS
22730 test -z "$as_dir" && as_dir=.
22731 for as_base in sh bash ksh sh5; do
22732 case $as_dir in
22733 /*)
22734 if ("$as_dir/$as_base" -c '
22735 as_lineno_1=$LINENO
22736 as_lineno_2=$LINENO
22737 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22738 test "x$as_lineno_1" != "x$as_lineno_2" &&
22739 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22740 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22741 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22742 CONFIG_SHELL=$as_dir/$as_base
22743 export CONFIG_SHELL
22744 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22745 fi;;
22746 esac
22747 done
22748done
22749;;
22750 esac
22751
22752 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22753 # uniformly replaced by the line number. The first 'sed' inserts a
22754 # line-number line before each line; the second 'sed' does the real
22755 # work. The second script uses 'N' to pair each line-number line
22756 # with the numbered line, and appends trailing '-' during
22757 # substitution so that $LINENO is not a special case at line end.
22758 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22759 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22760 sed '=' <$as_myself |
22761 sed '
22762 N
22763 s,$,-,
22764 : loop
22765 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22766 t loop
22767 s,-$,,
22768 s,^['$as_cr_digits']*\n,,
22769 ' >$as_me.lineno &&
22770 chmod +x $as_me.lineno ||
22771 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22772echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22773 { (exit 1); exit 1; }; }
22774
22775 # Don't try to exec as it changes $[0], causing all sort of problems
22776 # (the dirname of $[0] is not the place where we might find the
22777 # original and so on. Autoconf is especially sensible to this).
22778 . ./$as_me.lineno
22779 # Exit status is that of the last command.
22780 exit
22781}
22782
22783
22784case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22785 *c*,-n*) ECHO_N= ECHO_C='
22786' ECHO_T=' ' ;;
22787 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22788 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22789esac
22790
22791if expr a : '\(a\)' >/dev/null 2>&1; then
22792 as_expr=expr
22793else
22794 as_expr=false
22795fi
22796
22797rm -f conf$$ conf$$.exe conf$$.file
22798echo >conf$$.file
22799if ln -s conf$$.file conf$$ 2>/dev/null; then
22800 # We could just check for DJGPP; but this test a) works b) is more generic
22801 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22802 if test -f conf$$.exe; then
22803 # Don't use ln at all; we don't have any links
22804 as_ln_s='cp -p'
22805 else
22806 as_ln_s='ln -s'
22807 fi
22808elif ln conf$$.file conf$$ 2>/dev/null; then
22809 as_ln_s=ln
22810else
22811 as_ln_s='cp -p'
22812fi
22813rm -f conf$$ conf$$.exe conf$$.file
22814
22815if mkdir -p . 2>/dev/null; then
22816 as_mkdir_p=:
22817else
Lev Walkin8e8b5482004-06-17 23:42:48 +000022818 test -d ./-p && rmdir ./-p
Lev Walkinf15320b2004-06-03 03:38:44 +000022819 as_mkdir_p=false
22820fi
22821
22822as_executable_p="test -f"
22823
22824# Sed expression to map a string onto a valid CPP name.
Lev Walkin8e8b5482004-06-17 23:42:48 +000022825as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +000022826
22827# Sed expression to map a string onto a valid variable name.
Lev Walkin8e8b5482004-06-17 23:42:48 +000022828as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +000022829
22830
22831# IFS
22832# We need space, tab and new line, in precisely that order.
22833as_nl='
22834'
22835IFS=" $as_nl"
22836
22837# CDPATH.
22838$as_unset CDPATH
22839
22840exec 6>&1
22841
22842# Open the log real soon, to keep \$[0] and so on meaningful, and to
22843# report actual input values of CONFIG_FILES etc. instead of their
22844# values after options handling. Logging --version etc. is OK.
22845exec 5>>config.log
22846{
22847 echo
22848 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22849## Running $as_me. ##
22850_ASBOX
22851} >&5
22852cat >&5 <<_CSEOF
22853
22854This file was extended by $as_me, which was
Lev Walkin8e8b5482004-06-17 23:42:48 +000022855generated by GNU Autoconf 2.59. Invocation command line was
Lev Walkinf15320b2004-06-03 03:38:44 +000022856
22857 CONFIG_FILES = $CONFIG_FILES
22858 CONFIG_HEADERS = $CONFIG_HEADERS
22859 CONFIG_LINKS = $CONFIG_LINKS
22860 CONFIG_COMMANDS = $CONFIG_COMMANDS
22861 $ $0 $@
22862
22863_CSEOF
22864echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22865echo >&5
22866_ACEOF
22867
22868# Files that config.status was made for.
22869if test -n "$ac_config_files"; then
22870 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22871fi
22872
22873if test -n "$ac_config_headers"; then
22874 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22875fi
22876
22877if test -n "$ac_config_links"; then
22878 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22879fi
22880
22881if test -n "$ac_config_commands"; then
22882 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22883fi
22884
22885cat >>$CONFIG_STATUS <<\_ACEOF
22886
22887ac_cs_usage="\
22888\`$as_me' instantiates files from templates according to the
22889current configuration.
22890
22891Usage: $0 [OPTIONS] [FILE]...
22892
22893 -h, --help print this help, then exit
22894 -V, --version print version number, then exit
22895 -q, --quiet do not print progress messages
22896 -d, --debug don't remove temporary files
22897 --recheck update $as_me by reconfiguring in the same conditions
22898 --file=FILE[:TEMPLATE]
Lev Walkin8e8b5482004-06-17 23:42:48 +000022899 instantiate the configuration file FILE
Lev Walkinf15320b2004-06-03 03:38:44 +000022900 --header=FILE[:TEMPLATE]
Lev Walkin8e8b5482004-06-17 23:42:48 +000022901 instantiate the configuration header FILE
Lev Walkinf15320b2004-06-03 03:38:44 +000022902
22903Configuration files:
22904$config_files
22905
22906Configuration headers:
22907$config_headers
22908
22909Configuration commands:
22910$config_commands
22911
22912Report bugs to <bug-autoconf@gnu.org>."
22913_ACEOF
22914
22915cat >>$CONFIG_STATUS <<_ACEOF
22916ac_cs_version="\\
22917config.status
Lev Walkin8e8b5482004-06-17 23:42:48 +000022918configured by $0, generated by GNU Autoconf 2.59,
Lev Walkinf15320b2004-06-03 03:38:44 +000022919 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22920
Lev Walkin8e8b5482004-06-17 23:42:48 +000022921Copyright (C) 2003 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +000022922This config.status script is free software; the Free Software Foundation
22923gives unlimited permission to copy, distribute and modify it."
22924srcdir=$srcdir
22925INSTALL="$INSTALL"
22926_ACEOF
22927
22928cat >>$CONFIG_STATUS <<\_ACEOF
22929# If no file are specified by the user, then we need to provide default
22930# value. By we need to know if files were specified by the user.
22931ac_need_defaults=:
22932while test $# != 0
22933do
22934 case $1 in
22935 --*=*)
22936 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22937 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22938 ac_shift=:
22939 ;;
22940 -*)
22941 ac_option=$1
22942 ac_optarg=$2
22943 ac_shift=shift
22944 ;;
22945 *) # This is not an option, so the user has probably given explicit
22946 # arguments.
22947 ac_option=$1
22948 ac_need_defaults=false;;
22949 esac
22950
22951 case $ac_option in
22952 # Handling of the options.
22953_ACEOF
22954cat >>$CONFIG_STATUS <<\_ACEOF
22955 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22956 ac_cs_recheck=: ;;
22957 --version | --vers* | -V )
22958 echo "$ac_cs_version"; exit 0 ;;
22959 --he | --h)
22960 # Conflict between --help and --header
22961 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22962Try \`$0 --help' for more information." >&5
22963echo "$as_me: error: ambiguous option: $1
22964Try \`$0 --help' for more information." >&2;}
22965 { (exit 1); exit 1; }; };;
22966 --help | --hel | -h )
22967 echo "$ac_cs_usage"; exit 0 ;;
22968 --debug | --d* | -d )
22969 debug=: ;;
22970 --file | --fil | --fi | --f )
22971 $ac_shift
22972 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22973 ac_need_defaults=false;;
22974 --header | --heade | --head | --hea )
22975 $ac_shift
22976 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22977 ac_need_defaults=false;;
22978 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22979 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22980 ac_cs_silent=: ;;
22981
22982 # This is an error.
22983 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22984Try \`$0 --help' for more information." >&5
22985echo "$as_me: error: unrecognized option: $1
22986Try \`$0 --help' for more information." >&2;}
22987 { (exit 1); exit 1; }; } ;;
22988
22989 *) ac_config_targets="$ac_config_targets $1" ;;
22990
22991 esac
22992 shift
22993done
22994
22995ac_configure_extra_args=
22996
22997if $ac_cs_silent; then
22998 exec 6>/dev/null
22999 ac_configure_extra_args="$ac_configure_extra_args --silent"
23000fi
23001
23002_ACEOF
23003cat >>$CONFIG_STATUS <<_ACEOF
23004if \$ac_cs_recheck; then
23005 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23006 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23007fi
23008
23009_ACEOF
23010
23011cat >>$CONFIG_STATUS <<_ACEOF
23012#
23013# INIT-COMMANDS section.
23014#
23015
Lev Walkin8e8b5482004-06-17 23:42:48 +000023016AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
Lev Walkinf15320b2004-06-03 03:38:44 +000023017
23018_ACEOF
23019
23020
23021
23022cat >>$CONFIG_STATUS <<\_ACEOF
23023for ac_config_target in $ac_config_targets
23024do
23025 case "$ac_config_target" in
23026 # Handling of arguments.
Lev Walkinf15320b2004-06-03 03:38:44 +000023027 "skeletons/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES skeletons/tests/Makefile" ;;
Lev Walkin1f4da6c2004-09-07 06:31:41 +000023028 "libasn1compiler/Makefile" ) CONFIG_FILES="$CONFIG_FILES libasn1compiler/Makefile" ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000023029 "libasn1parser/Makefile" ) CONFIG_FILES="$CONFIG_FILES libasn1parser/Makefile" ;;
23030 "libasn1print/Makefile" ) CONFIG_FILES="$CONFIG_FILES libasn1print/Makefile" ;;
Lev Walkin33cded12004-09-19 19:40:52 +000023031 "asn1c/webcgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES asn1c/webcgi/Makefile" ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000023032 "asn1c/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES asn1c/tests/Makefile" ;;
23033 "libasn1fix/Makefile" ) CONFIG_FILES="$CONFIG_FILES libasn1fix/Makefile" ;;
23034 "skeletons/Makefile" ) CONFIG_FILES="$CONFIG_FILES skeletons/Makefile" ;;
23035 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
23036 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
23037 "asn1c/Makefile" ) CONFIG_FILES="$CONFIG_FILES asn1c/Makefile" ;;
23038 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
Lev Walkin33cded12004-09-19 19:40:52 +000023039 "asn1c.spec" ) CONFIG_FILES="$CONFIG_FILES asn1c.spec" ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000023040 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000023041 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000023042 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23043 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23044echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23045 { (exit 1); exit 1; }; };;
23046 esac
23047done
23048
23049# If the user did not use the arguments to specify the items to instantiate,
23050# then the envvar interface is used. Set only those that are not.
23051# We use the long form for the default assignment because of an extremely
23052# bizarre bug on SunOS 4.1.3.
23053if $ac_need_defaults; then
23054 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23055 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23056 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23057fi
23058
23059# Have a temporary directory for convenience. Make it in the build tree
23060# simply because there is no reason to put it here, and in addition,
23061# creating and moving files from /tmp can sometimes cause problems.
23062# Create a temporary directory, and hook for its removal unless debugging.
23063$debug ||
23064{
23065 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23066 trap '{ (exit 1); exit 1; }' 1 2 13 15
23067}
23068
23069# Create a (secure) tmp directory for tmp files.
23070
23071{
23072 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23073 test -n "$tmp" && test -d "$tmp"
23074} ||
23075{
23076 tmp=./confstat$$-$RANDOM
23077 (umask 077 && mkdir $tmp)
23078} ||
23079{
23080 echo "$me: cannot create a temporary directory in ." >&2
23081 { (exit 1); exit 1; }
23082}
23083
23084_ACEOF
23085
23086cat >>$CONFIG_STATUS <<_ACEOF
23087
23088#
23089# CONFIG_FILES section.
23090#
23091
23092# No need to generate the scripts if there are no CONFIG_FILES.
23093# This happens for instance when ./config.status config.h
23094if test -n "\$CONFIG_FILES"; then
23095 # Protect against being on the right side of a sed subst in config.status.
23096 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23097 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23098s,@SHELL@,$SHELL,;t t
23099s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23100s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23101s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23102s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23103s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23104s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23105s,@exec_prefix@,$exec_prefix,;t t
23106s,@prefix@,$prefix,;t t
23107s,@program_transform_name@,$program_transform_name,;t t
23108s,@bindir@,$bindir,;t t
23109s,@sbindir@,$sbindir,;t t
23110s,@libexecdir@,$libexecdir,;t t
23111s,@datadir@,$datadir,;t t
23112s,@sysconfdir@,$sysconfdir,;t t
23113s,@sharedstatedir@,$sharedstatedir,;t t
23114s,@localstatedir@,$localstatedir,;t t
23115s,@libdir@,$libdir,;t t
23116s,@includedir@,$includedir,;t t
23117s,@oldincludedir@,$oldincludedir,;t t
23118s,@infodir@,$infodir,;t t
23119s,@mandir@,$mandir,;t t
23120s,@build_alias@,$build_alias,;t t
23121s,@host_alias@,$host_alias,;t t
23122s,@target_alias@,$target_alias,;t t
23123s,@DEFS@,$DEFS,;t t
23124s,@ECHO_C@,$ECHO_C,;t t
23125s,@ECHO_N@,$ECHO_N,;t t
23126s,@ECHO_T@,$ECHO_T,;t t
23127s,@LIBS@,$LIBS,;t t
23128s,@build@,$build,;t t
23129s,@build_cpu@,$build_cpu,;t t
23130s,@build_vendor@,$build_vendor,;t t
23131s,@build_os@,$build_os,;t t
23132s,@host@,$host,;t t
23133s,@host_cpu@,$host_cpu,;t t
23134s,@host_vendor@,$host_vendor,;t t
23135s,@host_os@,$host_os,;t t
23136s,@target@,$target,;t t
23137s,@target_cpu@,$target_cpu,;t t
23138s,@target_vendor@,$target_vendor,;t t
23139s,@target_os@,$target_os,;t t
23140s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23141s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23142s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Lev Walkin8e8b5482004-06-17 23:42:48 +000023143s,@CYGPATH_W@,$CYGPATH_W,;t t
Lev Walkinf15320b2004-06-03 03:38:44 +000023144s,@PACKAGE@,$PACKAGE,;t t
23145s,@VERSION@,$VERSION,;t t
Lev Walkinf15320b2004-06-03 03:38:44 +000023146s,@ACLOCAL@,$ACLOCAL,;t t
23147s,@AUTOCONF@,$AUTOCONF,;t t
23148s,@AUTOMAKE@,$AUTOMAKE,;t t
23149s,@AUTOHEADER@,$AUTOHEADER,;t t
23150s,@MAKEINFO@,$MAKEINFO,;t t
23151s,@AMTAR@,$AMTAR,;t t
23152s,@install_sh@,$install_sh,;t t
Lev Walkin8e8b5482004-06-17 23:42:48 +000023153s,@STRIP@,$STRIP,;t t
23154s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
Lev Walkinf15320b2004-06-03 03:38:44 +000023155s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
Lev Walkin8e8b5482004-06-17 23:42:48 +000023156s,@mkdir_p@,$mkdir_p,;t t
Lev Walkinf15320b2004-06-03 03:38:44 +000023157s,@AWK@,$AWK,;t t
23158s,@SET_MAKE@,$SET_MAKE,;t t
Lev Walkin8e8b5482004-06-17 23:42:48 +000023159s,@am__leading_dot@,$am__leading_dot,;t t
Lev Walkinf15320b2004-06-03 03:38:44 +000023160s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23161s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23162s,@MAINT@,$MAINT,;t t
Lev Walkinf15320b2004-06-03 03:38:44 +000023163s,@CC@,$CC,;t t
23164s,@CFLAGS@,$CFLAGS,;t t
23165s,@LDFLAGS@,$LDFLAGS,;t t
23166s,@CPPFLAGS@,$CPPFLAGS,;t t
23167s,@ac_ct_CC@,$ac_ct_CC,;t t
Lev Walkin8e8b5482004-06-17 23:42:48 +000023168s,@EXEEXT@,$EXEEXT,;t t
23169s,@OBJEXT@,$OBJEXT,;t t
23170s,@DEPDIR@,$DEPDIR,;t t
Lev Walkinf15320b2004-06-03 03:38:44 +000023171s,@am__include@,$am__include,;t t
23172s,@am__quote@,$am__quote,;t t
Lev Walkin8e8b5482004-06-17 23:42:48 +000023173s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23174s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23175s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
Lev Walkinf15320b2004-06-03 03:38:44 +000023176s,@CCDEPMODE@,$CCDEPMODE,;t t
Lev Walkin8e8b5482004-06-17 23:42:48 +000023177s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23178s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23179s,@EGREP@,$EGREP,;t t
Lev Walkinf15320b2004-06-03 03:38:44 +000023180s,@LN_S@,$LN_S,;t t
Lev Walkin8e8b5482004-06-17 23:42:48 +000023181s,@ECHO@,$ECHO,;t t
23182s,@AR@,$AR,;t t
23183s,@ac_ct_AR@,$ac_ct_AR,;t t
23184s,@RANLIB@,$RANLIB,;t t
23185s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23186s,@CPP@,$CPP,;t t
23187s,@CXX@,$CXX,;t t
23188s,@CXXFLAGS@,$CXXFLAGS,;t t
23189s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23190s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23191s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23192s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23193s,@CXXCPP@,$CXXCPP,;t t
23194s,@F77@,$F77,;t t
23195s,@FFLAGS@,$FFLAGS,;t t
23196s,@ac_ct_F77@,$ac_ct_F77,;t t
Lev Walkinf15320b2004-06-03 03:38:44 +000023197s,@LIBTOOL@,$LIBTOOL,;t t
23198s,@CONFIGURE_DEPENDS@,$CONFIGURE_DEPENDS,;t t
Lev Walkind8b940c2004-08-11 05:35:51 +000023199s,@CPLUSPLUS_FOUND_TRUE@,$CPLUSPLUS_FOUND_TRUE,;t t
23200s,@CPLUSPLUS_FOUND_FALSE@,$CPLUSPLUS_FOUND_FALSE,;t t
Lev Walkinf15320b2004-06-03 03:38:44 +000023201s,@YACC@,$YACC,;t t
23202s,@LEX@,$LEX,;t t
23203s,@LEXLIB@,$LEXLIB,;t t
23204s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Lev Walkinf15320b2004-06-03 03:38:44 +000023205s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
Lev Walkinf15320b2004-06-03 03:38:44 +000023206s,@LIBOBJS@,$LIBOBJS,;t t
23207s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23208CEOF
23209
23210_ACEOF
23211
23212 cat >>$CONFIG_STATUS <<\_ACEOF
23213 # Split the substitutions into bite-sized pieces for seds with
23214 # small command number limits, like on Digital OSF/1 and HP-UX.
23215 ac_max_sed_lines=48
23216 ac_sed_frag=1 # Number of current file.
23217 ac_beg=1 # First line for current file.
23218 ac_end=$ac_max_sed_lines # Line after last line for current file.
23219 ac_more_lines=:
23220 ac_sed_cmds=
23221 while $ac_more_lines; do
23222 if test $ac_beg -gt 1; then
23223 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23224 else
23225 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23226 fi
23227 if test ! -s $tmp/subs.frag; then
23228 ac_more_lines=false
23229 else
23230 # The purpose of the label and of the branching condition is to
23231 # speed up the sed processing (if there are no `@' at all, there
23232 # is no need to browse any of the substitutions).
23233 # These are the two extra sed commands mentioned above.
23234 (echo ':t
23235 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23236 if test -z "$ac_sed_cmds"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000023237 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
Lev Walkinf15320b2004-06-03 03:38:44 +000023238 else
Lev Walkin8e8b5482004-06-17 23:42:48 +000023239 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
Lev Walkinf15320b2004-06-03 03:38:44 +000023240 fi
23241 ac_sed_frag=`expr $ac_sed_frag + 1`
23242 ac_beg=$ac_end
23243 ac_end=`expr $ac_end + $ac_max_sed_lines`
23244 fi
23245 done
23246 if test -z "$ac_sed_cmds"; then
23247 ac_sed_cmds=cat
23248 fi
23249fi # test -n "$CONFIG_FILES"
23250
23251_ACEOF
23252cat >>$CONFIG_STATUS <<\_ACEOF
23253for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23254 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23255 case $ac_file in
23256 - | *:- | *:-:* ) # input from stdin
Lev Walkin8e8b5482004-06-17 23:42:48 +000023257 cat >$tmp/stdin
23258 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23259 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000023260 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Lev Walkin8e8b5482004-06-17 23:42:48 +000023261 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000023262 * ) ac_file_in=$ac_file.in ;;
23263 esac
23264
23265 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23266 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23267$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +000023268 X"$ac_file" : 'X\(//\)[^/]' \| \
23269 X"$ac_file" : 'X\(//\)$' \| \
23270 X"$ac_file" : 'X\(/\)' \| \
23271 . : '\(.\)' 2>/dev/null ||
Lev Walkinf15320b2004-06-03 03:38:44 +000023272echo X"$ac_file" |
23273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23274 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23275 /^X\(\/\/\)$/{ s//\1/; q; }
23276 /^X\(\/\).*/{ s//\1/; q; }
23277 s/.*/./; q'`
23278 { if $as_mkdir_p; then
23279 mkdir -p "$ac_dir"
23280 else
23281 as_dir="$ac_dir"
23282 as_dirs=
23283 while test ! -d "$as_dir"; do
23284 as_dirs="$as_dir $as_dirs"
23285 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23286$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +000023287 X"$as_dir" : 'X\(//\)[^/]' \| \
23288 X"$as_dir" : 'X\(//\)$' \| \
23289 X"$as_dir" : 'X\(/\)' \| \
23290 . : '\(.\)' 2>/dev/null ||
Lev Walkinf15320b2004-06-03 03:38:44 +000023291echo X"$as_dir" |
23292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23293 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23294 /^X\(\/\/\)$/{ s//\1/; q; }
23295 /^X\(\/\).*/{ s//\1/; q; }
23296 s/.*/./; q'`
23297 done
23298 test ! -n "$as_dirs" || mkdir $as_dirs
23299 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23300echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23301 { (exit 1); exit 1; }; }; }
23302
23303 ac_builddir=.
23304
23305if test "$ac_dir" != .; then
23306 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23307 # A "../" for each directory in $ac_dir_suffix.
23308 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23309else
23310 ac_dir_suffix= ac_top_builddir=
23311fi
23312
23313case $srcdir in
23314 .) # No --srcdir option. We are building in place.
23315 ac_srcdir=.
23316 if test -z "$ac_top_builddir"; then
23317 ac_top_srcdir=.
23318 else
23319 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23320 fi ;;
23321 [\\/]* | ?:[\\/]* ) # Absolute path.
23322 ac_srcdir=$srcdir$ac_dir_suffix;
23323 ac_top_srcdir=$srcdir ;;
23324 *) # Relative path.
23325 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23326 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23327esac
Lev Walkin8e8b5482004-06-17 23:42:48 +000023328
23329# Do not use `cd foo && pwd` to compute absolute paths, because
23330# the directories may not exist.
23331case `pwd` in
23332.) ac_abs_builddir="$ac_dir";;
23333*)
23334 case "$ac_dir" in
23335 .) ac_abs_builddir=`pwd`;;
23336 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23337 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23338 esac;;
23339esac
23340case $ac_abs_builddir in
23341.) ac_abs_top_builddir=${ac_top_builddir}.;;
23342*)
23343 case ${ac_top_builddir}. in
23344 .) ac_abs_top_builddir=$ac_abs_builddir;;
23345 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23346 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23347 esac;;
23348esac
23349case $ac_abs_builddir in
23350.) ac_abs_srcdir=$ac_srcdir;;
23351*)
23352 case $ac_srcdir in
23353 .) ac_abs_srcdir=$ac_abs_builddir;;
23354 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23355 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23356 esac;;
23357esac
23358case $ac_abs_builddir in
23359.) ac_abs_top_srcdir=$ac_top_srcdir;;
23360*)
23361 case $ac_top_srcdir in
23362 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23363 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23364 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23365 esac;;
23366esac
Lev Walkinf15320b2004-06-03 03:38:44 +000023367
23368
23369 case $INSTALL in
23370 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23371 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23372 esac
23373
23374 if test x"$ac_file" != x-; then
23375 { echo "$as_me:$LINENO: creating $ac_file" >&5
23376echo "$as_me: creating $ac_file" >&6;}
23377 rm -f "$ac_file"
23378 fi
23379 # Let's still pretend it is `configure' which instantiates (i.e., don't
23380 # use $as_me), people would be surprised to read:
23381 # /* config.h. Generated by config.status. */
23382 if test x"$ac_file" = x-; then
23383 configure_input=
23384 else
23385 configure_input="$ac_file. "
23386 fi
23387 configure_input=$configure_input"Generated from `echo $ac_file_in |
Lev Walkin8e8b5482004-06-17 23:42:48 +000023388 sed 's,.*/,,'` by configure."
Lev Walkinf15320b2004-06-03 03:38:44 +000023389
23390 # First look for the input files in the build tree, otherwise in the
23391 # src tree.
23392 ac_file_inputs=`IFS=:
23393 for f in $ac_file_in; do
23394 case $f in
23395 -) echo $tmp/stdin ;;
23396 [\\/$]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +000023397 # Absolute (can't be DOS-style, as IFS=:)
23398 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000023399echo "$as_me: error: cannot find input file: $f" >&2;}
23400 { (exit 1); exit 1; }; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000023401 echo "$f";;
Lev Walkinf15320b2004-06-03 03:38:44 +000023402 *) # Relative
Lev Walkin8e8b5482004-06-17 23:42:48 +000023403 if test -f "$f"; then
23404 # Build tree
23405 echo "$f"
23406 elif test -f "$srcdir/$f"; then
23407 # Source tree
23408 echo "$srcdir/$f"
23409 else
23410 # /dev/null tree
23411 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000023412echo "$as_me: error: cannot find input file: $f" >&2;}
23413 { (exit 1); exit 1; }; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000023414 fi;;
Lev Walkinf15320b2004-06-03 03:38:44 +000023415 esac
23416 done` || { (exit 1); exit 1; }
23417_ACEOF
23418cat >>$CONFIG_STATUS <<_ACEOF
23419 sed "$ac_vpsub
23420$extrasub
23421_ACEOF
23422cat >>$CONFIG_STATUS <<\_ACEOF
23423:t
23424/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23425s,@configure_input@,$configure_input,;t t
23426s,@srcdir@,$ac_srcdir,;t t
23427s,@abs_srcdir@,$ac_abs_srcdir,;t t
23428s,@top_srcdir@,$ac_top_srcdir,;t t
23429s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23430s,@builddir@,$ac_builddir,;t t
23431s,@abs_builddir@,$ac_abs_builddir,;t t
23432s,@top_builddir@,$ac_top_builddir,;t t
23433s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23434s,@INSTALL@,$ac_INSTALL,;t t
23435" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23436 rm -f $tmp/stdin
23437 if test x"$ac_file" != x-; then
23438 mv $tmp/out $ac_file
23439 else
23440 cat $tmp/out
23441 rm -f $tmp/out
23442 fi
23443
23444done
23445_ACEOF
23446cat >>$CONFIG_STATUS <<\_ACEOF
23447
23448#
23449# CONFIG_HEADER section.
23450#
23451
23452# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23453# NAME is the cpp macro being defined and VALUE is the value it is being given.
23454#
23455# ac_d sets the value in "#define NAME VALUE" lines.
Lev Walkin8e8b5482004-06-17 23:42:48 +000023456ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23457ac_dB='[ ].*$,\1#\2'
Lev Walkinf15320b2004-06-03 03:38:44 +000023458ac_dC=' '
23459ac_dD=',;t'
23460# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Lev Walkin8e8b5482004-06-17 23:42:48 +000023461ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
Lev Walkinf15320b2004-06-03 03:38:44 +000023462ac_uB='$,\1#\2define\3'
23463ac_uC=' '
23464ac_uD=',;t'
23465
23466for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23467 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23468 case $ac_file in
23469 - | *:- | *:-:* ) # input from stdin
Lev Walkin8e8b5482004-06-17 23:42:48 +000023470 cat >$tmp/stdin
23471 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23472 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000023473 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Lev Walkin8e8b5482004-06-17 23:42:48 +000023474 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000023475 * ) ac_file_in=$ac_file.in ;;
23476 esac
23477
23478 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23479echo "$as_me: creating $ac_file" >&6;}
23480
23481 # First look for the input files in the build tree, otherwise in the
23482 # src tree.
23483 ac_file_inputs=`IFS=:
23484 for f in $ac_file_in; do
23485 case $f in
23486 -) echo $tmp/stdin ;;
23487 [\\/$]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +000023488 # Absolute (can't be DOS-style, as IFS=:)
23489 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000023490echo "$as_me: error: cannot find input file: $f" >&2;}
23491 { (exit 1); exit 1; }; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000023492 # Do quote $f, to prevent DOS paths from being IFS'd.
23493 echo "$f";;
Lev Walkinf15320b2004-06-03 03:38:44 +000023494 *) # Relative
Lev Walkin8e8b5482004-06-17 23:42:48 +000023495 if test -f "$f"; then
23496 # Build tree
23497 echo "$f"
23498 elif test -f "$srcdir/$f"; then
23499 # Source tree
23500 echo "$srcdir/$f"
23501 else
23502 # /dev/null tree
23503 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000023504echo "$as_me: error: cannot find input file: $f" >&2;}
23505 { (exit 1); exit 1; }; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000023506 fi;;
Lev Walkinf15320b2004-06-03 03:38:44 +000023507 esac
23508 done` || { (exit 1); exit 1; }
23509 # Remove the trailing spaces.
Lev Walkin8e8b5482004-06-17 23:42:48 +000023510 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Lev Walkinf15320b2004-06-03 03:38:44 +000023511
23512_ACEOF
23513
23514# Transform confdefs.h into two sed scripts, `conftest.defines' and
23515# `conftest.undefs', that substitutes the proper values into
23516# config.h.in to produce config.h. The first handles `#define'
23517# templates, and the second `#undef' templates.
23518# And first: Protect against being on the right side of a sed subst in
23519# config.status. Protect against being in an unquoted here document
23520# in config.status.
23521rm -f conftest.defines conftest.undefs
23522# Using a here document instead of a string reduces the quoting nightmare.
23523# Putting comments in sed scripts is not portable.
23524#
23525# `end' is used to avoid that the second main sed command (meant for
23526# 0-ary CPP macros) applies to n-ary macro definitions.
23527# See the Autoconf documentation for `clear'.
23528cat >confdef2sed.sed <<\_ACEOF
23529s/[\\&,]/\\&/g
23530s,[\\$`],\\&,g
23531t clear
23532: clear
Lev Walkin8e8b5482004-06-17 23:42:48 +000023533s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Lev Walkinf15320b2004-06-03 03:38:44 +000023534t end
Lev Walkin8e8b5482004-06-17 23:42:48 +000023535s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
Lev Walkinf15320b2004-06-03 03:38:44 +000023536: end
23537_ACEOF
23538# If some macros were called several times there might be several times
23539# the same #defines, which is useless. Nevertheless, we may not want to
23540# sort them, since we want the *last* AC-DEFINE to be honored.
23541uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23542sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23543rm -f confdef2sed.sed
23544
23545# This sed command replaces #undef with comments. This is necessary, for
23546# example, in the case of _POSIX_SOURCE, which is predefined and required
23547# on some systems where configure will not decide to define it.
23548cat >>conftest.undefs <<\_ACEOF
Lev Walkin8e8b5482004-06-17 23:42:48 +000023549s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Lev Walkinf15320b2004-06-03 03:38:44 +000023550_ACEOF
23551
23552# Break up conftest.defines because some shells have a limit on the size
23553# of here documents, and old seds have small limits too (100 cmds).
23554echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Lev Walkin8e8b5482004-06-17 23:42:48 +000023555echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Lev Walkinf15320b2004-06-03 03:38:44 +000023556echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23557echo ' :' >>$CONFIG_STATUS
23558rm -f conftest.tail
23559while grep . conftest.defines >/dev/null
23560do
23561 # Write a limited-size here document to $tmp/defines.sed.
23562 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23563 # Speed up: don't consider the non `#define' lines.
Lev Walkin8e8b5482004-06-17 23:42:48 +000023564 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
Lev Walkinf15320b2004-06-03 03:38:44 +000023565 # Work around the forget-to-reset-the-flag bug.
23566 echo 't clr' >>$CONFIG_STATUS
23567 echo ': clr' >>$CONFIG_STATUS
23568 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23569 echo 'CEOF
23570 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23571 rm -f $tmp/in
23572 mv $tmp/out $tmp/in
23573' >>$CONFIG_STATUS
23574 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23575 rm -f conftest.defines
23576 mv conftest.tail conftest.defines
23577done
23578rm -f conftest.defines
23579echo ' fi # grep' >>$CONFIG_STATUS
23580echo >>$CONFIG_STATUS
23581
23582# Break up conftest.undefs because some shells have a limit on the size
23583# of here documents, and old seds have small limits too (100 cmds).
23584echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23585rm -f conftest.tail
23586while grep . conftest.undefs >/dev/null
23587do
23588 # Write a limited-size here document to $tmp/undefs.sed.
23589 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23590 # Speed up: don't consider the non `#undef'
Lev Walkin8e8b5482004-06-17 23:42:48 +000023591 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
Lev Walkinf15320b2004-06-03 03:38:44 +000023592 # Work around the forget-to-reset-the-flag bug.
23593 echo 't clr' >>$CONFIG_STATUS
23594 echo ': clr' >>$CONFIG_STATUS
23595 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23596 echo 'CEOF
23597 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23598 rm -f $tmp/in
23599 mv $tmp/out $tmp/in
23600' >>$CONFIG_STATUS
23601 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23602 rm -f conftest.undefs
23603 mv conftest.tail conftest.undefs
23604done
23605rm -f conftest.undefs
23606
23607cat >>$CONFIG_STATUS <<\_ACEOF
23608 # Let's still pretend it is `configure' which instantiates (i.e., don't
23609 # use $as_me), people would be surprised to read:
23610 # /* config.h. Generated by config.status. */
23611 if test x"$ac_file" = x-; then
23612 echo "/* Generated by configure. */" >$tmp/config.h
23613 else
23614 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23615 fi
23616 cat $tmp/in >>$tmp/config.h
23617 rm -f $tmp/in
23618 if test x"$ac_file" != x-; then
23619 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23620 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23621echo "$as_me: $ac_file is unchanged" >&6;}
23622 else
23623 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23624$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +000023625 X"$ac_file" : 'X\(//\)[^/]' \| \
23626 X"$ac_file" : 'X\(//\)$' \| \
23627 X"$ac_file" : 'X\(/\)' \| \
23628 . : '\(.\)' 2>/dev/null ||
Lev Walkinf15320b2004-06-03 03:38:44 +000023629echo X"$ac_file" |
23630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23631 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23632 /^X\(\/\/\)$/{ s//\1/; q; }
23633 /^X\(\/\).*/{ s//\1/; q; }
23634 s/.*/./; q'`
23635 { if $as_mkdir_p; then
23636 mkdir -p "$ac_dir"
23637 else
23638 as_dir="$ac_dir"
23639 as_dirs=
23640 while test ! -d "$as_dir"; do
23641 as_dirs="$as_dir $as_dirs"
23642 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23643$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +000023644 X"$as_dir" : 'X\(//\)[^/]' \| \
23645 X"$as_dir" : 'X\(//\)$' \| \
23646 X"$as_dir" : 'X\(/\)' \| \
23647 . : '\(.\)' 2>/dev/null ||
Lev Walkinf15320b2004-06-03 03:38:44 +000023648echo X"$as_dir" |
23649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23650 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23651 /^X\(\/\/\)$/{ s//\1/; q; }
23652 /^X\(\/\).*/{ s//\1/; q; }
23653 s/.*/./; q'`
23654 done
23655 test ! -n "$as_dirs" || mkdir $as_dirs
23656 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23657echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23658 { (exit 1); exit 1; }; }; }
23659
23660 rm -f $ac_file
23661 mv $tmp/config.h $ac_file
23662 fi
23663 else
23664 cat $tmp/config.h
23665 rm -f $tmp/config.h
23666 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000023667# Compute $ac_file's index in $config_headers.
23668_am_stamp_count=1
23669for _am_header in $config_headers :; do
23670 case $_am_header in
23671 $ac_file | $ac_file:* )
23672 break ;;
23673 * )
23674 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000023675 esac
23676done
Lev Walkin8e8b5482004-06-17 23:42:48 +000023677echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23678$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23679 X$ac_file : 'X\(//\)[^/]' \| \
23680 X$ac_file : 'X\(//\)$' \| \
23681 X$ac_file : 'X\(/\)' \| \
23682 . : '\(.\)' 2>/dev/null ||
23683echo X$ac_file |
23684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23686 /^X\(\/\/\)$/{ s//\1/; q; }
23687 /^X\(\/\).*/{ s//\1/; q; }
23688 s/.*/./; q'`/stamp-h$_am_stamp_count
23689done
Lev Walkinf15320b2004-06-03 03:38:44 +000023690_ACEOF
23691cat >>$CONFIG_STATUS <<\_ACEOF
23692
23693#
23694# CONFIG_COMMANDS section.
23695#
23696for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23697 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23698 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23699 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23700$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +000023701 X"$ac_dest" : 'X\(//\)[^/]' \| \
23702 X"$ac_dest" : 'X\(//\)$' \| \
23703 X"$ac_dest" : 'X\(/\)' \| \
23704 . : '\(.\)' 2>/dev/null ||
Lev Walkinf15320b2004-06-03 03:38:44 +000023705echo X"$ac_dest" |
23706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23708 /^X\(\/\/\)$/{ s//\1/; q; }
23709 /^X\(\/\).*/{ s//\1/; q; }
23710 s/.*/./; q'`
Lev Walkin8e8b5482004-06-17 23:42:48 +000023711 { if $as_mkdir_p; then
23712 mkdir -p "$ac_dir"
23713 else
23714 as_dir="$ac_dir"
23715 as_dirs=
23716 while test ! -d "$as_dir"; do
23717 as_dirs="$as_dir $as_dirs"
23718 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23719$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23720 X"$as_dir" : 'X\(//\)[^/]' \| \
23721 X"$as_dir" : 'X\(//\)$' \| \
23722 X"$as_dir" : 'X\(/\)' \| \
23723 . : '\(.\)' 2>/dev/null ||
23724echo X"$as_dir" |
23725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23726 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23727 /^X\(\/\/\)$/{ s//\1/; q; }
23728 /^X\(\/\).*/{ s//\1/; q; }
23729 s/.*/./; q'`
23730 done
23731 test ! -n "$as_dirs" || mkdir $as_dirs
23732 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23733echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23734 { (exit 1); exit 1; }; }; }
23735
Lev Walkinf15320b2004-06-03 03:38:44 +000023736 ac_builddir=.
23737
23738if test "$ac_dir" != .; then
23739 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23740 # A "../" for each directory in $ac_dir_suffix.
23741 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23742else
23743 ac_dir_suffix= ac_top_builddir=
23744fi
23745
23746case $srcdir in
23747 .) # No --srcdir option. We are building in place.
23748 ac_srcdir=.
23749 if test -z "$ac_top_builddir"; then
23750 ac_top_srcdir=.
23751 else
23752 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23753 fi ;;
23754 [\\/]* | ?:[\\/]* ) # Absolute path.
23755 ac_srcdir=$srcdir$ac_dir_suffix;
23756 ac_top_srcdir=$srcdir ;;
23757 *) # Relative path.
23758 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23759 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23760esac
Lev Walkin8e8b5482004-06-17 23:42:48 +000023761
23762# Do not use `cd foo && pwd` to compute absolute paths, because
23763# the directories may not exist.
23764case `pwd` in
23765.) ac_abs_builddir="$ac_dir";;
23766*)
23767 case "$ac_dir" in
23768 .) ac_abs_builddir=`pwd`;;
23769 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23770 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23771 esac;;
23772esac
23773case $ac_abs_builddir in
23774.) ac_abs_top_builddir=${ac_top_builddir}.;;
23775*)
23776 case ${ac_top_builddir}. in
23777 .) ac_abs_top_builddir=$ac_abs_builddir;;
23778 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23779 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23780 esac;;
23781esac
23782case $ac_abs_builddir in
23783.) ac_abs_srcdir=$ac_srcdir;;
23784*)
23785 case $ac_srcdir in
23786 .) ac_abs_srcdir=$ac_abs_builddir;;
23787 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23788 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23789 esac;;
23790esac
23791case $ac_abs_builddir in
23792.) ac_abs_top_srcdir=$ac_top_srcdir;;
23793*)
23794 case $ac_top_srcdir in
23795 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23796 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23797 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23798 esac;;
23799esac
Lev Walkinf15320b2004-06-03 03:38:44 +000023800
23801
23802 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23803echo "$as_me: executing $ac_dest commands" >&6;}
23804 case $ac_dest in
Lev Walkin8e8b5482004-06-17 23:42:48 +000023805 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23806 # Strip MF so we end up with the name of the file.
23807 mf=`echo "$mf" | sed -e 's/:.*$//'`
23808 # Check whether this is an Automake generated Makefile or not.
23809 # We used to match only the files named `Makefile.in', but
23810 # some people rename them; so instead we look at the file content.
23811 # Grep'ing the first line is not enough: some people post-process
23812 # each Makefile.in and add a new line on top of each file to say so.
23813 # So let's grep whole file.
23814 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23815 dirpart=`(dirname "$mf") 2>/dev/null ||
23816$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23817 X"$mf" : 'X\(//\)[^/]' \| \
23818 X"$mf" : 'X\(//\)$' \| \
23819 X"$mf" : 'X\(/\)' \| \
23820 . : '\(.\)' 2>/dev/null ||
23821echo X"$mf" |
23822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23823 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23824 /^X\(\/\/\)$/{ s//\1/; q; }
23825 /^X\(\/\).*/{ s//\1/; q; }
23826 s/.*/./; q'`
23827 else
23828 continue
23829 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000023830 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
23831 # Extract the definition of DEP_FILES from the Makefile without
23832 # running `make'.
Lev Walkin8e8b5482004-06-17 23:42:48 +000023833 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Lev Walkinf15320b2004-06-03 03:38:44 +000023834 test -z "$DEPDIR" && continue
23835 # When using ansi2knr, U may be empty or an underscore; expand it
Lev Walkin8e8b5482004-06-17 23:42:48 +000023836 U=`sed -n 's/^U = //p' < "$mf"`
Lev Walkinf15320b2004-06-03 03:38:44 +000023837 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23838 # We invoke sed twice because it is the simplest approach to
23839 # changing $(DEPDIR) to its actual value in the expansion.
Lev Walkin8e8b5482004-06-17 23:42:48 +000023840 for file in `sed -n '
Lev Walkinf15320b2004-06-03 03:38:44 +000023841 /^DEP_FILES = .*\\\\$/ {
23842 s/^DEP_FILES = //
23843 :loop
23844 s/\\\\$//
23845 p
23846 n
23847 /\\\\$/ b loop
23848 p
23849 }
23850 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
23851 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23852 # Make sure the directory exists.
23853 test -f "$dirpart/$file" && continue
Lev Walkin8e8b5482004-06-17 23:42:48 +000023854 fdir=`(dirname "$file") 2>/dev/null ||
23855$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23856 X"$file" : 'X\(//\)[^/]' \| \
23857 X"$file" : 'X\(//\)$' \| \
23858 X"$file" : 'X\(/\)' \| \
23859 . : '\(.\)' 2>/dev/null ||
23860echo X"$file" |
23861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23862 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23863 /^X\(\/\/\)$/{ s//\1/; q; }
23864 /^X\(\/\).*/{ s//\1/; q; }
23865 s/.*/./; q'`
23866 { if $as_mkdir_p; then
23867 mkdir -p $dirpart/$fdir
23868 else
23869 as_dir=$dirpart/$fdir
23870 as_dirs=
23871 while test ! -d "$as_dir"; do
23872 as_dirs="$as_dir $as_dirs"
23873 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23874$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23875 X"$as_dir" : 'X\(//\)[^/]' \| \
23876 X"$as_dir" : 'X\(//\)$' \| \
23877 X"$as_dir" : 'X\(/\)' \| \
23878 . : '\(.\)' 2>/dev/null ||
23879echo X"$as_dir" |
23880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23881 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23882 /^X\(\/\/\)$/{ s//\1/; q; }
23883 /^X\(\/\).*/{ s//\1/; q; }
23884 s/.*/./; q'`
23885 done
23886 test ! -n "$as_dirs" || mkdir $as_dirs
23887 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23888echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23889 { (exit 1); exit 1; }; }; }
23890
Lev Walkinf15320b2004-06-03 03:38:44 +000023891 # echo "creating $dirpart/$file"
23892 echo '# dummy' > "$dirpart/$file"
23893 done
23894done
23895 ;;
23896 esac
23897done
23898_ACEOF
23899
23900cat >>$CONFIG_STATUS <<\_ACEOF
23901
23902{ (exit 0); exit 0; }
23903_ACEOF
23904chmod +x $CONFIG_STATUS
23905ac_clean_files=$ac_clean_files_save
23906
23907
23908# configure is writing to config.log, and then calls config.status.
23909# config.status does its own redirection, appending to config.log.
23910# Unfortunately, on DOS this fails, as config.log is still kept open
23911# by configure, so config.status won't be able to write to it; its
23912# output is simply discarded. So we exec the FD to /dev/null,
23913# effectively closing config.log, so it can be properly (re)opened and
23914# appended to by config.status. When coming back to configure, we
23915# need to make the FD available again.
23916if test "$no_create" != yes; then
23917 ac_cs_success=:
23918 ac_config_status_args=
23919 test "$silent" = yes &&
23920 ac_config_status_args="$ac_config_status_args --quiet"
23921 exec 5>/dev/null
23922 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23923 exec 5>>config.log
23924 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23925 # would make configure fail if this is the last instruction.
23926 $ac_cs_success || { (exit 1); exit 1; }
23927fi
23928
23929