blob: e1d47c761bba3e3db5e1ee141a2bcd682aa3fc2c [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencer17041682004-09-05 17:48:32 +00003# Generated by GNU Autoconf 2.59 for LLVM 1.4.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencer17041682004-09-05 17:48:32 +00007# Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00008# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
John Criswell0c38eaf2003-09-10 15:17:25 +000010## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
Reid Spencer17041682004-09-05 17:48:32 +000024DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000025
26# Support unset when possible.
Reid Spencer17041682004-09-05 17:48:32 +000027if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000028 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
Reid Spencer17041682004-09-05 17:48:32 +000046 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000047 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
Reid Spencer17041682004-09-05 17:48:32 +0000223 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
Reid Spencer17041682004-09-05 17:48:32 +0000230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000231
232# Sed expression to map a string onto a valid variable name.
Reid Spencer17041682004-09-05 17:48:32 +0000233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
John Criswell7a73b802003-06-30 21:59:07 +0000245
John Criswell7a73b802003-06-30 21:59:07 +0000246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
John Criswell47fdd832003-07-14 16:52:07 +0000264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000265 # Yippee, $echo works!
266 :
267else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000276$*
John Criswell7a73b802003-06-30 21:59:07 +0000277EOF
278 exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
John Criswell47fdd832003-07-14 16:52:07 +0000310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000311 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000312 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
319 fi
320 done
John Criswell47fdd832003-07-14 16:52:07 +0000321 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000322
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
345 :
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
363
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
368 fi
369 prev="$cmd"
370 done
371
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
379 fi
380 fi
381 fi
382 fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
John Criswell47fdd832003-07-14 16:52:07 +0000395
Reid Spencer9751dbf2004-09-07 18:04:45 +0000396tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000397
Reid Spencer9751dbf2004-09-07 18:04:45 +0000398tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000399
John Criswell7a73b802003-06-30 21:59:07 +0000400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000411ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete. It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
Reid Spencer2b51a082004-08-04 00:34:49 +0000424PACKAGE_NAME='LLVM'
425PACKAGE_TARNAME='-llvm-'
Reid Spencere9de0912004-08-20 09:03:57 +0000426PACKAGE_VERSION='1.4'
427PACKAGE_STRING='LLVM 1.4'
John Criswell7a73b802003-06-30 21:59:07 +0000428PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429
Reid Spencer4d68ba22004-09-07 16:35:45 +0000430ac_subdirs_all="$ac_subdirs_all projects/sample"
431ac_subdirs_all="$ac_subdirs_all projects/Stacker"
432ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
433ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
434ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
435ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
436ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
437ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
438ac_subdirs_all="$ac_subdirs_all ${i}"
John Criswell7a73b802003-06-30 21:59:07 +0000439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453# include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458# include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469# include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
476ac_unique_file=""Makefile.config.in""
Reid Spencer9751dbf2004-09-07 18:04:45 +0000477ac_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 subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_PTHREAD_MUTEX_LOCK INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H INCLUDE_STDINT_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED JIT LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000478ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000479
480# Initialize some variables set by options.
481ac_init_help=
482ac_init_version=false
483# The variables have the same names as the options, with
484# dashes changed to underlines.
485cache_file=/dev/null
486exec_prefix=NONE
487no_create=
488no_recursion=
489prefix=NONE
490program_prefix=NONE
491program_suffix=NONE
492program_transform_name=s,x,x,
493silent=
494site=
495srcdir=
496verbose=
497x_includes=NONE
498x_libraries=NONE
499
500# Installation directory options.
501# These are left unexpanded so users can "make install exec_prefix=/foo"
502# and all the variables that are supposed to be based on exec_prefix
503# by default will actually change.
504# Use braces instead of parens because sh, perl, etc. also accept them.
505bindir='${exec_prefix}/bin'
506sbindir='${exec_prefix}/sbin'
507libexecdir='${exec_prefix}/libexec'
508datadir='${prefix}/share'
509sysconfdir='${prefix}/etc'
510sharedstatedir='${prefix}/com'
511localstatedir='${prefix}/var'
512libdir='${exec_prefix}/lib'
513includedir='${prefix}/include'
514oldincludedir='/usr/include'
515infodir='${prefix}/info'
516mandir='${prefix}/man'
517
518ac_prev=
519for ac_option
520do
521 # If the previous option needs an argument, assign it.
522 if test -n "$ac_prev"; then
523 eval "$ac_prev=\$ac_option"
524 ac_prev=
525 continue
526 fi
527
528 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
529
530 # Accept the important Cygnus configure options, so we can diagnose typos.
531
532 case $ac_option in
533
534 -bindir | --bindir | --bindi | --bind | --bin | --bi)
535 ac_prev=bindir ;;
536 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
537 bindir=$ac_optarg ;;
538
539 -build | --build | --buil | --bui | --bu)
540 ac_prev=build_alias ;;
541 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
542 build_alias=$ac_optarg ;;
543
544 -cache-file | --cache-file | --cache-fil | --cache-fi \
545 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
546 ac_prev=cache_file ;;
547 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
548 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
549 cache_file=$ac_optarg ;;
550
551 --config-cache | -C)
552 cache_file=config.cache ;;
553
554 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
555 ac_prev=datadir ;;
556 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
557 | --da=*)
558 datadir=$ac_optarg ;;
559
560 -disable-* | --disable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 eval "enable_$ac_feature=no" ;;
568
569 -enable-* | --enable-*)
570 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
571 # Reject names that are not valid shell variable names.
572 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
573 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
574 { (exit 1); exit 1; }; }
575 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
576 case $ac_option in
577 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
578 *) ac_optarg=yes ;;
579 esac
580 eval "enable_$ac_feature='$ac_optarg'" ;;
581
582 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
583 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
584 | --exec | --exe | --ex)
585 ac_prev=exec_prefix ;;
586 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
587 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
588 | --exec=* | --exe=* | --ex=*)
589 exec_prefix=$ac_optarg ;;
590
591 -gas | --gas | --ga | --g)
592 # Obsolete; use --with-gas.
593 with_gas=yes ;;
594
595 -help | --help | --hel | --he | -h)
596 ac_init_help=long ;;
597 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
598 ac_init_help=recursive ;;
599 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
600 ac_init_help=short ;;
601
602 -host | --host | --hos | --ho)
603 ac_prev=host_alias ;;
604 -host=* | --host=* | --hos=* | --ho=*)
605 host_alias=$ac_optarg ;;
606
607 -includedir | --includedir | --includedi | --included | --include \
608 | --includ | --inclu | --incl | --inc)
609 ac_prev=includedir ;;
610 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
611 | --includ=* | --inclu=* | --incl=* | --inc=*)
612 includedir=$ac_optarg ;;
613
614 -infodir | --infodir | --infodi | --infod | --info | --inf)
615 ac_prev=infodir ;;
616 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
617 infodir=$ac_optarg ;;
618
619 -libdir | --libdir | --libdi | --libd)
620 ac_prev=libdir ;;
621 -libdir=* | --libdir=* | --libdi=* | --libd=*)
622 libdir=$ac_optarg ;;
623
624 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
625 | --libexe | --libex | --libe)
626 ac_prev=libexecdir ;;
627 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
628 | --libexe=* | --libex=* | --libe=*)
629 libexecdir=$ac_optarg ;;
630
631 -localstatedir | --localstatedir | --localstatedi | --localstated \
632 | --localstate | --localstat | --localsta | --localst \
633 | --locals | --local | --loca | --loc | --lo)
634 ac_prev=localstatedir ;;
635 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
636 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
637 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
638 localstatedir=$ac_optarg ;;
639
640 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
641 ac_prev=mandir ;;
642 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
643 mandir=$ac_optarg ;;
644
645 -nfp | --nfp | --nf)
646 # Obsolete; use --without-fp.
647 with_fp=no ;;
648
649 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
650 | --no-cr | --no-c | -n)
651 no_create=yes ;;
652
653 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
654 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
655 no_recursion=yes ;;
656
657 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
658 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
659 | --oldin | --oldi | --old | --ol | --o)
660 ac_prev=oldincludedir ;;
661 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
662 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
663 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
664 oldincludedir=$ac_optarg ;;
665
666 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
667 ac_prev=prefix ;;
668 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
669 prefix=$ac_optarg ;;
670
671 -program-prefix | --program-prefix | --program-prefi | --program-pref \
672 | --program-pre | --program-pr | --program-p)
673 ac_prev=program_prefix ;;
674 -program-prefix=* | --program-prefix=* | --program-prefi=* \
675 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
676 program_prefix=$ac_optarg ;;
677
678 -program-suffix | --program-suffix | --program-suffi | --program-suff \
679 | --program-suf | --program-su | --program-s)
680 ac_prev=program_suffix ;;
681 -program-suffix=* | --program-suffix=* | --program-suffi=* \
682 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
683 program_suffix=$ac_optarg ;;
684
685 -program-transform-name | --program-transform-name \
686 | --program-transform-nam | --program-transform-na \
687 | --program-transform-n | --program-transform- \
688 | --program-transform | --program-transfor \
689 | --program-transfo | --program-transf \
690 | --program-trans | --program-tran \
691 | --progr-tra | --program-tr | --program-t)
692 ac_prev=program_transform_name ;;
693 -program-transform-name=* | --program-transform-name=* \
694 | --program-transform-nam=* | --program-transform-na=* \
695 | --program-transform-n=* | --program-transform-=* \
696 | --program-transform=* | --program-transfor=* \
697 | --program-transfo=* | --program-transf=* \
698 | --program-trans=* | --program-tran=* \
699 | --progr-tra=* | --program-tr=* | --program-t=*)
700 program_transform_name=$ac_optarg ;;
701
702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
703 | -silent | --silent | --silen | --sile | --sil)
704 silent=yes ;;
705
706 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
707 ac_prev=sbindir ;;
708 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
709 | --sbi=* | --sb=*)
710 sbindir=$ac_optarg ;;
711
712 -sharedstatedir | --sharedstatedir | --sharedstatedi \
713 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
714 | --sharedst | --shareds | --shared | --share | --shar \
715 | --sha | --sh)
716 ac_prev=sharedstatedir ;;
717 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
718 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
719 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
720 | --sha=* | --sh=*)
721 sharedstatedir=$ac_optarg ;;
722
723 -site | --site | --sit)
724 ac_prev=site ;;
725 -site=* | --site=* | --sit=*)
726 site=$ac_optarg ;;
727
728 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
729 ac_prev=srcdir ;;
730 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
731 srcdir=$ac_optarg ;;
732
733 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
734 | --syscon | --sysco | --sysc | --sys | --sy)
735 ac_prev=sysconfdir ;;
736 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
737 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
738 sysconfdir=$ac_optarg ;;
739
740 -target | --target | --targe | --targ | --tar | --ta | --t)
741 ac_prev=target_alias ;;
742 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
743 target_alias=$ac_optarg ;;
744
745 -v | -verbose | --verbose | --verbos | --verbo | --verb)
746 verbose=yes ;;
747
748 -version | --version | --versio | --versi | --vers | -V)
749 ac_init_version=: ;;
750
751 -with-* | --with-*)
752 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
753 # Reject names that are not valid shell variable names.
754 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
755 { echo "$as_me: error: invalid package name: $ac_package" >&2
756 { (exit 1); exit 1; }; }
757 ac_package=`echo $ac_package| sed 's/-/_/g'`
758 case $ac_option in
759 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
760 *) ac_optarg=yes ;;
761 esac
762 eval "with_$ac_package='$ac_optarg'" ;;
763
764 -without-* | --without-*)
765 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
766 # Reject names that are not valid shell variable names.
767 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
768 { echo "$as_me: error: invalid package name: $ac_package" >&2
769 { (exit 1); exit 1; }; }
770 ac_package=`echo $ac_package | sed 's/-/_/g'`
771 eval "with_$ac_package=no" ;;
772
773 --x)
774 # Obsolete; use --with-x.
775 with_x=yes ;;
776
777 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
778 | --x-incl | --x-inc | --x-in | --x-i)
779 ac_prev=x_includes ;;
780 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
781 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
782 x_includes=$ac_optarg ;;
783
784 -x-libraries | --x-libraries | --x-librarie | --x-librari \
785 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
786 ac_prev=x_libraries ;;
787 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
788 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
789 x_libraries=$ac_optarg ;;
790
791 -*) { echo "$as_me: error: unrecognized option: $ac_option
792Try \`$0 --help' for more information." >&2
793 { (exit 1); exit 1; }; }
794 ;;
795
796 *=*)
797 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
798 # Reject names that are not valid shell variable names.
799 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
800 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
801 { (exit 1); exit 1; }; }
802 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
803 eval "$ac_envvar='$ac_optarg'"
804 export $ac_envvar ;;
805
806 *)
807 # FIXME: should be removed in autoconf 3.0.
808 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
809 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
810 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
811 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
812 ;;
813
814 esac
815done
816
817if test -n "$ac_prev"; then
818 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
819 { echo "$as_me: error: missing argument to $ac_option" >&2
820 { (exit 1); exit 1; }; }
821fi
822
823# Be sure to have absolute paths.
824for ac_var in exec_prefix prefix
825do
826 eval ac_val=$`echo $ac_var`
827 case $ac_val in
828 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
829 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830 { (exit 1); exit 1; }; };;
831 esac
832done
833
834# Be sure to have absolute paths.
835for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer17041682004-09-05 17:48:32 +0000836 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000837do
838 eval ac_val=$`echo $ac_var`
839 case $ac_val in
840 [\\/$]* | ?:[\\/]* ) ;;
841 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
842 { (exit 1); exit 1; }; };;
843 esac
844done
845
846# There might be people who depend on the old broken behavior: `$host'
847# used to hold the argument of --host etc.
848# FIXME: To remove some day.
849build=$build_alias
850host=$host_alias
851target=$target_alias
852
853# FIXME: To remove some day.
854if test "x$host_alias" != x; then
855 if test "x$build_alias" = x; then
856 cross_compiling=maybe
857 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
858 If a cross compiler is detected then cross compile mode will be used." >&2
859 elif test "x$build_alias" != "x$host_alias"; then
860 cross_compiling=yes
861 fi
862fi
863
864ac_tool_prefix=
865test -n "$host_alias" && ac_tool_prefix=$host_alias-
866
867test "$silent" = yes && exec 6>/dev/null
868
869
870# Find the source files, if location was not specified.
871if test -z "$srcdir"; then
872 ac_srcdir_defaulted=yes
873 # Try the directory containing this script, then its parent.
874 ac_confdir=`(dirname "$0") 2>/dev/null ||
875$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer17041682004-09-05 17:48:32 +0000876 X"$0" : 'X\(//\)[^/]' \| \
877 X"$0" : 'X\(//\)$' \| \
878 X"$0" : 'X\(/\)' \| \
879 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000880echo X"$0" |
881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
882 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
883 /^X\(\/\/\)$/{ s//\1/; q; }
884 /^X\(\/\).*/{ s//\1/; q; }
885 s/.*/./; q'`
886 srcdir=$ac_confdir
887 if test ! -r $srcdir/$ac_unique_file; then
888 srcdir=..
889 fi
890else
891 ac_srcdir_defaulted=no
892fi
893if test ! -r $srcdir/$ac_unique_file; then
894 if test "$ac_srcdir_defaulted" = yes; then
895 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
896 { (exit 1); exit 1; }; }
897 else
898 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
899 { (exit 1); exit 1; }; }
900 fi
901fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000902(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
903 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
904 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000905srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
906ac_env_build_alias_set=${build_alias+set}
907ac_env_build_alias_value=$build_alias
908ac_cv_env_build_alias_set=${build_alias+set}
909ac_cv_env_build_alias_value=$build_alias
910ac_env_host_alias_set=${host_alias+set}
911ac_env_host_alias_value=$host_alias
912ac_cv_env_host_alias_set=${host_alias+set}
913ac_cv_env_host_alias_value=$host_alias
914ac_env_target_alias_set=${target_alias+set}
915ac_env_target_alias_value=$target_alias
916ac_cv_env_target_alias_set=${target_alias+set}
917ac_cv_env_target_alias_value=$target_alias
918ac_env_CXX_set=${CXX+set}
919ac_env_CXX_value=$CXX
920ac_cv_env_CXX_set=${CXX+set}
921ac_cv_env_CXX_value=$CXX
922ac_env_CXXFLAGS_set=${CXXFLAGS+set}
923ac_env_CXXFLAGS_value=$CXXFLAGS
924ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
925ac_cv_env_CXXFLAGS_value=$CXXFLAGS
926ac_env_LDFLAGS_set=${LDFLAGS+set}
927ac_env_LDFLAGS_value=$LDFLAGS
928ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
929ac_cv_env_LDFLAGS_value=$LDFLAGS
930ac_env_CPPFLAGS_set=${CPPFLAGS+set}
931ac_env_CPPFLAGS_value=$CPPFLAGS
932ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_cv_env_CPPFLAGS_value=$CPPFLAGS
934ac_env_CC_set=${CC+set}
935ac_env_CC_value=$CC
936ac_cv_env_CC_set=${CC+set}
937ac_cv_env_CC_value=$CC
938ac_env_CFLAGS_set=${CFLAGS+set}
939ac_env_CFLAGS_value=$CFLAGS
940ac_cv_env_CFLAGS_set=${CFLAGS+set}
941ac_cv_env_CFLAGS_value=$CFLAGS
942ac_env_CPP_set=${CPP+set}
943ac_env_CPP_value=$CPP
944ac_cv_env_CPP_set=${CPP+set}
945ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000946ac_env_CXXCPP_set=${CXXCPP+set}
947ac_env_CXXCPP_value=$CXXCPP
948ac_cv_env_CXXCPP_set=${CXXCPP+set}
949ac_cv_env_CXXCPP_value=$CXXCPP
950ac_env_F77_set=${F77+set}
951ac_env_F77_value=$F77
952ac_cv_env_F77_set=${F77+set}
953ac_cv_env_F77_value=$F77
954ac_env_FFLAGS_set=${FFLAGS+set}
955ac_env_FFLAGS_value=$FFLAGS
956ac_cv_env_FFLAGS_set=${FFLAGS+set}
957ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000958
959#
960# Report the --help message.
961#
962if test "$ac_init_help" = "long"; then
963 # Omit some internal or obsolete options to make the list less imposing.
964 # This message is too long to be a string in the A/UX 3.1 sh.
965 cat <<_ACEOF
Reid Spencere9de0912004-08-20 09:03:57 +0000966\`configure' configures LLVM 1.4 to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000967
968Usage: $0 [OPTION]... [VAR=VALUE]...
969
970To assign environment variables (e.g., CC, CFLAGS...), specify them as
971VAR=VALUE. See below for descriptions of some of the useful variables.
972
973Defaults for the options are specified in brackets.
974
975Configuration:
976 -h, --help display this help and exit
977 --help=short display options specific to this package
978 --help=recursive display the short help of all the included packages
979 -V, --version display version information and exit
980 -q, --quiet, --silent do not print \`checking...' messages
981 --cache-file=FILE cache test results in FILE [disabled]
982 -C, --config-cache alias for \`--cache-file=config.cache'
983 -n, --no-create do not create output files
984 --srcdir=DIR find the sources in DIR [configure dir or \`..']
985
986_ACEOF
987
988 cat <<_ACEOF
989Installation directories:
990 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer17041682004-09-05 17:48:32 +0000991 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000992 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer17041682004-09-05 17:48:32 +0000993 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000994
995By default, \`make install' will install all the files in
996\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
997an installation prefix other than \`$ac_default_prefix' using \`--prefix',
998for instance \`--prefix=\$HOME'.
999
1000For better control, use the options below.
1001
1002Fine tuning of the installation directories:
1003 --bindir=DIR user executables [EPREFIX/bin]
1004 --sbindir=DIR system admin executables [EPREFIX/sbin]
1005 --libexecdir=DIR program executables [EPREFIX/libexec]
1006 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1007 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1008 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1009 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1010 --libdir=DIR object code libraries [EPREFIX/lib]
1011 --includedir=DIR C header files [PREFIX/include]
1012 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1013 --infodir=DIR info documentation [PREFIX/info]
1014 --mandir=DIR man documentation [PREFIX/man]
1015_ACEOF
1016
1017 cat <<\_ACEOF
1018
1019System types:
1020 --build=BUILD configure for building on BUILD [guessed]
1021 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1022 --target=TARGET configure for building compilers for TARGET [HOST]
1023_ACEOF
1024fi
1025
1026if test -n "$ac_init_help"; then
1027 case $ac_init_help in
Reid Spencere9de0912004-08-20 09:03:57 +00001028 short | recursive ) echo "Configuration of LLVM 1.4:";;
John Criswell7a73b802003-06-30 21:59:07 +00001029 esac
1030 cat <<\_ACEOF
1031
1032Optional Features:
1033 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1034 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001035 --enable-shared[=PKGS]
1036 build shared libraries [default=yes]
1037 --enable-static[=PKGS]
1038 build static libraries [default=yes]
1039 --enable-fast-install[=PKGS]
1040 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001041 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001042 --enable-optimized Compile with optimizations enabled (default is NO)
John Criswellc78022e2003-07-29 19:11:58 +00001043 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001044
1045Optional Packages:
1046 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1047 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001048 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1049 --with-pic try to use only PIC/non-PIC objects [default=use
1050 both]
1051 --with-tags[=TAGS]
1052 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001053 --with-llvmgccdir Location of LLVM GCC front-end
John Criswell7a73b802003-06-30 21:59:07 +00001054
1055Some influential environment variables:
1056 CXX C++ compiler command
1057 CXXFLAGS C++ compiler flags
1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1059 nonstandard directory <lib dir>
1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061 headers in a nonstandard directory <include dir>
1062 CC C compiler command
1063 CFLAGS C compiler flags
1064 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001065 CXXCPP C++ preprocessor
1066 F77 Fortran 77 compiler command
1067 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001068
1069Use these variables to override the choices made by `configure' or to help
1070it to find libraries and programs with nonstandard names/locations.
1071
1072Report bugs to <llvmbugs@cs.uiuc.edu>.
1073_ACEOF
1074fi
1075
1076if test "$ac_init_help" = "recursive"; then
1077 # If there are subdirs, report their specific --help.
1078 ac_popdir=`pwd`
1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080 test -d $ac_dir || continue
1081 ac_builddir=.
1082
1083if test "$ac_dir" != .; then
1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085 # A "../" for each directory in $ac_dir_suffix.
1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087else
1088 ac_dir_suffix= ac_top_builddir=
1089fi
1090
1091case $srcdir in
1092 .) # No --srcdir option. We are building in place.
1093 ac_srcdir=.
1094 if test -z "$ac_top_builddir"; then
1095 ac_top_srcdir=.
1096 else
1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098 fi ;;
1099 [\\/]* | ?:[\\/]* ) # Absolute path.
1100 ac_srcdir=$srcdir$ac_dir_suffix;
1101 ac_top_srcdir=$srcdir ;;
1102 *) # Relative path.
1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105esac
Reid Spencer17041682004-09-05 17:48:32 +00001106
1107# Do not use `cd foo && pwd` to compute absolute paths, because
1108# the directories may not exist.
1109case `pwd` in
1110.) ac_abs_builddir="$ac_dir";;
1111*)
1112 case "$ac_dir" in
1113 .) ac_abs_builddir=`pwd`;;
1114 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116 esac;;
1117esac
1118case $ac_abs_builddir in
1119.) ac_abs_top_builddir=${ac_top_builddir}.;;
1120*)
1121 case ${ac_top_builddir}. in
1122 .) ac_abs_top_builddir=$ac_abs_builddir;;
1123 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125 esac;;
1126esac
1127case $ac_abs_builddir in
1128.) ac_abs_srcdir=$ac_srcdir;;
1129*)
1130 case $ac_srcdir in
1131 .) ac_abs_srcdir=$ac_abs_builddir;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134 esac;;
1135esac
1136case $ac_abs_builddir in
1137.) ac_abs_top_srcdir=$ac_top_srcdir;;
1138*)
1139 case $ac_top_srcdir in
1140 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143 esac;;
1144esac
John Criswell7a73b802003-06-30 21:59:07 +00001145
1146 cd $ac_dir
1147 # Check for guested configure; otherwise get Cygnus style configure.
1148 if test -f $ac_srcdir/configure.gnu; then
1149 echo
1150 $SHELL $ac_srcdir/configure.gnu --help=recursive
1151 elif test -f $ac_srcdir/configure; then
1152 echo
1153 $SHELL $ac_srcdir/configure --help=recursive
1154 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer17041682004-09-05 17:48:32 +00001155 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001156 echo
1157 $ac_configure --help
1158 else
1159 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160 fi
1161 cd $ac_popdir
1162 done
1163fi
1164
1165test -n "$ac_init_help" && exit 0
1166if $ac_init_version; then
1167 cat <<\_ACEOF
Reid Spencere9de0912004-08-20 09:03:57 +00001168LLVM configure 1.4
Reid Spencer17041682004-09-05 17:48:32 +00001169generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001170
Reid Spencer17041682004-09-05 17:48:32 +00001171Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001172This configure script is free software; the Free Software Foundation
1173gives unlimited permission to copy, distribute and modify it.
1174_ACEOF
1175 exit 0
1176fi
1177exec 5>config.log
1178cat >&5 <<_ACEOF
1179This file contains any messages produced by compilers while
1180running configure, to aid debugging if configure makes a mistake.
1181
Reid Spencere9de0912004-08-20 09:03:57 +00001182It was created by LLVM $as_me 1.4, which was
Reid Spencer17041682004-09-05 17:48:32 +00001183generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001184
1185 $ $0 $@
1186
1187_ACEOF
1188{
1189cat <<_ASUNAME
1190## --------- ##
1191## Platform. ##
1192## --------- ##
1193
1194hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198uname -v = `(uname -v) 2>/dev/null || echo unknown`
1199
1200/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1202
1203/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1204/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1205/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1207/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1208/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1209/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1210
1211_ASUNAME
1212
1213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1214for as_dir in $PATH
1215do
1216 IFS=$as_save_IFS
1217 test -z "$as_dir" && as_dir=.
1218 echo "PATH: $as_dir"
1219done
1220
1221} >&5
1222
1223cat >&5 <<_ACEOF
1224
1225
1226## ----------- ##
1227## Core tests. ##
1228## ----------- ##
1229
1230_ACEOF
1231
1232
1233# Keep a trace of the command line.
1234# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001235# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001236# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001237# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001238ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001239ac_configure_args0=
1240ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001241ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001242ac_must_keep_next=false
1243for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001244do
John Criswell0c38eaf2003-09-10 15:17:25 +00001245 for ac_arg
1246 do
1247 case $ac_arg in
1248 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250 | -silent | --silent | --silen | --sile | --sil)
1251 continue ;;
1252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1254 esac
1255 case $ac_pass in
1256 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257 2)
1258 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259 if test $ac_must_keep_next = true; then
Reid Spencer17041682004-09-05 17:48:32 +00001260 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001261 else
Reid Spencer17041682004-09-05 17:48:32 +00001262 case $ac_arg in
1263 *=* | --config-cache | -C | -disable-* | --disable-* \
1264 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266 | -with-* | --with-* | -without-* | --without-* | --x)
1267 case "$ac_configure_args0 " in
1268 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1269 esac
1270 ;;
1271 -* ) ac_must_keep_next=true ;;
1272 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001273 fi
1274 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275 # Get rid of the leading space.
1276 ac_sep=" "
1277 ;;
1278 esac
1279 done
John Criswell7a73b802003-06-30 21:59:07 +00001280done
John Criswell0c38eaf2003-09-10 15:17:25 +00001281$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001283
1284# When interrupted or exit'd, cleanup temporary files, and complete
1285# config.log. We remove comments because anyway the quotes in there
1286# would cause problems or look ugly.
1287# WARNING: Be sure not to use single quotes in there, as some shells,
1288# such as our DU 5.0 friend, will then `close' the trap.
1289trap 'exit_status=$?
1290 # Save into config.log some information that might help in debugging.
1291 {
1292 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001293
John Criswell7a73b802003-06-30 21:59:07 +00001294 cat <<\_ASBOX
1295## ---------------- ##
1296## Cache variables. ##
1297## ---------------- ##
1298_ASBOX
1299 echo
1300 # The following way of writing the cache mishandles newlines in values,
1301{
1302 (set) 2>&1 |
1303 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1304 *ac_space=\ *)
1305 sed -n \
Reid Spencer17041682004-09-05 17:48:32 +00001306 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001308 ;;
1309 *)
1310 sed -n \
Reid Spencer17041682004-09-05 17:48:32 +00001311 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001312 ;;
1313 esac;
1314}
1315 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001316
1317 cat <<\_ASBOX
1318## ----------------- ##
1319## Output variables. ##
1320## ----------------- ##
1321_ASBOX
1322 echo
1323 for ac_var in $ac_subst_vars
1324 do
1325 eval ac_val=$`echo $ac_var`
1326 echo "$ac_var='"'"'$ac_val'"'"'"
1327 done | sort
1328 echo
1329
1330 if test -n "$ac_subst_files"; then
1331 cat <<\_ASBOX
1332## ------------- ##
1333## Output files. ##
1334## ------------- ##
1335_ASBOX
1336 echo
1337 for ac_var in $ac_subst_files
1338 do
1339 eval ac_val=$`echo $ac_var`
Reid Spencer17041682004-09-05 17:48:32 +00001340 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001341 done | sort
1342 echo
1343 fi
1344
John Criswell7a73b802003-06-30 21:59:07 +00001345 if test -s confdefs.h; then
1346 cat <<\_ASBOX
1347## ----------- ##
1348## confdefs.h. ##
1349## ----------- ##
1350_ASBOX
1351 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001352 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001353 echo
1354 fi
1355 test "$ac_signal" != 0 &&
1356 echo "$as_me: caught signal $ac_signal"
1357 echo "$as_me: exit $exit_status"
1358 } >&5
Reid Spencer17041682004-09-05 17:48:32 +00001359 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001360 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1361 exit $exit_status
1362 ' 0
1363for ac_signal in 1 2 13 15; do
1364 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1365done
1366ac_signal=0
1367
1368# confdefs.h avoids OS command line length limits that DEFS can exceed.
1369rm -rf conftest* confdefs.h
1370# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1371echo >confdefs.h
1372
1373# Predefined preprocessor variables.
1374
1375cat >>confdefs.h <<_ACEOF
1376#define PACKAGE_NAME "$PACKAGE_NAME"
1377_ACEOF
1378
1379
1380cat >>confdefs.h <<_ACEOF
1381#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1382_ACEOF
1383
1384
1385cat >>confdefs.h <<_ACEOF
1386#define PACKAGE_VERSION "$PACKAGE_VERSION"
1387_ACEOF
1388
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PACKAGE_STRING "$PACKAGE_STRING"
1392_ACEOF
1393
1394
1395cat >>confdefs.h <<_ACEOF
1396#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1397_ACEOF
1398
1399
1400# Let the site file select an alternate cache file if it wants to.
1401# Prefer explicitly selected file to automatically selected ones.
1402if test -z "$CONFIG_SITE"; then
1403 if test "x$prefix" != xNONE; then
1404 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1405 else
1406 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1407 fi
1408fi
1409for ac_site_file in $CONFIG_SITE; do
1410 if test -r "$ac_site_file"; then
1411 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412echo "$as_me: loading site script $ac_site_file" >&6;}
1413 sed 's/^/| /' "$ac_site_file" >&5
1414 . "$ac_site_file"
1415 fi
1416done
1417
1418if test -r "$cache_file"; then
1419 # Some versions of bash will fail to source /dev/null (special
1420 # files actually), so we avoid doing that.
1421 if test -f "$cache_file"; then
1422 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423echo "$as_me: loading cache $cache_file" >&6;}
1424 case $cache_file in
1425 [\\/]* | ?:[\\/]* ) . $cache_file;;
1426 *) . ./$cache_file;;
1427 esac
1428 fi
1429else
1430 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431echo "$as_me: creating cache $cache_file" >&6;}
1432 >$cache_file
1433fi
1434
1435# Check that the precious variables saved in the cache have kept the same
1436# value.
1437ac_cache_corrupted=false
1438for ac_var in `(set) 2>&1 |
Reid Spencer17041682004-09-05 17:48:32 +00001439 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001440 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441 eval ac_new_set=\$ac_env_${ac_var}_set
1442 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443 eval ac_new_val="\$ac_env_${ac_var}_value"
1444 case $ac_old_set,$ac_new_set in
1445 set,)
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1449 ,set)
1450 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452 ac_cache_corrupted=: ;;
1453 ,);;
1454 *)
1455 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer17041682004-09-05 17:48:32 +00001456 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001457echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +00001458 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001459echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +00001460 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001461echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +00001462 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001463 fi;;
1464 esac
1465 # Pass precious variables to config.status.
1466 if test "$ac_new_set" = set; then
1467 case $ac_new_val in
1468 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470 *) ac_arg=$ac_var=$ac_new_val ;;
1471 esac
1472 case " $ac_configure_args " in
1473 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1474 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1475 esac
1476 fi
1477done
1478if $ac_cache_corrupted; then
1479 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483 { (exit 1); exit 1; }; }
1484fi
1485
1486ac_ext=c
1487ac_cpp='$CPP $CPPFLAGS'
1488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490ac_compiler_gnu=$ac_cv_c_compiler_gnu
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
John Criswell0c38eaf2003-09-10 15:17:25 +00001518
John Criswell7a73b802003-06-30 21:59:07 +00001519ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001520for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001521 if test -f $ac_dir/install-sh; then
1522 ac_aux_dir=$ac_dir
1523 ac_install_sh="$ac_aux_dir/install-sh -c"
1524 break
1525 elif test -f $ac_dir/install.sh; then
1526 ac_aux_dir=$ac_dir
1527 ac_install_sh="$ac_aux_dir/install.sh -c"
1528 break
1529 elif test -f $ac_dir/shtool; then
1530 ac_aux_dir=$ac_dir
1531 ac_install_sh="$ac_aux_dir/shtool install -c"
1532 break
1533 fi
1534done
1535if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001536 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1537echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001538 { (exit 1); exit 1; }; }
1539fi
1540ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1543
John Criswell392aaa32003-07-22 19:18:09 +00001544
John Criswell1b824322003-09-15 17:19:42 +00001545if test ${srcdir} != "."
John Criswell93e1c722003-09-15 17:04:06 +00001546then
Reid Spencer551ccae2004-09-01 22:55:40 +00001547 if test -f ${srcdir}/include/llvm/Config/config.h
John Criswell1b824322003-09-15 17:19:42 +00001548 then
1549 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001550echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1551 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001552 fi
John Criswell93e1c722003-09-15 17:04:06 +00001553fi
1554
John Criswell33a911a2003-11-25 20:36:46 +00001555for i in `ls ${srcdir}/projects`
1556do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001557 if test -d ${srcdir}/projects/${i} ; then
1558 case ${i} in
1559 "CVS") ;;
1560 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001561
Reid Spencer4d68ba22004-09-07 16:35:45 +00001562subdirs="$subdirs projects/sample"
1563 ;;
1564 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001565
Reid Spencer4d68ba22004-09-07 16:35:45 +00001566subdirs="$subdirs projects/Stacker"
1567 ;;
1568 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001569
Reid Spencer4d68ba22004-09-07 16:35:45 +00001570subdirs="$subdirs projects/llvm-test"
1571 ;;
1572 "llvm-reopt")
1573
1574subdirs="$subdirs projects/llvm-reopt"
1575;;
1576 "llvm-gcc")
1577
1578subdirs="$subdirs projects/llvm-gcc"
1579 ;;
1580 "llvm-java")
1581
1582subdirs="$subdirs projects/llvm-java"
1583 ;;
1584 "llvm-tv")
1585
1586subdirs="$subdirs projects/llvm-tv"
1587 ;;
1588 "llvm-fefw")
1589
1590subdirs="$subdirs projects/llvm-fefw"
1591 ;;
1592 *)
1593
1594subdirs="$subdirs ${i}"
1595 ;;
1596 esac
John Criswell33a911a2003-11-25 20:36:46 +00001597 fi
1598done
John Criswell559a6c12003-09-30 16:31:48 +00001599
Reid Spencer551ccae2004-09-01 22:55:40 +00001600 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001601
John Criswelldc76e322004-07-23 15:40:57 +00001602
Reid Spencer551ccae2004-09-01 22:55:40 +00001603 ac_config_files="$ac_config_files Makefile.config include/llvm/Support/DataTypes.h include/llvm/Support/ThreadSupport.h include/llvm/ADT/hash_map include/llvm/ADT/hash_set include/llvm/ADT/iterator"
John Criswelldc76e322004-07-23 15:40:57 +00001604
1605
John Criswell0c38eaf2003-09-10 15:17:25 +00001606 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001607
1608
John Criswell0c38eaf2003-09-10 15:17:25 +00001609 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001610
1611
Reid Spencer5f285392004-08-24 16:32:21 +00001612 ac_config_commands="$ac_config_commands examples/Makefile"
1613
1614
John Criswell0c38eaf2003-09-10 15:17:25 +00001615 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001616
1617
John Criswell0c38eaf2003-09-10 15:17:25 +00001618 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001619
1620
John Criswell0c38eaf2003-09-10 15:17:25 +00001621 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001622
1623
John Criswell0c38eaf2003-09-10 15:17:25 +00001624 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001625
1626
John Criswellf424d742003-10-07 21:13:47 +00001627 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1628
1629
1630 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001631
1632
John Criswell0c38eaf2003-09-10 15:17:25 +00001633 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001634
1635
Brian Gaekec45be042003-10-07 06:01:34 +00001636 ac_config_commands="$ac_config_commands utils/Makefile"
1637
1638
John Criswell0c38eaf2003-09-10 15:17:25 +00001639 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001640
1641
John Criswell392aaa32003-07-22 19:18:09 +00001642
John Criswell7a73b802003-06-30 21:59:07 +00001643# Find a good install program. We prefer a C program (faster),
1644# so one script is as good as another. But avoid the broken or
1645# incompatible versions:
1646# SysV /etc/install, /usr/sbin/install
1647# SunOS /usr/etc/install
1648# IRIX /sbin/install
1649# AIX /bin/install
1650# AmigaOS /C/install, which installs bootblocks on floppy discs
1651# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1652# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1653# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Reid Spencer17041682004-09-05 17:48:32 +00001654# OS/2's system install, which has a completely different semantic
John Criswell7a73b802003-06-30 21:59:07 +00001655# ./install, which can be erroneously created by make from ./install.sh.
1656echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1657echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1658if test -z "$INSTALL"; then
1659if test "${ac_cv_path_install+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1661else
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663for as_dir in $PATH
1664do
1665 IFS=$as_save_IFS
1666 test -z "$as_dir" && as_dir=.
1667 # Account for people who put trailing slashes in PATH elements.
1668case $as_dir/ in
1669 ./ | .// | /cC/* | \
1670 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Reid Spencer17041682004-09-05 17:48:32 +00001671 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
John Criswell7a73b802003-06-30 21:59:07 +00001672 /usr/ucb/* ) ;;
1673 *)
1674 # OSF1 and SCO ODT 3.0 have their own names for install.
1675 # Don't use installbsd from OSF since it installs stuff as root
1676 # by default.
1677 for ac_prog in ginstall scoinst install; do
1678 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencer17041682004-09-05 17:48:32 +00001679 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1680 if test $ac_prog = install &&
1681 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1682 # AIX install. It has an incompatible calling convention.
1683 :
1684 elif test $ac_prog = install &&
1685 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1686 # program-specific install script used by HP pwplus--don't use.
1687 :
1688 else
1689 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1690 break 3
1691 fi
1692 fi
John Criswell7a73b802003-06-30 21:59:07 +00001693 done
1694 done
1695 ;;
1696esac
1697done
1698
1699
1700fi
1701 if test "${ac_cv_path_install+set}" = set; then
1702 INSTALL=$ac_cv_path_install
1703 else
1704 # As a last resort, use the slow shell script. We don't cache a
1705 # path for INSTALL within a source directory, because that will
1706 # break other packages using the cache if that directory is
1707 # removed, or if the path is relative.
1708 INSTALL=$ac_install_sh
1709 fi
1710fi
1711echo "$as_me:$LINENO: result: $INSTALL" >&5
1712echo "${ECHO_T}$INSTALL" >&6
1713
1714# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1715# It thinks the first close brace ends the variable substitution.
1716test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1717
1718test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1719
1720test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1721
1722
1723# Make sure we can run config.sub.
1724$ac_config_sub sun4 >/dev/null 2>&1 ||
1725 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1726echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1727 { (exit 1); exit 1; }; }
1728
1729echo "$as_me:$LINENO: checking build system type" >&5
1730echo $ECHO_N "checking build system type... $ECHO_C" >&6
1731if test "${ac_cv_build+set}" = set; then
1732 echo $ECHO_N "(cached) $ECHO_C" >&6
1733else
1734 ac_cv_build_alias=$build_alias
1735test -z "$ac_cv_build_alias" &&
1736 ac_cv_build_alias=`$ac_config_guess`
1737test -z "$ac_cv_build_alias" &&
1738 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1739echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1740 { (exit 1); exit 1; }; }
1741ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1742 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1743echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1744 { (exit 1); exit 1; }; }
1745
1746fi
1747echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1748echo "${ECHO_T}$ac_cv_build" >&6
1749build=$ac_cv_build
1750build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1751build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1752build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1753
1754
1755echo "$as_me:$LINENO: checking host system type" >&5
1756echo $ECHO_N "checking host system type... $ECHO_C" >&6
1757if test "${ac_cv_host+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1759else
1760 ac_cv_host_alias=$host_alias
1761test -z "$ac_cv_host_alias" &&
1762 ac_cv_host_alias=$ac_cv_build_alias
1763ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1764 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1765echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1766 { (exit 1); exit 1; }; }
1767
1768fi
1769echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1770echo "${ECHO_T}$ac_cv_host" >&6
1771host=$ac_cv_host
1772host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1773host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1774host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1775
1776
1777echo "$as_me:$LINENO: checking target system type" >&5
1778echo $ECHO_N "checking target system type... $ECHO_C" >&6
1779if test "${ac_cv_target+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1781else
1782 ac_cv_target_alias=$target_alias
1783test "x$ac_cv_target_alias" = "x" &&
1784 ac_cv_target_alias=$ac_cv_host_alias
1785ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1786 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1787echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1788 { (exit 1); exit 1; }; }
1789
1790fi
1791echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1792echo "${ECHO_T}$ac_cv_target" >&6
1793target=$ac_cv_target
1794target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1795target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1796target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1797
1798
1799# The aliases save the names the user supplied, while $host etc.
1800# will get canonicalized.
1801test -n "$target_alias" &&
1802 test "$program_prefix$program_suffix$program_transform_name" = \
1803 NONENONEs,x,x, &&
1804 program_prefix=${target_alias}-
1805
Reid Spencer73fb5482004-08-31 14:20:36 +00001806
1807echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1808echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001809case $build in
Reid Spencer73fb5482004-08-31 14:20:36 +00001810 *-*-aix*)
1811 OS=AIX
1812
1813 platform_type="AIX"
1814 ;;
1815 *-*-cygwin*)
1816 OS=Cygwin
1817
1818 platform_type="Cygwin"
1819 ;;
1820 *-*-darwin*)
1821 OS=Darwin
1822
1823 platform_type="Darwin"
1824 ;;
1825 *-*-freebsd*)
1826 OS=Linux
1827
Reid Spencera11e4db2004-08-31 18:03:23 +00001828 platform_type="FreeBSD"
Reid Spencer73fb5482004-08-31 14:20:36 +00001829 ;;
1830 *-*-interix*)
1831 OS=SunOS
1832
Reid Spencera11e4db2004-08-31 18:03:23 +00001833 platform_type="Interix"
Reid Spencer73fb5482004-08-31 14:20:36 +00001834 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001835 *-*-linux*)
1836 OS=Linux
John Criswell7a73b802003-06-30 21:59:07 +00001837
Reid Spencerde8c47f2004-08-29 19:35:28 +00001838 platform_type="Linux"
1839 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1840 then
1841 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001842
Reid Spencerde8c47f2004-08-29 19:35:28 +00001843 fi
1844 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001845 *-*-solaris*)
1846 OS=SunOS
John Criswell7a73b802003-06-30 21:59:07 +00001847
Reid Spencerde8c47f2004-08-29 19:35:28 +00001848 platform_type="SunOS"
1849 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1850 then
1851 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001852
Reid Spencerde8c47f2004-08-29 19:35:28 +00001853 fi
1854 ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +00001855 *-*-win32*)
1856 OS=Win32
John Criswell7a73b802003-06-30 21:59:07 +00001857
Reid Spencerde8c47f2004-08-29 19:35:28 +00001858 platform_type="Win32"
1859 ;;
1860 *)
1861 OS=Unknown
1862
1863 platform_type="Unknown"
1864 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001865esac
1866
Reid Spencer73fb5482004-08-31 14:20:36 +00001867if test "$platform_type" = "Unknown" ; then
Reid Spencer886e9512004-08-31 01:34:10 +00001868 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1869echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1870 { (exit 1); exit 1; }; }
1871fi
1872
Reid Spencerde8c47f2004-08-29 19:35:28 +00001873 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1874
1875
Reid Spencer73fb5482004-08-31 14:20:36 +00001876echo "$as_me:$LINENO: result: $platform_type" >&5
1877echo "${ECHO_T}$platform_type" >&6
1878
1879echo "$as_me:$LINENO: checking target architecture" >&5
1880echo $ECHO_N "checking target architecture... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001881case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001882 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
John Criswell7a73b802003-06-30 21:59:07 +00001883
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001884 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001885esac
1886
John Criswell76595452003-07-01 22:07:39 +00001887case $target in
Reid Spencer73fb5482004-08-31 14:20:36 +00001888 i*86-*)
1889 ARCH="x86"
1890 ARCH=x86
John Criswell76595452003-07-01 22:07:39 +00001891
Reid Spencer73fb5482004-08-31 14:20:36 +00001892 ;;
1893 sparc*-*)
1894 ARCH="Sparc"
1895 ARCH=Sparc
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001896
Reid Spencer73fb5482004-08-31 14:20:36 +00001897 ;;
1898 powerpc*-*)
1899 ARCH="PowerPC"
1900 ARCH=PowerPC
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001901
Reid Spencer73fb5482004-08-31 14:20:36 +00001902 ;;
1903 *)
1904 ARCH="Unknown"
1905 ARCH=Unknown
John Criswell76595452003-07-01 22:07:39 +00001906
Reid Spencer73fb5482004-08-31 14:20:36 +00001907 ;;
John Criswell76595452003-07-01 22:07:39 +00001908esac
1909
Reid Spencer73fb5482004-08-31 14:20:36 +00001910echo "$as_me:$LINENO: result: $ARCH" >&5
1911echo "${ECHO_T}$ARCH" >&6
1912
John Criswell7a73b802003-06-30 21:59:07 +00001913ac_ext=cc
1914ac_cpp='$CXXCPP $CPPFLAGS'
1915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1918if test -n "$ac_tool_prefix"; then
1919 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1920 do
1921 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1922set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1923echo "$as_me:$LINENO: checking for $ac_word" >&5
1924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925if test "${ac_cv_prog_CXX+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1927else
1928 if test -n "$CXX"; then
1929 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1930else
1931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932for as_dir in $PATH
1933do
1934 IFS=$as_save_IFS
1935 test -z "$as_dir" && as_dir=.
1936 for ac_exec_ext in '' $ac_executable_extensions; do
1937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940 break 2
1941 fi
1942done
1943done
1944
1945fi
1946fi
1947CXX=$ac_cv_prog_CXX
1948if test -n "$CXX"; then
1949 echo "$as_me:$LINENO: result: $CXX" >&5
1950echo "${ECHO_T}$CXX" >&6
1951else
1952 echo "$as_me:$LINENO: result: no" >&5
1953echo "${ECHO_T}no" >&6
1954fi
1955
1956 test -n "$CXX" && break
1957 done
1958fi
1959if test -z "$CXX"; then
1960 ac_ct_CXX=$CXX
1961 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1962do
1963 # Extract the first word of "$ac_prog", so it can be a program name with args.
1964set dummy $ac_prog; ac_word=$2
1965echo "$as_me:$LINENO: checking for $ac_word" >&5
1966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1969else
1970 if test -n "$ac_ct_CXX"; then
1971 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1972else
1973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974for as_dir in $PATH
1975do
1976 IFS=$as_save_IFS
1977 test -z "$as_dir" && as_dir=.
1978 for ac_exec_ext in '' $ac_executable_extensions; do
1979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980 ac_cv_prog_ac_ct_CXX="$ac_prog"
1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982 break 2
1983 fi
1984done
1985done
1986
1987fi
1988fi
1989ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1990if test -n "$ac_ct_CXX"; then
1991 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1992echo "${ECHO_T}$ac_ct_CXX" >&6
1993else
1994 echo "$as_me:$LINENO: result: no" >&5
1995echo "${ECHO_T}no" >&6
1996fi
1997
1998 test -n "$ac_ct_CXX" && break
1999done
2000test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2001
2002 CXX=$ac_ct_CXX
2003fi
2004
2005
2006# Provide some information about the compiler.
2007echo "$as_me:$LINENO:" \
2008 "checking for C++ compiler version" >&5
2009ac_compiler=`set X $ac_compile; echo $2`
2010{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2011 (eval $ac_compiler --version </dev/null >&5) 2>&5
2012 ac_status=$?
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); }
2015{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2016 (eval $ac_compiler -v </dev/null >&5) 2>&5
2017 ac_status=$?
2018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019 (exit $ac_status); }
2020{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2021 (eval $ac_compiler -V </dev/null >&5) 2>&5
2022 ac_status=$?
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }
2025
2026cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002027/* confdefs.h. */
2028_ACEOF
2029cat confdefs.h >>conftest.$ac_ext
2030cat >>conftest.$ac_ext <<_ACEOF
2031/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002032
John Criswell7a73b802003-06-30 21:59:07 +00002033int
2034main ()
2035{
2036
2037 ;
2038 return 0;
2039}
2040_ACEOF
2041ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002042ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002043# Try to create an executable without -o first, disregard a.out.
2044# It will help us diagnose broken compilers, and finding out an intuition
2045# of exeext.
Reid Spencer17041682004-09-05 17:48:32 +00002046echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2047echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002048ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2049if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2050 (eval $ac_link_default) 2>&5
2051 ac_status=$?
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); }; then
2054 # Find the output, starting from the most likely. This scheme is
2055# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2056# resort.
2057
2058# Be careful to initialize this variable, since it used to be cached.
2059# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2060ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002061# b.out is created by i960 compilers.
2062for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2063do
2064 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002065 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer17041682004-09-05 17:48:32 +00002067 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002068 conftest.$ac_ext )
Reid Spencer17041682004-09-05 17:48:32 +00002069 # This is the source file.
2070 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002071 [ab].out )
Reid Spencer17041682004-09-05 17:48:32 +00002072 # We found the default executable, but exeext='' is most
2073 # certainly right.
2074 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002075 *.* )
Reid Spencer17041682004-09-05 17:48:32 +00002076 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2077 # FIXME: I believe we export ac_cv_exeext for Libtool,
2078 # but it would be cool to find out if it's true. Does anybody
2079 # maintain Libtool? --akim.
2080 export ac_cv_exeext
2081 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002082 * )
Reid Spencer17041682004-09-05 17:48:32 +00002083 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002084 esac
2085done
2086else
2087 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002088sed 's/^/| /' conftest.$ac_ext >&5
2089
2090{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2091See \`config.log' for more details." >&5
2092echo "$as_me: error: C++ compiler cannot create executables
2093See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002094 { (exit 77); exit 77; }; }
2095fi
2096
2097ac_exeext=$ac_cv_exeext
2098echo "$as_me:$LINENO: result: $ac_file" >&5
2099echo "${ECHO_T}$ac_file" >&6
2100
2101# Check the compiler produces executables we can run. If not, either
2102# the compiler is broken, or we cross compile.
2103echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2104echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2105# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2106# If not cross compiling, check that we can run a simple program.
2107if test "$cross_compiling" != yes; then
2108 if { ac_try='./$ac_file'
2109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110 (eval $ac_try) 2>&5
2111 ac_status=$?
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }; }; then
2114 cross_compiling=no
2115 else
2116 if test "$cross_compiling" = maybe; then
2117 cross_compiling=yes
2118 else
2119 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002120If you meant to cross compile, use \`--host'.
2121See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002122echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002123If you meant to cross compile, use \`--host'.
2124See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002125 { (exit 1); exit 1; }; }
2126 fi
2127 fi
2128fi
2129echo "$as_me:$LINENO: result: yes" >&5
2130echo "${ECHO_T}yes" >&6
2131
John Criswell0c38eaf2003-09-10 15:17:25 +00002132rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002133ac_clean_files=$ac_clean_files_save
2134# Check the compiler produces executables we can run. If not, either
2135# the compiler is broken, or we cross compile.
2136echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2137echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2138echo "$as_me:$LINENO: result: $cross_compiling" >&5
2139echo "${ECHO_T}$cross_compiling" >&6
2140
2141echo "$as_me:$LINENO: checking for suffix of executables" >&5
2142echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2144 (eval $ac_link) 2>&5
2145 ac_status=$?
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }; then
2148 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2149# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2150# work properly (i.e., refer to `conftest.exe'), while it won't with
2151# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002152for ac_file in conftest.exe conftest conftest.*; do
2153 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002154 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002156 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer17041682004-09-05 17:48:32 +00002157 export ac_cv_exeext
2158 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002159 * ) break;;
2160 esac
2161done
2162else
John Criswell0c38eaf2003-09-10 15:17:25 +00002163 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2164See \`config.log' for more details." >&5
2165echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2166See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002167 { (exit 1); exit 1; }; }
2168fi
2169
2170rm -f conftest$ac_cv_exeext
2171echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2172echo "${ECHO_T}$ac_cv_exeext" >&6
2173
2174rm -f conftest.$ac_ext
2175EXEEXT=$ac_cv_exeext
2176ac_exeext=$EXEEXT
2177echo "$as_me:$LINENO: checking for suffix of object files" >&5
2178echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2179if test "${ac_cv_objext+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2181else
2182 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002183/* confdefs.h. */
2184_ACEOF
2185cat confdefs.h >>conftest.$ac_ext
2186cat >>conftest.$ac_ext <<_ACEOF
2187/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002188
John Criswell7a73b802003-06-30 21:59:07 +00002189int
2190main ()
2191{
2192
2193 ;
2194 return 0;
2195}
2196_ACEOF
2197rm -f conftest.o conftest.obj
2198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2199 (eval $ac_compile) 2>&5
2200 ac_status=$?
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; then
2203 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2204 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002206 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2207 break;;
2208 esac
2209done
2210else
2211 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002212sed 's/^/| /' conftest.$ac_ext >&5
2213
2214{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2215See \`config.log' for more details." >&5
2216echo "$as_me: error: cannot compute suffix of object files: cannot compile
2217See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002218 { (exit 1); exit 1; }; }
2219fi
2220
2221rm -f conftest.$ac_cv_objext conftest.$ac_ext
2222fi
2223echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2224echo "${ECHO_T}$ac_cv_objext" >&6
2225OBJEXT=$ac_cv_objext
2226ac_objext=$OBJEXT
2227echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2228echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2229if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2231else
2232 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002233/* confdefs.h. */
2234_ACEOF
2235cat confdefs.h >>conftest.$ac_ext
2236cat >>conftest.$ac_ext <<_ACEOF
2237/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002238
John Criswell7a73b802003-06-30 21:59:07 +00002239int
2240main ()
2241{
2242#ifndef __GNUC__
2243 choke me
2244#endif
2245
2246 ;
2247 return 0;
2248}
2249_ACEOF
2250rm -f conftest.$ac_objext
2251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002252 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002253 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002254 grep -v '^ *+' conftest.er1 >conftest.err
2255 rm -f conftest.er1
2256 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002259 { ac_try='test -z "$ac_cxx_werror_flag"
2260 || test ! -s conftest.err'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 (eval $ac_try) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; } &&
2266 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 (eval $ac_try) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; }; then
2272 ac_compiler_gnu=yes
2273else
2274 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002275sed 's/^/| /' conftest.$ac_ext >&5
2276
John Criswell7a73b802003-06-30 21:59:07 +00002277ac_compiler_gnu=no
2278fi
Reid Spencer17041682004-09-05 17:48:32 +00002279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002280ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2281
2282fi
2283echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2284echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2285GXX=`test $ac_compiler_gnu = yes && echo yes`
2286ac_test_CXXFLAGS=${CXXFLAGS+set}
2287ac_save_CXXFLAGS=$CXXFLAGS
2288CXXFLAGS="-g"
2289echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2290echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2291if test "${ac_cv_prog_cxx_g+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2293else
2294 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002295/* confdefs.h. */
2296_ACEOF
2297cat confdefs.h >>conftest.$ac_ext
2298cat >>conftest.$ac_ext <<_ACEOF
2299/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002300
John Criswell7a73b802003-06-30 21:59:07 +00002301int
2302main ()
2303{
2304
2305 ;
2306 return 0;
2307}
2308_ACEOF
2309rm -f conftest.$ac_objext
2310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002311 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002312 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002313 grep -v '^ *+' conftest.er1 >conftest.err
2314 rm -f conftest.er1
2315 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002318 { ac_try='test -z "$ac_cxx_werror_flag"
2319 || test ! -s conftest.err'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 (eval $ac_try) 2>&5
2322 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; } &&
2325 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2331 ac_cv_prog_cxx_g=yes
2332else
2333 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002334sed 's/^/| /' conftest.$ac_ext >&5
2335
John Criswell7a73b802003-06-30 21:59:07 +00002336ac_cv_prog_cxx_g=no
2337fi
Reid Spencer17041682004-09-05 17:48:32 +00002338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002339fi
2340echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2341echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2342if test "$ac_test_CXXFLAGS" = set; then
2343 CXXFLAGS=$ac_save_CXXFLAGS
2344elif test $ac_cv_prog_cxx_g = yes; then
2345 if test "$GXX" = yes; then
2346 CXXFLAGS="-g -O2"
2347 else
2348 CXXFLAGS="-g"
2349 fi
2350else
2351 if test "$GXX" = yes; then
2352 CXXFLAGS="-O2"
2353 else
2354 CXXFLAGS=
2355 fi
2356fi
2357for ac_declaration in \
Reid Spencer17041682004-09-05 17:48:32 +00002358 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002359 'extern "C" void std::exit (int) throw (); using std::exit;' \
2360 'extern "C" void std::exit (int); using std::exit;' \
2361 'extern "C" void exit (int) throw ();' \
2362 'extern "C" void exit (int);' \
2363 'void exit (int);'
2364do
2365 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002366/* confdefs.h. */
2367_ACEOF
2368cat confdefs.h >>conftest.$ac_ext
2369cat >>conftest.$ac_ext <<_ACEOF
2370/* end confdefs.h. */
John Criswell679ff312004-09-02 18:44:44 +00002371$ac_declaration
Reid Spencer17041682004-09-05 17:48:32 +00002372#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002373int
2374main ()
2375{
2376exit (42);
2377 ;
2378 return 0;
2379}
2380_ACEOF
2381rm -f conftest.$ac_objext
2382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002383 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002384 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002385 grep -v '^ *+' conftest.er1 >conftest.err
2386 rm -f conftest.er1
2387 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002390 { ac_try='test -z "$ac_cxx_werror_flag"
2391 || test ! -s conftest.err'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 (eval $ac_try) 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; } &&
2397 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 (eval $ac_try) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
2403 :
2404else
2405 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002406sed 's/^/| /' conftest.$ac_ext >&5
2407
John Criswell7a73b802003-06-30 21:59:07 +00002408continue
2409fi
Reid Spencer17041682004-09-05 17:48:32 +00002410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002411 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002412/* confdefs.h. */
2413_ACEOF
2414cat confdefs.h >>conftest.$ac_ext
2415cat >>conftest.$ac_ext <<_ACEOF
2416/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002417$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002418int
2419main ()
2420{
2421exit (42);
2422 ;
2423 return 0;
2424}
2425_ACEOF
2426rm -f conftest.$ac_objext
2427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002428 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002429 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002430 grep -v '^ *+' conftest.er1 >conftest.err
2431 rm -f conftest.er1
2432 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002435 { ac_try='test -z "$ac_cxx_werror_flag"
2436 || test ! -s conftest.err'
2437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 (eval $ac_try) 2>&5
2439 ac_status=$?
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; } &&
2442 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 (eval $ac_try) 2>&5
2445 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; }; then
2448 break
2449else
2450 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002451sed 's/^/| /' conftest.$ac_ext >&5
2452
John Criswell7a73b802003-06-30 21:59:07 +00002453fi
Reid Spencer17041682004-09-05 17:48:32 +00002454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002455done
2456rm -f conftest*
2457if test -n "$ac_declaration"; then
2458 echo '#ifdef __cplusplus' >>confdefs.h
2459 echo $ac_declaration >>confdefs.h
2460 echo '#endif' >>confdefs.h
2461fi
2462
2463ac_ext=c
2464ac_cpp='$CPP $CPPFLAGS'
2465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2467ac_compiler_gnu=$ac_cv_c_compiler_gnu
2468
2469ac_ext=c
2470ac_cpp='$CPP $CPPFLAGS'
2471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2473ac_compiler_gnu=$ac_cv_c_compiler_gnu
2474if test -n "$ac_tool_prefix"; then
2475 for ac_prog in gcc
2476 do
2477 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2478set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2479echo "$as_me:$LINENO: checking for $ac_word" >&5
2480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2481if test "${ac_cv_prog_CC+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2483else
2484 if test -n "$CC"; then
2485 ac_cv_prog_CC="$CC" # Let the user override the test.
2486else
2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488for as_dir in $PATH
2489do
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2494 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 break 2
2497 fi
2498done
2499done
2500
2501fi
2502fi
2503CC=$ac_cv_prog_CC
2504if test -n "$CC"; then
2505 echo "$as_me:$LINENO: result: $CC" >&5
2506echo "${ECHO_T}$CC" >&6
2507else
2508 echo "$as_me:$LINENO: result: no" >&5
2509echo "${ECHO_T}no" >&6
2510fi
2511
2512 test -n "$CC" && break
2513 done
2514fi
2515if test -z "$CC"; then
2516 ac_ct_CC=$CC
2517 for ac_prog in gcc
2518do
2519 # Extract the first word of "$ac_prog", so it can be a program name with args.
2520set dummy $ac_prog; ac_word=$2
2521echo "$as_me:$LINENO: checking for $ac_word" >&5
2522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2523if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2525else
2526 if test -n "$ac_ct_CC"; then
2527 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2528else
2529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530for as_dir in $PATH
2531do
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2536 ac_cv_prog_ac_ct_CC="$ac_prog"
2537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 break 2
2539 fi
2540done
2541done
2542
2543fi
2544fi
2545ac_ct_CC=$ac_cv_prog_ac_ct_CC
2546if test -n "$ac_ct_CC"; then
2547 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2548echo "${ECHO_T}$ac_ct_CC" >&6
2549else
2550 echo "$as_me:$LINENO: result: no" >&5
2551echo "${ECHO_T}no" >&6
2552fi
2553
2554 test -n "$ac_ct_CC" && break
2555done
2556
2557 CC=$ac_ct_CC
2558fi
2559
2560
John Criswell0c38eaf2003-09-10 15:17:25 +00002561test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2562See \`config.log' for more details." >&5
2563echo "$as_me: error: no acceptable C compiler found in \$PATH
2564See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002565 { (exit 1); exit 1; }; }
2566
2567# Provide some information about the compiler.
2568echo "$as_me:$LINENO:" \
2569 "checking for C compiler version" >&5
2570ac_compiler=`set X $ac_compile; echo $2`
2571{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2572 (eval $ac_compiler --version </dev/null >&5) 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }
2576{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2577 (eval $ac_compiler -v </dev/null >&5) 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }
2581{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2582 (eval $ac_compiler -V </dev/null >&5) 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }
2586
2587echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2588echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2589if test "${ac_cv_c_compiler_gnu+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2591else
2592 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002593/* confdefs.h. */
2594_ACEOF
2595cat confdefs.h >>conftest.$ac_ext
2596cat >>conftest.$ac_ext <<_ACEOF
2597/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002598
John Criswell7a73b802003-06-30 21:59:07 +00002599int
2600main ()
2601{
2602#ifndef __GNUC__
2603 choke me
2604#endif
2605
2606 ;
2607 return 0;
2608}
2609_ACEOF
2610rm -f conftest.$ac_objext
2611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002612 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002613 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002614 grep -v '^ *+' conftest.er1 >conftest.err
2615 rm -f conftest.er1
2616 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002619 { ac_try='test -z "$ac_c_werror_flag"
2620 || test ! -s conftest.err'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 (eval $ac_try) 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; } &&
2626 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 (eval $ac_try) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2632 ac_compiler_gnu=yes
2633else
2634 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002635sed 's/^/| /' conftest.$ac_ext >&5
2636
John Criswell7a73b802003-06-30 21:59:07 +00002637ac_compiler_gnu=no
2638fi
Reid Spencer17041682004-09-05 17:48:32 +00002639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002640ac_cv_c_compiler_gnu=$ac_compiler_gnu
2641
2642fi
2643echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2644echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2645GCC=`test $ac_compiler_gnu = yes && echo yes`
2646ac_test_CFLAGS=${CFLAGS+set}
2647ac_save_CFLAGS=$CFLAGS
2648CFLAGS="-g"
2649echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2650echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2651if test "${ac_cv_prog_cc_g+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2653else
2654 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002655/* confdefs.h. */
2656_ACEOF
2657cat confdefs.h >>conftest.$ac_ext
2658cat >>conftest.$ac_ext <<_ACEOF
2659/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002660
John Criswell7a73b802003-06-30 21:59:07 +00002661int
2662main ()
2663{
2664
2665 ;
2666 return 0;
2667}
2668_ACEOF
2669rm -f conftest.$ac_objext
2670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002671 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002672 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002673 grep -v '^ *+' conftest.er1 >conftest.err
2674 rm -f conftest.er1
2675 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002678 { ac_try='test -z "$ac_c_werror_flag"
2679 || test ! -s conftest.err'
2680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681 (eval $ac_try) 2>&5
2682 ac_status=$?
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; } &&
2685 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687 (eval $ac_try) 2>&5
2688 ac_status=$?
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }; }; then
2691 ac_cv_prog_cc_g=yes
2692else
2693 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002694sed 's/^/| /' conftest.$ac_ext >&5
2695
John Criswell7a73b802003-06-30 21:59:07 +00002696ac_cv_prog_cc_g=no
2697fi
Reid Spencer17041682004-09-05 17:48:32 +00002698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002699fi
2700echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2701echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2702if test "$ac_test_CFLAGS" = set; then
2703 CFLAGS=$ac_save_CFLAGS
2704elif test $ac_cv_prog_cc_g = yes; then
2705 if test "$GCC" = yes; then
2706 CFLAGS="-g -O2"
2707 else
2708 CFLAGS="-g"
2709 fi
2710else
2711 if test "$GCC" = yes; then
2712 CFLAGS="-O2"
2713 else
2714 CFLAGS=
2715 fi
2716fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002717echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2718echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2719if test "${ac_cv_prog_cc_stdc+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2721else
2722 ac_cv_prog_cc_stdc=no
2723ac_save_CC=$CC
2724cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002725/* confdefs.h. */
2726_ACEOF
2727cat confdefs.h >>conftest.$ac_ext
2728cat >>conftest.$ac_ext <<_ACEOF
2729/* end confdefs.h. */
2730#include <stdarg.h>
2731#include <stdio.h>
2732#include <sys/types.h>
2733#include <sys/stat.h>
2734/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2735struct buf { int x; };
2736FILE * (*rcsopen) (struct buf *, struct stat *, int);
2737static char *e (p, i)
2738 char **p;
2739 int i;
2740{
2741 return p[i];
2742}
2743static char *f (char * (*g) (char **, int), char **p, ...)
2744{
2745 char *s;
2746 va_list v;
2747 va_start (v,p);
2748 s = g (p, va_arg (v,int));
2749 va_end (v);
2750 return s;
2751}
Reid Spencer17041682004-09-05 17:48:32 +00002752
2753/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2754 function prototypes and stuff, but not '\xHH' hex character constants.
2755 These don't provoke an error unfortunately, instead are silently treated
2756 as 'x'. The following induces an error, until -std1 is added to get
2757 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2758 array size at least. It's necessary to write '\x00'==0 to get something
2759 that's true only with -std1. */
2760int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2761
John Criswell0c38eaf2003-09-10 15:17:25 +00002762int test (int i, double x);
2763struct s1 {int (*f) (int a);};
2764struct s2 {int (*f) (double a);};
2765int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2766int argc;
2767char **argv;
2768int
2769main ()
2770{
2771return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2772 ;
2773 return 0;
2774}
2775_ACEOF
2776# Don't try gcc -ansi; that turns off useful extensions and
2777# breaks some systems' header files.
2778# AIX -qlanglvl=ansi
2779# Ultrix and OSF/1 -std1
2780# HP-UX 10.20 and later -Ae
2781# HP-UX older versions -Aa -D_HPUX_SOURCE
2782# SVR4 -Xc -D__EXTENSIONS__
2783for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2784do
2785 CC="$ac_save_CC $ac_arg"
2786 rm -f conftest.$ac_objext
2787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002788 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00002789 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002790 grep -v '^ *+' conftest.er1 >conftest.err
2791 rm -f conftest.er1
2792 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002795 { ac_try='test -z "$ac_c_werror_flag"
2796 || test ! -s conftest.err'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; } &&
2802 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00002803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 (eval $ac_try) 2>&5
2805 ac_status=$?
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; }; then
2808 ac_cv_prog_cc_stdc=$ac_arg
2809break
2810else
2811 echo "$as_me: failed program was:" >&5
2812sed 's/^/| /' conftest.$ac_ext >&5
2813
2814fi
Reid Spencer17041682004-09-05 17:48:32 +00002815rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00002816done
2817rm -f conftest.$ac_ext conftest.$ac_objext
2818CC=$ac_save_CC
2819
2820fi
2821
2822case "x$ac_cv_prog_cc_stdc" in
2823 x|xno)
2824 echo "$as_me:$LINENO: result: none needed" >&5
2825echo "${ECHO_T}none needed" >&6 ;;
2826 *)
2827 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2828echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2829 CC="$CC $ac_cv_prog_cc_stdc" ;;
2830esac
2831
John Criswell7a73b802003-06-30 21:59:07 +00002832# Some people use a C++ compiler to compile C. Since we use `exit',
2833# in C++ we need to declare it. In case someone uses the same compiler
2834# for both compiling C and C++ we need to have the C++ compiler decide
2835# the declaration of exit, since it's the most demanding environment.
2836cat >conftest.$ac_ext <<_ACEOF
2837#ifndef __cplusplus
2838 choke me
2839#endif
2840_ACEOF
2841rm -f conftest.$ac_objext
2842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002843 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002844 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002845 grep -v '^ *+' conftest.er1 >conftest.err
2846 rm -f conftest.er1
2847 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002850 { ac_try='test -z "$ac_c_werror_flag"
2851 || test ! -s conftest.err'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 (eval $ac_try) 2>&5
2854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; } &&
2857 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859 (eval $ac_try) 2>&5
2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; }; then
2863 for ac_declaration in \
Reid Spencer17041682004-09-05 17:48:32 +00002864 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002865 'extern "C" void std::exit (int) throw (); using std::exit;' \
2866 'extern "C" void std::exit (int); using std::exit;' \
2867 'extern "C" void exit (int) throw ();' \
2868 'extern "C" void exit (int);' \
2869 'void exit (int);'
2870do
2871 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002872/* confdefs.h. */
2873_ACEOF
2874cat confdefs.h >>conftest.$ac_ext
2875cat >>conftest.$ac_ext <<_ACEOF
2876/* end confdefs.h. */
John Criswell679ff312004-09-02 18:44:44 +00002877$ac_declaration
Reid Spencer17041682004-09-05 17:48:32 +00002878#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002879int
2880main ()
2881{
2882exit (42);
2883 ;
2884 return 0;
2885}
2886_ACEOF
2887rm -f conftest.$ac_objext
2888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002889 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002890 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002891 grep -v '^ *+' conftest.er1 >conftest.err
2892 rm -f conftest.er1
2893 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002896 { ac_try='test -z "$ac_c_werror_flag"
2897 || test ! -s conftest.err'
2898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899 (eval $ac_try) 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; } &&
2903 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905 (eval $ac_try) 2>&5
2906 ac_status=$?
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }; }; then
2909 :
2910else
2911 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002912sed 's/^/| /' conftest.$ac_ext >&5
2913
John Criswell7a73b802003-06-30 21:59:07 +00002914continue
2915fi
Reid Spencer17041682004-09-05 17:48:32 +00002916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002917 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002918/* confdefs.h. */
2919_ACEOF
2920cat confdefs.h >>conftest.$ac_ext
2921cat >>conftest.$ac_ext <<_ACEOF
2922/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002923$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002924int
2925main ()
2926{
2927exit (42);
2928 ;
2929 return 0;
2930}
2931_ACEOF
2932rm -f conftest.$ac_objext
2933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002934 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002935 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002936 grep -v '^ *+' conftest.er1 >conftest.err
2937 rm -f conftest.er1
2938 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002941 { ac_try='test -z "$ac_c_werror_flag"
2942 || test ! -s conftest.err'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 (eval $ac_try) 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; } &&
2948 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950 (eval $ac_try) 2>&5
2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; }; then
2954 break
2955else
2956 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002957sed 's/^/| /' conftest.$ac_ext >&5
2958
John Criswell7a73b802003-06-30 21:59:07 +00002959fi
Reid Spencer17041682004-09-05 17:48:32 +00002960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002961done
2962rm -f conftest*
2963if test -n "$ac_declaration"; then
2964 echo '#ifdef __cplusplus' >>confdefs.h
2965 echo $ac_declaration >>confdefs.h
2966 echo '#endif' >>confdefs.h
2967fi
2968
2969else
2970 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002971sed 's/^/| /' conftest.$ac_ext >&5
2972
John Criswell7a73b802003-06-30 21:59:07 +00002973fi
Reid Spencer17041682004-09-05 17:48:32 +00002974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002975ac_ext=c
2976ac_cpp='$CPP $CPPFLAGS'
2977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979ac_compiler_gnu=$ac_cv_c_compiler_gnu
2980
2981ac_ext=c
2982ac_cpp='$CPP $CPPFLAGS'
2983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2985ac_compiler_gnu=$ac_cv_c_compiler_gnu
2986echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2987echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2988# On Suns, sometimes $CPP names a directory.
2989if test -n "$CPP" && test -d "$CPP"; then
2990 CPP=
2991fi
2992if test -z "$CPP"; then
2993 if test "${ac_cv_prog_CPP+set}" = set; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2995else
2996 # Double quotes because CPP needs to be expanded
2997 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2998 do
2999 ac_preproc_ok=false
3000for ac_c_preproc_warn_flag in '' yes
3001do
3002 # Use a header file that comes with gcc, so configuring glibc
3003 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3005 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003006 # On the NeXT, cc -E runs the code through the compiler's parser,
3007 # not just through cpp. "Syntax error" is here to catch this case.
3008 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003009/* confdefs.h. */
3010_ACEOF
3011cat confdefs.h >>conftest.$ac_ext
3012cat >>conftest.$ac_ext <<_ACEOF
3013/* end confdefs.h. */
3014#ifdef __STDC__
3015# include <limits.h>
3016#else
3017# include <assert.h>
3018#endif
Reid Spencer17041682004-09-05 17:48:32 +00003019 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00003020_ACEOF
3021if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3023 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003024 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003025 rm -f conftest.er1
3026 cat conftest.err >&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } >/dev/null; then
3029 if test -s conftest.err; then
3030 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +00003031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003032 else
3033 ac_cpp_err=
3034 fi
3035else
3036 ac_cpp_err=yes
3037fi
3038if test -z "$ac_cpp_err"; then
3039 :
3040else
3041 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003042sed 's/^/| /' conftest.$ac_ext >&5
3043
John Criswell7a73b802003-06-30 21:59:07 +00003044 # Broken: fails on valid input.
3045continue
3046fi
3047rm -f conftest.err conftest.$ac_ext
3048
3049 # OK, works on sane cases. Now check whether non-existent headers
3050 # can be detected and how.
3051 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003052/* confdefs.h. */
3053_ACEOF
3054cat confdefs.h >>conftest.$ac_ext
3055cat >>conftest.$ac_ext <<_ACEOF
3056/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003057#include <ac_nonexistent.h>
3058_ACEOF
3059if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3061 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003062 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003063 rm -f conftest.er1
3064 cat conftest.err >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } >/dev/null; then
3067 if test -s conftest.err; then
3068 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +00003069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003070 else
3071 ac_cpp_err=
3072 fi
3073else
3074 ac_cpp_err=yes
3075fi
3076if test -z "$ac_cpp_err"; then
3077 # Broken: success on invalid input.
3078continue
3079else
3080 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003081sed 's/^/| /' conftest.$ac_ext >&5
3082
John Criswell7a73b802003-06-30 21:59:07 +00003083 # Passes both tests.
3084ac_preproc_ok=:
3085break
3086fi
3087rm -f conftest.err conftest.$ac_ext
3088
3089done
3090# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3091rm -f conftest.err conftest.$ac_ext
3092if $ac_preproc_ok; then
3093 break
3094fi
3095
3096 done
3097 ac_cv_prog_CPP=$CPP
3098
3099fi
3100 CPP=$ac_cv_prog_CPP
3101else
3102 ac_cv_prog_CPP=$CPP
3103fi
3104echo "$as_me:$LINENO: result: $CPP" >&5
3105echo "${ECHO_T}$CPP" >&6
3106ac_preproc_ok=false
3107for ac_c_preproc_warn_flag in '' yes
3108do
3109 # Use a header file that comes with gcc, so configuring glibc
3110 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003111 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3112 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003113 # On the NeXT, cc -E runs the code through the compiler's parser,
3114 # not just through cpp. "Syntax error" is here to catch this case.
3115 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003116/* confdefs.h. */
3117_ACEOF
3118cat confdefs.h >>conftest.$ac_ext
3119cat >>conftest.$ac_ext <<_ACEOF
3120/* end confdefs.h. */
3121#ifdef __STDC__
3122# include <limits.h>
3123#else
3124# include <assert.h>
3125#endif
Reid Spencer17041682004-09-05 17:48:32 +00003126 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00003127_ACEOF
3128if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3130 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003131 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003132 rm -f conftest.er1
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } >/dev/null; then
3136 if test -s conftest.err; then
3137 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +00003138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003139 else
3140 ac_cpp_err=
3141 fi
3142else
3143 ac_cpp_err=yes
3144fi
3145if test -z "$ac_cpp_err"; then
3146 :
3147else
3148 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003149sed 's/^/| /' conftest.$ac_ext >&5
3150
John Criswell7a73b802003-06-30 21:59:07 +00003151 # Broken: fails on valid input.
3152continue
3153fi
3154rm -f conftest.err conftest.$ac_ext
3155
3156 # OK, works on sane cases. Now check whether non-existent headers
3157 # can be detected and how.
3158 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003159/* confdefs.h. */
3160_ACEOF
3161cat confdefs.h >>conftest.$ac_ext
3162cat >>conftest.$ac_ext <<_ACEOF
3163/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003164#include <ac_nonexistent.h>
3165_ACEOF
3166if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3168 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003169 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003170 rm -f conftest.er1
3171 cat conftest.err >&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } >/dev/null; then
3174 if test -s conftest.err; then
3175 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +00003176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003177 else
3178 ac_cpp_err=
3179 fi
3180else
3181 ac_cpp_err=yes
3182fi
3183if test -z "$ac_cpp_err"; then
3184 # Broken: success on invalid input.
3185continue
3186else
3187 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003188sed 's/^/| /' conftest.$ac_ext >&5
3189
John Criswell7a73b802003-06-30 21:59:07 +00003190 # Passes both tests.
3191ac_preproc_ok=:
3192break
3193fi
3194rm -f conftest.err conftest.$ac_ext
3195
3196done
3197# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3198rm -f conftest.err conftest.$ac_ext
3199if $ac_preproc_ok; then
3200 :
3201else
John Criswell0c38eaf2003-09-10 15:17:25 +00003202 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3203See \`config.log' for more details." >&5
3204echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3205See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003206 { (exit 1); exit 1; }; }
3207fi
3208
3209ac_ext=c
3210ac_cpp='$CPP $CPPFLAGS'
3211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213ac_compiler_gnu=$ac_cv_c_compiler_gnu
3214
3215
3216if test "$GCC" != "yes"
3217then
3218 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3219echo "$as_me: error: gcc required but not found" >&2;}
3220 { (exit 1); exit 1; }; }
3221fi
John Criswell7a73b802003-06-30 21:59:07 +00003222if test "$GXX" != "yes"
3223then
3224 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3225echo "$as_me: error: g++ required but not found" >&2;}
3226 { (exit 1); exit 1; }; }
3227fi
3228
John Criswellde00db22003-08-25 16:49:54 +00003229gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3230if test "$gccmajor" -lt "3"
3231then
Brian Gaeke26be9c52004-01-13 06:43:16 +00003232 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3233echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
John Criswellde00db22003-08-25 16:49:54 +00003234 { (exit 1); exit 1; }; }
3235fi
3236
John Criswell7a73b802003-06-30 21:59:07 +00003237 echo "$as_me:$LINENO: checking for GNU make" >&5
3238echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3239if test "${_cv_gnu_make_command+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3241else
3242 _cv_gnu_make_command='' ;
3243 for a in "$MAKE" make gmake gnumake ; do
3244 if test -z "$a" ; then continue ; fi ;
3245 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3246 _cv_gnu_make_command=$a ;
3247 break;
3248 fi
3249 done ;
3250
3251fi
3252echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3253echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3254 if test "x$_cv_gnu_make_command" != "x" ; then
3255 ifGNUmake='' ;
3256 else
3257 ifGNUmake='#' ;
3258 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3259echo "${ECHO_T}\"Not found\"" >&6;
3260 fi
3261
3262
3263if test -z "$_cv_gnu_make_command"
3264then
3265 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3266echo "$as_me: error: GNU Make required but not found" >&2;}
3267 { (exit 1); exit 1; }; }
3268fi
3269
3270
3271echo "$as_me:$LINENO: checking " >&5
3272echo $ECHO_N "checking ... $ECHO_C" >&6
3273if test "${ac_cv_has_flex+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3275else
3276 for ac_prog in flex lex
3277do
3278 # Extract the first word of "$ac_prog", so it can be a program name with args.
3279set dummy $ac_prog; ac_word=$2
3280echo "$as_me:$LINENO: checking for $ac_word" >&5
3281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3282if test "${ac_cv_prog_LEX+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3284else
3285 if test -n "$LEX"; then
3286 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3287else
3288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289for as_dir in $PATH
3290do
3291 IFS=$as_save_IFS
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295 ac_cv_prog_LEX="$ac_prog"
3296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 break 2
3298 fi
3299done
3300done
3301
3302fi
3303fi
3304LEX=$ac_cv_prog_LEX
3305if test -n "$LEX"; then
3306 echo "$as_me:$LINENO: result: $LEX" >&5
3307echo "${ECHO_T}$LEX" >&6
3308else
3309 echo "$as_me:$LINENO: result: no" >&5
3310echo "${ECHO_T}no" >&6
3311fi
3312
3313 test -n "$LEX" && break
3314done
3315test -n "$LEX" || LEX=":"
3316
3317if test -z "$LEXLIB"
3318then
3319 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3320echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3321if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3323else
3324 ac_check_lib_save_LIBS=$LIBS
3325LIBS="-lfl $LIBS"
3326cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003327/* confdefs.h. */
3328_ACEOF
3329cat confdefs.h >>conftest.$ac_ext
3330cat >>conftest.$ac_ext <<_ACEOF
3331/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003332
3333/* Override any gcc2 internal prototype to avoid an error. */
3334#ifdef __cplusplus
3335extern "C"
3336#endif
3337/* We use char because int might match the return type of a gcc2
3338 builtin and then its argument prototype would still apply. */
3339char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003340int
3341main ()
3342{
3343yywrap ();
3344 ;
3345 return 0;
3346}
3347_ACEOF
3348rm -f conftest.$ac_objext conftest$ac_exeext
3349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00003350 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003351 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00003352 grep -v '^ *+' conftest.er1 >conftest.err
3353 rm -f conftest.er1
3354 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00003357 { ac_try='test -z "$ac_c_werror_flag"
3358 || test ! -s conftest.err'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 (eval $ac_try) 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; } &&
3364 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366 (eval $ac_try) 2>&5
3367 ac_status=$?
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; }; then
3370 ac_cv_lib_fl_yywrap=yes
3371else
3372 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003373sed 's/^/| /' conftest.$ac_ext >&5
3374
John Criswell7a73b802003-06-30 21:59:07 +00003375ac_cv_lib_fl_yywrap=no
3376fi
Reid Spencer17041682004-09-05 17:48:32 +00003377rm -f conftest.err conftest.$ac_objext \
3378 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003379LIBS=$ac_check_lib_save_LIBS
3380fi
3381echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3382echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3383if test $ac_cv_lib_fl_yywrap = yes; then
3384 LEXLIB="-lfl"
3385else
3386 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3387echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3388if test "${ac_cv_lib_l_yywrap+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3390else
3391 ac_check_lib_save_LIBS=$LIBS
3392LIBS="-ll $LIBS"
3393cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003394/* confdefs.h. */
3395_ACEOF
3396cat confdefs.h >>conftest.$ac_ext
3397cat >>conftest.$ac_ext <<_ACEOF
3398/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003399
3400/* Override any gcc2 internal prototype to avoid an error. */
3401#ifdef __cplusplus
3402extern "C"
3403#endif
3404/* We use char because int might match the return type of a gcc2
3405 builtin and then its argument prototype would still apply. */
3406char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003407int
3408main ()
3409{
3410yywrap ();
3411 ;
3412 return 0;
3413}
3414_ACEOF
3415rm -f conftest.$ac_objext conftest$ac_exeext
3416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00003417 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003418 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00003419 grep -v '^ *+' conftest.er1 >conftest.err
3420 rm -f conftest.er1
3421 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00003424 { ac_try='test -z "$ac_c_werror_flag"
3425 || test ! -s conftest.err'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427 (eval $ac_try) 2>&5
3428 ac_status=$?
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; } &&
3431 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433 (eval $ac_try) 2>&5
3434 ac_status=$?
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; }; then
3437 ac_cv_lib_l_yywrap=yes
3438else
3439 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003440sed 's/^/| /' conftest.$ac_ext >&5
3441
John Criswell7a73b802003-06-30 21:59:07 +00003442ac_cv_lib_l_yywrap=no
3443fi
Reid Spencer17041682004-09-05 17:48:32 +00003444rm -f conftest.err conftest.$ac_objext \
3445 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003446LIBS=$ac_check_lib_save_LIBS
3447fi
3448echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3449echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3450if test $ac_cv_lib_l_yywrap = yes; then
3451 LEXLIB="-ll"
3452fi
3453
3454fi
3455
3456fi
3457
3458if test "x$LEX" != "x:"; then
3459 echo "$as_me:$LINENO: checking lex output file root" >&5
3460echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3461if test "${ac_cv_prog_lex_root+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463else
3464 # The minimal lex program is just a single line: %%. But some broken lexes
3465# (Solaris, I think it was) want two %% lines, so accommodate them.
3466cat >conftest.l <<_ACEOF
3467%%
3468%%
3469_ACEOF
3470{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3471 (eval $LEX conftest.l) 2>&5
3472 ac_status=$?
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }
3475if test -f lex.yy.c; then
3476 ac_cv_prog_lex_root=lex.yy
3477elif test -f lexyy.c; then
3478 ac_cv_prog_lex_root=lexyy
3479else
3480 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3481echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3482 { (exit 1); exit 1; }; }
3483fi
3484fi
3485echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3486echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3487rm -f conftest.l
3488LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3489
3490echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3491echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3492if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3494else
3495 # POSIX says lex can declare yytext either as a pointer or an array; the
3496# default is implementation-dependent. Figure out which it is, since
3497# not all implementations provide the %pointer and %array declarations.
3498ac_cv_prog_lex_yytext_pointer=no
3499echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3500ac_save_LIBS=$LIBS
3501LIBS="$LIBS $LEXLIB"
3502cat >conftest.$ac_ext <<_ACEOF
3503`cat $LEX_OUTPUT_ROOT.c`
3504_ACEOF
3505rm -f conftest.$ac_objext conftest$ac_exeext
3506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00003507 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003508 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00003509 grep -v '^ *+' conftest.er1 >conftest.err
3510 rm -f conftest.er1
3511 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00003514 { ac_try='test -z "$ac_c_werror_flag"
3515 || test ! -s conftest.err'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 (eval $ac_try) 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; } &&
3521 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523 (eval $ac_try) 2>&5
3524 ac_status=$?
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; }; then
3527 ac_cv_prog_lex_yytext_pointer=yes
3528else
3529 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003530sed 's/^/| /' conftest.$ac_ext >&5
3531
John Criswell7a73b802003-06-30 21:59:07 +00003532fi
Reid Spencer17041682004-09-05 17:48:32 +00003533rm -f conftest.err conftest.$ac_objext \
3534 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003535LIBS=$ac_save_LIBS
3536rm -f "${LEX_OUTPUT_ROOT}.c"
3537
3538fi
3539echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3540echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3541if test $ac_cv_prog_lex_yytext_pointer = yes; then
3542
3543cat >>confdefs.h <<\_ACEOF
3544#define YYTEXT_POINTER 1
3545_ACEOF
3546
3547fi
3548
3549fi
3550
3551fi
3552echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3553echo "${ECHO_T}$ac_cv_has_flex" >&6
3554if test "$LEX" != "flex"; then
3555 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3556echo "$as_me: error: flex not found but required" >&2;}
3557 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00003558else
3559 FLEX=flex
3560
John Criswell7a73b802003-06-30 21:59:07 +00003561fi
3562
3563echo "$as_me:$LINENO: checking " >&5
3564echo $ECHO_N "checking ... $ECHO_C" >&6
3565if test "${ac_cv_has_bison+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3567else
3568 for ac_prog in 'bison -y' byacc
3569do
3570 # Extract the first word of "$ac_prog", so it can be a program name with args.
3571set dummy $ac_prog; ac_word=$2
3572echo "$as_me:$LINENO: checking for $ac_word" >&5
3573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3574if test "${ac_cv_prog_YACC+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3576else
3577 if test -n "$YACC"; then
3578 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3579else
3580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581for as_dir in $PATH
3582do
3583 IFS=$as_save_IFS
3584 test -z "$as_dir" && as_dir=.
3585 for ac_exec_ext in '' $ac_executable_extensions; do
3586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3587 ac_cv_prog_YACC="$ac_prog"
3588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3589 break 2
3590 fi
3591done
3592done
3593
3594fi
3595fi
3596YACC=$ac_cv_prog_YACC
3597if test -n "$YACC"; then
3598 echo "$as_me:$LINENO: result: $YACC" >&5
3599echo "${ECHO_T}$YACC" >&6
3600else
3601 echo "$as_me:$LINENO: result: no" >&5
3602echo "${ECHO_T}no" >&6
3603fi
3604
3605 test -n "$YACC" && break
3606done
3607test -n "$YACC" || YACC="yacc"
3608
3609
3610fi
3611echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3612echo "${ECHO_T}$ac_cv_has_bison" >&6
3613if test "$YACC" != "bison -y"; then
3614 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3615echo "$as_me: error: bison not found but required" >&2;}
3616 { (exit 1); exit 1; }; }
3617else
Brian Gaeke12810632004-01-13 06:52:10 +00003618 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00003619
3620fi
3621
John Criswell7a73b802003-06-30 21:59:07 +00003622# Check whether --enable-shared or --disable-shared was given.
3623if test "${enable_shared+set}" = set; then
3624 enableval="$enable_shared"
3625 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003626 case $enableval in
3627 yes) enable_shared=yes ;;
3628 no) enable_shared=no ;;
3629 *)
3630 enable_shared=no
3631 # Look at the argument we got. We use all the common list separators.
3632 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3633 for pkg in $enableval; do
3634 IFS="$lt_save_ifs"
3635 if test "X$pkg" = "X$p"; then
3636 enable_shared=yes
3637 fi
3638 done
3639 IFS="$lt_save_ifs"
3640 ;;
3641 esac
John Criswell7a73b802003-06-30 21:59:07 +00003642else
3643 enable_shared=yes
3644fi;
John Criswell47fdd832003-07-14 16:52:07 +00003645
John Criswell7a73b802003-06-30 21:59:07 +00003646# Check whether --enable-static or --disable-static was given.
3647if test "${enable_static+set}" = set; then
3648 enableval="$enable_static"
3649 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003650 case $enableval in
3651 yes) enable_static=yes ;;
3652 no) enable_static=no ;;
3653 *)
3654 enable_static=no
3655 # Look at the argument we got. We use all the common list separators.
3656 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3657 for pkg in $enableval; do
3658 IFS="$lt_save_ifs"
3659 if test "X$pkg" = "X$p"; then
3660 enable_static=yes
3661 fi
3662 done
3663 IFS="$lt_save_ifs"
3664 ;;
3665 esac
John Criswell7a73b802003-06-30 21:59:07 +00003666else
3667 enable_static=yes
3668fi;
John Criswell47fdd832003-07-14 16:52:07 +00003669
John Criswell7a73b802003-06-30 21:59:07 +00003670# Check whether --enable-fast-install or --disable-fast-install was given.
3671if test "${enable_fast_install+set}" = set; then
3672 enableval="$enable_fast_install"
3673 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003674 case $enableval in
3675 yes) enable_fast_install=yes ;;
3676 no) enable_fast_install=no ;;
3677 *)
3678 enable_fast_install=no
3679 # Look at the argument we got. We use all the common list separators.
3680 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3681 for pkg in $enableval; do
3682 IFS="$lt_save_ifs"
3683 if test "X$pkg" = "X$p"; then
3684 enable_fast_install=yes
3685 fi
3686 done
3687 IFS="$lt_save_ifs"
3688 ;;
3689 esac
John Criswell7a73b802003-06-30 21:59:07 +00003690else
3691 enable_fast_install=yes
3692fi;
John Criswell47fdd832003-07-14 16:52:07 +00003693
3694echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3695echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3696if test "${lt_cv_path_SED+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3698else
3699 # Loop through the user's path and test for sed and gsed.
3700# Then use that list of sed's as ones to test for truncation.
3701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702for as_dir in $PATH
3703do
3704 IFS=$as_save_IFS
3705 test -z "$as_dir" && as_dir=.
3706 for lt_ac_prog in sed gsed; do
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3709 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3710 fi
3711 done
3712 done
3713done
3714lt_ac_max=0
3715lt_ac_count=0
3716# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3717# along with /bin/sed that truncates output.
3718for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3719 test ! -f $lt_ac_sed && break
3720 cat /dev/null > conftest.in
3721 lt_ac_count=0
3722 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3723 # Check for GNU sed and select it if it is found.
3724 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3725 lt_cv_path_SED=$lt_ac_sed
3726 break
3727 fi
3728 while true; do
3729 cat conftest.in conftest.in >conftest.tmp
3730 mv conftest.tmp conftest.in
3731 cp conftest.in conftest.nl
3732 echo >>conftest.nl
3733 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3734 cmp -s conftest.out conftest.nl || break
3735 # 10000 chars as input seems more than enough
3736 test $lt_ac_count -gt 10 && break
3737 lt_ac_count=`expr $lt_ac_count + 1`
3738 if test $lt_ac_count -gt $lt_ac_max; then
3739 lt_ac_max=$lt_ac_count
3740 lt_cv_path_SED=$lt_ac_sed
3741 fi
3742 done
3743done
3744SED=$lt_cv_path_SED
3745
John Criswell7a73b802003-06-30 21:59:07 +00003746fi
3747
John Criswell47fdd832003-07-14 16:52:07 +00003748echo "$as_me:$LINENO: result: $SED" >&5
3749echo "${ECHO_T}$SED" >&6
3750
3751echo "$as_me:$LINENO: checking for egrep" >&5
3752echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3753if test "${ac_cv_prog_egrep+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3755else
3756 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3757 then ac_cv_prog_egrep='grep -E'
3758 else ac_cv_prog_egrep='egrep'
3759 fi
3760fi
3761echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3762echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3763 EGREP=$ac_cv_prog_egrep
3764
3765
John Criswell7a73b802003-06-30 21:59:07 +00003766
3767# Check whether --with-gnu-ld or --without-gnu-ld was given.
3768if test "${with_gnu_ld+set}" = set; then
3769 withval="$with_gnu_ld"
3770 test "$withval" = no || with_gnu_ld=yes
3771else
3772 with_gnu_ld=no
3773fi;
3774ac_prog=ld
3775if test "$GCC" = yes; then
3776 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003777 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3778echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003779 case $host in
3780 *-*-mingw*)
3781 # gcc leaves a trailing carriage return which upsets mingw
3782 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3783 *)
3784 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3785 esac
3786 case $ac_prog in
3787 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003788 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003789 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer9751dbf2004-09-07 18:04:45 +00003790 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +00003791 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003792 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003793 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003794 done
3795 test -z "$LD" && LD="$ac_prog"
3796 ;;
3797 "")
3798 # If it fails, then pretend we aren't using GCC.
3799 ac_prog=ld
3800 ;;
3801 *)
3802 # If it is relative, then search for the first ld in PATH.
3803 with_gnu_ld=unknown
3804 ;;
3805 esac
3806elif test "$with_gnu_ld" = yes; then
3807 echo "$as_me:$LINENO: checking for GNU ld" >&5
3808echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3809else
3810 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3811echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3812fi
3813if test "${lt_cv_path_LD+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3815else
3816 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003817 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003818 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003819 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003820 test -z "$ac_dir" && ac_dir=.
3821 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3822 lt_cv_path_LD="$ac_dir/$ac_prog"
3823 # Check to see if the program is GNU ld. I'd rather use --version,
3824 # but apparently some GNU ld's only accept -v.
3825 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003826 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3827 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003828 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003829 ;;
3830 *)
John Criswell7a73b802003-06-30 21:59:07 +00003831 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003832 ;;
3833 esac
John Criswell7a73b802003-06-30 21:59:07 +00003834 fi
3835 done
John Criswell47fdd832003-07-14 16:52:07 +00003836 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003837else
3838 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3839fi
3840fi
3841
3842LD="$lt_cv_path_LD"
3843if test -n "$LD"; then
3844 echo "$as_me:$LINENO: result: $LD" >&5
3845echo "${ECHO_T}$LD" >&6
3846else
3847 echo "$as_me:$LINENO: result: no" >&5
3848echo "${ECHO_T}no" >&6
3849fi
3850test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3851echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3852 { (exit 1); exit 1; }; }
3853echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3854echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3855if test "${lt_cv_prog_gnu_ld+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3857else
3858 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer9751dbf2004-09-07 18:04:45 +00003859case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +00003860*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003861 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003862 ;;
3863*)
John Criswell7a73b802003-06-30 21:59:07 +00003864 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003865 ;;
3866esac
John Criswell7a73b802003-06-30 21:59:07 +00003867fi
3868echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3869echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3870with_gnu_ld=$lt_cv_prog_gnu_ld
3871
3872
3873echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3874echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3875if test "${lt_cv_ld_reload_flag+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3877else
3878 lt_cv_ld_reload_flag='-r'
3879fi
3880echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3881echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3882reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003883case $reload_flag in
3884"" | " "*) ;;
3885*) reload_flag=" $reload_flag" ;;
3886esac
3887reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00003888
3889echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3890echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3891if test "${lt_cv_path_NM+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3893else
3894 if test -n "$NM"; then
3895 # Let the user override the test.
3896 lt_cv_path_NM="$NM"
3897else
John Criswell47fdd832003-07-14 16:52:07 +00003898 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003899 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003900 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003901 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003902 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3903 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003904 # Check to see if the nm accepts a BSD-compat flag.
3905 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3906 # nm: unknown option "B" ignored
3907 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003908 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3909 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003910 lt_cv_path_NM="$tmp_nm -B"
3911 break
John Criswell47fdd832003-07-14 16:52:07 +00003912 ;;
3913 *)
3914 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3915 */dev/null*)
3916 lt_cv_path_NM="$tmp_nm -p"
3917 break
3918 ;;
3919 *)
3920 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3921 continue # so that we can try to find one that supports BSD flags
3922 ;;
3923 esac
3924 esac
John Criswell7a73b802003-06-30 21:59:07 +00003925 fi
3926 done
John Criswell47fdd832003-07-14 16:52:07 +00003927 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003928 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3929fi
3930fi
John Criswell47fdd832003-07-14 16:52:07 +00003931echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3932echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003933NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003934
3935echo "$as_me:$LINENO: checking whether ln -s works" >&5
3936echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3937LN_S=$as_ln_s
3938if test "$LN_S" = "ln -s"; then
3939 echo "$as_me:$LINENO: result: yes" >&5
3940echo "${ECHO_T}yes" >&6
3941else
3942 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3943echo "${ECHO_T}no, using $LN_S" >&6
3944fi
3945
John Criswell47fdd832003-07-14 16:52:07 +00003946echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3947echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003948if test "${lt_cv_deplibs_check_method+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3950else
3951 lt_cv_file_magic_cmd='$MAGIC_CMD'
3952lt_cv_file_magic_test_file=
3953lt_cv_deplibs_check_method='unknown'
3954# Need to set the preceding variable on all platforms that support
3955# interlibrary dependencies.
3956# 'none' -- dependencies not supported.
3957# `unknown' -- same as none, but documents that we really don't know.
3958# 'pass_all' -- all dependencies passed with no checks.
3959# 'test_compile' -- check by making test program.
3960# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00003961# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00003962# If you have `file' or equivalent on your system and you're not sure
3963# whether `pass_all' will *always* work, you probably want this one.
3964
3965case $host_os in
3966aix4* | aix5*)
3967 lt_cv_deplibs_check_method=pass_all
3968 ;;
3969
3970beos*)
3971 lt_cv_deplibs_check_method=pass_all
3972 ;;
3973
3974bsdi4*)
3975 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3976 lt_cv_file_magic_cmd='/usr/bin/file -L'
3977 lt_cv_file_magic_test_file=/shlib/libc.so
3978 ;;
3979
3980cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00003981 # win32_libid is a shell function defined in ltmain.sh
3982 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3983 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00003984 ;;
3985
3986darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00003987 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00003988 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3989 lt_cv_file_magic_cmd='/usr/bin/file -L'
3990 case "$host_os" in
3991 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00003992 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00003993 ;;
3994 *) # Darwin 1.3 on
3995 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3996 ;;
3997 esac
John Criswell47fdd832003-07-14 16:52:07 +00003998 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00003999 ;;
4000
Reid Spencer9751dbf2004-09-07 18:04:45 +00004001freebsd* | kfreebsd*-gnu)
John Criswell7a73b802003-06-30 21:59:07 +00004002 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4003 case $host_cpu in
4004 i*86 )
4005 # Not sure whether the presence of OpenBSD here was a mistake.
4006 # Let's accept both of them until this is cleared up.
4007 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4008 lt_cv_file_magic_cmd=/usr/bin/file
4009 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4010 ;;
4011 esac
4012 else
4013 lt_cv_deplibs_check_method=pass_all
4014 fi
4015 ;;
4016
4017gnu*)
4018 lt_cv_deplibs_check_method=pass_all
4019 ;;
4020
John Criswell47fdd832003-07-14 16:52:07 +00004021hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004022 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004023 case "$host_cpu" in
4024 ia64*)
4025 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4026 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4027 ;;
4028 hppa*64*)
4029 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]'
4030 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4031 ;;
4032 *)
4033 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4034 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4035 ;;
4036 esac
John Criswell7a73b802003-06-30 21:59:07 +00004037 ;;
4038
John Criswell47fdd832003-07-14 16:52:07 +00004039irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004040 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004041 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004042 # this will be overridden with pass_all, but let us keep it just in case
4043 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4044 ;;
4045 *)
4046 case $LD in
4047 *-32|*"-32 ") libmagic=32-bit;;
4048 *-n32|*"-n32 ") libmagic=N32;;
4049 *-64|*"-64 ") libmagic=64-bit;;
4050 *) libmagic=never-match;;
4051 esac
4052 # this will be overridden with pass_all, but let us keep it just in case
4053 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4054 ;;
4055 esac
4056 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4057 lt_cv_deplibs_check_method=pass_all
4058 ;;
4059
4060# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004061linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004062 case $host_cpu in
Reid Spencer9751dbf2004-09-07 18:04:45 +00004063 alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004064 lt_cv_deplibs_check_method=pass_all ;;
4065 *)
4066 # glibc up to 2.1.1 does not perform some relocations on ARM
4067 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4068 esac
4069 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4070 ;;
4071
4072netbsd*)
4073 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004075 else
John Criswell47fdd832003-07-14 16:52:07 +00004076 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004077 fi
4078 ;;
4079
4080newos6*)
4081 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4082 lt_cv_file_magic_cmd=/usr/bin/file
4083 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4084 ;;
4085
Reid Spencer9751dbf2004-09-07 18:04:45 +00004086nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +00004087 lt_cv_deplibs_check_method=unknown
4088 ;;
4089
John Criswell7a73b802003-06-30 21:59:07 +00004090openbsd*)
4091 lt_cv_file_magic_cmd=/usr/bin/file
4092 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4093 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4094 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4095 else
4096 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4097 fi
4098 ;;
4099
4100osf3* | osf4* | osf5*)
4101 # this will be overridden with pass_all, but let us keep it just in case
4102 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4103 lt_cv_file_magic_test_file=/shlib/libc.so
4104 lt_cv_deplibs_check_method=pass_all
4105 ;;
4106
4107sco3.2v5*)
4108 lt_cv_deplibs_check_method=pass_all
4109 ;;
4110
4111solaris*)
4112 lt_cv_deplibs_check_method=pass_all
4113 lt_cv_file_magic_test_file=/lib/libc.so
4114 ;;
4115
John Criswell7a73b802003-06-30 21:59:07 +00004116sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4117 case $host_vendor in
4118 motorola)
4119 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]'
4120 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4121 ;;
4122 ncr)
4123 lt_cv_deplibs_check_method=pass_all
4124 ;;
4125 sequent)
4126 lt_cv_file_magic_cmd='/bin/file'
4127 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4128 ;;
4129 sni)
4130 lt_cv_file_magic_cmd='/bin/file'
4131 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4132 lt_cv_file_magic_test_file=/lib/libc.so
4133 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004134 siemens)
4135 lt_cv_deplibs_check_method=pass_all
4136 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004137 esac
4138 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004139
4140sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4141 lt_cv_deplibs_check_method=pass_all
4142 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004143esac
4144
4145fi
4146echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4147echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4148file_magic_cmd=$lt_cv_file_magic_cmd
4149deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004150test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004151
4152
4153
4154
John Criswell47fdd832003-07-14 16:52:07 +00004155# If no C compiler was specified, use CC.
4156LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004157
John Criswell47fdd832003-07-14 16:52:07 +00004158# Allow CC to be a program name with arguments.
4159compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004160
John Criswell47fdd832003-07-14 16:52:07 +00004161# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4162if test "${enable_libtool_lock+set}" = set; then
4163 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004164
John Criswell47fdd832003-07-14 16:52:07 +00004165fi;
4166test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004167
John Criswell47fdd832003-07-14 16:52:07 +00004168# Some flags need to be propagated to the compiler or linker for good
4169# libtool support.
4170case $host in
4171ia64-*-hpux*)
4172 # Find out which ABI we are using.
4173 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4175 (eval $ac_compile) 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004179 case `/usr/bin/file conftest.$ac_objext` in
4180 *ELF-32*)
4181 HPUX_IA64_MODE="32"
4182 ;;
4183 *ELF-64*)
4184 HPUX_IA64_MODE="64"
4185 ;;
4186 esac
4187 fi
4188 rm -rf conftest*
4189 ;;
4190*-*-irix6*)
4191 # Find out which ABI we are using.
Reid Spencer9751dbf2004-09-07 18:04:45 +00004192 echo '#line 4192 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4194 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004195 ac_status=$?
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004197 (exit $ac_status); }; then
4198 if test "$lt_cv_prog_gnu_ld" = yes; then
4199 case `/usr/bin/file conftest.$ac_objext` in
4200 *32-bit*)
4201 LD="${LD-ld} -melf32bsmip"
4202 ;;
4203 *N32*)
4204 LD="${LD-ld} -melf32bmipn32"
4205 ;;
4206 *64-bit*)
4207 LD="${LD-ld} -melf64bmip"
4208 ;;
4209 esac
4210 else
4211 case `/usr/bin/file conftest.$ac_objext` in
4212 *32-bit*)
4213 LD="${LD-ld} -32"
4214 ;;
4215 *N32*)
4216 LD="${LD-ld} -n32"
4217 ;;
4218 *64-bit*)
4219 LD="${LD-ld} -64"
4220 ;;
4221 esac
4222 fi
4223 fi
4224 rm -rf conftest*
4225 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004226
John Criswell47fdd832003-07-14 16:52:07 +00004227x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4228 # Find out which ABI we are using.
4229 echo 'int i;' > conftest.$ac_ext
4230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4231 (eval $ac_compile) 2>&5
4232 ac_status=$?
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; then
4235 case "`/usr/bin/file conftest.o`" in
4236 *32-bit*)
4237 case $host in
4238 x86_64-*linux*)
4239 LD="${LD-ld} -m elf_i386"
4240 ;;
Reid Spencer9751dbf2004-09-07 18:04:45 +00004241 ppc64-*linux*|powerpc64-*linux*)
John Criswell47fdd832003-07-14 16:52:07 +00004242 LD="${LD-ld} -m elf32ppclinux"
4243 ;;
4244 s390x-*linux*)
4245 LD="${LD-ld} -m elf_s390"
4246 ;;
4247 sparc64-*linux*)
4248 LD="${LD-ld} -m elf32_sparc"
4249 ;;
4250 esac
4251 ;;
4252 *64-bit*)
4253 case $host in
4254 x86_64-*linux*)
4255 LD="${LD-ld} -m elf_x86_64"
4256 ;;
4257 ppc*-*linux*|powerpc*-*linux*)
4258 LD="${LD-ld} -m elf64ppc"
4259 ;;
4260 s390*-*linux*)
4261 LD="${LD-ld} -m elf64_s390"
4262 ;;
4263 sparc*-*linux*)
4264 LD="${LD-ld} -m elf64_sparc"
4265 ;;
4266 esac
4267 ;;
4268 esac
4269 fi
4270 rm -rf conftest*
4271 ;;
4272
4273*-*-sco3.2v5*)
4274 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4275 SAVE_CFLAGS="$CFLAGS"
4276 CFLAGS="$CFLAGS -belf"
4277 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4278echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4279if test "${lt_cv_cc_needs_belf+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4281else
4282 ac_ext=c
4283ac_cpp='$CPP $CPPFLAGS'
4284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4286ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287
4288 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004289/* confdefs.h. */
4290_ACEOF
4291cat confdefs.h >>conftest.$ac_ext
4292cat >>conftest.$ac_ext <<_ACEOF
4293/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004294
John Criswell47fdd832003-07-14 16:52:07 +00004295int
4296main ()
John Criswell7a73b802003-06-30 21:59:07 +00004297{
John Criswell7a73b802003-06-30 21:59:07 +00004298
John Criswell47fdd832003-07-14 16:52:07 +00004299 ;
4300 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004301}
John Criswell47fdd832003-07-14 16:52:07 +00004302_ACEOF
4303rm -f conftest.$ac_objext conftest$ac_exeext
4304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00004305 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004306 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00004307 grep -v '^ *+' conftest.er1 >conftest.err
4308 rm -f conftest.er1
4309 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004311 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00004312 { ac_try='test -z "$ac_c_werror_flag"
4313 || test ! -s conftest.err'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 (eval $ac_try) 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; } &&
4319 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00004320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321 (eval $ac_try) 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
4325 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004326else
John Criswell47fdd832003-07-14 16:52:07 +00004327 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004328sed 's/^/| /' conftest.$ac_ext >&5
4329
John Criswell47fdd832003-07-14 16:52:07 +00004330lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004331fi
Reid Spencer17041682004-09-05 17:48:32 +00004332rm -f conftest.err conftest.$ac_objext \
4333 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004334 ac_ext=c
4335ac_cpp='$CPP $CPPFLAGS'
4336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339
John Criswell7a73b802003-06-30 21:59:07 +00004340fi
John Criswell47fdd832003-07-14 16:52:07 +00004341echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4342echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4343 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4344 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4345 CFLAGS="$SAVE_CFLAGS"
4346 fi
4347 ;;
4348
4349esac
4350
4351need_locks="$enable_libtool_lock"
4352
John Criswell7a73b802003-06-30 21:59:07 +00004353
4354
4355echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4356echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4357if test "${ac_cv_header_stdc+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4359else
4360 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004361/* confdefs.h. */
4362_ACEOF
4363cat confdefs.h >>conftest.$ac_ext
4364cat >>conftest.$ac_ext <<_ACEOF
4365/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004366#include <stdlib.h>
4367#include <stdarg.h>
4368#include <string.h>
4369#include <float.h>
4370
John Criswell0c38eaf2003-09-10 15:17:25 +00004371int
4372main ()
4373{
4374
4375 ;
4376 return 0;
4377}
John Criswell7a73b802003-06-30 21:59:07 +00004378_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004379rm -f conftest.$ac_objext
4380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00004381 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004382 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00004383 grep -v '^ *+' conftest.er1 >conftest.err
4384 rm -f conftest.er1
4385 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004387 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00004388 { ac_try='test -z "$ac_c_werror_flag"
4389 || test ! -s conftest.err'
4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391 (eval $ac_try) 2>&5
4392 ac_status=$?
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; } &&
4395 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00004396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 (eval $ac_try) 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004401 ac_cv_header_stdc=yes
4402else
4403 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004404sed 's/^/| /' conftest.$ac_ext >&5
4405
4406ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004407fi
Reid Spencer17041682004-09-05 17:48:32 +00004408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004409
4410if test $ac_cv_header_stdc = yes; then
4411 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4412 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004413/* confdefs.h. */
4414_ACEOF
4415cat confdefs.h >>conftest.$ac_ext
4416cat >>conftest.$ac_ext <<_ACEOF
4417/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004418#include <string.h>
4419
4420_ACEOF
4421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004422 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004423 :
4424else
4425 ac_cv_header_stdc=no
4426fi
4427rm -f conftest*
4428
4429fi
4430
4431if test $ac_cv_header_stdc = yes; then
4432 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4433 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004434/* confdefs.h. */
4435_ACEOF
4436cat confdefs.h >>conftest.$ac_ext
4437cat >>conftest.$ac_ext <<_ACEOF
4438/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004439#include <stdlib.h>
4440
4441_ACEOF
4442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004443 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004444 :
4445else
4446 ac_cv_header_stdc=no
4447fi
4448rm -f conftest*
4449
4450fi
4451
4452if test $ac_cv_header_stdc = yes; then
4453 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4454 if test "$cross_compiling" = yes; then
4455 :
4456else
4457 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004458/* confdefs.h. */
4459_ACEOF
4460cat confdefs.h >>conftest.$ac_ext
4461cat >>conftest.$ac_ext <<_ACEOF
4462/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004463#include <ctype.h>
4464#if ((' ' & 0x0FF) == 0x020)
4465# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4466# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4467#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004468# define ISLOWER(c) \
Reid Spencer17041682004-09-05 17:48:32 +00004469 (('a' <= (c) && (c) <= 'i') \
4470 || ('j' <= (c) && (c) <= 'r') \
4471 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004472# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4473#endif
4474
4475#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4476int
4477main ()
4478{
4479 int i;
4480 for (i = 0; i < 256; i++)
4481 if (XOR (islower (i), ISLOWER (i))
Reid Spencer17041682004-09-05 17:48:32 +00004482 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00004483 exit(2);
4484 exit (0);
4485}
4486_ACEOF
4487rm -f conftest$ac_exeext
4488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4489 (eval $ac_link) 2>&5
4490 ac_status=$?
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494 (eval $ac_try) 2>&5
4495 ac_status=$?
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; }; then
4498 :
4499else
4500 echo "$as_me: program exited with status $ac_status" >&5
4501echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004502sed 's/^/| /' conftest.$ac_ext >&5
4503
John Criswell7a73b802003-06-30 21:59:07 +00004504( exit $ac_status )
4505ac_cv_header_stdc=no
4506fi
Reid Spencer17041682004-09-05 17:48:32 +00004507rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004508fi
4509fi
4510fi
4511echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4512echo "${ECHO_T}$ac_cv_header_stdc" >&6
4513if test $ac_cv_header_stdc = yes; then
4514
4515cat >>confdefs.h <<\_ACEOF
4516#define STDC_HEADERS 1
4517_ACEOF
4518
4519fi
4520
4521# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer17041682004-09-05 17:48:32 +00004532 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00004533do
4534as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4535echo "$as_me:$LINENO: checking for $ac_header" >&5
4536echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4537if eval "test \"\${$as_ac_Header+set}\" = set"; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4539else
4540 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004541/* confdefs.h. */
4542_ACEOF
4543cat confdefs.h >>conftest.$ac_ext
4544cat >>conftest.$ac_ext <<_ACEOF
4545/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004546$ac_includes_default
4547
4548#include <$ac_header>
4549_ACEOF
4550rm -f conftest.$ac_objext
4551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00004552 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004553 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00004554 grep -v '^ *+' conftest.er1 >conftest.err
4555 rm -f conftest.er1
4556 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00004559 { ac_try='test -z "$ac_c_werror_flag"
4560 || test ! -s conftest.err'
4561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562 (eval $ac_try) 2>&5
4563 ac_status=$?
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); }; } &&
4566 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 (eval $ac_try) 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; }; then
4572 eval "$as_ac_Header=yes"
4573else
4574 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004575sed 's/^/| /' conftest.$ac_ext >&5
4576
John Criswell7a73b802003-06-30 21:59:07 +00004577eval "$as_ac_Header=no"
4578fi
Reid Spencer17041682004-09-05 17:48:32 +00004579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004580fi
4581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4582echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4583if test `eval echo '${'$as_ac_Header'}'` = yes; then
4584 cat >>confdefs.h <<_ACEOF
4585#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4586_ACEOF
4587
4588fi
4589
4590done
4591
4592
4593
4594for ac_header in dlfcn.h
4595do
4596as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencer9751dbf2004-09-07 18:04:45 +00004597echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00004598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4599if eval "test \"\${$as_ac_Header+set}\" = set"; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004601else
Reid Spencer9751dbf2004-09-07 18:04:45 +00004602 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004603/* confdefs.h. */
4604_ACEOF
4605cat confdefs.h >>conftest.$ac_ext
4606cat >>conftest.$ac_ext <<_ACEOF
4607/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004608$ac_includes_default
Reid Spencer9751dbf2004-09-07 18:04:45 +00004609
John Criswell7a73b802003-06-30 21:59:07 +00004610#include <$ac_header>
4611_ACEOF
4612rm -f conftest.$ac_objext
4613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00004614 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004615 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00004616 grep -v '^ *+' conftest.er1 >conftest.err
4617 rm -f conftest.er1
4618 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00004621 { ac_try='test -z "$ac_c_werror_flag"
4622 || test ! -s conftest.err'
4623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624 (eval $ac_try) 2>&5
4625 ac_status=$?
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }; } &&
4628 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 (eval $ac_try) 2>&5
4631 ac_status=$?
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; }; then
Reid Spencer9751dbf2004-09-07 18:04:45 +00004634 eval "$as_ac_Header=yes"
John Criswell7a73b802003-06-30 21:59:07 +00004635else
4636 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004637sed 's/^/| /' conftest.$ac_ext >&5
4638
Reid Spencer9751dbf2004-09-07 18:04:45 +00004639eval "$as_ac_Header=no"
John Criswell7a73b802003-06-30 21:59:07 +00004640fi
Reid Spencer17041682004-09-05 17:48:32 +00004641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004642fi
4643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4644echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004645if test `eval echo '${'$as_ac_Header'}'` = yes; then
4646 cat >>confdefs.h <<_ACEOF
4647#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4648_ACEOF
4649
4650fi
4651
4652done
4653
John Criswell47fdd832003-07-14 16:52:07 +00004654ac_ext=cc
4655ac_cpp='$CXXCPP $CPPFLAGS'
4656ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4657ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4658ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4659echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4660echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4661if test -z "$CXXCPP"; then
4662 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004663 echo $ECHO_N "(cached) $ECHO_C" >&6
4664else
John Criswell47fdd832003-07-14 16:52:07 +00004665 # Double quotes because CXXCPP needs to be expanded
4666 for CXXCPP in "$CXX -E" "/lib/cpp"
4667 do
4668 ac_preproc_ok=false
4669for ac_cxx_preproc_warn_flag in '' yes
4670do
4671 # Use a header file that comes with gcc, so configuring glibc
4672 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004673 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4674 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004675 # On the NeXT, cc -E runs the code through the compiler's parser,
4676 # not just through cpp. "Syntax error" is here to catch this case.
4677 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004678/* confdefs.h. */
4679_ACEOF
4680cat confdefs.h >>conftest.$ac_ext
4681cat >>conftest.$ac_ext <<_ACEOF
4682/* end confdefs.h. */
4683#ifdef __STDC__
4684# include <limits.h>
4685#else
4686# include <assert.h>
4687#endif
Reid Spencer17041682004-09-05 17:48:32 +00004688 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004689_ACEOF
4690if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4692 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004693 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004694 rm -f conftest.er1
4695 cat conftest.err >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); } >/dev/null; then
4698 if test -s conftest.err; then
4699 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +00004700 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00004701 else
John Criswell47fdd832003-07-14 16:52:07 +00004702 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004703 fi
John Criswell47fdd832003-07-14 16:52:07 +00004704else
4705 ac_cpp_err=yes
4706fi
4707if test -z "$ac_cpp_err"; then
4708 :
4709else
4710 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004711sed 's/^/| /' conftest.$ac_ext >&5
4712
John Criswell47fdd832003-07-14 16:52:07 +00004713 # Broken: fails on valid input.
4714continue
4715fi
4716rm -f conftest.err conftest.$ac_ext
4717
4718 # OK, works on sane cases. Now check whether non-existent headers
4719 # can be detected and how.
4720 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004721/* confdefs.h. */
4722_ACEOF
4723cat confdefs.h >>conftest.$ac_ext
4724cat >>conftest.$ac_ext <<_ACEOF
4725/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004726#include <ac_nonexistent.h>
4727_ACEOF
4728if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4730 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004731 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004732 rm -f conftest.er1
4733 cat conftest.err >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } >/dev/null; then
4736 if test -s conftest.err; then
4737 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +00004738 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004739 else
4740 ac_cpp_err=
4741 fi
4742else
4743 ac_cpp_err=yes
4744fi
4745if test -z "$ac_cpp_err"; then
4746 # Broken: success on invalid input.
4747continue
4748else
4749 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004750sed 's/^/| /' conftest.$ac_ext >&5
4751
John Criswell47fdd832003-07-14 16:52:07 +00004752 # Passes both tests.
4753ac_preproc_ok=:
4754break
4755fi
4756rm -f conftest.err conftest.$ac_ext
4757
4758done
4759# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4760rm -f conftest.err conftest.$ac_ext
4761if $ac_preproc_ok; then
4762 break
John Criswell7a73b802003-06-30 21:59:07 +00004763fi
4764
John Criswell47fdd832003-07-14 16:52:07 +00004765 done
4766 ac_cv_prog_CXXCPP=$CXXCPP
4767
4768fi
4769 CXXCPP=$ac_cv_prog_CXXCPP
4770else
4771 ac_cv_prog_CXXCPP=$CXXCPP
4772fi
4773echo "$as_me:$LINENO: result: $CXXCPP" >&5
4774echo "${ECHO_T}$CXXCPP" >&6
4775ac_preproc_ok=false
4776for ac_cxx_preproc_warn_flag in '' yes
4777do
4778 # Use a header file that comes with gcc, so configuring glibc
4779 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4781 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004782 # On the NeXT, cc -E runs the code through the compiler's parser,
4783 # not just through cpp. "Syntax error" is here to catch this case.
4784 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004785/* confdefs.h. */
4786_ACEOF
4787cat confdefs.h >>conftest.$ac_ext
4788cat >>conftest.$ac_ext <<_ACEOF
4789/* end confdefs.h. */
4790#ifdef __STDC__
4791# include <limits.h>
4792#else
4793# include <assert.h>
4794#endif
Reid Spencer17041682004-09-05 17:48:32 +00004795 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004796_ACEOF
4797if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4799 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004800 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004801 rm -f conftest.er1
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } >/dev/null; then
4805 if test -s conftest.err; then
4806 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +00004807 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004808 else
4809 ac_cpp_err=
4810 fi
4811else
4812 ac_cpp_err=yes
4813fi
4814if test -z "$ac_cpp_err"; then
4815 :
4816else
4817 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004818sed 's/^/| /' conftest.$ac_ext >&5
4819
John Criswell47fdd832003-07-14 16:52:07 +00004820 # Broken: fails on valid input.
4821continue
4822fi
4823rm -f conftest.err conftest.$ac_ext
4824
4825 # OK, works on sane cases. Now check whether non-existent headers
4826 # can be detected and how.
4827 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004828/* confdefs.h. */
4829_ACEOF
4830cat confdefs.h >>conftest.$ac_ext
4831cat >>conftest.$ac_ext <<_ACEOF
4832/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004833#include <ac_nonexistent.h>
4834_ACEOF
4835if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4837 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004838 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004839 rm -f conftest.er1
4840 cat conftest.err >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } >/dev/null; then
4843 if test -s conftest.err; then
4844 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +00004845 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004846 else
4847 ac_cpp_err=
4848 fi
4849else
4850 ac_cpp_err=yes
4851fi
4852if test -z "$ac_cpp_err"; then
4853 # Broken: success on invalid input.
4854continue
4855else
4856 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004857sed 's/^/| /' conftest.$ac_ext >&5
4858
John Criswell47fdd832003-07-14 16:52:07 +00004859 # Passes both tests.
4860ac_preproc_ok=:
4861break
4862fi
4863rm -f conftest.err conftest.$ac_ext
4864
4865done
4866# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4867rm -f conftest.err conftest.$ac_ext
4868if $ac_preproc_ok; then
4869 :
4870else
John Criswell0c38eaf2003-09-10 15:17:25 +00004871 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4872See \`config.log' for more details." >&5
4873echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4874See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00004875 { (exit 1); exit 1; }; }
4876fi
4877
4878ac_ext=cc
4879ac_cpp='$CXXCPP $CPPFLAGS'
4880ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4881ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4882ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4883
4884
4885ac_ext=f
4886ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4887ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4888ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4889if test -n "$ac_tool_prefix"; then
Reid Spencer17041682004-09-05 17:48:32 +00004890 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
John Criswell47fdd832003-07-14 16:52:07 +00004891 do
4892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4893set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4894echo "$as_me:$LINENO: checking for $ac_word" >&5
4895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4896if test "${ac_cv_prog_F77+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4898else
4899 if test -n "$F77"; then
4900 ac_cv_prog_F77="$F77" # Let the user override the test.
4901else
4902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903for as_dir in $PATH
4904do
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4909 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 break 2
4912 fi
4913done
4914done
4915
4916fi
4917fi
4918F77=$ac_cv_prog_F77
4919if test -n "$F77"; then
4920 echo "$as_me:$LINENO: result: $F77" >&5
4921echo "${ECHO_T}$F77" >&6
4922else
4923 echo "$as_me:$LINENO: result: no" >&5
4924echo "${ECHO_T}no" >&6
4925fi
4926
4927 test -n "$F77" && break
4928 done
4929fi
4930if test -z "$F77"; then
4931 ac_ct_F77=$F77
Reid Spencer17041682004-09-05 17:48:32 +00004932 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
John Criswell47fdd832003-07-14 16:52:07 +00004933do
4934 # Extract the first word of "$ac_prog", so it can be a program name with args.
4935set dummy $ac_prog; ac_word=$2
4936echo "$as_me:$LINENO: checking for $ac_word" >&5
4937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4938if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4940else
4941 if test -n "$ac_ct_F77"; then
4942 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4943else
4944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945for as_dir in $PATH
4946do
4947 IFS=$as_save_IFS
4948 test -z "$as_dir" && as_dir=.
4949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4951 ac_cv_prog_ac_ct_F77="$ac_prog"
4952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4953 break 2
4954 fi
4955done
4956done
4957
4958fi
4959fi
4960ac_ct_F77=$ac_cv_prog_ac_ct_F77
4961if test -n "$ac_ct_F77"; then
4962 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4963echo "${ECHO_T}$ac_ct_F77" >&6
4964else
4965 echo "$as_me:$LINENO: result: no" >&5
4966echo "${ECHO_T}no" >&6
4967fi
4968
4969 test -n "$ac_ct_F77" && break
4970done
4971
4972 F77=$ac_ct_F77
4973fi
4974
4975
4976# Provide some information about the compiler.
Reid Spencer9751dbf2004-09-07 18:04:45 +00004977echo "$as_me:4977:" \
John Criswell47fdd832003-07-14 16:52:07 +00004978 "checking for Fortran 77 compiler version" >&5
4979ac_compiler=`set X $ac_compile; echo $2`
4980{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4981 (eval $ac_compiler --version </dev/null >&5) 2>&5
4982 ac_status=$?
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }
4985{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4986 (eval $ac_compiler -v </dev/null >&5) 2>&5
4987 ac_status=$?
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }
4990{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4991 (eval $ac_compiler -V </dev/null >&5) 2>&5
4992 ac_status=$?
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }
Reid Spencer17041682004-09-05 17:48:32 +00004995rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +00004996
4997# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer17041682004-09-05 17:48:32 +00004998# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +00004999ac_save_ext=$ac_ext
5000ac_ext=F
5001echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5002echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5003if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5005else
5006 cat >conftest.$ac_ext <<_ACEOF
5007 program main
5008#ifndef __GNUC__
5009 choke me
5010#endif
5011
5012 end
5013_ACEOF
5014rm -f conftest.$ac_objext
5015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00005016 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005017 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00005018 grep -v '^ *+' conftest.er1 >conftest.err
5019 rm -f conftest.er1
5020 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00005023 { ac_try='test -z "$ac_f77_werror_flag"
5024 || test ! -s conftest.err'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 (eval $ac_try) 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; } &&
5030 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032 (eval $ac_try) 2>&5
5033 ac_status=$?
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }; }; then
5036 ac_compiler_gnu=yes
5037else
5038 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005039sed 's/^/| /' conftest.$ac_ext >&5
5040
John Criswell47fdd832003-07-14 16:52:07 +00005041ac_compiler_gnu=no
5042fi
Reid Spencer17041682004-09-05 17:48:32 +00005043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005044ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5045
5046fi
5047echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5048echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5049ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +00005050ac_test_FFLAGS=${FFLAGS+set}
5051ac_save_FFLAGS=$FFLAGS
5052FFLAGS=
5053echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5054echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5055if test "${ac_cv_prog_f77_g+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5057else
5058 FFLAGS=-g
5059cat >conftest.$ac_ext <<_ACEOF
5060 program main
5061
5062 end
5063_ACEOF
5064rm -f conftest.$ac_objext
5065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00005066 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005067 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00005068 grep -v '^ *+' conftest.er1 >conftest.err
5069 rm -f conftest.er1
5070 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00005073 { ac_try='test -z "$ac_f77_werror_flag"
5074 || test ! -s conftest.err'
5075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076 (eval $ac_try) 2>&5
5077 ac_status=$?
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; } &&
5080 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 (eval $ac_try) 2>&5
5083 ac_status=$?
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; }; then
5086 ac_cv_prog_f77_g=yes
5087else
5088 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005089sed 's/^/| /' conftest.$ac_ext >&5
5090
John Criswell47fdd832003-07-14 16:52:07 +00005091ac_cv_prog_f77_g=no
5092fi
Reid Spencer17041682004-09-05 17:48:32 +00005093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005094
5095fi
5096echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5097echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5098if test "$ac_test_FFLAGS" = set; then
5099 FFLAGS=$ac_save_FFLAGS
5100elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer17041682004-09-05 17:48:32 +00005101 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005102 FFLAGS="-g -O2"
5103 else
5104 FFLAGS="-g"
5105 fi
5106else
Reid Spencer17041682004-09-05 17:48:32 +00005107 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005108 FFLAGS="-O2"
5109 else
5110 FFLAGS=
5111 fi
5112fi
Reid Spencer17041682004-09-05 17:48:32 +00005113
5114G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +00005115ac_ext=c
5116ac_cpp='$CPP $CPPFLAGS'
5117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119ac_compiler_gnu=$ac_cv_c_compiler_gnu
5120
5121
5122
5123# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5124
5125# find the maximum length of command line arguments
5126echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5127echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5128if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5130else
5131 i=0
5132 testring="ABCD"
5133
5134 case $build_os in
5135 msdosdjgpp*)
5136 # On DJGPP, this test can blow up pretty badly due to problems in libc
5137 # (any single argument exceeding 2000 bytes causes a buffer overrun
5138 # during glob expansion). Even if it were fixed, the result of this
5139 # check would be larger than it should be.
5140 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5141 ;;
5142
5143 gnu*)
5144 # Under GNU Hurd, this test is not required because there is
5145 # no limit to the length of command line arguments.
5146 # Libtool will interpret -1 as no limit whatsoever
5147 lt_cv_sys_max_cmd_len=-1;
5148 ;;
5149
5150 cygwin* | mingw*)
5151 # On Win9x/ME, this test blows up -- it succeeds, but takes
5152 # about 5 minutes as the teststring grows exponentially.
5153 # Worse, since 9x/ME are not pre-emptively multitasking,
5154 # you end up with a "frozen" computer, even though with patience
5155 # the test eventually succeeds (with a max line length of 256k).
5156 # Instead, let's just punt: use the minimum linelength reported by
5157 # all of the supported platforms: 8192 (on NT/2K/XP).
5158 lt_cv_sys_max_cmd_len=8192;
5159 ;;
5160
Reid Spencer9751dbf2004-09-07 18:04:45 +00005161 amigaos*)
5162 # On AmigaOS with pdksh, this test takes hours, literally.
5163 # So we just punt and use a minimum line length of 8192.
5164 lt_cv_sys_max_cmd_len=8192;
5165 ;;
5166
John Criswell47fdd832003-07-14 16:52:07 +00005167 *)
5168 # If test is not a shell built-in, we'll probably end up computing a
5169 # maximum length that is only half of the actual maximum length, but
5170 # we can't tell.
5171 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5172 = "XX$testring") >/dev/null 2>&1 &&
5173 new_result=`expr "X$testring" : ".*" 2>&1` &&
5174 lt_cv_sys_max_cmd_len=$new_result &&
5175 test $i != 17 # 1/2 MB should be enough
5176 do
5177 i=`expr $i + 1`
5178 testring=$testring$testring
5179 done
5180 testring=
5181 # Add a significant safety factor because C++ compilers can tack on massive
5182 # amounts of additional arguments before passing them to the linker.
5183 # It appears as though 1/2 is a usable value.
5184 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5185 ;;
5186 esac
5187
5188fi
5189
5190if test -n $lt_cv_sys_max_cmd_len ; then
5191 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5192echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5193else
5194 echo "$as_me:$LINENO: result: none" >&5
5195echo "${ECHO_T}none" >&6
5196fi
5197
5198
5199
5200
5201# Check for command to grab the raw symbol name followed by C symbol from nm.
5202echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5203echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5204if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5206else
5207
5208# These are sane defaults that work on at least a few old systems.
5209# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5210
5211# Character class describing NM global symbol codes.
5212symcode='[BCDEGRST]'
5213
5214# Regexp to match symbols that can be accessed directly from C.
5215sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5216
5217# Transform the above into a raw symbol and a C symbol.
5218symxfrm='\1 \2\3 \3'
5219
5220# Transform an extracted symbol line into a proper C declaration
5221lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5222
5223# Transform an extracted symbol line into symbol name and symbol address
5224lt_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'"
5225
5226# Define system-specific variables.
5227case $host_os in
5228aix*)
5229 symcode='[BCDT]'
5230 ;;
5231cygwin* | mingw* | pw32*)
5232 symcode='[ABCDGISTW]'
5233 ;;
5234hpux*) # Its linker distinguishes data from code symbols
5235 if test "$host_cpu" = ia64; then
5236 symcode='[ABCDEGRST]'
5237 fi
5238 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5239 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'"
5240 ;;
5241irix* | nonstopux*)
5242 symcode='[BCDEGRST]'
5243 ;;
5244osf*)
5245 symcode='[BCDEGQRST]'
5246 ;;
5247solaris* | sysv5*)
5248 symcode='[BDT]'
5249 ;;
5250sysv4)
5251 symcode='[DFNSTU]'
5252 ;;
5253esac
5254
5255# Handle CRLF in mingw tool chain
5256opt_cr=
5257case $build_os in
5258mingw*)
5259 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5260 ;;
5261esac
5262
5263# If we're using GNU nm, then use its standard symbol codes.
5264case `$NM -V 2>&1` in
5265*GNU* | *'with BFD'*)
5266 symcode='[ABCDGISTW]' ;;
5267esac
5268
5269# Try without a prefix undercore, then with it.
5270for ac_symprfx in "" "_"; do
5271
5272 # Write the raw and C identifiers.
5273 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5274
5275 # Check to see that the pipe works correctly.
5276 pipe_works=no
5277
5278 rm -f conftest*
5279 cat > conftest.$ac_ext <<EOF
5280#ifdef __cplusplus
5281extern "C" {
5282#endif
5283char nm_test_var;
5284void nm_test_func(){}
5285#ifdef __cplusplus
5286}
5287#endif
5288int main(){nm_test_var='a';nm_test_func();return(0);}
5289EOF
5290
5291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5292 (eval $ac_compile) 2>&5
5293 ac_status=$?
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; then
5296 # Now try to grab the symbols.
5297 nlist=conftest.nm
5298 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5299 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } && test -s "$nlist"; then
5303 # Try sorting and uniquifying the output.
5304 if sort "$nlist" | uniq > "$nlist"T; then
5305 mv -f "$nlist"T "$nlist"
5306 else
5307 rm -f "$nlist"T
5308 fi
5309
5310 # Make sure that we snagged all the symbols we need.
5311 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5312 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5313 cat <<EOF > conftest.$ac_ext
5314#ifdef __cplusplus
5315extern "C" {
5316#endif
5317
5318EOF
5319 # Now generate the symbol file.
5320 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5321
5322 cat <<EOF >> conftest.$ac_ext
5323#if defined (__STDC__) && __STDC__
5324# define lt_ptr_t void *
5325#else
5326# define lt_ptr_t char *
5327# define const
5328#endif
5329
5330/* The mapping between symbol names and symbols. */
5331const struct {
5332 const char *name;
5333 lt_ptr_t address;
5334}
5335lt_preloaded_symbols[] =
5336{
5337EOF
5338 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5339 cat <<\EOF >> conftest.$ac_ext
5340 {0, (lt_ptr_t) 0}
5341};
5342
5343#ifdef __cplusplus
5344}
5345#endif
5346EOF
5347 # Now try linking the two files.
5348 mv conftest.$ac_objext conftstm.$ac_objext
5349 lt_save_LIBS="$LIBS"
5350 lt_save_CFLAGS="$CFLAGS"
5351 LIBS="conftstm.$ac_objext"
5352 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5354 (eval $ac_link) 2>&5
5355 ac_status=$?
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5358 pipe_works=yes
5359 fi
5360 LIBS="$lt_save_LIBS"
5361 CFLAGS="$lt_save_CFLAGS"
5362 else
5363 echo "cannot find nm_test_func in $nlist" >&5
5364 fi
5365 else
5366 echo "cannot find nm_test_var in $nlist" >&5
5367 fi
5368 else
5369 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5370 fi
5371 else
5372 echo "$progname: failed program was:" >&5
5373 cat conftest.$ac_ext >&5
5374 fi
5375 rm -f conftest* conftst*
5376
5377 # Do not use the global_symbol_pipe unless it works.
5378 if test "$pipe_works" = yes; then
5379 break
5380 else
5381 lt_cv_sys_global_symbol_pipe=
5382 fi
5383done
5384
5385fi
5386
5387if test -z "$lt_cv_sys_global_symbol_pipe"; then
5388 lt_cv_sys_global_symbol_to_cdecl=
5389fi
5390if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5391 echo "$as_me:$LINENO: result: failed" >&5
5392echo "${ECHO_T}failed" >&6
5393else
5394 echo "$as_me:$LINENO: result: ok" >&5
5395echo "${ECHO_T}ok" >&6
5396fi
5397
5398echo "$as_me:$LINENO: checking for objdir" >&5
5399echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5400if test "${lt_cv_objdir+set}" = set; then
5401 echo $ECHO_N "(cached) $ECHO_C" >&6
5402else
5403 rm -f .libs 2>/dev/null
5404mkdir .libs 2>/dev/null
5405if test -d .libs; then
5406 lt_cv_objdir=.libs
5407else
5408 # MS-DOS does not allow filenames that begin with a dot.
5409 lt_cv_objdir=_libs
5410fi
5411rmdir .libs 2>/dev/null
5412fi
5413echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5414echo "${ECHO_T}$lt_cv_objdir" >&6
5415objdir=$lt_cv_objdir
5416
5417
5418
5419
5420
5421case $host_os in
5422aix3*)
5423 # AIX sometimes has problems with the GCC collect2 program. For some
5424 # reason, if we set the COLLECT_NAMES environment variable, the problems
5425 # vanish in a puff of smoke.
5426 if test "X${COLLECT_NAMES+set}" != Xset; then
5427 COLLECT_NAMES=
5428 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005429 fi
5430 ;;
5431esac
5432
John Criswell47fdd832003-07-14 16:52:07 +00005433# Sed substitution that helps us do robust quoting. It backslashifies
5434# metacharacters that are still active within double-quoted strings.
5435Xsed='sed -e s/^X//'
5436sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5437
5438# Same as above, but do not quote variable references.
5439double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5440
5441# Sed substitution to delay expansion of an escaped shell variable in a
5442# double_quote_subst'ed string.
5443delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5444
5445# Sed substitution to avoid accidental globbing in evaled expressions
5446no_glob_subst='s/\*/\\\*/g'
5447
5448# Constants:
5449rm="rm -f"
5450
5451# Global variables:
Reid Spencer9751dbf2004-09-07 18:04:45 +00005452default_ofile=libtool
John Criswell47fdd832003-07-14 16:52:07 +00005453can_build_shared=yes
5454
5455# All known linkers require a `.a' archive for static linking (except M$VC,
5456# which needs '.lib').
5457libext=a
5458ltmain="$ac_aux_dir/ltmain.sh"
5459ofile="$default_ofile"
5460with_gnu_ld="$lt_cv_prog_gnu_ld"
5461
5462if test -n "$ac_tool_prefix"; then
5463 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5464set dummy ${ac_tool_prefix}ar; ac_word=$2
5465echo "$as_me:$LINENO: checking for $ac_word" >&5
5466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5467if test "${ac_cv_prog_AR+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5469else
5470 if test -n "$AR"; then
5471 ac_cv_prog_AR="$AR" # Let the user override the test.
5472else
5473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474for as_dir in $PATH
5475do
5476 IFS=$as_save_IFS
5477 test -z "$as_dir" && as_dir=.
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5480 ac_cv_prog_AR="${ac_tool_prefix}ar"
5481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5482 break 2
5483 fi
5484done
5485done
5486
5487fi
5488fi
5489AR=$ac_cv_prog_AR
5490if test -n "$AR"; then
5491 echo "$as_me:$LINENO: result: $AR" >&5
5492echo "${ECHO_T}$AR" >&6
5493else
5494 echo "$as_me:$LINENO: result: no" >&5
5495echo "${ECHO_T}no" >&6
5496fi
5497
5498fi
5499if test -z "$ac_cv_prog_AR"; then
5500 ac_ct_AR=$AR
5501 # Extract the first word of "ar", so it can be a program name with args.
5502set dummy ar; ac_word=$2
5503echo "$as_me:$LINENO: checking for $ac_word" >&5
5504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5505if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5507else
5508 if test -n "$ac_ct_AR"; then
5509 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5510else
5511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512for as_dir in $PATH
5513do
5514 IFS=$as_save_IFS
5515 test -z "$as_dir" && as_dir=.
5516 for ac_exec_ext in '' $ac_executable_extensions; do
5517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5518 ac_cv_prog_ac_ct_AR="ar"
5519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 break 2
5521 fi
5522done
5523done
5524
5525 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5526fi
5527fi
5528ac_ct_AR=$ac_cv_prog_ac_ct_AR
5529if test -n "$ac_ct_AR"; then
5530 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5531echo "${ECHO_T}$ac_ct_AR" >&6
5532else
5533 echo "$as_me:$LINENO: result: no" >&5
5534echo "${ECHO_T}no" >&6
5535fi
5536
5537 AR=$ac_ct_AR
5538else
5539 AR="$ac_cv_prog_AR"
5540fi
5541
John Criswell7a73b802003-06-30 21:59:07 +00005542if test -n "$ac_tool_prefix"; then
5543 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5544set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5545echo "$as_me:$LINENO: checking for $ac_word" >&5
5546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5547if test "${ac_cv_prog_RANLIB+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5549else
5550 if test -n "$RANLIB"; then
5551 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5552else
5553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554for as_dir in $PATH
5555do
5556 IFS=$as_save_IFS
5557 test -z "$as_dir" && as_dir=.
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5560 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5562 break 2
5563 fi
5564done
5565done
5566
5567fi
5568fi
5569RANLIB=$ac_cv_prog_RANLIB
5570if test -n "$RANLIB"; then
5571 echo "$as_me:$LINENO: result: $RANLIB" >&5
5572echo "${ECHO_T}$RANLIB" >&6
5573else
5574 echo "$as_me:$LINENO: result: no" >&5
5575echo "${ECHO_T}no" >&6
5576fi
5577
5578fi
5579if test -z "$ac_cv_prog_RANLIB"; then
5580 ac_ct_RANLIB=$RANLIB
5581 # Extract the first word of "ranlib", so it can be a program name with args.
5582set dummy ranlib; ac_word=$2
5583echo "$as_me:$LINENO: checking for $ac_word" >&5
5584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5585if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5587else
5588 if test -n "$ac_ct_RANLIB"; then
5589 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5590else
5591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592for as_dir in $PATH
5593do
5594 IFS=$as_save_IFS
5595 test -z "$as_dir" && as_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5598 ac_cv_prog_ac_ct_RANLIB="ranlib"
5599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5600 break 2
5601 fi
5602done
5603done
5604
5605 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5606fi
5607fi
5608ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5609if test -n "$ac_ct_RANLIB"; then
5610 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5611echo "${ECHO_T}$ac_ct_RANLIB" >&6
5612else
5613 echo "$as_me:$LINENO: result: no" >&5
5614echo "${ECHO_T}no" >&6
5615fi
5616
5617 RANLIB=$ac_ct_RANLIB
5618else
5619 RANLIB="$ac_cv_prog_RANLIB"
5620fi
5621
5622if test -n "$ac_tool_prefix"; then
5623 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5624set dummy ${ac_tool_prefix}strip; ac_word=$2
5625echo "$as_me:$LINENO: checking for $ac_word" >&5
5626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5627if test "${ac_cv_prog_STRIP+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5629else
5630 if test -n "$STRIP"; then
5631 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5632else
5633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634for as_dir in $PATH
5635do
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5640 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 break 2
5643 fi
5644done
5645done
5646
5647fi
5648fi
5649STRIP=$ac_cv_prog_STRIP
5650if test -n "$STRIP"; then
5651 echo "$as_me:$LINENO: result: $STRIP" >&5
5652echo "${ECHO_T}$STRIP" >&6
5653else
5654 echo "$as_me:$LINENO: result: no" >&5
5655echo "${ECHO_T}no" >&6
5656fi
5657
5658fi
5659if test -z "$ac_cv_prog_STRIP"; then
5660 ac_ct_STRIP=$STRIP
5661 # Extract the first word of "strip", so it can be a program name with args.
5662set dummy strip; ac_word=$2
5663echo "$as_me:$LINENO: checking for $ac_word" >&5
5664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5665if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5667else
5668 if test -n "$ac_ct_STRIP"; then
5669 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5670else
5671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672for as_dir in $PATH
5673do
5674 IFS=$as_save_IFS
5675 test -z "$as_dir" && as_dir=.
5676 for ac_exec_ext in '' $ac_executable_extensions; do
5677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5678 ac_cv_prog_ac_ct_STRIP="strip"
5679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5680 break 2
5681 fi
5682done
5683done
5684
5685 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5686fi
5687fi
5688ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5689if test -n "$ac_ct_STRIP"; then
5690 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5691echo "${ECHO_T}$ac_ct_STRIP" >&6
5692else
5693 echo "$as_me:$LINENO: result: no" >&5
5694echo "${ECHO_T}no" >&6
5695fi
5696
5697 STRIP=$ac_ct_STRIP
5698else
5699 STRIP="$ac_cv_prog_STRIP"
5700fi
5701
5702
John Criswell7a73b802003-06-30 21:59:07 +00005703old_CC="$CC"
5704old_CFLAGS="$CFLAGS"
5705
5706# Set sane defaults for various variables
5707test -z "$AR" && AR=ar
5708test -z "$AR_FLAGS" && AR_FLAGS=cru
5709test -z "$AS" && AS=as
5710test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005711test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005712test -z "$DLLTOOL" && DLLTOOL=dlltool
5713test -z "$LD" && LD=ld
5714test -z "$LN_S" && LN_S="ln -s"
5715test -z "$MAGIC_CMD" && MAGIC_CMD=file
5716test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005717test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005718test -z "$OBJDUMP" && OBJDUMP=objdump
5719test -z "$RANLIB" && RANLIB=:
5720test -z "$STRIP" && STRIP=:
5721test -z "$ac_objext" && ac_objext=o
5722
John Criswell7a73b802003-06-30 21:59:07 +00005723# Determine commands to create old-style static archives.
5724old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5725old_postinstall_cmds='chmod 644 $oldlib'
5726old_postuninstall_cmds=
5727
5728if test -n "$RANLIB"; then
5729 case $host_os in
5730 openbsd*)
5731 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5732 ;;
5733 *)
5734 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5735 ;;
5736 esac
5737 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5738fi
5739
John Criswell47fdd832003-07-14 16:52:07 +00005740# Only perform the check for file, if the check method requires it
5741case $deplibs_check_method in
5742file_magic*)
5743 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5744 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5745echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5746if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005748else
John Criswell47fdd832003-07-14 16:52:07 +00005749 case $MAGIC_CMD in
5750[\\/*] | ?:[\\/]*)
5751 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5752 ;;
5753*)
5754 lt_save_MAGIC_CMD="$MAGIC_CMD"
5755 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5756 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5757 for ac_dir in $ac_dummy; do
5758 IFS="$lt_save_ifs"
5759 test -z "$ac_dir" && ac_dir=.
5760 if test -f $ac_dir/${ac_tool_prefix}file; then
5761 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5762 if test -n "$file_magic_test_file"; then
5763 case $deplibs_check_method in
5764 "file_magic "*)
5765 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5766 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5767 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5768 $EGREP "$file_magic_regex" > /dev/null; then
5769 :
5770 else
5771 cat <<EOF 1>&2
5772
5773*** Warning: the command libtool uses to detect shared libraries,
5774*** $file_magic_cmd, produces output that libtool cannot recognize.
5775*** The result is that libtool may fail to recognize shared libraries
5776*** as such. This will affect the creation of libtool libraries that
5777*** depend on shared libraries, but programs linked with such libtool
5778*** libraries will work regardless of this problem. Nevertheless, you
5779*** may want to report the problem to your system manager and/or to
5780*** bug-libtool@gnu.org
5781
5782EOF
5783 fi ;;
5784 esac
5785 fi
5786 break
5787 fi
5788 done
5789 IFS="$lt_save_ifs"
5790 MAGIC_CMD="$lt_save_MAGIC_CMD"
5791 ;;
5792esac
John Criswell7a73b802003-06-30 21:59:07 +00005793fi
John Criswell7a73b802003-06-30 21:59:07 +00005794
John Criswell47fdd832003-07-14 16:52:07 +00005795MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5796if test -n "$MAGIC_CMD"; then
5797 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5798echo "${ECHO_T}$MAGIC_CMD" >&6
5799else
5800 echo "$as_me:$LINENO: result: no" >&5
5801echo "${ECHO_T}no" >&6
5802fi
John Criswell7a73b802003-06-30 21:59:07 +00005803
John Criswell47fdd832003-07-14 16:52:07 +00005804if test -z "$lt_cv_path_MAGIC_CMD"; then
5805 if test -n "$ac_tool_prefix"; then
5806 echo "$as_me:$LINENO: checking for file" >&5
5807echo $ECHO_N "checking for file... $ECHO_C" >&6
5808if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5810else
5811 case $MAGIC_CMD in
5812[\\/*] | ?:[\\/]*)
5813 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5814 ;;
5815*)
5816 lt_save_MAGIC_CMD="$MAGIC_CMD"
5817 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5818 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5819 for ac_dir in $ac_dummy; do
5820 IFS="$lt_save_ifs"
5821 test -z "$ac_dir" && ac_dir=.
5822 if test -f $ac_dir/file; then
5823 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5824 if test -n "$file_magic_test_file"; then
5825 case $deplibs_check_method in
5826 "file_magic "*)
5827 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5828 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5829 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5830 $EGREP "$file_magic_regex" > /dev/null; then
5831 :
5832 else
5833 cat <<EOF 1>&2
5834
5835*** Warning: the command libtool uses to detect shared libraries,
5836*** $file_magic_cmd, produces output that libtool cannot recognize.
5837*** The result is that libtool may fail to recognize shared libraries
5838*** as such. This will affect the creation of libtool libraries that
5839*** depend on shared libraries, but programs linked with such libtool
5840*** libraries will work regardless of this problem. Nevertheless, you
5841*** may want to report the problem to your system manager and/or to
5842*** bug-libtool@gnu.org
5843
5844EOF
5845 fi ;;
5846 esac
5847 fi
5848 break
5849 fi
5850 done
5851 IFS="$lt_save_ifs"
5852 MAGIC_CMD="$lt_save_MAGIC_CMD"
5853 ;;
5854esac
5855fi
5856
5857MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5858if test -n "$MAGIC_CMD"; then
5859 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5860echo "${ECHO_T}$MAGIC_CMD" >&6
5861else
5862 echo "$as_me:$LINENO: result: no" >&5
5863echo "${ECHO_T}no" >&6
5864fi
5865
5866 else
5867 MAGIC_CMD=:
5868 fi
5869fi
5870
5871 fi
5872 ;;
5873esac
5874
5875enable_dlopen=no
5876enable_win32_dll=no
5877
5878# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5879if test "${enable_libtool_lock+set}" = set; then
5880 enableval="$enable_libtool_lock"
5881
5882fi;
5883test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5884
John Criswell7a73b802003-06-30 21:59:07 +00005885
5886# Check whether --with-pic or --without-pic was given.
5887if test "${with_pic+set}" = set; then
5888 withval="$with_pic"
5889 pic_mode="$withval"
5890else
5891 pic_mode=default
5892fi;
5893test -z "$pic_mode" && pic_mode=default
5894
John Criswell47fdd832003-07-14 16:52:07 +00005895# Use C for the default configuration in the libtool script
5896tagname=
5897lt_save_CC="$CC"
5898ac_ext=c
5899ac_cpp='$CPP $CPPFLAGS'
5900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5902ac_compiler_gnu=$ac_cv_c_compiler_gnu
5903
5904
5905# Source file extension for C test sources.
5906ac_ext=c
5907
5908# Object file extension for compiled C test sources.
5909objext=o
5910objext=$objext
5911
5912# Code to be used in simple compile tests
5913lt_simple_compile_test_code="int some_variable = 0;\n"
5914
5915# Code to be used in simple link tests
5916lt_simple_link_test_code='int main(){return(0);}\n'
5917
5918
5919# If no C compiler was specified, use CC.
5920LTCC=${LTCC-"$CC"}
5921
5922# Allow CC to be a program name with arguments.
5923compiler=$CC
5924
5925
5926#
5927# Check for any special shared library compilation flags.
5928#
5929lt_prog_cc_shlib=
5930if test "$GCC" = no; then
5931 case $host_os in
5932 sco3.2v5*)
5933 lt_prog_cc_shlib='-belf'
5934 ;;
5935 esac
5936fi
5937if test -n "$lt_prog_cc_shlib"; then
5938 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5939echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5940 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5941 else
5942 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5943echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5944 lt_cv_prog_cc_can_build_shared=no
5945 fi
5946fi
5947
5948
5949#
5950# Check to make sure the static flag actually works.
5951#
5952echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5953echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5954if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005955 echo $ECHO_N "(cached) $ECHO_C" >&6
5956else
John Criswell47fdd832003-07-14 16:52:07 +00005957 lt_prog_compiler_static_works=no
5958 save_LDFLAGS="$LDFLAGS"
5959 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5960 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5961 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5962 # The compiler can only warn and ignore the option if not recognized
5963 # So say no if there are warnings
5964 if test -s conftest.err; then
5965 # Append any errors to the config.log.
5966 cat conftest.err 1>&5
5967 else
5968 lt_prog_compiler_static_works=yes
5969 fi
5970 fi
5971 $rm conftest*
5972 LDFLAGS="$save_LDFLAGS"
5973
5974fi
5975echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5976echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5977
5978if test x"$lt_prog_compiler_static_works" = xyes; then
5979 :
5980else
5981 lt_prog_compiler_static=
5982fi
5983
5984
5985
John Criswell47fdd832003-07-14 16:52:07 +00005986
5987lt_prog_compiler_no_builtin_flag=
5988
5989if test "$GCC" = yes; then
5990 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5991
Reid Spencer9751dbf2004-09-07 18:04:45 +00005992
5993echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005994echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5995if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5997else
5998 lt_cv_prog_compiler_rtti_exceptions=no
5999 ac_outfile=conftest.$ac_objext
6000 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6001 lt_compiler_flag="-fno-rtti -fno-exceptions"
6002 # Insert the option either (1) after the last *FLAGS variable, or
6003 # (2) before a word containing "conftest.", or (3) at the end.
6004 # Note that $ac_compile itself does not contain backslashes and begins
6005 # with a dollar sign (not a hyphen), so the echo should work correctly.
6006 # The option is referenced via a variable to avoid confusing sed.
6007 lt_compile=`echo "$ac_compile" | $SED \
6008 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6010 -e 's:$: $lt_compiler_flag:'`
Reid Spencer9751dbf2004-09-07 18:04:45 +00006011 (eval echo "\"\$as_me:6011: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006012 (eval "$lt_compile" 2>conftest.err)
6013 ac_status=$?
6014 cat conftest.err >&5
Reid Spencer9751dbf2004-09-07 18:04:45 +00006015 echo "$as_me:6015: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006016 if (exit $ac_status) && test -s "$ac_outfile"; then
6017 # The compiler can only warn and ignore the option if not recognized
6018 # So say no if there are warnings
6019 if test ! -s conftest.err; then
6020 lt_cv_prog_compiler_rtti_exceptions=yes
6021 fi
6022 fi
6023 $rm conftest*
6024
6025fi
6026echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6027echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6028
6029if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6030 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6031else
6032 :
6033fi
6034
6035fi
6036
6037lt_prog_compiler_wl=
6038lt_prog_compiler_pic=
6039lt_prog_compiler_static=
6040
6041echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6042echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006043
6044 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006045 lt_prog_compiler_wl='-Wl,'
6046 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006047
6048 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006049 aix*)
6050 # All AIX code is PIC.
6051 if test "$host_cpu" = ia64; then
6052 # AIX 5 now supports IA64 processor
6053 lt_prog_compiler_static='-Bstatic'
6054 fi
John Criswell7a73b802003-06-30 21:59:07 +00006055 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006056
John Criswell7a73b802003-06-30 21:59:07 +00006057 amigaos*)
6058 # FIXME: we need at least 68020 code to build shared libraries, but
6059 # adding the `-m68020' flag to GCC prevents building anything better,
6060 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006061 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006062 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006063
6064 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006065 # PIC is the default for these OSes.
6066 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006067
6068 mingw* | pw32* | os2*)
6069 # This hack is so that the source file can tell whether it is being
6070 # built for inclusion in a dll (and should export symbols for example).
6071 lt_prog_compiler_pic='-DDLL_EXPORT'
6072 ;;
6073
John Criswell7a73b802003-06-30 21:59:07 +00006074 darwin* | rhapsody*)
6075 # PIC is the default on this platform
6076 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006077 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006078 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006079
6080 msdosdjgpp*)
6081 # Just because we use GCC doesn't mean we suddenly get shared libraries
6082 # on systems that don't support them.
6083 lt_prog_compiler_can_build_shared=no
6084 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006085 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006086
John Criswell7a73b802003-06-30 21:59:07 +00006087 sysv4*MP*)
6088 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006089 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006090 fi
6091 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006092
6093 hpux*)
6094 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6095 # not for PA HP-UX.
6096 case "$host_cpu" in
6097 hppa*64*|ia64*)
6098 # +Z the default
6099 ;;
6100 *)
6101 lt_prog_compiler_pic='-fPIC'
6102 ;;
6103 esac
6104 ;;
6105
John Criswell7a73b802003-06-30 21:59:07 +00006106 *)
John Criswell47fdd832003-07-14 16:52:07 +00006107 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006108 ;;
6109 esac
6110 else
John Criswell47fdd832003-07-14 16:52:07 +00006111 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006112 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006113 aix*)
6114 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006115 if test "$host_cpu" = ia64; then
6116 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006117 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006118 else
John Criswell47fdd832003-07-14 16:52:07 +00006119 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006120 fi
6121 ;;
6122
John Criswell47fdd832003-07-14 16:52:07 +00006123 mingw* | pw32* | os2*)
6124 # This hack is so that the source file can tell whether it is being
6125 # built for inclusion in a dll (and should export symbols for example).
6126 lt_prog_compiler_pic='-DDLL_EXPORT'
6127 ;;
6128
John Criswell7a73b802003-06-30 21:59:07 +00006129 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006130 lt_prog_compiler_wl='-Wl,'
6131 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6132 # not for PA HP-UX.
6133 case "$host_cpu" in
6134 hppa*64*|ia64*)
6135 # +Z the default
6136 ;;
6137 *)
6138 lt_prog_compiler_pic='+Z'
6139 ;;
6140 esac
6141 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6142 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006143 ;;
6144
John Criswell47fdd832003-07-14 16:52:07 +00006145 irix5* | irix6* | nonstopux*)
6146 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006147 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006148 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006149 ;;
6150
6151 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006152 lt_prog_compiler_pic='-KPIC'
6153 lt_prog_compiler_static='-Bstatic'
6154 ;;
6155
6156 linux*)
6157 case $CC in
Reid Spencer9751dbf2004-09-07 18:04:45 +00006158 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +00006159 lt_prog_compiler_wl='-Wl,'
6160 lt_prog_compiler_pic='-KPIC'
6161 lt_prog_compiler_static='-static'
6162 ;;
Reid Spencer9751dbf2004-09-07 18:04:45 +00006163 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +00006164 lt_prog_compiler_wl='-Wl,'
6165 # All Alpha code is PIC.
6166 lt_prog_compiler_static='-non_shared'
6167 ;;
6168 esac
John Criswell7a73b802003-06-30 21:59:07 +00006169 ;;
6170
6171 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006172 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006173 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006174 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006175 ;;
6176
6177 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006178 lt_prog_compiler_pic='-Kpic'
6179 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006180 ;;
6181
6182 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006183 lt_prog_compiler_wl='-Wl,'
6184 lt_prog_compiler_pic='-KPIC'
6185 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006186 ;;
6187
6188 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006189 lt_prog_compiler_wl='-Qoption ld '
6190 lt_prog_compiler_pic='-PIC'
6191 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006192 ;;
6193
6194 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006195 lt_prog_compiler_wl='-Wl,'
6196 lt_prog_compiler_pic='-KPIC'
6197 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006198 ;;
6199
6200 sysv4*MP*)
6201 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006202 lt_prog_compiler_pic='-Kconform_pic'
6203 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006204 fi
6205 ;;
6206
John Criswell47fdd832003-07-14 16:52:07 +00006207 uts4*)
6208 lt_prog_compiler_pic='-pic'
6209 lt_prog_compiler_static='-Bstatic'
6210 ;;
6211
John Criswell7a73b802003-06-30 21:59:07 +00006212 *)
John Criswell47fdd832003-07-14 16:52:07 +00006213 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006214 ;;
6215 esac
6216 fi
6217
John Criswell47fdd832003-07-14 16:52:07 +00006218echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6219echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006220
John Criswell47fdd832003-07-14 16:52:07 +00006221#
6222# Check to make sure the PIC flag actually works.
6223#
6224if test -n "$lt_prog_compiler_pic"; then
Reid Spencer9751dbf2004-09-07 18:04:45 +00006225
6226echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006227echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6228if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006229 echo $ECHO_N "(cached) $ECHO_C" >&6
6230else
John Criswell47fdd832003-07-14 16:52:07 +00006231 lt_prog_compiler_pic_works=no
6232 ac_outfile=conftest.$ac_objext
6233 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6234 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6235 # Insert the option either (1) after the last *FLAGS variable, or
6236 # (2) before a word containing "conftest.", or (3) at the end.
6237 # Note that $ac_compile itself does not contain backslashes and begins
6238 # with a dollar sign (not a hyphen), so the echo should work correctly.
6239 # The option is referenced via a variable to avoid confusing sed.
6240 lt_compile=`echo "$ac_compile" | $SED \
6241 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6243 -e 's:$: $lt_compiler_flag:'`
Reid Spencer9751dbf2004-09-07 18:04:45 +00006244 (eval echo "\"\$as_me:6244: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006245 (eval "$lt_compile" 2>conftest.err)
6246 ac_status=$?
6247 cat conftest.err >&5
Reid Spencer9751dbf2004-09-07 18:04:45 +00006248 echo "$as_me:6248: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006249 if (exit $ac_status) && test -s "$ac_outfile"; then
6250 # The compiler can only warn and ignore the option if not recognized
6251 # So say no if there are warnings
6252 if test ! -s conftest.err; then
6253 lt_prog_compiler_pic_works=yes
6254 fi
6255 fi
6256 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006257
John Criswell47fdd832003-07-14 16:52:07 +00006258fi
6259echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6260echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006261
John Criswell47fdd832003-07-14 16:52:07 +00006262if test x"$lt_prog_compiler_pic_works" = xyes; then
6263 case $lt_prog_compiler_pic in
6264 "" | " "*) ;;
6265 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6266 esac
John Criswell7a73b802003-06-30 21:59:07 +00006267else
John Criswell47fdd832003-07-14 16:52:07 +00006268 lt_prog_compiler_pic=
6269 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006270fi
6271
John Criswell7a73b802003-06-30 21:59:07 +00006272fi
John Criswell47fdd832003-07-14 16:52:07 +00006273case "$host_os" in
6274 # For platforms which do not support PIC, -DPIC is meaningless:
6275 *djgpp*)
6276 lt_prog_compiler_pic=
6277 ;;
6278 *)
6279 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6280 ;;
6281esac
John Criswell7a73b802003-06-30 21:59:07 +00006282
John Criswell7a73b802003-06-30 21:59:07 +00006283echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6284echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006285if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006286 echo $ECHO_N "(cached) $ECHO_C" >&6
6287else
John Criswell47fdd832003-07-14 16:52:07 +00006288 lt_cv_prog_compiler_c_o=no
6289 $rm -r conftest 2>/dev/null
6290 mkdir conftest
6291 cd conftest
6292 mkdir out
6293 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006294
John Criswell47fdd832003-07-14 16:52:07 +00006295 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6296 # that will create temporary files in the current directory regardless of
6297 # the output directory. Thus, making CWD read-only will cause this test
6298 # to fail, enabling locking or at least warning the user not to do parallel
6299 # builds.
6300 chmod -w .
6301
6302 lt_compiler_flag="-o out/conftest2.$ac_objext"
6303 # Insert the option either (1) after the last *FLAGS variable, or
6304 # (2) before a word containing "conftest.", or (3) at the end.
6305 # Note that $ac_compile itself does not contain backslashes and begins
6306 # with a dollar sign (not a hyphen), so the echo should work correctly.
6307 lt_compile=`echo "$ac_compile" | $SED \
6308 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6310 -e 's:$: $lt_compiler_flag:'`
Reid Spencer9751dbf2004-09-07 18:04:45 +00006311 (eval echo "\"\$as_me:6311: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006312 (eval "$lt_compile" 2>out/conftest.err)
6313 ac_status=$?
6314 cat out/conftest.err >&5
Reid Spencer9751dbf2004-09-07 18:04:45 +00006315 echo "$as_me:6315: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006316 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6317 then
6318 # The compiler can only warn and ignore the option if not recognized
6319 # So say no if there are warnings
6320 if test ! -s out/conftest.err; then
6321 lt_cv_prog_compiler_c_o=yes
6322 fi
6323 fi
6324 chmod u+w .
Reid Spencer9751dbf2004-09-07 18:04:45 +00006325 $rm conftest*
6326 # SGI C++ compiler will create directory out/ii_files/ for
6327 # template instantiation
6328 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6329 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +00006330 cd ..
6331 rmdir conftest
6332 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006333
6334fi
John Criswell47fdd832003-07-14 16:52:07 +00006335echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6336echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006337
John Criswell7a73b802003-06-30 21:59:07 +00006338
John Criswell7a73b802003-06-30 21:59:07 +00006339hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006340if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006341 # do not overwrite the value of need_locks provided by the user
6342 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6343echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6344 hard_links=yes
6345 $rm conftest*
6346 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6347 touch conftest.a
6348 ln conftest.a conftest.b 2>&5 || hard_links=no
6349 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6350 echo "$as_me:$LINENO: result: $hard_links" >&5
6351echo "${ECHO_T}$hard_links" >&6
6352 if test "$hard_links" = no; then
6353 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6354echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6355 need_locks=warn
6356 fi
6357else
6358 need_locks=no
6359fi
John Criswell7a73b802003-06-30 21:59:07 +00006360
John Criswell47fdd832003-07-14 16:52:07 +00006361echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6362echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6363
6364 runpath_var=
6365 allow_undefined_flag=
6366 enable_shared_with_static_runtimes=no
6367 archive_cmds=
6368 archive_expsym_cmds=
6369 old_archive_From_new_cmds=
6370 old_archive_from_expsyms_cmds=
6371 export_dynamic_flag_spec=
6372 whole_archive_flag_spec=
6373 thread_safe_flag_spec=
6374 hardcode_libdir_flag_spec=
6375 hardcode_libdir_flag_spec_ld=
6376 hardcode_libdir_separator=
6377 hardcode_direct=no
6378 hardcode_minus_L=no
6379 hardcode_shlibpath_var=unsupported
6380 link_all_deplibs=unknown
6381 hardcode_automatic=no
6382 module_cmds=
6383 module_expsym_cmds=
6384 always_export_symbols=no
6385 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6386 # include_expsyms should be a list of space-separated symbols to be *always*
6387 # included in the symbol list
6388 include_expsyms=
6389 # exclude_expsyms can be an extended regexp of symbols to exclude
6390 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6391 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6392 # as well as any symbol that contains `d'.
6393 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6394 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6395 # platforms (ab)use it in PIC code, but their linkers get confused if
6396 # the symbol is explicitly referenced. Since portable code cannot
6397 # rely on this symbol name, it's probably fine to never include it in
6398 # preloaded symbol tables.
6399 extract_expsyms_cmds=
6400
6401 case $host_os in
6402 cygwin* | mingw* | pw32*)
6403 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6404 # When not using gcc, we currently assume that we are using
6405 # Microsoft Visual C++.
6406 if test "$GCC" != yes; then
6407 with_gnu_ld=no
6408 fi
6409 ;;
6410 openbsd*)
6411 with_gnu_ld=no
6412 ;;
6413 esac
6414
6415 ld_shlibs=yes
6416 if test "$with_gnu_ld" = yes; then
6417 # If archive_cmds runs LD, not CC, wlarc should be empty
6418 wlarc='${wl}'
6419
6420 # See if GNU ld supports shared libraries.
6421 case $host_os in
6422 aix3* | aix4* | aix5*)
6423 # On AIX/PPC, the GNU linker is very broken
6424 if test "$host_cpu" != ia64; then
6425 ld_shlibs=no
6426 cat <<EOF 1>&2
6427
6428*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6429*** to be unable to reliably create shared libraries on AIX.
6430*** Therefore, libtool is disabling shared libraries support. If you
6431*** really care for shared libraries, you may want to modify your PATH
6432*** so that a non-GNU linker is found, and then restart.
6433
6434EOF
6435 fi
6436 ;;
6437
6438 amigaos*)
6439 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)'
6440 hardcode_libdir_flag_spec='-L$libdir'
6441 hardcode_minus_L=yes
6442
6443 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6444 # that the semantics of dynamic libraries on AmigaOS, at least up
6445 # to version 4, is to share data among multiple programs linked
6446 # with the same dynamic library. Since this doesn't match the
6447 # behavior of shared libraries on other platforms, we can't use
6448 # them.
6449 ld_shlibs=no
6450 ;;
6451
6452 beos*)
6453 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6454 allow_undefined_flag=unsupported
6455 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6456 # support --undefined. This deserves some investigation. FIXME
6457 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6458 else
6459 ld_shlibs=no
6460 fi
6461 ;;
6462
6463 cygwin* | mingw* | pw32*)
6464 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6465 # as there is no search path for DLLs.
6466 hardcode_libdir_flag_spec='-L$libdir'
6467 allow_undefined_flag=unsupported
6468 always_export_symbols=no
6469 enable_shared_with_static_runtimes=yes
6470 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6471
6472 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6473 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6474 # If the export-symbols file already is a .def file (1st line
6475 # is EXPORTS), use it as is; otherwise, prepend...
6476 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6477 cp $export_symbols $output_objdir/$soname.def;
6478 else
6479 echo EXPORTS > $output_objdir/$soname.def;
6480 cat $export_symbols >> $output_objdir/$soname.def;
6481 fi~
6482 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6483 else
6484 ld_shlibs=no
6485 fi
6486 ;;
6487
6488 netbsd*)
6489 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6490 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6491 wlarc=
6492 else
6493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6494 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6495 fi
6496 ;;
6497
6498 solaris* | sysv5*)
6499 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6500 ld_shlibs=no
6501 cat <<EOF 1>&2
6502
6503*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6504*** create shared libraries on Solaris systems. Therefore, libtool
6505*** is disabling shared libraries support. We urge you to upgrade GNU
6506*** binutils to release 2.9.1 or newer. Another option is to modify
6507*** your PATH or compiler configuration so that the native linker is
6508*** used, and then restart.
6509
6510EOF
6511 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6513 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6514 else
6515 ld_shlibs=no
6516 fi
6517 ;;
6518
6519 sunos4*)
6520 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6521 wlarc=
6522 hardcode_direct=yes
6523 hardcode_shlibpath_var=no
6524 ;;
6525
6526 *)
6527 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6528 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6529 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6530 else
6531 ld_shlibs=no
6532 fi
6533 ;;
6534 esac
6535
6536 if test "$ld_shlibs" = yes; then
6537 runpath_var=LD_RUN_PATH
6538 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6539 export_dynamic_flag_spec='${wl}--export-dynamic'
6540 # ancient GNU ld didn't support --whole-archive et. al.
6541 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6542 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6543 else
6544 whole_archive_flag_spec=
6545 fi
6546 fi
6547 else
6548 # PORTME fill in a description of your system's linker (not GNU ld)
6549 case $host_os in
6550 aix3*)
6551 allow_undefined_flag=unsupported
6552 always_export_symbols=yes
6553 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'
6554 # Note: this linker hardcodes the directories in LIBPATH if there
6555 # are no directories specified by -L.
6556 hardcode_minus_L=yes
6557 if test "$GCC" = yes && test -z "$link_static_flag"; then
6558 # Neither direct hardcoding nor static linking is supported with a
6559 # broken collect2.
6560 hardcode_direct=unsupported
6561 fi
6562 ;;
6563
6564 aix4* | aix5*)
6565 if test "$host_cpu" = ia64; then
6566 # On IA64, the linker does run time linking by default, so we don't
6567 # have to do anything special.
6568 aix_use_runtimelinking=no
6569 exp_sym_flag='-Bexport'
6570 no_entry_flag=""
6571 else
6572 # If we're using GNU nm, then we don't want the "-C" option.
6573 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6574 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6575 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'
6576 else
6577 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'
6578 fi
6579 aix_use_runtimelinking=no
6580
6581 # Test if we are trying to use run time linking or normal
6582 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6583 # need to do runtime linking.
6584 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6585 for ld_flag in $LDFLAGS; do
6586 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6587 aix_use_runtimelinking=yes
6588 break
6589 fi
6590 done
6591 esac
6592
6593 exp_sym_flag='-bexport'
6594 no_entry_flag='-bnoentry'
6595 fi
6596
6597 # When large executables or shared objects are built, AIX ld can
6598 # have problems creating the table of contents. If linking a library
6599 # or program results in "error TOC overflow" add -mminimal-toc to
6600 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6601 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6602
6603 archive_cmds=''
6604 hardcode_direct=yes
6605 hardcode_libdir_separator=':'
6606 link_all_deplibs=yes
6607
6608 if test "$GCC" = yes; then
6609 case $host_os in aix4.012|aix4.012.*)
6610 # We only want to do this on AIX 4.2 and lower, the check
6611 # below for broken collect2 doesn't work under 4.3+
6612 collect2name=`${CC} -print-prog-name=collect2`
6613 if test -f "$collect2name" && \
6614 strings "$collect2name" | grep resolve_lib_name >/dev/null
6615 then
6616 # We have reworked collect2
6617 hardcode_direct=yes
6618 else
6619 # We have old collect2
6620 hardcode_direct=unsupported
6621 # It fails to find uninstalled libraries when the uninstalled
6622 # path is not listed in the libpath. Setting hardcode_minus_L
6623 # to unsupported forces relinking
6624 hardcode_minus_L=yes
6625 hardcode_libdir_flag_spec='-L$libdir'
6626 hardcode_libdir_separator=
6627 fi
6628 esac
6629 shared_flag='-shared'
6630 else
6631 # not using gcc
6632 if test "$host_cpu" = ia64; then
6633 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6634 # chokes on -Wl,-G. The following line is correct:
6635 shared_flag='-G'
6636 else
6637 if test "$aix_use_runtimelinking" = yes; then
6638 shared_flag='${wl}-G'
6639 else
6640 shared_flag='${wl}-bM:SRE'
6641 fi
6642 fi
6643 fi
6644
6645 # It seems that -bexpall does not export symbols beginning with
6646 # underscore (_), so it is better to generate a list of symbols to export.
6647 always_export_symbols=yes
6648 if test "$aix_use_runtimelinking" = yes; then
6649 # Warning - without using the other runtime loading flags (-brtl),
6650 # -berok will link without error, but may produce a broken library.
6651 allow_undefined_flag='-berok'
6652 # Determine the default libpath from the value encoded in an empty executable.
6653 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006654/* confdefs.h. */
6655_ACEOF
6656cat confdefs.h >>conftest.$ac_ext
6657cat >>conftest.$ac_ext <<_ACEOF
6658/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006659
John Criswell7a73b802003-06-30 21:59:07 +00006660int
6661main ()
6662{
John Criswell47fdd832003-07-14 16:52:07 +00006663
John Criswell7a73b802003-06-30 21:59:07 +00006664 ;
6665 return 0;
6666}
6667_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006668rm -f conftest.$ac_objext conftest$ac_exeext
6669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00006670 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006671 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00006672 grep -v '^ *+' conftest.er1 >conftest.err
6673 rm -f conftest.er1
6674 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00006677 { ac_try='test -z "$ac_c_werror_flag"
6678 || test ! -s conftest.err'
6679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6680 (eval $ac_try) 2>&5
6681 ac_status=$?
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); }; } &&
6684 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686 (eval $ac_try) 2>&5
6687 ac_status=$?
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006690
John Criswell47fdd832003-07-14 16:52:07 +00006691aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6692}'`
6693# Check for a 64-bit object if we didn't find anything.
6694if 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; }
6695}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006696else
6697 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006698sed 's/^/| /' conftest.$ac_ext >&5
6699
John Criswell7a73b802003-06-30 21:59:07 +00006700fi
Reid Spencer17041682004-09-05 17:48:32 +00006701rm -f conftest.err conftest.$ac_objext \
6702 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006703if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006704
John Criswell47fdd832003-07-14 16:52:07 +00006705 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6706 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"
6707 else
6708 if test "$host_cpu" = ia64; then
6709 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6710 allow_undefined_flag="-z nodefs"
6711 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"
6712 else
6713 # Determine the default libpath from the value encoded in an empty executable.
6714 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006715/* confdefs.h. */
6716_ACEOF
6717cat confdefs.h >>conftest.$ac_ext
6718cat >>conftest.$ac_ext <<_ACEOF
6719/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006720
John Criswell47fdd832003-07-14 16:52:07 +00006721int
6722main ()
6723{
John Criswell7a73b802003-06-30 21:59:07 +00006724
John Criswell47fdd832003-07-14 16:52:07 +00006725 ;
6726 return 0;
6727}
6728_ACEOF
6729rm -f conftest.$ac_objext conftest$ac_exeext
6730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00006731 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00006732 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00006733 grep -v '^ *+' conftest.er1 >conftest.err
6734 rm -f conftest.er1
6735 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00006736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00006738 { ac_try='test -z "$ac_c_werror_flag"
6739 || test ! -s conftest.err'
6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741 (eval $ac_try) 2>&5
6742 ac_status=$?
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; } &&
6745 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00006746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747 (eval $ac_try) 2>&5
6748 ac_status=$?
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006751
John Criswell47fdd832003-07-14 16:52:07 +00006752aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6753}'`
6754# Check for a 64-bit object if we didn't find anything.
6755if 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; }
6756}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006757else
John Criswell47fdd832003-07-14 16:52:07 +00006758 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006759sed 's/^/| /' conftest.$ac_ext >&5
6760
John Criswell47fdd832003-07-14 16:52:07 +00006761fi
Reid Spencer17041682004-09-05 17:48:32 +00006762rm -f conftest.err conftest.$ac_objext \
6763 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006764if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006765
John Criswell47fdd832003-07-14 16:52:07 +00006766 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6767 # Warning - without using the other run time loading flags,
6768 # -berok will link without error, but may produce a broken library.
6769 no_undefined_flag=' ${wl}-bernotok'
6770 allow_undefined_flag=' ${wl}-berok'
6771 # -bexpall does not export symbols beginning with underscore (_)
6772 always_export_symbols=yes
6773 # Exported symbols can be pulled into shared objects from archives
6774 whole_archive_flag_spec=' '
6775 archive_cmds_need_lc=yes
6776 # This is similar to how AIX traditionally builds it's shared libraries.
6777 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'
John Criswell7a73b802003-06-30 21:59:07 +00006778 fi
6779 fi
John Criswell7a73b802003-06-30 21:59:07 +00006780 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006781
6782 amigaos*)
6783 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)'
6784 hardcode_libdir_flag_spec='-L$libdir'
6785 hardcode_minus_L=yes
6786 # see comment about different semantics on the GNU ld section
6787 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006788 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006789
John Criswell47fdd832003-07-14 16:52:07 +00006790 bsdi4*)
6791 export_dynamic_flag_spec=-rdynamic
6792 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006793
John Criswell47fdd832003-07-14 16:52:07 +00006794 cygwin* | mingw* | pw32*)
6795 # When not using gcc, we currently assume that we are using
6796 # Microsoft Visual C++.
6797 # hardcode_libdir_flag_spec is actually meaningless, as there is
6798 # no search path for DLLs.
6799 hardcode_libdir_flag_spec=' '
6800 allow_undefined_flag=unsupported
6801 # Tell ltmain to make .lib files, not .a files.
6802 libext=lib
6803 # Tell ltmain to make .dll files, not .so files.
6804 shrext=".dll"
6805 # FIXME: Setting linknames here is a bad hack.
6806 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6807 # The linker will automatically build a .lib file if we build a DLL.
6808 old_archive_From_new_cmds='true'
6809 # FIXME: Should let the user specify the lib program.
6810 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6811 fix_srcfile_path='`cygpath -w "$srcfile"`'
6812 enable_shared_with_static_runtimes=yes
6813 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006814
John Criswell47fdd832003-07-14 16:52:07 +00006815 darwin* | rhapsody*)
Reid Spencer9751dbf2004-09-07 18:04:45 +00006816 if test "$GXX" = yes ; then
John Criswell47fdd832003-07-14 16:52:07 +00006817 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00006818 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00006819 rhapsody* | darwin1.[012])
6820 allow_undefined_flag='-undefined suppress'
6821 ;;
6822 *) # Darwin 1.3 on
Reid Spencer9751dbf2004-09-07 18:04:45 +00006823 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6824 allow_undefined_flag='-flat_namespace -undefined suppress'
6825 else
6826 case ${MACOSX_DEPLOYMENT_TARGET} in
6827 10.[012])
6828 allow_undefined_flag='-flat_namespace -undefined suppress'
6829 ;;
6830 10.*)
6831 allow_undefined_flag='-undefined dynamic_lookup'
6832 ;;
6833 esac
6834 fi
John Criswell7a73b802003-06-30 21:59:07 +00006835 ;;
6836 esac
John Criswell47fdd832003-07-14 16:52:07 +00006837 lt_int_apple_cc_single_mod=no
6838 output_verbose_link_cmd='echo'
6839 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6840 lt_int_apple_cc_single_mod=yes
6841 fi
6842 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6843 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6844 else
6845 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'
6846 fi
Reid Spencer9751dbf2004-09-07 18:04:45 +00006847 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006848 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6849 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6850 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}'
6851 else
6852 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}'
6853 fi
Reid Spencer9751dbf2004-09-07 18:04:45 +00006854 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}'
John Criswell47fdd832003-07-14 16:52:07 +00006855 hardcode_direct=no
6856 hardcode_automatic=yes
6857 hardcode_shlibpath_var=unsupported
6858 whole_archive_flag_spec='-all_load $convenience'
6859 link_all_deplibs=yes
Reid Spencer9751dbf2004-09-07 18:04:45 +00006860 else
6861 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006862 fi
John Criswell47fdd832003-07-14 16:52:07 +00006863 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006864
John Criswell47fdd832003-07-14 16:52:07 +00006865 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00006866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006867 hardcode_libdir_flag_spec='-L$libdir'
6868 hardcode_shlibpath_var=no
6869 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006870
John Criswell47fdd832003-07-14 16:52:07 +00006871 freebsd1*)
6872 ld_shlibs=no
6873 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006874
John Criswell47fdd832003-07-14 16:52:07 +00006875 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6876 # support. Future versions do this automatically, but an explicit c++rt0.o
6877 # does not break anything, and helps significantly (at the cost of a little
6878 # extra space).
6879 freebsd2.2*)
6880 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6881 hardcode_libdir_flag_spec='-R$libdir'
6882 hardcode_direct=yes
6883 hardcode_shlibpath_var=no
6884 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006885
John Criswell47fdd832003-07-14 16:52:07 +00006886 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6887 freebsd2*)
6888 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6889 hardcode_direct=yes
6890 hardcode_minus_L=yes
6891 hardcode_shlibpath_var=no
6892 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006893
John Criswell47fdd832003-07-14 16:52:07 +00006894 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer9751dbf2004-09-07 18:04:45 +00006895 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +00006896 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6897 hardcode_libdir_flag_spec='-R$libdir'
6898 hardcode_direct=yes
6899 hardcode_shlibpath_var=no
6900 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006901
John Criswell47fdd832003-07-14 16:52:07 +00006902 hpux9*)
6903 if test "$GCC" = yes; then
6904 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'
6905 else
6906 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'
6907 fi
6908 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6909 hardcode_libdir_separator=:
6910 hardcode_direct=yes
6911
6912 # hardcode_minus_L: Not really in the search PATH,
6913 # but as the default location of the library.
6914 hardcode_minus_L=yes
6915 export_dynamic_flag_spec='${wl}-E'
6916 ;;
6917
6918 hpux10* | hpux11*)
6919 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6920 case "$host_cpu" in
6921 hppa*64*|ia64*)
6922 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6923 ;;
6924 *)
6925 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6926 ;;
6927 esac
6928 else
6929 case "$host_cpu" in
6930 hppa*64*|ia64*)
6931 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6932 ;;
6933 *)
6934 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6935 ;;
6936 esac
6937 fi
6938 if test "$with_gnu_ld" = no; then
6939 case "$host_cpu" in
6940 hppa*64*)
6941 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6942 hardcode_libdir_flag_spec_ld='+b $libdir'
6943 hardcode_libdir_separator=:
6944 hardcode_direct=no
6945 hardcode_shlibpath_var=no
6946 ;;
6947 ia64*)
6948 hardcode_libdir_flag_spec='-L$libdir'
6949 hardcode_direct=no
6950 hardcode_shlibpath_var=no
6951
6952 # hardcode_minus_L: Not really in the search PATH,
6953 # but as the default location of the library.
6954 hardcode_minus_L=yes
6955 ;;
6956 *)
6957 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6958 hardcode_libdir_separator=:
6959 hardcode_direct=yes
6960 export_dynamic_flag_spec='${wl}-E'
6961
6962 # hardcode_minus_L: Not really in the search PATH,
6963 # but as the default location of the library.
6964 hardcode_minus_L=yes
6965 ;;
6966 esac
6967 fi
6968 ;;
6969
6970 irix5* | irix6* | nonstopux*)
6971 if test "$GCC" = yes; then
6972 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'
6973 else
6974 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'
6975 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6976 fi
6977 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6978 hardcode_libdir_separator=:
6979 link_all_deplibs=yes
6980 ;;
6981
6982 netbsd*)
6983 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6984 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6985 else
6986 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6987 fi
6988 hardcode_libdir_flag_spec='-R$libdir'
6989 hardcode_direct=yes
6990 hardcode_shlibpath_var=no
6991 ;;
6992
6993 newsos6)
6994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6995 hardcode_direct=yes
6996 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6997 hardcode_libdir_separator=:
6998 hardcode_shlibpath_var=no
6999 ;;
7000
7001 openbsd*)
7002 hardcode_direct=yes
7003 hardcode_shlibpath_var=no
7004 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7005 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7006 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7007 export_dynamic_flag_spec='${wl}-E'
7008 else
7009 case $host_os in
7010 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7011 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7012 hardcode_libdir_flag_spec='-R$libdir'
7013 ;;
7014 *)
7015 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7016 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7017 ;;
7018 esac
7019 fi
7020 ;;
7021
7022 os2*)
7023 hardcode_libdir_flag_spec='-L$libdir'
7024 hardcode_minus_L=yes
7025 allow_undefined_flag=unsupported
7026 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'
7027 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7028 ;;
7029
7030 osf3*)
7031 if test "$GCC" = yes; then
7032 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7033 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'
7034 else
7035 allow_undefined_flag=' -expect_unresolved \*'
7036 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'
7037 fi
7038 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7039 hardcode_libdir_separator=:
7040 ;;
7041
7042 osf4* | osf5*) # as osf3* with the addition of -msym flag
7043 if test "$GCC" = yes; then
7044 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7045 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'
7046 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7047 else
7048 allow_undefined_flag=' -expect_unresolved \*'
7049 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'
7050 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7051 $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'
7052
7053 # Both c and cxx compiler support -rpath directly
7054 hardcode_libdir_flag_spec='-rpath $libdir'
7055 fi
7056 hardcode_libdir_separator=:
7057 ;;
7058
7059 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7061 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007062 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007063 runpath_var=LD_RUN_PATH
7064 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007065 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007066
John Criswell47fdd832003-07-14 16:52:07 +00007067 solaris*)
7068 no_undefined_flag=' -z text'
7069 if test "$GCC" = yes; then
7070 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7071 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7072 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7073 else
7074 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7075 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7076 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7077 fi
7078 hardcode_libdir_flag_spec='-R$libdir'
7079 hardcode_shlibpath_var=no
7080 case $host_os in
7081 solaris2.[0-5] | solaris2.[0-5].*) ;;
7082 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7083 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7084 esac
7085 link_all_deplibs=yes
7086 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007087
John Criswell47fdd832003-07-14 16:52:07 +00007088 sunos4*)
7089 if test "x$host_vendor" = xsequent; then
7090 # Use $CC to link under sequent, because it throws in some extra .o
7091 # files that make .init and .fini sections work.
7092 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7093 else
7094 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7095 fi
7096 hardcode_libdir_flag_spec='-L$libdir'
7097 hardcode_direct=yes
7098 hardcode_minus_L=yes
7099 hardcode_shlibpath_var=no
7100 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007101
John Criswell47fdd832003-07-14 16:52:07 +00007102 sysv4)
7103 case $host_vendor in
7104 sni)
7105 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7106 hardcode_direct=yes # is this really true???
7107 ;;
7108 siemens)
7109 ## LD is ld it makes a PLAMLIB
7110 ## CC just makes a GrossModule.
7111 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7112 reload_cmds='$CC -r -o $output$reload_objs'
7113 hardcode_direct=no
7114 ;;
7115 motorola)
7116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7117 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7118 ;;
7119 esac
7120 runpath_var='LD_RUN_PATH'
7121 hardcode_shlibpath_var=no
7122 ;;
7123
7124 sysv4.3*)
7125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7126 hardcode_shlibpath_var=no
7127 export_dynamic_flag_spec='-Bexport'
7128 ;;
7129
7130 sysv4*MP*)
7131 if test -d /usr/nec; then
7132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7133 hardcode_shlibpath_var=no
7134 runpath_var=LD_RUN_PATH
7135 hardcode_runpath_var=yes
7136 ld_shlibs=yes
7137 fi
7138 ;;
7139
7140 sysv4.2uw2*)
7141 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7142 hardcode_direct=yes
7143 hardcode_minus_L=no
7144 hardcode_shlibpath_var=no
7145 hardcode_runpath_var=yes
7146 runpath_var=LD_RUN_PATH
7147 ;;
7148
7149 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7150 no_undefined_flag='${wl}-z ${wl}text'
7151 if test "$GCC" = yes; then
7152 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7153 else
7154 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7155 fi
7156 runpath_var='LD_RUN_PATH'
7157 hardcode_shlibpath_var=no
7158 ;;
7159
7160 sysv5*)
7161 no_undefined_flag=' -z text'
7162 # $CC -shared without GNU ld will not create a library from C++
7163 # object files and a static libstdc++, better avoid it by now
7164 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7165 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7166 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7167 hardcode_libdir_flag_spec=
7168 hardcode_shlibpath_var=no
7169 runpath_var='LD_RUN_PATH'
7170 ;;
7171
7172 uts4*)
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 *)
7179 ld_shlibs=no
7180 ;;
7181 esac
7182 fi
7183
John Criswell7a73b802003-06-30 21:59:07 +00007184echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7185echo "${ECHO_T}$ld_shlibs" >&6
7186test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007187
John Criswell47fdd832003-07-14 16:52:07 +00007188variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7189if test "$GCC" = yes; then
7190 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7191fi
7192
7193#
7194# Do we need to explicitly link libc?
7195#
7196case "x$archive_cmds_need_lc" in
7197x|xyes)
7198 # Assume -lc should be added
7199 archive_cmds_need_lc=yes
7200
7201 if test "$enable_shared" = yes && test "$GCC" = yes; then
7202 case $archive_cmds in
7203 *'~'*)
7204 # FIXME: we may have to deal with multi-command sequences.
7205 ;;
7206 '$CC '*)
7207 # Test whether the compiler implicitly links with -lc since on some
7208 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7209 # to ld, don't add -lc before -lgcc.
7210 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7211echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7212 $rm conftest*
7213 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7214
7215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7216 (eval $ac_compile) 2>&5
7217 ac_status=$?
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } 2>conftest.err; then
7220 soname=conftest
7221 lib=conftest
7222 libobjs=conftest.$ac_objext
7223 deplibs=
7224 wl=$lt_prog_compiler_wl
7225 compiler_flags=-v
7226 linker_flags=-v
7227 verstring=
7228 output_objdir=.
7229 libname=conftest
7230 lt_save_allow_undefined_flag=$allow_undefined_flag
7231 allow_undefined_flag=
7232 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7233 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7234 ac_status=$?
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); }
7237 then
7238 archive_cmds_need_lc=no
7239 else
7240 archive_cmds_need_lc=yes
7241 fi
7242 allow_undefined_flag=$lt_save_allow_undefined_flag
7243 else
7244 cat conftest.err 1>&5
7245 fi
7246 $rm conftest*
7247 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7248echo "${ECHO_T}$archive_cmds_need_lc" >&6
7249 ;;
7250 esac
7251 fi
7252 ;;
7253esac
7254
John Criswell7a73b802003-06-30 21:59:07 +00007255echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7256echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7257library_names_spec=
7258libname_spec='lib$name'
7259soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007260shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007261postinstall_cmds=
7262postuninstall_cmds=
7263finish_cmds=
7264finish_eval=
7265shlibpath_var=
7266shlibpath_overrides_runpath=unknown
7267version_type=none
7268dynamic_linker="$host_os ld.so"
7269sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007270if test "$GCC" = yes; then
7271 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7272 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7273 # if the path contains ";" then we assume it to be the separator
7274 # otherwise default to the standard path separator (i.e. ":") - it is
7275 # assumed that no part of a normal pathname contains ";" but that should
7276 # okay in the real world where ";" in dirpaths is itself problematic.
7277 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7278 else
7279 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7280 fi
7281else
7282 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7283fi
7284need_lib_prefix=unknown
7285hardcode_into_libs=no
7286
7287# when you set need_version to no, make sure it does not cause -set_version
7288# flags to be left without arguments
7289need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007290
7291case $host_os in
7292aix3*)
7293 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007294 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007295 shlibpath_var=LIBPATH
7296
John Criswell47fdd832003-07-14 16:52:07 +00007297 # AIX 3 has no versioning support, so we append a major version to the name.
7298 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007299 ;;
7300
7301aix4* | aix5*)
7302 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007303 need_lib_prefix=no
7304 need_version=no
7305 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007306 if test "$host_cpu" = ia64; then
7307 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007308 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007309 shlibpath_var=LD_LIBRARY_PATH
7310 else
7311 # With GCC up to 2.95.x, collect2 would create an import file
7312 # for dependence libraries. The import file would start with
7313 # the line `#! .'. This would cause the generated library to
7314 # depend on `.', always an invalid library. This was fixed in
7315 # development snapshots of GCC prior to 3.0.
7316 case $host_os in
7317 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007318 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7319 echo ' yes '
7320 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7321 :
7322 else
7323 can_build_shared=no
7324 fi
7325 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007326 esac
John Criswell47fdd832003-07-14 16:52:07 +00007327 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7328 # soname into executable. Probably we can add versioning support to
7329 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007330 if test "$aix_use_runtimelinking" = yes; then
7331 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7332 # instead of lib<name>.a to let people know that these are not
7333 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007335 else
7336 # We preserve .a as extension for shared libraries through AIX4.2
7337 # and later when we are not doing run time linking.
7338 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007339 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007340 fi
7341 shlibpath_var=LIBPATH
7342 fi
7343 ;;
7344
7345amigaos*)
7346 library_names_spec='$libname.ixlibrary $libname.a'
7347 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer9751dbf2004-09-07 18:04:45 +00007348 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'
John Criswell7a73b802003-06-30 21:59:07 +00007349 ;;
7350
7351beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007352 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007353 dynamic_linker="$host_os ld.so"
7354 shlibpath_var=LIBRARY_PATH
7355 ;;
7356
7357bsdi4*)
7358 version_type=linux
7359 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7361 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007362 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7363 shlibpath_var=LD_LIBRARY_PATH
7364 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7365 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007366 # the default ld.so.conf also contains /usr/contrib/lib and
7367 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7368 # libtool to hard-code these into programs
7369 ;;
7370
7371cygwin* | mingw* | pw32*)
7372 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007373 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007374 need_version=no
7375 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007376
John Criswell7a73b802003-06-30 21:59:07 +00007377 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007378 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007379 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007380 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7381 postinstall_cmds='base_file=`basename \${file}`~
7382 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007383 dldir=$destdir/`dirname \$dlpath`~
7384 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007385 $install_prog $dir/$dlname \$dldir/$dlname'
7386 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007387 dlpath=$dir/\$dldll~
7388 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007389 shlibpath_overrides_runpath=yes
7390
7391 case $host_os in
7392 cygwin*)
7393 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7394 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer9751dbf2004-09-07 18:04:45 +00007395 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007396 ;;
7397 mingw*)
7398 # MinGW DLLs use traditional 'lib' prefix
7399 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7400 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7401 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7402 # It is most probably a Windows format PATH printed by
7403 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7404 # path with ; separators, and with drive letters. We can handle the
7405 # drive letters (cygwin fileutils understands them), so leave them,
7406 # especially as we might pass files found there to a mingw objdump,
7407 # which wouldn't understand a cygwinified path. Ahh.
7408 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7409 else
7410 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7411 fi
7412 ;;
7413 pw32*)
7414 # pw32 DLLs use 'pw' prefix rather than 'lib'
7415 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7416 ;;
7417 esac
John Criswell7a73b802003-06-30 21:59:07 +00007418 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007419
John Criswell7a73b802003-06-30 21:59:07 +00007420 *)
John Criswell47fdd832003-07-14 16:52:07 +00007421 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007422 ;;
7423 esac
7424 dynamic_linker='Win32 ld.exe'
7425 # FIXME: first we should search . and the directory the executable is in
7426 shlibpath_var=PATH
7427 ;;
7428
7429darwin* | rhapsody*)
7430 dynamic_linker="$host_os dyld"
7431 version_type=darwin
7432 need_lib_prefix=no
7433 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007434 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7435 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007436 shlibpath_overrides_runpath=yes
7437 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007438 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7439 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer9751dbf2004-09-07 18:04:45 +00007440 if test "$GCC" = yes; then
7441 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"`
7442 else
7443 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +00007444 fi
7445 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7446 ;;
7447
7448dgux*)
7449 version_type=linux
7450 need_lib_prefix=no
7451 need_version=no
7452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7453 soname_spec='${libname}${release}${shared_ext}$major'
7454 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007455 ;;
7456
7457freebsd1*)
7458 dynamic_linker=no
7459 ;;
7460
Reid Spencer9751dbf2004-09-07 18:04:45 +00007461kfreebsd*-gnu)
7462 version_type=linux
7463 need_lib_prefix=no
7464 need_version=no
7465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7466 soname_spec='${libname}${release}${shared_ext}$major'
7467 shlibpath_var=LD_LIBRARY_PATH
7468 shlibpath_overrides_runpath=no
7469 hardcode_into_libs=yes
7470 dynamic_linker='GNU ld.so'
7471 ;;
7472
John Criswell7a73b802003-06-30 21:59:07 +00007473freebsd*)
7474 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7475 version_type=freebsd-$objformat
7476 case $version_type in
7477 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007479 need_version=no
7480 need_lib_prefix=no
7481 ;;
7482 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007483 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007484 need_version=yes
7485 ;;
7486 esac
7487 shlibpath_var=LD_LIBRARY_PATH
7488 case $host_os in
7489 freebsd2*)
7490 shlibpath_overrides_runpath=yes
7491 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007492 freebsd3.01* | freebsdelf3.01*)
7493 shlibpath_overrides_runpath=yes
7494 hardcode_into_libs=yes
7495 ;;
7496 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007497 shlibpath_overrides_runpath=no
7498 hardcode_into_libs=yes
7499 ;;
7500 esac
7501 ;;
7502
7503gnu*)
7504 version_type=linux
7505 need_lib_prefix=no
7506 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7508 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007509 shlibpath_var=LD_LIBRARY_PATH
7510 hardcode_into_libs=yes
7511 ;;
7512
7513hpux9* | hpux10* | hpux11*)
7514 # Give a soname corresponding to the major version so that dld.sl refuses to
7515 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007516 version_type=sunos
7517 need_lib_prefix=no
7518 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007519 case "$host_cpu" in
7520 ia64*)
7521 shrext='.so'
7522 hardcode_into_libs=yes
7523 dynamic_linker="$host_os dld.so"
7524 shlibpath_var=LD_LIBRARY_PATH
7525 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7527 soname_spec='${libname}${release}${shared_ext}$major'
7528 if test "X$HPUX_IA64_MODE" = X32; then
7529 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7530 else
7531 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7532 fi
7533 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7534 ;;
7535 hppa*64*)
7536 shrext='.sl'
7537 hardcode_into_libs=yes
7538 dynamic_linker="$host_os dld.sl"
7539 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7540 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7542 soname_spec='${libname}${release}${shared_ext}$major'
7543 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7544 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7545 ;;
7546 *)
7547 shrext='.sl'
7548 dynamic_linker="$host_os dld.sl"
7549 shlibpath_var=SHLIB_PATH
7550 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7552 soname_spec='${libname}${release}${shared_ext}$major'
7553 ;;
7554 esac
John Criswell7a73b802003-06-30 21:59:07 +00007555 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7556 postinstall_cmds='chmod 555 $lib'
7557 ;;
7558
John Criswell47fdd832003-07-14 16:52:07 +00007559irix5* | irix6* | nonstopux*)
7560 case $host_os in
7561 nonstopux*) version_type=nonstopux ;;
7562 *)
7563 if test "$lt_cv_prog_gnu_ld" = yes; then
7564 version_type=linux
7565 else
7566 version_type=irix
7567 fi ;;
7568 esac
John Criswell7a73b802003-06-30 21:59:07 +00007569 need_lib_prefix=no
7570 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007571 soname_spec='${libname}${release}${shared_ext}$major'
7572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007573 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007574 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007575 libsuff= shlibsuff=
7576 ;;
7577 *)
7578 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007579 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7580 libsuff= shlibsuff= libmagic=32-bit;;
7581 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7582 libsuff=32 shlibsuff=N32 libmagic=N32;;
7583 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7584 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007585 *) libsuff= shlibsuff= libmagic=never-match;;
7586 esac
7587 ;;
7588 esac
7589 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7590 shlibpath_overrides_runpath=no
7591 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7592 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007593 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007594 ;;
7595
7596# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007597linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007598 dynamic_linker=no
7599 ;;
7600
7601# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007602linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007603 version_type=linux
7604 need_lib_prefix=no
7605 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7607 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007608 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7609 shlibpath_var=LD_LIBRARY_PATH
7610 shlibpath_overrides_runpath=no
7611 # This implies no fast_install, which is unacceptable.
7612 # Some rework will be needed to allow for fast_install
7613 # before this can be enabled.
7614 hardcode_into_libs=yes
7615
7616 # We used to test for /lib/ld.so.1 and disable shared libraries on
7617 # powerpc, because MkLinux only supported shared libraries with the
7618 # GNU dynamic linker. Since this was broken with cross compilers,
7619 # most powerpc-linux boxes support dynamic linking these days and
7620 # people can always --disable-shared, the test was removed, and we
7621 # assume the GNU/Linux dynamic linker is in use.
7622 dynamic_linker='GNU/Linux ld.so'
7623 ;;
7624
Reid Spencer9751dbf2004-09-07 18:04:45 +00007625knetbsd*-gnu)
7626 version_type=linux
7627 need_lib_prefix=no
7628 need_version=no
7629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7630 soname_spec='${libname}${release}${shared_ext}$major'
7631 shlibpath_var=LD_LIBRARY_PATH
7632 shlibpath_overrides_runpath=no
7633 hardcode_into_libs=yes
7634 dynamic_linker='GNU ld.so'
7635 ;;
7636
John Criswell7a73b802003-06-30 21:59:07 +00007637netbsd*)
7638 version_type=sunos
7639 need_lib_prefix=no
7640 need_version=no
7641 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007643 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7644 dynamic_linker='NetBSD (a.out) ld.so'
7645 else
John Criswell47fdd832003-07-14 16:52:07 +00007646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7647 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007648 dynamic_linker='NetBSD ld.elf_so'
7649 fi
7650 shlibpath_var=LD_LIBRARY_PATH
7651 shlibpath_overrides_runpath=yes
7652 hardcode_into_libs=yes
7653 ;;
7654
7655newsos6)
7656 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7658 shlibpath_var=LD_LIBRARY_PATH
7659 shlibpath_overrides_runpath=yes
7660 ;;
7661
Reid Spencer9751dbf2004-09-07 18:04:45 +00007662nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +00007663 version_type=linux
7664 need_lib_prefix=no
7665 need_version=no
7666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7667 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007668 shlibpath_var=LD_LIBRARY_PATH
7669 shlibpath_overrides_runpath=yes
7670 ;;
7671
7672openbsd*)
7673 version_type=sunos
7674 need_lib_prefix=no
Reid Spencer9751dbf2004-09-07 18:04:45 +00007675 need_version=yes
John Criswell47fdd832003-07-14 16:52:07 +00007676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7678 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007679 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
John Criswell47fdd832003-07-14 16:52:07 +00007680 case $host_os in
7681 openbsd2.[89] | openbsd2.[89].*)
7682 shlibpath_overrides_runpath=no
7683 ;;
7684 *)
7685 shlibpath_overrides_runpath=yes
7686 ;;
7687 esac
John Criswell7a73b802003-06-30 21:59:07 +00007688 else
7689 shlibpath_overrides_runpath=yes
7690 fi
John Criswell7a73b802003-06-30 21:59:07 +00007691 ;;
7692
7693os2*)
7694 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007695 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007696 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007697 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007698 dynamic_linker='OS/2 ld.exe'
7699 shlibpath_var=LIBPATH
7700 ;;
7701
7702osf3* | osf4* | osf5*)
7703 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007704 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007705 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007706 soname_spec='${libname}${release}${shared_ext}$major'
7707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007708 shlibpath_var=LD_LIBRARY_PATH
7709 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7710 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7711 ;;
7712
7713sco3.2v5*)
7714 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007715 soname_spec='${libname}${release}${shared_ext}$major'
7716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007717 shlibpath_var=LD_LIBRARY_PATH
7718 ;;
7719
7720solaris*)
7721 version_type=linux
7722 need_lib_prefix=no
7723 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7725 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007726 shlibpath_var=LD_LIBRARY_PATH
7727 shlibpath_overrides_runpath=yes
7728 hardcode_into_libs=yes
7729 # ldd complains unless libraries are executable
7730 postinstall_cmds='chmod +x $lib'
7731 ;;
7732
7733sunos4*)
7734 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007736 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7737 shlibpath_var=LD_LIBRARY_PATH
7738 shlibpath_overrides_runpath=yes
7739 if test "$with_gnu_ld" = yes; then
7740 need_lib_prefix=no
7741 fi
7742 need_version=yes
7743 ;;
7744
7745sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7746 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7748 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007749 shlibpath_var=LD_LIBRARY_PATH
7750 case $host_vendor in
7751 sni)
7752 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007753 need_lib_prefix=no
7754 export_dynamic_flag_spec='${wl}-Blargedynsym'
7755 runpath_var=LD_RUN_PATH
7756 ;;
7757 siemens)
7758 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007759 ;;
7760 motorola)
7761 need_lib_prefix=no
7762 need_version=no
7763 shlibpath_overrides_runpath=no
7764 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7765 ;;
7766 esac
7767 ;;
7768
John Criswell7a73b802003-06-30 21:59:07 +00007769sysv4*MP*)
7770 if test -d /usr/nec ;then
7771 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007772 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7773 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007774 shlibpath_var=LD_LIBRARY_PATH
7775 fi
7776 ;;
7777
John Criswell47fdd832003-07-14 16:52:07 +00007778uts4*)
7779 version_type=linux
7780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7781 soname_spec='${libname}${release}${shared_ext}$major'
7782 shlibpath_var=LD_LIBRARY_PATH
7783 ;;
7784
John Criswell7a73b802003-06-30 21:59:07 +00007785*)
7786 dynamic_linker=no
7787 ;;
7788esac
7789echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7790echo "${ECHO_T}$dynamic_linker" >&6
7791test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007792
Reid Spencer9751dbf2004-09-07 18:04:45 +00007793echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7794echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7795hardcode_action=
7796if test -n "$hardcode_libdir_flag_spec" || \
7797 test -n "$runpath_var " || \
7798 test "X$hardcode_automatic"="Xyes" ; then
7799
7800 # We can hardcode non-existant directories.
7801 if test "$hardcode_direct" != no &&
7802 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7803 # have to relink, otherwise we might link with an installed library
7804 # when we should be linking with a yet-to-be-installed one
7805 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7806 test "$hardcode_minus_L" != no; then
7807 # Linking always hardcodes the temporary library directory.
7808 hardcode_action=relink
7809 else
7810 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7811 hardcode_action=immediate
7812 fi
7813else
7814 # We cannot hardcode anything, or else we can only hardcode existing
7815 # directories.
7816 hardcode_action=unsupported
7817fi
7818echo "$as_me:$LINENO: result: $hardcode_action" >&5
7819echo "${ECHO_T}$hardcode_action" >&6
7820
7821if test "$hardcode_action" = relink; then
7822 # Fast installation is not supported
7823 enable_fast_install=no
7824elif test "$shlibpath_overrides_runpath" = yes ||
7825 test "$enable_shared" = no; then
7826 # Fast installation is not necessary
7827 enable_fast_install=needless
7828fi
7829
7830striplib=
7831old_striplib=
7832echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7833echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7834if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7835 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7836 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7837 echo "$as_me:$LINENO: result: yes" >&5
7838echo "${ECHO_T}yes" >&6
7839else
7840# FIXME - insert some real tests, host_os isn't really good enough
7841 case $host_os in
7842 darwin*)
7843 if test -n "$STRIP" ; then
7844 striplib="$STRIP -x"
7845 echo "$as_me:$LINENO: result: yes" >&5
7846echo "${ECHO_T}yes" >&6
7847 else
7848 echo "$as_me:$LINENO: result: no" >&5
7849echo "${ECHO_T}no" >&6
7850fi
7851 ;;
7852 *)
7853 echo "$as_me:$LINENO: result: no" >&5
7854echo "${ECHO_T}no" >&6
7855 ;;
7856 esac
7857fi
7858
John Criswell7a73b802003-06-30 21:59:07 +00007859if test "x$enable_dlopen" != xyes; then
7860 enable_dlopen=unknown
7861 enable_dlopen_self=unknown
7862 enable_dlopen_self_static=unknown
7863else
7864 lt_cv_dlopen=no
7865 lt_cv_dlopen_libs=
7866
7867 case $host_os in
7868 beos*)
7869 lt_cv_dlopen="load_add_on"
7870 lt_cv_dlopen_libs=
7871 lt_cv_dlopen_self=yes
7872 ;;
7873
John Criswell47fdd832003-07-14 16:52:07 +00007874 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007875 lt_cv_dlopen="LoadLibrary"
7876 lt_cv_dlopen_libs=
7877 ;;
7878
John Criswell47fdd832003-07-14 16:52:07 +00007879 cygwin*)
7880 lt_cv_dlopen="dlopen"
7881 lt_cv_dlopen_libs=
7882 ;;
7883
7884 darwin*)
7885 # if libdl is installed we need to link against it
7886 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7887echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7888if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7889 echo $ECHO_N "(cached) $ECHO_C" >&6
7890else
7891 ac_check_lib_save_LIBS=$LIBS
7892LIBS="-ldl $LIBS"
7893cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00007894/* confdefs.h. */
7895_ACEOF
7896cat confdefs.h >>conftest.$ac_ext
7897cat >>conftest.$ac_ext <<_ACEOF
7898/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00007899
7900/* Override any gcc2 internal prototype to avoid an error. */
7901#ifdef __cplusplus
7902extern "C"
7903#endif
7904/* We use char because int might match the return type of a gcc2
7905 builtin and then its argument prototype would still apply. */
7906char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00007907int
7908main ()
7909{
7910dlopen ();
7911 ;
7912 return 0;
7913}
7914_ACEOF
7915rm -f conftest.$ac_objext conftest$ac_exeext
7916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00007917 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00007918 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00007919 grep -v '^ *+' conftest.er1 >conftest.err
7920 rm -f conftest.er1
7921 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00007922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00007924 { ac_try='test -z "$ac_c_werror_flag"
7925 || test ! -s conftest.err'
7926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7927 (eval $ac_try) 2>&5
7928 ac_status=$?
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }; } &&
7931 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00007932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7933 (eval $ac_try) 2>&5
7934 ac_status=$?
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); }; }; then
7937 ac_cv_lib_dl_dlopen=yes
7938else
7939 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007940sed 's/^/| /' conftest.$ac_ext >&5
7941
John Criswell47fdd832003-07-14 16:52:07 +00007942ac_cv_lib_dl_dlopen=no
7943fi
Reid Spencer17041682004-09-05 17:48:32 +00007944rm -f conftest.err conftest.$ac_objext \
7945 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00007946LIBS=$ac_check_lib_save_LIBS
7947fi
7948echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7949echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7950if test $ac_cv_lib_dl_dlopen = yes; then
7951 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7952else
7953
7954 lt_cv_dlopen="dyld"
7955 lt_cv_dlopen_libs=
7956 lt_cv_dlopen_self=yes
7957
7958fi
7959
7960 ;;
7961
John Criswell7a73b802003-06-30 21:59:07 +00007962 *)
7963 echo "$as_me:$LINENO: checking for shl_load" >&5
7964echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7965if test "${ac_cv_func_shl_load+set}" = set; then
7966 echo $ECHO_N "(cached) $ECHO_C" >&6
7967else
7968 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00007969/* confdefs.h. */
7970_ACEOF
7971cat confdefs.h >>conftest.$ac_ext
7972cat >>conftest.$ac_ext <<_ACEOF
7973/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +00007974/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7976#define shl_load innocuous_shl_load
7977
John Criswell7a73b802003-06-30 21:59:07 +00007978/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00007979 which can conflict with char shl_load (); below.
7980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7981 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +00007982
John Criswell0c38eaf2003-09-10 15:17:25 +00007983#ifdef __STDC__
7984# include <limits.h>
7985#else
7986# include <assert.h>
7987#endif
Reid Spencer17041682004-09-05 17:48:32 +00007988
7989#undef shl_load
7990
John Criswell7a73b802003-06-30 21:59:07 +00007991/* Override any gcc2 internal prototype to avoid an error. */
7992#ifdef __cplusplus
7993extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00007994{
John Criswell7a73b802003-06-30 21:59:07 +00007995#endif
7996/* We use char because int might match the return type of a gcc2
7997 builtin and then its argument prototype would still apply. */
7998char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007999/* The GNU C library defines this for functions which it implements
8000 to always fail with ENOSYS. Some functions are actually named
8001 something starting with __ and the normal name is an alias. */
8002#if defined (__stub_shl_load) || defined (__stub___shl_load)
8003choke me
8004#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008005char (*f) () = shl_load;
8006#endif
8007#ifdef __cplusplus
8008}
John Criswell7a73b802003-06-30 21:59:07 +00008009#endif
8010
John Criswell0c38eaf2003-09-10 15:17:25 +00008011int
8012main ()
8013{
8014return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008015 ;
8016 return 0;
8017}
8018_ACEOF
8019rm -f conftest.$ac_objext conftest$ac_exeext
8020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00008021 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008022 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00008023 grep -v '^ *+' conftest.er1 >conftest.err
8024 rm -f conftest.er1
8025 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00008028 { ac_try='test -z "$ac_c_werror_flag"
8029 || test ! -s conftest.err'
8030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8031 (eval $ac_try) 2>&5
8032 ac_status=$?
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); }; } &&
8035 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037 (eval $ac_try) 2>&5
8038 ac_status=$?
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; }; then
8041 ac_cv_func_shl_load=yes
8042else
8043 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008044sed 's/^/| /' conftest.$ac_ext >&5
8045
John Criswell7a73b802003-06-30 21:59:07 +00008046ac_cv_func_shl_load=no
8047fi
Reid Spencer17041682004-09-05 17:48:32 +00008048rm -f conftest.err conftest.$ac_objext \
8049 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008050fi
8051echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8052echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8053if test $ac_cv_func_shl_load = yes; then
8054 lt_cv_dlopen="shl_load"
8055else
8056 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8057echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8058if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8060else
8061 ac_check_lib_save_LIBS=$LIBS
8062LIBS="-ldld $LIBS"
8063cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008064/* confdefs.h. */
8065_ACEOF
8066cat confdefs.h >>conftest.$ac_ext
8067cat >>conftest.$ac_ext <<_ACEOF
8068/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008069
8070/* Override any gcc2 internal prototype to avoid an error. */
8071#ifdef __cplusplus
8072extern "C"
8073#endif
8074/* We use char because int might match the return type of a gcc2
8075 builtin and then its argument prototype would still apply. */
8076char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008077int
8078main ()
8079{
8080shl_load ();
8081 ;
8082 return 0;
8083}
8084_ACEOF
8085rm -f conftest.$ac_objext conftest$ac_exeext
8086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00008087 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008088 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00008089 grep -v '^ *+' conftest.er1 >conftest.err
8090 rm -f conftest.er1
8091 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00008094 { ac_try='test -z "$ac_c_werror_flag"
8095 || test ! -s conftest.err'
8096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097 (eval $ac_try) 2>&5
8098 ac_status=$?
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); }; } &&
8101 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8103 (eval $ac_try) 2>&5
8104 ac_status=$?
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); }; }; then
8107 ac_cv_lib_dld_shl_load=yes
8108else
8109 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008110sed 's/^/| /' conftest.$ac_ext >&5
8111
John Criswell7a73b802003-06-30 21:59:07 +00008112ac_cv_lib_dld_shl_load=no
8113fi
Reid Spencer17041682004-09-05 17:48:32 +00008114rm -f conftest.err conftest.$ac_objext \
8115 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008116LIBS=$ac_check_lib_save_LIBS
8117fi
8118echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8119echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8120if test $ac_cv_lib_dld_shl_load = yes; then
8121 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8122else
8123 echo "$as_me:$LINENO: checking for dlopen" >&5
8124echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8125if test "${ac_cv_func_dlopen+set}" = set; then
8126 echo $ECHO_N "(cached) $ECHO_C" >&6
8127else
8128 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008129/* confdefs.h. */
8130_ACEOF
8131cat confdefs.h >>conftest.$ac_ext
8132cat >>conftest.$ac_ext <<_ACEOF
8133/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +00008134/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8136#define dlopen innocuous_dlopen
8137
John Criswell7a73b802003-06-30 21:59:07 +00008138/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008139 which can conflict with char dlopen (); below.
8140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8141 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +00008142
John Criswell0c38eaf2003-09-10 15:17:25 +00008143#ifdef __STDC__
8144# include <limits.h>
8145#else
8146# include <assert.h>
8147#endif
Reid Spencer17041682004-09-05 17:48:32 +00008148
8149#undef dlopen
8150
John Criswell7a73b802003-06-30 21:59:07 +00008151/* Override any gcc2 internal prototype to avoid an error. */
8152#ifdef __cplusplus
8153extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008154{
John Criswell7a73b802003-06-30 21:59:07 +00008155#endif
8156/* We use char because int might match the return type of a gcc2
8157 builtin and then its argument prototype would still apply. */
8158char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008159/* The GNU C library defines this for functions which it implements
8160 to always fail with ENOSYS. Some functions are actually named
8161 something starting with __ and the normal name is an alias. */
8162#if defined (__stub_dlopen) || defined (__stub___dlopen)
8163choke me
8164#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008165char (*f) () = dlopen;
8166#endif
8167#ifdef __cplusplus
8168}
John Criswell7a73b802003-06-30 21:59:07 +00008169#endif
8170
John Criswell0c38eaf2003-09-10 15:17:25 +00008171int
8172main ()
8173{
8174return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008175 ;
8176 return 0;
8177}
8178_ACEOF
8179rm -f conftest.$ac_objext conftest$ac_exeext
8180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00008181 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008182 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00008183 grep -v '^ *+' conftest.er1 >conftest.err
8184 rm -f conftest.er1
8185 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00008188 { ac_try='test -z "$ac_c_werror_flag"
8189 || test ! -s conftest.err'
8190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191 (eval $ac_try) 2>&5
8192 ac_status=$?
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); }; } &&
8195 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197 (eval $ac_try) 2>&5
8198 ac_status=$?
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); }; }; then
8201 ac_cv_func_dlopen=yes
8202else
8203 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008204sed 's/^/| /' conftest.$ac_ext >&5
8205
John Criswell7a73b802003-06-30 21:59:07 +00008206ac_cv_func_dlopen=no
8207fi
Reid Spencer17041682004-09-05 17:48:32 +00008208rm -f conftest.err conftest.$ac_objext \
8209 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008210fi
8211echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8212echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8213if test $ac_cv_func_dlopen = yes; then
8214 lt_cv_dlopen="dlopen"
8215else
8216 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8217echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8218if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8220else
8221 ac_check_lib_save_LIBS=$LIBS
8222LIBS="-ldl $LIBS"
8223cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008224/* confdefs.h. */
8225_ACEOF
8226cat confdefs.h >>conftest.$ac_ext
8227cat >>conftest.$ac_ext <<_ACEOF
8228/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008229
8230/* Override any gcc2 internal prototype to avoid an error. */
8231#ifdef __cplusplus
8232extern "C"
8233#endif
8234/* We use char because int might match the return type of a gcc2
8235 builtin and then its argument prototype would still apply. */
8236char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008237int
8238main ()
8239{
8240dlopen ();
8241 ;
8242 return 0;
8243}
8244_ACEOF
8245rm -f conftest.$ac_objext conftest$ac_exeext
8246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00008247 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008248 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00008249 grep -v '^ *+' conftest.er1 >conftest.err
8250 rm -f conftest.er1
8251 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00008254 { ac_try='test -z "$ac_c_werror_flag"
8255 || test ! -s conftest.err'
8256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257 (eval $ac_try) 2>&5
8258 ac_status=$?
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); }; } &&
8261 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263 (eval $ac_try) 2>&5
8264 ac_status=$?
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); }; }; then
8267 ac_cv_lib_dl_dlopen=yes
8268else
8269 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008270sed 's/^/| /' conftest.$ac_ext >&5
8271
John Criswell7a73b802003-06-30 21:59:07 +00008272ac_cv_lib_dl_dlopen=no
8273fi
Reid Spencer17041682004-09-05 17:48:32 +00008274rm -f conftest.err conftest.$ac_objext \
8275 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008276LIBS=$ac_check_lib_save_LIBS
8277fi
8278echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8279echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8280if test $ac_cv_lib_dl_dlopen = yes; then
8281 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8282else
8283 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8284echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8285if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8287else
8288 ac_check_lib_save_LIBS=$LIBS
8289LIBS="-lsvld $LIBS"
8290cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008291/* confdefs.h. */
8292_ACEOF
8293cat confdefs.h >>conftest.$ac_ext
8294cat >>conftest.$ac_ext <<_ACEOF
8295/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008296
8297/* Override any gcc2 internal prototype to avoid an error. */
8298#ifdef __cplusplus
8299extern "C"
8300#endif
8301/* We use char because int might match the return type of a gcc2
8302 builtin and then its argument prototype would still apply. */
8303char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008304int
8305main ()
8306{
8307dlopen ();
8308 ;
8309 return 0;
8310}
8311_ACEOF
8312rm -f conftest.$ac_objext conftest$ac_exeext
8313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00008314 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008315 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00008316 grep -v '^ *+' conftest.er1 >conftest.err
8317 rm -f conftest.er1
8318 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00008321 { ac_try='test -z "$ac_c_werror_flag"
8322 || test ! -s conftest.err'
8323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324 (eval $ac_try) 2>&5
8325 ac_status=$?
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); }; } &&
8328 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 (eval $ac_try) 2>&5
8331 ac_status=$?
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; }; then
8334 ac_cv_lib_svld_dlopen=yes
8335else
8336 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008337sed 's/^/| /' conftest.$ac_ext >&5
8338
John Criswell7a73b802003-06-30 21:59:07 +00008339ac_cv_lib_svld_dlopen=no
8340fi
Reid Spencer17041682004-09-05 17:48:32 +00008341rm -f conftest.err conftest.$ac_objext \
8342 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008343LIBS=$ac_check_lib_save_LIBS
8344fi
8345echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8346echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8347if test $ac_cv_lib_svld_dlopen = yes; then
8348 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8349else
8350 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8351echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8352if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8354else
8355 ac_check_lib_save_LIBS=$LIBS
8356LIBS="-ldld $LIBS"
8357cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008358/* confdefs.h. */
8359_ACEOF
8360cat confdefs.h >>conftest.$ac_ext
8361cat >>conftest.$ac_ext <<_ACEOF
8362/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008363
8364/* Override any gcc2 internal prototype to avoid an error. */
8365#ifdef __cplusplus
8366extern "C"
8367#endif
8368/* We use char because int might match the return type of a gcc2
8369 builtin and then its argument prototype would still apply. */
8370char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008371int
8372main ()
8373{
8374dld_link ();
8375 ;
8376 return 0;
8377}
8378_ACEOF
8379rm -f conftest.$ac_objext conftest$ac_exeext
8380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00008381 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008382 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00008383 grep -v '^ *+' conftest.er1 >conftest.err
8384 rm -f conftest.er1
8385 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00008388 { ac_try='test -z "$ac_c_werror_flag"
8389 || test ! -s conftest.err'
8390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391 (eval $ac_try) 2>&5
8392 ac_status=$?
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); }; } &&
8395 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 (eval $ac_try) 2>&5
8398 ac_status=$?
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; }; then
8401 ac_cv_lib_dld_dld_link=yes
8402else
8403 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008404sed 's/^/| /' conftest.$ac_ext >&5
8405
John Criswell7a73b802003-06-30 21:59:07 +00008406ac_cv_lib_dld_dld_link=no
8407fi
Reid Spencer17041682004-09-05 17:48:32 +00008408rm -f conftest.err conftest.$ac_objext \
8409 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008410LIBS=$ac_check_lib_save_LIBS
8411fi
8412echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8413echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8414if test $ac_cv_lib_dld_dld_link = yes; then
8415 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8416fi
8417
8418
8419fi
8420
8421
8422fi
8423
8424
8425fi
8426
8427
8428fi
8429
8430
8431fi
8432
8433 ;;
8434 esac
8435
8436 if test "x$lt_cv_dlopen" != xno; then
8437 enable_dlopen=yes
8438 else
8439 enable_dlopen=no
8440 fi
8441
8442 case $lt_cv_dlopen in
8443 dlopen)
8444 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008445 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008446
8447 save_LDFLAGS="$LDFLAGS"
8448 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8449
8450 save_LIBS="$LIBS"
8451 LIBS="$lt_cv_dlopen_libs $LIBS"
8452
8453 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8454echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8455if test "${lt_cv_dlopen_self+set}" = set; then
8456 echo $ECHO_N "(cached) $ECHO_C" >&6
8457else
8458 if test "$cross_compiling" = yes; then :
8459 lt_cv_dlopen_self=cross
8460else
John Criswell47fdd832003-07-14 16:52:07 +00008461 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008462 lt_status=$lt_dlunknown
8463 cat > conftest.$ac_ext <<EOF
Reid Spencer9751dbf2004-09-07 18:04:45 +00008464#line 8464 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008465#include "confdefs.h"
8466
8467#if HAVE_DLFCN_H
8468#include <dlfcn.h>
8469#endif
8470
8471#include <stdio.h>
8472
8473#ifdef RTLD_GLOBAL
8474# define LT_DLGLOBAL RTLD_GLOBAL
8475#else
8476# ifdef DL_GLOBAL
8477# define LT_DLGLOBAL DL_GLOBAL
8478# else
8479# define LT_DLGLOBAL 0
8480# endif
8481#endif
8482
8483/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8484 find out it does not work in some platform. */
8485#ifndef LT_DLLAZY_OR_NOW
8486# ifdef RTLD_LAZY
8487# define LT_DLLAZY_OR_NOW RTLD_LAZY
8488# else
8489# ifdef DL_LAZY
8490# define LT_DLLAZY_OR_NOW DL_LAZY
8491# else
8492# ifdef RTLD_NOW
8493# define LT_DLLAZY_OR_NOW RTLD_NOW
8494# else
8495# ifdef DL_NOW
8496# define LT_DLLAZY_OR_NOW DL_NOW
8497# else
8498# define LT_DLLAZY_OR_NOW 0
8499# endif
8500# endif
8501# endif
8502# endif
8503#endif
8504
8505#ifdef __cplusplus
8506extern "C" void exit (int);
8507#endif
8508
8509void fnord() { int i=42;}
8510int main ()
8511{
8512 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8513 int status = $lt_dlunknown;
8514
8515 if (self)
8516 {
8517 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8518 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8519 /* dlclose (self); */
8520 }
8521
8522 exit (status);
8523}
8524EOF
8525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8526 (eval $ac_link) 2>&5
8527 ac_status=$?
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8530 (./conftest; exit; ) 2>/dev/null
8531 lt_status=$?
8532 case x$lt_status in
8533 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8534 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8535 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8536 esac
8537 else :
8538 # compilation failed
8539 lt_cv_dlopen_self=no
8540 fi
8541fi
8542rm -fr conftest*
8543
8544
8545fi
8546echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8547echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8548
8549 if test "x$lt_cv_dlopen_self" = xyes; then
8550 LDFLAGS="$LDFLAGS $link_static_flag"
8551 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8552echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8553if test "${lt_cv_dlopen_self_static+set}" = set; then
8554 echo $ECHO_N "(cached) $ECHO_C" >&6
8555else
8556 if test "$cross_compiling" = yes; then :
8557 lt_cv_dlopen_self_static=cross
8558else
John Criswell47fdd832003-07-14 16:52:07 +00008559 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008560 lt_status=$lt_dlunknown
8561 cat > conftest.$ac_ext <<EOF
Reid Spencer9751dbf2004-09-07 18:04:45 +00008562#line 8562 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008563#include "confdefs.h"
8564
8565#if HAVE_DLFCN_H
8566#include <dlfcn.h>
8567#endif
8568
8569#include <stdio.h>
8570
8571#ifdef RTLD_GLOBAL
8572# define LT_DLGLOBAL RTLD_GLOBAL
8573#else
8574# ifdef DL_GLOBAL
8575# define LT_DLGLOBAL DL_GLOBAL
8576# else
8577# define LT_DLGLOBAL 0
8578# endif
8579#endif
8580
8581/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8582 find out it does not work in some platform. */
8583#ifndef LT_DLLAZY_OR_NOW
8584# ifdef RTLD_LAZY
8585# define LT_DLLAZY_OR_NOW RTLD_LAZY
8586# else
8587# ifdef DL_LAZY
8588# define LT_DLLAZY_OR_NOW DL_LAZY
8589# else
8590# ifdef RTLD_NOW
8591# define LT_DLLAZY_OR_NOW RTLD_NOW
8592# else
8593# ifdef DL_NOW
8594# define LT_DLLAZY_OR_NOW DL_NOW
8595# else
8596# define LT_DLLAZY_OR_NOW 0
8597# endif
8598# endif
8599# endif
8600# endif
8601#endif
8602
8603#ifdef __cplusplus
8604extern "C" void exit (int);
8605#endif
8606
8607void fnord() { int i=42;}
8608int main ()
8609{
8610 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8611 int status = $lt_dlunknown;
8612
8613 if (self)
8614 {
8615 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8616 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8617 /* dlclose (self); */
8618 }
8619
8620 exit (status);
8621}
8622EOF
8623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8624 (eval $ac_link) 2>&5
8625 ac_status=$?
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8628 (./conftest; exit; ) 2>/dev/null
8629 lt_status=$?
8630 case x$lt_status in
8631 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8632 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8633 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8634 esac
8635 else :
8636 # compilation failed
8637 lt_cv_dlopen_self_static=no
8638 fi
8639fi
8640rm -fr conftest*
8641
8642
8643fi
8644echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8645echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8646 fi
8647
8648 CPPFLAGS="$save_CPPFLAGS"
8649 LDFLAGS="$save_LDFLAGS"
8650 LIBS="$save_LIBS"
8651 ;;
8652 esac
8653
8654 case $lt_cv_dlopen_self in
8655 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8656 *) enable_dlopen_self=unknown ;;
8657 esac
8658
8659 case $lt_cv_dlopen_self_static in
8660 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8661 *) enable_dlopen_self_static=unknown ;;
8662 esac
8663fi
8664
8665
John Criswell47fdd832003-07-14 16:52:07 +00008666# Report which librarie types wil actually be built
8667echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8668echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8669echo "$as_me:$LINENO: result: $can_build_shared" >&5
8670echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008671
John Criswell47fdd832003-07-14 16:52:07 +00008672echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8673echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8674test "$can_build_shared" = "no" && enable_shared=no
8675
8676# On AIX, shared libraries and static libraries use the same namespace, and
8677# are all built from PIC.
8678case "$host_os" in
8679aix3*)
8680 test "$enable_shared" = yes && enable_static=no
8681 if test -n "$RANLIB"; then
8682 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8683 postinstall_cmds='$RANLIB $lib'
8684 fi
8685 ;;
8686
8687aix4*)
8688 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8689 test "$enable_shared" = yes && enable_static=no
8690 fi
8691 ;;
8692 darwin* | rhapsody*)
Reid Spencer9751dbf2004-09-07 18:04:45 +00008693 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00008694 archive_cmds_need_lc=no
8695 case "$host_os" in
8696 rhapsody* | darwin1.[012])
8697 allow_undefined_flag='-undefined suppress'
8698 ;;
8699 *) # Darwin 1.3 on
Reid Spencer9751dbf2004-09-07 18:04:45 +00008700 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8701 allow_undefined_flag='-flat_namespace -undefined suppress'
8702 else
8703 case ${MACOSX_DEPLOYMENT_TARGET} in
8704 10.[012])
8705 allow_undefined_flag='-flat_namespace -undefined suppress'
8706 ;;
8707 10.*)
8708 allow_undefined_flag='-undefined dynamic_lookup'
8709 ;;
8710 esac
8711 fi
John Criswell47fdd832003-07-14 16:52:07 +00008712 ;;
8713 esac
Reid Spencer9751dbf2004-09-07 18:04:45 +00008714 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +00008715 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
Reid Spencer9751dbf2004-09-07 18:04:45 +00008716 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +00008717 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer9751dbf2004-09-07 18:04:45 +00008718 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}'
8719 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}'
John Criswell47fdd832003-07-14 16:52:07 +00008720 hardcode_direct=no
8721 hardcode_automatic=yes
8722 hardcode_shlibpath_var=unsupported
8723 whole_archive_flag_spec='-all_load $convenience'
8724 link_all_deplibs=yes
Reid Spencer9751dbf2004-09-07 18:04:45 +00008725 else
8726 ld_shlibs=no
8727 fi
John Criswell7a73b802003-06-30 21:59:07 +00008728 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008729esac
8730echo "$as_me:$LINENO: result: $enable_shared" >&5
8731echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008732
John Criswell47fdd832003-07-14 16:52:07 +00008733echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8734echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8735# Make sure either enable_shared or enable_static is yes.
8736test "$enable_shared" = yes || enable_static=yes
8737echo "$as_me:$LINENO: result: $enable_static" >&5
8738echo "${ECHO_T}$enable_static" >&6
8739
8740# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008741# libtool distribution, otherwise you forgot to ship ltmain.sh
8742# with your package, and you will get complaints that there are
8743# no rules to generate ltmain.sh.
8744if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008745 # See if we are running on zsh, and set the options which allow our commands through
8746 # without removal of \ escapes.
8747 if test -n "${ZSH_VERSION+set}" ; then
8748 setopt NO_GLOB_SUBST
8749 fi
John Criswell7a73b802003-06-30 21:59:07 +00008750 # Now quote all the things that may contain metacharacters while being
8751 # careful not to overquote the AC_SUBSTed values. We take copies of the
8752 # variables and quote the copies for generation of the libtool script.
Reid Spencer9751dbf2004-09-07 18:04:45 +00008753 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +00008754 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8755 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8756 deplibs_check_method reload_flag reload_cmds need_locks \
8757 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8758 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008759 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008760 old_postinstall_cmds old_postuninstall_cmds \
8761 compiler \
8762 CC \
8763 LD \
8764 lt_prog_compiler_wl \
8765 lt_prog_compiler_pic \
8766 lt_prog_compiler_static \
8767 lt_prog_compiler_no_builtin_flag \
8768 export_dynamic_flag_spec \
8769 thread_safe_flag_spec \
8770 whole_archive_flag_spec \
8771 enable_shared_with_static_runtimes \
8772 old_archive_cmds \
8773 old_archive_from_new_cmds \
8774 predep_objects \
8775 postdep_objects \
8776 predeps \
8777 postdeps \
8778 compiler_lib_search_path \
8779 archive_cmds \
8780 archive_expsym_cmds \
8781 postinstall_cmds \
8782 postuninstall_cmds \
8783 old_archive_from_expsyms_cmds \
8784 allow_undefined_flag \
8785 no_undefined_flag \
8786 export_symbols_cmds \
8787 hardcode_libdir_flag_spec \
8788 hardcode_libdir_flag_spec_ld \
8789 hardcode_libdir_separator \
8790 hardcode_automatic \
8791 module_cmds \
8792 module_expsym_cmds \
8793 lt_cv_prog_compiler_c_o \
8794 exclude_expsyms \
8795 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008796
8797 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008798 old_archive_cmds | \
8799 old_archive_from_new_cmds | \
8800 archive_cmds | \
8801 archive_expsym_cmds | \
8802 module_cmds | \
8803 module_expsym_cmds | \
8804 old_archive_from_expsyms_cmds | \
8805 export_symbols_cmds | \
8806 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008807 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008808 old_postinstall_cmds | old_postuninstall_cmds | \
8809 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008810 # Double-quote double-evaled strings.
8811 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8812 ;;
8813 *)
8814 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8815 ;;
8816 esac
8817 done
8818
John Criswell47fdd832003-07-14 16:52:07 +00008819 case $lt_echo in
8820 *'\$0 --fallback-echo"')
8821 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8822 ;;
8823 esac
8824
8825cfgfile="${ofile}T"
8826 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8827 $rm -f "$cfgfile"
8828 { echo "$as_me:$LINENO: creating $ofile" >&5
8829echo "$as_me: creating $ofile" >&6;}
8830
8831 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008832#! $SHELL
8833
John Criswell47fdd832003-07-14 16:52:07 +00008834# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008835# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8836# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8837#
John Criswell47fdd832003-07-14 16:52:07 +00008838# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8839# Free Software Foundation, Inc.
8840#
8841# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008842# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8843#
8844# This program is free software; you can redistribute it and/or modify
8845# it under the terms of the GNU General Public License as published by
8846# the Free Software Foundation; either version 2 of the License, or
8847# (at your option) any later version.
8848#
8849# This program is distributed in the hope that it will be useful, but
8850# WITHOUT ANY WARRANTY; without even the implied warranty of
8851# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8852# General Public License for more details.
8853#
8854# You should have received a copy of the GNU General Public License
8855# along with this program; if not, write to the Free Software
8856# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8857#
8858# As a special exception to the GNU General Public License, if you
8859# distribute this file as part of a program that contains a
8860# configuration script generated by Autoconf, you may include it under
8861# the same distribution terms that you use for the rest of that program.
8862
John Criswell47fdd832003-07-14 16:52:07 +00008863# A sed program that does not truncate output.
8864SED=$lt_SED
8865
John Criswell7a73b802003-06-30 21:59:07 +00008866# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008867Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008868
8869# The HP-UX ksh and POSIX shell print the target directory to stdout
8870# if CDPATH is set.
8871if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8872
John Criswell47fdd832003-07-14 16:52:07 +00008873# The names of the tagged configurations supported by this script.
8874available_tags=
8875
John Criswell7a73b802003-06-30 21:59:07 +00008876# ### BEGIN LIBTOOL CONFIG
8877
8878# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8879
8880# Shell to use when invoking shell scripts.
8881SHELL=$lt_SHELL
8882
8883# Whether or not to build shared libraries.
8884build_libtool_libs=$enable_shared
8885
8886# Whether or not to build static libraries.
8887build_old_libs=$enable_static
8888
8889# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008890build_libtool_need_lc=$archive_cmds_need_lc
8891
8892# Whether or not to disallow shared libs when runtime libs are static
8893allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008894
8895# Whether or not to optimize for fast installation.
8896fast_install=$enable_fast_install
8897
8898# The host system.
8899host_alias=$host_alias
8900host=$host
8901
8902# An echo program that does not interpret backslashes.
8903echo=$lt_echo
8904
8905# The archiver.
8906AR=$lt_AR
8907AR_FLAGS=$lt_AR_FLAGS
8908
John Criswell47fdd832003-07-14 16:52:07 +00008909# A C compiler.
8910LTCC=$lt_LTCC
8911
8912# A language-specific compiler.
8913CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008914
8915# Is the compiler the GNU C compiler?
8916with_gcc=$GCC
8917
John Criswell47fdd832003-07-14 16:52:07 +00008918# An ERE matcher.
8919EGREP=$lt_EGREP
8920
John Criswell7a73b802003-06-30 21:59:07 +00008921# The linker used to build libraries.
8922LD=$lt_LD
8923
8924# Whether we need hard or soft links.
8925LN_S=$lt_LN_S
8926
8927# A BSD-compatible nm program.
8928NM=$lt_NM
8929
8930# A symbol stripping program
Reid Spencer9751dbf2004-09-07 18:04:45 +00008931STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +00008932
8933# Used to examine libraries when file_magic_cmd begins "file"
8934MAGIC_CMD=$MAGIC_CMD
8935
8936# Used on cygwin: DLL creation program.
8937DLLTOOL="$DLLTOOL"
8938
8939# Used on cygwin: object dumper.
8940OBJDUMP="$OBJDUMP"
8941
8942# Used on cygwin: assembler.
8943AS="$AS"
8944
8945# The name of the directory that contains temporary libtool files.
8946objdir=$objdir
8947
8948# How to create reloadable object files.
8949reload_flag=$lt_reload_flag
8950reload_cmds=$lt_reload_cmds
8951
8952# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00008953wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00008954
8955# Object file suffix (normally "o").
8956objext="$ac_objext"
8957
8958# Old archive suffix (normally "a").
8959libext="$libext"
8960
John Criswell47fdd832003-07-14 16:52:07 +00008961# Shared library suffix (normally ".so").
8962shrext='$shrext'
8963
John Criswell7a73b802003-06-30 21:59:07 +00008964# Executable file suffix (normally "").
8965exeext="$exeext"
8966
8967# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00008968pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00008969pic_mode=$pic_mode
8970
John Criswell47fdd832003-07-14 16:52:07 +00008971# What is the maximum length of a command?
8972max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00008973
John Criswell47fdd832003-07-14 16:52:07 +00008974# Does compiler simultaneously support -c and -o options?
8975compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00008976
8977# Must we lock files when doing compilation ?
8978need_locks=$lt_need_locks
8979
8980# Do we need the lib prefix for modules?
8981need_lib_prefix=$need_lib_prefix
8982
8983# Do we need a version for libraries?
8984need_version=$need_version
8985
8986# Whether dlopen is supported.
8987dlopen_support=$enable_dlopen
8988
8989# Whether dlopen of programs is supported.
8990dlopen_self=$enable_dlopen_self
8991
8992# Whether dlopen of statically linked programs is supported.
8993dlopen_self_static=$enable_dlopen_self_static
8994
8995# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00008996link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00008997
8998# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00008999no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009000
9001# Compiler flag to allow reflexive dlopens.
9002export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9003
9004# Compiler flag to generate shared objects directly from archives.
9005whole_archive_flag_spec=$lt_whole_archive_flag_spec
9006
9007# Compiler flag to generate thread-safe objects.
9008thread_safe_flag_spec=$lt_thread_safe_flag_spec
9009
9010# Library versioning type.
9011version_type=$version_type
9012
9013# Format of library name prefix.
9014libname_spec=$lt_libname_spec
9015
9016# List of archive names. First name is the real one, the rest are links.
9017# The last name is the one that the linker finds with -lNAME.
9018library_names_spec=$lt_library_names_spec
9019
9020# The coded name of the library, if different from the real name.
9021soname_spec=$lt_soname_spec
9022
9023# Commands used to build and install an old-style archive.
9024RANLIB=$lt_RANLIB
9025old_archive_cmds=$lt_old_archive_cmds
9026old_postinstall_cmds=$lt_old_postinstall_cmds
9027old_postuninstall_cmds=$lt_old_postuninstall_cmds
9028
9029# Create an old-style archive from a shared archive.
9030old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9031
9032# Create a temporary old-style archive to link instead of a shared archive.
9033old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9034
9035# Commands used to build and install a shared archive.
9036archive_cmds=$lt_archive_cmds
9037archive_expsym_cmds=$lt_archive_expsym_cmds
9038postinstall_cmds=$lt_postinstall_cmds
9039postuninstall_cmds=$lt_postuninstall_cmds
9040
John Criswell47fdd832003-07-14 16:52:07 +00009041# Commands used to build a loadable module (assumed same as above if empty)
9042module_cmds=$lt_module_cmds
9043module_expsym_cmds=$lt_module_expsym_cmds
9044
John Criswell7a73b802003-06-30 21:59:07 +00009045# Commands to strip libraries.
9046old_striplib=$lt_old_striplib
9047striplib=$lt_striplib
9048
John Criswell47fdd832003-07-14 16:52:07 +00009049# Dependencies to place before the objects being linked to create a
9050# shared library.
9051predep_objects=$lt_predep_objects
9052
9053# Dependencies to place after the objects being linked to create a
9054# shared library.
9055postdep_objects=$lt_postdep_objects
9056
9057# Dependencies to place before the objects being linked to create a
9058# shared library.
9059predeps=$lt_predeps
9060
9061# Dependencies to place after the objects being linked to create a
9062# shared library.
9063postdeps=$lt_postdeps
9064
9065# The library search path used internally by the compiler when linking
9066# a shared library.
9067compiler_lib_search_path=$lt_compiler_lib_search_path
9068
John Criswell7a73b802003-06-30 21:59:07 +00009069# Method to check whether dependent libraries are shared objects.
9070deplibs_check_method=$lt_deplibs_check_method
9071
9072# Command to use when deplibs_check_method == file_magic.
9073file_magic_cmd=$lt_file_magic_cmd
9074
9075# Flag that allows shared libraries with undefined symbols to be built.
9076allow_undefined_flag=$lt_allow_undefined_flag
9077
9078# Flag that forces no undefined symbols.
9079no_undefined_flag=$lt_no_undefined_flag
9080
9081# Commands used to finish a libtool library installation in a directory.
9082finish_cmds=$lt_finish_cmds
9083
9084# Same as above, but a single script fragment to be evaled but not shown.
9085finish_eval=$lt_finish_eval
9086
9087# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009088global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009089
9090# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009091global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009092
9093# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009094global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009095
9096# This is the shared library runtime path variable.
9097runpath_var=$runpath_var
9098
9099# This is the shared library path variable.
9100shlibpath_var=$shlibpath_var
9101
9102# Is shlibpath searched before the hard-coded library search path?
9103shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9104
9105# How to hardcode a shared library path into an executable.
9106hardcode_action=$hardcode_action
9107
9108# Whether we should hardcode library paths into libraries.
9109hardcode_into_libs=$hardcode_into_libs
9110
9111# Flag to hardcode \$libdir into a binary during linking.
9112# This must work even if \$libdir does not exist.
9113hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9114
John Criswell47fdd832003-07-14 16:52:07 +00009115# If ld is used when linking, flag to hardcode \$libdir into
9116# a binary during linking. This must work even if \$libdir does
9117# not exist.
9118hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9119
John Criswell7a73b802003-06-30 21:59:07 +00009120# Whether we need a single -rpath flag with a separated argument.
9121hardcode_libdir_separator=$lt_hardcode_libdir_separator
9122
John Criswell47fdd832003-07-14 16:52:07 +00009123# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009124# resulting binary.
9125hardcode_direct=$hardcode_direct
9126
9127# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9128# resulting binary.
9129hardcode_minus_L=$hardcode_minus_L
9130
9131# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9132# the resulting binary.
9133hardcode_shlibpath_var=$hardcode_shlibpath_var
9134
John Criswell47fdd832003-07-14 16:52:07 +00009135# Set to yes if building a shared library automatically hardcodes DIR into the library
9136# and all subsequent libraries and executables linked against it.
9137hardcode_automatic=$hardcode_automatic
9138
John Criswell7a73b802003-06-30 21:59:07 +00009139# Variables whose values should be saved in libtool wrapper scripts and
9140# restored at relink time.
9141variables_saved_for_relink="$variables_saved_for_relink"
9142
9143# Whether libtool must link a program against all its dependency libraries.
9144link_all_deplibs=$link_all_deplibs
9145
9146# Compile-time system search path for libraries
9147sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9148
9149# Run-time system search path for libraries
9150sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9151
9152# Fix the shell variable \$srcfile for the compiler.
9153fix_srcfile_path="$fix_srcfile_path"
9154
9155# Set to yes if exported symbols are required.
9156always_export_symbols=$always_export_symbols
9157
9158# The commands to list exported symbols.
9159export_symbols_cmds=$lt_export_symbols_cmds
9160
9161# The commands to extract the exported symbol list from a shared archive.
9162extract_expsyms_cmds=$lt_extract_expsyms_cmds
9163
9164# Symbols that should not be listed in the preloaded symbols.
9165exclude_expsyms=$lt_exclude_expsyms
9166
9167# Symbols that must always be exported.
9168include_expsyms=$lt_include_expsyms
9169
9170# ### END LIBTOOL CONFIG
9171
9172__EOF__
9173
John Criswell47fdd832003-07-14 16:52:07 +00009174
John Criswell7a73b802003-06-30 21:59:07 +00009175 case $host_os in
9176 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009177 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009178
9179# AIX sometimes has problems with the GCC collect2 program. For some
9180# reason, if we set the COLLECT_NAMES environment variable, the problems
9181# vanish in a puff of smoke.
9182if test "X${COLLECT_NAMES+set}" != Xset; then
9183 COLLECT_NAMES=
9184 export COLLECT_NAMES
9185fi
9186EOF
9187 ;;
9188 esac
9189
John Criswell7a73b802003-06-30 21:59:07 +00009190 # We use sed instead of cat because bash on DJGPP gets confused if
9191 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9192 # text mode, it properly converts lines to CR/LF. This bash problem
9193 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009194 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009195
John Criswell47fdd832003-07-14 16:52:07 +00009196 mv -f "$cfgfile" "$ofile" || \
9197 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009198 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009199
9200else
9201 # If there is no Makefile yet, we rely on a make rule to execute
9202 # `config.status --recheck' to rerun these tests and create the
9203 # libtool script then.
9204 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009205fi
John Criswell7a73b802003-06-30 21:59:07 +00009206
9207
John Criswell47fdd832003-07-14 16:52:07 +00009208ac_ext=c
9209ac_cpp='$CPP $CPPFLAGS'
9210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9212ac_compiler_gnu=$ac_cv_c_compiler_gnu
9213
9214CC="$lt_save_CC"
9215
9216
9217# Check whether --with-tags or --without-tags was given.
9218if test "${with_tags+set}" = set; then
9219 withval="$with_tags"
9220 tagnames="$withval"
9221fi;
9222
9223if test -f "$ltmain" && test -n "$tagnames"; then
9224 if test ! -f "${ofile}"; then
9225 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9226echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9227 fi
9228
9229 if test -z "$LTCC"; then
9230 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9231 if test -z "$LTCC"; then
9232 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9233echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9234 else
9235 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9236echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9237 fi
9238 fi
9239
9240 # Extract list of available tagged configurations in $ofile.
9241 # Note that this assumes the entire list is on one line.
9242 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9243
9244 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9245 for tagname in $tagnames; do
9246 IFS="$lt_save_ifs"
9247 # Check whether tagname contains only valid characters
9248 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9249 "") ;;
9250 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9251echo "$as_me: error: invalid tag name: $tagname" >&2;}
9252 { (exit 1); exit 1; }; }
9253 ;;
9254 esac
9255
9256 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9257 then
9258 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9259echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9260 { (exit 1); exit 1; }; }
9261 fi
9262
9263 # Update the list of available tags.
9264 if test -n "$tagname"; then
9265 echo appending configuration tag \"$tagname\" to $ofile
9266
9267 case $tagname in
9268 CXX)
9269 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9270 ac_ext=cc
9271ac_cpp='$CXXCPP $CPPFLAGS'
9272ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9273ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9274ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9275
9276
9277
9278
9279archive_cmds_need_lc_CXX=no
9280allow_undefined_flag_CXX=
9281always_export_symbols_CXX=no
9282archive_expsym_cmds_CXX=
9283export_dynamic_flag_spec_CXX=
9284hardcode_direct_CXX=no
9285hardcode_libdir_flag_spec_CXX=
9286hardcode_libdir_flag_spec_ld_CXX=
9287hardcode_libdir_separator_CXX=
9288hardcode_minus_L_CXX=no
9289hardcode_automatic_CXX=no
9290module_cmds_CXX=
9291module_expsym_cmds_CXX=
9292link_all_deplibs_CXX=unknown
9293old_archive_cmds_CXX=$old_archive_cmds
9294no_undefined_flag_CXX=
9295whole_archive_flag_spec_CXX=
9296enable_shared_with_static_runtimes_CXX=no
9297
9298# Dependencies to place before and after the object being linked:
9299predep_objects_CXX=
9300postdep_objects_CXX=
9301predeps_CXX=
9302postdeps_CXX=
9303compiler_lib_search_path_CXX=
9304
9305# Source file extension for C++ test sources.
9306ac_ext=cc
9307
9308# Object file extension for compiled C++ test sources.
9309objext=o
9310objext_CXX=$objext
9311
9312# Code to be used in simple compile tests
9313lt_simple_compile_test_code="int some_variable = 0;\n"
9314
9315# Code to be used in simple link tests
9316lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9317
9318# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9319
9320# If no C compiler was specified, use CC.
9321LTCC=${LTCC-"$CC"}
9322
9323# Allow CC to be a program name with arguments.
9324compiler=$CC
9325
9326
9327# Allow CC to be a program name with arguments.
9328lt_save_CC=$CC
9329lt_save_LD=$LD
9330lt_save_GCC=$GCC
9331GCC=$GXX
9332lt_save_with_gnu_ld=$with_gnu_ld
9333lt_save_path_LD=$lt_cv_path_LD
9334if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9335 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9336else
9337 unset lt_cv_prog_gnu_ld
9338fi
9339if test -n "${lt_cv_path_LDCXX+set}"; then
9340 lt_cv_path_LD=$lt_cv_path_LDCXX
9341else
9342 unset lt_cv_path_LD
9343fi
9344test -z "${LDCXX+set}" || LD=$LDCXX
9345CC=${CXX-"c++"}
9346compiler=$CC
9347compiler_CXX=$CC
9348cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9349
9350# We don't want -fno-exception wen compiling C++ code, so set the
9351# no_builtin_flag separately
9352if test "$GXX" = yes; then
9353 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9354else
9355 lt_prog_compiler_no_builtin_flag_CXX=
9356fi
9357
9358if test "$GXX" = yes; then
9359 # Set up default GNU C++ configuration
9360
9361
9362# Check whether --with-gnu-ld or --without-gnu-ld was given.
9363if test "${with_gnu_ld+set}" = set; then
9364 withval="$with_gnu_ld"
9365 test "$withval" = no || with_gnu_ld=yes
9366else
9367 with_gnu_ld=no
9368fi;
9369ac_prog=ld
9370if test "$GCC" = yes; then
9371 # Check if gcc -print-prog-name=ld gives a path.
9372 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9373echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9374 case $host in
9375 *-*-mingw*)
9376 # gcc leaves a trailing carriage return which upsets mingw
9377 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9378 *)
9379 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9380 esac
9381 case $ac_prog in
9382 # Accept absolute paths.
9383 [\\/]* | ?:[\\/]*)
9384 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer9751dbf2004-09-07 18:04:45 +00009385 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +00009386 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9387 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9388 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9389 done
9390 test -z "$LD" && LD="$ac_prog"
9391 ;;
9392 "")
9393 # If it fails, then pretend we aren't using GCC.
9394 ac_prog=ld
9395 ;;
9396 *)
9397 # If it is relative, then search for the first ld in PATH.
9398 with_gnu_ld=unknown
9399 ;;
9400 esac
9401elif test "$with_gnu_ld" = yes; then
9402 echo "$as_me:$LINENO: checking for GNU ld" >&5
9403echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9404else
9405 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9406echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9407fi
9408if test "${lt_cv_path_LD+set}" = set; then
9409 echo $ECHO_N "(cached) $ECHO_C" >&6
9410else
9411 if test -z "$LD"; then
9412 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9413 for ac_dir in $PATH; do
9414 IFS="$lt_save_ifs"
9415 test -z "$ac_dir" && ac_dir=.
9416 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9417 lt_cv_path_LD="$ac_dir/$ac_prog"
9418 # Check to see if the program is GNU ld. I'd rather use --version,
9419 # but apparently some GNU ld's only accept -v.
9420 # Break only if it was the GNU/non-GNU ld that we prefer.
9421 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9422 *GNU* | *'with BFD'*)
9423 test "$with_gnu_ld" != no && break
9424 ;;
9425 *)
9426 test "$with_gnu_ld" != yes && break
9427 ;;
9428 esac
9429 fi
9430 done
9431 IFS="$lt_save_ifs"
9432else
9433 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9434fi
9435fi
9436
9437LD="$lt_cv_path_LD"
9438if test -n "$LD"; then
9439 echo "$as_me:$LINENO: result: $LD" >&5
9440echo "${ECHO_T}$LD" >&6
9441else
9442 echo "$as_me:$LINENO: result: no" >&5
9443echo "${ECHO_T}no" >&6
9444fi
9445test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9446echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9447 { (exit 1); exit 1; }; }
9448echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9449echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9450if test "${lt_cv_prog_gnu_ld+set}" = set; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9452else
9453 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer9751dbf2004-09-07 18:04:45 +00009454case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +00009455*GNU* | *'with BFD'*)
9456 lt_cv_prog_gnu_ld=yes
9457 ;;
9458*)
9459 lt_cv_prog_gnu_ld=no
9460 ;;
9461esac
9462fi
9463echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9464echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9465with_gnu_ld=$lt_cv_prog_gnu_ld
9466
9467
9468
9469 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9470 # archiving commands below assume that GNU ld is being used.
9471 if test "$with_gnu_ld" = yes; then
9472 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9473 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'
9474
9475 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9476 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9477
9478 # If archive_cmds runs LD, not CC, wlarc should be empty
9479 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9480 # investigate it a little bit more. (MM)
9481 wlarc='${wl}'
9482
9483 # ancient GNU ld didn't support --whole-archive et. al.
9484 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9485 grep 'no-whole-archive' > /dev/null; then
9486 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9487 else
9488 whole_archive_flag_spec_CXX=
9489 fi
9490 else
9491 with_gnu_ld=no
9492 wlarc=
9493
9494 # A generic and very simple default shared library creation
9495 # command for GNU C++ for the case where it uses the native
9496 # linker, instead of GNU ld. If possible, this setting should
9497 # overridden to take advantage of the native linker features on
9498 # the platform it is being used on.
Reid Spencer9751dbf2004-09-07 18:04:45 +00009499 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +00009500 fi
9501
9502 # Commands to make compiler produce verbose output that lists
9503 # what "hidden" libraries, object files and flags are used when
9504 # linking a shared library.
9505 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9506
9507else
9508 GXX=no
9509 with_gnu_ld=no
9510 wlarc=
9511fi
9512
9513# PORTME: fill in a description of your system's C++ link characteristics
9514echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9515echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9516ld_shlibs_CXX=yes
9517case $host_os in
9518 aix3*)
9519 # FIXME: insert proper C++ library support
9520 ld_shlibs_CXX=no
9521 ;;
9522 aix4* | aix5*)
9523 if test "$host_cpu" = ia64; then
9524 # On IA64, the linker does run time linking by default, so we don't
9525 # have to do anything special.
9526 aix_use_runtimelinking=no
9527 exp_sym_flag='-Bexport'
9528 no_entry_flag=""
9529 else
9530 aix_use_runtimelinking=no
9531
9532 # Test if we are trying to use run time linking or normal
9533 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9534 # need to do runtime linking.
9535 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9536 for ld_flag in $LDFLAGS; do
9537 case $ld_flag in
9538 *-brtl*)
9539 aix_use_runtimelinking=yes
9540 break
9541 ;;
9542 esac
9543 done
9544 esac
9545
9546 exp_sym_flag='-bexport'
9547 no_entry_flag='-bnoentry'
9548 fi
9549
9550 # When large executables or shared objects are built, AIX ld can
9551 # have problems creating the table of contents. If linking a library
9552 # or program results in "error TOC overflow" add -mminimal-toc to
9553 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9554 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9555
9556 archive_cmds_CXX=''
9557 hardcode_direct_CXX=yes
9558 hardcode_libdir_separator_CXX=':'
9559 link_all_deplibs_CXX=yes
9560
9561 if test "$GXX" = yes; then
9562 case $host_os in aix4.012|aix4.012.*)
9563 # We only want to do this on AIX 4.2 and lower, the check
9564 # below for broken collect2 doesn't work under 4.3+
9565 collect2name=`${CC} -print-prog-name=collect2`
9566 if test -f "$collect2name" && \
9567 strings "$collect2name" | grep resolve_lib_name >/dev/null
9568 then
9569 # We have reworked collect2
9570 hardcode_direct_CXX=yes
9571 else
9572 # We have old collect2
9573 hardcode_direct_CXX=unsupported
9574 # It fails to find uninstalled libraries when the uninstalled
9575 # path is not listed in the libpath. Setting hardcode_minus_L
9576 # to unsupported forces relinking
9577 hardcode_minus_L_CXX=yes
9578 hardcode_libdir_flag_spec_CXX='-L$libdir'
9579 hardcode_libdir_separator_CXX=
9580 fi
9581 esac
9582 shared_flag='-shared'
9583 else
9584 # not using gcc
9585 if test "$host_cpu" = ia64; then
9586 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9587 # chokes on -Wl,-G. The following line is correct:
9588 shared_flag='-G'
9589 else
9590 if test "$aix_use_runtimelinking" = yes; then
9591 shared_flag='${wl}-G'
9592 else
9593 shared_flag='${wl}-bM:SRE'
9594 fi
9595 fi
9596 fi
9597
9598 # It seems that -bexpall does not export symbols beginning with
9599 # underscore (_), so it is better to generate a list of symbols to export.
9600 always_export_symbols_CXX=yes
9601 if test "$aix_use_runtimelinking" = yes; then
9602 # Warning - without using the other runtime loading flags (-brtl),
9603 # -berok will link without error, but may produce a broken library.
9604 allow_undefined_flag_CXX='-berok'
9605 # Determine the default libpath from the value encoded in an empty executable.
9606 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009607/* confdefs.h. */
9608_ACEOF
9609cat confdefs.h >>conftest.$ac_ext
9610cat >>conftest.$ac_ext <<_ACEOF
9611/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009612
John Criswell47fdd832003-07-14 16:52:07 +00009613int
9614main ()
9615{
9616
9617 ;
9618 return 0;
9619}
9620_ACEOF
9621rm -f conftest.$ac_objext conftest$ac_exeext
9622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00009623 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00009624 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00009625 grep -v '^ *+' conftest.er1 >conftest.err
9626 rm -f conftest.er1
9627 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00009628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00009630 { ac_try='test -z "$ac_cxx_werror_flag"
9631 || test ! -s conftest.err'
9632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633 (eval $ac_try) 2>&5
9634 ac_status=$?
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); }; } &&
9637 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639 (eval $ac_try) 2>&5
9640 ac_status=$?
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); }; }; then
9643
9644aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9645}'`
9646# Check for a 64-bit object if we didn't find anything.
9647if 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; }
9648}'`; fi
9649else
9650 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009651sed 's/^/| /' conftest.$ac_ext >&5
9652
John Criswell47fdd832003-07-14 16:52:07 +00009653fi
Reid Spencer17041682004-09-05 17:48:32 +00009654rm -f conftest.err conftest.$ac_objext \
9655 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009656if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9657
9658 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9659
9660 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"
9661 else
9662 if test "$host_cpu" = ia64; then
9663 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9664 allow_undefined_flag_CXX="-z nodefs"
9665 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"
9666 else
9667 # Determine the default libpath from the value encoded in an empty executable.
9668 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009669/* confdefs.h. */
9670_ACEOF
9671cat confdefs.h >>conftest.$ac_ext
9672cat >>conftest.$ac_ext <<_ACEOF
9673/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009674
John Criswell47fdd832003-07-14 16:52:07 +00009675int
9676main ()
9677{
9678
9679 ;
9680 return 0;
9681}
9682_ACEOF
9683rm -f conftest.$ac_objext conftest$ac_exeext
9684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00009685 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00009686 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00009687 grep -v '^ *+' conftest.er1 >conftest.err
9688 rm -f conftest.er1
9689 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00009690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00009692 { ac_try='test -z "$ac_cxx_werror_flag"
9693 || test ! -s conftest.err'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695 (eval $ac_try) 2>&5
9696 ac_status=$?
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; } &&
9699 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701 (eval $ac_try) 2>&5
9702 ac_status=$?
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; }; then
9705
9706aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9707}'`
9708# Check for a 64-bit object if we didn't find anything.
9709if 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; }
9710}'`; fi
9711else
9712 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009713sed 's/^/| /' conftest.$ac_ext >&5
9714
John Criswell47fdd832003-07-14 16:52:07 +00009715fi
Reid Spencer17041682004-09-05 17:48:32 +00009716rm -f conftest.err conftest.$ac_objext \
9717 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009718if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9719
9720 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9721 # Warning - without using the other run time loading flags,
9722 # -berok will link without error, but may produce a broken library.
9723 no_undefined_flag_CXX=' ${wl}-bernotok'
9724 allow_undefined_flag_CXX=' ${wl}-berok'
9725 # -bexpall does not export symbols beginning with underscore (_)
9726 always_export_symbols_CXX=yes
9727 # Exported symbols can be pulled into shared objects from archives
9728 whole_archive_flag_spec_CXX=' '
9729 archive_cmds_need_lc_CXX=yes
9730 # This is similar to how AIX traditionally builds it's shared libraries.
9731 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'
9732 fi
9733 fi
9734 ;;
9735 chorus*)
9736 case $cc_basename in
9737 *)
9738 # FIXME: insert proper C++ library support
9739 ld_shlibs_CXX=no
9740 ;;
9741 esac
9742 ;;
9743
9744 cygwin* | mingw* | pw32*)
9745 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9746 # as there is no search path for DLLs.
9747 hardcode_libdir_flag_spec_CXX='-L$libdir'
9748 allow_undefined_flag_CXX=unsupported
9749 always_export_symbols_CXX=no
9750 enable_shared_with_static_runtimes_CXX=yes
9751
9752 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9753 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'
9754 # If the export-symbols file already is a .def file (1st line
9755 # is EXPORTS), use it as is; otherwise, prepend...
9756 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9757 cp $export_symbols $output_objdir/$soname.def;
9758 else
9759 echo EXPORTS > $output_objdir/$soname.def;
9760 cat $export_symbols >> $output_objdir/$soname.def;
9761 fi~
9762 $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'
9763 else
9764 ld_shlibs_CXX=no
9765 fi
9766 ;;
9767
9768 darwin* | rhapsody*)
Reid Spencer9751dbf2004-09-07 18:04:45 +00009769 if test "$GXX" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00009770 archive_cmds_need_lc_CXX=no
9771 case "$host_os" in
9772 rhapsody* | darwin1.[012])
9773 allow_undefined_flag_CXX='-undefined suppress'
9774 ;;
9775 *) # Darwin 1.3 on
Reid Spencer9751dbf2004-09-07 18:04:45 +00009776 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9777 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9778 else
9779 case ${MACOSX_DEPLOYMENT_TARGET} in
9780 10.[012])
9781 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9782 ;;
9783 10.*)
9784 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9785 ;;
9786 esac
9787 fi
John Criswell47fdd832003-07-14 16:52:07 +00009788 ;;
9789 esac
Reid Spencer9751dbf2004-09-07 18:04:45 +00009790 lt_int_apple_cc_single_mod=no
9791 output_verbose_link_cmd='echo'
9792 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9793 lt_int_apple_cc_single_mod=yes
9794 fi
9795 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9796 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9797 else
9798 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'
9799 fi
9800 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +00009801
9802 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer9751dbf2004-09-07 18:04:45 +00009803 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9804 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}'
9805 else
9806 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}'
9807 fi
9808 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}'
John Criswell47fdd832003-07-14 16:52:07 +00009809 hardcode_direct_CXX=no
9810 hardcode_automatic_CXX=yes
9811 hardcode_shlibpath_var_CXX=unsupported
9812 whole_archive_flag_spec_CXX='-all_load $convenience'
9813 link_all_deplibs_CXX=yes
Reid Spencer9751dbf2004-09-07 18:04:45 +00009814 else
9815 ld_shlibs_CXX=no
9816 fi
John Criswell47fdd832003-07-14 16:52:07 +00009817 ;;
9818
9819 dgux*)
9820 case $cc_basename in
9821 ec++)
9822 # FIXME: insert proper C++ library support
9823 ld_shlibs_CXX=no
9824 ;;
9825 ghcx)
9826 # Green Hills C++ Compiler
9827 # FIXME: insert proper C++ library support
9828 ld_shlibs_CXX=no
9829 ;;
9830 *)
9831 # FIXME: insert proper C++ library support
9832 ld_shlibs_CXX=no
9833 ;;
9834 esac
9835 ;;
9836 freebsd12*)
9837 # C++ shared libraries reported to be fairly broken before switch to ELF
9838 ld_shlibs_CXX=no
9839 ;;
9840 freebsd-elf*)
9841 archive_cmds_need_lc_CXX=no
9842 ;;
Reid Spencer9751dbf2004-09-07 18:04:45 +00009843 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +00009844 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9845 # conventions
9846 ld_shlibs_CXX=yes
9847 ;;
9848 gnu*)
9849 ;;
9850 hpux9*)
9851 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9852 hardcode_libdir_separator_CXX=:
9853 export_dynamic_flag_spec_CXX='${wl}-E'
9854 hardcode_direct_CXX=yes
9855 hardcode_minus_L_CXX=yes # Not in the search PATH,
9856 # but as the default
9857 # location of the library.
9858
9859 case $cc_basename in
9860 CC)
9861 # FIXME: insert proper C++ library support
9862 ld_shlibs_CXX=no
9863 ;;
9864 aCC)
9865 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'
9866 # Commands to make compiler produce verbose output that lists
9867 # what "hidden" libraries, object files and flags are used when
9868 # linking a shared library.
9869 #
9870 # There doesn't appear to be a way to prevent this compiler from
9871 # explicitly linking system object files so we need to strip them
9872 # from the output so that they don't get included in the library
9873 # dependencies.
9874 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9875 ;;
9876 *)
9877 if test "$GXX" = yes; then
9878 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'
9879 else
9880 # FIXME: insert proper C++ library support
9881 ld_shlibs_CXX=no
9882 fi
9883 ;;
9884 esac
9885 ;;
9886 hpux10*|hpux11*)
9887 if test $with_gnu_ld = no; then
9888 case "$host_cpu" in
9889 hppa*64*)
9890 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9891 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9892 hardcode_libdir_separator_CXX=:
9893 ;;
9894 ia64*)
9895 hardcode_libdir_flag_spec_CXX='-L$libdir'
9896 ;;
9897 *)
9898 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9899 hardcode_libdir_separator_CXX=:
9900 export_dynamic_flag_spec_CXX='${wl}-E'
9901 ;;
9902 esac
9903 fi
9904 case "$host_cpu" in
9905 hppa*64*)
9906 hardcode_direct_CXX=no
9907 hardcode_shlibpath_var_CXX=no
9908 ;;
9909 ia64*)
9910 hardcode_direct_CXX=no
9911 hardcode_shlibpath_var_CXX=no
9912 hardcode_minus_L_CXX=yes # Not in the search PATH,
9913 # but as the default
9914 # location of the library.
9915 ;;
9916 *)
9917 hardcode_direct_CXX=yes
9918 hardcode_minus_L_CXX=yes # Not in the search PATH,
9919 # but as the default
9920 # location of the library.
9921 ;;
9922 esac
9923
9924 case $cc_basename in
9925 CC)
9926 # FIXME: insert proper C++ library support
9927 ld_shlibs_CXX=no
9928 ;;
9929 aCC)
9930 case "$host_cpu" in
9931 hppa*64*|ia64*)
9932 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9933 ;;
9934 *)
9935 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9936 ;;
9937 esac
9938 # Commands to make compiler produce verbose output that lists
9939 # what "hidden" libraries, object files and flags are used when
9940 # linking a shared library.
9941 #
9942 # There doesn't appear to be a way to prevent this compiler from
9943 # explicitly linking system object files so we need to strip them
9944 # from the output so that they don't get included in the library
9945 # dependencies.
9946 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'
9947 ;;
9948 *)
9949 if test "$GXX" = yes; then
9950 if test $with_gnu_ld = no; then
9951 case "$host_cpu" in
9952 ia64*|hppa*64*)
9953 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9954 ;;
9955 *)
9956 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'
9957 ;;
9958 esac
9959 fi
9960 else
9961 # FIXME: insert proper C++ library support
9962 ld_shlibs_CXX=no
9963 fi
9964 ;;
9965 esac
9966 ;;
9967 irix5* | irix6*)
9968 case $cc_basename in
9969 CC)
9970 # SGI C++
9971 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'
9972
9973 # Archives containing C++ object files must be created using
9974 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9975 # necessary to make sure instantiated templates are included
9976 # in the archive.
9977 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9978 ;;
9979 *)
9980 if test "$GXX" = yes; then
9981 if test "$with_gnu_ld" = no; then
9982 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'
9983 else
9984 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'
9985 fi
9986 fi
9987 link_all_deplibs_CXX=yes
9988 ;;
9989 esac
9990 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9991 hardcode_libdir_separator_CXX=:
9992 ;;
9993 linux*)
9994 case $cc_basename in
9995 KCC)
9996 # Kuck and Associates, Inc. (KAI) C++ Compiler
9997
9998 # KCC will only create a shared library if the output file
9999 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10000 # to its proper name (with version) after linking.
10001 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'
10002 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'
10003 # Commands to make compiler produce verbose output that lists
10004 # what "hidden" libraries, object files and flags are used when
10005 # linking a shared library.
10006 #
10007 # There doesn't appear to be a way to prevent this compiler from
10008 # explicitly linking system object files so we need to strip them
10009 # from the output so that they don't get included in the library
10010 # dependencies.
10011 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'
10012
10013 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10014 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10015
10016 # Archives containing C++ object files must be created using
10017 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10018 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10019 ;;
10020 icpc)
10021 # Intel C++
10022 with_gnu_ld=yes
10023 archive_cmds_need_lc_CXX=no
10024 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10025 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'
10026 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10027 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10028 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10029 ;;
10030 cxx)
10031 # Compaq C++
10032 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10033 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'
10034
10035 runpath_var=LD_RUN_PATH
10036 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10037 hardcode_libdir_separator_CXX=:
10038
10039 # Commands to make compiler produce verbose output that lists
10040 # what "hidden" libraries, object files and flags are used when
10041 # linking a shared library.
10042 #
10043 # There doesn't appear to be a way to prevent this compiler from
10044 # explicitly linking system object files so we need to strip them
10045 # from the output so that they don't get included in the library
10046 # dependencies.
10047 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'
10048 ;;
10049 esac
10050 ;;
10051 lynxos*)
10052 # FIXME: insert proper C++ library support
10053 ld_shlibs_CXX=no
10054 ;;
10055 m88k*)
10056 # FIXME: insert proper C++ library support
10057 ld_shlibs_CXX=no
10058 ;;
10059 mvs*)
10060 case $cc_basename in
10061 cxx)
10062 # FIXME: insert proper C++ library support
10063 ld_shlibs_CXX=no
10064 ;;
10065 *)
10066 # FIXME: insert proper C++ library support
10067 ld_shlibs_CXX=no
10068 ;;
10069 esac
10070 ;;
10071 netbsd*)
10072 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10073 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10074 wlarc=
10075 hardcode_libdir_flag_spec_CXX='-R$libdir'
10076 hardcode_direct_CXX=yes
10077 hardcode_shlibpath_var_CXX=no
10078 fi
10079 # Workaround some broken pre-1.5 toolchains
10080 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10081 ;;
10082 osf3*)
10083 case $cc_basename in
10084 KCC)
10085 # Kuck and Associates, Inc. (KAI) C++ Compiler
10086
10087 # KCC will only create a shared library if the output file
10088 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10089 # to its proper name (with version) after linking.
10090 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'
10091
10092 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10093 hardcode_libdir_separator_CXX=:
10094
10095 # Archives containing C++ object files must be created using
10096 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10097 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10098
10099 ;;
10100 RCC)
10101 # Rational C++ 2.4.1
10102 # FIXME: insert proper C++ library support
10103 ld_shlibs_CXX=no
10104 ;;
10105 cxx)
10106 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10107 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'
10108
10109 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10110 hardcode_libdir_separator_CXX=:
10111
10112 # Commands to make compiler produce verbose output that lists
10113 # what "hidden" libraries, object files and flags are used when
10114 # linking a shared library.
10115 #
10116 # There doesn't appear to be a way to prevent this compiler from
10117 # explicitly linking system object files so we need to strip them
10118 # from the output so that they don't get included in the library
10119 # dependencies.
10120 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'
10121 ;;
10122 *)
10123 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10124 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10125 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'
10126
10127 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10128 hardcode_libdir_separator_CXX=:
10129
10130 # Commands to make compiler produce verbose output that lists
10131 # what "hidden" libraries, object files and flags are used when
10132 # linking a shared library.
10133 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10134
10135 else
10136 # FIXME: insert proper C++ library support
10137 ld_shlibs_CXX=no
10138 fi
10139 ;;
10140 esac
10141 ;;
10142 osf4* | osf5*)
10143 case $cc_basename in
10144 KCC)
10145 # Kuck and Associates, Inc. (KAI) C++ Compiler
10146
10147 # KCC will only create a shared library if the output file
10148 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10149 # to its proper name (with version) after linking.
10150 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'
10151
10152 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10153 hardcode_libdir_separator_CXX=:
10154
10155 # Archives containing C++ object files must be created using
10156 # the KAI C++ compiler.
10157 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10158 ;;
10159 RCC)
10160 # Rational C++ 2.4.1
10161 # FIXME: insert proper C++ library support
10162 ld_shlibs_CXX=no
10163 ;;
10164 cxx)
10165 allow_undefined_flag_CXX=' -expect_unresolved \*'
10166 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'
10167 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10168 echo "-hidden">> $lib.exp~
10169 $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~
10170 $rm $lib.exp'
10171
10172 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10173 hardcode_libdir_separator_CXX=:
10174
10175 # Commands to make compiler produce verbose output that lists
10176 # what "hidden" libraries, object files and flags are used when
10177 # linking a shared library.
10178 #
10179 # There doesn't appear to be a way to prevent this compiler from
10180 # explicitly linking system object files so we need to strip them
10181 # from the output so that they don't get included in the library
10182 # dependencies.
10183 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'
10184 ;;
10185 *)
10186 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10187 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10188 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'
10189
10190 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10191 hardcode_libdir_separator_CXX=:
10192
10193 # Commands to make compiler produce verbose output that lists
10194 # what "hidden" libraries, object files and flags are used when
10195 # linking a shared library.
10196 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10197
10198 else
10199 # FIXME: insert proper C++ library support
10200 ld_shlibs_CXX=no
10201 fi
10202 ;;
10203 esac
10204 ;;
10205 psos*)
10206 # FIXME: insert proper C++ library support
10207 ld_shlibs_CXX=no
10208 ;;
10209 sco*)
10210 archive_cmds_need_lc_CXX=no
10211 case $cc_basename in
10212 CC)
10213 # FIXME: insert proper C++ library support
10214 ld_shlibs_CXX=no
10215 ;;
10216 *)
10217 # FIXME: insert proper C++ library support
10218 ld_shlibs_CXX=no
10219 ;;
10220 esac
10221 ;;
10222 sunos4*)
10223 case $cc_basename in
10224 CC)
10225 # Sun C++ 4.x
10226 # FIXME: insert proper C++ library support
10227 ld_shlibs_CXX=no
10228 ;;
10229 lcc)
10230 # Lucid
10231 # FIXME: insert proper C++ library support
10232 ld_shlibs_CXX=no
10233 ;;
10234 *)
10235 # FIXME: insert proper C++ library support
10236 ld_shlibs_CXX=no
10237 ;;
10238 esac
10239 ;;
10240 solaris*)
10241 case $cc_basename in
10242 CC)
10243 # Sun C++ 4.2, 5.x and Centerline C++
10244 no_undefined_flag_CXX=' -zdefs'
10245 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10246 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10247 $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'
10248
10249 hardcode_libdir_flag_spec_CXX='-R$libdir'
10250 hardcode_shlibpath_var_CXX=no
10251 case $host_os in
10252 solaris2.0-5 | solaris2.0-5.*) ;;
10253 *)
10254 # The C++ compiler is used as linker so we must use $wl
10255 # flag to pass the commands to the underlying system
10256 # linker.
10257 # Supported since Solaris 2.6 (maybe 2.5.1?)
10258 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10259 ;;
10260 esac
10261 link_all_deplibs_CXX=yes
10262
10263 # Commands to make compiler produce verbose output that lists
10264 # what "hidden" libraries, object files and flags are used when
10265 # linking a shared library.
10266 #
10267 # There doesn't appear to be a way to prevent this compiler from
10268 # explicitly linking system object files so we need to strip them
10269 # from the output so that they don't get included in the library
10270 # dependencies.
10271 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'
10272
10273 # Archives containing C++ object files must be created using
10274 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10275 # necessary to make sure instantiated templates are included
10276 # in the archive.
10277 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10278 ;;
10279 gcx)
10280 # Green Hills C++ Compiler
10281 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10282
10283 # The C++ compiler must be used to create the archive.
10284 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10285 ;;
10286 *)
10287 # GNU C++ compiler with Solaris linker
10288 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10289 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10290 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000010291 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000010292 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
Reid Spencer9751dbf2004-09-07 18:04:45 +000010293 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000010294
10295 # Commands to make compiler produce verbose output that lists
10296 # what "hidden" libraries, object files and flags are used when
10297 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000010298 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000010299 else
10300 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10301 # platform.
10302 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10303 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10304 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10305
10306 # Commands to make compiler produce verbose output that lists
10307 # what "hidden" libraries, object files and flags are used when
10308 # linking a shared library.
10309 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10310 fi
10311
10312 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10313 fi
10314 ;;
10315 esac
10316 ;;
10317 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10318 archive_cmds_need_lc_CXX=no
10319 ;;
10320 tandem*)
10321 case $cc_basename in
10322 NCC)
10323 # NonStop-UX NCC 3.20
10324 # FIXME: insert proper C++ library support
10325 ld_shlibs_CXX=no
10326 ;;
10327 *)
10328 # FIXME: insert proper C++ library support
10329 ld_shlibs_CXX=no
10330 ;;
10331 esac
10332 ;;
10333 vxworks*)
10334 # FIXME: insert proper C++ library support
10335 ld_shlibs_CXX=no
10336 ;;
10337 *)
10338 # FIXME: insert proper C++ library support
10339 ld_shlibs_CXX=no
10340 ;;
10341esac
10342echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10343echo "${ECHO_T}$ld_shlibs_CXX" >&6
10344test "$ld_shlibs_CXX" = no && can_build_shared=no
10345
10346GCC_CXX="$GXX"
10347LD_CXX="$LD"
10348
John Criswell47fdd832003-07-14 16:52:07 +000010349
10350cat > conftest.$ac_ext <<EOF
10351class Foo
10352{
10353public:
10354 Foo (void) { a = 0; }
10355private:
10356 int a;
10357};
10358EOF
10359
10360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10361 (eval $ac_compile) 2>&5
10362 ac_status=$?
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); }; then
10365 # Parse the compiler output and extract the necessary
10366 # objects, libraries and library flags.
10367
10368 # Sentinel used to keep track of whether or not we are before
10369 # the conftest object file.
10370 pre_test_object_deps_done=no
10371
10372 # The `*' in the case matches for architectures that use `case' in
10373 # $output_verbose_cmd can trigger glob expansion during the loop
10374 # eval without this substitution.
10375 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10376
10377 for p in `eval $output_verbose_link_cmd`; do
10378 case $p in
10379
10380 -L* | -R* | -l*)
10381 # Some compilers place space between "-{L,R}" and the path.
10382 # Remove the space.
10383 if test $p = "-L" \
10384 || test $p = "-R"; then
10385 prev=$p
10386 continue
10387 else
10388 prev=
10389 fi
10390
10391 if test "$pre_test_object_deps_done" = no; then
10392 case $p in
10393 -L* | -R*)
10394 # Internal compiler library paths should come after those
10395 # provided the user. The postdeps already come after the
10396 # user supplied libs so there is no need to process them.
10397 if test -z "$compiler_lib_search_path_CXX"; then
10398 compiler_lib_search_path_CXX="${prev}${p}"
10399 else
10400 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10401 fi
10402 ;;
10403 # The "-l" case would never come before the object being
10404 # linked, so don't bother handling this case.
10405 esac
10406 else
10407 if test -z "$postdeps_CXX"; then
10408 postdeps_CXX="${prev}${p}"
10409 else
10410 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10411 fi
10412 fi
10413 ;;
10414
10415 *.$objext)
10416 # This assumes that the test object file only shows up
10417 # once in the compiler output.
10418 if test "$p" = "conftest.$objext"; then
10419 pre_test_object_deps_done=yes
10420 continue
10421 fi
10422
10423 if test "$pre_test_object_deps_done" = no; then
10424 if test -z "$predep_objects_CXX"; then
10425 predep_objects_CXX="$p"
10426 else
10427 predep_objects_CXX="$predep_objects_CXX $p"
10428 fi
10429 else
10430 if test -z "$postdep_objects_CXX"; then
10431 postdep_objects_CXX="$p"
10432 else
10433 postdep_objects_CXX="$postdep_objects_CXX $p"
10434 fi
10435 fi
10436 ;;
10437
10438 *) ;; # Ignore the rest.
10439
10440 esac
10441 done
10442
10443 # Clean up.
10444 rm -f a.out a.exe
10445else
10446 echo "libtool.m4: error: problem compiling CXX test program"
10447fi
10448
10449$rm -f confest.$objext
10450
10451case " $postdeps_CXX " in
10452*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10453esac
10454
10455lt_prog_compiler_wl_CXX=
10456lt_prog_compiler_pic_CXX=
10457lt_prog_compiler_static_CXX=
10458
10459echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10460echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10461
10462 # C++ specific cases for pic, static, wl, etc.
10463 if test "$GXX" = yes; then
10464 lt_prog_compiler_wl_CXX='-Wl,'
10465 lt_prog_compiler_static_CXX='-static'
10466
10467 case $host_os in
10468 aix*)
10469 # All AIX code is PIC.
10470 if test "$host_cpu" = ia64; then
10471 # AIX 5 now supports IA64 processor
10472 lt_prog_compiler_static_CXX='-Bstatic'
10473 fi
10474 ;;
10475 amigaos*)
10476 # FIXME: we need at least 68020 code to build shared libraries, but
10477 # adding the `-m68020' flag to GCC prevents building anything better,
10478 # like `-m68040'.
10479 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10480 ;;
10481 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10482 # PIC is the default for these OSes.
10483 ;;
10484 mingw* | os2* | pw32*)
10485 # This hack is so that the source file can tell whether it is being
10486 # built for inclusion in a dll (and should export symbols for example).
10487 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10488 ;;
10489 darwin* | rhapsody*)
10490 # PIC is the default on this platform
10491 # Common symbols not allowed in MH_DYLIB files
10492 lt_prog_compiler_pic_CXX='-fno-common'
10493 ;;
10494 *djgpp*)
10495 # DJGPP does not support shared libraries at all
10496 lt_prog_compiler_pic_CXX=
10497 ;;
10498 sysv4*MP*)
10499 if test -d /usr/nec; then
10500 lt_prog_compiler_pic_CXX=-Kconform_pic
10501 fi
10502 ;;
10503 hpux*)
10504 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10505 # not for PA HP-UX.
10506 case "$host_cpu" in
10507 hppa*64*|ia64*)
10508 ;;
10509 *)
10510 lt_prog_compiler_pic_CXX='-fPIC'
10511 ;;
10512 esac
10513 ;;
10514 *)
10515 lt_prog_compiler_pic_CXX='-fPIC'
10516 ;;
10517 esac
10518 else
10519 case $host_os in
10520 aix4* | aix5*)
10521 # All AIX code is PIC.
10522 if test "$host_cpu" = ia64; then
10523 # AIX 5 now supports IA64 processor
10524 lt_prog_compiler_static_CXX='-Bstatic'
10525 else
10526 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10527 fi
10528 ;;
10529 chorus*)
10530 case $cc_basename in
10531 cxch68)
10532 # Green Hills C++ Compiler
10533 # _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"
10534 ;;
10535 esac
10536 ;;
10537 dgux*)
10538 case $cc_basename in
10539 ec++)
10540 lt_prog_compiler_pic_CXX='-KPIC'
10541 ;;
10542 ghcx)
10543 # Green Hills C++ Compiler
10544 lt_prog_compiler_pic_CXX='-pic'
10545 ;;
10546 *)
10547 ;;
10548 esac
10549 ;;
Reid Spencer9751dbf2004-09-07 18:04:45 +000010550 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000010551 # FreeBSD uses GNU C++
10552 ;;
10553 hpux9* | hpux10* | hpux11*)
10554 case $cc_basename in
10555 CC)
10556 lt_prog_compiler_wl_CXX='-Wl,'
10557 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10558 if test "$host_cpu" != ia64; then
10559 lt_prog_compiler_pic_CXX='+Z'
10560 fi
10561 ;;
10562 aCC)
10563 lt_prog_compiler_wl_CXX='-Wl,'
10564 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10565 case "$host_cpu" in
10566 hppa*64*|ia64*)
10567 # +Z the default
10568 ;;
10569 *)
10570 lt_prog_compiler_pic_CXX='+Z'
10571 ;;
10572 esac
10573 ;;
10574 *)
10575 ;;
10576 esac
10577 ;;
10578 irix5* | irix6* | nonstopux*)
10579 case $cc_basename in
10580 CC)
10581 lt_prog_compiler_wl_CXX='-Wl,'
10582 lt_prog_compiler_static_CXX='-non_shared'
10583 # CC pic flag -KPIC is the default.
10584 ;;
10585 *)
10586 ;;
10587 esac
10588 ;;
10589 linux*)
10590 case $cc_basename in
10591 KCC)
10592 # KAI C++ Compiler
10593 lt_prog_compiler_wl_CXX='--backend -Wl,'
10594 lt_prog_compiler_pic_CXX='-fPIC'
10595 ;;
10596 icpc)
10597 # Intel C++
10598 lt_prog_compiler_wl_CXX='-Wl,'
10599 lt_prog_compiler_pic_CXX='-KPIC'
10600 lt_prog_compiler_static_CXX='-static'
10601 ;;
10602 cxx)
10603 # Compaq C++
10604 # Make sure the PIC flag is empty. It appears that all Alpha
10605 # Linux and Compaq Tru64 Unix objects are PIC.
10606 lt_prog_compiler_pic_CXX=
10607 lt_prog_compiler_static_CXX='-non_shared'
10608 ;;
10609 *)
10610 ;;
10611 esac
10612 ;;
10613 lynxos*)
10614 ;;
10615 m88k*)
10616 ;;
10617 mvs*)
10618 case $cc_basename in
10619 cxx)
10620 lt_prog_compiler_pic_CXX='-W c,exportall'
10621 ;;
10622 *)
10623 ;;
10624 esac
10625 ;;
10626 netbsd*)
10627 ;;
10628 osf3* | osf4* | osf5*)
10629 case $cc_basename in
10630 KCC)
10631 lt_prog_compiler_wl_CXX='--backend -Wl,'
10632 ;;
10633 RCC)
10634 # Rational C++ 2.4.1
10635 lt_prog_compiler_pic_CXX='-pic'
10636 ;;
10637 cxx)
10638 # Digital/Compaq C++
10639 lt_prog_compiler_wl_CXX='-Wl,'
10640 # Make sure the PIC flag is empty. It appears that all Alpha
10641 # Linux and Compaq Tru64 Unix objects are PIC.
10642 lt_prog_compiler_pic_CXX=
10643 lt_prog_compiler_static_CXX='-non_shared'
10644 ;;
10645 *)
10646 ;;
10647 esac
10648 ;;
10649 psos*)
10650 ;;
10651 sco*)
10652 case $cc_basename in
10653 CC)
10654 lt_prog_compiler_pic_CXX='-fPIC'
10655 ;;
10656 *)
10657 ;;
10658 esac
10659 ;;
10660 solaris*)
10661 case $cc_basename in
10662 CC)
10663 # Sun C++ 4.2, 5.x and Centerline C++
10664 lt_prog_compiler_pic_CXX='-KPIC'
10665 lt_prog_compiler_static_CXX='-Bstatic'
10666 lt_prog_compiler_wl_CXX='-Qoption ld '
10667 ;;
10668 gcx)
10669 # Green Hills C++ Compiler
10670 lt_prog_compiler_pic_CXX='-PIC'
10671 ;;
10672 *)
10673 ;;
10674 esac
10675 ;;
10676 sunos4*)
10677 case $cc_basename in
10678 CC)
10679 # Sun C++ 4.x
10680 lt_prog_compiler_pic_CXX='-pic'
10681 lt_prog_compiler_static_CXX='-Bstatic'
10682 ;;
10683 lcc)
10684 # Lucid
10685 lt_prog_compiler_pic_CXX='-pic'
10686 ;;
10687 *)
10688 ;;
10689 esac
10690 ;;
10691 tandem*)
10692 case $cc_basename in
10693 NCC)
10694 # NonStop-UX NCC 3.20
10695 lt_prog_compiler_pic_CXX='-KPIC'
10696 ;;
10697 *)
10698 ;;
10699 esac
10700 ;;
10701 unixware*)
10702 ;;
10703 vxworks*)
10704 ;;
10705 *)
10706 lt_prog_compiler_can_build_shared_CXX=no
10707 ;;
10708 esac
10709 fi
10710
10711echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10712echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10713
10714#
10715# Check to make sure the PIC flag actually works.
10716#
10717if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000010718
10719echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010720echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10721if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10723else
10724 lt_prog_compiler_pic_works_CXX=no
10725 ac_outfile=conftest.$ac_objext
10726 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10727 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10728 # Insert the option either (1) after the last *FLAGS variable, or
10729 # (2) before a word containing "conftest.", or (3) at the end.
10730 # Note that $ac_compile itself does not contain backslashes and begins
10731 # with a dollar sign (not a hyphen), so the echo should work correctly.
10732 # The option is referenced via a variable to avoid confusing sed.
10733 lt_compile=`echo "$ac_compile" | $SED \
10734 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10736 -e 's:$: $lt_compiler_flag:'`
Reid Spencer9751dbf2004-09-07 18:04:45 +000010737 (eval echo "\"\$as_me:10737: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010738 (eval "$lt_compile" 2>conftest.err)
10739 ac_status=$?
10740 cat conftest.err >&5
Reid Spencer9751dbf2004-09-07 18:04:45 +000010741 echo "$as_me:10741: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010742 if (exit $ac_status) && test -s "$ac_outfile"; then
10743 # The compiler can only warn and ignore the option if not recognized
10744 # So say no if there are warnings
10745 if test ! -s conftest.err; then
10746 lt_prog_compiler_pic_works_CXX=yes
10747 fi
10748 fi
10749 $rm conftest*
10750
10751fi
10752echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10753echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10754
10755if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10756 case $lt_prog_compiler_pic_CXX in
10757 "" | " "*) ;;
10758 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10759 esac
10760else
10761 lt_prog_compiler_pic_CXX=
10762 lt_prog_compiler_can_build_shared_CXX=no
10763fi
10764
10765fi
10766case "$host_os" in
10767 # For platforms which do not support PIC, -DPIC is meaningless:
10768 *djgpp*)
10769 lt_prog_compiler_pic_CXX=
10770 ;;
10771 *)
10772 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10773 ;;
10774esac
10775
10776echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10777echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10778if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10780else
10781 lt_cv_prog_compiler_c_o_CXX=no
10782 $rm -r conftest 2>/dev/null
10783 mkdir conftest
10784 cd conftest
10785 mkdir out
10786 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10787
10788 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10789 # that will create temporary files in the current directory regardless of
10790 # the output directory. Thus, making CWD read-only will cause this test
10791 # to fail, enabling locking or at least warning the user not to do parallel
10792 # builds.
10793 chmod -w .
10794
10795 lt_compiler_flag="-o out/conftest2.$ac_objext"
10796 # Insert the option either (1) after the last *FLAGS variable, or
10797 # (2) before a word containing "conftest.", or (3) at the end.
10798 # Note that $ac_compile itself does not contain backslashes and begins
10799 # with a dollar sign (not a hyphen), so the echo should work correctly.
10800 lt_compile=`echo "$ac_compile" | $SED \
10801 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10803 -e 's:$: $lt_compiler_flag:'`
Reid Spencer9751dbf2004-09-07 18:04:45 +000010804 (eval echo "\"\$as_me:10804: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010805 (eval "$lt_compile" 2>out/conftest.err)
10806 ac_status=$?
10807 cat out/conftest.err >&5
Reid Spencer9751dbf2004-09-07 18:04:45 +000010808 echo "$as_me:10808: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010809 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10810 then
10811 # The compiler can only warn and ignore the option if not recognized
10812 # So say no if there are warnings
10813 if test ! -s out/conftest.err; then
10814 lt_cv_prog_compiler_c_o_CXX=yes
10815 fi
10816 fi
10817 chmod u+w .
Reid Spencer9751dbf2004-09-07 18:04:45 +000010818 $rm conftest*
10819 # SGI C++ compiler will create directory out/ii_files/ for
10820 # template instantiation
10821 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10822 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000010823 cd ..
10824 rmdir conftest
10825 $rm conftest*
10826
10827fi
10828echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10829echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10830
10831
10832hard_links="nottested"
10833if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10834 # do not overwrite the value of need_locks provided by the user
10835 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10836echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10837 hard_links=yes
10838 $rm conftest*
10839 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10840 touch conftest.a
10841 ln conftest.a conftest.b 2>&5 || hard_links=no
10842 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10843 echo "$as_me:$LINENO: result: $hard_links" >&5
10844echo "${ECHO_T}$hard_links" >&6
10845 if test "$hard_links" = no; then
10846 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10847echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10848 need_locks=warn
10849 fi
10850else
10851 need_locks=no
10852fi
10853
10854echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10855echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10856
10857 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10858 case $host_os in
10859 aix4* | aix5*)
10860 # If we're using GNU nm, then we don't want the "-C" option.
10861 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10862 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10863 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'
10864 else
10865 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'
10866 fi
10867 ;;
10868 pw32*)
10869 export_symbols_cmds_CXX="$ltdll_cmds"
10870 ;;
10871 cygwin* | mingw*)
10872 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10873 ;;
10874 *)
10875 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10876 ;;
10877 esac
10878
10879echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10880echo "${ECHO_T}$ld_shlibs_CXX" >&6
10881test "$ld_shlibs_CXX" = no && can_build_shared=no
10882
10883variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10884if test "$GCC" = yes; then
10885 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10886fi
10887
10888#
10889# Do we need to explicitly link libc?
10890#
10891case "x$archive_cmds_need_lc_CXX" in
10892x|xyes)
10893 # Assume -lc should be added
10894 archive_cmds_need_lc_CXX=yes
10895
10896 if test "$enable_shared" = yes && test "$GCC" = yes; then
10897 case $archive_cmds_CXX in
10898 *'~'*)
10899 # FIXME: we may have to deal with multi-command sequences.
10900 ;;
10901 '$CC '*)
10902 # Test whether the compiler implicitly links with -lc since on some
10903 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10904 # to ld, don't add -lc before -lgcc.
10905 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10906echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10907 $rm conftest*
10908 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10909
10910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10911 (eval $ac_compile) 2>&5
10912 ac_status=$?
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); } 2>conftest.err; then
10915 soname=conftest
10916 lib=conftest
10917 libobjs=conftest.$ac_objext
10918 deplibs=
10919 wl=$lt_prog_compiler_wl_CXX
10920 compiler_flags=-v
10921 linker_flags=-v
10922 verstring=
10923 output_objdir=.
10924 libname=conftest
10925 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10926 allow_undefined_flag_CXX=
10927 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10928 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10929 ac_status=$?
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }
10932 then
10933 archive_cmds_need_lc_CXX=no
10934 else
10935 archive_cmds_need_lc_CXX=yes
10936 fi
10937 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10938 else
10939 cat conftest.err 1>&5
10940 fi
10941 $rm conftest*
10942 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10943echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10944 ;;
10945 esac
10946 fi
10947 ;;
10948esac
10949
John Criswell47fdd832003-07-14 16:52:07 +000010950echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10951echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10952library_names_spec=
10953libname_spec='lib$name'
10954soname_spec=
10955shrext=".so"
10956postinstall_cmds=
10957postuninstall_cmds=
10958finish_cmds=
10959finish_eval=
10960shlibpath_var=
10961shlibpath_overrides_runpath=unknown
10962version_type=none
10963dynamic_linker="$host_os ld.so"
10964sys_lib_dlsearch_path_spec="/lib /usr/lib"
10965if test "$GCC" = yes; then
10966 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10967 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10968 # if the path contains ";" then we assume it to be the separator
10969 # otherwise default to the standard path separator (i.e. ":") - it is
10970 # assumed that no part of a normal pathname contains ";" but that should
10971 # okay in the real world where ";" in dirpaths is itself problematic.
10972 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10973 else
10974 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10975 fi
10976else
10977 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10978fi
10979need_lib_prefix=unknown
10980hardcode_into_libs=no
10981
10982# when you set need_version to no, make sure it does not cause -set_version
10983# flags to be left without arguments
10984need_version=unknown
10985
10986case $host_os in
10987aix3*)
10988 version_type=linux
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10990 shlibpath_var=LIBPATH
10991
10992 # AIX 3 has no versioning support, so we append a major version to the name.
10993 soname_spec='${libname}${release}${shared_ext}$major'
10994 ;;
10995
10996aix4* | aix5*)
10997 version_type=linux
10998 need_lib_prefix=no
10999 need_version=no
11000 hardcode_into_libs=yes
11001 if test "$host_cpu" = ia64; then
11002 # AIX 5 supports IA64
11003 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11004 shlibpath_var=LD_LIBRARY_PATH
11005 else
11006 # With GCC up to 2.95.x, collect2 would create an import file
11007 # for dependence libraries. The import file would start with
11008 # the line `#! .'. This would cause the generated library to
11009 # depend on `.', always an invalid library. This was fixed in
11010 # development snapshots of GCC prior to 3.0.
11011 case $host_os in
11012 aix4 | aix4.[01] | aix4.[01].*)
11013 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11014 echo ' yes '
11015 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11016 :
11017 else
11018 can_build_shared=no
11019 fi
11020 ;;
11021 esac
11022 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11023 # soname into executable. Probably we can add versioning support to
11024 # collect2, so additional links can be useful in future.
11025 if test "$aix_use_runtimelinking" = yes; then
11026 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11027 # instead of lib<name>.a to let people know that these are not
11028 # typical AIX shared libraries.
11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11030 else
11031 # We preserve .a as extension for shared libraries through AIX4.2
11032 # and later when we are not doing run time linking.
11033 library_names_spec='${libname}${release}.a $libname.a'
11034 soname_spec='${libname}${release}${shared_ext}$major'
11035 fi
11036 shlibpath_var=LIBPATH
11037 fi
11038 ;;
11039
11040amigaos*)
11041 library_names_spec='$libname.ixlibrary $libname.a'
11042 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer9751dbf2004-09-07 18:04:45 +000011043 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'
John Criswell47fdd832003-07-14 16:52:07 +000011044 ;;
11045
11046beos*)
11047 library_names_spec='${libname}${shared_ext}'
11048 dynamic_linker="$host_os ld.so"
11049 shlibpath_var=LIBRARY_PATH
11050 ;;
11051
11052bsdi4*)
11053 version_type=linux
11054 need_version=no
11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11056 soname_spec='${libname}${release}${shared_ext}$major'
11057 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11058 shlibpath_var=LD_LIBRARY_PATH
11059 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11060 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11061 # the default ld.so.conf also contains /usr/contrib/lib and
11062 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11063 # libtool to hard-code these into programs
11064 ;;
11065
11066cygwin* | mingw* | pw32*)
11067 version_type=windows
11068 shrext=".dll"
11069 need_version=no
11070 need_lib_prefix=no
11071
11072 case $GCC,$host_os in
11073 yes,cygwin* | yes,mingw* | yes,pw32*)
11074 library_names_spec='$libname.dll.a'
11075 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11076 postinstall_cmds='base_file=`basename \${file}`~
11077 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11078 dldir=$destdir/`dirname \$dlpath`~
11079 test -d \$dldir || mkdir -p \$dldir~
11080 $install_prog $dir/$dlname \$dldir/$dlname'
11081 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11082 dlpath=$dir/\$dldll~
11083 $rm \$dlpath'
11084 shlibpath_overrides_runpath=yes
11085
11086 case $host_os in
11087 cygwin*)
11088 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11089 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer9751dbf2004-09-07 18:04:45 +000011090 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000011091 ;;
11092 mingw*)
11093 # MinGW DLLs use traditional 'lib' prefix
11094 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11095 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11096 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11097 # It is most probably a Windows format PATH printed by
11098 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11099 # path with ; separators, and with drive letters. We can handle the
11100 # drive letters (cygwin fileutils understands them), so leave them,
11101 # especially as we might pass files found there to a mingw objdump,
11102 # which wouldn't understand a cygwinified path. Ahh.
11103 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11104 else
11105 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11106 fi
11107 ;;
11108 pw32*)
11109 # pw32 DLLs use 'pw' prefix rather than 'lib'
11110 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11111 ;;
11112 esac
11113 ;;
11114
11115 *)
11116 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11117 ;;
11118 esac
11119 dynamic_linker='Win32 ld.exe'
11120 # FIXME: first we should search . and the directory the executable is in
11121 shlibpath_var=PATH
11122 ;;
11123
11124darwin* | rhapsody*)
11125 dynamic_linker="$host_os dyld"
11126 version_type=darwin
11127 need_lib_prefix=no
11128 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000011129 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11130 soname_spec='${libname}${release}${major}$shared_ext'
11131 shlibpath_overrides_runpath=yes
11132 shlibpath_var=DYLD_LIBRARY_PATH
11133 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11134 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer9751dbf2004-09-07 18:04:45 +000011135 if test "$GCC" = yes; then
11136 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"`
11137 else
11138 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000011139 fi
11140 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11141 ;;
11142
11143dgux*)
11144 version_type=linux
11145 need_lib_prefix=no
11146 need_version=no
11147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11148 soname_spec='${libname}${release}${shared_ext}$major'
11149 shlibpath_var=LD_LIBRARY_PATH
11150 ;;
11151
11152freebsd1*)
11153 dynamic_linker=no
11154 ;;
11155
Reid Spencer9751dbf2004-09-07 18:04:45 +000011156kfreebsd*-gnu)
11157 version_type=linux
11158 need_lib_prefix=no
11159 need_version=no
11160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11161 soname_spec='${libname}${release}${shared_ext}$major'
11162 shlibpath_var=LD_LIBRARY_PATH
11163 shlibpath_overrides_runpath=no
11164 hardcode_into_libs=yes
11165 dynamic_linker='GNU ld.so'
11166 ;;
11167
John Criswell47fdd832003-07-14 16:52:07 +000011168freebsd*)
11169 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11170 version_type=freebsd-$objformat
11171 case $version_type in
11172 freebsd-elf*)
11173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11174 need_version=no
11175 need_lib_prefix=no
11176 ;;
11177 freebsd-*)
11178 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11179 need_version=yes
11180 ;;
11181 esac
11182 shlibpath_var=LD_LIBRARY_PATH
11183 case $host_os in
11184 freebsd2*)
11185 shlibpath_overrides_runpath=yes
11186 ;;
11187 freebsd3.01* | freebsdelf3.01*)
11188 shlibpath_overrides_runpath=yes
11189 hardcode_into_libs=yes
11190 ;;
11191 *) # from 3.2 on
11192 shlibpath_overrides_runpath=no
11193 hardcode_into_libs=yes
11194 ;;
11195 esac
11196 ;;
11197
11198gnu*)
11199 version_type=linux
11200 need_lib_prefix=no
11201 need_version=no
11202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11203 soname_spec='${libname}${release}${shared_ext}$major'
11204 shlibpath_var=LD_LIBRARY_PATH
11205 hardcode_into_libs=yes
11206 ;;
11207
11208hpux9* | hpux10* | hpux11*)
11209 # Give a soname corresponding to the major version so that dld.sl refuses to
11210 # link against other versions.
11211 version_type=sunos
11212 need_lib_prefix=no
11213 need_version=no
11214 case "$host_cpu" in
11215 ia64*)
11216 shrext='.so'
11217 hardcode_into_libs=yes
11218 dynamic_linker="$host_os dld.so"
11219 shlibpath_var=LD_LIBRARY_PATH
11220 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11222 soname_spec='${libname}${release}${shared_ext}$major'
11223 if test "X$HPUX_IA64_MODE" = X32; then
11224 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11225 else
11226 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11227 fi
11228 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11229 ;;
11230 hppa*64*)
11231 shrext='.sl'
11232 hardcode_into_libs=yes
11233 dynamic_linker="$host_os dld.sl"
11234 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11235 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11237 soname_spec='${libname}${release}${shared_ext}$major'
11238 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11239 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11240 ;;
11241 *)
11242 shrext='.sl'
11243 dynamic_linker="$host_os dld.sl"
11244 shlibpath_var=SHLIB_PATH
11245 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11247 soname_spec='${libname}${release}${shared_ext}$major'
11248 ;;
11249 esac
11250 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11251 postinstall_cmds='chmod 555 $lib'
11252 ;;
11253
11254irix5* | irix6* | nonstopux*)
11255 case $host_os in
11256 nonstopux*) version_type=nonstopux ;;
11257 *)
11258 if test "$lt_cv_prog_gnu_ld" = yes; then
11259 version_type=linux
11260 else
11261 version_type=irix
11262 fi ;;
11263 esac
11264 need_lib_prefix=no
11265 need_version=no
11266 soname_spec='${libname}${release}${shared_ext}$major'
11267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11268 case $host_os in
11269 irix5* | nonstopux*)
11270 libsuff= shlibsuff=
11271 ;;
11272 *)
11273 case $LD in # libtool.m4 will add one of these switches to LD
11274 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11275 libsuff= shlibsuff= libmagic=32-bit;;
11276 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11277 libsuff=32 shlibsuff=N32 libmagic=N32;;
11278 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11279 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11280 *) libsuff= shlibsuff= libmagic=never-match;;
11281 esac
11282 ;;
11283 esac
11284 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11285 shlibpath_overrides_runpath=no
11286 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11287 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11288 hardcode_into_libs=yes
11289 ;;
11290
11291# No shared lib support for Linux oldld, aout, or coff.
11292linux*oldld* | linux*aout* | linux*coff*)
11293 dynamic_linker=no
11294 ;;
11295
11296# This must be Linux ELF.
11297linux*)
11298 version_type=linux
11299 need_lib_prefix=no
11300 need_version=no
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11302 soname_spec='${libname}${release}${shared_ext}$major'
11303 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11304 shlibpath_var=LD_LIBRARY_PATH
11305 shlibpath_overrides_runpath=no
11306 # This implies no fast_install, which is unacceptable.
11307 # Some rework will be needed to allow for fast_install
11308 # before this can be enabled.
11309 hardcode_into_libs=yes
11310
11311 # We used to test for /lib/ld.so.1 and disable shared libraries on
11312 # powerpc, because MkLinux only supported shared libraries with the
11313 # GNU dynamic linker. Since this was broken with cross compilers,
11314 # most powerpc-linux boxes support dynamic linking these days and
11315 # people can always --disable-shared, the test was removed, and we
11316 # assume the GNU/Linux dynamic linker is in use.
11317 dynamic_linker='GNU/Linux ld.so'
11318 ;;
11319
Reid Spencer9751dbf2004-09-07 18:04:45 +000011320knetbsd*-gnu)
11321 version_type=linux
11322 need_lib_prefix=no
11323 need_version=no
11324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11325 soname_spec='${libname}${release}${shared_ext}$major'
11326 shlibpath_var=LD_LIBRARY_PATH
11327 shlibpath_overrides_runpath=no
11328 hardcode_into_libs=yes
11329 dynamic_linker='GNU ld.so'
11330 ;;
11331
John Criswell47fdd832003-07-14 16:52:07 +000011332netbsd*)
11333 version_type=sunos
11334 need_lib_prefix=no
11335 need_version=no
11336 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11339 dynamic_linker='NetBSD (a.out) ld.so'
11340 else
11341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11342 soname_spec='${libname}${release}${shared_ext}$major'
11343 dynamic_linker='NetBSD ld.elf_so'
11344 fi
11345 shlibpath_var=LD_LIBRARY_PATH
11346 shlibpath_overrides_runpath=yes
11347 hardcode_into_libs=yes
11348 ;;
11349
11350newsos6)
11351 version_type=linux
11352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11353 shlibpath_var=LD_LIBRARY_PATH
11354 shlibpath_overrides_runpath=yes
11355 ;;
11356
Reid Spencer9751dbf2004-09-07 18:04:45 +000011357nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000011358 version_type=linux
11359 need_lib_prefix=no
11360 need_version=no
11361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11362 soname_spec='${libname}${release}${shared_ext}$major'
11363 shlibpath_var=LD_LIBRARY_PATH
11364 shlibpath_overrides_runpath=yes
11365 ;;
11366
11367openbsd*)
11368 version_type=sunos
11369 need_lib_prefix=no
Reid Spencer9751dbf2004-09-07 18:04:45 +000011370 need_version=yes
John Criswell47fdd832003-07-14 16:52:07 +000011371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11373 shlibpath_var=LD_LIBRARY_PATH
11374 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11375 case $host_os in
11376 openbsd2.[89] | openbsd2.[89].*)
11377 shlibpath_overrides_runpath=no
11378 ;;
11379 *)
11380 shlibpath_overrides_runpath=yes
11381 ;;
11382 esac
11383 else
11384 shlibpath_overrides_runpath=yes
11385 fi
11386 ;;
11387
11388os2*)
11389 libname_spec='$name'
11390 shrext=".dll"
11391 need_lib_prefix=no
11392 library_names_spec='$libname${shared_ext} $libname.a'
11393 dynamic_linker='OS/2 ld.exe'
11394 shlibpath_var=LIBPATH
11395 ;;
11396
11397osf3* | osf4* | osf5*)
11398 version_type=osf
11399 need_lib_prefix=no
11400 need_version=no
11401 soname_spec='${libname}${release}${shared_ext}$major'
11402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11403 shlibpath_var=LD_LIBRARY_PATH
11404 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11405 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11406 ;;
11407
11408sco3.2v5*)
11409 version_type=osf
11410 soname_spec='${libname}${release}${shared_ext}$major'
11411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11412 shlibpath_var=LD_LIBRARY_PATH
11413 ;;
11414
11415solaris*)
11416 version_type=linux
11417 need_lib_prefix=no
11418 need_version=no
11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11420 soname_spec='${libname}${release}${shared_ext}$major'
11421 shlibpath_var=LD_LIBRARY_PATH
11422 shlibpath_overrides_runpath=yes
11423 hardcode_into_libs=yes
11424 # ldd complains unless libraries are executable
11425 postinstall_cmds='chmod +x $lib'
11426 ;;
11427
11428sunos4*)
11429 version_type=sunos
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11431 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11432 shlibpath_var=LD_LIBRARY_PATH
11433 shlibpath_overrides_runpath=yes
11434 if test "$with_gnu_ld" = yes; then
11435 need_lib_prefix=no
11436 fi
11437 need_version=yes
11438 ;;
11439
11440sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11441 version_type=linux
11442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11443 soname_spec='${libname}${release}${shared_ext}$major'
11444 shlibpath_var=LD_LIBRARY_PATH
11445 case $host_vendor in
11446 sni)
11447 shlibpath_overrides_runpath=no
11448 need_lib_prefix=no
11449 export_dynamic_flag_spec='${wl}-Blargedynsym'
11450 runpath_var=LD_RUN_PATH
11451 ;;
11452 siemens)
11453 need_lib_prefix=no
11454 ;;
11455 motorola)
11456 need_lib_prefix=no
11457 need_version=no
11458 shlibpath_overrides_runpath=no
11459 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11460 ;;
11461 esac
11462 ;;
11463
11464sysv4*MP*)
11465 if test -d /usr/nec ;then
11466 version_type=linux
11467 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11468 soname_spec='$libname${shared_ext}.$major'
11469 shlibpath_var=LD_LIBRARY_PATH
11470 fi
11471 ;;
11472
11473uts4*)
11474 version_type=linux
11475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11476 soname_spec='${libname}${release}${shared_ext}$major'
11477 shlibpath_var=LD_LIBRARY_PATH
11478 ;;
11479
11480*)
11481 dynamic_linker=no
11482 ;;
11483esac
11484echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11485echo "${ECHO_T}$dynamic_linker" >&6
11486test "$dynamic_linker" = no && can_build_shared=no
11487
Reid Spencer9751dbf2004-09-07 18:04:45 +000011488echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11489echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11490hardcode_action_CXX=
11491if test -n "$hardcode_libdir_flag_spec_CXX" || \
11492 test -n "$runpath_var CXX" || \
11493 test "X$hardcode_automatic_CXX"="Xyes" ; then
11494
11495 # We can hardcode non-existant directories.
11496 if test "$hardcode_direct_CXX" != no &&
11497 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11498 # have to relink, otherwise we might link with an installed library
11499 # when we should be linking with a yet-to-be-installed one
11500 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11501 test "$hardcode_minus_L_CXX" != no; then
11502 # Linking always hardcodes the temporary library directory.
11503 hardcode_action_CXX=relink
11504 else
11505 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11506 hardcode_action_CXX=immediate
11507 fi
11508else
11509 # We cannot hardcode anything, or else we can only hardcode existing
11510 # directories.
11511 hardcode_action_CXX=unsupported
11512fi
11513echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11514echo "${ECHO_T}$hardcode_action_CXX" >&6
11515
11516if test "$hardcode_action_CXX" = relink; then
11517 # Fast installation is not supported
11518 enable_fast_install=no
11519elif test "$shlibpath_overrides_runpath" = yes ||
11520 test "$enable_shared" = no; then
11521 # Fast installation is not necessary
11522 enable_fast_install=needless
11523fi
11524
11525striplib=
11526old_striplib=
11527echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11528echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11529if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11530 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11531 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11532 echo "$as_me:$LINENO: result: yes" >&5
11533echo "${ECHO_T}yes" >&6
11534else
11535# FIXME - insert some real tests, host_os isn't really good enough
11536 case $host_os in
11537 darwin*)
11538 if test -n "$STRIP" ; then
11539 striplib="$STRIP -x"
11540 echo "$as_me:$LINENO: result: yes" >&5
11541echo "${ECHO_T}yes" >&6
11542 else
11543 echo "$as_me:$LINENO: result: no" >&5
11544echo "${ECHO_T}no" >&6
11545fi
11546 ;;
11547 *)
11548 echo "$as_me:$LINENO: result: no" >&5
11549echo "${ECHO_T}no" >&6
11550 ;;
11551 esac
11552fi
11553
John Criswell47fdd832003-07-14 16:52:07 +000011554if test "x$enable_dlopen" != xyes; then
11555 enable_dlopen=unknown
11556 enable_dlopen_self=unknown
11557 enable_dlopen_self_static=unknown
11558else
11559 lt_cv_dlopen=no
11560 lt_cv_dlopen_libs=
11561
11562 case $host_os in
11563 beos*)
11564 lt_cv_dlopen="load_add_on"
11565 lt_cv_dlopen_libs=
11566 lt_cv_dlopen_self=yes
11567 ;;
11568
11569 mingw* | pw32*)
11570 lt_cv_dlopen="LoadLibrary"
11571 lt_cv_dlopen_libs=
11572 ;;
11573
11574 cygwin*)
11575 lt_cv_dlopen="dlopen"
11576 lt_cv_dlopen_libs=
11577 ;;
11578
11579 darwin*)
11580 # if libdl is installed we need to link against it
11581 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11582echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11583if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11585else
11586 ac_check_lib_save_LIBS=$LIBS
11587LIBS="-ldl $LIBS"
11588cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011589/* confdefs.h. */
11590_ACEOF
11591cat confdefs.h >>conftest.$ac_ext
11592cat >>conftest.$ac_ext <<_ACEOF
11593/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011594
11595/* Override any gcc2 internal prototype to avoid an error. */
11596#ifdef __cplusplus
11597extern "C"
11598#endif
11599/* We use char because int might match the return type of a gcc2
11600 builtin and then its argument prototype would still apply. */
11601char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011602int
11603main ()
11604{
11605dlopen ();
11606 ;
11607 return 0;
11608}
11609_ACEOF
11610rm -f conftest.$ac_objext conftest$ac_exeext
11611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000011612 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011613 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000011614 grep -v '^ *+' conftest.er1 >conftest.err
11615 rm -f conftest.er1
11616 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000011619 { ac_try='test -z "$ac_cxx_werror_flag"
11620 || test ! -s conftest.err'
11621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622 (eval $ac_try) 2>&5
11623 ac_status=$?
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; } &&
11626 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628 (eval $ac_try) 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; }; then
11632 ac_cv_lib_dl_dlopen=yes
11633else
11634 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011635sed 's/^/| /' conftest.$ac_ext >&5
11636
John Criswell47fdd832003-07-14 16:52:07 +000011637ac_cv_lib_dl_dlopen=no
11638fi
Reid Spencer17041682004-09-05 17:48:32 +000011639rm -f conftest.err conftest.$ac_objext \
11640 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011641LIBS=$ac_check_lib_save_LIBS
11642fi
11643echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11644echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11645if test $ac_cv_lib_dl_dlopen = yes; then
11646 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11647else
11648
11649 lt_cv_dlopen="dyld"
11650 lt_cv_dlopen_libs=
11651 lt_cv_dlopen_self=yes
11652
11653fi
11654
11655 ;;
11656
11657 *)
11658 echo "$as_me:$LINENO: checking for shl_load" >&5
11659echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11660if test "${ac_cv_func_shl_load+set}" = set; then
11661 echo $ECHO_N "(cached) $ECHO_C" >&6
11662else
11663 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011664/* confdefs.h. */
11665_ACEOF
11666cat confdefs.h >>conftest.$ac_ext
11667cat >>conftest.$ac_ext <<_ACEOF
11668/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +000011669/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11671#define shl_load innocuous_shl_load
11672
John Criswell47fdd832003-07-14 16:52:07 +000011673/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011674 which can conflict with char shl_load (); below.
11675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11676 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +000011677
John Criswell0c38eaf2003-09-10 15:17:25 +000011678#ifdef __STDC__
11679# include <limits.h>
11680#else
11681# include <assert.h>
11682#endif
Reid Spencer17041682004-09-05 17:48:32 +000011683
11684#undef shl_load
11685
John Criswell47fdd832003-07-14 16:52:07 +000011686/* Override any gcc2 internal prototype to avoid an error. */
11687#ifdef __cplusplus
11688extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011689{
John Criswell47fdd832003-07-14 16:52:07 +000011690#endif
11691/* We use char because int might match the return type of a gcc2
11692 builtin and then its argument prototype would still apply. */
11693char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011694/* The GNU C library defines this for functions which it implements
11695 to always fail with ENOSYS. Some functions are actually named
11696 something starting with __ and the normal name is an alias. */
11697#if defined (__stub_shl_load) || defined (__stub___shl_load)
11698choke me
11699#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011700char (*f) () = shl_load;
11701#endif
11702#ifdef __cplusplus
11703}
John Criswell47fdd832003-07-14 16:52:07 +000011704#endif
11705
John Criswell0c38eaf2003-09-10 15:17:25 +000011706int
11707main ()
11708{
11709return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011710 ;
11711 return 0;
11712}
11713_ACEOF
11714rm -f conftest.$ac_objext conftest$ac_exeext
11715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000011716 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011717 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000011718 grep -v '^ *+' conftest.er1 >conftest.err
11719 rm -f conftest.er1
11720 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000011723 { ac_try='test -z "$ac_cxx_werror_flag"
11724 || test ! -s conftest.err'
11725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726 (eval $ac_try) 2>&5
11727 ac_status=$?
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); }; } &&
11730 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732 (eval $ac_try) 2>&5
11733 ac_status=$?
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); }; }; then
11736 ac_cv_func_shl_load=yes
11737else
11738 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011739sed 's/^/| /' conftest.$ac_ext >&5
11740
John Criswell47fdd832003-07-14 16:52:07 +000011741ac_cv_func_shl_load=no
11742fi
Reid Spencer17041682004-09-05 17:48:32 +000011743rm -f conftest.err conftest.$ac_objext \
11744 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011745fi
11746echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11747echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11748if test $ac_cv_func_shl_load = yes; then
11749 lt_cv_dlopen="shl_load"
11750else
11751 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11752echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11753if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11755else
11756 ac_check_lib_save_LIBS=$LIBS
11757LIBS="-ldld $LIBS"
11758cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011759/* confdefs.h. */
11760_ACEOF
11761cat confdefs.h >>conftest.$ac_ext
11762cat >>conftest.$ac_ext <<_ACEOF
11763/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011764
11765/* Override any gcc2 internal prototype to avoid an error. */
11766#ifdef __cplusplus
11767extern "C"
11768#endif
11769/* We use char because int might match the return type of a gcc2
11770 builtin and then its argument prototype would still apply. */
11771char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011772int
11773main ()
11774{
11775shl_load ();
11776 ;
11777 return 0;
11778}
11779_ACEOF
11780rm -f conftest.$ac_objext conftest$ac_exeext
11781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000011782 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011783 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000011784 grep -v '^ *+' conftest.er1 >conftest.err
11785 rm -f conftest.er1
11786 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000011789 { ac_try='test -z "$ac_cxx_werror_flag"
11790 || test ! -s conftest.err'
11791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792 (eval $ac_try) 2>&5
11793 ac_status=$?
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; } &&
11796 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; }; then
11802 ac_cv_lib_dld_shl_load=yes
11803else
11804 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011805sed 's/^/| /' conftest.$ac_ext >&5
11806
John Criswell47fdd832003-07-14 16:52:07 +000011807ac_cv_lib_dld_shl_load=no
11808fi
Reid Spencer17041682004-09-05 17:48:32 +000011809rm -f conftest.err conftest.$ac_objext \
11810 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011811LIBS=$ac_check_lib_save_LIBS
11812fi
11813echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11814echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11815if test $ac_cv_lib_dld_shl_load = yes; then
11816 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11817else
11818 echo "$as_me:$LINENO: checking for dlopen" >&5
11819echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11820if test "${ac_cv_func_dlopen+set}" = set; then
11821 echo $ECHO_N "(cached) $ECHO_C" >&6
11822else
11823 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011824/* confdefs.h. */
11825_ACEOF
11826cat confdefs.h >>conftest.$ac_ext
11827cat >>conftest.$ac_ext <<_ACEOF
11828/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +000011829/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11831#define dlopen innocuous_dlopen
11832
John Criswell47fdd832003-07-14 16:52:07 +000011833/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011834 which can conflict with char dlopen (); below.
11835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11836 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +000011837
John Criswell0c38eaf2003-09-10 15:17:25 +000011838#ifdef __STDC__
11839# include <limits.h>
11840#else
11841# include <assert.h>
11842#endif
Reid Spencer17041682004-09-05 17:48:32 +000011843
11844#undef dlopen
11845
John Criswell47fdd832003-07-14 16:52:07 +000011846/* Override any gcc2 internal prototype to avoid an error. */
11847#ifdef __cplusplus
11848extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011849{
John Criswell47fdd832003-07-14 16:52:07 +000011850#endif
11851/* We use char because int might match the return type of a gcc2
11852 builtin and then its argument prototype would still apply. */
11853char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011854/* The GNU C library defines this for functions which it implements
11855 to always fail with ENOSYS. Some functions are actually named
11856 something starting with __ and the normal name is an alias. */
11857#if defined (__stub_dlopen) || defined (__stub___dlopen)
11858choke me
11859#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011860char (*f) () = dlopen;
11861#endif
11862#ifdef __cplusplus
11863}
John Criswell47fdd832003-07-14 16:52:07 +000011864#endif
11865
John Criswell0c38eaf2003-09-10 15:17:25 +000011866int
11867main ()
11868{
11869return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011870 ;
11871 return 0;
11872}
11873_ACEOF
11874rm -f conftest.$ac_objext conftest$ac_exeext
11875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000011876 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011877 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000011878 grep -v '^ *+' conftest.er1 >conftest.err
11879 rm -f conftest.er1
11880 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000011883 { ac_try='test -z "$ac_cxx_werror_flag"
11884 || test ! -s conftest.err'
11885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886 (eval $ac_try) 2>&5
11887 ac_status=$?
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); }; } &&
11890 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892 (eval $ac_try) 2>&5
11893 ac_status=$?
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); }; }; then
11896 ac_cv_func_dlopen=yes
11897else
11898 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011899sed 's/^/| /' conftest.$ac_ext >&5
11900
John Criswell47fdd832003-07-14 16:52:07 +000011901ac_cv_func_dlopen=no
11902fi
Reid Spencer17041682004-09-05 17:48:32 +000011903rm -f conftest.err conftest.$ac_objext \
11904 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011905fi
11906echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11907echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11908if test $ac_cv_func_dlopen = yes; then
11909 lt_cv_dlopen="dlopen"
11910else
11911 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11912echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11913if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11915else
11916 ac_check_lib_save_LIBS=$LIBS
11917LIBS="-ldl $LIBS"
11918cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011919/* confdefs.h. */
11920_ACEOF
11921cat confdefs.h >>conftest.$ac_ext
11922cat >>conftest.$ac_ext <<_ACEOF
11923/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011924
11925/* Override any gcc2 internal prototype to avoid an error. */
11926#ifdef __cplusplus
11927extern "C"
11928#endif
11929/* We use char because int might match the return type of a gcc2
11930 builtin and then its argument prototype would still apply. */
11931char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011932int
11933main ()
11934{
11935dlopen ();
11936 ;
11937 return 0;
11938}
11939_ACEOF
11940rm -f conftest.$ac_objext conftest$ac_exeext
11941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000011942 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011943 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000011944 grep -v '^ *+' conftest.er1 >conftest.err
11945 rm -f conftest.er1
11946 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000011949 { ac_try='test -z "$ac_cxx_werror_flag"
11950 || test ! -s conftest.err'
11951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952 (eval $ac_try) 2>&5
11953 ac_status=$?
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; } &&
11956 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11958 (eval $ac_try) 2>&5
11959 ac_status=$?
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); }; }; then
11962 ac_cv_lib_dl_dlopen=yes
11963else
11964 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011965sed 's/^/| /' conftest.$ac_ext >&5
11966
John Criswell47fdd832003-07-14 16:52:07 +000011967ac_cv_lib_dl_dlopen=no
11968fi
Reid Spencer17041682004-09-05 17:48:32 +000011969rm -f conftest.err conftest.$ac_objext \
11970 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011971LIBS=$ac_check_lib_save_LIBS
11972fi
11973echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11974echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11975if test $ac_cv_lib_dl_dlopen = yes; then
11976 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11977else
11978 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11979echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11980if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11982else
11983 ac_check_lib_save_LIBS=$LIBS
11984LIBS="-lsvld $LIBS"
11985cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011986/* confdefs.h. */
11987_ACEOF
11988cat confdefs.h >>conftest.$ac_ext
11989cat >>conftest.$ac_ext <<_ACEOF
11990/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011991
11992/* Override any gcc2 internal prototype to avoid an error. */
11993#ifdef __cplusplus
11994extern "C"
11995#endif
11996/* We use char because int might match the return type of a gcc2
11997 builtin and then its argument prototype would still apply. */
11998char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011999int
12000main ()
12001{
12002dlopen ();
12003 ;
12004 return 0;
12005}
12006_ACEOF
12007rm -f conftest.$ac_objext conftest$ac_exeext
12008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000012009 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012010 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000012011 grep -v '^ *+' conftest.er1 >conftest.err
12012 rm -f conftest.er1
12013 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000012016 { ac_try='test -z "$ac_cxx_werror_flag"
12017 || test ! -s conftest.err'
12018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12019 (eval $ac_try) 2>&5
12020 ac_status=$?
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); }; } &&
12023 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025 (eval $ac_try) 2>&5
12026 ac_status=$?
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); }; }; then
12029 ac_cv_lib_svld_dlopen=yes
12030else
12031 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012032sed 's/^/| /' conftest.$ac_ext >&5
12033
John Criswell47fdd832003-07-14 16:52:07 +000012034ac_cv_lib_svld_dlopen=no
12035fi
Reid Spencer17041682004-09-05 17:48:32 +000012036rm -f conftest.err conftest.$ac_objext \
12037 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012038LIBS=$ac_check_lib_save_LIBS
12039fi
12040echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12041echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12042if test $ac_cv_lib_svld_dlopen = yes; then
12043 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12044else
12045 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12046echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12047if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12049else
12050 ac_check_lib_save_LIBS=$LIBS
12051LIBS="-ldld $LIBS"
12052cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012053/* confdefs.h. */
12054_ACEOF
12055cat confdefs.h >>conftest.$ac_ext
12056cat >>conftest.$ac_ext <<_ACEOF
12057/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012058
12059/* Override any gcc2 internal prototype to avoid an error. */
12060#ifdef __cplusplus
12061extern "C"
12062#endif
12063/* We use char because int might match the return type of a gcc2
12064 builtin and then its argument prototype would still apply. */
12065char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012066int
12067main ()
12068{
12069dld_link ();
12070 ;
12071 return 0;
12072}
12073_ACEOF
12074rm -f conftest.$ac_objext conftest$ac_exeext
12075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000012076 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012077 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000012078 grep -v '^ *+' conftest.er1 >conftest.err
12079 rm -f conftest.er1
12080 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000012083 { ac_try='test -z "$ac_cxx_werror_flag"
12084 || test ! -s conftest.err'
12085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12086 (eval $ac_try) 2>&5
12087 ac_status=$?
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; } &&
12090 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12092 (eval $ac_try) 2>&5
12093 ac_status=$?
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); }; }; then
12096 ac_cv_lib_dld_dld_link=yes
12097else
12098 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012099sed 's/^/| /' conftest.$ac_ext >&5
12100
John Criswell47fdd832003-07-14 16:52:07 +000012101ac_cv_lib_dld_dld_link=no
12102fi
Reid Spencer17041682004-09-05 17:48:32 +000012103rm -f conftest.err conftest.$ac_objext \
12104 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012105LIBS=$ac_check_lib_save_LIBS
12106fi
12107echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12108echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12109if test $ac_cv_lib_dld_dld_link = yes; then
12110 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12111fi
12112
12113
12114fi
12115
12116
12117fi
12118
12119
12120fi
12121
12122
12123fi
12124
12125
12126fi
12127
12128 ;;
12129 esac
12130
12131 if test "x$lt_cv_dlopen" != xno; then
12132 enable_dlopen=yes
12133 else
12134 enable_dlopen=no
12135 fi
12136
12137 case $lt_cv_dlopen in
12138 dlopen)
12139 save_CPPFLAGS="$CPPFLAGS"
12140 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12141
12142 save_LDFLAGS="$LDFLAGS"
12143 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12144
12145 save_LIBS="$LIBS"
12146 LIBS="$lt_cv_dlopen_libs $LIBS"
12147
12148 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12149echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12150if test "${lt_cv_dlopen_self+set}" = set; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
12152else
12153 if test "$cross_compiling" = yes; then :
12154 lt_cv_dlopen_self=cross
12155else
12156 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12157 lt_status=$lt_dlunknown
12158 cat > conftest.$ac_ext <<EOF
Reid Spencer9751dbf2004-09-07 18:04:45 +000012159#line 12159 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012160#include "confdefs.h"
12161
12162#if HAVE_DLFCN_H
12163#include <dlfcn.h>
12164#endif
12165
12166#include <stdio.h>
12167
12168#ifdef RTLD_GLOBAL
12169# define LT_DLGLOBAL RTLD_GLOBAL
12170#else
12171# ifdef DL_GLOBAL
12172# define LT_DLGLOBAL DL_GLOBAL
12173# else
12174# define LT_DLGLOBAL 0
12175# endif
12176#endif
12177
12178/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12179 find out it does not work in some platform. */
12180#ifndef LT_DLLAZY_OR_NOW
12181# ifdef RTLD_LAZY
12182# define LT_DLLAZY_OR_NOW RTLD_LAZY
12183# else
12184# ifdef DL_LAZY
12185# define LT_DLLAZY_OR_NOW DL_LAZY
12186# else
12187# ifdef RTLD_NOW
12188# define LT_DLLAZY_OR_NOW RTLD_NOW
12189# else
12190# ifdef DL_NOW
12191# define LT_DLLAZY_OR_NOW DL_NOW
12192# else
12193# define LT_DLLAZY_OR_NOW 0
12194# endif
12195# endif
12196# endif
12197# endif
12198#endif
12199
12200#ifdef __cplusplus
12201extern "C" void exit (int);
12202#endif
12203
12204void fnord() { int i=42;}
12205int main ()
12206{
12207 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12208 int status = $lt_dlunknown;
12209
12210 if (self)
12211 {
12212 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12213 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12214 /* dlclose (self); */
12215 }
12216
12217 exit (status);
12218}
12219EOF
12220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12221 (eval $ac_link) 2>&5
12222 ac_status=$?
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12225 (./conftest; exit; ) 2>/dev/null
12226 lt_status=$?
12227 case x$lt_status in
12228 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12229 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12230 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12231 esac
12232 else :
12233 # compilation failed
12234 lt_cv_dlopen_self=no
12235 fi
12236fi
12237rm -fr conftest*
12238
12239
12240fi
12241echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12242echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12243
12244 if test "x$lt_cv_dlopen_self" = xyes; then
12245 LDFLAGS="$LDFLAGS $link_static_flag"
12246 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12247echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12248if test "${lt_cv_dlopen_self_static+set}" = set; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12250else
12251 if test "$cross_compiling" = yes; then :
12252 lt_cv_dlopen_self_static=cross
12253else
12254 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12255 lt_status=$lt_dlunknown
12256 cat > conftest.$ac_ext <<EOF
Reid Spencer9751dbf2004-09-07 18:04:45 +000012257#line 12257 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012258#include "confdefs.h"
12259
12260#if HAVE_DLFCN_H
12261#include <dlfcn.h>
12262#endif
12263
12264#include <stdio.h>
12265
12266#ifdef RTLD_GLOBAL
12267# define LT_DLGLOBAL RTLD_GLOBAL
12268#else
12269# ifdef DL_GLOBAL
12270# define LT_DLGLOBAL DL_GLOBAL
12271# else
12272# define LT_DLGLOBAL 0
12273# endif
12274#endif
12275
12276/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12277 find out it does not work in some platform. */
12278#ifndef LT_DLLAZY_OR_NOW
12279# ifdef RTLD_LAZY
12280# define LT_DLLAZY_OR_NOW RTLD_LAZY
12281# else
12282# ifdef DL_LAZY
12283# define LT_DLLAZY_OR_NOW DL_LAZY
12284# else
12285# ifdef RTLD_NOW
12286# define LT_DLLAZY_OR_NOW RTLD_NOW
12287# else
12288# ifdef DL_NOW
12289# define LT_DLLAZY_OR_NOW DL_NOW
12290# else
12291# define LT_DLLAZY_OR_NOW 0
12292# endif
12293# endif
12294# endif
12295# endif
12296#endif
12297
12298#ifdef __cplusplus
12299extern "C" void exit (int);
12300#endif
12301
12302void fnord() { int i=42;}
12303int main ()
12304{
12305 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12306 int status = $lt_dlunknown;
12307
12308 if (self)
12309 {
12310 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12311 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12312 /* dlclose (self); */
12313 }
12314
12315 exit (status);
12316}
12317EOF
12318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12319 (eval $ac_link) 2>&5
12320 ac_status=$?
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12323 (./conftest; exit; ) 2>/dev/null
12324 lt_status=$?
12325 case x$lt_status in
12326 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12327 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12328 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12329 esac
12330 else :
12331 # compilation failed
12332 lt_cv_dlopen_self_static=no
12333 fi
12334fi
12335rm -fr conftest*
12336
12337
12338fi
12339echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12340echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12341 fi
12342
12343 CPPFLAGS="$save_CPPFLAGS"
12344 LDFLAGS="$save_LDFLAGS"
12345 LIBS="$save_LIBS"
12346 ;;
12347 esac
12348
12349 case $lt_cv_dlopen_self in
12350 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12351 *) enable_dlopen_self=unknown ;;
12352 esac
12353
12354 case $lt_cv_dlopen_self_static in
12355 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12356 *) enable_dlopen_self_static=unknown ;;
12357 esac
12358fi
12359
12360
12361# The else clause should only fire when bootstrapping the
12362# libtool distribution, otherwise you forgot to ship ltmain.sh
12363# with your package, and you will get complaints that there are
12364# no rules to generate ltmain.sh.
12365if test -f "$ltmain"; then
12366 # See if we are running on zsh, and set the options which allow our commands through
12367 # without removal of \ escapes.
12368 if test -n "${ZSH_VERSION+set}" ; then
12369 setopt NO_GLOB_SUBST
12370 fi
12371 # Now quote all the things that may contain metacharacters while being
12372 # careful not to overquote the AC_SUBSTed values. We take copies of the
12373 # variables and quote the copies for generation of the libtool script.
Reid Spencer9751dbf2004-09-07 18:04:45 +000012374 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000012375 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12376 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12377 deplibs_check_method reload_flag reload_cmds need_locks \
12378 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12379 lt_cv_sys_global_symbol_to_c_name_address \
12380 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12381 old_postinstall_cmds old_postuninstall_cmds \
12382 compiler_CXX \
12383 CC_CXX \
12384 LD_CXX \
12385 lt_prog_compiler_wl_CXX \
12386 lt_prog_compiler_pic_CXX \
12387 lt_prog_compiler_static_CXX \
12388 lt_prog_compiler_no_builtin_flag_CXX \
12389 export_dynamic_flag_spec_CXX \
12390 thread_safe_flag_spec_CXX \
12391 whole_archive_flag_spec_CXX \
12392 enable_shared_with_static_runtimes_CXX \
12393 old_archive_cmds_CXX \
12394 old_archive_from_new_cmds_CXX \
12395 predep_objects_CXX \
12396 postdep_objects_CXX \
12397 predeps_CXX \
12398 postdeps_CXX \
12399 compiler_lib_search_path_CXX \
12400 archive_cmds_CXX \
12401 archive_expsym_cmds_CXX \
12402 postinstall_cmds_CXX \
12403 postuninstall_cmds_CXX \
12404 old_archive_from_expsyms_cmds_CXX \
12405 allow_undefined_flag_CXX \
12406 no_undefined_flag_CXX \
12407 export_symbols_cmds_CXX \
12408 hardcode_libdir_flag_spec_CXX \
12409 hardcode_libdir_flag_spec_ld_CXX \
12410 hardcode_libdir_separator_CXX \
12411 hardcode_automatic_CXX \
12412 module_cmds_CXX \
12413 module_expsym_cmds_CXX \
12414 lt_cv_prog_compiler_c_o_CXX \
12415 exclude_expsyms_CXX \
12416 include_expsyms_CXX; do
12417
12418 case $var in
12419 old_archive_cmds_CXX | \
12420 old_archive_from_new_cmds_CXX | \
12421 archive_cmds_CXX | \
12422 archive_expsym_cmds_CXX | \
12423 module_cmds_CXX | \
12424 module_expsym_cmds_CXX | \
12425 old_archive_from_expsyms_cmds_CXX | \
12426 export_symbols_cmds_CXX | \
12427 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12428 postinstall_cmds | postuninstall_cmds | \
12429 old_postinstall_cmds | old_postuninstall_cmds | \
12430 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12431 # Double-quote double-evaled strings.
12432 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12433 ;;
12434 *)
12435 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12436 ;;
12437 esac
12438 done
12439
12440 case $lt_echo in
12441 *'\$0 --fallback-echo"')
12442 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12443 ;;
12444 esac
12445
12446cfgfile="$ofile"
12447
12448 cat <<__EOF__ >> "$cfgfile"
12449# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12450
12451# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12452
12453# Shell to use when invoking shell scripts.
12454SHELL=$lt_SHELL
12455
12456# Whether or not to build shared libraries.
12457build_libtool_libs=$enable_shared
12458
12459# Whether or not to build static libraries.
12460build_old_libs=$enable_static
12461
12462# Whether or not to add -lc for building shared libraries.
12463build_libtool_need_lc=$archive_cmds_need_lc_CXX
12464
12465# Whether or not to disallow shared libs when runtime libs are static
12466allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12467
12468# Whether or not to optimize for fast installation.
12469fast_install=$enable_fast_install
12470
12471# The host system.
12472host_alias=$host_alias
12473host=$host
12474
12475# An echo program that does not interpret backslashes.
12476echo=$lt_echo
12477
12478# The archiver.
12479AR=$lt_AR
12480AR_FLAGS=$lt_AR_FLAGS
12481
12482# A C compiler.
12483LTCC=$lt_LTCC
12484
12485# A language-specific compiler.
12486CC=$lt_compiler_CXX
12487
12488# Is the compiler the GNU C compiler?
12489with_gcc=$GCC_CXX
12490
12491# An ERE matcher.
12492EGREP=$lt_EGREP
12493
12494# The linker used to build libraries.
12495LD=$lt_LD_CXX
12496
12497# Whether we need hard or soft links.
12498LN_S=$lt_LN_S
12499
12500# A BSD-compatible nm program.
12501NM=$lt_NM
12502
12503# A symbol stripping program
Reid Spencer9751dbf2004-09-07 18:04:45 +000012504STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000012505
12506# Used to examine libraries when file_magic_cmd begins "file"
12507MAGIC_CMD=$MAGIC_CMD
12508
12509# Used on cygwin: DLL creation program.
12510DLLTOOL="$DLLTOOL"
12511
12512# Used on cygwin: object dumper.
12513OBJDUMP="$OBJDUMP"
12514
12515# Used on cygwin: assembler.
12516AS="$AS"
12517
12518# The name of the directory that contains temporary libtool files.
12519objdir=$objdir
12520
12521# How to create reloadable object files.
12522reload_flag=$lt_reload_flag
12523reload_cmds=$lt_reload_cmds
12524
12525# How to pass a linker flag through the compiler.
12526wl=$lt_lt_prog_compiler_wl_CXX
12527
12528# Object file suffix (normally "o").
12529objext="$ac_objext"
12530
12531# Old archive suffix (normally "a").
12532libext="$libext"
12533
12534# Shared library suffix (normally ".so").
12535shrext='$shrext'
12536
12537# Executable file suffix (normally "").
12538exeext="$exeext"
12539
12540# Additional compiler flags for building library objects.
12541pic_flag=$lt_lt_prog_compiler_pic_CXX
12542pic_mode=$pic_mode
12543
12544# What is the maximum length of a command?
12545max_cmd_len=$lt_cv_sys_max_cmd_len
12546
12547# Does compiler simultaneously support -c and -o options?
12548compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12549
12550# Must we lock files when doing compilation ?
12551need_locks=$lt_need_locks
12552
12553# Do we need the lib prefix for modules?
12554need_lib_prefix=$need_lib_prefix
12555
12556# Do we need a version for libraries?
12557need_version=$need_version
12558
12559# Whether dlopen is supported.
12560dlopen_support=$enable_dlopen
12561
12562# Whether dlopen of programs is supported.
12563dlopen_self=$enable_dlopen_self
12564
12565# Whether dlopen of statically linked programs is supported.
12566dlopen_self_static=$enable_dlopen_self_static
12567
12568# Compiler flag to prevent dynamic linking.
12569link_static_flag=$lt_lt_prog_compiler_static_CXX
12570
12571# Compiler flag to turn off builtin functions.
12572no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12573
12574# Compiler flag to allow reflexive dlopens.
12575export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12576
12577# Compiler flag to generate shared objects directly from archives.
12578whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12579
12580# Compiler flag to generate thread-safe objects.
12581thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12582
12583# Library versioning type.
12584version_type=$version_type
12585
12586# Format of library name prefix.
12587libname_spec=$lt_libname_spec
12588
12589# List of archive names. First name is the real one, the rest are links.
12590# The last name is the one that the linker finds with -lNAME.
12591library_names_spec=$lt_library_names_spec
12592
12593# The coded name of the library, if different from the real name.
12594soname_spec=$lt_soname_spec
12595
12596# Commands used to build and install an old-style archive.
12597RANLIB=$lt_RANLIB
12598old_archive_cmds=$lt_old_archive_cmds_CXX
12599old_postinstall_cmds=$lt_old_postinstall_cmds
12600old_postuninstall_cmds=$lt_old_postuninstall_cmds
12601
12602# Create an old-style archive from a shared archive.
12603old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12604
12605# Create a temporary old-style archive to link instead of a shared archive.
12606old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12607
12608# Commands used to build and install a shared archive.
12609archive_cmds=$lt_archive_cmds_CXX
12610archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12611postinstall_cmds=$lt_postinstall_cmds
12612postuninstall_cmds=$lt_postuninstall_cmds
12613
12614# Commands used to build a loadable module (assumed same as above if empty)
12615module_cmds=$lt_module_cmds_CXX
12616module_expsym_cmds=$lt_module_expsym_cmds_CXX
12617
12618# Commands to strip libraries.
12619old_striplib=$lt_old_striplib
12620striplib=$lt_striplib
12621
12622# Dependencies to place before the objects being linked to create a
12623# shared library.
12624predep_objects=$lt_predep_objects_CXX
12625
12626# Dependencies to place after the objects being linked to create a
12627# shared library.
12628postdep_objects=$lt_postdep_objects_CXX
12629
12630# Dependencies to place before the objects being linked to create a
12631# shared library.
12632predeps=$lt_predeps_CXX
12633
12634# Dependencies to place after the objects being linked to create a
12635# shared library.
12636postdeps=$lt_postdeps_CXX
12637
12638# The library search path used internally by the compiler when linking
12639# a shared library.
12640compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12641
12642# Method to check whether dependent libraries are shared objects.
12643deplibs_check_method=$lt_deplibs_check_method
12644
12645# Command to use when deplibs_check_method == file_magic.
12646file_magic_cmd=$lt_file_magic_cmd
12647
12648# Flag that allows shared libraries with undefined symbols to be built.
12649allow_undefined_flag=$lt_allow_undefined_flag_CXX
12650
12651# Flag that forces no undefined symbols.
12652no_undefined_flag=$lt_no_undefined_flag_CXX
12653
12654# Commands used to finish a libtool library installation in a directory.
12655finish_cmds=$lt_finish_cmds
12656
12657# Same as above, but a single script fragment to be evaled but not shown.
12658finish_eval=$lt_finish_eval
12659
12660# Take the output of nm and produce a listing of raw symbols and C names.
12661global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12662
12663# Transform the output of nm in a proper C declaration
12664global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12665
12666# Transform the output of nm in a C name address pair
12667global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12668
12669# This is the shared library runtime path variable.
12670runpath_var=$runpath_var
12671
12672# This is the shared library path variable.
12673shlibpath_var=$shlibpath_var
12674
12675# Is shlibpath searched before the hard-coded library search path?
12676shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12677
12678# How to hardcode a shared library path into an executable.
12679hardcode_action=$hardcode_action_CXX
12680
12681# Whether we should hardcode library paths into libraries.
12682hardcode_into_libs=$hardcode_into_libs
12683
12684# Flag to hardcode \$libdir into a binary during linking.
12685# This must work even if \$libdir does not exist.
12686hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12687
12688# If ld is used when linking, flag to hardcode \$libdir into
12689# a binary during linking. This must work even if \$libdir does
12690# not exist.
12691hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12692
12693# Whether we need a single -rpath flag with a separated argument.
12694hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12695
12696# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12697# resulting binary.
12698hardcode_direct=$hardcode_direct_CXX
12699
12700# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12701# resulting binary.
12702hardcode_minus_L=$hardcode_minus_L_CXX
12703
12704# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12705# the resulting binary.
12706hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12707
12708# Set to yes if building a shared library automatically hardcodes DIR into the library
12709# and all subsequent libraries and executables linked against it.
12710hardcode_automatic=$hardcode_automatic_CXX
12711
12712# Variables whose values should be saved in libtool wrapper scripts and
12713# restored at relink time.
12714variables_saved_for_relink="$variables_saved_for_relink"
12715
12716# Whether libtool must link a program against all its dependency libraries.
12717link_all_deplibs=$link_all_deplibs_CXX
12718
12719# Compile-time system search path for libraries
12720sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12721
12722# Run-time system search path for libraries
12723sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12724
12725# Fix the shell variable \$srcfile for the compiler.
12726fix_srcfile_path="$fix_srcfile_path_CXX"
12727
12728# Set to yes if exported symbols are required.
12729always_export_symbols=$always_export_symbols_CXX
12730
12731# The commands to list exported symbols.
12732export_symbols_cmds=$lt_export_symbols_cmds_CXX
12733
12734# The commands to extract the exported symbol list from a shared archive.
12735extract_expsyms_cmds=$lt_extract_expsyms_cmds
12736
12737# Symbols that should not be listed in the preloaded symbols.
12738exclude_expsyms=$lt_exclude_expsyms_CXX
12739
12740# Symbols that must always be exported.
12741include_expsyms=$lt_include_expsyms_CXX
12742
12743# ### END LIBTOOL TAG CONFIG: $tagname
12744
12745__EOF__
12746
12747
12748else
12749 # If there is no Makefile yet, we rely on a make rule to execute
12750 # `config.status --recheck' to rerun these tests and create the
12751 # libtool script then.
12752 test -f Makefile && make "$ltmain"
12753fi
12754
12755
12756ac_ext=c
12757ac_cpp='$CPP $CPPFLAGS'
12758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12760ac_compiler_gnu=$ac_cv_c_compiler_gnu
12761
12762CC=$lt_save_CC
12763LDCXX=$LD
12764LD=$lt_save_LD
12765GCC=$lt_save_GCC
12766with_gnu_ldcxx=$with_gnu_ld
12767with_gnu_ld=$lt_save_with_gnu_ld
12768lt_cv_path_LDCXX=$lt_cv_path_LD
12769lt_cv_path_LD=$lt_save_path_LD
12770lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12771lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12772
12773 else
12774 tagname=""
12775 fi
12776 ;;
12777
12778 F77)
12779 if test -n "$F77" && test "X$F77" != "Xno"; then
12780
12781ac_ext=f
12782ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12783ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12784ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12785
12786
12787archive_cmds_need_lc_F77=no
12788allow_undefined_flag_F77=
12789always_export_symbols_F77=no
12790archive_expsym_cmds_F77=
12791export_dynamic_flag_spec_F77=
12792hardcode_direct_F77=no
12793hardcode_libdir_flag_spec_F77=
12794hardcode_libdir_flag_spec_ld_F77=
12795hardcode_libdir_separator_F77=
12796hardcode_minus_L_F77=no
12797hardcode_automatic_F77=no
12798module_cmds_F77=
12799module_expsym_cmds_F77=
12800link_all_deplibs_F77=unknown
12801old_archive_cmds_F77=$old_archive_cmds
12802no_undefined_flag_F77=
12803whole_archive_flag_spec_F77=
12804enable_shared_with_static_runtimes_F77=no
12805
12806# Source file extension for f77 test sources.
12807ac_ext=f
12808
12809# Object file extension for compiled f77 test sources.
12810objext=o
12811objext_F77=$objext
12812
12813# Code to be used in simple compile tests
12814lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12815
12816# Code to be used in simple link tests
12817lt_simple_link_test_code=" program t\n end\n"
12818
12819# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12820
12821# If no C compiler was specified, use CC.
12822LTCC=${LTCC-"$CC"}
12823
12824# Allow CC to be a program name with arguments.
12825compiler=$CC
12826
12827
12828# Allow CC to be a program name with arguments.
12829lt_save_CC="$CC"
12830CC=${F77-"f77"}
12831compiler=$CC
12832compiler_F77=$CC
12833cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12834
12835echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12836echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12837echo "$as_me:$LINENO: result: $can_build_shared" >&5
12838echo "${ECHO_T}$can_build_shared" >&6
12839
12840echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12841echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12842test "$can_build_shared" = "no" && enable_shared=no
12843
12844# On AIX, shared libraries and static libraries use the same namespace, and
12845# are all built from PIC.
12846case "$host_os" in
12847aix3*)
12848 test "$enable_shared" = yes && enable_static=no
12849 if test -n "$RANLIB"; then
12850 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12851 postinstall_cmds='$RANLIB $lib'
12852 fi
12853 ;;
12854aix4*)
12855 test "$enable_shared" = yes && enable_static=no
12856 ;;
12857esac
12858echo "$as_me:$LINENO: result: $enable_shared" >&5
12859echo "${ECHO_T}$enable_shared" >&6
12860
12861echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12862echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12863# Make sure either enable_shared or enable_static is yes.
12864test "$enable_shared" = yes || enable_static=yes
12865echo "$as_me:$LINENO: result: $enable_static" >&5
12866echo "${ECHO_T}$enable_static" >&6
12867
12868test "$ld_shlibs_F77" = no && can_build_shared=no
12869
12870GCC_F77="$G77"
12871LD_F77="$LD"
12872
12873lt_prog_compiler_wl_F77=
12874lt_prog_compiler_pic_F77=
12875lt_prog_compiler_static_F77=
12876
12877echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12878echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12879
12880 if test "$GCC" = yes; then
12881 lt_prog_compiler_wl_F77='-Wl,'
12882 lt_prog_compiler_static_F77='-static'
12883
12884 case $host_os in
12885 aix*)
12886 # All AIX code is PIC.
12887 if test "$host_cpu" = ia64; then
12888 # AIX 5 now supports IA64 processor
12889 lt_prog_compiler_static_F77='-Bstatic'
12890 fi
12891 ;;
12892
12893 amigaos*)
12894 # FIXME: we need at least 68020 code to build shared libraries, but
12895 # adding the `-m68020' flag to GCC prevents building anything better,
12896 # like `-m68040'.
12897 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12898 ;;
12899
12900 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12901 # PIC is the default for these OSes.
12902 ;;
12903
12904 mingw* | pw32* | os2*)
12905 # This hack is so that the source file can tell whether it is being
12906 # built for inclusion in a dll (and should export symbols for example).
12907 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12908 ;;
12909
12910 darwin* | rhapsody*)
12911 # PIC is the default on this platform
12912 # Common symbols not allowed in MH_DYLIB files
12913 lt_prog_compiler_pic_F77='-fno-common'
12914 ;;
12915
12916 msdosdjgpp*)
12917 # Just because we use GCC doesn't mean we suddenly get shared libraries
12918 # on systems that don't support them.
12919 lt_prog_compiler_can_build_shared_F77=no
12920 enable_shared=no
12921 ;;
12922
12923 sysv4*MP*)
12924 if test -d /usr/nec; then
12925 lt_prog_compiler_pic_F77=-Kconform_pic
12926 fi
12927 ;;
12928
12929 hpux*)
12930 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12931 # not for PA HP-UX.
12932 case "$host_cpu" in
12933 hppa*64*|ia64*)
12934 # +Z the default
12935 ;;
12936 *)
12937 lt_prog_compiler_pic_F77='-fPIC'
12938 ;;
12939 esac
12940 ;;
12941
12942 *)
12943 lt_prog_compiler_pic_F77='-fPIC'
12944 ;;
12945 esac
12946 else
12947 # PORTME Check for flag to pass linker flags through the system compiler.
12948 case $host_os in
12949 aix*)
12950 lt_prog_compiler_wl_F77='-Wl,'
12951 if test "$host_cpu" = ia64; then
12952 # AIX 5 now supports IA64 processor
12953 lt_prog_compiler_static_F77='-Bstatic'
12954 else
12955 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12956 fi
12957 ;;
12958
12959 mingw* | pw32* | os2*)
12960 # This hack is so that the source file can tell whether it is being
12961 # built for inclusion in a dll (and should export symbols for example).
12962 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12963 ;;
12964
12965 hpux9* | hpux10* | hpux11*)
12966 lt_prog_compiler_wl_F77='-Wl,'
12967 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12968 # not for PA HP-UX.
12969 case "$host_cpu" in
12970 hppa*64*|ia64*)
12971 # +Z the default
12972 ;;
12973 *)
12974 lt_prog_compiler_pic_F77='+Z'
12975 ;;
12976 esac
12977 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12978 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12979 ;;
12980
12981 irix5* | irix6* | nonstopux*)
12982 lt_prog_compiler_wl_F77='-Wl,'
12983 # PIC (with -KPIC) is the default.
12984 lt_prog_compiler_static_F77='-non_shared'
12985 ;;
12986
12987 newsos6)
12988 lt_prog_compiler_pic_F77='-KPIC'
12989 lt_prog_compiler_static_F77='-Bstatic'
12990 ;;
12991
12992 linux*)
12993 case $CC in
Reid Spencer9751dbf2004-09-07 18:04:45 +000012994 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000012995 lt_prog_compiler_wl_F77='-Wl,'
12996 lt_prog_compiler_pic_F77='-KPIC'
12997 lt_prog_compiler_static_F77='-static'
12998 ;;
Reid Spencer9751dbf2004-09-07 18:04:45 +000012999 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000013000 lt_prog_compiler_wl_F77='-Wl,'
13001 # All Alpha code is PIC.
13002 lt_prog_compiler_static_F77='-non_shared'
13003 ;;
13004 esac
13005 ;;
13006
13007 osf3* | osf4* | osf5*)
13008 lt_prog_compiler_wl_F77='-Wl,'
13009 # All OSF/1 code is PIC.
13010 lt_prog_compiler_static_F77='-non_shared'
13011 ;;
13012
13013 sco3.2v5*)
13014 lt_prog_compiler_pic_F77='-Kpic'
13015 lt_prog_compiler_static_F77='-dn'
13016 ;;
13017
13018 solaris*)
13019 lt_prog_compiler_wl_F77='-Wl,'
13020 lt_prog_compiler_pic_F77='-KPIC'
13021 lt_prog_compiler_static_F77='-Bstatic'
13022 ;;
13023
13024 sunos4*)
13025 lt_prog_compiler_wl_F77='-Qoption ld '
13026 lt_prog_compiler_pic_F77='-PIC'
13027 lt_prog_compiler_static_F77='-Bstatic'
13028 ;;
13029
13030 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13031 lt_prog_compiler_wl_F77='-Wl,'
13032 lt_prog_compiler_pic_F77='-KPIC'
13033 lt_prog_compiler_static_F77='-Bstatic'
13034 ;;
13035
13036 sysv4*MP*)
13037 if test -d /usr/nec ;then
13038 lt_prog_compiler_pic_F77='-Kconform_pic'
13039 lt_prog_compiler_static_F77='-Bstatic'
13040 fi
13041 ;;
13042
13043 uts4*)
13044 lt_prog_compiler_pic_F77='-pic'
13045 lt_prog_compiler_static_F77='-Bstatic'
13046 ;;
13047
13048 *)
13049 lt_prog_compiler_can_build_shared_F77=no
13050 ;;
13051 esac
13052 fi
13053
13054echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13055echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13056
13057#
13058# Check to make sure the PIC flag actually works.
13059#
13060if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000013061
13062echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013063echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13064if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13065 echo $ECHO_N "(cached) $ECHO_C" >&6
13066else
13067 lt_prog_compiler_pic_works_F77=no
13068 ac_outfile=conftest.$ac_objext
13069 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13070 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13071 # Insert the option either (1) after the last *FLAGS variable, or
13072 # (2) before a word containing "conftest.", or (3) at the end.
13073 # Note that $ac_compile itself does not contain backslashes and begins
13074 # with a dollar sign (not a hyphen), so the echo should work correctly.
13075 # The option is referenced via a variable to avoid confusing sed.
13076 lt_compile=`echo "$ac_compile" | $SED \
13077 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13079 -e 's:$: $lt_compiler_flag:'`
Reid Spencer9751dbf2004-09-07 18:04:45 +000013080 (eval echo "\"\$as_me:13080: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013081 (eval "$lt_compile" 2>conftest.err)
13082 ac_status=$?
13083 cat conftest.err >&5
Reid Spencer9751dbf2004-09-07 18:04:45 +000013084 echo "$as_me:13084: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013085 if (exit $ac_status) && test -s "$ac_outfile"; then
13086 # The compiler can only warn and ignore the option if not recognized
13087 # So say no if there are warnings
13088 if test ! -s conftest.err; then
13089 lt_prog_compiler_pic_works_F77=yes
13090 fi
13091 fi
13092 $rm conftest*
13093
13094fi
13095echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13096echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13097
13098if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13099 case $lt_prog_compiler_pic_F77 in
13100 "" | " "*) ;;
13101 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13102 esac
13103else
13104 lt_prog_compiler_pic_F77=
13105 lt_prog_compiler_can_build_shared_F77=no
13106fi
13107
13108fi
13109case "$host_os" in
13110 # For platforms which do not support PIC, -DPIC is meaningless:
13111 *djgpp*)
13112 lt_prog_compiler_pic_F77=
13113 ;;
13114 *)
13115 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13116 ;;
13117esac
13118
13119echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13120echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13121if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13122 echo $ECHO_N "(cached) $ECHO_C" >&6
13123else
13124 lt_cv_prog_compiler_c_o_F77=no
13125 $rm -r conftest 2>/dev/null
13126 mkdir conftest
13127 cd conftest
13128 mkdir out
13129 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13130
13131 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13132 # that will create temporary files in the current directory regardless of
13133 # the output directory. Thus, making CWD read-only will cause this test
13134 # to fail, enabling locking or at least warning the user not to do parallel
13135 # builds.
13136 chmod -w .
13137
13138 lt_compiler_flag="-o out/conftest2.$ac_objext"
13139 # Insert the option either (1) after the last *FLAGS variable, or
13140 # (2) before a word containing "conftest.", or (3) at the end.
13141 # Note that $ac_compile itself does not contain backslashes and begins
13142 # with a dollar sign (not a hyphen), so the echo should work correctly.
13143 lt_compile=`echo "$ac_compile" | $SED \
13144 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13145 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13146 -e 's:$: $lt_compiler_flag:'`
Reid Spencer9751dbf2004-09-07 18:04:45 +000013147 (eval echo "\"\$as_me:13147: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013148 (eval "$lt_compile" 2>out/conftest.err)
13149 ac_status=$?
13150 cat out/conftest.err >&5
Reid Spencer9751dbf2004-09-07 18:04:45 +000013151 echo "$as_me:13151: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013152 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13153 then
13154 # The compiler can only warn and ignore the option if not recognized
13155 # So say no if there are warnings
13156 if test ! -s out/conftest.err; then
13157 lt_cv_prog_compiler_c_o_F77=yes
13158 fi
13159 fi
13160 chmod u+w .
Reid Spencer9751dbf2004-09-07 18:04:45 +000013161 $rm conftest*
13162 # SGI C++ compiler will create directory out/ii_files/ for
13163 # template instantiation
13164 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13165 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000013166 cd ..
13167 rmdir conftest
13168 $rm conftest*
13169
13170fi
13171echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13172echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13173
13174
13175hard_links="nottested"
13176if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13177 # do not overwrite the value of need_locks provided by the user
13178 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13179echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13180 hard_links=yes
13181 $rm conftest*
13182 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13183 touch conftest.a
13184 ln conftest.a conftest.b 2>&5 || hard_links=no
13185 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13186 echo "$as_me:$LINENO: result: $hard_links" >&5
13187echo "${ECHO_T}$hard_links" >&6
13188 if test "$hard_links" = no; then
13189 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13190echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13191 need_locks=warn
13192 fi
13193else
13194 need_locks=no
13195fi
13196
13197echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13198echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13199
13200 runpath_var=
13201 allow_undefined_flag_F77=
13202 enable_shared_with_static_runtimes_F77=no
13203 archive_cmds_F77=
13204 archive_expsym_cmds_F77=
13205 old_archive_From_new_cmds_F77=
13206 old_archive_from_expsyms_cmds_F77=
13207 export_dynamic_flag_spec_F77=
13208 whole_archive_flag_spec_F77=
13209 thread_safe_flag_spec_F77=
13210 hardcode_libdir_flag_spec_F77=
13211 hardcode_libdir_flag_spec_ld_F77=
13212 hardcode_libdir_separator_F77=
13213 hardcode_direct_F77=no
13214 hardcode_minus_L_F77=no
13215 hardcode_shlibpath_var_F77=unsupported
13216 link_all_deplibs_F77=unknown
13217 hardcode_automatic_F77=no
13218 module_cmds_F77=
13219 module_expsym_cmds_F77=
13220 always_export_symbols_F77=no
13221 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13222 # include_expsyms should be a list of space-separated symbols to be *always*
13223 # included in the symbol list
13224 include_expsyms_F77=
13225 # exclude_expsyms can be an extended regexp of symbols to exclude
13226 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13227 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13228 # as well as any symbol that contains `d'.
13229 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13230 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13231 # platforms (ab)use it in PIC code, but their linkers get confused if
13232 # the symbol is explicitly referenced. Since portable code cannot
13233 # rely on this symbol name, it's probably fine to never include it in
13234 # preloaded symbol tables.
13235 extract_expsyms_cmds=
13236
13237 case $host_os in
13238 cygwin* | mingw* | pw32*)
13239 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13240 # When not using gcc, we currently assume that we are using
13241 # Microsoft Visual C++.
13242 if test "$GCC" != yes; then
13243 with_gnu_ld=no
13244 fi
13245 ;;
13246 openbsd*)
13247 with_gnu_ld=no
13248 ;;
13249 esac
13250
13251 ld_shlibs_F77=yes
13252 if test "$with_gnu_ld" = yes; then
13253 # If archive_cmds runs LD, not CC, wlarc should be empty
13254 wlarc='${wl}'
13255
13256 # See if GNU ld supports shared libraries.
13257 case $host_os in
13258 aix3* | aix4* | aix5*)
13259 # On AIX/PPC, the GNU linker is very broken
13260 if test "$host_cpu" != ia64; then
13261 ld_shlibs_F77=no
13262 cat <<EOF 1>&2
13263
13264*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13265*** to be unable to reliably create shared libraries on AIX.
13266*** Therefore, libtool is disabling shared libraries support. If you
13267*** really care for shared libraries, you may want to modify your PATH
13268*** so that a non-GNU linker is found, and then restart.
13269
13270EOF
13271 fi
13272 ;;
13273
13274 amigaos*)
13275 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)'
13276 hardcode_libdir_flag_spec_F77='-L$libdir'
13277 hardcode_minus_L_F77=yes
13278
13279 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13280 # that the semantics of dynamic libraries on AmigaOS, at least up
13281 # to version 4, is to share data among multiple programs linked
13282 # with the same dynamic library. Since this doesn't match the
13283 # behavior of shared libraries on other platforms, we can't use
13284 # them.
13285 ld_shlibs_F77=no
13286 ;;
13287
13288 beos*)
13289 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13290 allow_undefined_flag_F77=unsupported
13291 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13292 # support --undefined. This deserves some investigation. FIXME
13293 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13294 else
13295 ld_shlibs_F77=no
13296 fi
13297 ;;
13298
13299 cygwin* | mingw* | pw32*)
13300 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13301 # as there is no search path for DLLs.
13302 hardcode_libdir_flag_spec_F77='-L$libdir'
13303 allow_undefined_flag_F77=unsupported
13304 always_export_symbols_F77=no
13305 enable_shared_with_static_runtimes_F77=yes
13306 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13307
13308 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13309 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13310 # If the export-symbols file already is a .def file (1st line
13311 # is EXPORTS), use it as is; otherwise, prepend...
13312 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13313 cp $export_symbols $output_objdir/$soname.def;
13314 else
13315 echo EXPORTS > $output_objdir/$soname.def;
13316 cat $export_symbols >> $output_objdir/$soname.def;
13317 fi~
13318 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13319 else
13320 ld_shlibs=no
13321 fi
13322 ;;
13323
13324 netbsd*)
13325 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13326 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13327 wlarc=
13328 else
13329 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13330 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13331 fi
13332 ;;
13333
13334 solaris* | sysv5*)
13335 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13336 ld_shlibs_F77=no
13337 cat <<EOF 1>&2
13338
13339*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13340*** create shared libraries on Solaris systems. Therefore, libtool
13341*** is disabling shared libraries support. We urge you to upgrade GNU
13342*** binutils to release 2.9.1 or newer. Another option is to modify
13343*** your PATH or compiler configuration so that the native linker is
13344*** used, and then restart.
13345
13346EOF
13347 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13348 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13349 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13350 else
13351 ld_shlibs_F77=no
13352 fi
13353 ;;
13354
13355 sunos4*)
13356 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13357 wlarc=
13358 hardcode_direct_F77=yes
13359 hardcode_shlibpath_var_F77=no
13360 ;;
13361
13362 *)
13363 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13364 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13365 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13366 else
13367 ld_shlibs_F77=no
13368 fi
13369 ;;
13370 esac
13371
13372 if test "$ld_shlibs_F77" = yes; then
13373 runpath_var=LD_RUN_PATH
13374 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13375 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13376 # ancient GNU ld didn't support --whole-archive et. al.
13377 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13378 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13379 else
13380 whole_archive_flag_spec_F77=
13381 fi
13382 fi
13383 else
13384 # PORTME fill in a description of your system's linker (not GNU ld)
13385 case $host_os in
13386 aix3*)
13387 allow_undefined_flag_F77=unsupported
13388 always_export_symbols_F77=yes
13389 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'
13390 # Note: this linker hardcodes the directories in LIBPATH if there
13391 # are no directories specified by -L.
13392 hardcode_minus_L_F77=yes
13393 if test "$GCC" = yes && test -z "$link_static_flag"; then
13394 # Neither direct hardcoding nor static linking is supported with a
13395 # broken collect2.
13396 hardcode_direct_F77=unsupported
13397 fi
13398 ;;
13399
13400 aix4* | aix5*)
13401 if test "$host_cpu" = ia64; then
13402 # On IA64, the linker does run time linking by default, so we don't
13403 # have to do anything special.
13404 aix_use_runtimelinking=no
13405 exp_sym_flag='-Bexport'
13406 no_entry_flag=""
13407 else
13408 # If we're using GNU nm, then we don't want the "-C" option.
13409 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13410 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13411 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'
13412 else
13413 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'
13414 fi
13415 aix_use_runtimelinking=no
13416
13417 # Test if we are trying to use run time linking or normal
13418 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13419 # need to do runtime linking.
13420 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13421 for ld_flag in $LDFLAGS; do
13422 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13423 aix_use_runtimelinking=yes
13424 break
13425 fi
13426 done
13427 esac
13428
13429 exp_sym_flag='-bexport'
13430 no_entry_flag='-bnoentry'
13431 fi
13432
13433 # When large executables or shared objects are built, AIX ld can
13434 # have problems creating the table of contents. If linking a library
13435 # or program results in "error TOC overflow" add -mminimal-toc to
13436 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13437 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13438
13439 archive_cmds_F77=''
13440 hardcode_direct_F77=yes
13441 hardcode_libdir_separator_F77=':'
13442 link_all_deplibs_F77=yes
13443
13444 if test "$GCC" = yes; then
13445 case $host_os in aix4.012|aix4.012.*)
13446 # We only want to do this on AIX 4.2 and lower, the check
13447 # below for broken collect2 doesn't work under 4.3+
13448 collect2name=`${CC} -print-prog-name=collect2`
13449 if test -f "$collect2name" && \
13450 strings "$collect2name" | grep resolve_lib_name >/dev/null
13451 then
13452 # We have reworked collect2
13453 hardcode_direct_F77=yes
13454 else
13455 # We have old collect2
13456 hardcode_direct_F77=unsupported
13457 # It fails to find uninstalled libraries when the uninstalled
13458 # path is not listed in the libpath. Setting hardcode_minus_L
13459 # to unsupported forces relinking
13460 hardcode_minus_L_F77=yes
13461 hardcode_libdir_flag_spec_F77='-L$libdir'
13462 hardcode_libdir_separator_F77=
13463 fi
13464 esac
13465 shared_flag='-shared'
13466 else
13467 # not using gcc
13468 if test "$host_cpu" = ia64; then
13469 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13470 # chokes on -Wl,-G. The following line is correct:
13471 shared_flag='-G'
13472 else
13473 if test "$aix_use_runtimelinking" = yes; then
13474 shared_flag='${wl}-G'
13475 else
13476 shared_flag='${wl}-bM:SRE'
13477 fi
13478 fi
13479 fi
13480
13481 # It seems that -bexpall does not export symbols beginning with
13482 # underscore (_), so it is better to generate a list of symbols to export.
13483 always_export_symbols_F77=yes
13484 if test "$aix_use_runtimelinking" = yes; then
13485 # Warning - without using the other runtime loading flags (-brtl),
13486 # -berok will link without error, but may produce a broken library.
13487 allow_undefined_flag_F77='-berok'
13488 # Determine the default libpath from the value encoded in an empty executable.
13489 cat >conftest.$ac_ext <<_ACEOF
13490 program main
13491
13492 end
13493_ACEOF
13494rm -f conftest.$ac_objext conftest$ac_exeext
13495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000013496 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013497 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000013498 grep -v '^ *+' conftest.er1 >conftest.err
13499 rm -f conftest.er1
13500 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000013503 { ac_try='test -z "$ac_f77_werror_flag"
13504 || test ! -s conftest.err'
13505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13506 (eval $ac_try) 2>&5
13507 ac_status=$?
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; } &&
13510 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512 (eval $ac_try) 2>&5
13513 ac_status=$?
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; }; then
13516
13517aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13518}'`
13519# Check for a 64-bit object if we didn't find anything.
13520if 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; }
13521}'`; fi
13522else
13523 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013524sed 's/^/| /' conftest.$ac_ext >&5
13525
John Criswell47fdd832003-07-14 16:52:07 +000013526fi
Reid Spencer17041682004-09-05 17:48:32 +000013527rm -f conftest.err conftest.$ac_objext \
13528 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013529if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13530
13531 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13532 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"
13533 else
13534 if test "$host_cpu" = ia64; then
13535 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13536 allow_undefined_flag_F77="-z nodefs"
13537 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"
13538 else
13539 # Determine the default libpath from the value encoded in an empty executable.
13540 cat >conftest.$ac_ext <<_ACEOF
13541 program main
13542
13543 end
13544_ACEOF
13545rm -f conftest.$ac_objext conftest$ac_exeext
13546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000013547 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013548 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000013549 grep -v '^ *+' conftest.er1 >conftest.err
13550 rm -f conftest.er1
13551 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000013554 { ac_try='test -z "$ac_f77_werror_flag"
13555 || test ! -s conftest.err'
13556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557 (eval $ac_try) 2>&5
13558 ac_status=$?
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; } &&
13561 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13564 ac_status=$?
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; }; then
13567
13568aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13569}'`
13570# Check for a 64-bit object if we didn't find anything.
13571if 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; }
13572}'`; fi
13573else
13574 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013575sed 's/^/| /' conftest.$ac_ext >&5
13576
John Criswell47fdd832003-07-14 16:52:07 +000013577fi
Reid Spencer17041682004-09-05 17:48:32 +000013578rm -f conftest.err conftest.$ac_objext \
13579 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013580if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13581
13582 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13583 # Warning - without using the other run time loading flags,
13584 # -berok will link without error, but may produce a broken library.
13585 no_undefined_flag_F77=' ${wl}-bernotok'
13586 allow_undefined_flag_F77=' ${wl}-berok'
13587 # -bexpall does not export symbols beginning with underscore (_)
13588 always_export_symbols_F77=yes
13589 # Exported symbols can be pulled into shared objects from archives
13590 whole_archive_flag_spec_F77=' '
13591 archive_cmds_need_lc_F77=yes
13592 # This is similar to how AIX traditionally builds it's shared libraries.
13593 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'
13594 fi
13595 fi
13596 ;;
13597
13598 amigaos*)
13599 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)'
13600 hardcode_libdir_flag_spec_F77='-L$libdir'
13601 hardcode_minus_L_F77=yes
13602 # see comment about different semantics on the GNU ld section
13603 ld_shlibs_F77=no
13604 ;;
13605
13606 bsdi4*)
13607 export_dynamic_flag_spec_F77=-rdynamic
13608 ;;
13609
13610 cygwin* | mingw* | pw32*)
13611 # When not using gcc, we currently assume that we are using
13612 # Microsoft Visual C++.
13613 # hardcode_libdir_flag_spec is actually meaningless, as there is
13614 # no search path for DLLs.
13615 hardcode_libdir_flag_spec_F77=' '
13616 allow_undefined_flag_F77=unsupported
13617 # Tell ltmain to make .lib files, not .a files.
13618 libext=lib
13619 # Tell ltmain to make .dll files, not .so files.
13620 shrext=".dll"
13621 # FIXME: Setting linknames here is a bad hack.
13622 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13623 # The linker will automatically build a .lib file if we build a DLL.
13624 old_archive_From_new_cmds_F77='true'
13625 # FIXME: Should let the user specify the lib program.
13626 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13627 fix_srcfile_path='`cygpath -w "$srcfile"`'
13628 enable_shared_with_static_runtimes_F77=yes
13629 ;;
13630
13631 darwin* | rhapsody*)
Reid Spencer9751dbf2004-09-07 18:04:45 +000013632 if test "$GXX" = yes ; then
John Criswell47fdd832003-07-14 16:52:07 +000013633 archive_cmds_need_lc_F77=no
13634 case "$host_os" in
13635 rhapsody* | darwin1.[012])
13636 allow_undefined_flag_F77='-undefined suppress'
13637 ;;
13638 *) # Darwin 1.3 on
Reid Spencer9751dbf2004-09-07 18:04:45 +000013639 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13640 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13641 else
13642 case ${MACOSX_DEPLOYMENT_TARGET} in
13643 10.[012])
13644 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13645 ;;
13646 10.*)
13647 allow_undefined_flag_F77='-undefined dynamic_lookup'
13648 ;;
13649 esac
13650 fi
John Criswell47fdd832003-07-14 16:52:07 +000013651 ;;
13652 esac
John Criswell47fdd832003-07-14 16:52:07 +000013653 lt_int_apple_cc_single_mod=no
13654 output_verbose_link_cmd='echo'
13655 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13656 lt_int_apple_cc_single_mod=yes
13657 fi
13658 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13659 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13660 else
13661 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'
13662 fi
Reid Spencer9751dbf2004-09-07 18:04:45 +000013663 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000013664 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13665 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13666 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}'
13667 else
13668 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}'
13669 fi
Reid Spencer9751dbf2004-09-07 18:04:45 +000013670 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}'
John Criswell47fdd832003-07-14 16:52:07 +000013671 hardcode_direct_F77=no
13672 hardcode_automatic_F77=yes
13673 hardcode_shlibpath_var_F77=unsupported
13674 whole_archive_flag_spec_F77='-all_load $convenience'
13675 link_all_deplibs_F77=yes
Reid Spencer9751dbf2004-09-07 18:04:45 +000013676 else
13677 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000013678 fi
13679 ;;
13680
13681 dgux*)
13682 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13683 hardcode_libdir_flag_spec_F77='-L$libdir'
13684 hardcode_shlibpath_var_F77=no
13685 ;;
13686
13687 freebsd1*)
13688 ld_shlibs_F77=no
13689 ;;
13690
13691 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13692 # support. Future versions do this automatically, but an explicit c++rt0.o
13693 # does not break anything, and helps significantly (at the cost of a little
13694 # extra space).
13695 freebsd2.2*)
13696 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13697 hardcode_libdir_flag_spec_F77='-R$libdir'
13698 hardcode_direct_F77=yes
13699 hardcode_shlibpath_var_F77=no
13700 ;;
13701
13702 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13703 freebsd2*)
13704 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13705 hardcode_direct_F77=yes
13706 hardcode_minus_L_F77=yes
13707 hardcode_shlibpath_var_F77=no
13708 ;;
13709
13710 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer9751dbf2004-09-07 18:04:45 +000013711 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000013712 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13713 hardcode_libdir_flag_spec_F77='-R$libdir'
13714 hardcode_direct_F77=yes
13715 hardcode_shlibpath_var_F77=no
13716 ;;
13717
13718 hpux9*)
13719 if test "$GCC" = yes; then
13720 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'
13721 else
13722 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'
13723 fi
13724 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13725 hardcode_libdir_separator_F77=:
13726 hardcode_direct_F77=yes
13727
13728 # hardcode_minus_L: Not really in the search PATH,
13729 # but as the default location of the library.
13730 hardcode_minus_L_F77=yes
13731 export_dynamic_flag_spec_F77='${wl}-E'
13732 ;;
13733
13734 hpux10* | hpux11*)
13735 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13736 case "$host_cpu" in
13737 hppa*64*|ia64*)
13738 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13739 ;;
13740 *)
13741 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13742 ;;
13743 esac
13744 else
13745 case "$host_cpu" in
13746 hppa*64*|ia64*)
13747 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13748 ;;
13749 *)
13750 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13751 ;;
13752 esac
13753 fi
13754 if test "$with_gnu_ld" = no; then
13755 case "$host_cpu" in
13756 hppa*64*)
13757 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13758 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13759 hardcode_libdir_separator_F77=:
13760 hardcode_direct_F77=no
13761 hardcode_shlibpath_var_F77=no
13762 ;;
13763 ia64*)
13764 hardcode_libdir_flag_spec_F77='-L$libdir'
13765 hardcode_direct_F77=no
13766 hardcode_shlibpath_var_F77=no
13767
13768 # hardcode_minus_L: Not really in the search PATH,
13769 # but as the default location of the library.
13770 hardcode_minus_L_F77=yes
13771 ;;
13772 *)
13773 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13774 hardcode_libdir_separator_F77=:
13775 hardcode_direct_F77=yes
13776 export_dynamic_flag_spec_F77='${wl}-E'
13777
13778 # hardcode_minus_L: Not really in the search PATH,
13779 # but as the default location of the library.
13780 hardcode_minus_L_F77=yes
13781 ;;
13782 esac
13783 fi
13784 ;;
13785
13786 irix5* | irix6* | nonstopux*)
13787 if test "$GCC" = yes; then
13788 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'
13789 else
13790 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'
13791 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13792 fi
13793 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13794 hardcode_libdir_separator_F77=:
13795 link_all_deplibs_F77=yes
13796 ;;
13797
13798 netbsd*)
13799 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13800 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13801 else
13802 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13803 fi
13804 hardcode_libdir_flag_spec_F77='-R$libdir'
13805 hardcode_direct_F77=yes
13806 hardcode_shlibpath_var_F77=no
13807 ;;
13808
13809 newsos6)
13810 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13811 hardcode_direct_F77=yes
13812 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13813 hardcode_libdir_separator_F77=:
13814 hardcode_shlibpath_var_F77=no
13815 ;;
13816
13817 openbsd*)
13818 hardcode_direct_F77=yes
13819 hardcode_shlibpath_var_F77=no
13820 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13821 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13822 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13823 export_dynamic_flag_spec_F77='${wl}-E'
13824 else
13825 case $host_os in
13826 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13827 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13828 hardcode_libdir_flag_spec_F77='-R$libdir'
13829 ;;
13830 *)
13831 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13832 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13833 ;;
13834 esac
13835 fi
13836 ;;
13837
13838 os2*)
13839 hardcode_libdir_flag_spec_F77='-L$libdir'
13840 hardcode_minus_L_F77=yes
13841 allow_undefined_flag_F77=unsupported
13842 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'
13843 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13844 ;;
13845
13846 osf3*)
13847 if test "$GCC" = yes; then
13848 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13849 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'
13850 else
13851 allow_undefined_flag_F77=' -expect_unresolved \*'
13852 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'
13853 fi
13854 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13855 hardcode_libdir_separator_F77=:
13856 ;;
13857
13858 osf4* | osf5*) # as osf3* with the addition of -msym flag
13859 if test "$GCC" = yes; then
13860 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13861 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'
13862 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13863 else
13864 allow_undefined_flag_F77=' -expect_unresolved \*'
13865 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'
13866 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~
13867 $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'
13868
13869 # Both c and cxx compiler support -rpath directly
13870 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13871 fi
13872 hardcode_libdir_separator_F77=:
13873 ;;
13874
13875 sco3.2v5*)
13876 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13877 hardcode_shlibpath_var_F77=no
13878 export_dynamic_flag_spec_F77='${wl}-Bexport'
13879 runpath_var=LD_RUN_PATH
13880 hardcode_runpath_var=yes
13881 ;;
13882
13883 solaris*)
13884 no_undefined_flag_F77=' -z text'
13885 if test "$GCC" = yes; then
13886 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13887 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13888 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13889 else
13890 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13891 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13892 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13893 fi
13894 hardcode_libdir_flag_spec_F77='-R$libdir'
13895 hardcode_shlibpath_var_F77=no
13896 case $host_os in
13897 solaris2.[0-5] | solaris2.[0-5].*) ;;
13898 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13899 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13900 esac
13901 link_all_deplibs_F77=yes
13902 ;;
13903
13904 sunos4*)
13905 if test "x$host_vendor" = xsequent; then
13906 # Use $CC to link under sequent, because it throws in some extra .o
13907 # files that make .init and .fini sections work.
13908 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13909 else
13910 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13911 fi
13912 hardcode_libdir_flag_spec_F77='-L$libdir'
13913 hardcode_direct_F77=yes
13914 hardcode_minus_L_F77=yes
13915 hardcode_shlibpath_var_F77=no
13916 ;;
13917
13918 sysv4)
13919 case $host_vendor in
13920 sni)
13921 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13922 hardcode_direct_F77=yes # is this really true???
13923 ;;
13924 siemens)
13925 ## LD is ld it makes a PLAMLIB
13926 ## CC just makes a GrossModule.
13927 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13928 reload_cmds_F77='$CC -r -o $output$reload_objs'
13929 hardcode_direct_F77=no
13930 ;;
13931 motorola)
13932 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13933 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13934 ;;
13935 esac
13936 runpath_var='LD_RUN_PATH'
13937 hardcode_shlibpath_var_F77=no
13938 ;;
13939
13940 sysv4.3*)
13941 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13942 hardcode_shlibpath_var_F77=no
13943 export_dynamic_flag_spec_F77='-Bexport'
13944 ;;
13945
13946 sysv4*MP*)
13947 if test -d /usr/nec; then
13948 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13949 hardcode_shlibpath_var_F77=no
13950 runpath_var=LD_RUN_PATH
13951 hardcode_runpath_var=yes
13952 ld_shlibs_F77=yes
13953 fi
13954 ;;
13955
13956 sysv4.2uw2*)
13957 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13958 hardcode_direct_F77=yes
13959 hardcode_minus_L_F77=no
13960 hardcode_shlibpath_var_F77=no
13961 hardcode_runpath_var=yes
13962 runpath_var=LD_RUN_PATH
13963 ;;
13964
13965 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13966 no_undefined_flag_F77='${wl}-z ${wl}text'
13967 if test "$GCC" = yes; then
13968 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13969 else
13970 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13971 fi
13972 runpath_var='LD_RUN_PATH'
13973 hardcode_shlibpath_var_F77=no
13974 ;;
13975
13976 sysv5*)
13977 no_undefined_flag_F77=' -z text'
13978 # $CC -shared without GNU ld will not create a library from C++
13979 # object files and a static libstdc++, better avoid it by now
13980 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13981 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13982 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13983 hardcode_libdir_flag_spec_F77=
13984 hardcode_shlibpath_var_F77=no
13985 runpath_var='LD_RUN_PATH'
13986 ;;
13987
13988 uts4*)
13989 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13990 hardcode_libdir_flag_spec_F77='-L$libdir'
13991 hardcode_shlibpath_var_F77=no
13992 ;;
13993
13994 *)
13995 ld_shlibs_F77=no
13996 ;;
13997 esac
13998 fi
13999
14000echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14001echo "${ECHO_T}$ld_shlibs_F77" >&6
14002test "$ld_shlibs_F77" = no && can_build_shared=no
14003
14004variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14005if test "$GCC" = yes; then
14006 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14007fi
14008
14009#
14010# Do we need to explicitly link libc?
14011#
14012case "x$archive_cmds_need_lc_F77" in
14013x|xyes)
14014 # Assume -lc should be added
14015 archive_cmds_need_lc_F77=yes
14016
14017 if test "$enable_shared" = yes && test "$GCC" = yes; then
14018 case $archive_cmds_F77 in
14019 *'~'*)
14020 # FIXME: we may have to deal with multi-command sequences.
14021 ;;
14022 '$CC '*)
14023 # Test whether the compiler implicitly links with -lc since on some
14024 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14025 # to ld, don't add -lc before -lgcc.
14026 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14027echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14028 $rm conftest*
14029 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14030
14031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14032 (eval $ac_compile) 2>&5
14033 ac_status=$?
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); } 2>conftest.err; then
14036 soname=conftest
14037 lib=conftest
14038 libobjs=conftest.$ac_objext
14039 deplibs=
14040 wl=$lt_prog_compiler_wl_F77
14041 compiler_flags=-v
14042 linker_flags=-v
14043 verstring=
14044 output_objdir=.
14045 libname=conftest
14046 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14047 allow_undefined_flag_F77=
14048 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14049 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14050 ac_status=$?
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }
14053 then
14054 archive_cmds_need_lc_F77=no
14055 else
14056 archive_cmds_need_lc_F77=yes
14057 fi
14058 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14059 else
14060 cat conftest.err 1>&5
14061 fi
14062 $rm conftest*
14063 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14064echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14065 ;;
14066 esac
14067 fi
14068 ;;
14069esac
14070
John Criswell47fdd832003-07-14 16:52:07 +000014071echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14072echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14073library_names_spec=
14074libname_spec='lib$name'
14075soname_spec=
14076shrext=".so"
14077postinstall_cmds=
14078postuninstall_cmds=
14079finish_cmds=
14080finish_eval=
14081shlibpath_var=
14082shlibpath_overrides_runpath=unknown
14083version_type=none
14084dynamic_linker="$host_os ld.so"
14085sys_lib_dlsearch_path_spec="/lib /usr/lib"
14086if test "$GCC" = yes; then
14087 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14088 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14089 # if the path contains ";" then we assume it to be the separator
14090 # otherwise default to the standard path separator (i.e. ":") - it is
14091 # assumed that no part of a normal pathname contains ";" but that should
14092 # okay in the real world where ";" in dirpaths is itself problematic.
14093 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14094 else
14095 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14096 fi
14097else
14098 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14099fi
14100need_lib_prefix=unknown
14101hardcode_into_libs=no
14102
14103# when you set need_version to no, make sure it does not cause -set_version
14104# flags to be left without arguments
14105need_version=unknown
14106
14107case $host_os in
14108aix3*)
14109 version_type=linux
14110 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14111 shlibpath_var=LIBPATH
14112
14113 # AIX 3 has no versioning support, so we append a major version to the name.
14114 soname_spec='${libname}${release}${shared_ext}$major'
14115 ;;
14116
14117aix4* | aix5*)
14118 version_type=linux
14119 need_lib_prefix=no
14120 need_version=no
14121 hardcode_into_libs=yes
14122 if test "$host_cpu" = ia64; then
14123 # AIX 5 supports IA64
14124 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14125 shlibpath_var=LD_LIBRARY_PATH
14126 else
14127 # With GCC up to 2.95.x, collect2 would create an import file
14128 # for dependence libraries. The import file would start with
14129 # the line `#! .'. This would cause the generated library to
14130 # depend on `.', always an invalid library. This was fixed in
14131 # development snapshots of GCC prior to 3.0.
14132 case $host_os in
14133 aix4 | aix4.[01] | aix4.[01].*)
14134 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14135 echo ' yes '
14136 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14137 :
14138 else
14139 can_build_shared=no
14140 fi
14141 ;;
14142 esac
14143 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14144 # soname into executable. Probably we can add versioning support to
14145 # collect2, so additional links can be useful in future.
14146 if test "$aix_use_runtimelinking" = yes; then
14147 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14148 # instead of lib<name>.a to let people know that these are not
14149 # typical AIX shared libraries.
14150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14151 else
14152 # We preserve .a as extension for shared libraries through AIX4.2
14153 # and later when we are not doing run time linking.
14154 library_names_spec='${libname}${release}.a $libname.a'
14155 soname_spec='${libname}${release}${shared_ext}$major'
14156 fi
14157 shlibpath_var=LIBPATH
14158 fi
14159 ;;
14160
14161amigaos*)
14162 library_names_spec='$libname.ixlibrary $libname.a'
14163 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer9751dbf2004-09-07 18:04:45 +000014164 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'
John Criswell47fdd832003-07-14 16:52:07 +000014165 ;;
14166
14167beos*)
14168 library_names_spec='${libname}${shared_ext}'
14169 dynamic_linker="$host_os ld.so"
14170 shlibpath_var=LIBRARY_PATH
14171 ;;
14172
14173bsdi4*)
14174 version_type=linux
14175 need_version=no
14176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14177 soname_spec='${libname}${release}${shared_ext}$major'
14178 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14179 shlibpath_var=LD_LIBRARY_PATH
14180 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14181 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14182 # the default ld.so.conf also contains /usr/contrib/lib and
14183 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14184 # libtool to hard-code these into programs
14185 ;;
14186
14187cygwin* | mingw* | pw32*)
14188 version_type=windows
14189 shrext=".dll"
14190 need_version=no
14191 need_lib_prefix=no
14192
14193 case $GCC,$host_os in
14194 yes,cygwin* | yes,mingw* | yes,pw32*)
14195 library_names_spec='$libname.dll.a'
14196 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14197 postinstall_cmds='base_file=`basename \${file}`~
14198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14199 dldir=$destdir/`dirname \$dlpath`~
14200 test -d \$dldir || mkdir -p \$dldir~
14201 $install_prog $dir/$dlname \$dldir/$dlname'
14202 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14203 dlpath=$dir/\$dldll~
14204 $rm \$dlpath'
14205 shlibpath_overrides_runpath=yes
14206
14207 case $host_os in
14208 cygwin*)
14209 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14210 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer9751dbf2004-09-07 18:04:45 +000014211 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000014212 ;;
14213 mingw*)
14214 # MinGW DLLs use traditional 'lib' prefix
14215 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14216 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14217 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14218 # It is most probably a Windows format PATH printed by
14219 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14220 # path with ; separators, and with drive letters. We can handle the
14221 # drive letters (cygwin fileutils understands them), so leave them,
14222 # especially as we might pass files found there to a mingw objdump,
14223 # which wouldn't understand a cygwinified path. Ahh.
14224 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14225 else
14226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14227 fi
14228 ;;
14229 pw32*)
14230 # pw32 DLLs use 'pw' prefix rather than 'lib'
14231 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14232 ;;
14233 esac
14234 ;;
14235
14236 *)
14237 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14238 ;;
14239 esac
14240 dynamic_linker='Win32 ld.exe'
14241 # FIXME: first we should search . and the directory the executable is in
14242 shlibpath_var=PATH
14243 ;;
14244
14245darwin* | rhapsody*)
14246 dynamic_linker="$host_os dyld"
14247 version_type=darwin
14248 need_lib_prefix=no
14249 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000014250 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14251 soname_spec='${libname}${release}${major}$shared_ext'
14252 shlibpath_overrides_runpath=yes
14253 shlibpath_var=DYLD_LIBRARY_PATH
14254 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14255 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer9751dbf2004-09-07 18:04:45 +000014256 if test "$GCC" = yes; then
14257 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"`
14258 else
14259 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000014260 fi
14261 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14262 ;;
14263
14264dgux*)
14265 version_type=linux
14266 need_lib_prefix=no
14267 need_version=no
14268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14269 soname_spec='${libname}${release}${shared_ext}$major'
14270 shlibpath_var=LD_LIBRARY_PATH
14271 ;;
14272
14273freebsd1*)
14274 dynamic_linker=no
14275 ;;
14276
Reid Spencer9751dbf2004-09-07 18:04:45 +000014277kfreebsd*-gnu)
14278 version_type=linux
14279 need_lib_prefix=no
14280 need_version=no
14281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14282 soname_spec='${libname}${release}${shared_ext}$major'
14283 shlibpath_var=LD_LIBRARY_PATH
14284 shlibpath_overrides_runpath=no
14285 hardcode_into_libs=yes
14286 dynamic_linker='GNU ld.so'
14287 ;;
14288
John Criswell47fdd832003-07-14 16:52:07 +000014289freebsd*)
14290 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14291 version_type=freebsd-$objformat
14292 case $version_type in
14293 freebsd-elf*)
14294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14295 need_version=no
14296 need_lib_prefix=no
14297 ;;
14298 freebsd-*)
14299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14300 need_version=yes
14301 ;;
14302 esac
14303 shlibpath_var=LD_LIBRARY_PATH
14304 case $host_os in
14305 freebsd2*)
14306 shlibpath_overrides_runpath=yes
14307 ;;
14308 freebsd3.01* | freebsdelf3.01*)
14309 shlibpath_overrides_runpath=yes
14310 hardcode_into_libs=yes
14311 ;;
14312 *) # from 3.2 on
14313 shlibpath_overrides_runpath=no
14314 hardcode_into_libs=yes
14315 ;;
14316 esac
14317 ;;
14318
14319gnu*)
14320 version_type=linux
14321 need_lib_prefix=no
14322 need_version=no
14323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14324 soname_spec='${libname}${release}${shared_ext}$major'
14325 shlibpath_var=LD_LIBRARY_PATH
14326 hardcode_into_libs=yes
14327 ;;
14328
14329hpux9* | hpux10* | hpux11*)
14330 # Give a soname corresponding to the major version so that dld.sl refuses to
14331 # link against other versions.
14332 version_type=sunos
14333 need_lib_prefix=no
14334 need_version=no
14335 case "$host_cpu" in
14336 ia64*)
14337 shrext='.so'
14338 hardcode_into_libs=yes
14339 dynamic_linker="$host_os dld.so"
14340 shlibpath_var=LD_LIBRARY_PATH
14341 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14343 soname_spec='${libname}${release}${shared_ext}$major'
14344 if test "X$HPUX_IA64_MODE" = X32; then
14345 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14346 else
14347 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14348 fi
14349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14350 ;;
14351 hppa*64*)
14352 shrext='.sl'
14353 hardcode_into_libs=yes
14354 dynamic_linker="$host_os dld.sl"
14355 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14358 soname_spec='${libname}${release}${shared_ext}$major'
14359 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14361 ;;
14362 *)
14363 shrext='.sl'
14364 dynamic_linker="$host_os dld.sl"
14365 shlibpath_var=SHLIB_PATH
14366 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14368 soname_spec='${libname}${release}${shared_ext}$major'
14369 ;;
14370 esac
14371 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14372 postinstall_cmds='chmod 555 $lib'
14373 ;;
14374
14375irix5* | irix6* | nonstopux*)
14376 case $host_os in
14377 nonstopux*) version_type=nonstopux ;;
14378 *)
14379 if test "$lt_cv_prog_gnu_ld" = yes; then
14380 version_type=linux
14381 else
14382 version_type=irix
14383 fi ;;
14384 esac
14385 need_lib_prefix=no
14386 need_version=no
14387 soname_spec='${libname}${release}${shared_ext}$major'
14388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14389 case $host_os in
14390 irix5* | nonstopux*)
14391 libsuff= shlibsuff=
14392 ;;
14393 *)
14394 case $LD in # libtool.m4 will add one of these switches to LD
14395 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14396 libsuff= shlibsuff= libmagic=32-bit;;
14397 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14398 libsuff=32 shlibsuff=N32 libmagic=N32;;
14399 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14400 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14401 *) libsuff= shlibsuff= libmagic=never-match;;
14402 esac
14403 ;;
14404 esac
14405 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14406 shlibpath_overrides_runpath=no
14407 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14408 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14409 hardcode_into_libs=yes
14410 ;;
14411
14412# No shared lib support for Linux oldld, aout, or coff.
14413linux*oldld* | linux*aout* | linux*coff*)
14414 dynamic_linker=no
14415 ;;
14416
14417# This must be Linux ELF.
14418linux*)
14419 version_type=linux
14420 need_lib_prefix=no
14421 need_version=no
14422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14423 soname_spec='${libname}${release}${shared_ext}$major'
14424 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14425 shlibpath_var=LD_LIBRARY_PATH
14426 shlibpath_overrides_runpath=no
14427 # This implies no fast_install, which is unacceptable.
14428 # Some rework will be needed to allow for fast_install
14429 # before this can be enabled.
14430 hardcode_into_libs=yes
14431
14432 # We used to test for /lib/ld.so.1 and disable shared libraries on
14433 # powerpc, because MkLinux only supported shared libraries with the
14434 # GNU dynamic linker. Since this was broken with cross compilers,
14435 # most powerpc-linux boxes support dynamic linking these days and
14436 # people can always --disable-shared, the test was removed, and we
14437 # assume the GNU/Linux dynamic linker is in use.
14438 dynamic_linker='GNU/Linux ld.so'
14439 ;;
14440
Reid Spencer9751dbf2004-09-07 18:04:45 +000014441knetbsd*-gnu)
14442 version_type=linux
14443 need_lib_prefix=no
14444 need_version=no
14445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14446 soname_spec='${libname}${release}${shared_ext}$major'
14447 shlibpath_var=LD_LIBRARY_PATH
14448 shlibpath_overrides_runpath=no
14449 hardcode_into_libs=yes
14450 dynamic_linker='GNU ld.so'
14451 ;;
14452
John Criswell47fdd832003-07-14 16:52:07 +000014453netbsd*)
14454 version_type=sunos
14455 need_lib_prefix=no
14456 need_version=no
14457 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14460 dynamic_linker='NetBSD (a.out) ld.so'
14461 else
14462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14463 soname_spec='${libname}${release}${shared_ext}$major'
14464 dynamic_linker='NetBSD ld.elf_so'
14465 fi
14466 shlibpath_var=LD_LIBRARY_PATH
14467 shlibpath_overrides_runpath=yes
14468 hardcode_into_libs=yes
14469 ;;
14470
14471newsos6)
14472 version_type=linux
14473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14474 shlibpath_var=LD_LIBRARY_PATH
14475 shlibpath_overrides_runpath=yes
14476 ;;
14477
Reid Spencer9751dbf2004-09-07 18:04:45 +000014478nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000014479 version_type=linux
14480 need_lib_prefix=no
14481 need_version=no
14482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14483 soname_spec='${libname}${release}${shared_ext}$major'
14484 shlibpath_var=LD_LIBRARY_PATH
14485 shlibpath_overrides_runpath=yes
14486 ;;
14487
14488openbsd*)
14489 version_type=sunos
14490 need_lib_prefix=no
Reid Spencer9751dbf2004-09-07 18:04:45 +000014491 need_version=yes
John Criswell47fdd832003-07-14 16:52:07 +000014492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14494 shlibpath_var=LD_LIBRARY_PATH
14495 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14496 case $host_os in
14497 openbsd2.[89] | openbsd2.[89].*)
14498 shlibpath_overrides_runpath=no
14499 ;;
14500 *)
14501 shlibpath_overrides_runpath=yes
14502 ;;
14503 esac
14504 else
14505 shlibpath_overrides_runpath=yes
14506 fi
14507 ;;
14508
14509os2*)
14510 libname_spec='$name'
14511 shrext=".dll"
14512 need_lib_prefix=no
14513 library_names_spec='$libname${shared_ext} $libname.a'
14514 dynamic_linker='OS/2 ld.exe'
14515 shlibpath_var=LIBPATH
14516 ;;
14517
14518osf3* | osf4* | osf5*)
14519 version_type=osf
14520 need_lib_prefix=no
14521 need_version=no
14522 soname_spec='${libname}${release}${shared_ext}$major'
14523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14524 shlibpath_var=LD_LIBRARY_PATH
14525 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14526 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14527 ;;
14528
14529sco3.2v5*)
14530 version_type=osf
14531 soname_spec='${libname}${release}${shared_ext}$major'
14532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14533 shlibpath_var=LD_LIBRARY_PATH
14534 ;;
14535
14536solaris*)
14537 version_type=linux
14538 need_lib_prefix=no
14539 need_version=no
14540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14541 soname_spec='${libname}${release}${shared_ext}$major'
14542 shlibpath_var=LD_LIBRARY_PATH
14543 shlibpath_overrides_runpath=yes
14544 hardcode_into_libs=yes
14545 # ldd complains unless libraries are executable
14546 postinstall_cmds='chmod +x $lib'
14547 ;;
14548
14549sunos4*)
14550 version_type=sunos
14551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14552 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14553 shlibpath_var=LD_LIBRARY_PATH
14554 shlibpath_overrides_runpath=yes
14555 if test "$with_gnu_ld" = yes; then
14556 need_lib_prefix=no
14557 fi
14558 need_version=yes
14559 ;;
14560
14561sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14562 version_type=linux
14563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14564 soname_spec='${libname}${release}${shared_ext}$major'
14565 shlibpath_var=LD_LIBRARY_PATH
14566 case $host_vendor in
14567 sni)
14568 shlibpath_overrides_runpath=no
14569 need_lib_prefix=no
14570 export_dynamic_flag_spec='${wl}-Blargedynsym'
14571 runpath_var=LD_RUN_PATH
14572 ;;
14573 siemens)
14574 need_lib_prefix=no
14575 ;;
14576 motorola)
14577 need_lib_prefix=no
14578 need_version=no
14579 shlibpath_overrides_runpath=no
14580 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14581 ;;
14582 esac
14583 ;;
14584
14585sysv4*MP*)
14586 if test -d /usr/nec ;then
14587 version_type=linux
14588 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14589 soname_spec='$libname${shared_ext}.$major'
14590 shlibpath_var=LD_LIBRARY_PATH
14591 fi
14592 ;;
14593
14594uts4*)
14595 version_type=linux
14596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14597 soname_spec='${libname}${release}${shared_ext}$major'
14598 shlibpath_var=LD_LIBRARY_PATH
14599 ;;
14600
14601*)
14602 dynamic_linker=no
14603 ;;
14604esac
14605echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14606echo "${ECHO_T}$dynamic_linker" >&6
14607test "$dynamic_linker" = no && can_build_shared=no
14608
Reid Spencer9751dbf2004-09-07 18:04:45 +000014609echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14610echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14611hardcode_action_F77=
14612if test -n "$hardcode_libdir_flag_spec_F77" || \
14613 test -n "$runpath_var F77" || \
14614 test "X$hardcode_automatic_F77"="Xyes" ; then
14615
14616 # We can hardcode non-existant directories.
14617 if test "$hardcode_direct_F77" != no &&
14618 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14619 # have to relink, otherwise we might link with an installed library
14620 # when we should be linking with a yet-to-be-installed one
14621 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14622 test "$hardcode_minus_L_F77" != no; then
14623 # Linking always hardcodes the temporary library directory.
14624 hardcode_action_F77=relink
14625 else
14626 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14627 hardcode_action_F77=immediate
14628 fi
14629else
14630 # We cannot hardcode anything, or else we can only hardcode existing
14631 # directories.
14632 hardcode_action_F77=unsupported
14633fi
14634echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14635echo "${ECHO_T}$hardcode_action_F77" >&6
14636
14637if test "$hardcode_action_F77" = relink; then
14638 # Fast installation is not supported
14639 enable_fast_install=no
14640elif test "$shlibpath_overrides_runpath" = yes ||
14641 test "$enable_shared" = no; then
14642 # Fast installation is not necessary
14643 enable_fast_install=needless
14644fi
14645
14646striplib=
14647old_striplib=
14648echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14649echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14650if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14651 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14652 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14653 echo "$as_me:$LINENO: result: yes" >&5
14654echo "${ECHO_T}yes" >&6
14655else
14656# FIXME - insert some real tests, host_os isn't really good enough
14657 case $host_os in
14658 darwin*)
14659 if test -n "$STRIP" ; then
14660 striplib="$STRIP -x"
14661 echo "$as_me:$LINENO: result: yes" >&5
14662echo "${ECHO_T}yes" >&6
14663 else
14664 echo "$as_me:$LINENO: result: no" >&5
14665echo "${ECHO_T}no" >&6
14666fi
14667 ;;
14668 *)
14669 echo "$as_me:$LINENO: result: no" >&5
14670echo "${ECHO_T}no" >&6
14671 ;;
14672 esac
14673fi
14674
14675
John Criswell47fdd832003-07-14 16:52:07 +000014676
14677# The else clause should only fire when bootstrapping the
14678# libtool distribution, otherwise you forgot to ship ltmain.sh
14679# with your package, and you will get complaints that there are
14680# no rules to generate ltmain.sh.
14681if test -f "$ltmain"; then
14682 # See if we are running on zsh, and set the options which allow our commands through
14683 # without removal of \ escapes.
14684 if test -n "${ZSH_VERSION+set}" ; then
14685 setopt NO_GLOB_SUBST
14686 fi
14687 # Now quote all the things that may contain metacharacters while being
14688 # careful not to overquote the AC_SUBSTed values. We take copies of the
14689 # variables and quote the copies for generation of the libtool script.
Reid Spencer9751dbf2004-09-07 18:04:45 +000014690 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014691 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14692 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14693 deplibs_check_method reload_flag reload_cmds need_locks \
14694 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14695 lt_cv_sys_global_symbol_to_c_name_address \
14696 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14697 old_postinstall_cmds old_postuninstall_cmds \
14698 compiler_F77 \
14699 CC_F77 \
14700 LD_F77 \
14701 lt_prog_compiler_wl_F77 \
14702 lt_prog_compiler_pic_F77 \
14703 lt_prog_compiler_static_F77 \
14704 lt_prog_compiler_no_builtin_flag_F77 \
14705 export_dynamic_flag_spec_F77 \
14706 thread_safe_flag_spec_F77 \
14707 whole_archive_flag_spec_F77 \
14708 enable_shared_with_static_runtimes_F77 \
14709 old_archive_cmds_F77 \
14710 old_archive_from_new_cmds_F77 \
14711 predep_objects_F77 \
14712 postdep_objects_F77 \
14713 predeps_F77 \
14714 postdeps_F77 \
14715 compiler_lib_search_path_F77 \
14716 archive_cmds_F77 \
14717 archive_expsym_cmds_F77 \
14718 postinstall_cmds_F77 \
14719 postuninstall_cmds_F77 \
14720 old_archive_from_expsyms_cmds_F77 \
14721 allow_undefined_flag_F77 \
14722 no_undefined_flag_F77 \
14723 export_symbols_cmds_F77 \
14724 hardcode_libdir_flag_spec_F77 \
14725 hardcode_libdir_flag_spec_ld_F77 \
14726 hardcode_libdir_separator_F77 \
14727 hardcode_automatic_F77 \
14728 module_cmds_F77 \
14729 module_expsym_cmds_F77 \
14730 lt_cv_prog_compiler_c_o_F77 \
14731 exclude_expsyms_F77 \
14732 include_expsyms_F77; do
14733
14734 case $var in
14735 old_archive_cmds_F77 | \
14736 old_archive_from_new_cmds_F77 | \
14737 archive_cmds_F77 | \
14738 archive_expsym_cmds_F77 | \
14739 module_cmds_F77 | \
14740 module_expsym_cmds_F77 | \
14741 old_archive_from_expsyms_cmds_F77 | \
14742 export_symbols_cmds_F77 | \
14743 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14744 postinstall_cmds | postuninstall_cmds | \
14745 old_postinstall_cmds | old_postuninstall_cmds | \
14746 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14747 # Double-quote double-evaled strings.
14748 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14749 ;;
14750 *)
14751 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14752 ;;
14753 esac
14754 done
14755
14756 case $lt_echo in
14757 *'\$0 --fallback-echo"')
14758 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14759 ;;
14760 esac
14761
14762cfgfile="$ofile"
14763
14764 cat <<__EOF__ >> "$cfgfile"
14765# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14766
14767# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14768
14769# Shell to use when invoking shell scripts.
14770SHELL=$lt_SHELL
14771
14772# Whether or not to build shared libraries.
14773build_libtool_libs=$enable_shared
14774
14775# Whether or not to build static libraries.
14776build_old_libs=$enable_static
14777
14778# Whether or not to add -lc for building shared libraries.
14779build_libtool_need_lc=$archive_cmds_need_lc_F77
14780
14781# Whether or not to disallow shared libs when runtime libs are static
14782allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14783
14784# Whether or not to optimize for fast installation.
14785fast_install=$enable_fast_install
14786
14787# The host system.
14788host_alias=$host_alias
14789host=$host
14790
14791# An echo program that does not interpret backslashes.
14792echo=$lt_echo
14793
14794# The archiver.
14795AR=$lt_AR
14796AR_FLAGS=$lt_AR_FLAGS
14797
14798# A C compiler.
14799LTCC=$lt_LTCC
14800
14801# A language-specific compiler.
14802CC=$lt_compiler_F77
14803
14804# Is the compiler the GNU C compiler?
14805with_gcc=$GCC_F77
14806
14807# An ERE matcher.
14808EGREP=$lt_EGREP
14809
14810# The linker used to build libraries.
14811LD=$lt_LD_F77
14812
14813# Whether we need hard or soft links.
14814LN_S=$lt_LN_S
14815
14816# A BSD-compatible nm program.
14817NM=$lt_NM
14818
14819# A symbol stripping program
Reid Spencer9751dbf2004-09-07 18:04:45 +000014820STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000014821
14822# Used to examine libraries when file_magic_cmd begins "file"
14823MAGIC_CMD=$MAGIC_CMD
14824
14825# Used on cygwin: DLL creation program.
14826DLLTOOL="$DLLTOOL"
14827
14828# Used on cygwin: object dumper.
14829OBJDUMP="$OBJDUMP"
14830
14831# Used on cygwin: assembler.
14832AS="$AS"
14833
14834# The name of the directory that contains temporary libtool files.
14835objdir=$objdir
14836
14837# How to create reloadable object files.
14838reload_flag=$lt_reload_flag
14839reload_cmds=$lt_reload_cmds
14840
14841# How to pass a linker flag through the compiler.
14842wl=$lt_lt_prog_compiler_wl_F77
14843
14844# Object file suffix (normally "o").
14845objext="$ac_objext"
14846
14847# Old archive suffix (normally "a").
14848libext="$libext"
14849
14850# Shared library suffix (normally ".so").
14851shrext='$shrext'
14852
14853# Executable file suffix (normally "").
14854exeext="$exeext"
14855
14856# Additional compiler flags for building library objects.
14857pic_flag=$lt_lt_prog_compiler_pic_F77
14858pic_mode=$pic_mode
14859
14860# What is the maximum length of a command?
14861max_cmd_len=$lt_cv_sys_max_cmd_len
14862
14863# Does compiler simultaneously support -c and -o options?
14864compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14865
14866# Must we lock files when doing compilation ?
14867need_locks=$lt_need_locks
14868
14869# Do we need the lib prefix for modules?
14870need_lib_prefix=$need_lib_prefix
14871
14872# Do we need a version for libraries?
14873need_version=$need_version
14874
14875# Whether dlopen is supported.
14876dlopen_support=$enable_dlopen
14877
14878# Whether dlopen of programs is supported.
14879dlopen_self=$enable_dlopen_self
14880
14881# Whether dlopen of statically linked programs is supported.
14882dlopen_self_static=$enable_dlopen_self_static
14883
14884# Compiler flag to prevent dynamic linking.
14885link_static_flag=$lt_lt_prog_compiler_static_F77
14886
14887# Compiler flag to turn off builtin functions.
14888no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14889
14890# Compiler flag to allow reflexive dlopens.
14891export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14892
14893# Compiler flag to generate shared objects directly from archives.
14894whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14895
14896# Compiler flag to generate thread-safe objects.
14897thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14898
14899# Library versioning type.
14900version_type=$version_type
14901
14902# Format of library name prefix.
14903libname_spec=$lt_libname_spec
14904
14905# List of archive names. First name is the real one, the rest are links.
14906# The last name is the one that the linker finds with -lNAME.
14907library_names_spec=$lt_library_names_spec
14908
14909# The coded name of the library, if different from the real name.
14910soname_spec=$lt_soname_spec
14911
14912# Commands used to build and install an old-style archive.
14913RANLIB=$lt_RANLIB
14914old_archive_cmds=$lt_old_archive_cmds_F77
14915old_postinstall_cmds=$lt_old_postinstall_cmds
14916old_postuninstall_cmds=$lt_old_postuninstall_cmds
14917
14918# Create an old-style archive from a shared archive.
14919old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14920
14921# Create a temporary old-style archive to link instead of a shared archive.
14922old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14923
14924# Commands used to build and install a shared archive.
14925archive_cmds=$lt_archive_cmds_F77
14926archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14927postinstall_cmds=$lt_postinstall_cmds
14928postuninstall_cmds=$lt_postuninstall_cmds
14929
14930# Commands used to build a loadable module (assumed same as above if empty)
14931module_cmds=$lt_module_cmds_F77
14932module_expsym_cmds=$lt_module_expsym_cmds_F77
14933
14934# Commands to strip libraries.
14935old_striplib=$lt_old_striplib
14936striplib=$lt_striplib
14937
14938# Dependencies to place before the objects being linked to create a
14939# shared library.
14940predep_objects=$lt_predep_objects_F77
14941
14942# Dependencies to place after the objects being linked to create a
14943# shared library.
14944postdep_objects=$lt_postdep_objects_F77
14945
14946# Dependencies to place before the objects being linked to create a
14947# shared library.
14948predeps=$lt_predeps_F77
14949
14950# Dependencies to place after the objects being linked to create a
14951# shared library.
14952postdeps=$lt_postdeps_F77
14953
14954# The library search path used internally by the compiler when linking
14955# a shared library.
14956compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14957
14958# Method to check whether dependent libraries are shared objects.
14959deplibs_check_method=$lt_deplibs_check_method
14960
14961# Command to use when deplibs_check_method == file_magic.
14962file_magic_cmd=$lt_file_magic_cmd
14963
14964# Flag that allows shared libraries with undefined symbols to be built.
14965allow_undefined_flag=$lt_allow_undefined_flag_F77
14966
14967# Flag that forces no undefined symbols.
14968no_undefined_flag=$lt_no_undefined_flag_F77
14969
14970# Commands used to finish a libtool library installation in a directory.
14971finish_cmds=$lt_finish_cmds
14972
14973# Same as above, but a single script fragment to be evaled but not shown.
14974finish_eval=$lt_finish_eval
14975
14976# Take the output of nm and produce a listing of raw symbols and C names.
14977global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14978
14979# Transform the output of nm in a proper C declaration
14980global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14981
14982# Transform the output of nm in a C name address pair
14983global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14984
14985# This is the shared library runtime path variable.
14986runpath_var=$runpath_var
14987
14988# This is the shared library path variable.
14989shlibpath_var=$shlibpath_var
14990
14991# Is shlibpath searched before the hard-coded library search path?
14992shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14993
14994# How to hardcode a shared library path into an executable.
14995hardcode_action=$hardcode_action_F77
14996
14997# Whether we should hardcode library paths into libraries.
14998hardcode_into_libs=$hardcode_into_libs
14999
15000# Flag to hardcode \$libdir into a binary during linking.
15001# This must work even if \$libdir does not exist.
15002hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15003
15004# If ld is used when linking, flag to hardcode \$libdir into
15005# a binary during linking. This must work even if \$libdir does
15006# not exist.
15007hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15008
15009# Whether we need a single -rpath flag with a separated argument.
15010hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15011
15012# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15013# resulting binary.
15014hardcode_direct=$hardcode_direct_F77
15015
15016# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15017# resulting binary.
15018hardcode_minus_L=$hardcode_minus_L_F77
15019
15020# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15021# the resulting binary.
15022hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15023
15024# Set to yes if building a shared library automatically hardcodes DIR into the library
15025# and all subsequent libraries and executables linked against it.
15026hardcode_automatic=$hardcode_automatic_F77
15027
15028# Variables whose values should be saved in libtool wrapper scripts and
15029# restored at relink time.
15030variables_saved_for_relink="$variables_saved_for_relink"
15031
15032# Whether libtool must link a program against all its dependency libraries.
15033link_all_deplibs=$link_all_deplibs_F77
15034
15035# Compile-time system search path for libraries
15036sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15037
15038# Run-time system search path for libraries
15039sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15040
15041# Fix the shell variable \$srcfile for the compiler.
15042fix_srcfile_path="$fix_srcfile_path_F77"
15043
15044# Set to yes if exported symbols are required.
15045always_export_symbols=$always_export_symbols_F77
15046
15047# The commands to list exported symbols.
15048export_symbols_cmds=$lt_export_symbols_cmds_F77
15049
15050# The commands to extract the exported symbol list from a shared archive.
15051extract_expsyms_cmds=$lt_extract_expsyms_cmds
15052
15053# Symbols that should not be listed in the preloaded symbols.
15054exclude_expsyms=$lt_exclude_expsyms_F77
15055
15056# Symbols that must always be exported.
15057include_expsyms=$lt_include_expsyms_F77
15058
15059# ### END LIBTOOL TAG CONFIG: $tagname
15060
15061__EOF__
15062
15063
15064else
15065 # If there is no Makefile yet, we rely on a make rule to execute
15066 # `config.status --recheck' to rerun these tests and create the
15067 # libtool script then.
15068 test -f Makefile && make "$ltmain"
15069fi
15070
15071
15072ac_ext=c
15073ac_cpp='$CPP $CPPFLAGS'
15074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15076ac_compiler_gnu=$ac_cv_c_compiler_gnu
15077
15078CC="$lt_save_CC"
15079
15080 else
15081 tagname=""
15082 fi
15083 ;;
15084
15085 GCJ)
15086 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15087
15088
15089
15090# Source file extension for Java test sources.
15091ac_ext=java
15092
15093# Object file extension for compiled Java test sources.
15094objext=o
15095objext_GCJ=$objext
15096
15097# Code to be used in simple compile tests
15098lt_simple_compile_test_code="class foo {}\n"
15099
15100# Code to be used in simple link tests
15101lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15102
15103# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15104
15105# If no C compiler was specified, use CC.
15106LTCC=${LTCC-"$CC"}
15107
15108# Allow CC to be a program name with arguments.
15109compiler=$CC
15110
15111
15112# Allow CC to be a program name with arguments.
15113lt_save_CC="$CC"
15114CC=${GCJ-"gcj"}
15115compiler=$CC
15116compiler_GCJ=$CC
15117
15118# GCJ did not exist at the time GCC didn't implicitly link libc in.
15119archive_cmds_need_lc_GCJ=no
15120
John Criswell47fdd832003-07-14 16:52:07 +000015121
15122lt_prog_compiler_no_builtin_flag_GCJ=
15123
15124if test "$GCC" = yes; then
15125 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15126
Reid Spencer9751dbf2004-09-07 18:04:45 +000015127
15128echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015129echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15130if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15131 echo $ECHO_N "(cached) $ECHO_C" >&6
15132else
15133 lt_cv_prog_compiler_rtti_exceptions=no
15134 ac_outfile=conftest.$ac_objext
15135 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15136 lt_compiler_flag="-fno-rtti -fno-exceptions"
15137 # Insert the option either (1) after the last *FLAGS variable, or
15138 # (2) before a word containing "conftest.", or (3) at the end.
15139 # Note that $ac_compile itself does not contain backslashes and begins
15140 # with a dollar sign (not a hyphen), so the echo should work correctly.
15141 # The option is referenced via a variable to avoid confusing sed.
15142 lt_compile=`echo "$ac_compile" | $SED \
15143 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15144 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15145 -e 's:$: $lt_compiler_flag:'`
Reid Spencer9751dbf2004-09-07 18:04:45 +000015146 (eval echo "\"\$as_me:15146: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015147 (eval "$lt_compile" 2>conftest.err)
15148 ac_status=$?
15149 cat conftest.err >&5
Reid Spencer9751dbf2004-09-07 18:04:45 +000015150 echo "$as_me:15150: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015151 if (exit $ac_status) && test -s "$ac_outfile"; then
15152 # The compiler can only warn and ignore the option if not recognized
15153 # So say no if there are warnings
15154 if test ! -s conftest.err; then
15155 lt_cv_prog_compiler_rtti_exceptions=yes
15156 fi
15157 fi
15158 $rm conftest*
15159
15160fi
15161echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15162echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15163
15164if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15165 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15166else
15167 :
15168fi
15169
15170fi
15171
15172lt_prog_compiler_wl_GCJ=
15173lt_prog_compiler_pic_GCJ=
15174lt_prog_compiler_static_GCJ=
15175
15176echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15177echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15178
15179 if test "$GCC" = yes; then
15180 lt_prog_compiler_wl_GCJ='-Wl,'
15181 lt_prog_compiler_static_GCJ='-static'
15182
15183 case $host_os in
15184 aix*)
15185 # All AIX code is PIC.
15186 if test "$host_cpu" = ia64; then
15187 # AIX 5 now supports IA64 processor
15188 lt_prog_compiler_static_GCJ='-Bstatic'
15189 fi
15190 ;;
15191
15192 amigaos*)
15193 # FIXME: we need at least 68020 code to build shared libraries, but
15194 # adding the `-m68020' flag to GCC prevents building anything better,
15195 # like `-m68040'.
15196 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15197 ;;
15198
15199 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15200 # PIC is the default for these OSes.
15201 ;;
15202
15203 mingw* | pw32* | os2*)
15204 # This hack is so that the source file can tell whether it is being
15205 # built for inclusion in a dll (and should export symbols for example).
15206 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15207 ;;
15208
15209 darwin* | rhapsody*)
15210 # PIC is the default on this platform
15211 # Common symbols not allowed in MH_DYLIB files
15212 lt_prog_compiler_pic_GCJ='-fno-common'
15213 ;;
15214
15215 msdosdjgpp*)
15216 # Just because we use GCC doesn't mean we suddenly get shared libraries
15217 # on systems that don't support them.
15218 lt_prog_compiler_can_build_shared_GCJ=no
15219 enable_shared=no
15220 ;;
15221
15222 sysv4*MP*)
15223 if test -d /usr/nec; then
15224 lt_prog_compiler_pic_GCJ=-Kconform_pic
15225 fi
15226 ;;
15227
15228 hpux*)
15229 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15230 # not for PA HP-UX.
15231 case "$host_cpu" in
15232 hppa*64*|ia64*)
15233 # +Z the default
15234 ;;
15235 *)
15236 lt_prog_compiler_pic_GCJ='-fPIC'
15237 ;;
15238 esac
15239 ;;
15240
15241 *)
15242 lt_prog_compiler_pic_GCJ='-fPIC'
15243 ;;
15244 esac
15245 else
15246 # PORTME Check for flag to pass linker flags through the system compiler.
15247 case $host_os in
15248 aix*)
15249 lt_prog_compiler_wl_GCJ='-Wl,'
15250 if test "$host_cpu" = ia64; then
15251 # AIX 5 now supports IA64 processor
15252 lt_prog_compiler_static_GCJ='-Bstatic'
15253 else
15254 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15255 fi
15256 ;;
15257
15258 mingw* | pw32* | os2*)
15259 # This hack is so that the source file can tell whether it is being
15260 # built for inclusion in a dll (and should export symbols for example).
15261 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15262 ;;
15263
15264 hpux9* | hpux10* | hpux11*)
15265 lt_prog_compiler_wl_GCJ='-Wl,'
15266 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15267 # not for PA HP-UX.
15268 case "$host_cpu" in
15269 hppa*64*|ia64*)
15270 # +Z the default
15271 ;;
15272 *)
15273 lt_prog_compiler_pic_GCJ='+Z'
15274 ;;
15275 esac
15276 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15277 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15278 ;;
15279
15280 irix5* | irix6* | nonstopux*)
15281 lt_prog_compiler_wl_GCJ='-Wl,'
15282 # PIC (with -KPIC) is the default.
15283 lt_prog_compiler_static_GCJ='-non_shared'
15284 ;;
15285
15286 newsos6)
15287 lt_prog_compiler_pic_GCJ='-KPIC'
15288 lt_prog_compiler_static_GCJ='-Bstatic'
15289 ;;
15290
15291 linux*)
15292 case $CC in
Reid Spencer9751dbf2004-09-07 18:04:45 +000015293 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000015294 lt_prog_compiler_wl_GCJ='-Wl,'
15295 lt_prog_compiler_pic_GCJ='-KPIC'
15296 lt_prog_compiler_static_GCJ='-static'
15297 ;;
Reid Spencer9751dbf2004-09-07 18:04:45 +000015298 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000015299 lt_prog_compiler_wl_GCJ='-Wl,'
15300 # All Alpha code is PIC.
15301 lt_prog_compiler_static_GCJ='-non_shared'
15302 ;;
15303 esac
15304 ;;
15305
15306 osf3* | osf4* | osf5*)
15307 lt_prog_compiler_wl_GCJ='-Wl,'
15308 # All OSF/1 code is PIC.
15309 lt_prog_compiler_static_GCJ='-non_shared'
15310 ;;
15311
15312 sco3.2v5*)
15313 lt_prog_compiler_pic_GCJ='-Kpic'
15314 lt_prog_compiler_static_GCJ='-dn'
15315 ;;
15316
15317 solaris*)
15318 lt_prog_compiler_wl_GCJ='-Wl,'
15319 lt_prog_compiler_pic_GCJ='-KPIC'
15320 lt_prog_compiler_static_GCJ='-Bstatic'
15321 ;;
15322
15323 sunos4*)
15324 lt_prog_compiler_wl_GCJ='-Qoption ld '
15325 lt_prog_compiler_pic_GCJ='-PIC'
15326 lt_prog_compiler_static_GCJ='-Bstatic'
15327 ;;
15328
15329 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15330 lt_prog_compiler_wl_GCJ='-Wl,'
15331 lt_prog_compiler_pic_GCJ='-KPIC'
15332 lt_prog_compiler_static_GCJ='-Bstatic'
15333 ;;
15334
15335 sysv4*MP*)
15336 if test -d /usr/nec ;then
15337 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15338 lt_prog_compiler_static_GCJ='-Bstatic'
15339 fi
15340 ;;
15341
15342 uts4*)
15343 lt_prog_compiler_pic_GCJ='-pic'
15344 lt_prog_compiler_static_GCJ='-Bstatic'
15345 ;;
15346
15347 *)
15348 lt_prog_compiler_can_build_shared_GCJ=no
15349 ;;
15350 esac
15351 fi
15352
15353echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15354echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15355
15356#
15357# Check to make sure the PIC flag actually works.
15358#
15359if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000015360
15361echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015362echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15363if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15364 echo $ECHO_N "(cached) $ECHO_C" >&6
15365else
15366 lt_prog_compiler_pic_works_GCJ=no
15367 ac_outfile=conftest.$ac_objext
15368 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15369 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15370 # Insert the option either (1) after the last *FLAGS variable, or
15371 # (2) before a word containing "conftest.", or (3) at the end.
15372 # Note that $ac_compile itself does not contain backslashes and begins
15373 # with a dollar sign (not a hyphen), so the echo should work correctly.
15374 # The option is referenced via a variable to avoid confusing sed.
15375 lt_compile=`echo "$ac_compile" | $SED \
15376 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15378 -e 's:$: $lt_compiler_flag:'`
Reid Spencer9751dbf2004-09-07 18:04:45 +000015379 (eval echo "\"\$as_me:15379: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015380 (eval "$lt_compile" 2>conftest.err)
15381 ac_status=$?
15382 cat conftest.err >&5
Reid Spencer9751dbf2004-09-07 18:04:45 +000015383 echo "$as_me:15383: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015384 if (exit $ac_status) && test -s "$ac_outfile"; then
15385 # The compiler can only warn and ignore the option if not recognized
15386 # So say no if there are warnings
15387 if test ! -s conftest.err; then
15388 lt_prog_compiler_pic_works_GCJ=yes
15389 fi
15390 fi
15391 $rm conftest*
15392
15393fi
15394echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15395echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15396
15397if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15398 case $lt_prog_compiler_pic_GCJ in
15399 "" | " "*) ;;
15400 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15401 esac
15402else
15403 lt_prog_compiler_pic_GCJ=
15404 lt_prog_compiler_can_build_shared_GCJ=no
15405fi
15406
15407fi
15408case "$host_os" in
15409 # For platforms which do not support PIC, -DPIC is meaningless:
15410 *djgpp*)
15411 lt_prog_compiler_pic_GCJ=
15412 ;;
15413 *)
15414 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15415 ;;
15416esac
15417
15418echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15419echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15420if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15421 echo $ECHO_N "(cached) $ECHO_C" >&6
15422else
15423 lt_cv_prog_compiler_c_o_GCJ=no
15424 $rm -r conftest 2>/dev/null
15425 mkdir conftest
15426 cd conftest
15427 mkdir out
15428 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15429
15430 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15431 # that will create temporary files in the current directory regardless of
15432 # the output directory. Thus, making CWD read-only will cause this test
15433 # to fail, enabling locking or at least warning the user not to do parallel
15434 # builds.
15435 chmod -w .
15436
15437 lt_compiler_flag="-o out/conftest2.$ac_objext"
15438 # Insert the option either (1) after the last *FLAGS variable, or
15439 # (2) before a word containing "conftest.", or (3) at the end.
15440 # Note that $ac_compile itself does not contain backslashes and begins
15441 # with a dollar sign (not a hyphen), so the echo should work correctly.
15442 lt_compile=`echo "$ac_compile" | $SED \
15443 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15445 -e 's:$: $lt_compiler_flag:'`
Reid Spencer9751dbf2004-09-07 18:04:45 +000015446 (eval echo "\"\$as_me:15446: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015447 (eval "$lt_compile" 2>out/conftest.err)
15448 ac_status=$?
15449 cat out/conftest.err >&5
Reid Spencer9751dbf2004-09-07 18:04:45 +000015450 echo "$as_me:15450: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015451 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15452 then
15453 # The compiler can only warn and ignore the option if not recognized
15454 # So say no if there are warnings
15455 if test ! -s out/conftest.err; then
15456 lt_cv_prog_compiler_c_o_GCJ=yes
15457 fi
15458 fi
15459 chmod u+w .
Reid Spencer9751dbf2004-09-07 18:04:45 +000015460 $rm conftest*
15461 # SGI C++ compiler will create directory out/ii_files/ for
15462 # template instantiation
15463 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15464 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015465 cd ..
15466 rmdir conftest
15467 $rm conftest*
15468
15469fi
15470echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15471echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15472
15473
15474hard_links="nottested"
15475if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15476 # do not overwrite the value of need_locks provided by the user
15477 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15478echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15479 hard_links=yes
15480 $rm conftest*
15481 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15482 touch conftest.a
15483 ln conftest.a conftest.b 2>&5 || hard_links=no
15484 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15485 echo "$as_me:$LINENO: result: $hard_links" >&5
15486echo "${ECHO_T}$hard_links" >&6
15487 if test "$hard_links" = no; then
15488 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15489echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15490 need_locks=warn
15491 fi
15492else
15493 need_locks=no
15494fi
15495
15496echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15497echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15498
15499 runpath_var=
15500 allow_undefined_flag_GCJ=
15501 enable_shared_with_static_runtimes_GCJ=no
15502 archive_cmds_GCJ=
15503 archive_expsym_cmds_GCJ=
15504 old_archive_From_new_cmds_GCJ=
15505 old_archive_from_expsyms_cmds_GCJ=
15506 export_dynamic_flag_spec_GCJ=
15507 whole_archive_flag_spec_GCJ=
15508 thread_safe_flag_spec_GCJ=
15509 hardcode_libdir_flag_spec_GCJ=
15510 hardcode_libdir_flag_spec_ld_GCJ=
15511 hardcode_libdir_separator_GCJ=
15512 hardcode_direct_GCJ=no
15513 hardcode_minus_L_GCJ=no
15514 hardcode_shlibpath_var_GCJ=unsupported
15515 link_all_deplibs_GCJ=unknown
15516 hardcode_automatic_GCJ=no
15517 module_cmds_GCJ=
15518 module_expsym_cmds_GCJ=
15519 always_export_symbols_GCJ=no
15520 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15521 # include_expsyms should be a list of space-separated symbols to be *always*
15522 # included in the symbol list
15523 include_expsyms_GCJ=
15524 # exclude_expsyms can be an extended regexp of symbols to exclude
15525 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15526 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15527 # as well as any symbol that contains `d'.
15528 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15529 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15530 # platforms (ab)use it in PIC code, but their linkers get confused if
15531 # the symbol is explicitly referenced. Since portable code cannot
15532 # rely on this symbol name, it's probably fine to never include it in
15533 # preloaded symbol tables.
15534 extract_expsyms_cmds=
15535
15536 case $host_os in
15537 cygwin* | mingw* | pw32*)
15538 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15539 # When not using gcc, we currently assume that we are using
15540 # Microsoft Visual C++.
15541 if test "$GCC" != yes; then
15542 with_gnu_ld=no
15543 fi
15544 ;;
15545 openbsd*)
15546 with_gnu_ld=no
15547 ;;
15548 esac
15549
15550 ld_shlibs_GCJ=yes
15551 if test "$with_gnu_ld" = yes; then
15552 # If archive_cmds runs LD, not CC, wlarc should be empty
15553 wlarc='${wl}'
15554
15555 # See if GNU ld supports shared libraries.
15556 case $host_os in
15557 aix3* | aix4* | aix5*)
15558 # On AIX/PPC, the GNU linker is very broken
15559 if test "$host_cpu" != ia64; then
15560 ld_shlibs_GCJ=no
15561 cat <<EOF 1>&2
15562
15563*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15564*** to be unable to reliably create shared libraries on AIX.
15565*** Therefore, libtool is disabling shared libraries support. If you
15566*** really care for shared libraries, you may want to modify your PATH
15567*** so that a non-GNU linker is found, and then restart.
15568
15569EOF
15570 fi
15571 ;;
15572
15573 amigaos*)
15574 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)'
15575 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15576 hardcode_minus_L_GCJ=yes
15577
15578 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15579 # that the semantics of dynamic libraries on AmigaOS, at least up
15580 # to version 4, is to share data among multiple programs linked
15581 # with the same dynamic library. Since this doesn't match the
15582 # behavior of shared libraries on other platforms, we can't use
15583 # them.
15584 ld_shlibs_GCJ=no
15585 ;;
15586
15587 beos*)
15588 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15589 allow_undefined_flag_GCJ=unsupported
15590 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15591 # support --undefined. This deserves some investigation. FIXME
15592 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15593 else
15594 ld_shlibs_GCJ=no
15595 fi
15596 ;;
15597
15598 cygwin* | mingw* | pw32*)
15599 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15600 # as there is no search path for DLLs.
15601 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15602 allow_undefined_flag_GCJ=unsupported
15603 always_export_symbols_GCJ=no
15604 enable_shared_with_static_runtimes_GCJ=yes
15605 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15606
15607 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15608 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15609 # If the export-symbols file already is a .def file (1st line
15610 # is EXPORTS), use it as is; otherwise, prepend...
15611 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15612 cp $export_symbols $output_objdir/$soname.def;
15613 else
15614 echo EXPORTS > $output_objdir/$soname.def;
15615 cat $export_symbols >> $output_objdir/$soname.def;
15616 fi~
15617 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15618 else
15619 ld_shlibs=no
15620 fi
15621 ;;
15622
15623 netbsd*)
15624 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15625 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15626 wlarc=
15627 else
15628 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15629 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15630 fi
15631 ;;
15632
15633 solaris* | sysv5*)
15634 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15635 ld_shlibs_GCJ=no
15636 cat <<EOF 1>&2
15637
15638*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15639*** create shared libraries on Solaris systems. Therefore, libtool
15640*** is disabling shared libraries support. We urge you to upgrade GNU
15641*** binutils to release 2.9.1 or newer. Another option is to modify
15642*** your PATH or compiler configuration so that the native linker is
15643*** used, and then restart.
15644
15645EOF
15646 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15647 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15648 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15649 else
15650 ld_shlibs_GCJ=no
15651 fi
15652 ;;
15653
15654 sunos4*)
15655 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15656 wlarc=
15657 hardcode_direct_GCJ=yes
15658 hardcode_shlibpath_var_GCJ=no
15659 ;;
15660
15661 *)
15662 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15663 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15664 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15665 else
15666 ld_shlibs_GCJ=no
15667 fi
15668 ;;
15669 esac
15670
15671 if test "$ld_shlibs_GCJ" = yes; then
15672 runpath_var=LD_RUN_PATH
15673 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15674 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15675 # ancient GNU ld didn't support --whole-archive et. al.
15676 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15677 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15678 else
15679 whole_archive_flag_spec_GCJ=
15680 fi
15681 fi
15682 else
15683 # PORTME fill in a description of your system's linker (not GNU ld)
15684 case $host_os in
15685 aix3*)
15686 allow_undefined_flag_GCJ=unsupported
15687 always_export_symbols_GCJ=yes
15688 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'
15689 # Note: this linker hardcodes the directories in LIBPATH if there
15690 # are no directories specified by -L.
15691 hardcode_minus_L_GCJ=yes
15692 if test "$GCC" = yes && test -z "$link_static_flag"; then
15693 # Neither direct hardcoding nor static linking is supported with a
15694 # broken collect2.
15695 hardcode_direct_GCJ=unsupported
15696 fi
15697 ;;
15698
15699 aix4* | aix5*)
15700 if test "$host_cpu" = ia64; then
15701 # On IA64, the linker does run time linking by default, so we don't
15702 # have to do anything special.
15703 aix_use_runtimelinking=no
15704 exp_sym_flag='-Bexport'
15705 no_entry_flag=""
15706 else
15707 # If we're using GNU nm, then we don't want the "-C" option.
15708 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15709 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15710 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'
15711 else
15712 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'
15713 fi
15714 aix_use_runtimelinking=no
15715
15716 # Test if we are trying to use run time linking or normal
15717 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15718 # need to do runtime linking.
15719 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15720 for ld_flag in $LDFLAGS; do
15721 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15722 aix_use_runtimelinking=yes
15723 break
15724 fi
15725 done
15726 esac
15727
15728 exp_sym_flag='-bexport'
15729 no_entry_flag='-bnoentry'
15730 fi
15731
15732 # When large executables or shared objects are built, AIX ld can
15733 # have problems creating the table of contents. If linking a library
15734 # or program results in "error TOC overflow" add -mminimal-toc to
15735 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15736 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15737
15738 archive_cmds_GCJ=''
15739 hardcode_direct_GCJ=yes
15740 hardcode_libdir_separator_GCJ=':'
15741 link_all_deplibs_GCJ=yes
15742
15743 if test "$GCC" = yes; then
15744 case $host_os in aix4.012|aix4.012.*)
15745 # We only want to do this on AIX 4.2 and lower, the check
15746 # below for broken collect2 doesn't work under 4.3+
15747 collect2name=`${CC} -print-prog-name=collect2`
15748 if test -f "$collect2name" && \
15749 strings "$collect2name" | grep resolve_lib_name >/dev/null
15750 then
15751 # We have reworked collect2
15752 hardcode_direct_GCJ=yes
15753 else
15754 # We have old collect2
15755 hardcode_direct_GCJ=unsupported
15756 # It fails to find uninstalled libraries when the uninstalled
15757 # path is not listed in the libpath. Setting hardcode_minus_L
15758 # to unsupported forces relinking
15759 hardcode_minus_L_GCJ=yes
15760 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15761 hardcode_libdir_separator_GCJ=
15762 fi
15763 esac
15764 shared_flag='-shared'
15765 else
15766 # not using gcc
15767 if test "$host_cpu" = ia64; then
15768 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15769 # chokes on -Wl,-G. The following line is correct:
15770 shared_flag='-G'
15771 else
15772 if test "$aix_use_runtimelinking" = yes; then
15773 shared_flag='${wl}-G'
15774 else
15775 shared_flag='${wl}-bM:SRE'
15776 fi
15777 fi
15778 fi
15779
15780 # It seems that -bexpall does not export symbols beginning with
15781 # underscore (_), so it is better to generate a list of symbols to export.
15782 always_export_symbols_GCJ=yes
15783 if test "$aix_use_runtimelinking" = yes; then
15784 # Warning - without using the other runtime loading flags (-brtl),
15785 # -berok will link without error, but may produce a broken library.
15786 allow_undefined_flag_GCJ='-berok'
15787 # Determine the default libpath from the value encoded in an empty executable.
15788 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015789/* confdefs.h. */
15790_ACEOF
15791cat confdefs.h >>conftest.$ac_ext
15792cat >>conftest.$ac_ext <<_ACEOF
15793/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015794
John Criswell47fdd832003-07-14 16:52:07 +000015795int
15796main ()
15797{
15798
15799 ;
15800 return 0;
15801}
15802_ACEOF
15803rm -f conftest.$ac_objext conftest$ac_exeext
15804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000015805 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015806 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000015807 grep -v '^ *+' conftest.er1 >conftest.err
15808 rm -f conftest.er1
15809 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000015812 { ac_try='test -z "$ac_c_werror_flag"
15813 || test ! -s conftest.err'
15814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15815 (eval $ac_try) 2>&5
15816 ac_status=$?
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); }; } &&
15819 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5
15822 ac_status=$?
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; }; then
15825
15826aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15827}'`
15828# Check for a 64-bit object if we didn't find anything.
15829if 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; }
15830}'`; fi
15831else
15832 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015833sed 's/^/| /' conftest.$ac_ext >&5
15834
John Criswell47fdd832003-07-14 16:52:07 +000015835fi
Reid Spencer17041682004-09-05 17:48:32 +000015836rm -f conftest.err conftest.$ac_objext \
15837 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015838if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15839
15840 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15841 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"
15842 else
15843 if test "$host_cpu" = ia64; then
15844 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15845 allow_undefined_flag_GCJ="-z nodefs"
15846 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"
15847 else
15848 # Determine the default libpath from the value encoded in an empty executable.
15849 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015850/* confdefs.h. */
15851_ACEOF
15852cat confdefs.h >>conftest.$ac_ext
15853cat >>conftest.$ac_ext <<_ACEOF
15854/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015855
John Criswell47fdd832003-07-14 16:52:07 +000015856int
15857main ()
15858{
15859
15860 ;
15861 return 0;
15862}
15863_ACEOF
15864rm -f conftest.$ac_objext conftest$ac_exeext
15865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000015866 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015867 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000015868 grep -v '^ *+' conftest.er1 >conftest.err
15869 rm -f conftest.er1
15870 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000015873 { ac_try='test -z "$ac_c_werror_flag"
15874 || test ! -s conftest.err'
15875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15876 (eval $ac_try) 2>&5
15877 ac_status=$?
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); }; } &&
15880 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15882 (eval $ac_try) 2>&5
15883 ac_status=$?
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); }; }; then
15886
15887aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15888}'`
15889# Check for a 64-bit object if we didn't find anything.
15890if 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; }
15891}'`; fi
15892else
15893 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015894sed 's/^/| /' conftest.$ac_ext >&5
15895
John Criswell47fdd832003-07-14 16:52:07 +000015896fi
Reid Spencer17041682004-09-05 17:48:32 +000015897rm -f conftest.err conftest.$ac_objext \
15898 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015899if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15900
15901 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15902 # Warning - without using the other run time loading flags,
15903 # -berok will link without error, but may produce a broken library.
15904 no_undefined_flag_GCJ=' ${wl}-bernotok'
15905 allow_undefined_flag_GCJ=' ${wl}-berok'
15906 # -bexpall does not export symbols beginning with underscore (_)
15907 always_export_symbols_GCJ=yes
15908 # Exported symbols can be pulled into shared objects from archives
15909 whole_archive_flag_spec_GCJ=' '
15910 archive_cmds_need_lc_GCJ=yes
15911 # This is similar to how AIX traditionally builds it's shared libraries.
15912 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'
15913 fi
15914 fi
15915 ;;
15916
15917 amigaos*)
15918 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)'
15919 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15920 hardcode_minus_L_GCJ=yes
15921 # see comment about different semantics on the GNU ld section
15922 ld_shlibs_GCJ=no
15923 ;;
15924
15925 bsdi4*)
15926 export_dynamic_flag_spec_GCJ=-rdynamic
15927 ;;
15928
15929 cygwin* | mingw* | pw32*)
15930 # When not using gcc, we currently assume that we are using
15931 # Microsoft Visual C++.
15932 # hardcode_libdir_flag_spec is actually meaningless, as there is
15933 # no search path for DLLs.
15934 hardcode_libdir_flag_spec_GCJ=' '
15935 allow_undefined_flag_GCJ=unsupported
15936 # Tell ltmain to make .lib files, not .a files.
15937 libext=lib
15938 # Tell ltmain to make .dll files, not .so files.
15939 shrext=".dll"
15940 # FIXME: Setting linknames here is a bad hack.
15941 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15942 # The linker will automatically build a .lib file if we build a DLL.
15943 old_archive_From_new_cmds_GCJ='true'
15944 # FIXME: Should let the user specify the lib program.
15945 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15946 fix_srcfile_path='`cygpath -w "$srcfile"`'
15947 enable_shared_with_static_runtimes_GCJ=yes
15948 ;;
15949
15950 darwin* | rhapsody*)
Reid Spencer9751dbf2004-09-07 18:04:45 +000015951 if test "$GXX" = yes ; then
John Criswell47fdd832003-07-14 16:52:07 +000015952 archive_cmds_need_lc_GCJ=no
15953 case "$host_os" in
15954 rhapsody* | darwin1.[012])
15955 allow_undefined_flag_GCJ='-undefined suppress'
15956 ;;
15957 *) # Darwin 1.3 on
Reid Spencer9751dbf2004-09-07 18:04:45 +000015958 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15959 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15960 else
15961 case ${MACOSX_DEPLOYMENT_TARGET} in
15962 10.[012])
15963 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15964 ;;
15965 10.*)
15966 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15967 ;;
15968 esac
15969 fi
John Criswell47fdd832003-07-14 16:52:07 +000015970 ;;
15971 esac
John Criswell47fdd832003-07-14 16:52:07 +000015972 lt_int_apple_cc_single_mod=no
15973 output_verbose_link_cmd='echo'
15974 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15975 lt_int_apple_cc_single_mod=yes
15976 fi
15977 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15978 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15979 else
15980 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'
15981 fi
Reid Spencer9751dbf2004-09-07 18:04:45 +000015982 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015983 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15984 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15985 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}'
15986 else
15987 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}'
15988 fi
Reid Spencer9751dbf2004-09-07 18:04:45 +000015989 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}'
John Criswell47fdd832003-07-14 16:52:07 +000015990 hardcode_direct_GCJ=no
15991 hardcode_automatic_GCJ=yes
15992 hardcode_shlibpath_var_GCJ=unsupported
15993 whole_archive_flag_spec_GCJ='-all_load $convenience'
15994 link_all_deplibs_GCJ=yes
Reid Spencer9751dbf2004-09-07 18:04:45 +000015995 else
15996 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000015997 fi
15998 ;;
15999
16000 dgux*)
16001 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16002 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16003 hardcode_shlibpath_var_GCJ=no
16004 ;;
16005
16006 freebsd1*)
16007 ld_shlibs_GCJ=no
16008 ;;
16009
16010 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16011 # support. Future versions do this automatically, but an explicit c++rt0.o
16012 # does not break anything, and helps significantly (at the cost of a little
16013 # extra space).
16014 freebsd2.2*)
16015 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16016 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16017 hardcode_direct_GCJ=yes
16018 hardcode_shlibpath_var_GCJ=no
16019 ;;
16020
16021 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16022 freebsd2*)
16023 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16024 hardcode_direct_GCJ=yes
16025 hardcode_minus_L_GCJ=yes
16026 hardcode_shlibpath_var_GCJ=no
16027 ;;
16028
16029 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016030 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016031 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16032 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16033 hardcode_direct_GCJ=yes
16034 hardcode_shlibpath_var_GCJ=no
16035 ;;
16036
16037 hpux9*)
16038 if test "$GCC" = yes; then
16039 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'
16040 else
16041 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'
16042 fi
16043 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16044 hardcode_libdir_separator_GCJ=:
16045 hardcode_direct_GCJ=yes
16046
16047 # hardcode_minus_L: Not really in the search PATH,
16048 # but as the default location of the library.
16049 hardcode_minus_L_GCJ=yes
16050 export_dynamic_flag_spec_GCJ='${wl}-E'
16051 ;;
16052
16053 hpux10* | hpux11*)
16054 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16055 case "$host_cpu" in
16056 hppa*64*|ia64*)
16057 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16058 ;;
16059 *)
16060 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16061 ;;
16062 esac
16063 else
16064 case "$host_cpu" in
16065 hppa*64*|ia64*)
16066 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16067 ;;
16068 *)
16069 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16070 ;;
16071 esac
16072 fi
16073 if test "$with_gnu_ld" = no; then
16074 case "$host_cpu" in
16075 hppa*64*)
16076 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16077 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16078 hardcode_libdir_separator_GCJ=:
16079 hardcode_direct_GCJ=no
16080 hardcode_shlibpath_var_GCJ=no
16081 ;;
16082 ia64*)
16083 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16084 hardcode_direct_GCJ=no
16085 hardcode_shlibpath_var_GCJ=no
16086
16087 # hardcode_minus_L: Not really in the search PATH,
16088 # but as the default location of the library.
16089 hardcode_minus_L_GCJ=yes
16090 ;;
16091 *)
16092 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16093 hardcode_libdir_separator_GCJ=:
16094 hardcode_direct_GCJ=yes
16095 export_dynamic_flag_spec_GCJ='${wl}-E'
16096
16097 # hardcode_minus_L: Not really in the search PATH,
16098 # but as the default location of the library.
16099 hardcode_minus_L_GCJ=yes
16100 ;;
16101 esac
16102 fi
16103 ;;
16104
16105 irix5* | irix6* | nonstopux*)
16106 if test "$GCC" = yes; then
16107 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'
16108 else
16109 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'
16110 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16111 fi
16112 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16113 hardcode_libdir_separator_GCJ=:
16114 link_all_deplibs_GCJ=yes
16115 ;;
16116
16117 netbsd*)
16118 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16119 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16120 else
16121 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16122 fi
16123 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16124 hardcode_direct_GCJ=yes
16125 hardcode_shlibpath_var_GCJ=no
16126 ;;
16127
16128 newsos6)
16129 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16130 hardcode_direct_GCJ=yes
16131 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16132 hardcode_libdir_separator_GCJ=:
16133 hardcode_shlibpath_var_GCJ=no
16134 ;;
16135
16136 openbsd*)
16137 hardcode_direct_GCJ=yes
16138 hardcode_shlibpath_var_GCJ=no
16139 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16140 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16141 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16142 export_dynamic_flag_spec_GCJ='${wl}-E'
16143 else
16144 case $host_os in
16145 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16146 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16147 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16148 ;;
16149 *)
16150 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16151 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16152 ;;
16153 esac
16154 fi
16155 ;;
16156
16157 os2*)
16158 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16159 hardcode_minus_L_GCJ=yes
16160 allow_undefined_flag_GCJ=unsupported
16161 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'
16162 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16163 ;;
16164
16165 osf3*)
16166 if test "$GCC" = yes; then
16167 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16168 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'
16169 else
16170 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16171 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'
16172 fi
16173 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16174 hardcode_libdir_separator_GCJ=:
16175 ;;
16176
16177 osf4* | osf5*) # as osf3* with the addition of -msym flag
16178 if test "$GCC" = yes; then
16179 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16180 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'
16181 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16182 else
16183 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16184 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'
16185 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~
16186 $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'
16187
16188 # Both c and cxx compiler support -rpath directly
16189 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16190 fi
16191 hardcode_libdir_separator_GCJ=:
16192 ;;
16193
16194 sco3.2v5*)
16195 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16196 hardcode_shlibpath_var_GCJ=no
16197 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16198 runpath_var=LD_RUN_PATH
16199 hardcode_runpath_var=yes
16200 ;;
16201
16202 solaris*)
16203 no_undefined_flag_GCJ=' -z text'
16204 if test "$GCC" = yes; then
16205 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16206 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16207 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16208 else
16209 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16210 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16211 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16212 fi
16213 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16214 hardcode_shlibpath_var_GCJ=no
16215 case $host_os in
16216 solaris2.[0-5] | solaris2.[0-5].*) ;;
16217 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16218 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16219 esac
16220 link_all_deplibs_GCJ=yes
16221 ;;
16222
16223 sunos4*)
16224 if test "x$host_vendor" = xsequent; then
16225 # Use $CC to link under sequent, because it throws in some extra .o
16226 # files that make .init and .fini sections work.
16227 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16228 else
16229 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16230 fi
16231 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16232 hardcode_direct_GCJ=yes
16233 hardcode_minus_L_GCJ=yes
16234 hardcode_shlibpath_var_GCJ=no
16235 ;;
16236
16237 sysv4)
16238 case $host_vendor in
16239 sni)
16240 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16241 hardcode_direct_GCJ=yes # is this really true???
16242 ;;
16243 siemens)
16244 ## LD is ld it makes a PLAMLIB
16245 ## CC just makes a GrossModule.
16246 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16247 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16248 hardcode_direct_GCJ=no
16249 ;;
16250 motorola)
16251 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16252 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16253 ;;
16254 esac
16255 runpath_var='LD_RUN_PATH'
16256 hardcode_shlibpath_var_GCJ=no
16257 ;;
16258
16259 sysv4.3*)
16260 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16261 hardcode_shlibpath_var_GCJ=no
16262 export_dynamic_flag_spec_GCJ='-Bexport'
16263 ;;
16264
16265 sysv4*MP*)
16266 if test -d /usr/nec; then
16267 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16268 hardcode_shlibpath_var_GCJ=no
16269 runpath_var=LD_RUN_PATH
16270 hardcode_runpath_var=yes
16271 ld_shlibs_GCJ=yes
16272 fi
16273 ;;
16274
16275 sysv4.2uw2*)
16276 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16277 hardcode_direct_GCJ=yes
16278 hardcode_minus_L_GCJ=no
16279 hardcode_shlibpath_var_GCJ=no
16280 hardcode_runpath_var=yes
16281 runpath_var=LD_RUN_PATH
16282 ;;
16283
16284 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16285 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16286 if test "$GCC" = yes; then
16287 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16288 else
16289 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16290 fi
16291 runpath_var='LD_RUN_PATH'
16292 hardcode_shlibpath_var_GCJ=no
16293 ;;
16294
16295 sysv5*)
16296 no_undefined_flag_GCJ=' -z text'
16297 # $CC -shared without GNU ld will not create a library from C++
16298 # object files and a static libstdc++, better avoid it by now
16299 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16300 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16301 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16302 hardcode_libdir_flag_spec_GCJ=
16303 hardcode_shlibpath_var_GCJ=no
16304 runpath_var='LD_RUN_PATH'
16305 ;;
16306
16307 uts4*)
16308 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16309 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16310 hardcode_shlibpath_var_GCJ=no
16311 ;;
16312
16313 *)
16314 ld_shlibs_GCJ=no
16315 ;;
16316 esac
16317 fi
16318
16319echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16320echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16321test "$ld_shlibs_GCJ" = no && can_build_shared=no
16322
16323variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16324if test "$GCC" = yes; then
16325 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16326fi
16327
16328#
16329# Do we need to explicitly link libc?
16330#
16331case "x$archive_cmds_need_lc_GCJ" in
16332x|xyes)
16333 # Assume -lc should be added
16334 archive_cmds_need_lc_GCJ=yes
16335
16336 if test "$enable_shared" = yes && test "$GCC" = yes; then
16337 case $archive_cmds_GCJ in
16338 *'~'*)
16339 # FIXME: we may have to deal with multi-command sequences.
16340 ;;
16341 '$CC '*)
16342 # Test whether the compiler implicitly links with -lc since on some
16343 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16344 # to ld, don't add -lc before -lgcc.
16345 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16346echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16347 $rm conftest*
16348 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16349
16350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16351 (eval $ac_compile) 2>&5
16352 ac_status=$?
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); } 2>conftest.err; then
16355 soname=conftest
16356 lib=conftest
16357 libobjs=conftest.$ac_objext
16358 deplibs=
16359 wl=$lt_prog_compiler_wl_GCJ
16360 compiler_flags=-v
16361 linker_flags=-v
16362 verstring=
16363 output_objdir=.
16364 libname=conftest
16365 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16366 allow_undefined_flag_GCJ=
16367 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16368 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16369 ac_status=$?
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }
16372 then
16373 archive_cmds_need_lc_GCJ=no
16374 else
16375 archive_cmds_need_lc_GCJ=yes
16376 fi
16377 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16378 else
16379 cat conftest.err 1>&5
16380 fi
16381 $rm conftest*
16382 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16383echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16384 ;;
16385 esac
16386 fi
16387 ;;
16388esac
16389
John Criswell47fdd832003-07-14 16:52:07 +000016390echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16391echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16392library_names_spec=
16393libname_spec='lib$name'
16394soname_spec=
16395shrext=".so"
16396postinstall_cmds=
16397postuninstall_cmds=
16398finish_cmds=
16399finish_eval=
16400shlibpath_var=
16401shlibpath_overrides_runpath=unknown
16402version_type=none
16403dynamic_linker="$host_os ld.so"
16404sys_lib_dlsearch_path_spec="/lib /usr/lib"
16405if test "$GCC" = yes; then
16406 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16407 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16408 # if the path contains ";" then we assume it to be the separator
16409 # otherwise default to the standard path separator (i.e. ":") - it is
16410 # assumed that no part of a normal pathname contains ";" but that should
16411 # okay in the real world where ";" in dirpaths is itself problematic.
16412 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16413 else
16414 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16415 fi
16416else
16417 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16418fi
16419need_lib_prefix=unknown
16420hardcode_into_libs=no
16421
16422# when you set need_version to no, make sure it does not cause -set_version
16423# flags to be left without arguments
16424need_version=unknown
16425
16426case $host_os in
16427aix3*)
16428 version_type=linux
16429 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16430 shlibpath_var=LIBPATH
16431
16432 # AIX 3 has no versioning support, so we append a major version to the name.
16433 soname_spec='${libname}${release}${shared_ext}$major'
16434 ;;
16435
16436aix4* | aix5*)
16437 version_type=linux
16438 need_lib_prefix=no
16439 need_version=no
16440 hardcode_into_libs=yes
16441 if test "$host_cpu" = ia64; then
16442 # AIX 5 supports IA64
16443 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16444 shlibpath_var=LD_LIBRARY_PATH
16445 else
16446 # With GCC up to 2.95.x, collect2 would create an import file
16447 # for dependence libraries. The import file would start with
16448 # the line `#! .'. This would cause the generated library to
16449 # depend on `.', always an invalid library. This was fixed in
16450 # development snapshots of GCC prior to 3.0.
16451 case $host_os in
16452 aix4 | aix4.[01] | aix4.[01].*)
16453 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16454 echo ' yes '
16455 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16456 :
16457 else
16458 can_build_shared=no
16459 fi
16460 ;;
16461 esac
16462 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16463 # soname into executable. Probably we can add versioning support to
16464 # collect2, so additional links can be useful in future.
16465 if test "$aix_use_runtimelinking" = yes; then
16466 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16467 # instead of lib<name>.a to let people know that these are not
16468 # typical AIX shared libraries.
16469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16470 else
16471 # We preserve .a as extension for shared libraries through AIX4.2
16472 # and later when we are not doing run time linking.
16473 library_names_spec='${libname}${release}.a $libname.a'
16474 soname_spec='${libname}${release}${shared_ext}$major'
16475 fi
16476 shlibpath_var=LIBPATH
16477 fi
16478 ;;
16479
16480amigaos*)
16481 library_names_spec='$libname.ixlibrary $libname.a'
16482 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016483 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'
John Criswell47fdd832003-07-14 16:52:07 +000016484 ;;
16485
16486beos*)
16487 library_names_spec='${libname}${shared_ext}'
16488 dynamic_linker="$host_os ld.so"
16489 shlibpath_var=LIBRARY_PATH
16490 ;;
16491
16492bsdi4*)
16493 version_type=linux
16494 need_version=no
16495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16496 soname_spec='${libname}${release}${shared_ext}$major'
16497 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16498 shlibpath_var=LD_LIBRARY_PATH
16499 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16500 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16501 # the default ld.so.conf also contains /usr/contrib/lib and
16502 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16503 # libtool to hard-code these into programs
16504 ;;
16505
16506cygwin* | mingw* | pw32*)
16507 version_type=windows
16508 shrext=".dll"
16509 need_version=no
16510 need_lib_prefix=no
16511
16512 case $GCC,$host_os in
16513 yes,cygwin* | yes,mingw* | yes,pw32*)
16514 library_names_spec='$libname.dll.a'
16515 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16516 postinstall_cmds='base_file=`basename \${file}`~
16517 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16518 dldir=$destdir/`dirname \$dlpath`~
16519 test -d \$dldir || mkdir -p \$dldir~
16520 $install_prog $dir/$dlname \$dldir/$dlname'
16521 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16522 dlpath=$dir/\$dldll~
16523 $rm \$dlpath'
16524 shlibpath_overrides_runpath=yes
16525
16526 case $host_os in
16527 cygwin*)
16528 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16529 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer9751dbf2004-09-07 18:04:45 +000016530 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016531 ;;
16532 mingw*)
16533 # MinGW DLLs use traditional 'lib' prefix
16534 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16535 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16536 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16537 # It is most probably a Windows format PATH printed by
16538 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16539 # path with ; separators, and with drive letters. We can handle the
16540 # drive letters (cygwin fileutils understands them), so leave them,
16541 # especially as we might pass files found there to a mingw objdump,
16542 # which wouldn't understand a cygwinified path. Ahh.
16543 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16544 else
16545 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16546 fi
16547 ;;
16548 pw32*)
16549 # pw32 DLLs use 'pw' prefix rather than 'lib'
16550 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16551 ;;
16552 esac
16553 ;;
16554
16555 *)
16556 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16557 ;;
16558 esac
16559 dynamic_linker='Win32 ld.exe'
16560 # FIXME: first we should search . and the directory the executable is in
16561 shlibpath_var=PATH
16562 ;;
16563
16564darwin* | rhapsody*)
16565 dynamic_linker="$host_os dyld"
16566 version_type=darwin
16567 need_lib_prefix=no
16568 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016569 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16570 soname_spec='${libname}${release}${major}$shared_ext'
16571 shlibpath_overrides_runpath=yes
16572 shlibpath_var=DYLD_LIBRARY_PATH
16573 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16574 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016575 if test "$GCC" = yes; then
16576 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"`
16577 else
16578 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016579 fi
16580 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16581 ;;
16582
16583dgux*)
16584 version_type=linux
16585 need_lib_prefix=no
16586 need_version=no
16587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16588 soname_spec='${libname}${release}${shared_ext}$major'
16589 shlibpath_var=LD_LIBRARY_PATH
16590 ;;
16591
16592freebsd1*)
16593 dynamic_linker=no
16594 ;;
16595
Reid Spencer9751dbf2004-09-07 18:04:45 +000016596kfreebsd*-gnu)
16597 version_type=linux
16598 need_lib_prefix=no
16599 need_version=no
16600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16601 soname_spec='${libname}${release}${shared_ext}$major'
16602 shlibpath_var=LD_LIBRARY_PATH
16603 shlibpath_overrides_runpath=no
16604 hardcode_into_libs=yes
16605 dynamic_linker='GNU ld.so'
16606 ;;
16607
John Criswell47fdd832003-07-14 16:52:07 +000016608freebsd*)
16609 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16610 version_type=freebsd-$objformat
16611 case $version_type in
16612 freebsd-elf*)
16613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16614 need_version=no
16615 need_lib_prefix=no
16616 ;;
16617 freebsd-*)
16618 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16619 need_version=yes
16620 ;;
16621 esac
16622 shlibpath_var=LD_LIBRARY_PATH
16623 case $host_os in
16624 freebsd2*)
16625 shlibpath_overrides_runpath=yes
16626 ;;
16627 freebsd3.01* | freebsdelf3.01*)
16628 shlibpath_overrides_runpath=yes
16629 hardcode_into_libs=yes
16630 ;;
16631 *) # from 3.2 on
16632 shlibpath_overrides_runpath=no
16633 hardcode_into_libs=yes
16634 ;;
16635 esac
16636 ;;
16637
16638gnu*)
16639 version_type=linux
16640 need_lib_prefix=no
16641 need_version=no
16642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16643 soname_spec='${libname}${release}${shared_ext}$major'
16644 shlibpath_var=LD_LIBRARY_PATH
16645 hardcode_into_libs=yes
16646 ;;
16647
16648hpux9* | hpux10* | hpux11*)
16649 # Give a soname corresponding to the major version so that dld.sl refuses to
16650 # link against other versions.
16651 version_type=sunos
16652 need_lib_prefix=no
16653 need_version=no
16654 case "$host_cpu" in
16655 ia64*)
16656 shrext='.so'
16657 hardcode_into_libs=yes
16658 dynamic_linker="$host_os dld.so"
16659 shlibpath_var=LD_LIBRARY_PATH
16660 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16662 soname_spec='${libname}${release}${shared_ext}$major'
16663 if test "X$HPUX_IA64_MODE" = X32; then
16664 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16665 else
16666 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16667 fi
16668 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16669 ;;
16670 hppa*64*)
16671 shrext='.sl'
16672 hardcode_into_libs=yes
16673 dynamic_linker="$host_os dld.sl"
16674 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16675 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16677 soname_spec='${libname}${release}${shared_ext}$major'
16678 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16679 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16680 ;;
16681 *)
16682 shrext='.sl'
16683 dynamic_linker="$host_os dld.sl"
16684 shlibpath_var=SHLIB_PATH
16685 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16687 soname_spec='${libname}${release}${shared_ext}$major'
16688 ;;
16689 esac
16690 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16691 postinstall_cmds='chmod 555 $lib'
16692 ;;
16693
16694irix5* | irix6* | nonstopux*)
16695 case $host_os in
16696 nonstopux*) version_type=nonstopux ;;
16697 *)
16698 if test "$lt_cv_prog_gnu_ld" = yes; then
16699 version_type=linux
16700 else
16701 version_type=irix
16702 fi ;;
16703 esac
16704 need_lib_prefix=no
16705 need_version=no
16706 soname_spec='${libname}${release}${shared_ext}$major'
16707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16708 case $host_os in
16709 irix5* | nonstopux*)
16710 libsuff= shlibsuff=
16711 ;;
16712 *)
16713 case $LD in # libtool.m4 will add one of these switches to LD
16714 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16715 libsuff= shlibsuff= libmagic=32-bit;;
16716 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16717 libsuff=32 shlibsuff=N32 libmagic=N32;;
16718 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16719 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16720 *) libsuff= shlibsuff= libmagic=never-match;;
16721 esac
16722 ;;
16723 esac
16724 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16725 shlibpath_overrides_runpath=no
16726 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16727 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16728 hardcode_into_libs=yes
16729 ;;
16730
16731# No shared lib support for Linux oldld, aout, or coff.
16732linux*oldld* | linux*aout* | linux*coff*)
16733 dynamic_linker=no
16734 ;;
16735
16736# This must be Linux ELF.
16737linux*)
16738 version_type=linux
16739 need_lib_prefix=no
16740 need_version=no
16741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16742 soname_spec='${libname}${release}${shared_ext}$major'
16743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16744 shlibpath_var=LD_LIBRARY_PATH
16745 shlibpath_overrides_runpath=no
16746 # This implies no fast_install, which is unacceptable.
16747 # Some rework will be needed to allow for fast_install
16748 # before this can be enabled.
16749 hardcode_into_libs=yes
16750
16751 # We used to test for /lib/ld.so.1 and disable shared libraries on
16752 # powerpc, because MkLinux only supported shared libraries with the
16753 # GNU dynamic linker. Since this was broken with cross compilers,
16754 # most powerpc-linux boxes support dynamic linking these days and
16755 # people can always --disable-shared, the test was removed, and we
16756 # assume the GNU/Linux dynamic linker is in use.
16757 dynamic_linker='GNU/Linux ld.so'
16758 ;;
16759
Reid Spencer9751dbf2004-09-07 18:04:45 +000016760knetbsd*-gnu)
16761 version_type=linux
16762 need_lib_prefix=no
16763 need_version=no
16764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16765 soname_spec='${libname}${release}${shared_ext}$major'
16766 shlibpath_var=LD_LIBRARY_PATH
16767 shlibpath_overrides_runpath=no
16768 hardcode_into_libs=yes
16769 dynamic_linker='GNU ld.so'
16770 ;;
16771
John Criswell47fdd832003-07-14 16:52:07 +000016772netbsd*)
16773 version_type=sunos
16774 need_lib_prefix=no
16775 need_version=no
16776 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16778 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16779 dynamic_linker='NetBSD (a.out) ld.so'
16780 else
16781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16782 soname_spec='${libname}${release}${shared_ext}$major'
16783 dynamic_linker='NetBSD ld.elf_so'
16784 fi
16785 shlibpath_var=LD_LIBRARY_PATH
16786 shlibpath_overrides_runpath=yes
16787 hardcode_into_libs=yes
16788 ;;
16789
16790newsos6)
16791 version_type=linux
16792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16793 shlibpath_var=LD_LIBRARY_PATH
16794 shlibpath_overrides_runpath=yes
16795 ;;
16796
Reid Spencer9751dbf2004-09-07 18:04:45 +000016797nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016798 version_type=linux
16799 need_lib_prefix=no
16800 need_version=no
16801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16802 soname_spec='${libname}${release}${shared_ext}$major'
16803 shlibpath_var=LD_LIBRARY_PATH
16804 shlibpath_overrides_runpath=yes
16805 ;;
16806
16807openbsd*)
16808 version_type=sunos
16809 need_lib_prefix=no
Reid Spencer9751dbf2004-09-07 18:04:45 +000016810 need_version=yes
John Criswell47fdd832003-07-14 16:52:07 +000016811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16813 shlibpath_var=LD_LIBRARY_PATH
16814 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16815 case $host_os in
16816 openbsd2.[89] | openbsd2.[89].*)
16817 shlibpath_overrides_runpath=no
16818 ;;
16819 *)
16820 shlibpath_overrides_runpath=yes
16821 ;;
16822 esac
16823 else
16824 shlibpath_overrides_runpath=yes
16825 fi
16826 ;;
16827
16828os2*)
16829 libname_spec='$name'
16830 shrext=".dll"
16831 need_lib_prefix=no
16832 library_names_spec='$libname${shared_ext} $libname.a'
16833 dynamic_linker='OS/2 ld.exe'
16834 shlibpath_var=LIBPATH
16835 ;;
16836
16837osf3* | osf4* | osf5*)
16838 version_type=osf
16839 need_lib_prefix=no
16840 need_version=no
16841 soname_spec='${libname}${release}${shared_ext}$major'
16842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16843 shlibpath_var=LD_LIBRARY_PATH
16844 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16845 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16846 ;;
16847
16848sco3.2v5*)
16849 version_type=osf
16850 soname_spec='${libname}${release}${shared_ext}$major'
16851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16852 shlibpath_var=LD_LIBRARY_PATH
16853 ;;
16854
16855solaris*)
16856 version_type=linux
16857 need_lib_prefix=no
16858 need_version=no
16859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16860 soname_spec='${libname}${release}${shared_ext}$major'
16861 shlibpath_var=LD_LIBRARY_PATH
16862 shlibpath_overrides_runpath=yes
16863 hardcode_into_libs=yes
16864 # ldd complains unless libraries are executable
16865 postinstall_cmds='chmod +x $lib'
16866 ;;
16867
16868sunos4*)
16869 version_type=sunos
16870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16871 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16872 shlibpath_var=LD_LIBRARY_PATH
16873 shlibpath_overrides_runpath=yes
16874 if test "$with_gnu_ld" = yes; then
16875 need_lib_prefix=no
16876 fi
16877 need_version=yes
16878 ;;
16879
16880sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16881 version_type=linux
16882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16883 soname_spec='${libname}${release}${shared_ext}$major'
16884 shlibpath_var=LD_LIBRARY_PATH
16885 case $host_vendor in
16886 sni)
16887 shlibpath_overrides_runpath=no
16888 need_lib_prefix=no
16889 export_dynamic_flag_spec='${wl}-Blargedynsym'
16890 runpath_var=LD_RUN_PATH
16891 ;;
16892 siemens)
16893 need_lib_prefix=no
16894 ;;
16895 motorola)
16896 need_lib_prefix=no
16897 need_version=no
16898 shlibpath_overrides_runpath=no
16899 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16900 ;;
16901 esac
16902 ;;
16903
16904sysv4*MP*)
16905 if test -d /usr/nec ;then
16906 version_type=linux
16907 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16908 soname_spec='$libname${shared_ext}.$major'
16909 shlibpath_var=LD_LIBRARY_PATH
16910 fi
16911 ;;
16912
16913uts4*)
16914 version_type=linux
16915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16916 soname_spec='${libname}${release}${shared_ext}$major'
16917 shlibpath_var=LD_LIBRARY_PATH
16918 ;;
16919
16920*)
16921 dynamic_linker=no
16922 ;;
16923esac
16924echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16925echo "${ECHO_T}$dynamic_linker" >&6
16926test "$dynamic_linker" = no && can_build_shared=no
16927
Reid Spencer9751dbf2004-09-07 18:04:45 +000016928echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16929echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16930hardcode_action_GCJ=
16931if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16932 test -n "$runpath_var GCJ" || \
16933 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16934
16935 # We can hardcode non-existant directories.
16936 if test "$hardcode_direct_GCJ" != no &&
16937 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16938 # have to relink, otherwise we might link with an installed library
16939 # when we should be linking with a yet-to-be-installed one
16940 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16941 test "$hardcode_minus_L_GCJ" != no; then
16942 # Linking always hardcodes the temporary library directory.
16943 hardcode_action_GCJ=relink
16944 else
16945 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16946 hardcode_action_GCJ=immediate
16947 fi
16948else
16949 # We cannot hardcode anything, or else we can only hardcode existing
16950 # directories.
16951 hardcode_action_GCJ=unsupported
16952fi
16953echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16954echo "${ECHO_T}$hardcode_action_GCJ" >&6
16955
16956if test "$hardcode_action_GCJ" = relink; then
16957 # Fast installation is not supported
16958 enable_fast_install=no
16959elif test "$shlibpath_overrides_runpath" = yes ||
16960 test "$enable_shared" = no; then
16961 # Fast installation is not necessary
16962 enable_fast_install=needless
16963fi
16964
16965striplib=
16966old_striplib=
16967echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16968echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16969if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16970 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16971 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16972 echo "$as_me:$LINENO: result: yes" >&5
16973echo "${ECHO_T}yes" >&6
16974else
16975# FIXME - insert some real tests, host_os isn't really good enough
16976 case $host_os in
16977 darwin*)
16978 if test -n "$STRIP" ; then
16979 striplib="$STRIP -x"
16980 echo "$as_me:$LINENO: result: yes" >&5
16981echo "${ECHO_T}yes" >&6
16982 else
16983 echo "$as_me:$LINENO: result: no" >&5
16984echo "${ECHO_T}no" >&6
16985fi
16986 ;;
16987 *)
16988 echo "$as_me:$LINENO: result: no" >&5
16989echo "${ECHO_T}no" >&6
16990 ;;
16991 esac
16992fi
16993
John Criswell47fdd832003-07-14 16:52:07 +000016994if test "x$enable_dlopen" != xyes; then
16995 enable_dlopen=unknown
16996 enable_dlopen_self=unknown
16997 enable_dlopen_self_static=unknown
16998else
16999 lt_cv_dlopen=no
17000 lt_cv_dlopen_libs=
17001
17002 case $host_os in
17003 beos*)
17004 lt_cv_dlopen="load_add_on"
17005 lt_cv_dlopen_libs=
17006 lt_cv_dlopen_self=yes
17007 ;;
17008
17009 mingw* | pw32*)
17010 lt_cv_dlopen="LoadLibrary"
17011 lt_cv_dlopen_libs=
17012 ;;
17013
17014 cygwin*)
17015 lt_cv_dlopen="dlopen"
17016 lt_cv_dlopen_libs=
17017 ;;
17018
17019 darwin*)
17020 # if libdl is installed we need to link against it
17021 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17022echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17023if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17024 echo $ECHO_N "(cached) $ECHO_C" >&6
17025else
17026 ac_check_lib_save_LIBS=$LIBS
17027LIBS="-ldl $LIBS"
17028cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017029/* confdefs.h. */
17030_ACEOF
17031cat confdefs.h >>conftest.$ac_ext
17032cat >>conftest.$ac_ext <<_ACEOF
17033/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017034
17035/* Override any gcc2 internal prototype to avoid an error. */
17036#ifdef __cplusplus
17037extern "C"
17038#endif
17039/* We use char because int might match the return type of a gcc2
17040 builtin and then its argument prototype would still apply. */
17041char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017042int
17043main ()
17044{
17045dlopen ();
17046 ;
17047 return 0;
17048}
17049_ACEOF
17050rm -f conftest.$ac_objext conftest$ac_exeext
17051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000017052 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017053 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000017054 grep -v '^ *+' conftest.er1 >conftest.err
17055 rm -f conftest.er1
17056 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000017059 { ac_try='test -z "$ac_c_werror_flag"
17060 || test ! -s conftest.err'
17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17063 ac_status=$?
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; } &&
17066 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17068 (eval $ac_try) 2>&5
17069 ac_status=$?
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); }; }; then
17072 ac_cv_lib_dl_dlopen=yes
17073else
17074 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017075sed 's/^/| /' conftest.$ac_ext >&5
17076
John Criswell47fdd832003-07-14 16:52:07 +000017077ac_cv_lib_dl_dlopen=no
17078fi
Reid Spencer17041682004-09-05 17:48:32 +000017079rm -f conftest.err conftest.$ac_objext \
17080 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017081LIBS=$ac_check_lib_save_LIBS
17082fi
17083echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17084echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17085if test $ac_cv_lib_dl_dlopen = yes; then
17086 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17087else
17088
17089 lt_cv_dlopen="dyld"
17090 lt_cv_dlopen_libs=
17091 lt_cv_dlopen_self=yes
17092
17093fi
17094
17095 ;;
17096
17097 *)
17098 echo "$as_me:$LINENO: checking for shl_load" >&5
17099echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17100if test "${ac_cv_func_shl_load+set}" = set; then
17101 echo $ECHO_N "(cached) $ECHO_C" >&6
17102else
17103 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017104/* confdefs.h. */
17105_ACEOF
17106cat confdefs.h >>conftest.$ac_ext
17107cat >>conftest.$ac_ext <<_ACEOF
17108/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +000017109/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17111#define shl_load innocuous_shl_load
17112
John Criswell47fdd832003-07-14 16:52:07 +000017113/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017114 which can conflict with char shl_load (); below.
17115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17116 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +000017117
John Criswell0c38eaf2003-09-10 15:17:25 +000017118#ifdef __STDC__
17119# include <limits.h>
17120#else
17121# include <assert.h>
17122#endif
Reid Spencer17041682004-09-05 17:48:32 +000017123
17124#undef shl_load
17125
John Criswell47fdd832003-07-14 16:52:07 +000017126/* Override any gcc2 internal prototype to avoid an error. */
17127#ifdef __cplusplus
17128extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017129{
John Criswell47fdd832003-07-14 16:52:07 +000017130#endif
17131/* We use char because int might match the return type of a gcc2
17132 builtin and then its argument prototype would still apply. */
17133char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017134/* The GNU C library defines this for functions which it implements
17135 to always fail with ENOSYS. Some functions are actually named
17136 something starting with __ and the normal name is an alias. */
17137#if defined (__stub_shl_load) || defined (__stub___shl_load)
17138choke me
17139#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017140char (*f) () = shl_load;
17141#endif
17142#ifdef __cplusplus
17143}
John Criswell47fdd832003-07-14 16:52:07 +000017144#endif
17145
John Criswell0c38eaf2003-09-10 15:17:25 +000017146int
17147main ()
17148{
17149return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017150 ;
17151 return 0;
17152}
17153_ACEOF
17154rm -f conftest.$ac_objext conftest$ac_exeext
17155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000017156 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017157 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000017158 grep -v '^ *+' conftest.er1 >conftest.err
17159 rm -f conftest.er1
17160 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000017163 { ac_try='test -z "$ac_c_werror_flag"
17164 || test ! -s conftest.err'
17165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17166 (eval $ac_try) 2>&5
17167 ac_status=$?
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; } &&
17170 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17172 (eval $ac_try) 2>&5
17173 ac_status=$?
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; }; then
17176 ac_cv_func_shl_load=yes
17177else
17178 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017179sed 's/^/| /' conftest.$ac_ext >&5
17180
John Criswell47fdd832003-07-14 16:52:07 +000017181ac_cv_func_shl_load=no
17182fi
Reid Spencer17041682004-09-05 17:48:32 +000017183rm -f conftest.err conftest.$ac_objext \
17184 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017185fi
17186echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17187echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17188if test $ac_cv_func_shl_load = yes; then
17189 lt_cv_dlopen="shl_load"
17190else
17191 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17192echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17193if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17194 echo $ECHO_N "(cached) $ECHO_C" >&6
17195else
17196 ac_check_lib_save_LIBS=$LIBS
17197LIBS="-ldld $LIBS"
17198cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017199/* confdefs.h. */
17200_ACEOF
17201cat confdefs.h >>conftest.$ac_ext
17202cat >>conftest.$ac_ext <<_ACEOF
17203/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017204
17205/* Override any gcc2 internal prototype to avoid an error. */
17206#ifdef __cplusplus
17207extern "C"
17208#endif
17209/* We use char because int might match the return type of a gcc2
17210 builtin and then its argument prototype would still apply. */
17211char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017212int
17213main ()
17214{
17215shl_load ();
17216 ;
17217 return 0;
17218}
17219_ACEOF
17220rm -f conftest.$ac_objext conftest$ac_exeext
17221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000017222 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017223 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000017224 grep -v '^ *+' conftest.er1 >conftest.err
17225 rm -f conftest.er1
17226 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000017229 { ac_try='test -z "$ac_c_werror_flag"
17230 || test ! -s conftest.err'
17231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232 (eval $ac_try) 2>&5
17233 ac_status=$?
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; } &&
17236 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17238 (eval $ac_try) 2>&5
17239 ac_status=$?
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; }; then
17242 ac_cv_lib_dld_shl_load=yes
17243else
17244 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017245sed 's/^/| /' conftest.$ac_ext >&5
17246
John Criswell47fdd832003-07-14 16:52:07 +000017247ac_cv_lib_dld_shl_load=no
17248fi
Reid Spencer17041682004-09-05 17:48:32 +000017249rm -f conftest.err conftest.$ac_objext \
17250 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017251LIBS=$ac_check_lib_save_LIBS
17252fi
17253echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17254echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17255if test $ac_cv_lib_dld_shl_load = yes; then
17256 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17257else
17258 echo "$as_me:$LINENO: checking for dlopen" >&5
17259echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17260if test "${ac_cv_func_dlopen+set}" = set; then
17261 echo $ECHO_N "(cached) $ECHO_C" >&6
17262else
17263 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017264/* confdefs.h. */
17265_ACEOF
17266cat confdefs.h >>conftest.$ac_ext
17267cat >>conftest.$ac_ext <<_ACEOF
17268/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +000017269/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17271#define dlopen innocuous_dlopen
17272
John Criswell47fdd832003-07-14 16:52:07 +000017273/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017274 which can conflict with char dlopen (); below.
17275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17276 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +000017277
John Criswell0c38eaf2003-09-10 15:17:25 +000017278#ifdef __STDC__
17279# include <limits.h>
17280#else
17281# include <assert.h>
17282#endif
Reid Spencer17041682004-09-05 17:48:32 +000017283
17284#undef dlopen
17285
John Criswell47fdd832003-07-14 16:52:07 +000017286/* Override any gcc2 internal prototype to avoid an error. */
17287#ifdef __cplusplus
17288extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017289{
John Criswell47fdd832003-07-14 16:52:07 +000017290#endif
17291/* We use char because int might match the return type of a gcc2
17292 builtin and then its argument prototype would still apply. */
17293char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017294/* The GNU C library defines this for functions which it implements
17295 to always fail with ENOSYS. Some functions are actually named
17296 something starting with __ and the normal name is an alias. */
17297#if defined (__stub_dlopen) || defined (__stub___dlopen)
17298choke me
17299#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017300char (*f) () = dlopen;
17301#endif
17302#ifdef __cplusplus
17303}
John Criswell47fdd832003-07-14 16:52:07 +000017304#endif
17305
John Criswell0c38eaf2003-09-10 15:17:25 +000017306int
17307main ()
17308{
17309return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017310 ;
17311 return 0;
17312}
17313_ACEOF
17314rm -f conftest.$ac_objext conftest$ac_exeext
17315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000017316 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017317 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000017318 grep -v '^ *+' conftest.er1 >conftest.err
17319 rm -f conftest.er1
17320 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000017323 { ac_try='test -z "$ac_c_werror_flag"
17324 || test ! -s conftest.err'
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17327 ac_status=$?
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; } &&
17330 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17332 (eval $ac_try) 2>&5
17333 ac_status=$?
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); }; }; then
17336 ac_cv_func_dlopen=yes
17337else
17338 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017339sed 's/^/| /' conftest.$ac_ext >&5
17340
John Criswell47fdd832003-07-14 16:52:07 +000017341ac_cv_func_dlopen=no
17342fi
Reid Spencer17041682004-09-05 17:48:32 +000017343rm -f conftest.err conftest.$ac_objext \
17344 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017345fi
17346echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17347echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17348if test $ac_cv_func_dlopen = yes; then
17349 lt_cv_dlopen="dlopen"
17350else
17351 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17352echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17353if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17354 echo $ECHO_N "(cached) $ECHO_C" >&6
17355else
17356 ac_check_lib_save_LIBS=$LIBS
17357LIBS="-ldl $LIBS"
17358cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017359/* confdefs.h. */
17360_ACEOF
17361cat confdefs.h >>conftest.$ac_ext
17362cat >>conftest.$ac_ext <<_ACEOF
17363/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017364
17365/* Override any gcc2 internal prototype to avoid an error. */
17366#ifdef __cplusplus
17367extern "C"
17368#endif
17369/* We use char because int might match the return type of a gcc2
17370 builtin and then its argument prototype would still apply. */
17371char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017372int
17373main ()
17374{
17375dlopen ();
17376 ;
17377 return 0;
17378}
17379_ACEOF
17380rm -f conftest.$ac_objext conftest$ac_exeext
17381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000017382 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017383 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000017384 grep -v '^ *+' conftest.er1 >conftest.err
17385 rm -f conftest.er1
17386 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000017389 { ac_try='test -z "$ac_c_werror_flag"
17390 || test ! -s conftest.err'
17391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17392 (eval $ac_try) 2>&5
17393 ac_status=$?
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; } &&
17396 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398 (eval $ac_try) 2>&5
17399 ac_status=$?
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; }; then
17402 ac_cv_lib_dl_dlopen=yes
17403else
17404 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017405sed 's/^/| /' conftest.$ac_ext >&5
17406
John Criswell47fdd832003-07-14 16:52:07 +000017407ac_cv_lib_dl_dlopen=no
17408fi
Reid Spencer17041682004-09-05 17:48:32 +000017409rm -f conftest.err conftest.$ac_objext \
17410 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017411LIBS=$ac_check_lib_save_LIBS
17412fi
17413echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17414echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17415if test $ac_cv_lib_dl_dlopen = yes; then
17416 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17417else
17418 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17419echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17420if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17421 echo $ECHO_N "(cached) $ECHO_C" >&6
17422else
17423 ac_check_lib_save_LIBS=$LIBS
17424LIBS="-lsvld $LIBS"
17425cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017426/* confdefs.h. */
17427_ACEOF
17428cat confdefs.h >>conftest.$ac_ext
17429cat >>conftest.$ac_ext <<_ACEOF
17430/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017431
17432/* Override any gcc2 internal prototype to avoid an error. */
17433#ifdef __cplusplus
17434extern "C"
17435#endif
17436/* We use char because int might match the return type of a gcc2
17437 builtin and then its argument prototype would still apply. */
17438char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017439int
17440main ()
17441{
17442dlopen ();
17443 ;
17444 return 0;
17445}
17446_ACEOF
17447rm -f conftest.$ac_objext conftest$ac_exeext
17448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000017449 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017450 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000017451 grep -v '^ *+' conftest.er1 >conftest.err
17452 rm -f conftest.er1
17453 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000017456 { ac_try='test -z "$ac_c_werror_flag"
17457 || test ! -s conftest.err'
17458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459 (eval $ac_try) 2>&5
17460 ac_status=$?
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); }; } &&
17463 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17465 (eval $ac_try) 2>&5
17466 ac_status=$?
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); }; }; then
17469 ac_cv_lib_svld_dlopen=yes
17470else
17471 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017472sed 's/^/| /' conftest.$ac_ext >&5
17473
John Criswell47fdd832003-07-14 16:52:07 +000017474ac_cv_lib_svld_dlopen=no
17475fi
Reid Spencer17041682004-09-05 17:48:32 +000017476rm -f conftest.err conftest.$ac_objext \
17477 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017478LIBS=$ac_check_lib_save_LIBS
17479fi
17480echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17481echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17482if test $ac_cv_lib_svld_dlopen = yes; then
17483 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17484else
17485 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17486echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17487if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17488 echo $ECHO_N "(cached) $ECHO_C" >&6
17489else
17490 ac_check_lib_save_LIBS=$LIBS
17491LIBS="-ldld $LIBS"
17492cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017493/* confdefs.h. */
17494_ACEOF
17495cat confdefs.h >>conftest.$ac_ext
17496cat >>conftest.$ac_ext <<_ACEOF
17497/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017498
17499/* Override any gcc2 internal prototype to avoid an error. */
17500#ifdef __cplusplus
17501extern "C"
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 dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017506int
17507main ()
17508{
17509dld_link ();
17510 ;
17511 return 0;
17512}
17513_ACEOF
17514rm -f conftest.$ac_objext conftest$ac_exeext
17515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000017516 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017517 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000017518 grep -v '^ *+' conftest.er1 >conftest.err
17519 rm -f conftest.er1
17520 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000017523 { ac_try='test -z "$ac_c_werror_flag"
17524 || test ! -s conftest.err'
17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17527 ac_status=$?
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; } &&
17530 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17532 (eval $ac_try) 2>&5
17533 ac_status=$?
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); }; }; then
17536 ac_cv_lib_dld_dld_link=yes
17537else
17538 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017539sed 's/^/| /' conftest.$ac_ext >&5
17540
John Criswell47fdd832003-07-14 16:52:07 +000017541ac_cv_lib_dld_dld_link=no
17542fi
Reid Spencer17041682004-09-05 17:48:32 +000017543rm -f conftest.err conftest.$ac_objext \
17544 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017545LIBS=$ac_check_lib_save_LIBS
17546fi
17547echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17548echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17549if test $ac_cv_lib_dld_dld_link = yes; then
17550 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17551fi
17552
17553
17554fi
17555
17556
17557fi
17558
17559
17560fi
17561
17562
17563fi
17564
17565
17566fi
17567
17568 ;;
17569 esac
17570
17571 if test "x$lt_cv_dlopen" != xno; then
17572 enable_dlopen=yes
17573 else
17574 enable_dlopen=no
17575 fi
17576
17577 case $lt_cv_dlopen in
17578 dlopen)
17579 save_CPPFLAGS="$CPPFLAGS"
17580 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17581
17582 save_LDFLAGS="$LDFLAGS"
17583 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17584
17585 save_LIBS="$LIBS"
17586 LIBS="$lt_cv_dlopen_libs $LIBS"
17587
17588 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17589echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17590if test "${lt_cv_dlopen_self+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17592else
17593 if test "$cross_compiling" = yes; then :
17594 lt_cv_dlopen_self=cross
17595else
17596 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17597 lt_status=$lt_dlunknown
17598 cat > conftest.$ac_ext <<EOF
Reid Spencer9751dbf2004-09-07 18:04:45 +000017599#line 17599 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017600#include "confdefs.h"
17601
17602#if HAVE_DLFCN_H
17603#include <dlfcn.h>
17604#endif
17605
17606#include <stdio.h>
17607
17608#ifdef RTLD_GLOBAL
17609# define LT_DLGLOBAL RTLD_GLOBAL
17610#else
17611# ifdef DL_GLOBAL
17612# define LT_DLGLOBAL DL_GLOBAL
17613# else
17614# define LT_DLGLOBAL 0
17615# endif
17616#endif
17617
17618/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17619 find out it does not work in some platform. */
17620#ifndef LT_DLLAZY_OR_NOW
17621# ifdef RTLD_LAZY
17622# define LT_DLLAZY_OR_NOW RTLD_LAZY
17623# else
17624# ifdef DL_LAZY
17625# define LT_DLLAZY_OR_NOW DL_LAZY
17626# else
17627# ifdef RTLD_NOW
17628# define LT_DLLAZY_OR_NOW RTLD_NOW
17629# else
17630# ifdef DL_NOW
17631# define LT_DLLAZY_OR_NOW DL_NOW
17632# else
17633# define LT_DLLAZY_OR_NOW 0
17634# endif
17635# endif
17636# endif
17637# endif
17638#endif
17639
17640#ifdef __cplusplus
17641extern "C" void exit (int);
17642#endif
17643
17644void fnord() { int i=42;}
17645int main ()
17646{
17647 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17648 int status = $lt_dlunknown;
17649
17650 if (self)
17651 {
17652 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17653 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17654 /* dlclose (self); */
17655 }
17656
17657 exit (status);
17658}
17659EOF
17660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17661 (eval $ac_link) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17665 (./conftest; exit; ) 2>/dev/null
17666 lt_status=$?
17667 case x$lt_status in
17668 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17669 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17670 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17671 esac
17672 else :
17673 # compilation failed
17674 lt_cv_dlopen_self=no
17675 fi
17676fi
17677rm -fr conftest*
17678
17679
17680fi
17681echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17682echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17683
17684 if test "x$lt_cv_dlopen_self" = xyes; then
17685 LDFLAGS="$LDFLAGS $link_static_flag"
17686 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17687echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17688if test "${lt_cv_dlopen_self_static+set}" = set; then
17689 echo $ECHO_N "(cached) $ECHO_C" >&6
17690else
17691 if test "$cross_compiling" = yes; then :
17692 lt_cv_dlopen_self_static=cross
17693else
17694 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17695 lt_status=$lt_dlunknown
17696 cat > conftest.$ac_ext <<EOF
Reid Spencer9751dbf2004-09-07 18:04:45 +000017697#line 17697 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017698#include "confdefs.h"
17699
17700#if HAVE_DLFCN_H
17701#include <dlfcn.h>
17702#endif
17703
17704#include <stdio.h>
17705
17706#ifdef RTLD_GLOBAL
17707# define LT_DLGLOBAL RTLD_GLOBAL
17708#else
17709# ifdef DL_GLOBAL
17710# define LT_DLGLOBAL DL_GLOBAL
17711# else
17712# define LT_DLGLOBAL 0
17713# endif
17714#endif
17715
17716/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17717 find out it does not work in some platform. */
17718#ifndef LT_DLLAZY_OR_NOW
17719# ifdef RTLD_LAZY
17720# define LT_DLLAZY_OR_NOW RTLD_LAZY
17721# else
17722# ifdef DL_LAZY
17723# define LT_DLLAZY_OR_NOW DL_LAZY
17724# else
17725# ifdef RTLD_NOW
17726# define LT_DLLAZY_OR_NOW RTLD_NOW
17727# else
17728# ifdef DL_NOW
17729# define LT_DLLAZY_OR_NOW DL_NOW
17730# else
17731# define LT_DLLAZY_OR_NOW 0
17732# endif
17733# endif
17734# endif
17735# endif
17736#endif
17737
17738#ifdef __cplusplus
17739extern "C" void exit (int);
17740#endif
17741
17742void fnord() { int i=42;}
17743int main ()
17744{
17745 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17746 int status = $lt_dlunknown;
17747
17748 if (self)
17749 {
17750 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17751 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17752 /* dlclose (self); */
17753 }
17754
17755 exit (status);
17756}
17757EOF
17758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17759 (eval $ac_link) 2>&5
17760 ac_status=$?
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17763 (./conftest; exit; ) 2>/dev/null
17764 lt_status=$?
17765 case x$lt_status in
17766 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17767 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17768 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17769 esac
17770 else :
17771 # compilation failed
17772 lt_cv_dlopen_self_static=no
17773 fi
17774fi
17775rm -fr conftest*
17776
17777
17778fi
17779echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17780echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17781 fi
17782
17783 CPPFLAGS="$save_CPPFLAGS"
17784 LDFLAGS="$save_LDFLAGS"
17785 LIBS="$save_LIBS"
17786 ;;
17787 esac
17788
17789 case $lt_cv_dlopen_self in
17790 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17791 *) enable_dlopen_self=unknown ;;
17792 esac
17793
17794 case $lt_cv_dlopen_self_static in
17795 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17796 *) enable_dlopen_self_static=unknown ;;
17797 esac
17798fi
17799
17800
17801# The else clause should only fire when bootstrapping the
17802# libtool distribution, otherwise you forgot to ship ltmain.sh
17803# with your package, and you will get complaints that there are
17804# no rules to generate ltmain.sh.
17805if test -f "$ltmain"; then
17806 # See if we are running on zsh, and set the options which allow our commands through
17807 # without removal of \ escapes.
17808 if test -n "${ZSH_VERSION+set}" ; then
17809 setopt NO_GLOB_SUBST
17810 fi
17811 # Now quote all the things that may contain metacharacters while being
17812 # careful not to overquote the AC_SUBSTed values. We take copies of the
17813 # variables and quote the copies for generation of the libtool script.
Reid Spencer9751dbf2004-09-07 18:04:45 +000017814 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017815 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17816 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17817 deplibs_check_method reload_flag reload_cmds need_locks \
17818 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17819 lt_cv_sys_global_symbol_to_c_name_address \
17820 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17821 old_postinstall_cmds old_postuninstall_cmds \
17822 compiler_GCJ \
17823 CC_GCJ \
17824 LD_GCJ \
17825 lt_prog_compiler_wl_GCJ \
17826 lt_prog_compiler_pic_GCJ \
17827 lt_prog_compiler_static_GCJ \
17828 lt_prog_compiler_no_builtin_flag_GCJ \
17829 export_dynamic_flag_spec_GCJ \
17830 thread_safe_flag_spec_GCJ \
17831 whole_archive_flag_spec_GCJ \
17832 enable_shared_with_static_runtimes_GCJ \
17833 old_archive_cmds_GCJ \
17834 old_archive_from_new_cmds_GCJ \
17835 predep_objects_GCJ \
17836 postdep_objects_GCJ \
17837 predeps_GCJ \
17838 postdeps_GCJ \
17839 compiler_lib_search_path_GCJ \
17840 archive_cmds_GCJ \
17841 archive_expsym_cmds_GCJ \
17842 postinstall_cmds_GCJ \
17843 postuninstall_cmds_GCJ \
17844 old_archive_from_expsyms_cmds_GCJ \
17845 allow_undefined_flag_GCJ \
17846 no_undefined_flag_GCJ \
17847 export_symbols_cmds_GCJ \
17848 hardcode_libdir_flag_spec_GCJ \
17849 hardcode_libdir_flag_spec_ld_GCJ \
17850 hardcode_libdir_separator_GCJ \
17851 hardcode_automatic_GCJ \
17852 module_cmds_GCJ \
17853 module_expsym_cmds_GCJ \
17854 lt_cv_prog_compiler_c_o_GCJ \
17855 exclude_expsyms_GCJ \
17856 include_expsyms_GCJ; do
17857
17858 case $var in
17859 old_archive_cmds_GCJ | \
17860 old_archive_from_new_cmds_GCJ | \
17861 archive_cmds_GCJ | \
17862 archive_expsym_cmds_GCJ | \
17863 module_cmds_GCJ | \
17864 module_expsym_cmds_GCJ | \
17865 old_archive_from_expsyms_cmds_GCJ | \
17866 export_symbols_cmds_GCJ | \
17867 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17868 postinstall_cmds | postuninstall_cmds | \
17869 old_postinstall_cmds | old_postuninstall_cmds | \
17870 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17871 # Double-quote double-evaled strings.
17872 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17873 ;;
17874 *)
17875 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17876 ;;
17877 esac
17878 done
17879
17880 case $lt_echo in
17881 *'\$0 --fallback-echo"')
17882 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17883 ;;
17884 esac
17885
17886cfgfile="$ofile"
17887
17888 cat <<__EOF__ >> "$cfgfile"
17889# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17890
17891# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17892
17893# Shell to use when invoking shell scripts.
17894SHELL=$lt_SHELL
17895
17896# Whether or not to build shared libraries.
17897build_libtool_libs=$enable_shared
17898
17899# Whether or not to build static libraries.
17900build_old_libs=$enable_static
17901
17902# Whether or not to add -lc for building shared libraries.
17903build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17904
17905# Whether or not to disallow shared libs when runtime libs are static
17906allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17907
17908# Whether or not to optimize for fast installation.
17909fast_install=$enable_fast_install
17910
17911# The host system.
17912host_alias=$host_alias
17913host=$host
17914
17915# An echo program that does not interpret backslashes.
17916echo=$lt_echo
17917
17918# The archiver.
17919AR=$lt_AR
17920AR_FLAGS=$lt_AR_FLAGS
17921
17922# A C compiler.
17923LTCC=$lt_LTCC
17924
17925# A language-specific compiler.
17926CC=$lt_compiler_GCJ
17927
17928# Is the compiler the GNU C compiler?
17929with_gcc=$GCC_GCJ
17930
17931# An ERE matcher.
17932EGREP=$lt_EGREP
17933
17934# The linker used to build libraries.
17935LD=$lt_LD_GCJ
17936
17937# Whether we need hard or soft links.
17938LN_S=$lt_LN_S
17939
17940# A BSD-compatible nm program.
17941NM=$lt_NM
17942
17943# A symbol stripping program
Reid Spencer9751dbf2004-09-07 18:04:45 +000017944STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000017945
17946# Used to examine libraries when file_magic_cmd begins "file"
17947MAGIC_CMD=$MAGIC_CMD
17948
17949# Used on cygwin: DLL creation program.
17950DLLTOOL="$DLLTOOL"
17951
17952# Used on cygwin: object dumper.
17953OBJDUMP="$OBJDUMP"
17954
17955# Used on cygwin: assembler.
17956AS="$AS"
17957
17958# The name of the directory that contains temporary libtool files.
17959objdir=$objdir
17960
17961# How to create reloadable object files.
17962reload_flag=$lt_reload_flag
17963reload_cmds=$lt_reload_cmds
17964
17965# How to pass a linker flag through the compiler.
17966wl=$lt_lt_prog_compiler_wl_GCJ
17967
17968# Object file suffix (normally "o").
17969objext="$ac_objext"
17970
17971# Old archive suffix (normally "a").
17972libext="$libext"
17973
17974# Shared library suffix (normally ".so").
17975shrext='$shrext'
17976
17977# Executable file suffix (normally "").
17978exeext="$exeext"
17979
17980# Additional compiler flags for building library objects.
17981pic_flag=$lt_lt_prog_compiler_pic_GCJ
17982pic_mode=$pic_mode
17983
17984# What is the maximum length of a command?
17985max_cmd_len=$lt_cv_sys_max_cmd_len
17986
17987# Does compiler simultaneously support -c and -o options?
17988compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17989
17990# Must we lock files when doing compilation ?
17991need_locks=$lt_need_locks
17992
17993# Do we need the lib prefix for modules?
17994need_lib_prefix=$need_lib_prefix
17995
17996# Do we need a version for libraries?
17997need_version=$need_version
17998
17999# Whether dlopen is supported.
18000dlopen_support=$enable_dlopen
18001
18002# Whether dlopen of programs is supported.
18003dlopen_self=$enable_dlopen_self
18004
18005# Whether dlopen of statically linked programs is supported.
18006dlopen_self_static=$enable_dlopen_self_static
18007
18008# Compiler flag to prevent dynamic linking.
18009link_static_flag=$lt_lt_prog_compiler_static_GCJ
18010
18011# Compiler flag to turn off builtin functions.
18012no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18013
18014# Compiler flag to allow reflexive dlopens.
18015export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18016
18017# Compiler flag to generate shared objects directly from archives.
18018whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18019
18020# Compiler flag to generate thread-safe objects.
18021thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18022
18023# Library versioning type.
18024version_type=$version_type
18025
18026# Format of library name prefix.
18027libname_spec=$lt_libname_spec
18028
18029# List of archive names. First name is the real one, the rest are links.
18030# The last name is the one that the linker finds with -lNAME.
18031library_names_spec=$lt_library_names_spec
18032
18033# The coded name of the library, if different from the real name.
18034soname_spec=$lt_soname_spec
18035
18036# Commands used to build and install an old-style archive.
18037RANLIB=$lt_RANLIB
18038old_archive_cmds=$lt_old_archive_cmds_GCJ
18039old_postinstall_cmds=$lt_old_postinstall_cmds
18040old_postuninstall_cmds=$lt_old_postuninstall_cmds
18041
18042# Create an old-style archive from a shared archive.
18043old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18044
18045# Create a temporary old-style archive to link instead of a shared archive.
18046old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18047
18048# Commands used to build and install a shared archive.
18049archive_cmds=$lt_archive_cmds_GCJ
18050archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18051postinstall_cmds=$lt_postinstall_cmds
18052postuninstall_cmds=$lt_postuninstall_cmds
18053
18054# Commands used to build a loadable module (assumed same as above if empty)
18055module_cmds=$lt_module_cmds_GCJ
18056module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18057
18058# Commands to strip libraries.
18059old_striplib=$lt_old_striplib
18060striplib=$lt_striplib
18061
18062# Dependencies to place before the objects being linked to create a
18063# shared library.
18064predep_objects=$lt_predep_objects_GCJ
18065
18066# Dependencies to place after the objects being linked to create a
18067# shared library.
18068postdep_objects=$lt_postdep_objects_GCJ
18069
18070# Dependencies to place before the objects being linked to create a
18071# shared library.
18072predeps=$lt_predeps_GCJ
18073
18074# Dependencies to place after the objects being linked to create a
18075# shared library.
18076postdeps=$lt_postdeps_GCJ
18077
18078# The library search path used internally by the compiler when linking
18079# a shared library.
18080compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18081
18082# Method to check whether dependent libraries are shared objects.
18083deplibs_check_method=$lt_deplibs_check_method
18084
18085# Command to use when deplibs_check_method == file_magic.
18086file_magic_cmd=$lt_file_magic_cmd
18087
18088# Flag that allows shared libraries with undefined symbols to be built.
18089allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18090
18091# Flag that forces no undefined symbols.
18092no_undefined_flag=$lt_no_undefined_flag_GCJ
18093
18094# Commands used to finish a libtool library installation in a directory.
18095finish_cmds=$lt_finish_cmds
18096
18097# Same as above, but a single script fragment to be evaled but not shown.
18098finish_eval=$lt_finish_eval
18099
18100# Take the output of nm and produce a listing of raw symbols and C names.
18101global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18102
18103# Transform the output of nm in a proper C declaration
18104global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18105
18106# Transform the output of nm in a C name address pair
18107global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18108
18109# This is the shared library runtime path variable.
18110runpath_var=$runpath_var
18111
18112# This is the shared library path variable.
18113shlibpath_var=$shlibpath_var
18114
18115# Is shlibpath searched before the hard-coded library search path?
18116shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18117
18118# How to hardcode a shared library path into an executable.
18119hardcode_action=$hardcode_action_GCJ
18120
18121# Whether we should hardcode library paths into libraries.
18122hardcode_into_libs=$hardcode_into_libs
18123
18124# Flag to hardcode \$libdir into a binary during linking.
18125# This must work even if \$libdir does not exist.
18126hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18127
18128# If ld is used when linking, flag to hardcode \$libdir into
18129# a binary during linking. This must work even if \$libdir does
18130# not exist.
18131hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18132
18133# Whether we need a single -rpath flag with a separated argument.
18134hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18135
18136# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18137# resulting binary.
18138hardcode_direct=$hardcode_direct_GCJ
18139
18140# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18141# resulting binary.
18142hardcode_minus_L=$hardcode_minus_L_GCJ
18143
18144# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18145# the resulting binary.
18146hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18147
18148# Set to yes if building a shared library automatically hardcodes DIR into the library
18149# and all subsequent libraries and executables linked against it.
18150hardcode_automatic=$hardcode_automatic_GCJ
18151
18152# Variables whose values should be saved in libtool wrapper scripts and
18153# restored at relink time.
18154variables_saved_for_relink="$variables_saved_for_relink"
18155
18156# Whether libtool must link a program against all its dependency libraries.
18157link_all_deplibs=$link_all_deplibs_GCJ
18158
18159# Compile-time system search path for libraries
18160sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18161
18162# Run-time system search path for libraries
18163sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18164
18165# Fix the shell variable \$srcfile for the compiler.
18166fix_srcfile_path="$fix_srcfile_path_GCJ"
18167
18168# Set to yes if exported symbols are required.
18169always_export_symbols=$always_export_symbols_GCJ
18170
18171# The commands to list exported symbols.
18172export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18173
18174# The commands to extract the exported symbol list from a shared archive.
18175extract_expsyms_cmds=$lt_extract_expsyms_cmds
18176
18177# Symbols that should not be listed in the preloaded symbols.
18178exclude_expsyms=$lt_exclude_expsyms_GCJ
18179
18180# Symbols that must always be exported.
18181include_expsyms=$lt_include_expsyms_GCJ
18182
18183# ### END LIBTOOL TAG CONFIG: $tagname
18184
18185__EOF__
18186
18187
18188else
18189 # If there is no Makefile yet, we rely on a make rule to execute
18190 # `config.status --recheck' to rerun these tests and create the
18191 # libtool script then.
18192 test -f Makefile && make "$ltmain"
18193fi
18194
18195
18196ac_ext=c
18197ac_cpp='$CPP $CPPFLAGS'
18198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18200ac_compiler_gnu=$ac_cv_c_compiler_gnu
18201
18202CC="$lt_save_CC"
18203
18204 else
18205 tagname=""
18206 fi
18207 ;;
18208
18209 RC)
18210
18211
18212
18213# Source file extension for RC test sources.
18214ac_ext=rc
18215
18216# Object file extension for compiled RC test sources.
18217objext=o
18218objext_RC=$objext
18219
18220# Code to be used in simple compile tests
18221lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18222
18223# Code to be used in simple link tests
18224lt_simple_link_test_code="$lt_simple_compile_test_code"
18225
18226# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18227
18228# If no C compiler was specified, use CC.
18229LTCC=${LTCC-"$CC"}
18230
18231# Allow CC to be a program name with arguments.
18232compiler=$CC
18233
18234
18235# Allow CC to be a program name with arguments.
18236lt_save_CC="$CC"
18237CC=${RC-"windres"}
18238compiler=$CC
18239compiler_RC=$CC
18240lt_cv_prog_compiler_c_o_RC=yes
18241
18242# The else clause should only fire when bootstrapping the
18243# libtool distribution, otherwise you forgot to ship ltmain.sh
18244# with your package, and you will get complaints that there are
18245# no rules to generate ltmain.sh.
18246if test -f "$ltmain"; then
18247 # See if we are running on zsh, and set the options which allow our commands through
18248 # without removal of \ escapes.
18249 if test -n "${ZSH_VERSION+set}" ; then
18250 setopt NO_GLOB_SUBST
18251 fi
18252 # Now quote all the things that may contain metacharacters while being
18253 # careful not to overquote the AC_SUBSTed values. We take copies of the
18254 # variables and quote the copies for generation of the libtool script.
Reid Spencer9751dbf2004-09-07 18:04:45 +000018255 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018256 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18257 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18258 deplibs_check_method reload_flag reload_cmds need_locks \
18259 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18260 lt_cv_sys_global_symbol_to_c_name_address \
18261 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18262 old_postinstall_cmds old_postuninstall_cmds \
18263 compiler_RC \
18264 CC_RC \
18265 LD_RC \
18266 lt_prog_compiler_wl_RC \
18267 lt_prog_compiler_pic_RC \
18268 lt_prog_compiler_static_RC \
18269 lt_prog_compiler_no_builtin_flag_RC \
18270 export_dynamic_flag_spec_RC \
18271 thread_safe_flag_spec_RC \
18272 whole_archive_flag_spec_RC \
18273 enable_shared_with_static_runtimes_RC \
18274 old_archive_cmds_RC \
18275 old_archive_from_new_cmds_RC \
18276 predep_objects_RC \
18277 postdep_objects_RC \
18278 predeps_RC \
18279 postdeps_RC \
18280 compiler_lib_search_path_RC \
18281 archive_cmds_RC \
18282 archive_expsym_cmds_RC \
18283 postinstall_cmds_RC \
18284 postuninstall_cmds_RC \
18285 old_archive_from_expsyms_cmds_RC \
18286 allow_undefined_flag_RC \
18287 no_undefined_flag_RC \
18288 export_symbols_cmds_RC \
18289 hardcode_libdir_flag_spec_RC \
18290 hardcode_libdir_flag_spec_ld_RC \
18291 hardcode_libdir_separator_RC \
18292 hardcode_automatic_RC \
18293 module_cmds_RC \
18294 module_expsym_cmds_RC \
18295 lt_cv_prog_compiler_c_o_RC \
18296 exclude_expsyms_RC \
18297 include_expsyms_RC; do
18298
18299 case $var in
18300 old_archive_cmds_RC | \
18301 old_archive_from_new_cmds_RC | \
18302 archive_cmds_RC | \
18303 archive_expsym_cmds_RC | \
18304 module_cmds_RC | \
18305 module_expsym_cmds_RC | \
18306 old_archive_from_expsyms_cmds_RC | \
18307 export_symbols_cmds_RC | \
18308 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18309 postinstall_cmds | postuninstall_cmds | \
18310 old_postinstall_cmds | old_postuninstall_cmds | \
18311 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18312 # Double-quote double-evaled strings.
18313 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18314 ;;
18315 *)
18316 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18317 ;;
18318 esac
18319 done
18320
18321 case $lt_echo in
18322 *'\$0 --fallback-echo"')
18323 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18324 ;;
18325 esac
18326
18327cfgfile="$ofile"
18328
18329 cat <<__EOF__ >> "$cfgfile"
18330# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18331
18332# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18333
18334# Shell to use when invoking shell scripts.
18335SHELL=$lt_SHELL
18336
18337# Whether or not to build shared libraries.
18338build_libtool_libs=$enable_shared
18339
18340# Whether or not to build static libraries.
18341build_old_libs=$enable_static
18342
18343# Whether or not to add -lc for building shared libraries.
18344build_libtool_need_lc=$archive_cmds_need_lc_RC
18345
18346# Whether or not to disallow shared libs when runtime libs are static
18347allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18348
18349# Whether or not to optimize for fast installation.
18350fast_install=$enable_fast_install
18351
18352# The host system.
18353host_alias=$host_alias
18354host=$host
18355
18356# An echo program that does not interpret backslashes.
18357echo=$lt_echo
18358
18359# The archiver.
18360AR=$lt_AR
18361AR_FLAGS=$lt_AR_FLAGS
18362
18363# A C compiler.
18364LTCC=$lt_LTCC
18365
18366# A language-specific compiler.
18367CC=$lt_compiler_RC
18368
18369# Is the compiler the GNU C compiler?
18370with_gcc=$GCC_RC
18371
18372# An ERE matcher.
18373EGREP=$lt_EGREP
18374
18375# The linker used to build libraries.
18376LD=$lt_LD_RC
18377
18378# Whether we need hard or soft links.
18379LN_S=$lt_LN_S
18380
18381# A BSD-compatible nm program.
18382NM=$lt_NM
18383
18384# A symbol stripping program
Reid Spencer9751dbf2004-09-07 18:04:45 +000018385STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018386
18387# Used to examine libraries when file_magic_cmd begins "file"
18388MAGIC_CMD=$MAGIC_CMD
18389
18390# Used on cygwin: DLL creation program.
18391DLLTOOL="$DLLTOOL"
18392
18393# Used on cygwin: object dumper.
18394OBJDUMP="$OBJDUMP"
18395
18396# Used on cygwin: assembler.
18397AS="$AS"
18398
18399# The name of the directory that contains temporary libtool files.
18400objdir=$objdir
18401
18402# How to create reloadable object files.
18403reload_flag=$lt_reload_flag
18404reload_cmds=$lt_reload_cmds
18405
18406# How to pass a linker flag through the compiler.
18407wl=$lt_lt_prog_compiler_wl_RC
18408
18409# Object file suffix (normally "o").
18410objext="$ac_objext"
18411
18412# Old archive suffix (normally "a").
18413libext="$libext"
18414
18415# Shared library suffix (normally ".so").
18416shrext='$shrext'
18417
18418# Executable file suffix (normally "").
18419exeext="$exeext"
18420
18421# Additional compiler flags for building library objects.
18422pic_flag=$lt_lt_prog_compiler_pic_RC
18423pic_mode=$pic_mode
18424
18425# What is the maximum length of a command?
18426max_cmd_len=$lt_cv_sys_max_cmd_len
18427
18428# Does compiler simultaneously support -c and -o options?
18429compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18430
18431# Must we lock files when doing compilation ?
18432need_locks=$lt_need_locks
18433
18434# Do we need the lib prefix for modules?
18435need_lib_prefix=$need_lib_prefix
18436
18437# Do we need a version for libraries?
18438need_version=$need_version
18439
18440# Whether dlopen is supported.
18441dlopen_support=$enable_dlopen
18442
18443# Whether dlopen of programs is supported.
18444dlopen_self=$enable_dlopen_self
18445
18446# Whether dlopen of statically linked programs is supported.
18447dlopen_self_static=$enable_dlopen_self_static
18448
18449# Compiler flag to prevent dynamic linking.
18450link_static_flag=$lt_lt_prog_compiler_static_RC
18451
18452# Compiler flag to turn off builtin functions.
18453no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18454
18455# Compiler flag to allow reflexive dlopens.
18456export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18457
18458# Compiler flag to generate shared objects directly from archives.
18459whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18460
18461# Compiler flag to generate thread-safe objects.
18462thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18463
18464# Library versioning type.
18465version_type=$version_type
18466
18467# Format of library name prefix.
18468libname_spec=$lt_libname_spec
18469
18470# List of archive names. First name is the real one, the rest are links.
18471# The last name is the one that the linker finds with -lNAME.
18472library_names_spec=$lt_library_names_spec
18473
18474# The coded name of the library, if different from the real name.
18475soname_spec=$lt_soname_spec
18476
18477# Commands used to build and install an old-style archive.
18478RANLIB=$lt_RANLIB
18479old_archive_cmds=$lt_old_archive_cmds_RC
18480old_postinstall_cmds=$lt_old_postinstall_cmds
18481old_postuninstall_cmds=$lt_old_postuninstall_cmds
18482
18483# Create an old-style archive from a shared archive.
18484old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18485
18486# Create a temporary old-style archive to link instead of a shared archive.
18487old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18488
18489# Commands used to build and install a shared archive.
18490archive_cmds=$lt_archive_cmds_RC
18491archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18492postinstall_cmds=$lt_postinstall_cmds
18493postuninstall_cmds=$lt_postuninstall_cmds
18494
18495# Commands used to build a loadable module (assumed same as above if empty)
18496module_cmds=$lt_module_cmds_RC
18497module_expsym_cmds=$lt_module_expsym_cmds_RC
18498
18499# Commands to strip libraries.
18500old_striplib=$lt_old_striplib
18501striplib=$lt_striplib
18502
18503# Dependencies to place before the objects being linked to create a
18504# shared library.
18505predep_objects=$lt_predep_objects_RC
18506
18507# Dependencies to place after the objects being linked to create a
18508# shared library.
18509postdep_objects=$lt_postdep_objects_RC
18510
18511# Dependencies to place before the objects being linked to create a
18512# shared library.
18513predeps=$lt_predeps_RC
18514
18515# Dependencies to place after the objects being linked to create a
18516# shared library.
18517postdeps=$lt_postdeps_RC
18518
18519# The library search path used internally by the compiler when linking
18520# a shared library.
18521compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18522
18523# Method to check whether dependent libraries are shared objects.
18524deplibs_check_method=$lt_deplibs_check_method
18525
18526# Command to use when deplibs_check_method == file_magic.
18527file_magic_cmd=$lt_file_magic_cmd
18528
18529# Flag that allows shared libraries with undefined symbols to be built.
18530allow_undefined_flag=$lt_allow_undefined_flag_RC
18531
18532# Flag that forces no undefined symbols.
18533no_undefined_flag=$lt_no_undefined_flag_RC
18534
18535# Commands used to finish a libtool library installation in a directory.
18536finish_cmds=$lt_finish_cmds
18537
18538# Same as above, but a single script fragment to be evaled but not shown.
18539finish_eval=$lt_finish_eval
18540
18541# Take the output of nm and produce a listing of raw symbols and C names.
18542global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18543
18544# Transform the output of nm in a proper C declaration
18545global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18546
18547# Transform the output of nm in a C name address pair
18548global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18549
18550# This is the shared library runtime path variable.
18551runpath_var=$runpath_var
18552
18553# This is the shared library path variable.
18554shlibpath_var=$shlibpath_var
18555
18556# Is shlibpath searched before the hard-coded library search path?
18557shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18558
18559# How to hardcode a shared library path into an executable.
18560hardcode_action=$hardcode_action_RC
18561
18562# Whether we should hardcode library paths into libraries.
18563hardcode_into_libs=$hardcode_into_libs
18564
18565# Flag to hardcode \$libdir into a binary during linking.
18566# This must work even if \$libdir does not exist.
18567hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18568
18569# If ld is used when linking, flag to hardcode \$libdir into
18570# a binary during linking. This must work even if \$libdir does
18571# not exist.
18572hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18573
18574# Whether we need a single -rpath flag with a separated argument.
18575hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18576
18577# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18578# resulting binary.
18579hardcode_direct=$hardcode_direct_RC
18580
18581# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18582# resulting binary.
18583hardcode_minus_L=$hardcode_minus_L_RC
18584
18585# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18586# the resulting binary.
18587hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18588
18589# Set to yes if building a shared library automatically hardcodes DIR into the library
18590# and all subsequent libraries and executables linked against it.
18591hardcode_automatic=$hardcode_automatic_RC
18592
18593# Variables whose values should be saved in libtool wrapper scripts and
18594# restored at relink time.
18595variables_saved_for_relink="$variables_saved_for_relink"
18596
18597# Whether libtool must link a program against all its dependency libraries.
18598link_all_deplibs=$link_all_deplibs_RC
18599
18600# Compile-time system search path for libraries
18601sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18602
18603# Run-time system search path for libraries
18604sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18605
18606# Fix the shell variable \$srcfile for the compiler.
18607fix_srcfile_path="$fix_srcfile_path_RC"
18608
18609# Set to yes if exported symbols are required.
18610always_export_symbols=$always_export_symbols_RC
18611
18612# The commands to list exported symbols.
18613export_symbols_cmds=$lt_export_symbols_cmds_RC
18614
18615# The commands to extract the exported symbol list from a shared archive.
18616extract_expsyms_cmds=$lt_extract_expsyms_cmds
18617
18618# Symbols that should not be listed in the preloaded symbols.
18619exclude_expsyms=$lt_exclude_expsyms_RC
18620
18621# Symbols that must always be exported.
18622include_expsyms=$lt_include_expsyms_RC
18623
18624# ### END LIBTOOL TAG CONFIG: $tagname
18625
18626__EOF__
18627
18628
18629else
18630 # If there is no Makefile yet, we rely on a make rule to execute
18631 # `config.status --recheck' to rerun these tests and create the
18632 # libtool script then.
18633 test -f Makefile && make "$ltmain"
18634fi
18635
18636
18637ac_ext=c
18638ac_cpp='$CPP $CPPFLAGS'
18639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18641ac_compiler_gnu=$ac_cv_c_compiler_gnu
18642
18643CC="$lt_save_CC"
18644
18645 ;;
18646
18647 *)
18648 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18649echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18650 { (exit 1); exit 1; }; }
18651 ;;
18652 esac
18653
18654 # Append the new tag name to the list of available tags.
18655 if test -n "$tagname" ; then
18656 available_tags="$available_tags $tagname"
18657 fi
18658 fi
18659 done
18660 IFS="$lt_save_ifs"
18661
18662 # Now substitute the updated list of available tags.
18663 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18664 mv "${ofile}T" "$ofile"
18665 chmod +x "$ofile"
18666 else
18667 rm -f "${ofile}T"
18668 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18669echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18670 { (exit 1); exit 1; }; }
18671 fi
18672fi
John Criswell7a73b802003-06-30 21:59:07 +000018673
18674
18675
18676# This can be used to rebuild libtool when needed
18677LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18678
18679# Always use our own libtool.
Reid Spencer9751dbf2004-09-07 18:04:45 +000018680LIBTOOL='$(SHELL) $(top_builddir)/libtool'
John Criswell7a73b802003-06-30 21:59:07 +000018681
18682# Prevent multiple expansion
18683
18684
18685
John Criswell47fdd832003-07-14 16:52:07 +000018686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
John Criswell7a73b802003-06-30 21:59:07 +000018704# Extract the first word of "dot", so it can be a program name with args.
18705set dummy dot; ac_word=$2
18706echo "$as_me:$LINENO: checking for $ac_word" >&5
18707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18708if test "${ac_cv_path_DOT+set}" = set; then
18709 echo $ECHO_N "(cached) $ECHO_C" >&6
18710else
18711 case $DOT in
18712 [\\/]* | ?:[\\/]*)
18713 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18714 ;;
18715 *)
18716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18717for as_dir in $PATH
18718do
18719 IFS=$as_save_IFS
18720 test -z "$as_dir" && as_dir=.
18721 for ac_exec_ext in '' $ac_executable_extensions; do
18722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18723 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18725 break 2
18726 fi
18727done
18728done
18729
Brian Gaeke26be9c52004-01-13 06:43:16 +000018730 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
John Criswell7a73b802003-06-30 21:59:07 +000018731 ;;
18732esac
18733fi
18734DOT=$ac_cv_path_DOT
18735
18736if test -n "$DOT"; then
18737 echo "$as_me:$LINENO: result: $DOT" >&5
18738echo "${ECHO_T}$DOT" >&6
18739else
18740 echo "$as_me:$LINENO: result: no" >&5
18741echo "${ECHO_T}no" >&6
18742fi
18743
18744# Extract the first word of "etags", so it can be a program name with args.
18745set dummy etags; ac_word=$2
18746echo "$as_me:$LINENO: checking for $ac_word" >&5
18747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18748if test "${ac_cv_path_ETAGS+set}" = set; then
18749 echo $ECHO_N "(cached) $ECHO_C" >&6
18750else
18751 case $ETAGS in
18752 [\\/]* | ?:[\\/]*)
18753 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18754 ;;
18755 *)
18756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18757for as_dir in $PATH
18758do
18759 IFS=$as_save_IFS
18760 test -z "$as_dir" && as_dir=.
18761 for ac_exec_ext in '' $ac_executable_extensions; do
18762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18763 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18765 break 2
18766 fi
18767done
18768done
18769
Brian Gaeke26be9c52004-01-13 06:43:16 +000018770 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
John Criswell7a73b802003-06-30 21:59:07 +000018771 ;;
18772esac
18773fi
18774ETAGS=$ac_cv_path_ETAGS
18775
18776if test -n "$ETAGS"; then
18777 echo "$as_me:$LINENO: result: $ETAGS" >&5
18778echo "${ECHO_T}$ETAGS" >&6
18779else
18780 echo "$as_me:$LINENO: result: no" >&5
18781echo "${ECHO_T}no" >&6
18782fi
18783
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000018784etags_version=`$ETAGS --version 2>&1`
18785case "$etags_version" in
18786 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18787 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18788 *) ETAGSFLAGS="" ;;
18789esac
18790ETAGSFLAGS=$ETAGSFLAGS
18791
John Criswellde00db22003-08-25 16:49:54 +000018792# Extract the first word of "python", so it can be a program name with args.
18793set dummy python; ac_word=$2
18794echo "$as_me:$LINENO: checking for $ac_word" >&5
18795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18796if test "${ac_cv_path_PYTHON+set}" = set; then
18797 echo $ECHO_N "(cached) $ECHO_C" >&6
18798else
18799 case $PYTHON in
18800 [\\/]* | ?:[\\/]*)
18801 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18802 ;;
18803 *)
18804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18805for as_dir in $PATH
18806do
18807 IFS=$as_save_IFS
18808 test -z "$as_dir" && as_dir=.
18809 for ac_exec_ext in '' $ac_executable_extensions; do
18810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18811 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18813 break 2
18814 fi
18815done
18816done
18817
Brian Gaeke26be9c52004-01-13 06:43:16 +000018818 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
John Criswellde00db22003-08-25 16:49:54 +000018819 ;;
18820esac
18821fi
18822PYTHON=$ac_cv_path_PYTHON
18823
18824if test -n "$PYTHON"; then
18825 echo "$as_me:$LINENO: result: $PYTHON" >&5
18826echo "${ECHO_T}$PYTHON" >&6
18827else
18828 echo "$as_me:$LINENO: result: no" >&5
18829echo "${ECHO_T}no" >&6
18830fi
18831
Brian Gaeke26be9c52004-01-13 06:43:16 +000018832if test "$PYTHON" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018833then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018834 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18835echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018836fi
John Criswellde00db22003-08-25 16:49:54 +000018837# Extract the first word of "qmtest", so it can be a program name with args.
18838set dummy qmtest; ac_word=$2
18839echo "$as_me:$LINENO: checking for $ac_word" >&5
18840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18841if test "${ac_cv_path_QMTEST+set}" = set; then
18842 echo $ECHO_N "(cached) $ECHO_C" >&6
18843else
18844 case $QMTEST in
18845 [\\/]* | ?:[\\/]*)
18846 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18847 ;;
18848 *)
18849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18850for as_dir in $PATH
18851do
18852 IFS=$as_save_IFS
18853 test -z "$as_dir" && as_dir=.
18854 for ac_exec_ext in '' $ac_executable_extensions; do
18855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18856 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18858 break 2
18859 fi
18860done
18861done
18862
Brian Gaeke26be9c52004-01-13 06:43:16 +000018863 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
John Criswellde00db22003-08-25 16:49:54 +000018864 ;;
18865esac
18866fi
18867QMTEST=$ac_cv_path_QMTEST
18868
18869if test -n "$QMTEST"; then
18870 echo "$as_me:$LINENO: result: $QMTEST" >&5
18871echo "${ECHO_T}$QMTEST" >&6
18872else
18873 echo "$as_me:$LINENO: result: no" >&5
18874echo "${ECHO_T}no" >&6
18875fi
18876
Brian Gaeke26be9c52004-01-13 06:43:16 +000018877if test "$QMTEST" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018878then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018879 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18880echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018881fi
John Criswellde00db22003-08-25 16:49:54 +000018882
18883pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18884pymajor=`echo $pyversion | cut -d. -f1`
18885pyminor=`echo $pyversion | cut -d. -f2`
18886
18887if test "$pymajor" -ge "2"
18888then
18889 if test "$pymajor" -eq "2"
18890 then
18891 if test "$pyminor" -lt "2"
18892 then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018893 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18894echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018895 fi
18896 fi
18897else
Brian Gaeke26be9c52004-01-13 06:43:16 +000018898 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18899echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018900fi
John Criswell7a73b802003-06-30 21:59:07 +000018901
18902
18903
18904
John Criswell7a73b802003-06-30 21:59:07 +000018905echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18906echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18907if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18908 echo $ECHO_N "(cached) $ECHO_C" >&6
18909else
18910 ac_check_lib_save_LIBS=$LIBS
18911LIBS="-lelf $LIBS"
18912cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018913/* confdefs.h. */
18914_ACEOF
18915cat confdefs.h >>conftest.$ac_ext
18916cat >>conftest.$ac_ext <<_ACEOF
18917/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018918
18919/* Override any gcc2 internal prototype to avoid an error. */
18920#ifdef __cplusplus
18921extern "C"
18922#endif
18923/* We use char because int might match the return type of a gcc2
18924 builtin and then its argument prototype would still apply. */
18925char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018926int
18927main ()
18928{
18929elf_begin ();
18930 ;
18931 return 0;
18932}
18933_ACEOF
18934rm -f conftest.$ac_objext conftest$ac_exeext
18935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000018936 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000018937 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000018938 grep -v '^ *+' conftest.er1 >conftest.err
18939 rm -f conftest.er1
18940 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000018941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000018943 { ac_try='test -z "$ac_c_werror_flag"
18944 || test ! -s conftest.err'
18945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18946 (eval $ac_try) 2>&5
18947 ac_status=$?
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); }; } &&
18950 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000018951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18952 (eval $ac_try) 2>&5
18953 ac_status=$?
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); }; }; then
18956 ac_cv_lib_elf_elf_begin=yes
18957else
18958 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018959sed 's/^/| /' conftest.$ac_ext >&5
18960
John Criswell7a73b802003-06-30 21:59:07 +000018961ac_cv_lib_elf_elf_begin=no
18962fi
Reid Spencer17041682004-09-05 17:48:32 +000018963rm -f conftest.err conftest.$ac_objext \
18964 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018965LIBS=$ac_check_lib_save_LIBS
18966fi
18967echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18968echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18969if test $ac_cv_lib_elf_elf_begin = yes; then
18970 cat >>confdefs.h <<_ACEOF
18971#define HAVE_LIBELF 1
18972_ACEOF
18973
18974 LIBS="-lelf $LIBS"
18975
18976fi
18977
18978
18979echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18980echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18981if test "${ac_cv_search_dlopen+set}" = set; then
18982 echo $ECHO_N "(cached) $ECHO_C" >&6
18983else
18984 ac_func_search_save_LIBS=$LIBS
18985ac_cv_search_dlopen=no
18986cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018987/* confdefs.h. */
18988_ACEOF
18989cat confdefs.h >>conftest.$ac_ext
18990cat >>conftest.$ac_ext <<_ACEOF
18991/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018992
18993/* Override any gcc2 internal prototype to avoid an error. */
18994#ifdef __cplusplus
18995extern "C"
18996#endif
18997/* We use char because int might match the return type of a gcc2
18998 builtin and then its argument prototype would still apply. */
18999char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019000int
19001main ()
19002{
19003dlopen ();
19004 ;
19005 return 0;
19006}
19007_ACEOF
19008rm -f conftest.$ac_objext conftest$ac_exeext
19009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019010 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019011 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019012 grep -v '^ *+' conftest.er1 >conftest.err
19013 rm -f conftest.er1
19014 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019017 { ac_try='test -z "$ac_c_werror_flag"
19018 || test ! -s conftest.err'
19019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19020 (eval $ac_try) 2>&5
19021 ac_status=$?
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); }; } &&
19024 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19026 (eval $ac_try) 2>&5
19027 ac_status=$?
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); }; }; then
19030 ac_cv_search_dlopen="none required"
19031else
19032 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019033sed 's/^/| /' conftest.$ac_ext >&5
19034
John Criswell7a73b802003-06-30 21:59:07 +000019035fi
Reid Spencer17041682004-09-05 17:48:32 +000019036rm -f conftest.err conftest.$ac_objext \
19037 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019038if test "$ac_cv_search_dlopen" = no; then
19039 for ac_lib in dl; do
19040 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19041 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019042/* confdefs.h. */
19043_ACEOF
19044cat confdefs.h >>conftest.$ac_ext
19045cat >>conftest.$ac_ext <<_ACEOF
19046/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019047
19048/* Override any gcc2 internal prototype to avoid an error. */
19049#ifdef __cplusplus
19050extern "C"
19051#endif
19052/* We use char because int might match the return type of a gcc2
19053 builtin and then its argument prototype would still apply. */
19054char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019055int
19056main ()
19057{
19058dlopen ();
19059 ;
19060 return 0;
19061}
19062_ACEOF
19063rm -f conftest.$ac_objext conftest$ac_exeext
19064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019065 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019066 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019067 grep -v '^ *+' conftest.er1 >conftest.err
19068 rm -f conftest.er1
19069 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019072 { ac_try='test -z "$ac_c_werror_flag"
19073 || test ! -s conftest.err'
19074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; } &&
19079 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19081 (eval $ac_try) 2>&5
19082 ac_status=$?
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); }; }; then
19085 ac_cv_search_dlopen="-l$ac_lib"
19086break
19087else
19088 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019089sed 's/^/| /' conftest.$ac_ext >&5
19090
John Criswell7a73b802003-06-30 21:59:07 +000019091fi
Reid Spencer17041682004-09-05 17:48:32 +000019092rm -f conftest.err conftest.$ac_objext \
19093 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019094 done
19095fi
19096LIBS=$ac_func_search_save_LIBS
19097fi
19098echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19099echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19100if test "$ac_cv_search_dlopen" != no; then
19101 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019102
19103cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000019104#define HAVE_DLOPEN 1
19105_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019106
19107else
Brian Gaekec45be042003-10-07 06:01:34 +000019108 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19109echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019110fi
19111
19112
19113echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19114echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19115if test "${ac_cv_search_mallinfo+set}" = set; then
19116 echo $ECHO_N "(cached) $ECHO_C" >&6
19117else
19118 ac_func_search_save_LIBS=$LIBS
19119ac_cv_search_mallinfo=no
19120cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019121/* confdefs.h. */
19122_ACEOF
19123cat confdefs.h >>conftest.$ac_ext
19124cat >>conftest.$ac_ext <<_ACEOF
19125/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019126
19127/* Override any gcc2 internal prototype to avoid an error. */
19128#ifdef __cplusplus
19129extern "C"
19130#endif
19131/* We use char because int might match the return type of a gcc2
19132 builtin and then its argument prototype would still apply. */
19133char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019134int
19135main ()
19136{
19137mallinfo ();
19138 ;
19139 return 0;
19140}
19141_ACEOF
19142rm -f conftest.$ac_objext conftest$ac_exeext
19143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019144 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019145 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019146 grep -v '^ *+' conftest.er1 >conftest.err
19147 rm -f conftest.er1
19148 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019151 { ac_try='test -z "$ac_c_werror_flag"
19152 || test ! -s conftest.err'
19153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154 (eval $ac_try) 2>&5
19155 ac_status=$?
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); }; } &&
19158 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19160 (eval $ac_try) 2>&5
19161 ac_status=$?
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); }; }; then
19164 ac_cv_search_mallinfo="none required"
19165else
19166 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019167sed 's/^/| /' conftest.$ac_ext >&5
19168
John Criswell7a73b802003-06-30 21:59:07 +000019169fi
Reid Spencer17041682004-09-05 17:48:32 +000019170rm -f conftest.err conftest.$ac_objext \
19171 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019172if test "$ac_cv_search_mallinfo" = no; then
19173 for ac_lib in malloc; do
19174 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19175 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019176/* confdefs.h. */
19177_ACEOF
19178cat confdefs.h >>conftest.$ac_ext
19179cat >>conftest.$ac_ext <<_ACEOF
19180/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019181
19182/* Override any gcc2 internal prototype to avoid an error. */
19183#ifdef __cplusplus
19184extern "C"
19185#endif
19186/* We use char because int might match the return type of a gcc2
19187 builtin and then its argument prototype would still apply. */
19188char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019189int
19190main ()
19191{
19192mallinfo ();
19193 ;
19194 return 0;
19195}
19196_ACEOF
19197rm -f conftest.$ac_objext conftest$ac_exeext
19198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019199 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019200 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019201 grep -v '^ *+' conftest.er1 >conftest.err
19202 rm -f conftest.er1
19203 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019206 { ac_try='test -z "$ac_c_werror_flag"
19207 || test ! -s conftest.err'
19208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19209 (eval $ac_try) 2>&5
19210 ac_status=$?
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); }; } &&
19213 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19215 (eval $ac_try) 2>&5
19216 ac_status=$?
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); }; }; then
19219 ac_cv_search_mallinfo="-l$ac_lib"
19220break
19221else
19222 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019223sed 's/^/| /' conftest.$ac_ext >&5
19224
John Criswell7a73b802003-06-30 21:59:07 +000019225fi
Reid Spencer17041682004-09-05 17:48:32 +000019226rm -f conftest.err conftest.$ac_objext \
19227 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019228 done
19229fi
19230LIBS=$ac_func_search_save_LIBS
19231fi
19232echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19233echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19234if test "$ac_cv_search_mallinfo" != no; then
19235 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019236
19237cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019238#define HAVE_MALLINFO 1
19239_ACEOF
19240
19241fi
19242
19243
Brian Gaeke5f268f72003-12-05 19:29:01 +000019244echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19245echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19246if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19247 echo $ECHO_N "(cached) $ECHO_C" >&6
19248else
19249 ac_func_search_save_LIBS=$LIBS
19250ac_cv_search_pthread_mutex_lock=no
19251cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000019252/* confdefs.h. */
19253_ACEOF
19254cat confdefs.h >>conftest.$ac_ext
19255cat >>conftest.$ac_ext <<_ACEOF
19256/* end confdefs.h. */
19257
19258/* Override any gcc2 internal prototype to avoid an error. */
19259#ifdef __cplusplus
19260extern "C"
19261#endif
19262/* We use char because int might match the return type of a gcc2
19263 builtin and then its argument prototype would still apply. */
19264char pthread_mutex_lock ();
19265int
19266main ()
19267{
19268pthread_mutex_lock ();
19269 ;
19270 return 0;
19271}
19272_ACEOF
19273rm -f conftest.$ac_objext conftest$ac_exeext
19274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019275 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000019276 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019277 grep -v '^ *+' conftest.er1 >conftest.err
19278 rm -f conftest.er1
19279 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000019280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019282 { ac_try='test -z "$ac_c_werror_flag"
19283 || test ! -s conftest.err'
19284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285 (eval $ac_try) 2>&5
19286 ac_status=$?
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; } &&
19289 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000019290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19291 (eval $ac_try) 2>&5
19292 ac_status=$?
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); }; }; then
19295 ac_cv_search_pthread_mutex_lock="none required"
19296else
19297 echo "$as_me: failed program was:" >&5
19298sed 's/^/| /' conftest.$ac_ext >&5
19299
19300fi
Reid Spencer17041682004-09-05 17:48:32 +000019301rm -f conftest.err conftest.$ac_objext \
19302 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000019303if test "$ac_cv_search_pthread_mutex_lock" = no; then
19304 for ac_lib in pthread; do
19305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19306 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000019307/* confdefs.h. */
19308_ACEOF
19309cat confdefs.h >>conftest.$ac_ext
19310cat >>conftest.$ac_ext <<_ACEOF
19311/* end confdefs.h. */
19312
19313/* Override any gcc2 internal prototype to avoid an error. */
19314#ifdef __cplusplus
19315extern "C"
19316#endif
19317/* We use char because int might match the return type of a gcc2
19318 builtin and then its argument prototype would still apply. */
19319char pthread_mutex_lock ();
19320int
19321main ()
19322{
19323pthread_mutex_lock ();
19324 ;
19325 return 0;
19326}
19327_ACEOF
19328rm -f conftest.$ac_objext conftest$ac_exeext
19329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019330 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000019331 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019332 grep -v '^ *+' conftest.er1 >conftest.err
19333 rm -f conftest.er1
19334 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000019335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019337 { ac_try='test -z "$ac_c_werror_flag"
19338 || test ! -s conftest.err'
19339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340 (eval $ac_try) 2>&5
19341 ac_status=$?
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; } &&
19344 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000019345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19346 (eval $ac_try) 2>&5
19347 ac_status=$?
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); }; }; then
19350 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19351break
19352else
19353 echo "$as_me: failed program was:" >&5
19354sed 's/^/| /' conftest.$ac_ext >&5
19355
19356fi
Reid Spencer17041682004-09-05 17:48:32 +000019357rm -f conftest.err conftest.$ac_objext \
19358 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000019359 done
19360fi
19361LIBS=$ac_func_search_save_LIBS
19362fi
19363echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19364echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19365if test "$ac_cv_search_pthread_mutex_lock" != no; then
19366 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaekec9a410c2004-02-23 21:30:37 +000019367 HAVE_PTHREAD_MUTEX_LOCK=1
19368else
19369 HAVE_PTHREAD_MUTEX_LOCK=0
Brian Gaeke5f268f72003-12-05 19:29:01 +000019370fi
19371
19372
Brian Gaekec9a410c2004-02-23 21:30:37 +000019373
John Criswell7a73b802003-06-30 21:59:07 +000019374echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19375echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19376if test "${ac_cv_header_stdc+set}" = set; then
19377 echo $ECHO_N "(cached) $ECHO_C" >&6
19378else
19379 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019380/* confdefs.h. */
19381_ACEOF
19382cat confdefs.h >>conftest.$ac_ext
19383cat >>conftest.$ac_ext <<_ACEOF
19384/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019385#include <stdlib.h>
19386#include <stdarg.h>
19387#include <string.h>
19388#include <float.h>
19389
John Criswell0c38eaf2003-09-10 15:17:25 +000019390int
19391main ()
19392{
19393
19394 ;
19395 return 0;
19396}
John Criswell7a73b802003-06-30 21:59:07 +000019397_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019398rm -f conftest.$ac_objext
19399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019400 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019401 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019402 grep -v '^ *+' conftest.er1 >conftest.err
19403 rm -f conftest.er1
19404 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019406 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019407 { ac_try='test -z "$ac_c_werror_flag"
19408 || test ! -s conftest.err'
19409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19410 (eval $ac_try) 2>&5
19411 ac_status=$?
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }; } &&
19414 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000019415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19416 (eval $ac_try) 2>&5
19417 ac_status=$?
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019420 ac_cv_header_stdc=yes
19421else
19422 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019423sed 's/^/| /' conftest.$ac_ext >&5
19424
19425ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019426fi
Reid Spencer17041682004-09-05 17:48:32 +000019427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019428
19429if test $ac_cv_header_stdc = yes; then
19430 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19431 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019432/* confdefs.h. */
19433_ACEOF
19434cat confdefs.h >>conftest.$ac_ext
19435cat >>conftest.$ac_ext <<_ACEOF
19436/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019437#include <string.h>
19438
19439_ACEOF
19440if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019441 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019442 :
19443else
19444 ac_cv_header_stdc=no
19445fi
19446rm -f conftest*
19447
19448fi
19449
19450if test $ac_cv_header_stdc = yes; then
19451 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19452 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019453/* confdefs.h. */
19454_ACEOF
19455cat confdefs.h >>conftest.$ac_ext
19456cat >>conftest.$ac_ext <<_ACEOF
19457/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019458#include <stdlib.h>
19459
19460_ACEOF
19461if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019462 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019463 :
19464else
19465 ac_cv_header_stdc=no
19466fi
19467rm -f conftest*
19468
19469fi
19470
19471if test $ac_cv_header_stdc = yes; then
19472 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19473 if test "$cross_compiling" = yes; then
19474 :
19475else
19476 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019477/* confdefs.h. */
19478_ACEOF
19479cat confdefs.h >>conftest.$ac_ext
19480cat >>conftest.$ac_ext <<_ACEOF
19481/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019482#include <ctype.h>
19483#if ((' ' & 0x0FF) == 0x020)
19484# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19485# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19486#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019487# define ISLOWER(c) \
Reid Spencer17041682004-09-05 17:48:32 +000019488 (('a' <= (c) && (c) <= 'i') \
19489 || ('j' <= (c) && (c) <= 'r') \
19490 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000019491# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19492#endif
19493
19494#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19495int
19496main ()
19497{
19498 int i;
19499 for (i = 0; i < 256; i++)
19500 if (XOR (islower (i), ISLOWER (i))
Reid Spencer17041682004-09-05 17:48:32 +000019501 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000019502 exit(2);
19503 exit (0);
19504}
19505_ACEOF
19506rm -f conftest$ac_exeext
19507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19508 (eval $ac_link) 2>&5
19509 ac_status=$?
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19513 (eval $ac_try) 2>&5
19514 ac_status=$?
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); }; }; then
19517 :
19518else
19519 echo "$as_me: program exited with status $ac_status" >&5
19520echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019521sed 's/^/| /' conftest.$ac_ext >&5
19522
John Criswell7a73b802003-06-30 21:59:07 +000019523( exit $ac_status )
19524ac_cv_header_stdc=no
19525fi
Reid Spencer17041682004-09-05 17:48:32 +000019526rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019527fi
19528fi
19529fi
19530echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19531echo "${ECHO_T}$ac_cv_header_stdc" >&6
19532if test $ac_cv_header_stdc = yes; then
19533
19534cat >>confdefs.h <<\_ACEOF
19535#define STDC_HEADERS 1
19536_ACEOF
19537
19538fi
19539
19540echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19541echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19542if test "${ac_cv_header_sys_wait_h+set}" = set; then
19543 echo $ECHO_N "(cached) $ECHO_C" >&6
19544else
19545 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019546/* confdefs.h. */
19547_ACEOF
19548cat confdefs.h >>conftest.$ac_ext
19549cat >>conftest.$ac_ext <<_ACEOF
19550/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019551#include <sys/types.h>
19552#include <sys/wait.h>
19553#ifndef WEXITSTATUS
19554# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19555#endif
19556#ifndef WIFEXITED
19557# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19558#endif
19559
John Criswell7a73b802003-06-30 21:59:07 +000019560int
19561main ()
19562{
19563 int s;
19564 wait (&s);
19565 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19566 ;
19567 return 0;
19568}
19569_ACEOF
19570rm -f conftest.$ac_objext
19571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019572 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019573 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019574 grep -v '^ *+' conftest.er1 >conftest.err
19575 rm -f conftest.er1
19576 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019579 { ac_try='test -z "$ac_c_werror_flag"
19580 || test ! -s conftest.err'
19581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582 (eval $ac_try) 2>&5
19583 ac_status=$?
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); }; } &&
19586 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000019587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588 (eval $ac_try) 2>&5
19589 ac_status=$?
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; }; then
19592 ac_cv_header_sys_wait_h=yes
19593else
19594 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019595sed 's/^/| /' conftest.$ac_ext >&5
19596
John Criswell7a73b802003-06-30 21:59:07 +000019597ac_cv_header_sys_wait_h=no
19598fi
Reid Spencer17041682004-09-05 17:48:32 +000019599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019600fi
19601echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19602echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19603if test $ac_cv_header_sys_wait_h = yes; then
19604
19605cat >>confdefs.h <<\_ACEOF
19606#define HAVE_SYS_WAIT_H 1
19607_ACEOF
19608
19609fi
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
Brian Gaeke26be9c52004-01-13 06:43:16 +000019620
Brian Gaekef5261472004-02-20 06:40:57 +000019621
John Criswellb2815e02004-05-27 20:40:39 +000019622
19623for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h windows.h
John Criswell7a73b802003-06-30 21:59:07 +000019624do
19625as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19626if eval "test \"\${$as_ac_Header+set}\" = set"; then
19627 echo "$as_me:$LINENO: checking for $ac_header" >&5
19628echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19629if eval "test \"\${$as_ac_Header+set}\" = set"; then
19630 echo $ECHO_N "(cached) $ECHO_C" >&6
19631fi
19632echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19633echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19634else
19635 # Is the header compilable?
19636echo "$as_me:$LINENO: checking $ac_header usability" >&5
19637echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19638cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019639/* confdefs.h. */
19640_ACEOF
19641cat confdefs.h >>conftest.$ac_ext
19642cat >>conftest.$ac_ext <<_ACEOF
19643/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019644$ac_includes_default
19645#include <$ac_header>
19646_ACEOF
19647rm -f conftest.$ac_objext
19648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019649 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019650 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019651 grep -v '^ *+' conftest.er1 >conftest.err
19652 rm -f conftest.er1
19653 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019656 { ac_try='test -z "$ac_c_werror_flag"
19657 || test ! -s conftest.err'
19658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659 (eval $ac_try) 2>&5
19660 ac_status=$?
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); }; } &&
19663 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000019664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19665 (eval $ac_try) 2>&5
19666 ac_status=$?
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); }; }; then
19669 ac_header_compiler=yes
19670else
19671 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019672sed 's/^/| /' conftest.$ac_ext >&5
19673
John Criswell7a73b802003-06-30 21:59:07 +000019674ac_header_compiler=no
19675fi
Reid Spencer17041682004-09-05 17:48:32 +000019676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019677echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19678echo "${ECHO_T}$ac_header_compiler" >&6
19679
19680# Is the header present?
19681echo "$as_me:$LINENO: checking $ac_header presence" >&5
19682echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19683cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019684/* confdefs.h. */
19685_ACEOF
19686cat confdefs.h >>conftest.$ac_ext
19687cat >>conftest.$ac_ext <<_ACEOF
19688/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019689#include <$ac_header>
19690_ACEOF
19691if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19693 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019694 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019695 rm -f conftest.er1
19696 cat conftest.err >&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); } >/dev/null; then
19699 if test -s conftest.err; then
19700 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +000019701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000019702 else
19703 ac_cpp_err=
19704 fi
19705else
19706 ac_cpp_err=yes
19707fi
19708if test -z "$ac_cpp_err"; then
19709 ac_header_preproc=yes
19710else
19711 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019712sed 's/^/| /' conftest.$ac_ext >&5
19713
John Criswell7a73b802003-06-30 21:59:07 +000019714 ac_header_preproc=no
19715fi
19716rm -f conftest.err conftest.$ac_ext
19717echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19718echo "${ECHO_T}$ac_header_preproc" >&6
19719
19720# So? What about this header?
Reid Spencer17041682004-09-05 17:48:32 +000019721case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19722 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000019723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19724echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000019725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19726echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19727 ac_header_preproc=yes
John Criswell679ff312004-09-02 18:44:44 +000019728 ;;
Reid Spencer17041682004-09-05 17:48:32 +000019729 no:yes:* )
John Criswell679ff312004-09-02 18:44:44 +000019730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19731echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000019732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19733echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19734 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19735echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19736 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19737echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000019738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19739echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000019740 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19741echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000019742 (
19743 cat <<\_ASBOX
Reid Spencer17041682004-09-05 17:48:32 +000019744## ----------------------------------- ##
19745## Report this to llvmbugs@cs.uiuc.edu ##
19746## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000019747_ASBOX
19748 ) |
19749 sed "s/^/$as_me: WARNING: /" >&2
19750 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019751esac
19752echo "$as_me:$LINENO: checking for $ac_header" >&5
19753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19754if eval "test \"\${$as_ac_Header+set}\" = set"; then
19755 echo $ECHO_N "(cached) $ECHO_C" >&6
19756else
Reid Spencer17041682004-09-05 17:48:32 +000019757 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000019758fi
19759echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19760echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19761
19762fi
19763if test `eval echo '${'$as_ac_Header'}'` = yes; then
19764 cat >>confdefs.h <<_ACEOF
19765#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19766_ACEOF
19767
19768fi
19769
19770done
19771
19772
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019773if test "${ac_cv_header_sys_types_h+set}" = set; then
19774 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19775echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19776if test "${ac_cv_header_sys_types_h+set}" = set; then
19777 echo $ECHO_N "(cached) $ECHO_C" >&6
19778fi
19779echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19780echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19781else
19782 # Is the header compilable?
19783echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19784echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19785cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019786/* confdefs.h. */
19787_ACEOF
19788cat confdefs.h >>conftest.$ac_ext
19789cat >>conftest.$ac_ext <<_ACEOF
19790/* end confdefs.h. */
19791$ac_includes_default
19792#include <sys/types.h>
19793_ACEOF
19794rm -f conftest.$ac_objext
19795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019796 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019797 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019798 grep -v '^ *+' conftest.er1 >conftest.err
19799 rm -f conftest.er1
19800 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019803 { ac_try='test -z "$ac_c_werror_flag"
19804 || test ! -s conftest.err'
19805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806 (eval $ac_try) 2>&5
19807 ac_status=$?
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; } &&
19810 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19812 (eval $ac_try) 2>&5
19813 ac_status=$?
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; }; then
19816 ac_header_compiler=yes
19817else
19818 echo "$as_me: failed program was:" >&5
19819sed 's/^/| /' conftest.$ac_ext >&5
19820
19821ac_header_compiler=no
19822fi
Reid Spencer17041682004-09-05 17:48:32 +000019823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019824echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19825echo "${ECHO_T}$ac_header_compiler" >&6
19826
19827# Is the header present?
19828echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19829echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19830cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019831/* confdefs.h. */
19832_ACEOF
19833cat confdefs.h >>conftest.$ac_ext
19834cat >>conftest.$ac_ext <<_ACEOF
19835/* end confdefs.h. */
19836#include <sys/types.h>
19837_ACEOF
19838if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19840 ac_status=$?
19841 grep -v '^ *+' conftest.er1 >conftest.err
19842 rm -f conftest.er1
19843 cat conftest.err >&5
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); } >/dev/null; then
19846 if test -s conftest.err; then
19847 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +000019848 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019849 else
19850 ac_cpp_err=
19851 fi
19852else
19853 ac_cpp_err=yes
19854fi
19855if test -z "$ac_cpp_err"; then
19856 ac_header_preproc=yes
19857else
19858 echo "$as_me: failed program was:" >&5
19859sed 's/^/| /' conftest.$ac_ext >&5
19860
19861 ac_header_preproc=no
19862fi
19863rm -f conftest.err conftest.$ac_ext
19864echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19865echo "${ECHO_T}$ac_header_preproc" >&6
19866
19867# So? What about this header?
Reid Spencer17041682004-09-05 17:48:32 +000019868case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19869 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019870 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19871echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000019872 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
19873echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
19874 ac_header_preproc=yes
John Criswell679ff312004-09-02 18:44:44 +000019875 ;;
Reid Spencer17041682004-09-05 17:48:32 +000019876 no:yes:* )
John Criswell679ff312004-09-02 18:44:44 +000019877 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19878echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000019879 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19880echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19881 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
19882echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
19883 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
19884echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000019885 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19886echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000019887 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
19888echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000019889 (
19890 cat <<\_ASBOX
Reid Spencer17041682004-09-05 17:48:32 +000019891## ----------------------------------- ##
19892## Report this to llvmbugs@cs.uiuc.edu ##
19893## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019894_ASBOX
19895 ) |
19896 sed "s/^/$as_me: WARNING: /" >&2
19897 ;;
19898esac
19899echo "$as_me:$LINENO: checking for sys/types.h" >&5
19900echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19901if test "${ac_cv_header_sys_types_h+set}" = set; then
19902 echo $ECHO_N "(cached) $ECHO_C" >&6
19903else
19904 ac_cv_header_sys_types_h=$ac_header_preproc
19905fi
19906echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19907echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19908
19909fi
19910if test $ac_cv_header_sys_types_h = yes; then
19911 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19912else
19913 INCLUDE_SYS_TYPES_H=''
19914fi
19915
19916
19917
19918if test "${ac_cv_header_inttypes_h+set}" = set; then
19919 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19920echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19921if test "${ac_cv_header_inttypes_h+set}" = set; then
19922 echo $ECHO_N "(cached) $ECHO_C" >&6
19923fi
19924echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19925echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19926else
19927 # Is the header compilable?
19928echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19929echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19930cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019931/* confdefs.h. */
19932_ACEOF
19933cat confdefs.h >>conftest.$ac_ext
19934cat >>conftest.$ac_ext <<_ACEOF
19935/* end confdefs.h. */
19936$ac_includes_default
19937#include <inttypes.h>
19938_ACEOF
19939rm -f conftest.$ac_objext
19940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019941 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019942 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019943 grep -v '^ *+' conftest.er1 >conftest.err
19944 rm -f conftest.er1
19945 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019948 { ac_try='test -z "$ac_c_werror_flag"
19949 || test ! -s conftest.err'
19950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19951 (eval $ac_try) 2>&5
19952 ac_status=$?
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); }; } &&
19955 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19957 (eval $ac_try) 2>&5
19958 ac_status=$?
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); }; }; then
19961 ac_header_compiler=yes
19962else
19963 echo "$as_me: failed program was:" >&5
19964sed 's/^/| /' conftest.$ac_ext >&5
19965
19966ac_header_compiler=no
19967fi
Reid Spencer17041682004-09-05 17:48:32 +000019968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019969echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19970echo "${ECHO_T}$ac_header_compiler" >&6
19971
19972# Is the header present?
19973echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19974echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19975cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019976/* confdefs.h. */
19977_ACEOF
19978cat confdefs.h >>conftest.$ac_ext
19979cat >>conftest.$ac_ext <<_ACEOF
19980/* end confdefs.h. */
19981#include <inttypes.h>
19982_ACEOF
19983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19985 ac_status=$?
19986 grep -v '^ *+' conftest.er1 >conftest.err
19987 rm -f conftest.er1
19988 cat conftest.err >&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } >/dev/null; then
19991 if test -s conftest.err; then
19992 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +000019993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019994 else
19995 ac_cpp_err=
19996 fi
19997else
19998 ac_cpp_err=yes
19999fi
20000if test -z "$ac_cpp_err"; then
20001 ac_header_preproc=yes
20002else
20003 echo "$as_me: failed program was:" >&5
20004sed 's/^/| /' conftest.$ac_ext >&5
20005
20006 ac_header_preproc=no
20007fi
20008rm -f conftest.err conftest.$ac_ext
20009echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20010echo "${ECHO_T}$ac_header_preproc" >&6
20011
20012# So? What about this header?
Reid Spencer17041682004-09-05 17:48:32 +000020013case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20014 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020015 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20016echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000020017 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20018echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20019 ac_header_preproc=yes
John Criswell679ff312004-09-02 18:44:44 +000020020 ;;
Reid Spencer17041682004-09-05 17:48:32 +000020021 no:yes:* )
John Criswell679ff312004-09-02 18:44:44 +000020022 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20023echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000020024 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20025echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20026 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20027echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20028 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20029echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000020030 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20031echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000020032 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20033echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000020034 (
20035 cat <<\_ASBOX
Reid Spencer17041682004-09-05 17:48:32 +000020036## ----------------------------------- ##
20037## Report this to llvmbugs@cs.uiuc.edu ##
20038## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020039_ASBOX
20040 ) |
20041 sed "s/^/$as_me: WARNING: /" >&2
20042 ;;
20043esac
20044echo "$as_me:$LINENO: checking for inttypes.h" >&5
20045echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20046if test "${ac_cv_header_inttypes_h+set}" = set; then
20047 echo $ECHO_N "(cached) $ECHO_C" >&6
20048else
20049 ac_cv_header_inttypes_h=$ac_header_preproc
20050fi
20051echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20052echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20053
20054fi
20055if test $ac_cv_header_inttypes_h = yes; then
20056 INCLUDE_INTTYPES_H='#include <inttypes.h>'
20057else
20058 INCLUDE_INTTYPES_H=''
20059fi
20060
20061
20062
John Criswell7ed43ad2004-07-19 16:12:29 +000020063if test "${ac_cv_header_stdint_h+set}" = set; then
20064 echo "$as_me:$LINENO: checking for stdint.h" >&5
20065echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20066if test "${ac_cv_header_stdint_h+set}" = set; then
20067 echo $ECHO_N "(cached) $ECHO_C" >&6
20068fi
20069echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20070echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20071else
20072 # Is the header compilable?
20073echo "$as_me:$LINENO: checking stdint.h usability" >&5
20074echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20075cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000020076/* confdefs.h. */
20077_ACEOF
20078cat confdefs.h >>conftest.$ac_ext
20079cat >>conftest.$ac_ext <<_ACEOF
20080/* end confdefs.h. */
20081$ac_includes_default
20082#include <stdint.h>
20083_ACEOF
20084rm -f conftest.$ac_objext
20085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020086 (eval $ac_compile) 2>conftest.er1
John Criswell7ed43ad2004-07-19 16:12:29 +000020087 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020088 grep -v '^ *+' conftest.er1 >conftest.err
20089 rm -f conftest.er1
20090 cat conftest.err >&5
John Criswell7ed43ad2004-07-19 16:12:29 +000020091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020093 { ac_try='test -z "$ac_c_werror_flag"
20094 || test ! -s conftest.err'
20095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20096 (eval $ac_try) 2>&5
20097 ac_status=$?
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); }; } &&
20100 { ac_try='test -s conftest.$ac_objext'
John Criswell7ed43ad2004-07-19 16:12:29 +000020101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20102 (eval $ac_try) 2>&5
20103 ac_status=$?
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); }; }; then
20106 ac_header_compiler=yes
20107else
20108 echo "$as_me: failed program was:" >&5
20109sed 's/^/| /' conftest.$ac_ext >&5
20110
20111ac_header_compiler=no
20112fi
Reid Spencer17041682004-09-05 17:48:32 +000020113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7ed43ad2004-07-19 16:12:29 +000020114echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20115echo "${ECHO_T}$ac_header_compiler" >&6
20116
20117# Is the header present?
20118echo "$as_me:$LINENO: checking stdint.h presence" >&5
20119echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20120cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000020121/* confdefs.h. */
20122_ACEOF
20123cat confdefs.h >>conftest.$ac_ext
20124cat >>conftest.$ac_ext <<_ACEOF
20125/* end confdefs.h. */
20126#include <stdint.h>
20127_ACEOF
20128if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20130 ac_status=$?
20131 grep -v '^ *+' conftest.er1 >conftest.err
20132 rm -f conftest.er1
20133 cat conftest.err >&5
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); } >/dev/null; then
20136 if test -s conftest.err; then
20137 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +000020138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7ed43ad2004-07-19 16:12:29 +000020139 else
20140 ac_cpp_err=
20141 fi
20142else
20143 ac_cpp_err=yes
20144fi
20145if test -z "$ac_cpp_err"; then
20146 ac_header_preproc=yes
20147else
20148 echo "$as_me: failed program was:" >&5
20149sed 's/^/| /' conftest.$ac_ext >&5
20150
20151 ac_header_preproc=no
20152fi
20153rm -f conftest.err conftest.$ac_ext
20154echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20155echo "${ECHO_T}$ac_header_preproc" >&6
20156
20157# So? What about this header?
Reid Spencer17041682004-09-05 17:48:32 +000020158case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20159 yes:no: )
John Criswell7ed43ad2004-07-19 16:12:29 +000020160 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20161echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000020162 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20163echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20164 ac_header_preproc=yes
John Criswell679ff312004-09-02 18:44:44 +000020165 ;;
Reid Spencer17041682004-09-05 17:48:32 +000020166 no:yes:* )
John Criswell679ff312004-09-02 18:44:44 +000020167 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20168echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000020169 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20170echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20171 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20172echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20173 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20174echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000020175 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20176echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000020177 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20178echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000020179 (
20180 cat <<\_ASBOX
Reid Spencer17041682004-09-05 17:48:32 +000020181## ----------------------------------- ##
20182## Report this to llvmbugs@cs.uiuc.edu ##
20183## ----------------------------------- ##
John Criswell7ed43ad2004-07-19 16:12:29 +000020184_ASBOX
20185 ) |
20186 sed "s/^/$as_me: WARNING: /" >&2
20187 ;;
20188esac
20189echo "$as_me:$LINENO: checking for stdint.h" >&5
20190echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20191if test "${ac_cv_header_stdint_h+set}" = set; then
20192 echo $ECHO_N "(cached) $ECHO_C" >&6
20193else
20194 ac_cv_header_stdint_h=$ac_header_preproc
20195fi
20196echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20197echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20198
20199fi
20200if test $ac_cv_header_stdint_h = yes; then
20201 INCLUDE_STDINT_H='#include <stdint.h>'
20202else
20203 INCLUDE_STDINT_H=''
20204fi
20205
20206
20207
20208
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020209
John Criswell7a73b802003-06-30 21:59:07 +000020210echo "$as_me:$LINENO: checking for pid_t" >&5
20211echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20212if test "${ac_cv_type_pid_t+set}" = set; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20214else
20215 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020216/* confdefs.h. */
20217_ACEOF
20218cat confdefs.h >>conftest.$ac_ext
20219cat >>conftest.$ac_ext <<_ACEOF
20220/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020221$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020222int
20223main ()
20224{
20225if ((pid_t *) 0)
20226 return 0;
20227if (sizeof (pid_t))
20228 return 0;
20229 ;
20230 return 0;
20231}
20232_ACEOF
20233rm -f conftest.$ac_objext
20234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020235 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020236 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020237 grep -v '^ *+' conftest.er1 >conftest.err
20238 rm -f conftest.er1
20239 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020242 { ac_try='test -z "$ac_c_werror_flag"
20243 || test ! -s conftest.err'
20244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245 (eval $ac_try) 2>&5
20246 ac_status=$?
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }; } &&
20249 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20251 (eval $ac_try) 2>&5
20252 ac_status=$?
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); }; }; then
20255 ac_cv_type_pid_t=yes
20256else
20257 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020258sed 's/^/| /' conftest.$ac_ext >&5
20259
John Criswell7a73b802003-06-30 21:59:07 +000020260ac_cv_type_pid_t=no
20261fi
Reid Spencer17041682004-09-05 17:48:32 +000020262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020263fi
20264echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20265echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20266if test $ac_cv_type_pid_t = yes; then
20267 :
20268else
20269
20270cat >>confdefs.h <<_ACEOF
20271#define pid_t int
20272_ACEOF
20273
20274fi
20275
20276echo "$as_me:$LINENO: checking for size_t" >&5
20277echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20278if test "${ac_cv_type_size_t+set}" = set; then
20279 echo $ECHO_N "(cached) $ECHO_C" >&6
20280else
20281 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020282/* confdefs.h. */
20283_ACEOF
20284cat confdefs.h >>conftest.$ac_ext
20285cat >>conftest.$ac_ext <<_ACEOF
20286/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020287$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020288int
20289main ()
20290{
20291if ((size_t *) 0)
20292 return 0;
20293if (sizeof (size_t))
20294 return 0;
20295 ;
20296 return 0;
20297}
20298_ACEOF
20299rm -f conftest.$ac_objext
20300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020301 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020302 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020303 grep -v '^ *+' conftest.er1 >conftest.err
20304 rm -f conftest.er1
20305 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020308 { ac_try='test -z "$ac_c_werror_flag"
20309 || test ! -s conftest.err'
20310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311 (eval $ac_try) 2>&5
20312 ac_status=$?
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); }; } &&
20315 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20317 (eval $ac_try) 2>&5
20318 ac_status=$?
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); }; }; then
20321 ac_cv_type_size_t=yes
20322else
20323 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020324sed 's/^/| /' conftest.$ac_ext >&5
20325
John Criswell7a73b802003-06-30 21:59:07 +000020326ac_cv_type_size_t=no
20327fi
Reid Spencer17041682004-09-05 17:48:32 +000020328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020329fi
20330echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20331echo "${ECHO_T}$ac_cv_type_size_t" >&6
20332if test $ac_cv_type_size_t = yes; then
20333 :
20334else
20335
20336cat >>confdefs.h <<_ACEOF
20337#define size_t unsigned
20338_ACEOF
20339
20340fi
20341
20342echo "$as_me:$LINENO: checking for int64_t" >&5
20343echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20344if test "${ac_cv_type_int64_t+set}" = set; then
20345 echo $ECHO_N "(cached) $ECHO_C" >&6
20346else
20347 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020348/* confdefs.h. */
20349_ACEOF
20350cat confdefs.h >>conftest.$ac_ext
20351cat >>conftest.$ac_ext <<_ACEOF
20352/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020353$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020354int
20355main ()
20356{
20357if ((int64_t *) 0)
20358 return 0;
20359if (sizeof (int64_t))
20360 return 0;
20361 ;
20362 return 0;
20363}
20364_ACEOF
20365rm -f conftest.$ac_objext
20366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020367 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020368 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020369 grep -v '^ *+' conftest.er1 >conftest.err
20370 rm -f conftest.er1
20371 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020374 { ac_try='test -z "$ac_c_werror_flag"
20375 || test ! -s conftest.err'
20376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20377 (eval $ac_try) 2>&5
20378 ac_status=$?
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); }; } &&
20381 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20383 (eval $ac_try) 2>&5
20384 ac_status=$?
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); }; }; then
20387 ac_cv_type_int64_t=yes
20388else
20389 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020390sed 's/^/| /' conftest.$ac_ext >&5
20391
John Criswell7a73b802003-06-30 21:59:07 +000020392ac_cv_type_int64_t=no
20393fi
Reid Spencer17041682004-09-05 17:48:32 +000020394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020395fi
20396echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20397echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20398if test $ac_cv_type_int64_t = yes; then
20399
20400cat >>confdefs.h <<_ACEOF
20401#define HAVE_INT64_T 1
20402_ACEOF
20403
20404
20405else
20406 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20407echo "$as_me: error: Type int64_t required but not found" >&2;}
20408 { (exit 1); exit 1; }; }
20409fi
20410
20411echo "$as_me:$LINENO: checking for uint64_t" >&5
20412echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20413if test "${ac_cv_type_uint64_t+set}" = set; then
20414 echo $ECHO_N "(cached) $ECHO_C" >&6
20415else
20416 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020417/* confdefs.h. */
20418_ACEOF
20419cat confdefs.h >>conftest.$ac_ext
20420cat >>conftest.$ac_ext <<_ACEOF
20421/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020422$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020423int
20424main ()
20425{
20426if ((uint64_t *) 0)
20427 return 0;
20428if (sizeof (uint64_t))
20429 return 0;
20430 ;
20431 return 0;
20432}
20433_ACEOF
20434rm -f conftest.$ac_objext
20435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020436 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020437 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020438 grep -v '^ *+' conftest.er1 >conftest.err
20439 rm -f conftest.er1
20440 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020443 { ac_try='test -z "$ac_c_werror_flag"
20444 || test ! -s conftest.err'
20445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446 (eval $ac_try) 2>&5
20447 ac_status=$?
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; } &&
20450 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20452 (eval $ac_try) 2>&5
20453 ac_status=$?
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); }; }; then
20456 ac_cv_type_uint64_t=yes
20457else
20458 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020459sed 's/^/| /' conftest.$ac_ext >&5
20460
John Criswell7a73b802003-06-30 21:59:07 +000020461ac_cv_type_uint64_t=no
20462fi
Reid Spencer17041682004-09-05 17:48:32 +000020463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020464fi
20465echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20466echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20467if test $ac_cv_type_uint64_t = yes; then
20468
20469cat >>confdefs.h <<_ACEOF
20470#define HAVE_UINT64_T 1
20471_ACEOF
20472
20473
20474else
Misha Brukmanceca9042004-09-02 23:02:30 +000020475 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000020476echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
20477if test "${ac_cv_type_u_int64_t+set}" = set; then
20478 echo $ECHO_N "(cached) $ECHO_C" >&6
20479else
20480 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000020481/* confdefs.h. */
20482_ACEOF
20483cat confdefs.h >>conftest.$ac_ext
20484cat >>conftest.$ac_ext <<_ACEOF
20485/* end confdefs.h. */
20486$ac_includes_default
20487int
20488main ()
20489{
20490if ((u_int64_t *) 0)
20491 return 0;
20492if (sizeof (u_int64_t))
20493 return 0;
20494 ;
20495 return 0;
20496}
20497_ACEOF
20498rm -f conftest.$ac_objext
20499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020500 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000020501 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020502 grep -v '^ *+' conftest.er1 >conftest.err
20503 rm -f conftest.er1
20504 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000020505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020507 { ac_try='test -z "$ac_c_werror_flag"
20508 || test ! -s conftest.err'
20509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20510 (eval $ac_try) 2>&5
20511 ac_status=$?
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); }; } &&
20514 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000020515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20516 (eval $ac_try) 2>&5
20517 ac_status=$?
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); }; }; then
20520 ac_cv_type_u_int64_t=yes
20521else
20522 echo "$as_me: failed program was:" >&5
20523sed 's/^/| /' conftest.$ac_ext >&5
20524
20525ac_cv_type_u_int64_t=no
20526fi
Reid Spencer17041682004-09-05 17:48:32 +000020527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000020528fi
20529echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
20530echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
20531if test $ac_cv_type_u_int64_t = yes; then
20532
20533cat >>confdefs.h <<_ACEOF
20534#define HAVE_U_INT64_T 1
20535_ACEOF
20536
20537
Misha Brukmanceca9042004-09-02 23:02:30 +000020538else
20539 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
20540echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
20541 { (exit 1); exit 1; }; }
20542fi
20543
John Criswell679ff312004-09-02 18:44:44 +000020544fi
20545
John Criswell7a73b802003-06-30 21:59:07 +000020546echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20547echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20548if test "${ac_cv_header_time+set}" = set; then
20549 echo $ECHO_N "(cached) $ECHO_C" >&6
20550else
20551 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020552/* confdefs.h. */
20553_ACEOF
20554cat confdefs.h >>conftest.$ac_ext
20555cat >>conftest.$ac_ext <<_ACEOF
20556/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020557#include <sys/types.h>
20558#include <sys/time.h>
20559#include <time.h>
20560
John Criswell7a73b802003-06-30 21:59:07 +000020561int
20562main ()
20563{
20564if ((struct tm *) 0)
20565return 0;
20566 ;
20567 return 0;
20568}
20569_ACEOF
20570rm -f conftest.$ac_objext
20571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020572 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020573 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020574 grep -v '^ *+' conftest.er1 >conftest.err
20575 rm -f conftest.er1
20576 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020579 { ac_try='test -z "$ac_c_werror_flag"
20580 || test ! -s conftest.err'
20581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20582 (eval $ac_try) 2>&5
20583 ac_status=$?
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); }; } &&
20586 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20588 (eval $ac_try) 2>&5
20589 ac_status=$?
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); }; }; then
20592 ac_cv_header_time=yes
20593else
20594 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020595sed 's/^/| /' conftest.$ac_ext >&5
20596
John Criswell7a73b802003-06-30 21:59:07 +000020597ac_cv_header_time=no
20598fi
Reid Spencer17041682004-09-05 17:48:32 +000020599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020600fi
20601echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20602echo "${ECHO_T}$ac_cv_header_time" >&6
20603if test $ac_cv_header_time = yes; then
20604
20605cat >>confdefs.h <<\_ACEOF
20606#define TIME_WITH_SYS_TIME 1
20607_ACEOF
20608
20609fi
20610
20611echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20612echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20613if test "${ac_cv_struct_tm+set}" = set; then
20614 echo $ECHO_N "(cached) $ECHO_C" >&6
20615else
20616 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020617/* confdefs.h. */
20618_ACEOF
20619cat confdefs.h >>conftest.$ac_ext
20620cat >>conftest.$ac_ext <<_ACEOF
20621/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020622#include <sys/types.h>
20623#include <time.h>
20624
John Criswell7a73b802003-06-30 21:59:07 +000020625int
20626main ()
20627{
20628struct tm *tp; tp->tm_sec;
20629 ;
20630 return 0;
20631}
20632_ACEOF
20633rm -f conftest.$ac_objext
20634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020635 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020636 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020637 grep -v '^ *+' conftest.er1 >conftest.err
20638 rm -f conftest.er1
20639 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020642 { ac_try='test -z "$ac_c_werror_flag"
20643 || test ! -s conftest.err'
20644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20645 (eval $ac_try) 2>&5
20646 ac_status=$?
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); }; } &&
20649 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20651 (eval $ac_try) 2>&5
20652 ac_status=$?
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); }; }; then
20655 ac_cv_struct_tm=time.h
20656else
20657 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020658sed 's/^/| /' conftest.$ac_ext >&5
20659
John Criswell7a73b802003-06-30 21:59:07 +000020660ac_cv_struct_tm=sys/time.h
20661fi
Reid Spencer17041682004-09-05 17:48:32 +000020662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020663fi
20664echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20665echo "${ECHO_T}$ac_cv_struct_tm" >&6
20666if test $ac_cv_struct_tm = sys/time.h; then
20667
20668cat >>confdefs.h <<\_ACEOF
20669#define TM_IN_SYS_TIME 1
20670_ACEOF
20671
20672fi
20673
20674
John Criswella0137d32003-10-13 16:22:01 +000020675
Brian Gaekeadfe28d2004-07-21 03:50:25 +000020676 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
20677echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
John Criswella0137d32003-10-13 16:22:01 +000020678
20679
20680 ac_ext=c
20681ac_cpp='$CPP $CPPFLAGS'
20682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20684ac_compiler_gnu=$ac_cv_c_compiler_gnu
20685
20686 if test "$cross_compiling" = yes; then
20687 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20688See \`config.log' for more details." >&5
20689echo "$as_me: error: cannot run test program while cross compiling
20690See \`config.log' for more details." >&2;}
20691 { (exit 1); exit 1; }; }
20692else
20693 cat >conftest.$ac_ext <<_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000020694/* confdefs.h. */
20695_ACEOF
20696cat confdefs.h >>conftest.$ac_ext
20697cat >>conftest.$ac_ext <<_ACEOF
20698/* end confdefs.h. */
20699#include <stdio.h>
20700 #include <stdlib.h>
20701int
20702main ()
20703{
20704
20705 volatile double A, B;
20706 char Buffer[100];
20707 A = 1;
20708 A /= 10.0;
20709 sprintf(Buffer, "%a", A);
20710 B = atof(Buffer);
20711 if (A != B)
20712 return (1);
20713 if (A != 0x1.999999999999ap-4)
20714 return (1);
20715 return (0);
20716 ;
20717 return 0;
20718}
20719_ACEOF
20720rm -f conftest$ac_exeext
20721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20722 (eval $ac_link) 2>&5
20723 ac_status=$?
20724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20727 (eval $ac_try) 2>&5
20728 ac_status=$?
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 (exit $ac_status); }; }; then
20731 ac_c_printf_a=yes
20732else
20733 echo "$as_me: program exited with status $ac_status" >&5
20734echo "$as_me: failed program was:" >&5
20735sed 's/^/| /' conftest.$ac_ext >&5
20736
20737( exit $ac_status )
20738ac_c_printf_a=no
20739fi
Reid Spencer17041682004-09-05 17:48:32 +000020740rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000020741fi
20742 ac_ext=c
20743ac_cpp='$CPP $CPPFLAGS'
20744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20746ac_compiler_gnu=$ac_cv_c_compiler_gnu
20747
Brian Gaekeadfe28d2004-07-21 03:50:25 +000020748 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20749echo "${ECHO_T}$ac_c_printf_a" >&6
John Criswella0137d32003-10-13 16:22:01 +000020750 if test "$ac_c_printf_a" = "yes"; then
20751
20752cat >>confdefs.h <<\_ACEOF
20753#define HAVE_PRINTF_A 1
20754_ACEOF
20755
20756 fi
20757
20758
John Criswell0021c312004-02-13 21:57:29 +000020759echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20760echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20761if test "${ac_cv_c_bigendian+set}" = set; then
20762 echo $ECHO_N "(cached) $ECHO_C" >&6
20763else
20764 # See if sys/param.h defines the BYTE_ORDER macro.
20765cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020766/* confdefs.h. */
20767_ACEOF
20768cat confdefs.h >>conftest.$ac_ext
20769cat >>conftest.$ac_ext <<_ACEOF
20770/* end confdefs.h. */
20771#include <sys/types.h>
20772#include <sys/param.h>
20773
20774int
20775main ()
20776{
20777#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20778 bogus endian macros
20779#endif
20780
20781 ;
20782 return 0;
20783}
20784_ACEOF
20785rm -f conftest.$ac_objext
20786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020787 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000020788 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020789 grep -v '^ *+' conftest.er1 >conftest.err
20790 rm -f conftest.er1
20791 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000020792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020794 { ac_try='test -z "$ac_c_werror_flag"
20795 || test ! -s conftest.err'
20796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20797 (eval $ac_try) 2>&5
20798 ac_status=$?
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); }; } &&
20801 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000020802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20803 (eval $ac_try) 2>&5
20804 ac_status=$?
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); }; }; then
20807 # It does; now see whether it defined to BIG_ENDIAN or not.
20808cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020809/* confdefs.h. */
20810_ACEOF
20811cat confdefs.h >>conftest.$ac_ext
20812cat >>conftest.$ac_ext <<_ACEOF
20813/* end confdefs.h. */
20814#include <sys/types.h>
20815#include <sys/param.h>
20816
20817int
20818main ()
20819{
20820#if BYTE_ORDER != BIG_ENDIAN
20821 not big endian
20822#endif
20823
20824 ;
20825 return 0;
20826}
20827_ACEOF
20828rm -f conftest.$ac_objext
20829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020830 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000020831 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020832 grep -v '^ *+' conftest.er1 >conftest.err
20833 rm -f conftest.er1
20834 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000020835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020837 { ac_try='test -z "$ac_c_werror_flag"
20838 || test ! -s conftest.err'
20839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20840 (eval $ac_try) 2>&5
20841 ac_status=$?
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); }; } &&
20844 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000020845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846 (eval $ac_try) 2>&5
20847 ac_status=$?
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; }; then
20850 ac_cv_c_bigendian=yes
20851else
20852 echo "$as_me: failed program was:" >&5
20853sed 's/^/| /' conftest.$ac_ext >&5
20854
20855ac_cv_c_bigendian=no
20856fi
Reid Spencer17041682004-09-05 17:48:32 +000020857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020858else
20859 echo "$as_me: failed program was:" >&5
20860sed 's/^/| /' conftest.$ac_ext >&5
20861
20862# It does not; compile a test program.
20863if test "$cross_compiling" = yes; then
20864 # try to guess the endianness by grepping values into an object file
20865 ac_cv_c_bigendian=unknown
20866 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020867/* confdefs.h. */
20868_ACEOF
20869cat confdefs.h >>conftest.$ac_ext
20870cat >>conftest.$ac_ext <<_ACEOF
20871/* end confdefs.h. */
20872short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20873short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20874void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20875short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20876short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20877void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20878int
20879main ()
20880{
20881 _ascii (); _ebcdic ();
20882 ;
20883 return 0;
20884}
20885_ACEOF
20886rm -f conftest.$ac_objext
20887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020888 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000020889 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020890 grep -v '^ *+' conftest.er1 >conftest.err
20891 rm -f conftest.er1
20892 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000020893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020895 { ac_try='test -z "$ac_c_werror_flag"
20896 || test ! -s conftest.err'
20897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20898 (eval $ac_try) 2>&5
20899 ac_status=$?
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); }; } &&
20902 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000020903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904 (eval $ac_try) 2>&5
20905 ac_status=$?
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); }; }; then
20908 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20909 ac_cv_c_bigendian=yes
20910fi
20911if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20912 if test "$ac_cv_c_bigendian" = unknown; then
20913 ac_cv_c_bigendian=no
20914 else
20915 # finding both strings is unlikely to happen, but who knows?
20916 ac_cv_c_bigendian=unknown
20917 fi
20918fi
20919else
20920 echo "$as_me: failed program was:" >&5
20921sed 's/^/| /' conftest.$ac_ext >&5
20922
20923fi
Reid Spencer17041682004-09-05 17:48:32 +000020924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020925else
20926 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020927/* confdefs.h. */
20928_ACEOF
20929cat confdefs.h >>conftest.$ac_ext
20930cat >>conftest.$ac_ext <<_ACEOF
20931/* end confdefs.h. */
20932int
20933main ()
20934{
20935 /* Are we little or big endian? From Harbison&Steele. */
20936 union
20937 {
20938 long l;
20939 char c[sizeof (long)];
20940 } u;
20941 u.l = 1;
20942 exit (u.c[sizeof (long) - 1] == 1);
20943}
20944_ACEOF
20945rm -f conftest$ac_exeext
20946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20947 (eval $ac_link) 2>&5
20948 ac_status=$?
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20952 (eval $ac_try) 2>&5
20953 ac_status=$?
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); }; }; then
20956 ac_cv_c_bigendian=no
20957else
20958 echo "$as_me: program exited with status $ac_status" >&5
20959echo "$as_me: failed program was:" >&5
20960sed 's/^/| /' conftest.$ac_ext >&5
20961
20962( exit $ac_status )
20963ac_cv_c_bigendian=yes
20964fi
Reid Spencer17041682004-09-05 17:48:32 +000020965rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020966fi
20967fi
Reid Spencer17041682004-09-05 17:48:32 +000020968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020969fi
20970echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20971echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20972case $ac_cv_c_bigendian in
20973 yes)
20974 ENDIAN=big
20975 ;;
20976 no)
20977 ENDIAN=little
20978 ;;
20979 *)
20980 { { echo "$as_me:$LINENO: error: unknown endianness
20981presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20982echo "$as_me: error: unknown endianness
20983presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20984 { (exit 1); exit 1; }; } ;;
20985esac
20986
20987
John Criswell7a73b802003-06-30 21:59:07 +000020988echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20989echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20990if test "${ac_cv_cxx_namespaces+set}" = set; then
20991 echo $ECHO_N "(cached) $ECHO_C" >&6
20992else
20993
20994
20995 ac_ext=cc
20996ac_cpp='$CXXCPP $CPPFLAGS'
20997ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20998ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20999ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21000
21001 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021002/* confdefs.h. */
21003_ACEOF
21004cat confdefs.h >>conftest.$ac_ext
21005cat >>conftest.$ac_ext <<_ACEOF
21006/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021007namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000021008int
21009main ()
21010{
21011using namespace Outer::Inner; return i;
21012 ;
21013 return 0;
21014}
21015_ACEOF
21016rm -f conftest.$ac_objext
21017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021018 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021019 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021020 grep -v '^ *+' conftest.er1 >conftest.err
21021 rm -f conftest.er1
21022 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021025 { ac_try='test -z "$ac_cxx_werror_flag"
21026 || test ! -s conftest.err'
21027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21028 (eval $ac_try) 2>&5
21029 ac_status=$?
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); }; } &&
21032 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21034 (eval $ac_try) 2>&5
21035 ac_status=$?
21036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037 (exit $ac_status); }; }; then
21038 ac_cv_cxx_namespaces=yes
21039else
21040 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021041sed 's/^/| /' conftest.$ac_ext >&5
21042
John Criswell7a73b802003-06-30 21:59:07 +000021043ac_cv_cxx_namespaces=no
21044fi
Reid Spencer17041682004-09-05 17:48:32 +000021045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021046 ac_ext=c
21047ac_cpp='$CPP $CPPFLAGS'
21048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21050ac_compiler_gnu=$ac_cv_c_compiler_gnu
21051
21052
21053fi
21054echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21055echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21056if test "$ac_cv_cxx_namespaces" = yes; then
21057
21058cat >>confdefs.h <<\_ACEOF
21059#define HAVE_NAMESPACES
21060_ACEOF
21061
21062fi
21063
Brian Gaeke90583492003-11-10 03:06:28 +000021064echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21065echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21066if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000021067 echo $ECHO_N "(cached) $ECHO_C" >&6
21068else
21069
21070
21071
21072 ac_ext=cc
21073ac_cpp='$CXXCPP $CPPFLAGS'
21074ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21075ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21076ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21077
21078 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021079/* confdefs.h. */
21080_ACEOF
21081cat confdefs.h >>conftest.$ac_ext
21082cat >>conftest.$ac_ext <<_ACEOF
21083/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021084#include <ext/hash_map>
21085#ifdef HAVE_NAMESPACES
21086using namespace std;
21087#endif
John Criswell7a73b802003-06-30 21:59:07 +000021088int
21089main ()
21090{
Brian Gaeke90583492003-11-10 03:06:28 +000021091hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000021092 ;
21093 return 0;
21094}
21095_ACEOF
21096rm -f conftest.$ac_objext
21097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021098 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021099 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021100 grep -v '^ *+' conftest.er1 >conftest.err
21101 rm -f conftest.er1
21102 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021105 { ac_try='test -z "$ac_cxx_werror_flag"
21106 || test ! -s conftest.err'
21107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21108 (eval $ac_try) 2>&5
21109 ac_status=$?
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); }; } &&
21112 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114 (eval $ac_try) 2>&5
21115 ac_status=$?
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021118 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000021119else
21120 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021121sed 's/^/| /' conftest.$ac_ext >&5
21122
Brian Gaeke90583492003-11-10 03:06:28 +000021123ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021124fi
Reid Spencer17041682004-09-05 17:48:32 +000021125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021126 ac_ext=c
21127ac_cpp='$CPP $CPPFLAGS'
21128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21130ac_compiler_gnu=$ac_cv_c_compiler_gnu
21131
John Criswell7a73b802003-06-30 21:59:07 +000021132fi
Brian Gaeke90583492003-11-10 03:06:28 +000021133echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21134echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021135 HAVE_STD_EXT_HASH_MAP=0
21136 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21137 then
21138 HAVE_STD_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000021139 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021140
Brian Gaeke90583492003-11-10 03:06:28 +000021141 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21142echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21143if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21144 echo $ECHO_N "(cached) $ECHO_C" >&6
21145else
21146
21147
21148
21149 ac_ext=cc
21150ac_cpp='$CXXCPP $CPPFLAGS'
21151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21154
21155 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021156/* confdefs.h. */
21157_ACEOF
21158cat confdefs.h >>conftest.$ac_ext
21159cat >>conftest.$ac_ext <<_ACEOF
21160/* end confdefs.h. */
21161#include <ext/hash_map>
21162#ifdef HAVE_NAMESPACES
21163using namespace __gnu_cxx;
21164#endif
21165int
21166main ()
21167{
21168hash_map<int,int> t;
21169 ;
21170 return 0;
21171}
21172_ACEOF
21173rm -f conftest.$ac_objext
21174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021175 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021176 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021177 grep -v '^ *+' conftest.er1 >conftest.err
21178 rm -f conftest.er1
21179 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021182 { ac_try='test -z "$ac_cxx_werror_flag"
21183 || test ! -s conftest.err'
21184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21185 (eval $ac_try) 2>&5
21186 ac_status=$?
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); }; } &&
21189 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21191 (eval $ac_try) 2>&5
21192 ac_status=$?
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); }; }; then
21195 ac_cv_cxx_have_gnu_ext_hash_map=yes
21196else
21197 echo "$as_me: failed program was:" >&5
21198sed 's/^/| /' conftest.$ac_ext >&5
21199
21200ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021201fi
Reid Spencer17041682004-09-05 17:48:32 +000021202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021203 ac_ext=c
21204ac_cpp='$CPP $CPPFLAGS'
21205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21207ac_compiler_gnu=$ac_cv_c_compiler_gnu
21208
21209fi
21210echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21211echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021212 HAVE_GNU_EXT_HASH_MAP=0
21213 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21214 then
21215 HAVE_GNU_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000021216 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021217
Brian Gaeke90583492003-11-10 03:06:28 +000021218 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21219echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21220if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21221 echo $ECHO_N "(cached) $ECHO_C" >&6
21222else
John Criswell7a73b802003-06-30 21:59:07 +000021223
Brian Gaeke90583492003-11-10 03:06:28 +000021224
21225
21226 ac_ext=cc
21227ac_cpp='$CXXCPP $CPPFLAGS'
21228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21231
21232 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021233/* confdefs.h. */
21234_ACEOF
21235cat confdefs.h >>conftest.$ac_ext
21236cat >>conftest.$ac_ext <<_ACEOF
21237/* end confdefs.h. */
21238#include <hash_map>
21239int
21240main ()
21241{
21242hash_map<int,int> t;
21243 ;
21244 return 0;
21245}
21246_ACEOF
21247rm -f conftest.$ac_objext
21248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021249 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021250 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021251 grep -v '^ *+' conftest.er1 >conftest.err
21252 rm -f conftest.er1
21253 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021256 { ac_try='test -z "$ac_cxx_werror_flag"
21257 || test ! -s conftest.err'
21258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21259 (eval $ac_try) 2>&5
21260 ac_status=$?
21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); }; } &&
21263 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21265 (eval $ac_try) 2>&5
21266 ac_status=$?
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); }; }; then
21269 ac_cv_cxx_have_global_hash_map=yes
21270else
21271 echo "$as_me: failed program was:" >&5
21272sed 's/^/| /' conftest.$ac_ext >&5
21273
21274ac_cv_cxx_have_global_hash_map=no
21275fi
Reid Spencer17041682004-09-05 17:48:32 +000021276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021277 ac_ext=c
21278ac_cpp='$CPP $CPPFLAGS'
21279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21281ac_compiler_gnu=$ac_cv_c_compiler_gnu
21282
21283fi
21284echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21285echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021286 HAVE_GLOBAL_HASH_MAP=0
21287 if test "$ac_cv_cxx_have_global_hash_map" = yes
21288 then
21289 HAVE_GLOBAL_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000021290 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021291
Brian Gaeke90583492003-11-10 03:06:28 +000021292echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21293echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21294if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000021295 echo $ECHO_N "(cached) $ECHO_C" >&6
21296else
21297
21298
21299
21300 ac_ext=cc
21301ac_cpp='$CXXCPP $CPPFLAGS'
21302ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21303ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21304ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21305
21306 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021307/* confdefs.h. */
21308_ACEOF
21309cat confdefs.h >>conftest.$ac_ext
21310cat >>conftest.$ac_ext <<_ACEOF
21311/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021312#include <ext/hash_set>
21313#ifdef HAVE_NAMESPACES
21314using namespace std;
21315#endif
John Criswell7a73b802003-06-30 21:59:07 +000021316int
21317main ()
21318{
Brian Gaeke90583492003-11-10 03:06:28 +000021319hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000021320 ;
21321 return 0;
21322}
21323_ACEOF
21324rm -f conftest.$ac_objext
21325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021326 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021327 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021328 grep -v '^ *+' conftest.er1 >conftest.err
21329 rm -f conftest.er1
21330 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021333 { ac_try='test -z "$ac_cxx_werror_flag"
21334 || test ! -s conftest.err'
21335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21336 (eval $ac_try) 2>&5
21337 ac_status=$?
21338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339 (exit $ac_status); }; } &&
21340 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21342 (eval $ac_try) 2>&5
21343 ac_status=$?
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021346 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021347else
21348 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021349sed 's/^/| /' conftest.$ac_ext >&5
21350
Brian Gaeke90583492003-11-10 03:06:28 +000021351ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021352fi
Reid Spencer17041682004-09-05 17:48:32 +000021353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021354 ac_ext=c
21355ac_cpp='$CPP $CPPFLAGS'
21356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21358ac_compiler_gnu=$ac_cv_c_compiler_gnu
21359
21360fi
21361echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21362echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021363 HAVE_STD_EXT_HASH_SET=0
21364 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21365 then
21366 HAVE_STD_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000021367 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021368
Brian Gaeke90583492003-11-10 03:06:28 +000021369 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21370echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21371if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21372 echo $ECHO_N "(cached) $ECHO_C" >&6
21373else
21374
21375
21376
21377 ac_ext=cc
21378ac_cpp='$CXXCPP $CPPFLAGS'
21379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21382
John Criswell7a73b802003-06-30 21:59:07 +000021383 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021384/* confdefs.h. */
21385_ACEOF
21386cat confdefs.h >>conftest.$ac_ext
21387cat >>conftest.$ac_ext <<_ACEOF
21388/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021389#include <ext/hash_set>
21390#ifdef HAVE_NAMESPACES
21391using namespace __gnu_cxx;
21392#endif
John Criswell7a73b802003-06-30 21:59:07 +000021393int
21394main ()
21395{
Brian Gaeke90583492003-11-10 03:06:28 +000021396hash_set<int> t;
21397 ;
21398 return 0;
21399}
21400_ACEOF
21401rm -f conftest.$ac_objext
21402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021403 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021404 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021405 grep -v '^ *+' conftest.er1 >conftest.err
21406 rm -f conftest.er1
21407 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021410 { ac_try='test -z "$ac_cxx_werror_flag"
21411 || test ! -s conftest.err'
21412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21413 (eval $ac_try) 2>&5
21414 ac_status=$?
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); }; } &&
21417 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21419 (eval $ac_try) 2>&5
21420 ac_status=$?
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); }; }; then
21423 ac_cv_cxx_have_gnu_ext_hash_set=yes
21424else
21425 echo "$as_me: failed program was:" >&5
21426sed 's/^/| /' conftest.$ac_ext >&5
21427
21428ac_cv_cxx_have_gnu_ext_hash_set=no
21429fi
Reid Spencer17041682004-09-05 17:48:32 +000021430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021431 ac_ext=c
21432ac_cpp='$CPP $CPPFLAGS'
21433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21435ac_compiler_gnu=$ac_cv_c_compiler_gnu
21436
21437fi
21438echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21439echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021440 HAVE_GNU_EXT_HASH_SET=0
21441 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21442 then
21443 HAVE_GNU_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000021444 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021445
Brian Gaeke90583492003-11-10 03:06:28 +000021446 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21447echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21448if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21449 echo $ECHO_N "(cached) $ECHO_C" >&6
21450else
21451
21452
21453
21454 ac_ext=cc
21455ac_cpp='$CXXCPP $CPPFLAGS'
21456ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21457ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21458ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21459
21460 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021461/* confdefs.h. */
21462_ACEOF
21463cat confdefs.h >>conftest.$ac_ext
21464cat >>conftest.$ac_ext <<_ACEOF
21465/* end confdefs.h. */
21466#include <hash_set>
21467int
21468main ()
21469{
John Criswell7a73b802003-06-30 21:59:07 +000021470hash_set<int> t; return 0;
21471 ;
21472 return 0;
21473}
21474_ACEOF
21475rm -f conftest.$ac_objext
21476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021477 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021478 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021479 grep -v '^ *+' conftest.er1 >conftest.err
21480 rm -f conftest.er1
21481 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021484 { ac_try='test -z "$ac_cxx_werror_flag"
21485 || test ! -s conftest.err'
21486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21487 (eval $ac_try) 2>&5
21488 ac_status=$?
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); }; } &&
21491 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21493 (eval $ac_try) 2>&5
21494 ac_status=$?
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021497 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021498else
21499 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021500sed 's/^/| /' conftest.$ac_ext >&5
21501
Brian Gaeke90583492003-11-10 03:06:28 +000021502ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021503fi
Reid Spencer17041682004-09-05 17:48:32 +000021504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021505 ac_ext=c
21506ac_cpp='$CPP $CPPFLAGS'
21507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21509ac_compiler_gnu=$ac_cv_c_compiler_gnu
21510
John Criswell7a73b802003-06-30 21:59:07 +000021511fi
Brian Gaeke90583492003-11-10 03:06:28 +000021512echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21513echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021514 HAVE_GLOBAL_HASH_SET=0
21515 if test "$ac_cv_cxx_have_global_hash_set" = yes
21516 then
21517 HAVE_GLOBAL_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000021518 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021519
John Criswell7a73b802003-06-30 21:59:07 +000021520echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21521echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21522if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21523 echo $ECHO_N "(cached) $ECHO_C" >&6
21524else
21525
21526
21527
21528 ac_ext=cc
21529ac_cpp='$CXXCPP $CPPFLAGS'
21530ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21531ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21532ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21533
21534 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021535/* confdefs.h. */
21536_ACEOF
21537cat confdefs.h >>conftest.$ac_ext
21538cat >>conftest.$ac_ext <<_ACEOF
21539/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021540#include <iterator>
21541#ifdef HAVE_NAMESPACES
21542using namespace std;
21543#endif
John Criswell7a73b802003-06-30 21:59:07 +000021544int
21545main ()
21546{
21547iterator<int,int,int> t; return 0;
21548 ;
21549 return 0;
21550}
21551_ACEOF
21552rm -f conftest.$ac_objext
21553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021554 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021555 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021556 grep -v '^ *+' conftest.er1 >conftest.err
21557 rm -f conftest.er1
21558 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021561 { ac_try='test -z "$ac_cxx_werror_flag"
21562 || test ! -s conftest.err'
21563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21564 (eval $ac_try) 2>&5
21565 ac_status=$?
21566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567 (exit $ac_status); }; } &&
21568 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21570 (eval $ac_try) 2>&5
21571 ac_status=$?
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); }; }; then
21574 ac_cv_cxx_have_std_iterator=yes
21575else
21576 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021577sed 's/^/| /' conftest.$ac_ext >&5
21578
John Criswell7a73b802003-06-30 21:59:07 +000021579ac_cv_cxx_have_std_iterator=no
21580fi
Reid Spencer17041682004-09-05 17:48:32 +000021581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021582 ac_ext=c
21583ac_cpp='$CPP $CPPFLAGS'
21584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21586ac_compiler_gnu=$ac_cv_c_compiler_gnu
21587
21588
21589fi
21590echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21591echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021592HAVE_STD_ITERATOR=0
21593if test "$ac_cv_cxx_have_std_iterator" = yes
21594then
21595 HAVE_STD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021596fi
21597
21598echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21599echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21600if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21601 echo $ECHO_N "(cached) $ECHO_C" >&6
21602else
21603
21604
21605
21606 ac_ext=cc
21607ac_cpp='$CXXCPP $CPPFLAGS'
21608ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21609ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21610ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21611
21612 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021613/* confdefs.h. */
21614_ACEOF
21615cat confdefs.h >>conftest.$ac_ext
21616cat >>conftest.$ac_ext <<_ACEOF
21617/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021618#include <iterator>
21619#ifdef HAVE_NAMESPACES
21620using namespace std;
21621#endif
John Criswell7a73b802003-06-30 21:59:07 +000021622int
21623main ()
21624{
John Criswellc78022e2003-07-29 19:11:58 +000021625bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021626 ;
21627 return 0;
21628}
21629_ACEOF
21630rm -f conftest.$ac_objext
21631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021632 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021633 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021634 grep -v '^ *+' conftest.er1 >conftest.err
21635 rm -f conftest.er1
21636 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021639 { ac_try='test -z "$ac_cxx_werror_flag"
21640 || test ! -s conftest.err'
21641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21642 (eval $ac_try) 2>&5
21643 ac_status=$?
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); }; } &&
21646 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21648 (eval $ac_try) 2>&5
21649 ac_status=$?
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); }; }; then
21652 ac_cv_cxx_have_bi_iterator=yes
21653else
21654 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021655sed 's/^/| /' conftest.$ac_ext >&5
21656
John Criswell7a73b802003-06-30 21:59:07 +000021657ac_cv_cxx_have_bi_iterator=no
21658fi
Reid Spencer17041682004-09-05 17:48:32 +000021659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021660 ac_ext=c
21661ac_cpp='$CPP $CPPFLAGS'
21662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21664ac_compiler_gnu=$ac_cv_c_compiler_gnu
21665
21666
21667fi
21668echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21669echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021670HAVE_BI_ITERATOR=0
21671if test "$ac_cv_cxx_have_bi_iterator" = yes
21672then
21673 HAVE_BI_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021674fi
21675
21676echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21677echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21678if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21679 echo $ECHO_N "(cached) $ECHO_C" >&6
21680else
21681
21682
21683
21684 ac_ext=cc
21685ac_cpp='$CXXCPP $CPPFLAGS'
21686ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21687ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21688ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21689
21690 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021691/* confdefs.h. */
21692_ACEOF
21693cat confdefs.h >>conftest.$ac_ext
21694cat >>conftest.$ac_ext <<_ACEOF
21695/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021696#include <iterator>
21697#ifdef HAVE_NAMESPACES
21698using namespace std;
21699#endif
John Criswell7a73b802003-06-30 21:59:07 +000021700int
21701main ()
21702{
John Criswellc78022e2003-07-29 19:11:58 +000021703forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021704 ;
21705 return 0;
21706}
21707_ACEOF
21708rm -f conftest.$ac_objext
21709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021710 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021711 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021712 grep -v '^ *+' conftest.er1 >conftest.err
21713 rm -f conftest.er1
21714 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021717 { ac_try='test -z "$ac_cxx_werror_flag"
21718 || test ! -s conftest.err'
21719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21720 (eval $ac_try) 2>&5
21721 ac_status=$?
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); }; } &&
21724 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21726 (eval $ac_try) 2>&5
21727 ac_status=$?
21728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); }; }; then
21730 ac_cv_cxx_have_fwd_iterator=yes
21731else
21732 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021733sed 's/^/| /' conftest.$ac_ext >&5
21734
John Criswell7a73b802003-06-30 21:59:07 +000021735ac_cv_cxx_have_fwd_iterator=no
21736fi
Reid Spencer17041682004-09-05 17:48:32 +000021737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021738 ac_ext=c
21739ac_cpp='$CPP $CPPFLAGS'
21740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21742ac_compiler_gnu=$ac_cv_c_compiler_gnu
21743
21744
21745fi
21746echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21747echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021748HAVE_FWD_ITERATOR=0
21749if test "$ac_cv_cxx_have_fwd_iterator" = yes
21750then
21751 HAVE_FWD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021752fi
21753
21754
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021755
21756echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21757echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21758if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21759 echo $ECHO_N "(cached) $ECHO_C" >&6
21760else
21761 ac_ext=cc
21762ac_cpp='$CXXCPP $CPPFLAGS'
21763ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21764ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21765ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21766
21767 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021768/* confdefs.h. */
21769_ACEOF
21770cat confdefs.h >>conftest.$ac_ext
21771cat >>conftest.$ac_ext <<_ACEOF
21772/* end confdefs.h. */
21773#include <math.h>
21774 int foo(float f) {return isnan(f);}
21775_ACEOF
21776rm -f conftest.$ac_objext
21777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021778 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021779 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021780 grep -v '^ *+' conftest.er1 >conftest.err
21781 rm -f conftest.er1
21782 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021785 { ac_try='test -z "$ac_cxx_werror_flag"
21786 || test ! -s conftest.err'
21787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21788 (eval $ac_try) 2>&5
21789 ac_status=$?
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); }; } &&
21792 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794 (eval $ac_try) 2>&5
21795 ac_status=$?
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); }; }; then
21798 ac_cv_func_isnan_in_math_h=yes
21799else
21800 echo "$as_me: failed program was:" >&5
21801sed 's/^/| /' conftest.$ac_ext >&5
21802
21803ac_cv_func_isnan_in_math_h=no
21804fi
Reid Spencer17041682004-09-05 17:48:32 +000021805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021806 ac_ext=c
21807ac_cpp='$CPP $CPPFLAGS'
21808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21810ac_compiler_gnu=$ac_cv_c_compiler_gnu
21811
21812fi
21813echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
21814echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
21815 if test "$ac_cv_func_isnan_in_math_h" = "yes"
21816 then
21817
21818cat >>confdefs.h <<\_ACEOF
21819#define HAVE_ISNAN_IN_MATH_H 1
21820_ACEOF
21821
21822 fi
21823echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
21824echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
21825if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
21826 echo $ECHO_N "(cached) $ECHO_C" >&6
21827else
21828 ac_ext=cc
21829ac_cpp='$CXXCPP $CPPFLAGS'
21830ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21831ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21832ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21833
21834 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021835/* confdefs.h. */
21836_ACEOF
21837cat confdefs.h >>conftest.$ac_ext
21838cat >>conftest.$ac_ext <<_ACEOF
21839/* end confdefs.h. */
21840#include <cmath>
21841 int foo(float f) {return isnan(f);}
21842_ACEOF
21843rm -f conftest.$ac_objext
21844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021845 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021846 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021847 grep -v '^ *+' conftest.er1 >conftest.err
21848 rm -f conftest.er1
21849 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021852 { ac_try='test -z "$ac_cxx_werror_flag"
21853 || test ! -s conftest.err'
21854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21855 (eval $ac_try) 2>&5
21856 ac_status=$?
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); }; } &&
21859 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21861 (eval $ac_try) 2>&5
21862 ac_status=$?
21863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864 (exit $ac_status); }; }; then
21865 ac_cv_func_isnan_in_cmath=yes
21866else
21867 echo "$as_me: failed program was:" >&5
21868sed 's/^/| /' conftest.$ac_ext >&5
21869
21870ac_cv_func_isnan_in_cmath=no
21871fi
Reid Spencer17041682004-09-05 17:48:32 +000021872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021873 ac_ext=c
21874ac_cpp='$CPP $CPPFLAGS'
21875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21877ac_compiler_gnu=$ac_cv_c_compiler_gnu
21878
21879fi
21880echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21881echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
21882 if test "$ac_cv_func_isnan_in_cmath" = "yes"
21883 then
21884
21885cat >>confdefs.h <<\_ACEOF
21886#define HAVE_ISNAN_IN_CMATH 1
21887_ACEOF
21888
21889 fi
21890echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21891echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
21892if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21893 echo $ECHO_N "(cached) $ECHO_C" >&6
21894else
21895 ac_ext=cc
21896ac_cpp='$CXXCPP $CPPFLAGS'
21897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21900
21901 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021902/* confdefs.h. */
21903_ACEOF
21904cat confdefs.h >>conftest.$ac_ext
21905cat >>conftest.$ac_ext <<_ACEOF
21906/* end confdefs.h. */
21907#include <cmath>
21908 using std::isnan; int foo(float f) {return isnan(f);}
21909_ACEOF
21910rm -f conftest.$ac_objext
21911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021912 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021913 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021914 grep -v '^ *+' conftest.er1 >conftest.err
21915 rm -f conftest.er1
21916 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021919 { ac_try='test -z "$ac_cxx_werror_flag"
21920 || test ! -s conftest.err'
21921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21922 (eval $ac_try) 2>&5
21923 ac_status=$?
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); }; } &&
21926 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21928 (eval $ac_try) 2>&5
21929 ac_status=$?
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); }; }; then
21932 ac_cv_func_std_isnan_in_cmath=yes
21933else
21934 echo "$as_me: failed program was:" >&5
21935sed 's/^/| /' conftest.$ac_ext >&5
21936
21937ac_cv_func_std_isnan_in_cmath=no
21938fi
Reid Spencer17041682004-09-05 17:48:32 +000021939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021940 ac_ext=c
21941ac_cpp='$CPP $CPPFLAGS'
21942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21944ac_compiler_gnu=$ac_cv_c_compiler_gnu
21945
21946fi
21947echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21948echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
21949 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
21950 then
21951
21952cat >>confdefs.h <<\_ACEOF
21953#define HAVE_STD_ISNAN_IN_CMATH 1
21954_ACEOF
21955
21956 fi
21957
21958
Brian Gaeke52a551d2004-07-21 03:14:12 +000021959echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21960echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
21961if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21962 echo $ECHO_N "(cached) $ECHO_C" >&6
21963else
21964 ac_ext=cc
21965ac_cpp='$CXXCPP $CPPFLAGS'
21966ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21967ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21968ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21969
21970 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021971/* confdefs.h. */
21972_ACEOF
21973cat confdefs.h >>conftest.$ac_ext
21974cat >>conftest.$ac_ext <<_ACEOF
21975/* end confdefs.h. */
21976#include <math.h>
21977 int foo(float f) {return isinf(f);}
21978_ACEOF
21979rm -f conftest.$ac_objext
21980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021981 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000021982 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021983 grep -v '^ *+' conftest.er1 >conftest.err
21984 rm -f conftest.er1
21985 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000021986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021988 { ac_try='test -z "$ac_cxx_werror_flag"
21989 || test ! -s conftest.err'
21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21991 (eval $ac_try) 2>&5
21992 ac_status=$?
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; } &&
21995 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000021996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21997 (eval $ac_try) 2>&5
21998 ac_status=$?
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); }; }; then
22001 ac_cv_func_isinf_in_math_h=yes
22002else
22003 echo "$as_me: failed program was:" >&5
22004sed 's/^/| /' conftest.$ac_ext >&5
22005
22006ac_cv_func_isinf_in_math_h=no
22007fi
Reid Spencer17041682004-09-05 17:48:32 +000022008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000022009 ac_ext=c
22010ac_cpp='$CPP $CPPFLAGS'
22011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22013ac_compiler_gnu=$ac_cv_c_compiler_gnu
22014
22015fi
22016echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
22017echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
22018 if test "$ac_cv_func_isinf_in_math_h" = "yes"
22019 then
22020
22021cat >>confdefs.h <<\_ACEOF
22022#define HAVE_ISINF_IN_MATH_H 1
22023_ACEOF
22024
22025 fi
22026echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
22027echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
22028if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
22029 echo $ECHO_N "(cached) $ECHO_C" >&6
22030else
22031 ac_ext=cc
22032ac_cpp='$CXXCPP $CPPFLAGS'
22033ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22034ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22035ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22036
22037 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022038/* confdefs.h. */
22039_ACEOF
22040cat confdefs.h >>conftest.$ac_ext
22041cat >>conftest.$ac_ext <<_ACEOF
22042/* end confdefs.h. */
22043#include <cmath>
22044 int foo(float f) {return isinf(f);}
22045_ACEOF
22046rm -f conftest.$ac_objext
22047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000022048 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022049 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000022050 grep -v '^ *+' conftest.er1 >conftest.err
22051 rm -f conftest.er1
22052 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000022055 { ac_try='test -z "$ac_cxx_werror_flag"
22056 || test ! -s conftest.err'
22057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22058 (eval $ac_try) 2>&5
22059 ac_status=$?
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); }; } &&
22062 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22064 (eval $ac_try) 2>&5
22065 ac_status=$?
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); }; }; then
22068 ac_cv_func_isinf_in_cmath=yes
22069else
22070 echo "$as_me: failed program was:" >&5
22071sed 's/^/| /' conftest.$ac_ext >&5
22072
22073ac_cv_func_isinf_in_cmath=no
22074fi
Reid Spencer17041682004-09-05 17:48:32 +000022075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000022076 ac_ext=c
22077ac_cpp='$CPP $CPPFLAGS'
22078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22080ac_compiler_gnu=$ac_cv_c_compiler_gnu
22081
22082fi
22083echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22084echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22085 if test "$ac_cv_func_isinf_in_cmath" = "yes"
22086 then
22087
22088cat >>confdefs.h <<\_ACEOF
22089#define HAVE_ISINF_IN_CMATH 1
22090_ACEOF
22091
22092 fi
22093echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22094echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22095if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22096 echo $ECHO_N "(cached) $ECHO_C" >&6
22097else
22098 ac_ext=cc
22099ac_cpp='$CXXCPP $CPPFLAGS'
22100ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22101ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22102ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22103
22104 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022105/* confdefs.h. */
22106_ACEOF
22107cat confdefs.h >>conftest.$ac_ext
22108cat >>conftest.$ac_ext <<_ACEOF
22109/* end confdefs.h. */
22110#include <cmath>
22111 using std::isinf; int foo(float f) {return isinf(f);}
22112_ACEOF
22113rm -f conftest.$ac_objext
22114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000022115 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022116 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000022117 grep -v '^ *+' conftest.er1 >conftest.err
22118 rm -f conftest.er1
22119 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000022122 { ac_try='test -z "$ac_cxx_werror_flag"
22123 || test ! -s conftest.err'
22124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22125 (eval $ac_try) 2>&5
22126 ac_status=$?
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); }; } &&
22129 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22131 (eval $ac_try) 2>&5
22132 ac_status=$?
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); }; }; then
22135 ac_cv_func_std_isinf_in_cmath=yes
22136else
22137 echo "$as_me: failed program was:" >&5
22138sed 's/^/| /' conftest.$ac_ext >&5
22139
22140ac_cv_func_std_isinf_in_cmath=no
22141fi
Reid Spencer17041682004-09-05 17:48:32 +000022142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000022143 ac_ext=c
22144ac_cpp='$CPP $CPPFLAGS'
22145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22147ac_compiler_gnu=$ac_cv_c_compiler_gnu
22148
22149fi
22150echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22151echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22152 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22153 then
22154
22155cat >>confdefs.h <<\_ACEOF
22156#define HAVE_STD_ISINF_IN_CMATH 1
22157_ACEOF
22158
22159 fi
Brian Gaeked59a6472004-07-21 03:33:58 +000022160echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22161echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22162if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22163 echo $ECHO_N "(cached) $ECHO_C" >&6
22164else
22165 ac_ext=cc
22166ac_cpp='$CXXCPP $CPPFLAGS'
22167ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22168ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22170
22171 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000022172/* confdefs.h. */
22173_ACEOF
22174cat confdefs.h >>conftest.$ac_ext
22175cat >>conftest.$ac_ext <<_ACEOF
22176/* end confdefs.h. */
22177#include <ieeefp.h>
22178 int foo(float f) {return finite(f);}
22179_ACEOF
22180rm -f conftest.$ac_objext
22181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000022182 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000022183 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000022184 grep -v '^ *+' conftest.er1 >conftest.err
22185 rm -f conftest.er1
22186 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000022187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000022189 { ac_try='test -z "$ac_cxx_werror_flag"
22190 || test ! -s conftest.err'
22191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22192 (eval $ac_try) 2>&5
22193 ac_status=$?
22194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195 (exit $ac_status); }; } &&
22196 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000022197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22198 (eval $ac_try) 2>&5
22199 ac_status=$?
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); }; }; then
22202 ac_cv_func_finite_in_ieeefp_h=yes
22203else
22204 echo "$as_me: failed program was:" >&5
22205sed 's/^/| /' conftest.$ac_ext >&5
22206
22207ac_cv_func_finite_in_ieeefp_h=no
22208fi
Reid Spencer17041682004-09-05 17:48:32 +000022209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeked59a6472004-07-21 03:33:58 +000022210 ac_ext=c
22211ac_cpp='$CPP $CPPFLAGS'
22212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22214ac_compiler_gnu=$ac_cv_c_compiler_gnu
22215
22216fi
22217echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22218echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22219 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22220 then
22221
22222cat >>confdefs.h <<\_ACEOF
22223#define HAVE_FINITE_IN_IEEEFP_H 1
22224_ACEOF
22225
22226 fi
Brian Gaeke52a551d2004-07-21 03:14:12 +000022227
22228
John Criswell7a73b802003-06-30 21:59:07 +000022229# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22230# for constant arguments. Useless!
22231echo "$as_me:$LINENO: checking for working alloca.h" >&5
22232echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22233if test "${ac_cv_working_alloca_h+set}" = set; then
22234 echo $ECHO_N "(cached) $ECHO_C" >&6
22235else
22236 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022237/* confdefs.h. */
22238_ACEOF
22239cat confdefs.h >>conftest.$ac_ext
22240cat >>conftest.$ac_ext <<_ACEOF
22241/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022242#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000022243int
22244main ()
22245{
22246char *p = (char *) alloca (2 * sizeof (int));
22247 ;
22248 return 0;
22249}
22250_ACEOF
22251rm -f conftest.$ac_objext conftest$ac_exeext
22252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000022253 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022254 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000022255 grep -v '^ *+' conftest.er1 >conftest.err
22256 rm -f conftest.er1
22257 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000022260 { ac_try='test -z "$ac_c_werror_flag"
22261 || test ! -s conftest.err'
22262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22263 (eval $ac_try) 2>&5
22264 ac_status=$?
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); }; } &&
22267 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22269 (eval $ac_try) 2>&5
22270 ac_status=$?
22271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272 (exit $ac_status); }; }; then
22273 ac_cv_working_alloca_h=yes
22274else
22275 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022276sed 's/^/| /' conftest.$ac_ext >&5
22277
John Criswell7a73b802003-06-30 21:59:07 +000022278ac_cv_working_alloca_h=no
22279fi
Reid Spencer17041682004-09-05 17:48:32 +000022280rm -f conftest.err conftest.$ac_objext \
22281 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022282fi
22283echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22284echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22285if test $ac_cv_working_alloca_h = yes; then
22286
22287cat >>confdefs.h <<\_ACEOF
22288#define HAVE_ALLOCA_H 1
22289_ACEOF
22290
22291fi
22292
22293echo "$as_me:$LINENO: checking for alloca" >&5
22294echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22295if test "${ac_cv_func_alloca_works+set}" = set; then
22296 echo $ECHO_N "(cached) $ECHO_C" >&6
22297else
22298 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022299/* confdefs.h. */
22300_ACEOF
22301cat confdefs.h >>conftest.$ac_ext
22302cat >>conftest.$ac_ext <<_ACEOF
22303/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022304#ifdef __GNUC__
22305# define alloca __builtin_alloca
22306#else
22307# ifdef _MSC_VER
22308# include <malloc.h>
22309# define alloca _alloca
22310# else
22311# if HAVE_ALLOCA_H
22312# include <alloca.h>
22313# else
22314# ifdef _AIX
22315 #pragma alloca
22316# else
22317# ifndef alloca /* predefined by HP cc +Olibcalls */
22318char *alloca ();
22319# endif
22320# endif
22321# endif
22322# endif
22323#endif
22324
John Criswell7a73b802003-06-30 21:59:07 +000022325int
22326main ()
22327{
22328char *p = (char *) alloca (1);
22329 ;
22330 return 0;
22331}
22332_ACEOF
22333rm -f conftest.$ac_objext conftest$ac_exeext
22334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000022335 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022336 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000022337 grep -v '^ *+' conftest.er1 >conftest.err
22338 rm -f conftest.er1
22339 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000022342 { ac_try='test -z "$ac_c_werror_flag"
22343 || test ! -s conftest.err'
22344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22345 (eval $ac_try) 2>&5
22346 ac_status=$?
22347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); }; } &&
22349 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22351 (eval $ac_try) 2>&5
22352 ac_status=$?
22353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354 (exit $ac_status); }; }; then
22355 ac_cv_func_alloca_works=yes
22356else
22357 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022358sed 's/^/| /' conftest.$ac_ext >&5
22359
John Criswell7a73b802003-06-30 21:59:07 +000022360ac_cv_func_alloca_works=no
22361fi
Reid Spencer17041682004-09-05 17:48:32 +000022362rm -f conftest.err conftest.$ac_objext \
22363 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022364fi
22365echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22366echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22367
22368if test $ac_cv_func_alloca_works = yes; then
22369
22370cat >>confdefs.h <<\_ACEOF
22371#define HAVE_ALLOCA 1
22372_ACEOF
22373
22374else
22375 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22376# that cause trouble. Some versions do not even contain alloca or
22377# contain a buggy version. If you still want to use their alloca,
22378# use ar to extract alloca.o from them instead of compiling alloca.c.
22379
22380ALLOCA=alloca.$ac_objext
22381
22382cat >>confdefs.h <<\_ACEOF
22383#define C_ALLOCA 1
22384_ACEOF
22385
22386
22387echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22388echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22389if test "${ac_cv_os_cray+set}" = set; then
22390 echo $ECHO_N "(cached) $ECHO_C" >&6
22391else
22392 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022393/* confdefs.h. */
22394_ACEOF
22395cat confdefs.h >>conftest.$ac_ext
22396cat >>conftest.$ac_ext <<_ACEOF
22397/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022398#if defined(CRAY) && ! defined(CRAY2)
22399webecray
22400#else
22401wenotbecray
22402#endif
22403
22404_ACEOF
22405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000022406 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022407 ac_cv_os_cray=yes
22408else
22409 ac_cv_os_cray=no
22410fi
22411rm -f conftest*
22412
22413fi
22414echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22415echo "${ECHO_T}$ac_cv_os_cray" >&6
22416if test $ac_cv_os_cray = yes; then
22417 for ac_func in _getb67 GETB67 getb67; do
22418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22419echo "$as_me:$LINENO: checking for $ac_func" >&5
22420echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22421if eval "test \"\${$as_ac_var+set}\" = set"; then
22422 echo $ECHO_N "(cached) $ECHO_C" >&6
22423else
22424 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022425/* confdefs.h. */
22426_ACEOF
22427cat confdefs.h >>conftest.$ac_ext
22428cat >>conftest.$ac_ext <<_ACEOF
22429/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +000022430/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22432#define $ac_func innocuous_$ac_func
22433
John Criswell7a73b802003-06-30 21:59:07 +000022434/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022435 which can conflict with char $ac_func (); below.
22436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22437 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +000022438
John Criswell0c38eaf2003-09-10 15:17:25 +000022439#ifdef __STDC__
22440# include <limits.h>
22441#else
22442# include <assert.h>
22443#endif
Reid Spencer17041682004-09-05 17:48:32 +000022444
22445#undef $ac_func
22446
John Criswell7a73b802003-06-30 21:59:07 +000022447/* Override any gcc2 internal prototype to avoid an error. */
22448#ifdef __cplusplus
22449extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022450{
John Criswell7a73b802003-06-30 21:59:07 +000022451#endif
22452/* We use char because int might match the return type of a gcc2
22453 builtin and then its argument prototype would still apply. */
22454char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022455/* The GNU C library defines this for functions which it implements
22456 to always fail with ENOSYS. Some functions are actually named
22457 something starting with __ and the normal name is an alias. */
22458#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22459choke me
22460#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022461char (*f) () = $ac_func;
22462#endif
22463#ifdef __cplusplus
22464}
John Criswell7a73b802003-06-30 21:59:07 +000022465#endif
22466
John Criswell0c38eaf2003-09-10 15:17:25 +000022467int
22468main ()
22469{
22470return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022471 ;
22472 return 0;
22473}
22474_ACEOF
22475rm -f conftest.$ac_objext conftest$ac_exeext
22476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000022477 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022478 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000022479 grep -v '^ *+' conftest.er1 >conftest.err
22480 rm -f conftest.er1
22481 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000022484 { ac_try='test -z "$ac_c_werror_flag"
22485 || test ! -s conftest.err'
22486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22487 (eval $ac_try) 2>&5
22488 ac_status=$?
22489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490 (exit $ac_status); }; } &&
22491 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493 (eval $ac_try) 2>&5
22494 ac_status=$?
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); }; }; then
22497 eval "$as_ac_var=yes"
22498else
22499 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022500sed 's/^/| /' conftest.$ac_ext >&5
22501
John Criswell7a73b802003-06-30 21:59:07 +000022502eval "$as_ac_var=no"
22503fi
Reid Spencer17041682004-09-05 17:48:32 +000022504rm -f conftest.err conftest.$ac_objext \
22505 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022506fi
22507echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22508echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22509if test `eval echo '${'$as_ac_var'}'` = yes; then
22510
22511cat >>confdefs.h <<_ACEOF
22512#define CRAY_STACKSEG_END $ac_func
22513_ACEOF
22514
22515 break
22516fi
22517
22518 done
22519fi
22520
22521echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22522echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22523if test "${ac_cv_c_stack_direction+set}" = set; then
22524 echo $ECHO_N "(cached) $ECHO_C" >&6
22525else
22526 if test "$cross_compiling" = yes; then
22527 ac_cv_c_stack_direction=0
22528else
22529 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022530/* confdefs.h. */
22531_ACEOF
22532cat confdefs.h >>conftest.$ac_ext
22533cat >>conftest.$ac_ext <<_ACEOF
22534/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022535int
22536find_stack_direction ()
22537{
22538 static char *addr = 0;
22539 auto char dummy;
22540 if (addr == 0)
22541 {
22542 addr = &dummy;
22543 return find_stack_direction ();
22544 }
22545 else
22546 return (&dummy > addr) ? 1 : -1;
22547}
22548
22549int
22550main ()
22551{
22552 exit (find_stack_direction () < 0);
22553}
22554_ACEOF
22555rm -f conftest$ac_exeext
22556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22557 (eval $ac_link) 2>&5
22558 ac_status=$?
22559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22562 (eval $ac_try) 2>&5
22563 ac_status=$?
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); }; }; then
22566 ac_cv_c_stack_direction=1
22567else
22568 echo "$as_me: program exited with status $ac_status" >&5
22569echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022570sed 's/^/| /' conftest.$ac_ext >&5
22571
John Criswell7a73b802003-06-30 21:59:07 +000022572( exit $ac_status )
22573ac_cv_c_stack_direction=-1
22574fi
Reid Spencer17041682004-09-05 17:48:32 +000022575rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022576fi
22577fi
22578echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22579echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22580
22581cat >>confdefs.h <<_ACEOF
22582#define STACK_DIRECTION $ac_cv_c_stack_direction
22583_ACEOF
22584
22585
22586fi
22587
John Criswell7a73b802003-06-30 21:59:07 +000022588
22589
22590for ac_header in stdlib.h unistd.h
22591do
22592as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22593if eval "test \"\${$as_ac_Header+set}\" = set"; then
22594 echo "$as_me:$LINENO: checking for $ac_header" >&5
22595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22596if eval "test \"\${$as_ac_Header+set}\" = set"; then
22597 echo $ECHO_N "(cached) $ECHO_C" >&6
22598fi
22599echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22600echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22601else
22602 # Is the header compilable?
22603echo "$as_me:$LINENO: checking $ac_header usability" >&5
22604echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22605cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022606/* confdefs.h. */
22607_ACEOF
22608cat confdefs.h >>conftest.$ac_ext
22609cat >>conftest.$ac_ext <<_ACEOF
22610/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022611$ac_includes_default
22612#include <$ac_header>
22613_ACEOF
22614rm -f conftest.$ac_objext
22615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000022616 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022617 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000022618 grep -v '^ *+' conftest.er1 >conftest.err
22619 rm -f conftest.er1
22620 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000022623 { ac_try='test -z "$ac_c_werror_flag"
22624 || test ! -s conftest.err'
22625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22626 (eval $ac_try) 2>&5
22627 ac_status=$?
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); }; } &&
22630 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22632 (eval $ac_try) 2>&5
22633 ac_status=$?
22634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635 (exit $ac_status); }; }; then
22636 ac_header_compiler=yes
22637else
22638 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022639sed 's/^/| /' conftest.$ac_ext >&5
22640
John Criswell7a73b802003-06-30 21:59:07 +000022641ac_header_compiler=no
22642fi
Reid Spencer17041682004-09-05 17:48:32 +000022643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022644echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22645echo "${ECHO_T}$ac_header_compiler" >&6
22646
22647# Is the header present?
22648echo "$as_me:$LINENO: checking $ac_header presence" >&5
22649echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22650cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022651/* confdefs.h. */
22652_ACEOF
22653cat confdefs.h >>conftest.$ac_ext
22654cat >>conftest.$ac_ext <<_ACEOF
22655/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022656#include <$ac_header>
22657_ACEOF
22658if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22660 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000022661 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000022662 rm -f conftest.er1
22663 cat conftest.err >&5
22664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); } >/dev/null; then
22666 if test -s conftest.err; then
22667 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +000022668 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000022669 else
22670 ac_cpp_err=
22671 fi
22672else
22673 ac_cpp_err=yes
22674fi
22675if test -z "$ac_cpp_err"; then
22676 ac_header_preproc=yes
22677else
22678 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022679sed 's/^/| /' conftest.$ac_ext >&5
22680
John Criswell7a73b802003-06-30 21:59:07 +000022681 ac_header_preproc=no
22682fi
22683rm -f conftest.err conftest.$ac_ext
22684echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22685echo "${ECHO_T}$ac_header_preproc" >&6
22686
22687# So? What about this header?
Reid Spencer17041682004-09-05 17:48:32 +000022688case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22689 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000022690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22691echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000022692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22693echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22694 ac_header_preproc=yes
John Criswell679ff312004-09-02 18:44:44 +000022695 ;;
Reid Spencer17041682004-09-05 17:48:32 +000022696 no:yes:* )
John Criswell679ff312004-09-02 18:44:44 +000022697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22698echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000022699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22700echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22702echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22704echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000022705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22706echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000022707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22708echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000022709 (
22710 cat <<\_ASBOX
Reid Spencer17041682004-09-05 17:48:32 +000022711## ----------------------------------- ##
22712## Report this to llvmbugs@cs.uiuc.edu ##
22713## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000022714_ASBOX
22715 ) |
22716 sed "s/^/$as_me: WARNING: /" >&2
22717 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022718esac
22719echo "$as_me:$LINENO: checking for $ac_header" >&5
22720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22721if eval "test \"\${$as_ac_Header+set}\" = set"; then
22722 echo $ECHO_N "(cached) $ECHO_C" >&6
22723else
Reid Spencer17041682004-09-05 17:48:32 +000022724 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000022725fi
22726echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22727echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22728
22729fi
22730if test `eval echo '${'$as_ac_Header'}'` = yes; then
22731 cat >>confdefs.h <<_ACEOF
22732#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22733_ACEOF
22734
22735fi
22736
22737done
22738
22739
22740for ac_func in getpagesize
22741do
22742as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22743echo "$as_me:$LINENO: checking for $ac_func" >&5
22744echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22745if eval "test \"\${$as_ac_var+set}\" = set"; then
22746 echo $ECHO_N "(cached) $ECHO_C" >&6
22747else
22748 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022749/* confdefs.h. */
22750_ACEOF
22751cat confdefs.h >>conftest.$ac_ext
22752cat >>conftest.$ac_ext <<_ACEOF
22753/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +000022754/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22756#define $ac_func innocuous_$ac_func
22757
John Criswell7a73b802003-06-30 21:59:07 +000022758/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022759 which can conflict with char $ac_func (); below.
22760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22761 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +000022762
John Criswell0c38eaf2003-09-10 15:17:25 +000022763#ifdef __STDC__
22764# include <limits.h>
22765#else
22766# include <assert.h>
22767#endif
Reid Spencer17041682004-09-05 17:48:32 +000022768
22769#undef $ac_func
22770
John Criswell7a73b802003-06-30 21:59:07 +000022771/* Override any gcc2 internal prototype to avoid an error. */
22772#ifdef __cplusplus
22773extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022774{
John Criswell7a73b802003-06-30 21:59:07 +000022775#endif
22776/* We use char because int might match the return type of a gcc2
22777 builtin and then its argument prototype would still apply. */
22778char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022779/* The GNU C library defines this for functions which it implements
22780 to always fail with ENOSYS. Some functions are actually named
22781 something starting with __ and the normal name is an alias. */
22782#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22783choke me
22784#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022785char (*f) () = $ac_func;
22786#endif
22787#ifdef __cplusplus
22788}
John Criswell7a73b802003-06-30 21:59:07 +000022789#endif
22790
John Criswell0c38eaf2003-09-10 15:17:25 +000022791int
22792main ()
22793{
22794return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022795 ;
22796 return 0;
22797}
22798_ACEOF
22799rm -f conftest.$ac_objext conftest$ac_exeext
22800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000022801 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022802 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000022803 grep -v '^ *+' conftest.er1 >conftest.err
22804 rm -f conftest.er1
22805 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000022808 { ac_try='test -z "$ac_c_werror_flag"
22809 || test ! -s conftest.err'
22810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22811 (eval $ac_try) 2>&5
22812 ac_status=$?
22813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814 (exit $ac_status); }; } &&
22815 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22817 (eval $ac_try) 2>&5
22818 ac_status=$?
22819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820 (exit $ac_status); }; }; then
22821 eval "$as_ac_var=yes"
22822else
22823 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022824sed 's/^/| /' conftest.$ac_ext >&5
22825
John Criswell7a73b802003-06-30 21:59:07 +000022826eval "$as_ac_var=no"
22827fi
Reid Spencer17041682004-09-05 17:48:32 +000022828rm -f conftest.err conftest.$ac_objext \
22829 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022830fi
22831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22832echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22833if test `eval echo '${'$as_ac_var'}'` = yes; then
22834 cat >>confdefs.h <<_ACEOF
22835#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22836_ACEOF
22837
22838fi
22839done
22840
22841echo "$as_me:$LINENO: checking for working mmap" >&5
22842echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22843if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22844 echo $ECHO_N "(cached) $ECHO_C" >&6
22845else
22846 if test "$cross_compiling" = yes; then
22847 ac_cv_func_mmap_fixed_mapped=no
22848else
22849 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022850/* confdefs.h. */
22851_ACEOF
22852cat confdefs.h >>conftest.$ac_ext
22853cat >>conftest.$ac_ext <<_ACEOF
22854/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022855$ac_includes_default
22856/* malloc might have been renamed as rpl_malloc. */
22857#undef malloc
22858
22859/* Thanks to Mike Haertel and Jim Avera for this test.
22860 Here is a matrix of mmap possibilities:
22861 mmap private not fixed
22862 mmap private fixed at somewhere currently unmapped
22863 mmap private fixed at somewhere already mapped
22864 mmap shared not fixed
22865 mmap shared fixed at somewhere currently unmapped
22866 mmap shared fixed at somewhere already mapped
22867 For private mappings, we should verify that changes cannot be read()
22868 back from the file, nor mmap's back from the file at a different
22869 address. (There have been systems where private was not correctly
22870 implemented like the infamous i386 svr4.0, and systems where the
22871 VM page cache was not coherent with the file system buffer cache
22872 like early versions of FreeBSD and possibly contemporary NetBSD.)
22873 For shared mappings, we should conversely verify that changes get
22874 propagated back to all the places they're supposed to be.
22875
22876 Grep wants private fixed already mapped.
22877 The main things grep needs to know about mmap are:
22878 * does it exist and is it safe to write into the mmap'd area
22879 * how to use it (BSD variants) */
22880
22881#include <fcntl.h>
22882#include <sys/mman.h>
22883
22884#if !STDC_HEADERS && !HAVE_STDLIB_H
22885char *malloc ();
22886#endif
22887
22888/* This mess was copied from the GNU getpagesize.h. */
22889#if !HAVE_GETPAGESIZE
22890/* Assume that all systems that can run configure have sys/param.h. */
22891# if !HAVE_SYS_PARAM_H
22892# define HAVE_SYS_PARAM_H 1
22893# endif
22894
22895# ifdef _SC_PAGESIZE
22896# define getpagesize() sysconf(_SC_PAGESIZE)
22897# else /* no _SC_PAGESIZE */
22898# if HAVE_SYS_PARAM_H
22899# include <sys/param.h>
22900# ifdef EXEC_PAGESIZE
22901# define getpagesize() EXEC_PAGESIZE
22902# else /* no EXEC_PAGESIZE */
22903# ifdef NBPG
22904# define getpagesize() NBPG * CLSIZE
22905# ifndef CLSIZE
22906# define CLSIZE 1
22907# endif /* no CLSIZE */
22908# else /* no NBPG */
22909# ifdef NBPC
22910# define getpagesize() NBPC
22911# else /* no NBPC */
22912# ifdef PAGESIZE
22913# define getpagesize() PAGESIZE
22914# endif /* PAGESIZE */
22915# endif /* no NBPC */
22916# endif /* no NBPG */
22917# endif /* no EXEC_PAGESIZE */
22918# else /* no HAVE_SYS_PARAM_H */
22919# define getpagesize() 8192 /* punt totally */
22920# endif /* no HAVE_SYS_PARAM_H */
22921# endif /* no _SC_PAGESIZE */
22922
22923#endif /* no HAVE_GETPAGESIZE */
22924
22925int
22926main ()
22927{
22928 char *data, *data2, *data3;
22929 int i, pagesize;
22930 int fd;
22931
22932 pagesize = getpagesize ();
22933
22934 /* First, make a file with some known garbage in it. */
22935 data = (char *) malloc (pagesize);
22936 if (!data)
22937 exit (1);
22938 for (i = 0; i < pagesize; ++i)
22939 *(data + i) = rand ();
22940 umask (0);
22941 fd = creat ("conftest.mmap", 0600);
22942 if (fd < 0)
22943 exit (1);
22944 if (write (fd, data, pagesize) != pagesize)
22945 exit (1);
22946 close (fd);
22947
22948 /* Next, try to mmap the file at a fixed address which already has
22949 something else allocated at it. If we can, also make sure that
22950 we see the same garbage. */
22951 fd = open ("conftest.mmap", O_RDWR);
22952 if (fd < 0)
22953 exit (1);
22954 data2 = (char *) malloc (2 * pagesize);
22955 if (!data2)
22956 exit (1);
Reid Spencer17041682004-09-05 17:48:32 +000022957 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000022958 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer17041682004-09-05 17:48:32 +000022959 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000022960 exit (1);
22961 for (i = 0; i < pagesize; ++i)
22962 if (*(data + i) != *(data2 + i))
22963 exit (1);
22964
22965 /* Finally, make sure that changes to the mapped area do not
22966 percolate back to the file as seen by read(). (This is a bug on
22967 some variants of i386 svr4.0.) */
22968 for (i = 0; i < pagesize; ++i)
22969 *(data2 + i) = *(data2 + i) + 1;
22970 data3 = (char *) malloc (pagesize);
22971 if (!data3)
22972 exit (1);
22973 if (read (fd, data3, pagesize) != pagesize)
22974 exit (1);
22975 for (i = 0; i < pagesize; ++i)
22976 if (*(data + i) != *(data3 + i))
22977 exit (1);
22978 close (fd);
22979 exit (0);
22980}
22981_ACEOF
22982rm -f conftest$ac_exeext
22983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22984 (eval $ac_link) 2>&5
22985 ac_status=$?
22986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22989 (eval $ac_try) 2>&5
22990 ac_status=$?
22991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992 (exit $ac_status); }; }; then
22993 ac_cv_func_mmap_fixed_mapped=yes
22994else
22995 echo "$as_me: program exited with status $ac_status" >&5
22996echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022997sed 's/^/| /' conftest.$ac_ext >&5
22998
John Criswell7a73b802003-06-30 21:59:07 +000022999( exit $ac_status )
23000ac_cv_func_mmap_fixed_mapped=no
23001fi
Reid Spencer17041682004-09-05 17:48:32 +000023002rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023003fi
23004fi
23005echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23006echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
23007if test $ac_cv_func_mmap_fixed_mapped = yes; then
23008
23009cat >>confdefs.h <<\_ACEOF
23010#define HAVE_MMAP 1
23011_ACEOF
23012
23013fi
23014rm -f conftest.mmap
23015
Brian Gaeke26be9c52004-01-13 06:43:16 +000023016if test "$ac_cv_func_mmap_fixed_mapped" = "no"
23017then
John Criswellf3ecf3a2004-05-27 00:57:50 +000023018 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
23019echo "$as_me: WARNING: mmap() required but not found" >&2;}
Brian Gaeke26be9c52004-01-13 06:43:16 +000023020fi
John Criswell7a73b802003-06-30 21:59:07 +000023021echo "$as_me:$LINENO: checking for mmap of files" >&5
23022echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
23023if test "${ac_cv_func_mmap_file+set}" = set; then
23024 echo $ECHO_N "(cached) $ECHO_C" >&6
23025else
23026
23027
23028 ac_ext=c
23029ac_cpp='$CPP $CPPFLAGS'
23030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23032ac_compiler_gnu=$ac_cv_c_compiler_gnu
23033
23034 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023035 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23036See \`config.log' for more details." >&5
23037echo "$as_me: error: cannot run test program while cross compiling
23038See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000023039 { (exit 1); exit 1; }; }
23040else
23041 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023042/* confdefs.h. */
23043_ACEOF
23044cat confdefs.h >>conftest.$ac_ext
23045cat >>conftest.$ac_ext <<_ACEOF
23046/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023047
John Criswell7a73b802003-06-30 21:59:07 +000023048#ifdef HAVE_SYS_TYPES_H
23049#include <sys/types.h>
23050#endif
23051
John Criswell5ab73462003-10-09 15:44:28 +000023052#ifdef HAVE_SYS_MMAN_H
23053#include <sys/mman.h>
23054#endif
23055
John Criswell7a73b802003-06-30 21:59:07 +000023056#ifdef HAVE_FCNTL_H
23057#include <fcntl.h>
23058#endif
23059
23060 int fd;
23061 int main () {
John Criswell5ab73462003-10-09 15:44:28 +000023062 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
John Criswell7a73b802003-06-30 21:59:07 +000023063_ACEOF
23064rm -f conftest$ac_exeext
23065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23066 (eval $ac_link) 2>&5
23067 ac_status=$?
23068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23071 (eval $ac_try) 2>&5
23072 ac_status=$?
23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); }; }; then
23075 ac_cv_func_mmap_file=yes
23076else
23077 echo "$as_me: program exited with status $ac_status" >&5
23078echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023079sed 's/^/| /' conftest.$ac_ext >&5
23080
John Criswell7a73b802003-06-30 21:59:07 +000023081( exit $ac_status )
23082ac_cv_func_mmap_file=no
23083fi
Reid Spencer17041682004-09-05 17:48:32 +000023084rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023085fi
23086 ac_ext=c
23087ac_cpp='$CPP $CPPFLAGS'
23088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23090ac_compiler_gnu=$ac_cv_c_compiler_gnu
23091
23092
23093fi
23094echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23095echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23096if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000023097
23098cat >>confdefs.h <<\_ACEOF
23099#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000023100_ACEOF
23101
23102 MMAP_FILE=yes
23103
23104fi
23105
Brian Gaeke26be9c52004-01-13 06:43:16 +000023106if test "$ac_cv_func_mmap_file" = "no"
John Criswell7a73b802003-06-30 21:59:07 +000023107then
John Criswellf3ecf3a2004-05-27 00:57:50 +000023108 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23109echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000023110fi
23111echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23112echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23113if test "${ac_cv_header_mmap_anon+set}" = set; then
23114 echo $ECHO_N "(cached) $ECHO_C" >&6
23115else
23116
23117
23118 ac_ext=c
23119ac_cpp='$CPP $CPPFLAGS'
23120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23122ac_compiler_gnu=$ac_cv_c_compiler_gnu
23123
23124 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023125/* confdefs.h. */
23126_ACEOF
23127cat confdefs.h >>conftest.$ac_ext
23128cat >>conftest.$ac_ext <<_ACEOF
23129/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023130#include <sys/mman.h>
23131 #include <unistd.h>
23132 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000023133int
23134main ()
23135{
23136mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23137 ;
23138 return 0;
23139}
23140_ACEOF
23141rm -f conftest.$ac_objext
23142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000023143 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023144 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000023145 grep -v '^ *+' conftest.er1 >conftest.err
23146 rm -f conftest.er1
23147 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000023150 { ac_try='test -z "$ac_c_werror_flag"
23151 || test ! -s conftest.err'
23152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23153 (eval $ac_try) 2>&5
23154 ac_status=$?
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); }; } &&
23157 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23159 (eval $ac_try) 2>&5
23160 ac_status=$?
23161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162 (exit $ac_status); }; }; then
23163 ac_cv_header_mmap_anon=yes
23164else
23165 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023166sed 's/^/| /' conftest.$ac_ext >&5
23167
John Criswell7a73b802003-06-30 21:59:07 +000023168ac_cv_header_mmap_anon=no
23169fi
Reid Spencer17041682004-09-05 17:48:32 +000023170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023171 ac_ext=c
23172ac_cpp='$CPP $CPPFLAGS'
23173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23175ac_compiler_gnu=$ac_cv_c_compiler_gnu
23176
23177
23178fi
23179echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23180echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23181if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000023182
23183cat >>confdefs.h <<\_ACEOF
23184#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000023185_ACEOF
23186
23187fi
23188
23189echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23190echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23191if test "${ac_cv_type_signal+set}" = set; then
23192 echo $ECHO_N "(cached) $ECHO_C" >&6
23193else
23194 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023195/* confdefs.h. */
23196_ACEOF
23197cat confdefs.h >>conftest.$ac_ext
23198cat >>conftest.$ac_ext <<_ACEOF
23199/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023200#include <sys/types.h>
23201#include <signal.h>
23202#ifdef signal
23203# undef signal
23204#endif
23205#ifdef __cplusplus
23206extern "C" void (*signal (int, void (*)(int)))(int);
23207#else
23208void (*signal ()) ();
23209#endif
23210
John Criswell7a73b802003-06-30 21:59:07 +000023211int
23212main ()
23213{
23214int i;
23215 ;
23216 return 0;
23217}
23218_ACEOF
23219rm -f conftest.$ac_objext
23220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000023221 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023222 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000023223 grep -v '^ *+' conftest.er1 >conftest.err
23224 rm -f conftest.er1
23225 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000023228 { ac_try='test -z "$ac_c_werror_flag"
23229 || test ! -s conftest.err'
23230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23231 (eval $ac_try) 2>&5
23232 ac_status=$?
23233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); }; } &&
23235 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23237 (eval $ac_try) 2>&5
23238 ac_status=$?
23239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240 (exit $ac_status); }; }; then
23241 ac_cv_type_signal=void
23242else
23243 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023244sed 's/^/| /' conftest.$ac_ext >&5
23245
John Criswell7a73b802003-06-30 21:59:07 +000023246ac_cv_type_signal=int
23247fi
Reid Spencer17041682004-09-05 17:48:32 +000023248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023249fi
23250echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23251echo "${ECHO_T}$ac_cv_type_signal" >&6
23252
23253cat >>confdefs.h <<_ACEOF
23254#define RETSIGTYPE $ac_cv_type_signal
23255_ACEOF
23256
23257
23258
23259
23260
23261
23262
Brian Gaekef5261472004-02-20 06:40:57 +000023263
Brian Gaeke9a08b5e2004-04-02 21:26:02 +000023264
John Criswelld6621562004-06-07 14:26:24 +000023265
23266
John Criswell7ed43ad2004-07-19 16:12:29 +000023267for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
John Criswell7a73b802003-06-30 21:59:07 +000023268do
23269as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23270echo "$as_me:$LINENO: checking for $ac_func" >&5
23271echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23272if eval "test \"\${$as_ac_var+set}\" = set"; then
23273 echo $ECHO_N "(cached) $ECHO_C" >&6
23274else
23275 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023276/* confdefs.h. */
23277_ACEOF
23278cat confdefs.h >>conftest.$ac_ext
23279cat >>conftest.$ac_ext <<_ACEOF
23280/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +000023281/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23283#define $ac_func innocuous_$ac_func
23284
John Criswell7a73b802003-06-30 21:59:07 +000023285/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023286 which can conflict with char $ac_func (); below.
23287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23288 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +000023289
John Criswell0c38eaf2003-09-10 15:17:25 +000023290#ifdef __STDC__
23291# include <limits.h>
23292#else
23293# include <assert.h>
23294#endif
Reid Spencer17041682004-09-05 17:48:32 +000023295
23296#undef $ac_func
23297
John Criswell7a73b802003-06-30 21:59:07 +000023298/* Override any gcc2 internal prototype to avoid an error. */
23299#ifdef __cplusplus
23300extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023301{
John Criswell7a73b802003-06-30 21:59:07 +000023302#endif
23303/* We use char because int might match the return type of a gcc2
23304 builtin and then its argument prototype would still apply. */
23305char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000023306/* The GNU C library defines this for functions which it implements
23307 to always fail with ENOSYS. Some functions are actually named
23308 something starting with __ and the normal name is an alias. */
23309#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23310choke me
23311#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023312char (*f) () = $ac_func;
23313#endif
23314#ifdef __cplusplus
23315}
John Criswell7a73b802003-06-30 21:59:07 +000023316#endif
23317
John Criswell0c38eaf2003-09-10 15:17:25 +000023318int
23319main ()
23320{
23321return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000023322 ;
23323 return 0;
23324}
23325_ACEOF
23326rm -f conftest.$ac_objext conftest$ac_exeext
23327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000023328 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023329 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000023330 grep -v '^ *+' conftest.er1 >conftest.err
23331 rm -f conftest.er1
23332 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000023335 { ac_try='test -z "$ac_c_werror_flag"
23336 || test ! -s conftest.err'
23337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23338 (eval $ac_try) 2>&5
23339 ac_status=$?
23340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23341 (exit $ac_status); }; } &&
23342 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23344 (eval $ac_try) 2>&5
23345 ac_status=$?
23346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347 (exit $ac_status); }; }; then
23348 eval "$as_ac_var=yes"
23349else
23350 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023351sed 's/^/| /' conftest.$ac_ext >&5
23352
John Criswell7a73b802003-06-30 21:59:07 +000023353eval "$as_ac_var=no"
23354fi
Reid Spencer17041682004-09-05 17:48:32 +000023355rm -f conftest.err conftest.$ac_objext \
23356 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023357fi
23358echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23359echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23360if test `eval echo '${'$as_ac_var'}'` = yes; then
23361 cat >>confdefs.h <<_ACEOF
23362#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23363_ACEOF
23364
23365fi
23366done
23367
John Criswell7a73b802003-06-30 21:59:07 +000023368echo "$as_me:$LINENO: checking for mprotect" >&5
23369echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23370if test "${ac_cv_func_mprotect+set}" = set; then
23371 echo $ECHO_N "(cached) $ECHO_C" >&6
23372else
23373 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023374/* confdefs.h. */
23375_ACEOF
23376cat confdefs.h >>conftest.$ac_ext
23377cat >>conftest.$ac_ext <<_ACEOF
23378/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +000023379/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23381#define mprotect innocuous_mprotect
23382
John Criswell7a73b802003-06-30 21:59:07 +000023383/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023384 which can conflict with char mprotect (); below.
23385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23386 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +000023387
John Criswell0c38eaf2003-09-10 15:17:25 +000023388#ifdef __STDC__
23389# include <limits.h>
23390#else
23391# include <assert.h>
23392#endif
Reid Spencer17041682004-09-05 17:48:32 +000023393
23394#undef mprotect
23395
John Criswell7a73b802003-06-30 21:59:07 +000023396/* Override any gcc2 internal prototype to avoid an error. */
23397#ifdef __cplusplus
23398extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023399{
John Criswell7a73b802003-06-30 21:59:07 +000023400#endif
23401/* We use char because int might match the return type of a gcc2
23402 builtin and then its argument prototype would still apply. */
23403char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000023404/* The GNU C library defines this for functions which it implements
23405 to always fail with ENOSYS. Some functions are actually named
23406 something starting with __ and the normal name is an alias. */
23407#if defined (__stub_mprotect) || defined (__stub___mprotect)
23408choke me
23409#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023410char (*f) () = mprotect;
23411#endif
23412#ifdef __cplusplus
23413}
John Criswell7a73b802003-06-30 21:59:07 +000023414#endif
23415
John Criswell0c38eaf2003-09-10 15:17:25 +000023416int
23417main ()
23418{
23419return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000023420 ;
23421 return 0;
23422}
23423_ACEOF
23424rm -f conftest.$ac_objext conftest$ac_exeext
23425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000023426 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023427 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000023428 grep -v '^ *+' conftest.er1 >conftest.err
23429 rm -f conftest.er1
23430 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000023433 { ac_try='test -z "$ac_c_werror_flag"
23434 || test ! -s conftest.err'
23435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23436 (eval $ac_try) 2>&5
23437 ac_status=$?
23438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439 (exit $ac_status); }; } &&
23440 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23442 (eval $ac_try) 2>&5
23443 ac_status=$?
23444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23445 (exit $ac_status); }; }; then
23446 ac_cv_func_mprotect=yes
23447else
23448 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023449sed 's/^/| /' conftest.$ac_ext >&5
23450
John Criswell7a73b802003-06-30 21:59:07 +000023451ac_cv_func_mprotect=no
23452fi
Reid Spencer17041682004-09-05 17:48:32 +000023453rm -f conftest.err conftest.$ac_objext \
23454 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023455fi
23456echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23457echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23458if test $ac_cv_func_mprotect = yes; then
23459 :
23460else
23461 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23462echo "$as_me: error: Function mprotect() required but not found" >&2;}
23463 { (exit 1); exit 1; }; }
23464fi
23465
23466
John Criswellb13092b2003-07-22 21:00:24 +000023467
Brian Gaekeadfe28d2004-07-21 03:50:25 +000023468 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23469echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
John Criswellcb7a1eb2003-11-17 19:46:02 +000023470
23471
23472 ac_ext=c
23473ac_cpp='$CPP $CPPFLAGS'
23474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23476ac_compiler_gnu=$ac_cv_c_compiler_gnu
23477
Brian Gaekef91a15c2003-11-18 06:20:41 +000023478 oldcflags="$CFLAGS"
23479 CFLAGS="$CFLAGS -Wl,-R."
John Criswellcb7a1eb2003-11-17 19:46:02 +000023480 cat >conftest.$ac_ext <<_ACEOF
Brian Gaekef91a15c2003-11-18 06:20:41 +000023481int main() { return 0; }
John Criswellcb7a1eb2003-11-17 19:46:02 +000023482_ACEOF
23483rm -f conftest.$ac_objext conftest$ac_exeext
23484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000023485 (eval $ac_link) 2>conftest.er1
John Criswellcb7a1eb2003-11-17 19:46:02 +000023486 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000023487 grep -v '^ *+' conftest.er1 >conftest.err
23488 rm -f conftest.er1
23489 cat conftest.err >&5
John Criswellcb7a1eb2003-11-17 19:46:02 +000023490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000023492 { ac_try='test -z "$ac_c_werror_flag"
23493 || test ! -s conftest.err'
23494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23495 (eval $ac_try) 2>&5
23496 ac_status=$?
23497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498 (exit $ac_status); }; } &&
23499 { ac_try='test -s conftest$ac_exeext'
John Criswellcb7a1eb2003-11-17 19:46:02 +000023500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23501 (eval $ac_try) 2>&5
23502 ac_status=$?
23503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504 (exit $ac_status); }; }; then
23505 ac_cv_link_use_r=yes
23506else
23507 echo "$as_me: failed program was:" >&5
23508sed 's/^/| /' conftest.$ac_ext >&5
23509
Brian Gaekef91a15c2003-11-18 06:20:41 +000023510ac_cv_link_use_r=no
John Criswellcb7a1eb2003-11-17 19:46:02 +000023511fi
Reid Spencer17041682004-09-05 17:48:32 +000023512rm -f conftest.err conftest.$ac_objext \
23513 conftest$ac_exeext conftest.$ac_ext
Brian Gaekef91a15c2003-11-18 06:20:41 +000023514 CFLAGS="$oldcflags"
John Criswellcb7a1eb2003-11-17 19:46:02 +000023515 ac_ext=c
23516ac_cpp='$CPP $CPPFLAGS'
23517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23519ac_compiler_gnu=$ac_cv_c_compiler_gnu
23520
Brian Gaekeadfe28d2004-07-21 03:50:25 +000023521 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23522echo "${ECHO_T}$ac_cv_link_use_r" >&6
Brian Gaekef91a15c2003-11-18 06:20:41 +000023523 if test "$ac_cv_link_use_r" = yes
John Criswellcb7a1eb2003-11-17 19:46:02 +000023524 then
Brian Gaekef91a15c2003-11-18 06:20:41 +000023525
23526cat >>confdefs.h <<\_ACEOF
John Criswellcb7a1eb2003-11-17 19:46:02 +000023527#define HAVE_LINK_R 1
23528_ACEOF
23529
23530 fi
23531
23532
John Criswell7a73b802003-06-30 21:59:07 +000023533# Check whether --enable-optimized or --disable-optimized was given.
23534if test "${enable_optimized+set}" = set; then
23535 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000023536
23537else
John Criswellb13092b2003-07-22 21:00:24 +000023538 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000023539fi;
John Criswellb13092b2003-07-22 21:00:24 +000023540if test ${enableval} = "no"
23541then
23542 ENABLE_OPTIMIZED=
23543
23544else
23545 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23546
23547fi
23548
John Criswellb13092b2003-07-22 21:00:24 +000023549# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000023550if test "${enable_jit+set}" = set; then
23551 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000023552
23553else
John Criswellc78022e2003-07-29 19:11:58 +000023554 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000023555fi;
John Criswellb13092b2003-07-22 21:00:24 +000023556if test ${enableval} = "no"
23557then
23558 JIT=
23559
23560else
John Criswellc78022e2003-07-29 19:11:58 +000023561 case $target in
23562 *i*86*)
23563 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000023564
John Criswellc78022e2003-07-29 19:11:58 +000023565 ;;
23566 *sparc*)
23567 JIT=TARGET_HAS_JIT=1
23568
23569 ;;
23570 *)
23571 JIT=
23572
23573 ;;
23574 esac
John Criswellb13092b2003-07-22 21:00:24 +000023575fi
John Criswell7a73b802003-06-30 21:59:07 +000023576
23577
John Criswell7a73b802003-06-30 21:59:07 +000023578# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23579if test "${with_llvmgccdir+set}" = set; then
23580 withval="$with_llvmgccdir"
23581 LLVMGCCDIR=$withval
23582
23583fi;
Brian Gaekef3b24102003-11-16 18:38:14 +000023584echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23585echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23586LLVM_GCC_CHECK=no
23587if test -d "$LLVMGCCDIR"
23588then
23589 if test -x "$LLVMGCCDIR/bin/gcc"
23590 then
23591 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23592 fi
23593fi
23594llvmgccwarn=no
23595echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23596echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23597if test "$LLVM_GCC_CHECK" = "no"
23598then
23599 llvmgccwarn=yes
23600fi
Brian Gaekef3b24102003-11-16 18:38:14 +000023601echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23602echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23603LLVM_GCC_SANE=no
23604if test -x "$LLVM_GCC_CHECK"
23605then
23606 cp /dev/null conftest.c
23607 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23608 if test $? -eq 0
23609 then
23610 LLVM_GCC_SANE=yes
23611 fi
23612 rm conftest.c
Brian Gaeke2f50a042004-01-16 21:31:21 +000023613 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
Brian Gaeke554831c2004-01-21 19:39:29 +000023614 LLVMCC1=$llvmcc1path
Brian Gaeke2f50a042004-01-16 21:31:21 +000023615
23616 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
Brian Gaeke554831c2004-01-21 19:39:29 +000023617 LLVMCC1PLUS=$llvmcc1pluspath
Brian Gaeke2f50a042004-01-16 21:31:21 +000023618
Brian Gaekef3b24102003-11-16 18:38:14 +000023619fi
23620echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23621echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23622if test "$LLVM_GCC_SANE" = "no"
23623then
23624 llvmgccwarn=yes
23625fi
23626
Brian Gaeke554831c2004-01-21 19:39:29 +000023627echo "$as_me:$LINENO: checking for shared library suffix" >&5
23628echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
23629eval "SHLIBEXT=$shrext"
23630echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23631echo "${ECHO_T}$SHLIBEXT" >&6
23632SHLIBEXT=$SHLIBEXT
23633
23634
23635cat >>confdefs.h <<_ACEOF
23636#define SHLIBEXT "$SHLIBEXT"
23637_ACEOF
23638
23639
Reid Spencere9de0912004-08-20 09:03:57 +000023640# Translate the various configuration directories and other basic
23641# information into substitutions that will end up in config.h.in so
23642# that these configured values can be hard-wired into a program.
23643eval LLVM_PREFIX="${prefix}";
23644eval LLVM_BINDIR="${prefix}/bin";
23645eval LLVM_LIBDIR="${prefix}/lib";
23646eval LLVM_DATADIR="${prefix}/data";
23647eval LLVM_DOCSDIR="${prefix}/docs";
23648eval LLVM_ETCDIR="${prefix}/etc";
23649eval LLVM_INCLUDEDIR="${prefix}/include";
23650eval LLVM_INFODIR="${prefix}/info";
23651eval LLVM_MANDIR="${prefix}/man";
23652LLVM_CONFIGTIME=`date`
23653
23654
23655
23656
23657
23658
23659
23660
23661
23662
23663
23664cat >>confdefs.h <<_ACEOF
23665#define LLVM_PREFIX "$LLVM_PREFIX"
23666_ACEOF
23667
23668
23669cat >>confdefs.h <<_ACEOF
23670#define LLVM_BINDIR "$LLVM_BINDIR"
23671_ACEOF
23672
23673
23674cat >>confdefs.h <<_ACEOF
23675#define LLVM_LIBDIR "$LLVM_LIBDIR"
23676_ACEOF
23677
23678
23679cat >>confdefs.h <<_ACEOF
23680#define LLVM_DATADIR "$LLVM_DATADIR"
23681_ACEOF
23682
23683
23684cat >>confdefs.h <<_ACEOF
23685#define LLVM_DATADIR "$LLVM_DOCSDIR"
23686_ACEOF
23687
23688
23689cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000023690#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000023691_ACEOF
23692
23693
23694cat >>confdefs.h <<_ACEOF
23695#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
23696_ACEOF
23697
23698
23699cat >>confdefs.h <<_ACEOF
23700#define LLVM_INFODIR "$LLVM_INFODIR"
23701_ACEOF
23702
23703
23704cat >>confdefs.h <<_ACEOF
23705#define LLVM_MANDIR "$LLVM_MANDIR"
23706_ACEOF
23707
23708
23709cat >>confdefs.h <<_ACEOF
23710#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
23711_ACEOF
23712
23713
John Criswell7a73b802003-06-30 21:59:07 +000023714cat >confcache <<\_ACEOF
23715# This file is a shell script that caches the results of configure
23716# tests run on this system so they can be shared between configure
23717# scripts and configure runs, see configure's option --config-cache.
23718# It is not useful on other systems. If it contains results you don't
23719# want to keep, you may remove or edit it.
23720#
23721# config.status only pays attention to the cache file if you give it
23722# the --recheck option to rerun configure.
23723#
John Criswell0c38eaf2003-09-10 15:17:25 +000023724# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000023725# loading this file, other *unset* `ac_cv_foo' will be assigned the
23726# following values.
23727
23728_ACEOF
23729
23730# The following way of writing the cache mishandles newlines in values,
23731# but we know of no workaround that is simple, portable, and efficient.
23732# So, don't put newlines in cache variables' values.
23733# Ultrix sh set writes to stderr and can't be redirected directly,
23734# and sets the high bit in the cache file unless we assign to the vars.
23735{
23736 (set) 2>&1 |
23737 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23738 *ac_space=\ *)
23739 # `set' does not quote correctly, so add quotes (double-quote
23740 # substitution turns \\\\ into \\, and sed turns \\ into \).
23741 sed -n \
Reid Spencer17041682004-09-05 17:48:32 +000023742 "s/'/'\\\\''/g;
23743 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000023744 ;;
23745 *)
23746 # `set' quotes correctly as required by POSIX, so do not add quotes.
23747 sed -n \
Reid Spencer17041682004-09-05 17:48:32 +000023748 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000023749 ;;
23750 esac;
23751} |
23752 sed '
23753 t clear
23754 : clear
23755 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23756 t end
23757 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23758 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000023759if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000023760 if test -w $cache_file; then
23761 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23762 cat confcache >$cache_file
23763 else
23764 echo "not updating unwritable cache $cache_file"
23765 fi
23766fi
23767rm -f confcache
23768
23769test "x$prefix" = xNONE && prefix=$ac_default_prefix
23770# Let make expand exec_prefix.
23771test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23772
23773# VPATH may cause trouble with some makes, so we remove $(srcdir),
23774# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23775# trailing colons and then remove the whole line if VPATH becomes empty
23776# (actually we leave an empty line to preserve line numbers).
23777if test "x$srcdir" = x.; then
Reid Spencer17041682004-09-05 17:48:32 +000023778 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000023779s/:*\$(srcdir):*/:/;
23780s/:*\${srcdir}:*/:/;
23781s/:*@srcdir@:*/:/;
Reid Spencer17041682004-09-05 17:48:32 +000023782s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000023783s/:*$//;
Reid Spencer17041682004-09-05 17:48:32 +000023784s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000023785}'
23786fi
23787
23788DEFS=-DHAVE_CONFIG_H
23789
John Criswell0c38eaf2003-09-10 15:17:25 +000023790ac_libobjs=
23791ac_ltlibobjs=
23792for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23793 # 1. Remove the extension, and $U if already installed.
23794 ac_i=`echo "$ac_i" |
Reid Spencer17041682004-09-05 17:48:32 +000023795 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023796 # 2. Add them.
23797 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23798 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23799done
23800LIBOBJS=$ac_libobjs
23801
23802LTLIBOBJS=$ac_ltlibobjs
23803
23804
John Criswell7a73b802003-06-30 21:59:07 +000023805
23806: ${CONFIG_STATUS=./config.status}
23807ac_clean_files_save=$ac_clean_files
23808ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23809{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23810echo "$as_me: creating $CONFIG_STATUS" >&6;}
23811cat >$CONFIG_STATUS <<_ACEOF
23812#! $SHELL
23813# Generated by $as_me.
23814# Run this file to recreate the current configuration.
23815# Compiler output produced by configure, useful for debugging
23816# configure, is in config.log if it exists.
23817
23818debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000023819ac_cs_recheck=false
23820ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000023821SHELL=\${CONFIG_SHELL-$SHELL}
23822_ACEOF
23823
23824cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023825## --------------------- ##
23826## M4sh Initialization. ##
23827## --------------------- ##
23828
23829# Be Bourne compatible
23830if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23831 emulate sh
23832 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023833 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23834 # is contrary to our usage. Disable this feature.
23835 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000023836elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23837 set -o posix
23838fi
Reid Spencer17041682004-09-05 17:48:32 +000023839DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000023840
John Criswell7a73b802003-06-30 21:59:07 +000023841# Support unset when possible.
Reid Spencer17041682004-09-05 17:48:32 +000023842if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023843 as_unset=unset
23844else
23845 as_unset=false
23846fi
23847
John Criswell0c38eaf2003-09-10 15:17:25 +000023848
23849# Work around bugs in pre-3.0 UWIN ksh.
23850$as_unset ENV MAIL MAILPATH
23851PS1='$ '
23852PS2='> '
23853PS4='+ '
23854
23855# NLS nuisances.
23856for as_var in \
23857 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23858 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23859 LC_TELEPHONE LC_TIME
23860do
Reid Spencer17041682004-09-05 17:48:32 +000023861 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000023862 eval $as_var=C; export $as_var
23863 else
23864 $as_unset $as_var
23865 fi
23866done
23867
23868# Required to use basename.
23869if expr a : '\(a\)' >/dev/null 2>&1; then
23870 as_expr=expr
23871else
23872 as_expr=false
23873fi
23874
23875if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23876 as_basename=basename
23877else
23878 as_basename=false
23879fi
John Criswell7a73b802003-06-30 21:59:07 +000023880
23881
23882# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000023883as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000023884$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23885 X"$0" : 'X\(//\)$' \| \
23886 X"$0" : 'X\(/\)$' \| \
23887 . : '\(.\)' 2>/dev/null ||
23888echo X/"$0" |
23889 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23890 /^X\/\(\/\/\)$/{ s//\1/; q; }
23891 /^X\/\(\/\).*/{ s//\1/; q; }
23892 s/.*/./; q'`
23893
John Criswell0c38eaf2003-09-10 15:17:25 +000023894
John Criswell7a73b802003-06-30 21:59:07 +000023895# PATH needs CR, and LINENO needs CR and PATH.
23896# Avoid depending upon Character Ranges.
23897as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23898as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23899as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23900as_cr_digits='0123456789'
23901as_cr_alnum=$as_cr_Letters$as_cr_digits
23902
23903# The user is always right.
23904if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023905 echo "#! /bin/sh" >conf$$.sh
23906 echo "exit 0" >>conf$$.sh
23907 chmod +x conf$$.sh
23908 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023909 PATH_SEPARATOR=';'
23910 else
23911 PATH_SEPARATOR=:
23912 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000023913 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000023914fi
23915
23916
23917 as_lineno_1=$LINENO
23918 as_lineno_2=$LINENO
23919 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23920 test "x$as_lineno_1" != "x$as_lineno_2" &&
23921 test "x$as_lineno_3" = "x$as_lineno_2" || {
23922 # Find who we are. Look in the path if we contain no path at all
23923 # relative or not.
23924 case $0 in
23925 *[\\/]* ) as_myself=$0 ;;
23926 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23927for as_dir in $PATH
23928do
23929 IFS=$as_save_IFS
23930 test -z "$as_dir" && as_dir=.
23931 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23932done
23933
23934 ;;
23935 esac
23936 # We did not find ourselves, most probably we were run as `sh COMMAND'
23937 # in which case we are not to be found in the path.
23938 if test "x$as_myself" = x; then
23939 as_myself=$0
23940 fi
23941 if test ! -f "$as_myself"; then
23942 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23943echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23944 { (exit 1); exit 1; }; }
23945 fi
23946 case $CONFIG_SHELL in
23947 '')
23948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23949for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23950do
23951 IFS=$as_save_IFS
23952 test -z "$as_dir" && as_dir=.
23953 for as_base in sh bash ksh sh5; do
23954 case $as_dir in
23955 /*)
23956 if ("$as_dir/$as_base" -c '
23957 as_lineno_1=$LINENO
23958 as_lineno_2=$LINENO
23959 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23960 test "x$as_lineno_1" != "x$as_lineno_2" &&
23961 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023962 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23963 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023964 CONFIG_SHELL=$as_dir/$as_base
23965 export CONFIG_SHELL
23966 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23967 fi;;
23968 esac
23969 done
23970done
23971;;
23972 esac
23973
23974 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23975 # uniformly replaced by the line number. The first 'sed' inserts a
23976 # line-number line before each line; the second 'sed' does the real
23977 # work. The second script uses 'N' to pair each line-number line
23978 # with the numbered line, and appends trailing '-' during
23979 # substitution so that $LINENO is not a special case at line end.
23980 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23981 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23982 sed '=' <$as_myself |
23983 sed '
23984 N
23985 s,$,-,
23986 : loop
23987 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23988 t loop
23989 s,-$,,
23990 s,^['$as_cr_digits']*\n,,
23991 ' >$as_me.lineno &&
23992 chmod +x $as_me.lineno ||
23993 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23994echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23995 { (exit 1); exit 1; }; }
23996
23997 # Don't try to exec as it changes $[0], causing all sort of problems
23998 # (the dirname of $[0] is not the place where we might find the
23999 # original and so on. Autoconf is especially sensible to this).
24000 . ./$as_me.lineno
24001 # Exit status is that of the last command.
24002 exit
24003}
24004
24005
24006case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24007 *c*,-n*) ECHO_N= ECHO_C='
24008' ECHO_T=' ' ;;
24009 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24010 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24011esac
24012
24013if expr a : '\(a\)' >/dev/null 2>&1; then
24014 as_expr=expr
24015else
24016 as_expr=false
24017fi
24018
24019rm -f conf$$ conf$$.exe conf$$.file
24020echo >conf$$.file
24021if ln -s conf$$.file conf$$ 2>/dev/null; then
24022 # We could just check for DJGPP; but this test a) works b) is more generic
24023 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24024 if test -f conf$$.exe; then
24025 # Don't use ln at all; we don't have any links
24026 as_ln_s='cp -p'
24027 else
24028 as_ln_s='ln -s'
24029 fi
24030elif ln conf$$.file conf$$ 2>/dev/null; then
24031 as_ln_s=ln
24032else
24033 as_ln_s='cp -p'
24034fi
24035rm -f conf$$ conf$$.exe conf$$.file
24036
John Criswell0c38eaf2003-09-10 15:17:25 +000024037if mkdir -p . 2>/dev/null; then
24038 as_mkdir_p=:
24039else
Reid Spencer17041682004-09-05 17:48:32 +000024040 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000024041 as_mkdir_p=false
24042fi
24043
John Criswell7a73b802003-06-30 21:59:07 +000024044as_executable_p="test -f"
24045
24046# Sed expression to map a string onto a valid CPP name.
Reid Spencer17041682004-09-05 17:48:32 +000024047as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000024048
24049# Sed expression to map a string onto a valid variable name.
Reid Spencer17041682004-09-05 17:48:32 +000024050as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000024051
24052
24053# IFS
24054# We need space, tab and new line, in precisely that order.
24055as_nl='
24056'
24057IFS=" $as_nl"
24058
24059# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000024060$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000024061
24062exec 6>&1
24063
24064# Open the log real soon, to keep \$[0] and so on meaningful, and to
24065# report actual input values of CONFIG_FILES etc. instead of their
24066# values after options handling. Logging --version etc. is OK.
24067exec 5>>config.log
24068{
24069 echo
24070 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24071## Running $as_me. ##
24072_ASBOX
24073} >&5
24074cat >&5 <<_CSEOF
24075
Reid Spencere9de0912004-08-20 09:03:57 +000024076This file was extended by LLVM $as_me 1.4, which was
Reid Spencer17041682004-09-05 17:48:32 +000024077generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000024078
24079 CONFIG_FILES = $CONFIG_FILES
24080 CONFIG_HEADERS = $CONFIG_HEADERS
24081 CONFIG_LINKS = $CONFIG_LINKS
24082 CONFIG_COMMANDS = $CONFIG_COMMANDS
24083 $ $0 $@
24084
24085_CSEOF
24086echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24087echo >&5
24088_ACEOF
24089
24090# Files that config.status was made for.
24091if test -n "$ac_config_files"; then
24092 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24093fi
24094
24095if test -n "$ac_config_headers"; then
24096 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24097fi
24098
24099if test -n "$ac_config_links"; then
24100 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24101fi
24102
24103if test -n "$ac_config_commands"; then
24104 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24105fi
24106
24107cat >>$CONFIG_STATUS <<\_ACEOF
24108
24109ac_cs_usage="\
24110\`$as_me' instantiates files from templates according to the
24111current configuration.
24112
24113Usage: $0 [OPTIONS] [FILE]...
24114
24115 -h, --help print this help, then exit
24116 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000024117 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000024118 -d, --debug don't remove temporary files
24119 --recheck update $as_me by reconfiguring in the same conditions
24120 --file=FILE[:TEMPLATE]
Reid Spencer17041682004-09-05 17:48:32 +000024121 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000024122 --header=FILE[:TEMPLATE]
Reid Spencer17041682004-09-05 17:48:32 +000024123 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000024124
24125Configuration files:
24126$config_files
24127
24128Configuration headers:
24129$config_headers
24130
Reid Spencerde8c47f2004-08-29 19:35:28 +000024131Configuration links:
24132$config_links
24133
John Criswellc764fbc2003-09-06 15:17:13 +000024134Configuration commands:
24135$config_commands
24136
John Criswell7a73b802003-06-30 21:59:07 +000024137Report bugs to <bug-autoconf@gnu.org>."
24138_ACEOF
24139
24140cat >>$CONFIG_STATUS <<_ACEOF
24141ac_cs_version="\\
Reid Spencere9de0912004-08-20 09:03:57 +000024142LLVM config.status 1.4
Reid Spencer17041682004-09-05 17:48:32 +000024143configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000024144 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24145
Reid Spencer17041682004-09-05 17:48:32 +000024146Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000024147This config.status script is free software; the Free Software Foundation
24148gives unlimited permission to copy, distribute and modify it."
24149srcdir=$srcdir
24150INSTALL="$INSTALL"
24151_ACEOF
24152
24153cat >>$CONFIG_STATUS <<\_ACEOF
24154# If no file are specified by the user, then we need to provide default
24155# value. By we need to know if files were specified by the user.
24156ac_need_defaults=:
24157while test $# != 0
24158do
24159 case $1 in
24160 --*=*)
24161 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24162 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024163 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000024164 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000024165 -*)
24166 ac_option=$1
24167 ac_optarg=$2
24168 ac_shift=shift
24169 ;;
John Criswell7a73b802003-06-30 21:59:07 +000024170 *) # This is not an option, so the user has probably given explicit
24171 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000024172 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000024173 ac_need_defaults=false;;
24174 esac
24175
John Criswell0c38eaf2003-09-10 15:17:25 +000024176 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000024177 # Handling of the options.
24178_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000024179cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024180 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24181 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000024182 --version | --vers* | -V )
24183 echo "$ac_cs_version"; exit 0 ;;
24184 --he | --h)
24185 # Conflict between --help and --header
24186 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24187Try \`$0 --help' for more information." >&5
24188echo "$as_me: error: ambiguous option: $1
24189Try \`$0 --help' for more information." >&2;}
24190 { (exit 1); exit 1; }; };;
24191 --help | --hel | -h )
24192 echo "$ac_cs_usage"; exit 0 ;;
24193 --debug | --d* | -d )
24194 debug=: ;;
24195 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000024196 $ac_shift
24197 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000024198 ac_need_defaults=false;;
24199 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000024200 $ac_shift
24201 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000024202 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000024203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24204 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24205 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000024206
24207 # This is an error.
24208 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24209Try \`$0 --help' for more information." >&5
24210echo "$as_me: error: unrecognized option: $1
24211Try \`$0 --help' for more information." >&2;}
24212 { (exit 1); exit 1; }; } ;;
24213
24214 *) ac_config_targets="$ac_config_targets $1" ;;
24215
24216 esac
24217 shift
24218done
24219
John Criswell0c38eaf2003-09-10 15:17:25 +000024220ac_configure_extra_args=
24221
24222if $ac_cs_silent; then
24223 exec 6>/dev/null
24224 ac_configure_extra_args="$ac_configure_extra_args --silent"
24225fi
24226
24227_ACEOF
24228cat >>$CONFIG_STATUS <<_ACEOF
24229if \$ac_cs_recheck; then
24230 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24231 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24232fi
24233
John Criswell7a73b802003-06-30 21:59:07 +000024234_ACEOF
24235
John Criswellc764fbc2003-09-06 15:17:13 +000024236cat >>$CONFIG_STATUS <<_ACEOF
24237#
24238# INIT-COMMANDS section.
24239#
John Criswell7a73b802003-06-30 21:59:07 +000024240
John Criswellc764fbc2003-09-06 15:17:13 +000024241${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24242${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000024243${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024244${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024245${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024246${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24247${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000024248${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24249${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000024250${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000024251${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024252${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024253
24254_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024255
24256
24257
24258cat >>$CONFIG_STATUS <<\_ACEOF
24259for ac_config_target in $ac_config_targets
24260do
24261 case "$ac_config_target" in
24262 # Handling of arguments.
24263 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000024264 "include/llvm/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/DataTypes.h" ;;
24265 "include/llvm/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/ThreadSupport.h" ;;
24266 "include/llvm/ADT/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_map" ;;
24267 "include/llvm/ADT/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_set" ;;
24268 "include/llvm/ADT/iterator" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/iterator" ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +000024269 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024270 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24271 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000024272 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024273 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024274 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024275 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24276 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000024277 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24278 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024279 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024280 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024281 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000024282 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell7a73b802003-06-30 21:59:07 +000024283 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24284echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24285 { (exit 1); exit 1; }; };;
24286 esac
24287done
24288
24289# If the user did not use the arguments to specify the items to instantiate,
24290# then the envvar interface is used. Set only those that are not.
24291# We use the long form for the default assignment because of an extremely
24292# bizarre bug on SunOS 4.1.3.
24293if $ac_need_defaults; then
24294 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24295 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Reid Spencerde8c47f2004-08-29 19:35:28 +000024296 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
John Criswellc764fbc2003-09-06 15:17:13 +000024297 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000024298fi
24299
John Criswell0c38eaf2003-09-10 15:17:25 +000024300# Have a temporary directory for convenience. Make it in the build tree
24301# simply because there is no reason to put it here, and in addition,
24302# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000024303# Create a temporary directory, and hook for its removal unless debugging.
24304$debug ||
24305{
24306 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24307 trap '{ (exit 1); exit 1; }' 1 2 13 15
24308}
24309
24310# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000024311
John Criswell7a73b802003-06-30 21:59:07 +000024312{
John Criswell0c38eaf2003-09-10 15:17:25 +000024313 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000024314 test -n "$tmp" && test -d "$tmp"
24315} ||
24316{
John Criswell0c38eaf2003-09-10 15:17:25 +000024317 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000024318 (umask 077 && mkdir $tmp)
24319} ||
24320{
John Criswell0c38eaf2003-09-10 15:17:25 +000024321 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000024322 { (exit 1); exit 1; }
24323}
24324
24325_ACEOF
24326
24327cat >>$CONFIG_STATUS <<_ACEOF
24328
24329#
24330# CONFIG_FILES section.
24331#
24332
24333# No need to generate the scripts if there are no CONFIG_FILES.
24334# This happens for instance when ./config.status config.h
24335if test -n "\$CONFIG_FILES"; then
24336 # Protect against being on the right side of a sed subst in config.status.
24337 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24338 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24339s,@SHELL@,$SHELL,;t t
24340s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24341s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24342s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24343s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24344s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24345s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24346s,@exec_prefix@,$exec_prefix,;t t
24347s,@prefix@,$prefix,;t t
24348s,@program_transform_name@,$program_transform_name,;t t
24349s,@bindir@,$bindir,;t t
24350s,@sbindir@,$sbindir,;t t
24351s,@libexecdir@,$libexecdir,;t t
24352s,@datadir@,$datadir,;t t
24353s,@sysconfdir@,$sysconfdir,;t t
24354s,@sharedstatedir@,$sharedstatedir,;t t
24355s,@localstatedir@,$localstatedir,;t t
24356s,@libdir@,$libdir,;t t
24357s,@includedir@,$includedir,;t t
24358s,@oldincludedir@,$oldincludedir,;t t
24359s,@infodir@,$infodir,;t t
24360s,@mandir@,$mandir,;t t
24361s,@build_alias@,$build_alias,;t t
24362s,@host_alias@,$host_alias,;t t
24363s,@target_alias@,$target_alias,;t t
24364s,@DEFS@,$DEFS,;t t
24365s,@ECHO_C@,$ECHO_C,;t t
24366s,@ECHO_N@,$ECHO_N,;t t
24367s,@ECHO_T@,$ECHO_T,;t t
24368s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000024369s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024370s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24371s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24372s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24373s,@build@,$build,;t t
24374s,@build_cpu@,$build_cpu,;t t
24375s,@build_vendor@,$build_vendor,;t t
24376s,@build_os@,$build_os,;t t
24377s,@host@,$host,;t t
24378s,@host_cpu@,$host_cpu,;t t
24379s,@host_vendor@,$host_vendor,;t t
24380s,@host_os@,$host_os,;t t
24381s,@target@,$target,;t t
24382s,@target_cpu@,$target_cpu,;t t
24383s,@target_vendor@,$target_vendor,;t t
24384s,@target_os@,$target_os,;t t
24385s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024386s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000024387s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024388s,@CXX@,$CXX,;t t
24389s,@CXXFLAGS@,$CXXFLAGS,;t t
24390s,@LDFLAGS@,$LDFLAGS,;t t
24391s,@CPPFLAGS@,$CPPFLAGS,;t t
24392s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24393s,@EXEEXT@,$EXEEXT,;t t
24394s,@OBJEXT@,$OBJEXT,;t t
24395s,@CC@,$CC,;t t
24396s,@CFLAGS@,$CFLAGS,;t t
24397s,@ac_ct_CC@,$ac_ct_CC,;t t
24398s,@CPP@,$CPP,;t t
24399s,@ifGNUmake@,$ifGNUmake,;t t
24400s,@LEX@,$LEX,;t t
24401s,@LEXLIB@,$LEXLIB,;t t
24402s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000024403s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024404s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000024405s,@BISON@,$BISON,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024406s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024407s,@LN_S@,$LN_S,;t t
24408s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024409s,@AR@,$AR,;t t
24410s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024411s,@RANLIB@,$RANLIB,;t t
24412s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24413s,@STRIP@,$STRIP,;t t
24414s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024415s,@CXXCPP@,$CXXCPP,;t t
24416s,@F77@,$F77,;t t
24417s,@FFLAGS@,$FFLAGS,;t t
24418s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024419s,@LIBTOOL@,$LIBTOOL,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024420s,@DOT@,$DOT,;t t
24421s,@ETAGS@,$ETAGS,;t t
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000024422s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000024423s,@PYTHON@,$PYTHON,;t t
24424s,@QMTEST@,$QMTEST,;t t
Brian Gaekec9a410c2004-02-23 21:30:37 +000024425s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
Brian Gaeke6c3fd812004-02-23 22:07:00 +000024426s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
24427s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
John Criswell7ed43ad2004-07-19 16:12:29 +000024428s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
John Criswell0021c312004-02-13 21:57:29 +000024429s,@ENDIAN@,$ENDIAN,;t t
Brian Gaeke793c5f22004-02-23 18:56:02 +000024430s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
24431s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
24432s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
24433s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
24434s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
24435s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
Brian Gaeke295d4b82004-02-23 18:16:06 +000024436s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24437s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24438s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024439s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024440s,@MMAP_FILE@,$MMAP_FILE,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024441s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024442s,@JIT@,$JIT,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000024443s,@LLVMCC1@,$LLVMCC1,;t t
24444s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000024445s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000024446s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24447s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24448s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24449s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24450s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24451s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24452s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24453s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24454s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24455s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000024456s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000024457s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024458CEOF
24459
24460_ACEOF
24461
24462 cat >>$CONFIG_STATUS <<\_ACEOF
24463 # Split the substitutions into bite-sized pieces for seds with
24464 # small command number limits, like on Digital OSF/1 and HP-UX.
24465 ac_max_sed_lines=48
24466 ac_sed_frag=1 # Number of current file.
24467 ac_beg=1 # First line for current file.
24468 ac_end=$ac_max_sed_lines # Line after last line for current file.
24469 ac_more_lines=:
24470 ac_sed_cmds=
24471 while $ac_more_lines; do
24472 if test $ac_beg -gt 1; then
24473 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24474 else
24475 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24476 fi
24477 if test ! -s $tmp/subs.frag; then
24478 ac_more_lines=false
24479 else
24480 # The purpose of the label and of the branching condition is to
24481 # speed up the sed processing (if there are no `@' at all, there
24482 # is no need to browse any of the substitutions).
24483 # These are the two extra sed commands mentioned above.
24484 (echo ':t
24485 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24486 if test -z "$ac_sed_cmds"; then
Reid Spencer17041682004-09-05 17:48:32 +000024487 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000024488 else
Reid Spencer17041682004-09-05 17:48:32 +000024489 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000024490 fi
24491 ac_sed_frag=`expr $ac_sed_frag + 1`
24492 ac_beg=$ac_end
24493 ac_end=`expr $ac_end + $ac_max_sed_lines`
24494 fi
24495 done
24496 if test -z "$ac_sed_cmds"; then
24497 ac_sed_cmds=cat
24498 fi
24499fi # test -n "$CONFIG_FILES"
24500
24501_ACEOF
24502cat >>$CONFIG_STATUS <<\_ACEOF
24503for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24504 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24505 case $ac_file in
24506 - | *:- | *:-:* ) # input from stdin
Reid Spencer17041682004-09-05 17:48:32 +000024507 cat >$tmp/stdin
24508 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24509 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024510 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer17041682004-09-05 17:48:32 +000024511 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024512 * ) ac_file_in=$ac_file.in ;;
24513 esac
24514
24515 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24516 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24517$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer17041682004-09-05 17:48:32 +000024518 X"$ac_file" : 'X\(//\)[^/]' \| \
24519 X"$ac_file" : 'X\(//\)$' \| \
24520 X"$ac_file" : 'X\(/\)' \| \
24521 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000024522echo X"$ac_file" |
24523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24524 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24525 /^X\(\/\/\)$/{ s//\1/; q; }
24526 /^X\(\/\).*/{ s//\1/; q; }
24527 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024528 { if $as_mkdir_p; then
24529 mkdir -p "$ac_dir"
24530 else
24531 as_dir="$ac_dir"
24532 as_dirs=
24533 while test ! -d "$as_dir"; do
24534 as_dirs="$as_dir $as_dirs"
24535 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24536$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer17041682004-09-05 17:48:32 +000024537 X"$as_dir" : 'X\(//\)[^/]' \| \
24538 X"$as_dir" : 'X\(//\)$' \| \
24539 X"$as_dir" : 'X\(/\)' \| \
24540 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000024541echo X"$as_dir" |
24542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24543 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24544 /^X\(\/\/\)$/{ s//\1/; q; }
24545 /^X\(\/\).*/{ s//\1/; q; }
24546 s/.*/./; q'`
24547 done
24548 test ! -n "$as_dirs" || mkdir $as_dirs
24549 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24550echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24551 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024552
24553 ac_builddir=.
24554
24555if test "$ac_dir" != .; then
24556 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24557 # A "../" for each directory in $ac_dir_suffix.
24558 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24559else
24560 ac_dir_suffix= ac_top_builddir=
24561fi
24562
24563case $srcdir in
24564 .) # No --srcdir option. We are building in place.
24565 ac_srcdir=.
24566 if test -z "$ac_top_builddir"; then
24567 ac_top_srcdir=.
24568 else
24569 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24570 fi ;;
24571 [\\/]* | ?:[\\/]* ) # Absolute path.
24572 ac_srcdir=$srcdir$ac_dir_suffix;
24573 ac_top_srcdir=$srcdir ;;
24574 *) # Relative path.
24575 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24576 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24577esac
Reid Spencer17041682004-09-05 17:48:32 +000024578
24579# Do not use `cd foo && pwd` to compute absolute paths, because
24580# the directories may not exist.
24581case `pwd` in
24582.) ac_abs_builddir="$ac_dir";;
24583*)
24584 case "$ac_dir" in
24585 .) ac_abs_builddir=`pwd`;;
24586 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24587 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24588 esac;;
24589esac
24590case $ac_abs_builddir in
24591.) ac_abs_top_builddir=${ac_top_builddir}.;;
24592*)
24593 case ${ac_top_builddir}. in
24594 .) ac_abs_top_builddir=$ac_abs_builddir;;
24595 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24596 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24597 esac;;
24598esac
24599case $ac_abs_builddir in
24600.) ac_abs_srcdir=$ac_srcdir;;
24601*)
24602 case $ac_srcdir in
24603 .) ac_abs_srcdir=$ac_abs_builddir;;
24604 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24605 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24606 esac;;
24607esac
24608case $ac_abs_builddir in
24609.) ac_abs_top_srcdir=$ac_top_srcdir;;
24610*)
24611 case $ac_top_srcdir in
24612 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24613 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24614 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24615 esac;;
24616esac
John Criswell7a73b802003-06-30 21:59:07 +000024617
24618
24619 case $INSTALL in
24620 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24621 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24622 esac
24623
24624 if test x"$ac_file" != x-; then
24625 { echo "$as_me:$LINENO: creating $ac_file" >&5
24626echo "$as_me: creating $ac_file" >&6;}
24627 rm -f "$ac_file"
24628 fi
24629 # Let's still pretend it is `configure' which instantiates (i.e., don't
24630 # use $as_me), people would be surprised to read:
24631 # /* config.h. Generated by config.status. */
24632 if test x"$ac_file" = x-; then
24633 configure_input=
24634 else
24635 configure_input="$ac_file. "
24636 fi
24637 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer17041682004-09-05 17:48:32 +000024638 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000024639
24640 # First look for the input files in the build tree, otherwise in the
24641 # src tree.
24642 ac_file_inputs=`IFS=:
24643 for f in $ac_file_in; do
24644 case $f in
24645 -) echo $tmp/stdin ;;
24646 [\\/$]*)
Reid Spencer17041682004-09-05 17:48:32 +000024647 # Absolute (can't be DOS-style, as IFS=:)
24648 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024649echo "$as_me: error: cannot find input file: $f" >&2;}
24650 { (exit 1); exit 1; }; }
Reid Spencer17041682004-09-05 17:48:32 +000024651 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000024652 *) # Relative
Reid Spencer17041682004-09-05 17:48:32 +000024653 if test -f "$f"; then
24654 # Build tree
24655 echo "$f"
24656 elif test -f "$srcdir/$f"; then
24657 # Source tree
24658 echo "$srcdir/$f"
24659 else
24660 # /dev/null tree
24661 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024662echo "$as_me: error: cannot find input file: $f" >&2;}
24663 { (exit 1); exit 1; }; }
Reid Spencer17041682004-09-05 17:48:32 +000024664 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000024665 esac
24666 done` || { (exit 1); exit 1; }
24667_ACEOF
24668cat >>$CONFIG_STATUS <<_ACEOF
24669 sed "$ac_vpsub
24670$extrasub
24671_ACEOF
24672cat >>$CONFIG_STATUS <<\_ACEOF
24673:t
24674/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24675s,@configure_input@,$configure_input,;t t
24676s,@srcdir@,$ac_srcdir,;t t
24677s,@abs_srcdir@,$ac_abs_srcdir,;t t
24678s,@top_srcdir@,$ac_top_srcdir,;t t
24679s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24680s,@builddir@,$ac_builddir,;t t
24681s,@abs_builddir@,$ac_abs_builddir,;t t
24682s,@top_builddir@,$ac_top_builddir,;t t
24683s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24684s,@INSTALL@,$ac_INSTALL,;t t
24685" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24686 rm -f $tmp/stdin
24687 if test x"$ac_file" != x-; then
24688 mv $tmp/out $ac_file
24689 else
24690 cat $tmp/out
24691 rm -f $tmp/out
24692 fi
24693
24694done
24695_ACEOF
24696cat >>$CONFIG_STATUS <<\_ACEOF
24697
24698#
24699# CONFIG_HEADER section.
24700#
24701
24702# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24703# NAME is the cpp macro being defined and VALUE is the value it is being given.
24704#
24705# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer17041682004-09-05 17:48:32 +000024706ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24707ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000024708ac_dC=' '
24709ac_dD=',;t'
24710# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer17041682004-09-05 17:48:32 +000024711ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000024712ac_uB='$,\1#\2define\3'
24713ac_uC=' '
24714ac_uD=',;t'
24715
24716for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24717 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24718 case $ac_file in
24719 - | *:- | *:-:* ) # input from stdin
Reid Spencer17041682004-09-05 17:48:32 +000024720 cat >$tmp/stdin
24721 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24722 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024723 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer17041682004-09-05 17:48:32 +000024724 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024725 * ) ac_file_in=$ac_file.in ;;
24726 esac
24727
24728 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24729echo "$as_me: creating $ac_file" >&6;}
24730
24731 # First look for the input files in the build tree, otherwise in the
24732 # src tree.
24733 ac_file_inputs=`IFS=:
24734 for f in $ac_file_in; do
24735 case $f in
24736 -) echo $tmp/stdin ;;
24737 [\\/$]*)
Reid Spencer17041682004-09-05 17:48:32 +000024738 # Absolute (can't be DOS-style, as IFS=:)
24739 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024740echo "$as_me: error: cannot find input file: $f" >&2;}
24741 { (exit 1); exit 1; }; }
Reid Spencer17041682004-09-05 17:48:32 +000024742 # Do quote $f, to prevent DOS paths from being IFS'd.
24743 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000024744 *) # Relative
Reid Spencer17041682004-09-05 17:48:32 +000024745 if test -f "$f"; then
24746 # Build tree
24747 echo "$f"
24748 elif test -f "$srcdir/$f"; then
24749 # Source tree
24750 echo "$srcdir/$f"
24751 else
24752 # /dev/null tree
24753 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024754echo "$as_me: error: cannot find input file: $f" >&2;}
24755 { (exit 1); exit 1; }; }
Reid Spencer17041682004-09-05 17:48:32 +000024756 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000024757 esac
24758 done` || { (exit 1); exit 1; }
24759 # Remove the trailing spaces.
Reid Spencer17041682004-09-05 17:48:32 +000024760 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000024761
24762_ACEOF
24763
24764# Transform confdefs.h into two sed scripts, `conftest.defines' and
24765# `conftest.undefs', that substitutes the proper values into
24766# config.h.in to produce config.h. The first handles `#define'
24767# templates, and the second `#undef' templates.
24768# And first: Protect against being on the right side of a sed subst in
24769# config.status. Protect against being in an unquoted here document
24770# in config.status.
24771rm -f conftest.defines conftest.undefs
24772# Using a here document instead of a string reduces the quoting nightmare.
24773# Putting comments in sed scripts is not portable.
24774#
24775# `end' is used to avoid that the second main sed command (meant for
24776# 0-ary CPP macros) applies to n-ary macro definitions.
24777# See the Autoconf documentation for `clear'.
24778cat >confdef2sed.sed <<\_ACEOF
24779s/[\\&,]/\\&/g
24780s,[\\$`],\\&,g
24781t clear
24782: clear
Reid Spencer17041682004-09-05 17:48:32 +000024783s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000024784t end
Reid Spencer17041682004-09-05 17:48:32 +000024785s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000024786: end
24787_ACEOF
24788# If some macros were called several times there might be several times
24789# the same #defines, which is useless. Nevertheless, we may not want to
24790# sort them, since we want the *last* AC-DEFINE to be honored.
24791uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24792sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24793rm -f confdef2sed.sed
24794
24795# This sed command replaces #undef with comments. This is necessary, for
24796# example, in the case of _POSIX_SOURCE, which is predefined and required
24797# on some systems where configure will not decide to define it.
24798cat >>conftest.undefs <<\_ACEOF
Reid Spencer17041682004-09-05 17:48:32 +000024799s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000024800_ACEOF
24801
24802# Break up conftest.defines because some shells have a limit on the size
24803# of here documents, and old seds have small limits too (100 cmds).
24804echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer17041682004-09-05 17:48:32 +000024805echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024806echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24807echo ' :' >>$CONFIG_STATUS
24808rm -f conftest.tail
24809while grep . conftest.defines >/dev/null
24810do
24811 # Write a limited-size here document to $tmp/defines.sed.
24812 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24813 # Speed up: don't consider the non `#define' lines.
Reid Spencer17041682004-09-05 17:48:32 +000024814 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024815 # Work around the forget-to-reset-the-flag bug.
24816 echo 't clr' >>$CONFIG_STATUS
24817 echo ': clr' >>$CONFIG_STATUS
24818 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24819 echo 'CEOF
24820 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24821 rm -f $tmp/in
24822 mv $tmp/out $tmp/in
24823' >>$CONFIG_STATUS
24824 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24825 rm -f conftest.defines
24826 mv conftest.tail conftest.defines
24827done
24828rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024829echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024830echo >>$CONFIG_STATUS
24831
24832# Break up conftest.undefs because some shells have a limit on the size
24833# of here documents, and old seds have small limits too (100 cmds).
24834echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24835rm -f conftest.tail
24836while grep . conftest.undefs >/dev/null
24837do
24838 # Write a limited-size here document to $tmp/undefs.sed.
24839 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24840 # Speed up: don't consider the non `#undef'
Reid Spencer17041682004-09-05 17:48:32 +000024841 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024842 # Work around the forget-to-reset-the-flag bug.
24843 echo 't clr' >>$CONFIG_STATUS
24844 echo ': clr' >>$CONFIG_STATUS
24845 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24846 echo 'CEOF
24847 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24848 rm -f $tmp/in
24849 mv $tmp/out $tmp/in
24850' >>$CONFIG_STATUS
24851 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24852 rm -f conftest.undefs
24853 mv conftest.tail conftest.undefs
24854done
24855rm -f conftest.undefs
24856
24857cat >>$CONFIG_STATUS <<\_ACEOF
24858 # Let's still pretend it is `configure' which instantiates (i.e., don't
24859 # use $as_me), people would be surprised to read:
24860 # /* config.h. Generated by config.status. */
24861 if test x"$ac_file" = x-; then
24862 echo "/* Generated by configure. */" >$tmp/config.h
24863 else
24864 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24865 fi
24866 cat $tmp/in >>$tmp/config.h
24867 rm -f $tmp/in
24868 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024869 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024870 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24871echo "$as_me: $ac_file is unchanged" >&6;}
24872 else
24873 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24874$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer17041682004-09-05 17:48:32 +000024875 X"$ac_file" : 'X\(//\)[^/]' \| \
24876 X"$ac_file" : 'X\(//\)$' \| \
24877 X"$ac_file" : 'X\(/\)' \| \
24878 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000024879echo X"$ac_file" |
24880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24881 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24882 /^X\(\/\/\)$/{ s//\1/; q; }
24883 /^X\(\/\).*/{ s//\1/; q; }
24884 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024885 { if $as_mkdir_p; then
24886 mkdir -p "$ac_dir"
24887 else
24888 as_dir="$ac_dir"
24889 as_dirs=
24890 while test ! -d "$as_dir"; do
24891 as_dirs="$as_dir $as_dirs"
24892 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24893$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer17041682004-09-05 17:48:32 +000024894 X"$as_dir" : 'X\(//\)[^/]' \| \
24895 X"$as_dir" : 'X\(//\)$' \| \
24896 X"$as_dir" : 'X\(/\)' \| \
24897 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000024898echo X"$as_dir" |
24899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24900 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24901 /^X\(\/\/\)$/{ s//\1/; q; }
24902 /^X\(\/\).*/{ s//\1/; q; }
24903 s/.*/./; q'`
24904 done
24905 test ! -n "$as_dirs" || mkdir $as_dirs
24906 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24907echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24908 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024909
24910 rm -f $ac_file
24911 mv $tmp/config.h $ac_file
24912 fi
24913 else
24914 cat $tmp/config.h
24915 rm -f $tmp/config.h
24916 fi
24917done
24918_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024919cat >>$CONFIG_STATUS <<\_ACEOF
24920
24921#
Reid Spencerde8c47f2004-08-29 19:35:28 +000024922# CONFIG_LINKS section.
24923#
24924
24925for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
24926 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24927 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24928
24929 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
24930echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
24931
24932 if test ! -r $srcdir/$ac_source; then
24933 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24934echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24935 { (exit 1); exit 1; }; }
24936 fi
24937 rm -f $ac_dest
24938
24939 # Make relative symlinks.
24940 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
24941$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer17041682004-09-05 17:48:32 +000024942 X"$ac_dest" : 'X\(//\)[^/]' \| \
24943 X"$ac_dest" : 'X\(//\)$' \| \
24944 X"$ac_dest" : 'X\(/\)' \| \
24945 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000024946echo X"$ac_dest" |
24947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24948 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24949 /^X\(\/\/\)$/{ s//\1/; q; }
24950 /^X\(\/\).*/{ s//\1/; q; }
24951 s/.*/./; q'`
24952 { if $as_mkdir_p; then
24953 mkdir -p "$ac_dest_dir"
24954 else
24955 as_dir="$ac_dest_dir"
24956 as_dirs=
24957 while test ! -d "$as_dir"; do
24958 as_dirs="$as_dir $as_dirs"
24959 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24960$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer17041682004-09-05 17:48:32 +000024961 X"$as_dir" : 'X\(//\)[^/]' \| \
24962 X"$as_dir" : 'X\(//\)$' \| \
24963 X"$as_dir" : 'X\(/\)' \| \
24964 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000024965echo X"$as_dir" |
24966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24967 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24968 /^X\(\/\/\)$/{ s//\1/; q; }
24969 /^X\(\/\).*/{ s//\1/; q; }
24970 s/.*/./; q'`
24971 done
24972 test ! -n "$as_dirs" || mkdir $as_dirs
24973 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
24974echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
24975 { (exit 1); exit 1; }; }; }
24976
24977 ac_builddir=.
24978
24979if test "$ac_dest_dir" != .; then
24980 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
24981 # A "../" for each directory in $ac_dir_suffix.
24982 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24983else
24984 ac_dir_suffix= ac_top_builddir=
24985fi
24986
24987case $srcdir in
24988 .) # No --srcdir option. We are building in place.
24989 ac_srcdir=.
24990 if test -z "$ac_top_builddir"; then
24991 ac_top_srcdir=.
24992 else
24993 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24994 fi ;;
24995 [\\/]* | ?:[\\/]* ) # Absolute path.
24996 ac_srcdir=$srcdir$ac_dir_suffix;
24997 ac_top_srcdir=$srcdir ;;
24998 *) # Relative path.
24999 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25000 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25001esac
Reid Spencer17041682004-09-05 17:48:32 +000025002
25003# Do not use `cd foo && pwd` to compute absolute paths, because
25004# the directories may not exist.
25005case `pwd` in
25006.) ac_abs_builddir="$ac_dest_dir";;
25007*)
25008 case "$ac_dest_dir" in
25009 .) ac_abs_builddir=`pwd`;;
25010 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25011 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25012 esac;;
25013esac
25014case $ac_abs_builddir in
25015.) ac_abs_top_builddir=${ac_top_builddir}.;;
25016*)
25017 case ${ac_top_builddir}. in
25018 .) ac_abs_top_builddir=$ac_abs_builddir;;
25019 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25020 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25021 esac;;
25022esac
25023case $ac_abs_builddir in
25024.) ac_abs_srcdir=$ac_srcdir;;
25025*)
25026 case $ac_srcdir in
25027 .) ac_abs_srcdir=$ac_abs_builddir;;
25028 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25029 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25030 esac;;
25031esac
25032case $ac_abs_builddir in
25033.) ac_abs_top_srcdir=$ac_top_srcdir;;
25034*)
25035 case $ac_top_srcdir in
25036 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25037 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25038 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25039 esac;;
25040esac
Reid Spencerde8c47f2004-08-29 19:35:28 +000025041
25042
25043 case $srcdir in
25044 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25045 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25046 esac
25047
25048 # Try a symlink, then a hard link, then a copy.
25049 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25050 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25051 cp -p $srcdir/$ac_source $ac_dest ||
25052 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25053echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25054 { (exit 1); exit 1; }; }
25055done
25056_ACEOF
25057cat >>$CONFIG_STATUS <<\_ACEOF
25058
25059#
John Criswellc764fbc2003-09-06 15:17:13 +000025060# CONFIG_COMMANDS section.
25061#
25062for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25063 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25064 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25065 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25066$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer17041682004-09-05 17:48:32 +000025067 X"$ac_dest" : 'X\(//\)[^/]' \| \
25068 X"$ac_dest" : 'X\(//\)$' \| \
25069 X"$ac_dest" : 'X\(/\)' \| \
25070 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000025071echo X"$ac_dest" |
25072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25073 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25074 /^X\(\/\/\)$/{ s//\1/; q; }
25075 /^X\(\/\).*/{ s//\1/; q; }
25076 s/.*/./; q'`
Reid Spencer17041682004-09-05 17:48:32 +000025077 { if $as_mkdir_p; then
25078 mkdir -p "$ac_dir"
25079 else
25080 as_dir="$ac_dir"
25081 as_dirs=
25082 while test ! -d "$as_dir"; do
25083 as_dirs="$as_dir $as_dirs"
25084 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25085$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25086 X"$as_dir" : 'X\(//\)[^/]' \| \
25087 X"$as_dir" : 'X\(//\)$' \| \
25088 X"$as_dir" : 'X\(/\)' \| \
25089 . : '\(.\)' 2>/dev/null ||
25090echo X"$as_dir" |
25091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25092 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25093 /^X\(\/\/\)$/{ s//\1/; q; }
25094 /^X\(\/\).*/{ s//\1/; q; }
25095 s/.*/./; q'`
25096 done
25097 test ! -n "$as_dirs" || mkdir $as_dirs
25098 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25099echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25100 { (exit 1); exit 1; }; }; }
25101
John Criswellc764fbc2003-09-06 15:17:13 +000025102 ac_builddir=.
25103
25104if test "$ac_dir" != .; then
25105 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25106 # A "../" for each directory in $ac_dir_suffix.
25107 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25108else
25109 ac_dir_suffix= ac_top_builddir=
25110fi
25111
25112case $srcdir in
25113 .) # No --srcdir option. We are building in place.
25114 ac_srcdir=.
25115 if test -z "$ac_top_builddir"; then
25116 ac_top_srcdir=.
25117 else
25118 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25119 fi ;;
25120 [\\/]* | ?:[\\/]* ) # Absolute path.
25121 ac_srcdir=$srcdir$ac_dir_suffix;
25122 ac_top_srcdir=$srcdir ;;
25123 *) # Relative path.
25124 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25125 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25126esac
Reid Spencer17041682004-09-05 17:48:32 +000025127
25128# Do not use `cd foo && pwd` to compute absolute paths, because
25129# the directories may not exist.
25130case `pwd` in
25131.) ac_abs_builddir="$ac_dir";;
25132*)
25133 case "$ac_dir" in
25134 .) ac_abs_builddir=`pwd`;;
25135 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25136 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25137 esac;;
25138esac
25139case $ac_abs_builddir in
25140.) ac_abs_top_builddir=${ac_top_builddir}.;;
25141*)
25142 case ${ac_top_builddir}. in
25143 .) ac_abs_top_builddir=$ac_abs_builddir;;
25144 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25145 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25146 esac;;
25147esac
25148case $ac_abs_builddir in
25149.) ac_abs_srcdir=$ac_srcdir;;
25150*)
25151 case $ac_srcdir in
25152 .) ac_abs_srcdir=$ac_abs_builddir;;
25153 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25154 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25155 esac;;
25156esac
25157case $ac_abs_builddir in
25158.) ac_abs_top_srcdir=$ac_top_srcdir;;
25159*)
25160 case $ac_top_srcdir in
25161 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25162 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25163 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25164 esac;;
25165esac
John Criswellc764fbc2003-09-06 15:17:13 +000025166
25167
25168 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25169echo "$as_me: executing $ac_dest commands" >&6;}
25170 case $ac_dest in
25171 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25172 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000025173 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025174 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025175 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025176 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25177 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000025178 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25179 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025180 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000025181 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025182 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025183 esac
25184done
25185_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025186
25187cat >>$CONFIG_STATUS <<\_ACEOF
25188
25189{ (exit 0); exit 0; }
25190_ACEOF
25191chmod +x $CONFIG_STATUS
25192ac_clean_files=$ac_clean_files_save
25193
25194
25195# configure is writing to config.log, and then calls config.status.
25196# config.status does its own redirection, appending to config.log.
25197# Unfortunately, on DOS this fails, as config.log is still kept open
25198# by configure, so config.status won't be able to write to it; its
25199# output is simply discarded. So we exec the FD to /dev/null,
25200# effectively closing config.log, so it can be properly (re)opened and
25201# appended to by config.status. When coming back to configure, we
25202# need to make the FD available again.
25203if test "$no_create" != yes; then
25204 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000025205 ac_config_status_args=
25206 test "$silent" = yes &&
25207 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000025208 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000025209 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000025210 exec 5>>config.log
25211 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25212 # would make configure fail if this is the last instruction.
25213 $ac_cs_success || { (exit 1); exit 1; }
25214fi
25215
John Criswell12399a12003-09-30 15:55:44 +000025216#
25217# CONFIG_SUBDIRS section.
25218#
25219if test "$no_recursion" != yes; then
25220
25221 # Remove --cache-file and --srcdir arguments so they do not pile up.
25222 ac_sub_configure_args=
25223 ac_prev=
25224 for ac_arg in $ac_configure_args; do
25225 if test -n "$ac_prev"; then
25226 ac_prev=
25227 continue
25228 fi
25229 case $ac_arg in
25230 -cache-file | --cache-file | --cache-fil | --cache-fi \
25231 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25232 ac_prev=cache_file ;;
25233 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25234 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25235 | --c=*)
25236 ;;
25237 --config-cache | -C)
25238 ;;
25239 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25240 ac_prev=srcdir ;;
25241 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25242 ;;
25243 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25244 ac_prev=prefix ;;
25245 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25246 ;;
25247 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25248 esac
25249 done
25250
25251 # Always prepend --prefix to ensure using the same prefix
25252 # in subdir configurations.
25253 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25254
25255 ac_popdir=`pwd`
25256 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25257
25258 # Do not complain, so a configure script can configure whichever
25259 # parts of a large source tree are present.
25260 test -d $srcdir/$ac_dir || continue
25261
25262 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25263echo "$as_me: configuring in $ac_dir" >&6;}
25264 { if $as_mkdir_p; then
25265 mkdir -p "$ac_dir"
25266 else
25267 as_dir="$ac_dir"
25268 as_dirs=
25269 while test ! -d "$as_dir"; do
25270 as_dirs="$as_dir $as_dirs"
25271 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25272$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer17041682004-09-05 17:48:32 +000025273 X"$as_dir" : 'X\(//\)[^/]' \| \
25274 X"$as_dir" : 'X\(//\)$' \| \
25275 X"$as_dir" : 'X\(/\)' \| \
25276 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000025277echo X"$as_dir" |
25278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25279 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25280 /^X\(\/\/\)$/{ s//\1/; q; }
25281 /^X\(\/\).*/{ s//\1/; q; }
25282 s/.*/./; q'`
25283 done
25284 test ! -n "$as_dirs" || mkdir $as_dirs
25285 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25286echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25287 { (exit 1); exit 1; }; }; }
25288
25289 ac_builddir=.
25290
25291if test "$ac_dir" != .; then
25292 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25293 # A "../" for each directory in $ac_dir_suffix.
25294 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25295else
25296 ac_dir_suffix= ac_top_builddir=
25297fi
25298
25299case $srcdir in
25300 .) # No --srcdir option. We are building in place.
25301 ac_srcdir=.
25302 if test -z "$ac_top_builddir"; then
25303 ac_top_srcdir=.
25304 else
25305 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25306 fi ;;
25307 [\\/]* | ?:[\\/]* ) # Absolute path.
25308 ac_srcdir=$srcdir$ac_dir_suffix;
25309 ac_top_srcdir=$srcdir ;;
25310 *) # Relative path.
25311 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25312 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25313esac
Reid Spencer17041682004-09-05 17:48:32 +000025314
25315# Do not use `cd foo && pwd` to compute absolute paths, because
25316# the directories may not exist.
25317case `pwd` in
25318.) ac_abs_builddir="$ac_dir";;
25319*)
25320 case "$ac_dir" in
25321 .) ac_abs_builddir=`pwd`;;
25322 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25323 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25324 esac;;
25325esac
25326case $ac_abs_builddir in
25327.) ac_abs_top_builddir=${ac_top_builddir}.;;
25328*)
25329 case ${ac_top_builddir}. in
25330 .) ac_abs_top_builddir=$ac_abs_builddir;;
25331 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25332 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25333 esac;;
25334esac
25335case $ac_abs_builddir in
25336.) ac_abs_srcdir=$ac_srcdir;;
25337*)
25338 case $ac_srcdir in
25339 .) ac_abs_srcdir=$ac_abs_builddir;;
25340 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25341 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25342 esac;;
25343esac
25344case $ac_abs_builddir in
25345.) ac_abs_top_srcdir=$ac_top_srcdir;;
25346*)
25347 case $ac_top_srcdir in
25348 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25349 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25350 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25351 esac;;
25352esac
John Criswell12399a12003-09-30 15:55:44 +000025353
25354
25355 cd $ac_dir
25356
25357 # Check for guested configure; otherwise get Cygnus style configure.
25358 if test -f $ac_srcdir/configure.gnu; then
25359 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25360 elif test -f $ac_srcdir/configure; then
25361 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25362 elif test -f $ac_srcdir/configure.in; then
25363 ac_sub_configure=$ac_configure
25364 else
25365 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25366echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25367 ac_sub_configure=
25368 fi
25369
25370 # The recursion is here.
25371 if test -n "$ac_sub_configure"; then
25372 # Make the cache file name correct relative to the subdirectory.
25373 case $cache_file in
25374 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25375 *) # Relative path.
Reid Spencer17041682004-09-05 17:48:32 +000025376 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000025377 esac
25378
25379 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25380echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25381 # The eval makes quoting arguments work.
25382 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer17041682004-09-05 17:48:32 +000025383 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25384 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000025385echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25386 { (exit 1); exit 1; }; }
25387 fi
25388
25389 cd $ac_popdir
25390 done
25391fi
25392
Brian Gaekef3b24102003-11-16 18:38:14 +000025393
25394if test $llvmgccwarn = yes
25395then
25396 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25397echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25398 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25399echo "$as_me: WARNING: ***** appear to be working." >&2;}
25400 { echo "$as_me:$LINENO: WARNING: ***** " >&5
25401echo "$as_me: WARNING: ***** " >&2;}
25402 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25403echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25404 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25405echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25406 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25407echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
25408fi
Brian Gaeke554831c2004-01-21 19:39:29 +000025409