blob: 902d5251839bf95546c9a946f37e879ee247db78 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencerabec8f92004-10-27 23:03:44 +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 Spencer2706f8c2004-09-19 23:53:36 +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.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000010#
11# $LLVM_COPYRIGHT
John Criswell0c38eaf2003-09-10 15:17:25 +000012## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000027
28# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030 as_unset=unset
31else
32 as_unset=false
33fi
34
35
36# Work around bugs in pre-3.0 UWIN ksh.
37$as_unset ENV MAIL MAILPATH
38PS1='$ '
39PS2='> '
40PS4='+ '
41
42# NLS nuisances.
43for as_var in \
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 LC_TELEPHONE LC_TIME
47do
Reid Spencer2706f8c2004-09-19 23:53:36 +000048 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000049 eval $as_var=C; export $as_var
50 else
51 $as_unset $as_var
52 fi
53done
54
55# Required to use basename.
56if expr a : '\(a\)' >/dev/null 2>&1; then
57 as_expr=expr
58else
59 as_expr=false
60fi
61
62if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63 as_basename=basename
64else
65 as_basename=false
66fi
67
68
69# Name of the executable.
70as_me=`$as_basename "$0" ||
71$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
75echo X/"$0" |
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
79 s/.*/./; q'`
80
81
82# PATH needs CR, and LINENO needs CR and PATH.
83# Avoid depending upon Character Ranges.
84as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87as_cr_digits='0123456789'
88as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90# The user is always right.
91if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
94 chmod +x conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96 PATH_SEPARATOR=';'
97 else
98 PATH_SEPARATOR=:
99 fi
100 rm -f conf$$.sh
101fi
102
103
104 as_lineno_1=$LINENO
105 as_lineno_2=$LINENO
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
110 # relative or not.
111 case $0 in
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114for as_dir in $PATH
115do
116 IFS=$as_save_IFS
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119done
120
121 ;;
122 esac
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
126 as_myself=$0
127 fi
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
131 fi
132 case $CONFIG_SHELL in
133 '')
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136do
137 IFS=$as_save_IFS
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
140 case $as_dir in
141 /*)
142 if ("$as_dir/$as_base" -c '
143 as_lineno_1=$LINENO
144 as_lineno_2=$LINENO
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
151 export CONFIG_SHELL
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 fi;;
154 esac
155 done
156done
157;;
158 esac
159
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
169 sed '
170 N
171 s,$,-,
172 : loop
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 t loop
175 s,-$,,
176 s,^['$as_cr_digits']*\n,,
177 ' >$as_me.lineno &&
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
181
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
185 . ./$as_me.lineno
186 # Exit status is that of the last command.
187 exit
188}
189
190
191case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
193' ECHO_T=' ' ;;
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196esac
197
198if expr a : '\(a\)' >/dev/null 2>&1; then
199 as_expr=expr
200else
201 as_expr=false
202fi
203
204rm -f conf$$ conf$$.exe conf$$.file
205echo >conf$$.file
206if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
211 as_ln_s='cp -p'
212 else
213 as_ln_s='ln -s'
214 fi
215elif ln conf$$.file conf$$ 2>/dev/null; then
216 as_ln_s=ln
217else
218 as_ln_s='cp -p'
219fi
220rm -f conf$$ conf$$.exe conf$$.file
221
222if mkdir -p . 2>/dev/null; then
223 as_mkdir_p=:
224else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000225 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000226 as_mkdir_p=false
227fi
228
229as_executable_p="test -f"
230
231# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000233
234# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000236
237
238# IFS
239# We need space, tab and new line, in precisely that order.
240as_nl='
241'
242IFS=" $as_nl"
243
244# CDPATH.
245$as_unset CDPATH
246
John Criswell7a73b802003-06-30 21:59:07 +0000247
John Criswell7a73b802003-06-30 21:59:07 +0000248
249# Check that we are running under the correct shell.
250SHELL=${CONFIG_SHELL-/bin/sh}
251
252case X$ECHO in
253X*--fallback-echo)
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 ;;
257esac
258
259echo=${ECHO-echo}
260if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
262 shift
263elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
265 :
John Criswell47fdd832003-07-14 16:52:07 +0000266elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000267 # Yippee, $echo works!
268 :
269else
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
272fi
273
274if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
276 shift
277 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000278$*
John Criswell7a73b802003-06-30 21:59:07 +0000279EOF
280 exit 0
281fi
282
283# The HP-UX ksh and POSIX shell print the target directory to stdout
284# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000285(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000286
287if test -z "$ECHO"; then
288if test "X${echo_test_string+set}" != Xset; then
289# find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295 then
296 break
297 fi
298 done
299fi
300
301if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
304 :
305else
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
309 #
310 # So, first we look for a working echo in the user's PATH.
311
John Criswell47fdd832003-07-14 16:52:07 +0000312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000313 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000314 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
319 echo="$dir/echo"
320 break
321 fi
322 done
John Criswell47fdd832003-07-14 16:52:07 +0000323 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000324
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
331 echo='print -r'
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
338 export CONFIG_SHELL
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 else
341 # Try using printf.
342 echo='printf %s\n'
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
346 # Cool, printf works
347 :
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353 export CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
355 export SHELL
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 else
363 # maybe with a smaller string...
364 prev=:
365
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368 then
369 break
370 fi
371 prev="$cmd"
372 done
373
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378 else
379 # Oops. We lost completely, so just stick with echo.
380 echo=echo
381 fi
382 fi
383 fi
384 fi
385fi
386fi
387
388# Copy echo and quote the copy suitably for passing to libtool from
389# the Makefile, instead of quoting the original, which is used later.
390ECHO=$echo
391if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393fi
394
395
396
John Criswell47fdd832003-07-14 16:52:07 +0000397
Reid Spencer2706f8c2004-09-19 23:53:36 +0000398tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000399
Reid Spencer2706f8c2004-09-19 23:53:36 +0000400tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000401
John Criswell7a73b802003-06-30 21:59:07 +0000402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000413ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete. It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000426PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000427PACKAGE_TARNAME='-llvm-'
Reid Spencere9de0912004-08-20 09:03:57 +0000428PACKAGE_VERSION='1.4'
Reid Spencerabec8f92004-10-27 23:03:44 +0000429PACKAGE_STRING='llvm 1.4'
John Criswell7a73b802003-06-30 21:59:07 +0000430PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000432ac_unique_file="lib/VMCore/Module.cpp"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000433ac_subdirs_all="$ac_subdirs_all projects/sample"
434ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
Reid Spencer641f7ef2004-09-20 22:14:56 +0000438ac_subdirs_all="$ac_subdirs_all projects/Java"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000439ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
John Criswelle96aa1c2004-10-28 13:35:00 +0000441ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
John Criswell7a73b802003-06-30 21:59:07 +0000442# Factoring default headers for most tests.
443ac_includes_default="\
444#include <stdio.h>
445#if HAVE_SYS_TYPES_H
446# include <sys/types.h>
447#endif
448#if HAVE_SYS_STAT_H
449# include <sys/stat.h>
450#endif
451#if STDC_HEADERS
452# include <stdlib.h>
453# include <stddef.h>
454#else
455# if HAVE_STDLIB_H
456# include <stdlib.h>
457# endif
458#endif
459#if HAVE_STRING_H
460# if !STDC_HEADERS && HAVE_MEMORY_H
461# include <memory.h>
462# endif
463# include <string.h>
464#endif
465#if HAVE_STRINGS_H
466# include <strings.h>
467#endif
468#if HAVE_INTTYPES_H
469# include <inttypes.h>
470#else
471# if HAVE_STDINT_H
472# include <stdint.h>
473# endif
474#endif
475#if HAVE_UNISTD_H
476# include <unistd.h>
477#endif"
478
Reid Spencer502935f2004-12-22 05:56:56 +0000479ac_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 LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP LLVMGCC LLVMGXX MKDIR MV PAX RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR 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 +0000480ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000481
482# Initialize some variables set by options.
483ac_init_help=
484ac_init_version=false
485# The variables have the same names as the options, with
486# dashes changed to underlines.
487cache_file=/dev/null
488exec_prefix=NONE
489no_create=
490no_recursion=
491prefix=NONE
492program_prefix=NONE
493program_suffix=NONE
494program_transform_name=s,x,x,
495silent=
496site=
497srcdir=
498verbose=
499x_includes=NONE
500x_libraries=NONE
501
502# Installation directory options.
503# These are left unexpanded so users can "make install exec_prefix=/foo"
504# and all the variables that are supposed to be based on exec_prefix
505# by default will actually change.
506# Use braces instead of parens because sh, perl, etc. also accept them.
507bindir='${exec_prefix}/bin'
508sbindir='${exec_prefix}/sbin'
509libexecdir='${exec_prefix}/libexec'
510datadir='${prefix}/share'
511sysconfdir='${prefix}/etc'
512sharedstatedir='${prefix}/com'
513localstatedir='${prefix}/var'
514libdir='${exec_prefix}/lib'
515includedir='${prefix}/include'
516oldincludedir='/usr/include'
517infodir='${prefix}/info'
518mandir='${prefix}/man'
519
520ac_prev=
521for ac_option
522do
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
526 ac_prev=
527 continue
528 fi
529
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532 # Accept the important Cygnus configure options, so we can diagnose typos.
533
534 case $ac_option in
535
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
537 ac_prev=bindir ;;
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539 bindir=$ac_optarg ;;
540
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
545
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
552
553 --config-cache | -C)
554 cache_file=config.cache ;;
555
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557 ac_prev=datadir ;;
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559 | --da=*)
560 datadir=$ac_optarg ;;
561
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
570
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "enable_$ac_feature='$ac_optarg'" ;;
583
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
592
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
595 with_gas=yes ;;
596
597 -help | --help | --hel | --he | -h)
598 ac_init_help=long ;;
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
603
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
608
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
615
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
617 ac_prev=infodir ;;
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
620
621 -libdir | --libdir | --libdi | --libd)
622 ac_prev=libdir ;;
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
624 libdir=$ac_optarg ;;
625
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
632
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
641
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643 ac_prev=mandir ;;
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645 mandir=$ac_optarg ;;
646
647 -nfp | --nfp | --nf)
648 # Obsolete; use --without-fp.
649 with_fp=no ;;
650
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
653 no_create=yes ;;
654
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657 no_recursion=yes ;;
658
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
667
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669 ac_prev=prefix ;;
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671 prefix=$ac_optarg ;;
672
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
679
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
686
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
703
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
706 silent=yes ;;
707
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709 ac_prev=sbindir ;;
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711 | --sbi=* | --sb=*)
712 sbindir=$ac_optarg ;;
713
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
717 | --sha | --sh)
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722 | --sha=* | --sh=*)
723 sharedstatedir=$ac_optarg ;;
724
725 -site | --site | --sit)
726 ac_prev=site ;;
727 -site=* | --site=* | --sit=*)
728 site=$ac_optarg ;;
729
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731 ac_prev=srcdir ;;
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733 srcdir=$ac_optarg ;;
734
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
741
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
746
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
748 verbose=yes ;;
749
750 -version | --version | --versio | --versi | --vers | -V)
751 ac_init_version=: ;;
752
753 -with-* | --with-*)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
760 case $ac_option in
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762 *) ac_optarg=yes ;;
763 esac
764 eval "with_$ac_package='$ac_optarg'" ;;
765
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
774
775 --x)
776 # Obsolete; use --with-x.
777 with_x=yes ;;
778
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
785
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
792
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
796 ;;
797
798 *=*)
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
806 export $ac_envvar ;;
807
808 *)
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814 ;;
815
816 esac
817done
818
819if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
823fi
824
825# Be sure to have absolute paths.
826for ac_var in exec_prefix prefix
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# Be sure to have absolute paths.
837for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000838 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000839do
840 eval ac_val=$`echo $ac_var`
841 case $ac_val in
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
845 esac
846done
847
848# There might be people who depend on the old broken behavior: `$host'
849# used to hold the argument of --host etc.
850# FIXME: To remove some day.
851build=$build_alias
852host=$host_alias
853target=$target_alias
854
855# FIXME: To remove some day.
856if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
862 cross_compiling=yes
863 fi
864fi
865
866ac_tool_prefix=
867test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869test "$silent" = yes && exec 6>/dev/null
870
871
872# Find the source files, if location was not specified.
873if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000882echo X"$0" |
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
887 s/.*/./; q'`
888 srcdir=$ac_confdir
889 if test ! -r $srcdir/$ac_unique_file; then
890 srcdir=..
891 fi
892else
893 ac_srcdir_defaulted=no
894fi
895if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
899 else
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
902 fi
903fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000904(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000907srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908ac_env_build_alias_set=${build_alias+set}
909ac_env_build_alias_value=$build_alias
910ac_cv_env_build_alias_set=${build_alias+set}
911ac_cv_env_build_alias_value=$build_alias
912ac_env_host_alias_set=${host_alias+set}
913ac_env_host_alias_value=$host_alias
914ac_cv_env_host_alias_set=${host_alias+set}
915ac_cv_env_host_alias_value=$host_alias
916ac_env_target_alias_set=${target_alias+set}
917ac_env_target_alias_value=$target_alias
918ac_cv_env_target_alias_set=${target_alias+set}
919ac_cv_env_target_alias_value=$target_alias
John Criswell7a73b802003-06-30 21:59:07 +0000920ac_env_CC_set=${CC+set}
921ac_env_CC_value=$CC
922ac_cv_env_CC_set=${CC+set}
923ac_cv_env_CC_value=$CC
924ac_env_CFLAGS_set=${CFLAGS+set}
925ac_env_CFLAGS_value=$CFLAGS
926ac_cv_env_CFLAGS_set=${CFLAGS+set}
927ac_cv_env_CFLAGS_value=$CFLAGS
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000928ac_env_LDFLAGS_set=${LDFLAGS+set}
929ac_env_LDFLAGS_value=$LDFLAGS
930ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931ac_cv_env_LDFLAGS_value=$LDFLAGS
932ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_env_CPPFLAGS_value=$CPPFLAGS
934ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935ac_cv_env_CPPFLAGS_value=$CPPFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000936ac_env_CPP_set=${CPP+set}
937ac_env_CPP_value=$CPP
938ac_cv_env_CPP_set=${CPP+set}
939ac_cv_env_CPP_value=$CPP
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000940ac_env_CXX_set=${CXX+set}
941ac_env_CXX_value=$CXX
942ac_cv_env_CXX_set=${CXX+set}
943ac_cv_env_CXX_value=$CXX
944ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945ac_env_CXXFLAGS_value=$CXXFLAGS
946ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947ac_cv_env_CXXFLAGS_value=$CXXFLAGS
John Criswell47fdd832003-07-14 16:52:07 +0000948ac_env_CXXCPP_set=${CXXCPP+set}
949ac_env_CXXCPP_value=$CXXCPP
950ac_cv_env_CXXCPP_set=${CXXCPP+set}
951ac_cv_env_CXXCPP_value=$CXXCPP
952ac_env_F77_set=${F77+set}
953ac_env_F77_value=$F77
954ac_cv_env_F77_set=${F77+set}
955ac_cv_env_F77_value=$F77
956ac_env_FFLAGS_set=${FFLAGS+set}
957ac_env_FFLAGS_value=$FFLAGS
958ac_cv_env_FFLAGS_set=${FFLAGS+set}
959ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000960
961#
962# Report the --help message.
963#
964if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
967 cat <<_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +0000968\`configure' configures llvm 1.4 to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000969
970Usage: $0 [OPTION]... [VAR=VALUE]...
971
972To assign environment variables (e.g., CC, CFLAGS...), specify them as
973VAR=VALUE. See below for descriptions of some of the useful variables.
974
975Defaults for the options are specified in brackets.
976
977Configuration:
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
987
988_ACEOF
989
990 cat <<_ACEOF
991Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000993 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000995 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000996
997By default, \`make install' will install all the files in
998\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000for instance \`--prefix=\$HOME'.
1001
1002For better control, use the options below.
1003
1004Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1017_ACEOF
1018
1019 cat <<\_ACEOF
1020
1021System types:
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1025_ACEOF
1026fi
1027
1028if test -n "$ac_init_help"; then
1029 case $ac_init_help in
Reid Spencerabec8f92004-10-27 23:03:44 +00001030 short | recursive ) echo "Configuration of llvm 1.4:";;
John Criswell7a73b802003-06-30 21:59:07 +00001031 esac
1032 cat <<\_ACEOF
1033
1034Optional Features:
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001037 --enable-optimized
1038 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001039 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001040 --enable-ltdl-install install libltdl
John Criswell47fdd832003-07-14 16:52:07 +00001041 --enable-shared[=PKGS]
1042 build shared libraries [default=yes]
1043 --enable-static[=PKGS]
1044 build static libraries [default=yes]
1045 --enable-fast-install[=PKGS]
1046 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001047 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001048
1049Optional Packages:
1050 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1051 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001052 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001053 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1054 --with-pic try to use only PIC/non-PIC objects [default=use
1055 both]
1056 --with-tags[=TAGS]
1057 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001058
1059Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001060 CC C compiler command
1061 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001062 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1063 nonstandard directory <lib dir>
1064 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1065 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001066 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001067 CXX C++ compiler command
1068 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001069 CXXCPP C++ preprocessor
1070 F77 Fortran 77 compiler command
1071 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001072
1073Use these variables to override the choices made by `configure' or to help
1074it to find libraries and programs with nonstandard names/locations.
1075
1076Report bugs to <llvmbugs@cs.uiuc.edu>.
1077_ACEOF
1078fi
1079
1080if test "$ac_init_help" = "recursive"; then
1081 # If there are subdirs, report their specific --help.
1082 ac_popdir=`pwd`
1083 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1084 test -d $ac_dir || continue
1085 ac_builddir=.
1086
1087if test "$ac_dir" != .; then
1088 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1089 # A "../" for each directory in $ac_dir_suffix.
1090 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1091else
1092 ac_dir_suffix= ac_top_builddir=
1093fi
1094
1095case $srcdir in
1096 .) # No --srcdir option. We are building in place.
1097 ac_srcdir=.
1098 if test -z "$ac_top_builddir"; then
1099 ac_top_srcdir=.
1100 else
1101 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1102 fi ;;
1103 [\\/]* | ?:[\\/]* ) # Absolute path.
1104 ac_srcdir=$srcdir$ac_dir_suffix;
1105 ac_top_srcdir=$srcdir ;;
1106 *) # Relative path.
1107 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1108 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1109esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001110
1111# Do not use `cd foo && pwd` to compute absolute paths, because
1112# the directories may not exist.
1113case `pwd` in
1114.) ac_abs_builddir="$ac_dir";;
1115*)
1116 case "$ac_dir" in
1117 .) ac_abs_builddir=`pwd`;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1119 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1120 esac;;
1121esac
1122case $ac_abs_builddir in
1123.) ac_abs_top_builddir=${ac_top_builddir}.;;
1124*)
1125 case ${ac_top_builddir}. in
1126 .) ac_abs_top_builddir=$ac_abs_builddir;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1128 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1129 esac;;
1130esac
1131case $ac_abs_builddir in
1132.) ac_abs_srcdir=$ac_srcdir;;
1133*)
1134 case $ac_srcdir in
1135 .) ac_abs_srcdir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1137 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1138 esac;;
1139esac
1140case $ac_abs_builddir in
1141.) ac_abs_top_srcdir=$ac_top_srcdir;;
1142*)
1143 case $ac_top_srcdir in
1144 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1146 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1147 esac;;
1148esac
John Criswell7a73b802003-06-30 21:59:07 +00001149
1150 cd $ac_dir
1151 # Check for guested configure; otherwise get Cygnus style configure.
1152 if test -f $ac_srcdir/configure.gnu; then
1153 echo
1154 $SHELL $ac_srcdir/configure.gnu --help=recursive
1155 elif test -f $ac_srcdir/configure; then
1156 echo
1157 $SHELL $ac_srcdir/configure --help=recursive
1158 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001159 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001160 echo
1161 $ac_configure --help
1162 else
1163 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1164 fi
1165 cd $ac_popdir
1166 done
1167fi
1168
1169test -n "$ac_init_help" && exit 0
1170if $ac_init_version; then
1171 cat <<\_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +00001172llvm configure 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +00001173generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001174
Reid Spencer2706f8c2004-09-19 23:53:36 +00001175Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001176This configure script is free software; the Free Software Foundation
1177gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001178
1179$LLVM_COPYRIGHT
John Criswell7a73b802003-06-30 21:59:07 +00001180_ACEOF
1181 exit 0
1182fi
1183exec 5>config.log
1184cat >&5 <<_ACEOF
1185This file contains any messages produced by compilers while
1186running configure, to aid debugging if configure makes a mistake.
1187
Reid Spencerabec8f92004-10-27 23:03:44 +00001188It was created by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001189generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001190
1191 $ $0 $@
1192
1193_ACEOF
1194{
1195cat <<_ASUNAME
1196## --------- ##
1197## Platform. ##
1198## --------- ##
1199
1200hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1201uname -m = `(uname -m) 2>/dev/null || echo unknown`
1202uname -r = `(uname -r) 2>/dev/null || echo unknown`
1203uname -s = `(uname -s) 2>/dev/null || echo unknown`
1204uname -v = `(uname -v) 2>/dev/null || echo unknown`
1205
1206/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1207/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1208
1209/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1210/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1211/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1212hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1213/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1214/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1215/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1216
1217_ASUNAME
1218
1219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1220for as_dir in $PATH
1221do
1222 IFS=$as_save_IFS
1223 test -z "$as_dir" && as_dir=.
1224 echo "PATH: $as_dir"
1225done
1226
1227} >&5
1228
1229cat >&5 <<_ACEOF
1230
1231
1232## ----------- ##
1233## Core tests. ##
1234## ----------- ##
1235
1236_ACEOF
1237
1238
1239# Keep a trace of the command line.
1240# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001241# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001242# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001243# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001244ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001245ac_configure_args0=
1246ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001247ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001248ac_must_keep_next=false
1249for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001250do
John Criswell0c38eaf2003-09-10 15:17:25 +00001251 for ac_arg
1252 do
1253 case $ac_arg in
1254 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256 | -silent | --silent | --silen | --sile | --sil)
1257 continue ;;
1258 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1260 esac
1261 case $ac_pass in
1262 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1263 2)
1264 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1265 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001266 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001267 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001268 case $ac_arg in
1269 *=* | --config-cache | -C | -disable-* | --disable-* \
1270 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1271 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1272 | -with-* | --with-* | -without-* | --without-* | --x)
1273 case "$ac_configure_args0 " in
1274 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1275 esac
1276 ;;
1277 -* ) ac_must_keep_next=true ;;
1278 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001279 fi
1280 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1281 # Get rid of the leading space.
1282 ac_sep=" "
1283 ;;
1284 esac
1285 done
John Criswell7a73b802003-06-30 21:59:07 +00001286done
John Criswell0c38eaf2003-09-10 15:17:25 +00001287$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1288$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001289
1290# When interrupted or exit'd, cleanup temporary files, and complete
1291# config.log. We remove comments because anyway the quotes in there
1292# would cause problems or look ugly.
1293# WARNING: Be sure not to use single quotes in there, as some shells,
1294# such as our DU 5.0 friend, will then `close' the trap.
1295trap 'exit_status=$?
1296 # Save into config.log some information that might help in debugging.
1297 {
1298 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001299
John Criswell7a73b802003-06-30 21:59:07 +00001300 cat <<\_ASBOX
1301## ---------------- ##
1302## Cache variables. ##
1303## ---------------- ##
1304_ASBOX
1305 echo
1306 # The following way of writing the cache mishandles newlines in values,
1307{
1308 (set) 2>&1 |
1309 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1310 *ac_space=\ *)
1311 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001312 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1313 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001314 ;;
1315 *)
1316 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001317 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001318 ;;
1319 esac;
1320}
1321 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001322
1323 cat <<\_ASBOX
1324## ----------------- ##
1325## Output variables. ##
1326## ----------------- ##
1327_ASBOX
1328 echo
1329 for ac_var in $ac_subst_vars
1330 do
1331 eval ac_val=$`echo $ac_var`
1332 echo "$ac_var='"'"'$ac_val'"'"'"
1333 done | sort
1334 echo
1335
1336 if test -n "$ac_subst_files"; then
1337 cat <<\_ASBOX
1338## ------------- ##
1339## Output files. ##
1340## ------------- ##
1341_ASBOX
1342 echo
1343 for ac_var in $ac_subst_files
1344 do
1345 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001346 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001347 done | sort
1348 echo
1349 fi
1350
John Criswell7a73b802003-06-30 21:59:07 +00001351 if test -s confdefs.h; then
1352 cat <<\_ASBOX
1353## ----------- ##
1354## confdefs.h. ##
1355## ----------- ##
1356_ASBOX
1357 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001358 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001359 echo
1360 fi
1361 test "$ac_signal" != 0 &&
1362 echo "$as_me: caught signal $ac_signal"
1363 echo "$as_me: exit $exit_status"
1364 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001365 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001366 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1367 exit $exit_status
1368 ' 0
1369for ac_signal in 1 2 13 15; do
1370 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1371done
1372ac_signal=0
1373
1374# confdefs.h avoids OS command line length limits that DEFS can exceed.
1375rm -rf conftest* confdefs.h
1376# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1377echo >confdefs.h
1378
1379# Predefined preprocessor variables.
1380
1381cat >>confdefs.h <<_ACEOF
1382#define PACKAGE_NAME "$PACKAGE_NAME"
1383_ACEOF
1384
1385
1386cat >>confdefs.h <<_ACEOF
1387#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1388_ACEOF
1389
1390
1391cat >>confdefs.h <<_ACEOF
1392#define PACKAGE_VERSION "$PACKAGE_VERSION"
1393_ACEOF
1394
1395
1396cat >>confdefs.h <<_ACEOF
1397#define PACKAGE_STRING "$PACKAGE_STRING"
1398_ACEOF
1399
1400
1401cat >>confdefs.h <<_ACEOF
1402#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1403_ACEOF
1404
1405
1406# Let the site file select an alternate cache file if it wants to.
1407# Prefer explicitly selected file to automatically selected ones.
1408if test -z "$CONFIG_SITE"; then
1409 if test "x$prefix" != xNONE; then
1410 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1411 else
1412 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1413 fi
1414fi
1415for ac_site_file in $CONFIG_SITE; do
1416 if test -r "$ac_site_file"; then
1417 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1418echo "$as_me: loading site script $ac_site_file" >&6;}
1419 sed 's/^/| /' "$ac_site_file" >&5
1420 . "$ac_site_file"
1421 fi
1422done
1423
1424if test -r "$cache_file"; then
1425 # Some versions of bash will fail to source /dev/null (special
1426 # files actually), so we avoid doing that.
1427 if test -f "$cache_file"; then
1428 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1429echo "$as_me: loading cache $cache_file" >&6;}
1430 case $cache_file in
1431 [\\/]* | ?:[\\/]* ) . $cache_file;;
1432 *) . ./$cache_file;;
1433 esac
1434 fi
1435else
1436 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1437echo "$as_me: creating cache $cache_file" >&6;}
1438 >$cache_file
1439fi
1440
1441# Check that the precious variables saved in the cache have kept the same
1442# value.
1443ac_cache_corrupted=false
1444for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001445 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001446 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1447 eval ac_new_set=\$ac_env_${ac_var}_set
1448 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1449 eval ac_new_val="\$ac_env_${ac_var}_value"
1450 case $ac_old_set,$ac_new_set in
1451 set,)
1452 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1453echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1454 ac_cache_corrupted=: ;;
1455 ,set)
1456 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1457echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1458 ac_cache_corrupted=: ;;
1459 ,);;
1460 *)
1461 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001462 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001463echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001464 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001465echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001466 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001467echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001468 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001469 fi;;
1470 esac
1471 # Pass precious variables to config.status.
1472 if test "$ac_new_set" = set; then
1473 case $ac_new_val in
1474 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1475 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1476 *) ac_arg=$ac_var=$ac_new_val ;;
1477 esac
1478 case " $ac_configure_args " in
1479 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1480 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1481 esac
1482 fi
1483done
1484if $ac_cache_corrupted; then
1485 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1486echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1487 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1488echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1489 { (exit 1); exit 1; }; }
1490fi
1491
1492ac_ext=c
1493ac_cpp='$CPP $CPPFLAGS'
1494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1496ac_compiler_gnu=$ac_cv_c_compiler_gnu
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
John Criswell0c38eaf2003-09-10 15:17:25 +00001524
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001525LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1526
1527
1528
1529
1530
1531
1532
John Criswell7a73b802003-06-30 21:59:07 +00001533ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001534for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001535 if test -f $ac_dir/install-sh; then
1536 ac_aux_dir=$ac_dir
1537 ac_install_sh="$ac_aux_dir/install-sh -c"
1538 break
1539 elif test -f $ac_dir/install.sh; then
1540 ac_aux_dir=$ac_dir
1541 ac_install_sh="$ac_aux_dir/install.sh -c"
1542 break
1543 elif test -f $ac_dir/shtool; then
1544 ac_aux_dir=$ac_dir
1545 ac_install_sh="$ac_aux_dir/shtool install -c"
1546 break
1547 fi
1548done
1549if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001550 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1551echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001552 { (exit 1); exit 1; }; }
1553fi
1554ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1555ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1556ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1557
John Criswell392aaa32003-07-22 19:18:09 +00001558
Reid Spencer2706f8c2004-09-19 23:53:36 +00001559if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001560 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1561 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001562echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1563 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001564 fi
John Criswell93e1c722003-09-15 17:04:06 +00001565fi
1566
John Criswell33a911a2003-11-25 20:36:46 +00001567for i in `ls ${srcdir}/projects`
1568do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001569 if test -d ${srcdir}/projects/${i} ; then
1570 case ${i} in
1571 "CVS") ;;
1572 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001573
Reid Spencer4d68ba22004-09-07 16:35:45 +00001574subdirs="$subdirs projects/sample"
1575 ;;
1576 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001577
Reid Spencer4d68ba22004-09-07 16:35:45 +00001578subdirs="$subdirs projects/Stacker"
1579 ;;
1580 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001581
Reid Spencer4d68ba22004-09-07 16:35:45 +00001582subdirs="$subdirs projects/llvm-test"
1583 ;;
1584 "llvm-reopt")
1585
1586subdirs="$subdirs projects/llvm-reopt"
1587;;
1588 "llvm-gcc")
1589
1590subdirs="$subdirs projects/llvm-gcc"
1591 ;;
Reid Spencer641f7ef2004-09-20 22:14:56 +00001592 "Java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001593
Reid Spencer641f7ef2004-09-20 22:14:56 +00001594subdirs="$subdirs projects/Java"
1595 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001596 "llvm-tv")
1597
1598subdirs="$subdirs projects/llvm-tv"
1599 ;;
1600 "llvm-fefw")
1601
1602subdirs="$subdirs projects/llvm-fefw"
1603 ;;
John Criswelle96aa1c2004-10-28 13:35:00 +00001604 "poolalloc")
1605
1606subdirs="$subdirs projects/poolalloc"
1607 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001608 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001609 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1610echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001611 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001612 esac
John Criswell33a911a2003-11-25 20:36:46 +00001613 fi
1614done
John Criswell559a6c12003-09-30 16:31:48 +00001615
John Criswell7a73b802003-06-30 21:59:07 +00001616
1617# Make sure we can run config.sub.
1618$ac_config_sub sun4 >/dev/null 2>&1 ||
1619 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1620echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621 { (exit 1); exit 1; }; }
1622
1623echo "$as_me:$LINENO: checking build system type" >&5
1624echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625if test "${ac_cv_build+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627else
1628 ac_cv_build_alias=$build_alias
1629test -z "$ac_cv_build_alias" &&
1630 ac_cv_build_alias=`$ac_config_guess`
1631test -z "$ac_cv_build_alias" &&
1632 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1633echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634 { (exit 1); exit 1; }; }
1635ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1638 { (exit 1); exit 1; }; }
1639
1640fi
1641echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1642echo "${ECHO_T}$ac_cv_build" >&6
1643build=$ac_cv_build
1644build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647
1648
1649echo "$as_me:$LINENO: checking host system type" >&5
1650echo $ECHO_N "checking host system type... $ECHO_C" >&6
1651if test "${ac_cv_host+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653else
1654 ac_cv_host_alias=$host_alias
1655test -z "$ac_cv_host_alias" &&
1656 ac_cv_host_alias=$ac_cv_build_alias
1657ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1659echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1660 { (exit 1); exit 1; }; }
1661
1662fi
1663echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1664echo "${ECHO_T}$ac_cv_host" >&6
1665host=$ac_cv_host
1666host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1669
1670
1671echo "$as_me:$LINENO: checking target system type" >&5
1672echo $ECHO_N "checking target system type... $ECHO_C" >&6
1673if test "${ac_cv_target+set}" = set; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
1675else
1676 ac_cv_target_alias=$target_alias
1677test "x$ac_cv_target_alias" = "x" &&
1678 ac_cv_target_alias=$ac_cv_host_alias
1679ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1680 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1681echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1682 { (exit 1); exit 1; }; }
1683
1684fi
1685echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1686echo "${ECHO_T}$ac_cv_target" >&6
1687target=$ac_cv_target
1688target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1689target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1690target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1691
1692
1693# The aliases save the names the user supplied, while $host etc.
1694# will get canonicalized.
1695test -n "$target_alias" &&
1696 test "$program_prefix$program_suffix$program_transform_name" = \
1697 NONENONEs,x,x, &&
1698 program_prefix=${target_alias}-
1699
Reid Spencer73fb5482004-08-31 14:20:36 +00001700echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1701echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001702if test "${llvm_cv_platform_type+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1704else
1705 case $build in
1706 *-*-aix*) llvm_cv_platform_type="AIX" ;;
1707 *-*-cygwin*) llvm_cv_platform_type="Cygwin" ;;
1708 *-*-darwin*) llvm_cv_platform_type="Darwin" ;;
1709 *-*-freebsd*) llvm_cv_platform_type="FreeBSD" ;;
1710 *-*-interix*) llvm_cv_platform_type="Interix" ;;
1711 *-*-linux*) llvm_cv_platform_type="Linux" ;;
1712 *-*-solaris*) llvm_cv_platform_type="SunOS" ;;
1713 *-*-win32*) llvm_cv_platform_type="Win32" ;;
1714 *-*-mingw*) llvm_cv_platform_type="Win32" ;;
1715 *) llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001716esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001717fi
1718echo "$as_me:$LINENO: result: $llvm_cv_platform_type" >&5
1719echo "${ECHO_T}$llvm_cv_platform_type" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001720
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001721if test "$llvm_cv_platform_type" = "Unknown" ; then
1722 { { echo "$as_me:$LINENO: error: Operating system platform is unknown, configure can't continue" >&5
1723echo "$as_me: error: Operating system platform is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00001724 { (exit 1); exit 1; }; }
1725fi
1726
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001727OS=$llvm_cv_platform_type
1728
1729
Reid Spenceredd01b92004-11-25 06:03:14 +00001730 ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_platform_type"
Reid Spencerde8c47f2004-08-29 19:35:28 +00001731
1732
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001733case $target in
1734 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1735
1736 ;;
1737esac
Reid Spencer73fb5482004-08-31 14:20:36 +00001738
1739echo "$as_me:$LINENO: checking target architecture" >&5
1740echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001741if test "${llvm_cv_target_arch+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1743else
1744 case $target in
1745 i*86-*) llvm_cv_target_arch="x86" ;;
1746 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1747 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1748 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001749esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001750fi
1751echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1752echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001753
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001754if test "$llvm_cv_target_arch" = "Unknown" ; then
1755 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1756echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1757fi
John Criswell76595452003-07-01 22:07:39 +00001758
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001759ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001760
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001761
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001762ac_ext=c
1763ac_cpp='$CPP $CPPFLAGS'
1764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1766ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001767if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001768 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1769set dummy ${ac_tool_prefix}gcc; ac_word=$2
1770echo "$as_me:$LINENO: checking for $ac_word" >&5
1771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772if test "${ac_cv_prog_CC+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775 if test -n "$CC"; then
1776 ac_cv_prog_CC="$CC" # Let the user override the test.
1777else
1778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779for as_dir in $PATH
1780do
1781 IFS=$as_save_IFS
1782 test -z "$as_dir" && as_dir=.
1783 for ac_exec_ext in '' $ac_executable_extensions; do
1784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787 break 2
1788 fi
1789done
1790done
1791
1792fi
1793fi
1794CC=$ac_cv_prog_CC
1795if test -n "$CC"; then
1796 echo "$as_me:$LINENO: result: $CC" >&5
1797echo "${ECHO_T}$CC" >&6
1798else
1799 echo "$as_me:$LINENO: result: no" >&5
1800echo "${ECHO_T}no" >&6
1801fi
1802
1803fi
1804if test -z "$ac_cv_prog_CC"; then
1805 ac_ct_CC=$CC
1806 # Extract the first word of "gcc", so it can be a program name with args.
1807set dummy gcc; ac_word=$2
1808echo "$as_me:$LINENO: checking for $ac_word" >&5
1809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1812else
1813 if test -n "$ac_ct_CC"; then
1814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1815else
1816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817for as_dir in $PATH
1818do
1819 IFS=$as_save_IFS
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 ac_cv_prog_ac_ct_CC="gcc"
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 break 2
1826 fi
1827done
1828done
1829
1830fi
1831fi
1832ac_ct_CC=$ac_cv_prog_ac_ct_CC
1833if test -n "$ac_ct_CC"; then
1834 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1835echo "${ECHO_T}$ac_ct_CC" >&6
1836else
1837 echo "$as_me:$LINENO: result: no" >&5
1838echo "${ECHO_T}no" >&6
1839fi
1840
1841 CC=$ac_ct_CC
1842else
1843 CC="$ac_cv_prog_CC"
1844fi
1845
1846if test -z "$CC"; then
1847 if test -n "$ac_tool_prefix"; then
1848 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1849set dummy ${ac_tool_prefix}cc; ac_word=$2
1850echo "$as_me:$LINENO: checking for $ac_word" >&5
1851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852if test "${ac_cv_prog_CC+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1854else
1855 if test -n "$CC"; then
1856 ac_cv_prog_CC="$CC" # Let the user override the test.
1857else
1858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859for as_dir in $PATH
1860do
1861 IFS=$as_save_IFS
1862 test -z "$as_dir" && as_dir=.
1863 for ac_exec_ext in '' $ac_executable_extensions; do
1864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865 ac_cv_prog_CC="${ac_tool_prefix}cc"
1866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867 break 2
1868 fi
1869done
1870done
1871
1872fi
1873fi
1874CC=$ac_cv_prog_CC
1875if test -n "$CC"; then
1876 echo "$as_me:$LINENO: result: $CC" >&5
1877echo "${ECHO_T}$CC" >&6
1878else
1879 echo "$as_me:$LINENO: result: no" >&5
1880echo "${ECHO_T}no" >&6
1881fi
1882
1883fi
1884if test -z "$ac_cv_prog_CC"; then
1885 ac_ct_CC=$CC
1886 # Extract the first word of "cc", so it can be a program name with args.
1887set dummy cc; ac_word=$2
1888echo "$as_me:$LINENO: checking for $ac_word" >&5
1889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1890if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1892else
1893 if test -n "$ac_ct_CC"; then
1894 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1895else
1896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897for as_dir in $PATH
1898do
1899 IFS=$as_save_IFS
1900 test -z "$as_dir" && as_dir=.
1901 for ac_exec_ext in '' $ac_executable_extensions; do
1902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1903 ac_cv_prog_ac_ct_CC="cc"
1904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 break 2
1906 fi
1907done
1908done
1909
1910fi
1911fi
1912ac_ct_CC=$ac_cv_prog_ac_ct_CC
1913if test -n "$ac_ct_CC"; then
1914 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1915echo "${ECHO_T}$ac_ct_CC" >&6
1916else
1917 echo "$as_me:$LINENO: result: no" >&5
1918echo "${ECHO_T}no" >&6
1919fi
1920
1921 CC=$ac_ct_CC
1922else
1923 CC="$ac_cv_prog_CC"
1924fi
1925
1926fi
1927if test -z "$CC"; then
1928 # Extract the first word of "cc", so it can be a program name with args.
1929set dummy cc; ac_word=$2
1930echo "$as_me:$LINENO: checking for $ac_word" >&5
1931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932if test "${ac_cv_prog_CC+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1934else
1935 if test -n "$CC"; then
1936 ac_cv_prog_CC="$CC" # Let the user override the test.
1937else
1938 ac_prog_rejected=no
1939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940for as_dir in $PATH
1941do
1942 IFS=$as_save_IFS
1943 test -z "$as_dir" && as_dir=.
1944 for ac_exec_ext in '' $ac_executable_extensions; do
1945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1946 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1947 ac_prog_rejected=yes
1948 continue
1949 fi
1950 ac_cv_prog_CC="cc"
1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952 break 2
1953 fi
1954done
1955done
1956
1957if test $ac_prog_rejected = yes; then
1958 # We found a bogon in the path, so make sure we never use it.
1959 set dummy $ac_cv_prog_CC
1960 shift
1961 if test $# != 0; then
1962 # We chose a different compiler from the bogus one.
1963 # However, it has the same basename, so the bogon will be chosen
1964 # first if we set CC to just the basename; use the full file name.
1965 shift
1966 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1967 fi
1968fi
1969fi
1970fi
1971CC=$ac_cv_prog_CC
1972if test -n "$CC"; then
1973 echo "$as_me:$LINENO: result: $CC" >&5
1974echo "${ECHO_T}$CC" >&6
1975else
1976 echo "$as_me:$LINENO: result: no" >&5
1977echo "${ECHO_T}no" >&6
1978fi
1979
1980fi
1981if test -z "$CC"; then
1982 if test -n "$ac_tool_prefix"; then
1983 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00001984 do
1985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1986set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1987echo "$as_me:$LINENO: checking for $ac_word" >&5
1988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001989if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00001990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001992 if test -n "$CC"; then
1993 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001994else
1995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996for as_dir in $PATH
1997do
1998 IFS=$as_save_IFS
1999 test -z "$as_dir" && as_dir=.
2000 for ac_exec_ext in '' $ac_executable_extensions; do
2001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002002 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 break 2
2005 fi
2006done
2007done
2008
2009fi
2010fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002011CC=$ac_cv_prog_CC
2012if test -n "$CC"; then
2013 echo "$as_me:$LINENO: result: $CC" >&5
2014echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002015else
2016 echo "$as_me:$LINENO: result: no" >&5
2017echo "${ECHO_T}no" >&6
2018fi
2019
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002020 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002021 done
2022fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002023if test -z "$CC"; then
2024 ac_ct_CC=$CC
2025 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002026do
2027 # Extract the first word of "$ac_prog", so it can be a program name with args.
2028set dummy $ac_prog; ac_word=$2
2029echo "$as_me:$LINENO: checking for $ac_word" >&5
2030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002031if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002032 echo $ECHO_N "(cached) $ECHO_C" >&6
2033else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002034 if test -n "$ac_ct_CC"; then
2035 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002036else
2037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038for as_dir in $PATH
2039do
2040 IFS=$as_save_IFS
2041 test -z "$as_dir" && as_dir=.
2042 for ac_exec_ext in '' $ac_executable_extensions; do
2043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002044 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046 break 2
2047 fi
2048done
2049done
2050
2051fi
2052fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002053ac_ct_CC=$ac_cv_prog_ac_ct_CC
2054if test -n "$ac_ct_CC"; then
2055 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2056echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002057else
2058 echo "$as_me:$LINENO: result: no" >&5
2059echo "${ECHO_T}no" >&6
2060fi
2061
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002062 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002063done
John Criswell7a73b802003-06-30 21:59:07 +00002064
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002065 CC=$ac_ct_CC
2066fi
2067
John Criswell7a73b802003-06-30 21:59:07 +00002068fi
2069
2070
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002071test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2072See \`config.log' for more details." >&5
2073echo "$as_me: error: no acceptable C compiler found in \$PATH
2074See \`config.log' for more details." >&2;}
2075 { (exit 1); exit 1; }; }
2076
John Criswell7a73b802003-06-30 21:59:07 +00002077# Provide some information about the compiler.
2078echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002079 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002080ac_compiler=`set X $ac_compile; echo $2`
2081{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2082 (eval $ac_compiler --version </dev/null >&5) 2>&5
2083 ac_status=$?
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }
2086{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2087 (eval $ac_compiler -v </dev/null >&5) 2>&5
2088 ac_status=$?
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }
2091{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2092 (eval $ac_compiler -V </dev/null >&5) 2>&5
2093 ac_status=$?
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }
2096
2097cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002098/* confdefs.h. */
2099_ACEOF
2100cat confdefs.h >>conftest.$ac_ext
2101cat >>conftest.$ac_ext <<_ACEOF
2102/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002103
John Criswell7a73b802003-06-30 21:59:07 +00002104int
2105main ()
2106{
2107
2108 ;
2109 return 0;
2110}
2111_ACEOF
2112ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002113ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002114# Try to create an executable without -o first, disregard a.out.
2115# It will help us diagnose broken compilers, and finding out an intuition
2116# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002117echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2118echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002119ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2120if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2121 (eval $ac_link_default) 2>&5
2122 ac_status=$?
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }; then
2125 # Find the output, starting from the most likely. This scheme is
2126# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2127# resort.
2128
2129# Be careful to initialize this variable, since it used to be cached.
2130# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2131ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002132# b.out is created by i960 compilers.
2133for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2134do
2135 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002136 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002138 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002139 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002140 # This is the source file.
2141 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002142 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002143 # We found the default executable, but exeext='' is most
2144 # certainly right.
2145 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002146 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002147 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2148 # FIXME: I believe we export ac_cv_exeext for Libtool,
2149 # but it would be cool to find out if it's true. Does anybody
2150 # maintain Libtool? --akim.
2151 export ac_cv_exeext
2152 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002153 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002154 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002155 esac
2156done
2157else
2158 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002159sed 's/^/| /' conftest.$ac_ext >&5
2160
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002161{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002162See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002163echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002164See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002165 { (exit 77); exit 77; }; }
2166fi
2167
2168ac_exeext=$ac_cv_exeext
2169echo "$as_me:$LINENO: result: $ac_file" >&5
2170echo "${ECHO_T}$ac_file" >&6
2171
2172# Check the compiler produces executables we can run. If not, either
2173# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002174echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2175echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002176# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2177# If not cross compiling, check that we can run a simple program.
2178if test "$cross_compiling" != yes; then
2179 if { ac_try='./$ac_file'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 (eval $ac_try) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; }; then
2185 cross_compiling=no
2186 else
2187 if test "$cross_compiling" = maybe; then
2188 cross_compiling=yes
2189 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002190 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002191If you meant to cross compile, use \`--host'.
2192See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002193echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002194If you meant to cross compile, use \`--host'.
2195See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002196 { (exit 1); exit 1; }; }
2197 fi
2198 fi
2199fi
2200echo "$as_me:$LINENO: result: yes" >&5
2201echo "${ECHO_T}yes" >&6
2202
John Criswell0c38eaf2003-09-10 15:17:25 +00002203rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002204ac_clean_files=$ac_clean_files_save
2205# Check the compiler produces executables we can run. If not, either
2206# the compiler is broken, or we cross compile.
2207echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2208echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2209echo "$as_me:$LINENO: result: $cross_compiling" >&5
2210echo "${ECHO_T}$cross_compiling" >&6
2211
2212echo "$as_me:$LINENO: checking for suffix of executables" >&5
2213echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2215 (eval $ac_link) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; then
2219 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2220# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2221# work properly (i.e., refer to `conftest.exe'), while it won't with
2222# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002223for ac_file in conftest.exe conftest conftest.*; do
2224 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002225 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002227 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002228 export ac_cv_exeext
2229 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002230 * ) break;;
2231 esac
2232done
2233else
John Criswell0c38eaf2003-09-10 15:17:25 +00002234 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2235See \`config.log' for more details." >&5
2236echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2237See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002238 { (exit 1); exit 1; }; }
2239fi
2240
2241rm -f conftest$ac_cv_exeext
2242echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2243echo "${ECHO_T}$ac_cv_exeext" >&6
2244
2245rm -f conftest.$ac_ext
2246EXEEXT=$ac_cv_exeext
2247ac_exeext=$EXEEXT
2248echo "$as_me:$LINENO: checking for suffix of object files" >&5
2249echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2250if test "${ac_cv_objext+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2252else
2253 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002254/* confdefs.h. */
2255_ACEOF
2256cat confdefs.h >>conftest.$ac_ext
2257cat >>conftest.$ac_ext <<_ACEOF
2258/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002259
John Criswell7a73b802003-06-30 21:59:07 +00002260int
2261main ()
2262{
2263
2264 ;
2265 return 0;
2266}
2267_ACEOF
2268rm -f conftest.o conftest.obj
2269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2270 (eval $ac_compile) 2>&5
2271 ac_status=$?
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; then
2274 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2275 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002277 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2278 break;;
2279 esac
2280done
2281else
2282 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002283sed 's/^/| /' conftest.$ac_ext >&5
2284
2285{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2286See \`config.log' for more details." >&5
2287echo "$as_me: error: cannot compute suffix of object files: cannot compile
2288See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002289 { (exit 1); exit 1; }; }
2290fi
2291
2292rm -f conftest.$ac_cv_objext conftest.$ac_ext
2293fi
2294echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2295echo "${ECHO_T}$ac_cv_objext" >&6
2296OBJEXT=$ac_cv_objext
2297ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002298echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2299echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2300if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002301 echo $ECHO_N "(cached) $ECHO_C" >&6
2302else
2303 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002304/* confdefs.h. */
2305_ACEOF
2306cat confdefs.h >>conftest.$ac_ext
2307cat >>conftest.$ac_ext <<_ACEOF
2308/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002309
John Criswell7a73b802003-06-30 21:59:07 +00002310int
2311main ()
2312{
2313#ifndef __GNUC__
2314 choke me
2315#endif
2316
2317 ;
2318 return 0;
2319}
2320_ACEOF
2321rm -f conftest.$ac_objext
2322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002323 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002324 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002325 grep -v '^ *+' conftest.er1 >conftest.err
2326 rm -f conftest.er1
2327 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002330 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002331 || test ! -s conftest.err'
2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333 (eval $ac_try) 2>&5
2334 ac_status=$?
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; } &&
2337 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339 (eval $ac_try) 2>&5
2340 ac_status=$?
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }; }; then
2343 ac_compiler_gnu=yes
2344else
2345 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002346sed 's/^/| /' conftest.$ac_ext >&5
2347
John Criswell7a73b802003-06-30 21:59:07 +00002348ac_compiler_gnu=no
2349fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002351ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002352
2353fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002354echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2355echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2356GCC=`test $ac_compiler_gnu = yes && echo yes`
2357ac_test_CFLAGS=${CFLAGS+set}
2358ac_save_CFLAGS=$CFLAGS
2359CFLAGS="-g"
2360echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2361echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2362if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002363 echo $ECHO_N "(cached) $ECHO_C" >&6
2364else
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 Criswell7a73b802003-06-30 21:59:07 +00002371
John Criswell7a73b802003-06-30 21:59:07 +00002372int
2373main ()
2374{
2375
2376 ;
2377 return 0;
2378}
2379_ACEOF
2380rm -f conftest.$ac_objext
2381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002382 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002383 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002384 grep -v '^ *+' conftest.er1 >conftest.err
2385 rm -f conftest.er1
2386 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002389 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002390 || test ! -s conftest.err'
2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392 (eval $ac_try) 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; } &&
2396 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398 (eval $ac_try) 2>&5
2399 ac_status=$?
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002402 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002403else
2404 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002405sed 's/^/| /' conftest.$ac_ext >&5
2406
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002407ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002408fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002410fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002411echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2412echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2413if test "$ac_test_CFLAGS" = set; then
2414 CFLAGS=$ac_save_CFLAGS
2415elif test $ac_cv_prog_cc_g = yes; then
2416 if test "$GCC" = yes; then
2417 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002418 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002419 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002420 fi
2421else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002422 if test "$GCC" = yes; then
2423 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002424 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002425 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002426 fi
2427fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002428echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2429echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2430if test "${ac_cv_prog_cc_stdc+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2432else
2433 ac_cv_prog_cc_stdc=no
2434ac_save_CC=$CC
2435cat >conftest.$ac_ext <<_ACEOF
2436/* confdefs.h. */
2437_ACEOF
2438cat confdefs.h >>conftest.$ac_ext
2439cat >>conftest.$ac_ext <<_ACEOF
2440/* end confdefs.h. */
2441#include <stdarg.h>
2442#include <stdio.h>
2443#include <sys/types.h>
2444#include <sys/stat.h>
2445/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2446struct buf { int x; };
2447FILE * (*rcsopen) (struct buf *, struct stat *, int);
2448static char *e (p, i)
2449 char **p;
2450 int i;
2451{
2452 return p[i];
2453}
2454static char *f (char * (*g) (char **, int), char **p, ...)
2455{
2456 char *s;
2457 va_list v;
2458 va_start (v,p);
2459 s = g (p, va_arg (v,int));
2460 va_end (v);
2461 return s;
2462}
2463
2464/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2465 function prototypes and stuff, but not '\xHH' hex character constants.
2466 These don't provoke an error unfortunately, instead are silently treated
2467 as 'x'. The following induces an error, until -std1 is added to get
2468 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2469 array size at least. It's necessary to write '\x00'==0 to get something
2470 that's true only with -std1. */
2471int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2472
2473int test (int i, double x);
2474struct s1 {int (*f) (int a);};
2475struct s2 {int (*f) (double a);};
2476int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2477int argc;
2478char **argv;
2479int
2480main ()
2481{
2482return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2483 ;
2484 return 0;
2485}
2486_ACEOF
2487# Don't try gcc -ansi; that turns off useful extensions and
2488# breaks some systems' header files.
2489# AIX -qlanglvl=ansi
2490# Ultrix and OSF/1 -std1
2491# HP-UX 10.20 and later -Ae
2492# HP-UX older versions -Aa -D_HPUX_SOURCE
2493# SVR4 -Xc -D__EXTENSIONS__
2494for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2495do
2496 CC="$ac_save_CC $ac_arg"
2497 rm -f conftest.$ac_objext
2498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2499 (eval $ac_compile) 2>conftest.er1
2500 ac_status=$?
2501 grep -v '^ *+' conftest.er1 >conftest.err
2502 rm -f conftest.er1
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try='test -z "$ac_c_werror_flag"
2507 || test ! -s conftest.err'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 (eval $ac_try) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 ac_cv_prog_cc_stdc=$ac_arg
2520break
2521else
2522 echo "$as_me: failed program was:" >&5
2523sed 's/^/| /' conftest.$ac_ext >&5
2524
2525fi
2526rm -f conftest.err conftest.$ac_objext
2527done
2528rm -f conftest.$ac_ext conftest.$ac_objext
2529CC=$ac_save_CC
2530
2531fi
2532
2533case "x$ac_cv_prog_cc_stdc" in
2534 x|xno)
2535 echo "$as_me:$LINENO: result: none needed" >&5
2536echo "${ECHO_T}none needed" >&6 ;;
2537 *)
2538 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2539echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2540 CC="$CC $ac_cv_prog_cc_stdc" ;;
2541esac
2542
2543# Some people use a C++ compiler to compile C. Since we use `exit',
2544# in C++ we need to declare it. In case someone uses the same compiler
2545# for both compiling C and C++ we need to have the C++ compiler decide
2546# the declaration of exit, since it's the most demanding environment.
2547cat >conftest.$ac_ext <<_ACEOF
2548#ifndef __cplusplus
2549 choke me
2550#endif
2551_ACEOF
2552rm -f conftest.$ac_objext
2553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554 (eval $ac_compile) 2>conftest.er1
2555 ac_status=$?
2556 grep -v '^ *+' conftest.er1 >conftest.err
2557 rm -f conftest.er1
2558 cat conftest.err >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } &&
2561 { ac_try='test -z "$ac_c_werror_flag"
2562 || test ! -s conftest.err'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 (eval $ac_try) 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; } &&
2568 { ac_try='test -s conftest.$ac_objext'
2569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 (eval $ac_try) 2>&5
2571 ac_status=$?
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; }; then
2574 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002575 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002576 'extern "C" void std::exit (int) throw (); using std::exit;' \
2577 'extern "C" void std::exit (int); using std::exit;' \
2578 'extern "C" void exit (int) throw ();' \
2579 'extern "C" void exit (int);' \
2580 'void exit (int);'
2581do
2582 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002583/* confdefs.h. */
2584_ACEOF
2585cat confdefs.h >>conftest.$ac_ext
2586cat >>conftest.$ac_ext <<_ACEOF
2587/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002588$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002589#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002590int
2591main ()
2592{
2593exit (42);
2594 ;
2595 return 0;
2596}
2597_ACEOF
2598rm -f conftest.$ac_objext
2599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002600 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002601 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002602 grep -v '^ *+' conftest.er1 >conftest.err
2603 rm -f conftest.er1
2604 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002607 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002608 || test ! -s conftest.err'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 (eval $ac_try) 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; } &&
2614 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 (eval $ac_try) 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2620 :
2621else
2622 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002623sed 's/^/| /' conftest.$ac_ext >&5
2624
John Criswell7a73b802003-06-30 21:59:07 +00002625continue
2626fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002628 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002629/* confdefs.h. */
2630_ACEOF
2631cat confdefs.h >>conftest.$ac_ext
2632cat >>conftest.$ac_ext <<_ACEOF
2633/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002634$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002635int
2636main ()
2637{
2638exit (42);
2639 ;
2640 return 0;
2641}
2642_ACEOF
2643rm -f conftest.$ac_objext
2644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002645 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002646 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002647 grep -v '^ *+' conftest.er1 >conftest.err
2648 rm -f conftest.er1
2649 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002652 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002653 || test ! -s conftest.err'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 (eval $ac_try) 2>&5
2656 ac_status=$?
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; } &&
2659 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 (eval $ac_try) 2>&5
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2665 break
2666else
2667 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002668sed 's/^/| /' conftest.$ac_ext >&5
2669
John Criswell7a73b802003-06-30 21:59:07 +00002670fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002672done
2673rm -f conftest*
2674if test -n "$ac_declaration"; then
2675 echo '#ifdef __cplusplus' >>confdefs.h
2676 echo $ac_declaration >>confdefs.h
2677 echo '#endif' >>confdefs.h
2678fi
2679
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002680else
2681 echo "$as_me: failed program was:" >&5
2682sed 's/^/| /' conftest.$ac_ext >&5
2683
2684fi
2685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2686ac_ext=c
2687ac_cpp='$CPP $CPPFLAGS'
2688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690ac_compiler_gnu=$ac_cv_c_compiler_gnu
2691
2692
2693echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2694echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2695if test "${ac_cv_c_bigendian+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697else
2698 # See if sys/param.h defines the BYTE_ORDER macro.
2699cat >conftest.$ac_ext <<_ACEOF
2700/* confdefs.h. */
2701_ACEOF
2702cat confdefs.h >>conftest.$ac_ext
2703cat >>conftest.$ac_ext <<_ACEOF
2704/* end confdefs.h. */
2705#include <sys/types.h>
2706#include <sys/param.h>
2707
2708int
2709main ()
2710{
2711#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2712 bogus endian macros
2713#endif
2714
2715 ;
2716 return 0;
2717}
2718_ACEOF
2719rm -f conftest.$ac_objext
2720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2721 (eval $ac_compile) 2>conftest.er1
2722 ac_status=$?
2723 grep -v '^ *+' conftest.er1 >conftest.err
2724 rm -f conftest.er1
2725 cat conftest.err >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); } &&
2728 { ac_try='test -z "$ac_c_werror_flag"
2729 || test ! -s conftest.err'
2730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 (eval $ac_try) 2>&5
2732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; } &&
2735 { ac_try='test -s conftest.$ac_objext'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 (eval $ac_try) 2>&5
2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2741 # It does; now see whether it defined to BIG_ENDIAN or not.
2742cat >conftest.$ac_ext <<_ACEOF
2743/* confdefs.h. */
2744_ACEOF
2745cat confdefs.h >>conftest.$ac_ext
2746cat >>conftest.$ac_ext <<_ACEOF
2747/* end confdefs.h. */
2748#include <sys/types.h>
2749#include <sys/param.h>
2750
2751int
2752main ()
2753{
2754#if BYTE_ORDER != BIG_ENDIAN
2755 not big endian
2756#endif
2757
2758 ;
2759 return 0;
2760}
2761_ACEOF
2762rm -f conftest.$ac_objext
2763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2764 (eval $ac_compile) 2>conftest.er1
2765 ac_status=$?
2766 grep -v '^ *+' conftest.er1 >conftest.err
2767 rm -f conftest.er1
2768 cat conftest.err >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } &&
2771 { ac_try='test -z "$ac_c_werror_flag"
2772 || test ! -s conftest.err'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774 (eval $ac_try) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; } &&
2778 { ac_try='test -s conftest.$ac_objext'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 (eval $ac_try) 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; }; then
2784 ac_cv_c_bigendian=yes
2785else
2786 echo "$as_me: failed program was:" >&5
2787sed 's/^/| /' conftest.$ac_ext >&5
2788
2789ac_cv_c_bigendian=no
2790fi
2791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2792else
2793 echo "$as_me: failed program was:" >&5
2794sed 's/^/| /' conftest.$ac_ext >&5
2795
2796# It does not; compile a test program.
2797if test "$cross_compiling" = yes; then
2798 # try to guess the endianness by grepping values into an object file
2799 ac_cv_c_bigendian=unknown
2800 cat >conftest.$ac_ext <<_ACEOF
2801/* confdefs.h. */
2802_ACEOF
2803cat confdefs.h >>conftest.$ac_ext
2804cat >>conftest.$ac_ext <<_ACEOF
2805/* end confdefs.h. */
2806short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2807short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2808void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2809short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2810short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2811void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2812int
2813main ()
2814{
2815 _ascii (); _ebcdic ();
2816 ;
2817 return 0;
2818}
2819_ACEOF
2820rm -f conftest.$ac_objext
2821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2822 (eval $ac_compile) 2>conftest.er1
2823 ac_status=$?
2824 grep -v '^ *+' conftest.er1 >conftest.err
2825 rm -f conftest.er1
2826 cat conftest.err >&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } &&
2829 { ac_try='test -z "$ac_c_werror_flag"
2830 || test ! -s conftest.err'
2831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832 (eval $ac_try) 2>&5
2833 ac_status=$?
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; } &&
2836 { ac_try='test -s conftest.$ac_objext'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 (eval $ac_try) 2>&5
2839 ac_status=$?
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; }; then
2842 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2843 ac_cv_c_bigendian=yes
2844fi
2845if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2846 if test "$ac_cv_c_bigendian" = unknown; then
2847 ac_cv_c_bigendian=no
2848 else
2849 # finding both strings is unlikely to happen, but who knows?
2850 ac_cv_c_bigendian=unknown
2851 fi
2852fi
2853else
2854 echo "$as_me: failed program was:" >&5
2855sed 's/^/| /' conftest.$ac_ext >&5
2856
2857fi
2858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2859else
2860 cat >conftest.$ac_ext <<_ACEOF
2861/* confdefs.h. */
2862_ACEOF
2863cat confdefs.h >>conftest.$ac_ext
2864cat >>conftest.$ac_ext <<_ACEOF
2865/* end confdefs.h. */
2866int
2867main ()
2868{
2869 /* Are we little or big endian? From Harbison&Steele. */
2870 union
2871 {
2872 long l;
2873 char c[sizeof (long)];
2874 } u;
2875 u.l = 1;
2876 exit (u.c[sizeof (long) - 1] == 1);
2877}
2878_ACEOF
2879rm -f conftest$ac_exeext
2880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2881 (eval $ac_link) 2>&5
2882 ac_status=$?
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 (eval $ac_try) 2>&5
2887 ac_status=$?
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2890 ac_cv_c_bigendian=no
2891else
2892 echo "$as_me: program exited with status $ac_status" >&5
2893echo "$as_me: failed program was:" >&5
2894sed 's/^/| /' conftest.$ac_ext >&5
2895
2896( exit $ac_status )
2897ac_cv_c_bigendian=yes
2898fi
2899rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2900fi
2901fi
2902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2903fi
2904echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2905echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2906case $ac_cv_c_bigendian in
2907 yes)
2908 ENDIAN=big
2909 ;;
2910 no)
2911 ENDIAN=little
2912 ;;
2913 *)
2914 { { echo "$as_me:$LINENO: error: unknown endianness
2915presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2916echo "$as_me: error: unknown endianness
2917presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2918 { (exit 1); exit 1; }; } ;;
2919esac
2920
2921
2922
2923# Check whether --enable-optimized or --disable-optimized was given.
2924if test "${enable_optimized+set}" = set; then
2925 enableval="$enable_optimized"
2926
2927else
2928 enableval=no
2929fi;
2930if test ${enableval} = "no" ; then
2931 ENABLE_OPTIMIZED=
2932
2933else
2934 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2935
2936fi
2937
2938# Check whether --enable-jit or --disable-jit was given.
2939if test "${enable_jit+set}" = set; then
2940 enableval="$enable_jit"
2941
2942else
2943 enableval=default
2944fi;
2945if test ${enableval} = "no"
2946then
2947 JIT=
2948
2949else
Reid Spencerefbe40a2004-11-25 07:28:19 +00002950 case "$llvm_cv_target_arch" in
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002951 x86) JIT=TARGET_HAS_JIT=1
2952 ;;
2953 Sparc) JIT=TARGET_HAS_JIT=1
2954 ;;
2955 PowerPC) JIT=TARGET_HAS_JIT=1
2956 ;;
2957 *) JIT=
2958 ;;
2959 esac
2960fi
2961
Reid Spencer1f319422004-11-29 04:56:35 +00002962# Check whether --enable-doxygen or --disable-doxygen was given.
2963if test "${enable_doxygen+set}" = set; then
2964 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00002965
Reid Spencer1f319422004-11-29 04:56:35 +00002966else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00002967 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00002968fi;
2969case "$enableval" in
2970 yes) ENABLE_DOXYGEN=1
2971 ;;
2972 no) ENABLE_DOXYGEN=0
2973 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00002974 default) ENABLE_DOXYGEN=0
2975 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00002976 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
2977echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
2978 { (exit 1); exit 1; }; } ;;
2979esac
2980
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002981
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002982ac_ext=c
2983ac_cpp='$CPP $CPPFLAGS'
2984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986ac_compiler_gnu=$ac_cv_c_compiler_gnu
2987echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2988echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2989# On Suns, sometimes $CPP names a directory.
2990if test -n "$CPP" && test -d "$CPP"; then
2991 CPP=
2992fi
2993if test -z "$CPP"; then
2994 if test "${ac_cv_prog_CPP+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2996else
2997 # Double quotes because CPP needs to be expanded
2998 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2999 do
3000 ac_preproc_ok=false
3001for ac_c_preproc_warn_flag in '' yes
3002do
3003 # Use a header file that comes with gcc, so configuring glibc
3004 # with a fresh cross-compiler works.
3005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3006 # <limits.h> exists even on freestanding compilers.
3007 # On the NeXT, cc -E runs the code through the compiler's parser,
3008 # not just through cpp. "Syntax error" is here to catch this case.
3009 cat >conftest.$ac_ext <<_ACEOF
3010/* confdefs.h. */
3011_ACEOF
3012cat confdefs.h >>conftest.$ac_ext
3013cat >>conftest.$ac_ext <<_ACEOF
3014/* end confdefs.h. */
3015#ifdef __STDC__
3016# include <limits.h>
3017#else
3018# include <assert.h>
3019#endif
3020 Syntax error
3021_ACEOF
3022if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3024 ac_status=$?
3025 grep -v '^ *+' conftest.er1 >conftest.err
3026 rm -f conftest.er1
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } >/dev/null; then
3030 if test -s conftest.err; then
3031 ac_cpp_err=$ac_c_preproc_warn_flag
3032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3033 else
3034 ac_cpp_err=
3035 fi
3036else
3037 ac_cpp_err=yes
3038fi
3039if test -z "$ac_cpp_err"; then
3040 :
3041else
3042 echo "$as_me: failed program was:" >&5
3043sed 's/^/| /' conftest.$ac_ext >&5
3044
3045 # Broken: fails on valid input.
3046continue
3047fi
3048rm -f conftest.err conftest.$ac_ext
3049
3050 # OK, works on sane cases. Now check whether non-existent headers
3051 # can be detected and how.
3052 cat >conftest.$ac_ext <<_ACEOF
3053/* confdefs.h. */
3054_ACEOF
3055cat confdefs.h >>conftest.$ac_ext
3056cat >>conftest.$ac_ext <<_ACEOF
3057/* end confdefs.h. */
3058#include <ac_nonexistent.h>
3059_ACEOF
3060if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3062 ac_status=$?
3063 grep -v '^ *+' conftest.er1 >conftest.err
3064 rm -f conftest.er1
3065 cat conftest.err >&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); } >/dev/null; then
3068 if test -s conftest.err; then
3069 ac_cpp_err=$ac_c_preproc_warn_flag
3070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3071 else
3072 ac_cpp_err=
3073 fi
3074else
3075 ac_cpp_err=yes
3076fi
3077if test -z "$ac_cpp_err"; then
3078 # Broken: success on invalid input.
3079continue
3080else
3081 echo "$as_me: failed program was:" >&5
3082sed 's/^/| /' conftest.$ac_ext >&5
3083
3084 # Passes both tests.
3085ac_preproc_ok=:
3086break
3087fi
3088rm -f conftest.err conftest.$ac_ext
3089
3090done
3091# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3092rm -f conftest.err conftest.$ac_ext
3093if $ac_preproc_ok; then
3094 break
3095fi
3096
3097 done
3098 ac_cv_prog_CPP=$CPP
3099
3100fi
3101 CPP=$ac_cv_prog_CPP
3102else
3103 ac_cv_prog_CPP=$CPP
3104fi
3105echo "$as_me:$LINENO: result: $CPP" >&5
3106echo "${ECHO_T}$CPP" >&6
3107ac_preproc_ok=false
3108for ac_c_preproc_warn_flag in '' yes
3109do
3110 # Use a header file that comes with gcc, so configuring glibc
3111 # with a fresh cross-compiler works.
3112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3113 # <limits.h> exists even on freestanding compilers.
3114 # On the NeXT, cc -E runs the code through the compiler's parser,
3115 # not just through cpp. "Syntax error" is here to catch this case.
3116 cat >conftest.$ac_ext <<_ACEOF
3117/* confdefs.h. */
3118_ACEOF
3119cat confdefs.h >>conftest.$ac_ext
3120cat >>conftest.$ac_ext <<_ACEOF
3121/* end confdefs.h. */
3122#ifdef __STDC__
3123# include <limits.h>
3124#else
3125# include <assert.h>
3126#endif
3127 Syntax error
3128_ACEOF
3129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3131 ac_status=$?
3132 grep -v '^ *+' conftest.er1 >conftest.err
3133 rm -f conftest.er1
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } >/dev/null; then
3137 if test -s conftest.err; then
3138 ac_cpp_err=$ac_c_preproc_warn_flag
3139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3140 else
3141 ac_cpp_err=
3142 fi
3143else
3144 ac_cpp_err=yes
3145fi
3146if test -z "$ac_cpp_err"; then
3147 :
3148else
3149 echo "$as_me: failed program was:" >&5
3150sed 's/^/| /' conftest.$ac_ext >&5
3151
3152 # Broken: fails on valid input.
3153continue
3154fi
3155rm -f conftest.err conftest.$ac_ext
3156
3157 # OK, works on sane cases. Now check whether non-existent headers
3158 # can be detected and how.
3159 cat >conftest.$ac_ext <<_ACEOF
3160/* confdefs.h. */
3161_ACEOF
3162cat confdefs.h >>conftest.$ac_ext
3163cat >>conftest.$ac_ext <<_ACEOF
3164/* end confdefs.h. */
3165#include <ac_nonexistent.h>
3166_ACEOF
3167if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3169 ac_status=$?
3170 grep -v '^ *+' conftest.er1 >conftest.err
3171 rm -f conftest.er1
3172 cat conftest.err >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } >/dev/null; then
3175 if test -s conftest.err; then
3176 ac_cpp_err=$ac_c_preproc_warn_flag
3177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3178 else
3179 ac_cpp_err=
3180 fi
3181else
3182 ac_cpp_err=yes
3183fi
3184if test -z "$ac_cpp_err"; then
3185 # Broken: success on invalid input.
3186continue
3187else
3188 echo "$as_me: failed program was:" >&5
3189sed 's/^/| /' conftest.$ac_ext >&5
3190
3191 # Passes both tests.
3192ac_preproc_ok=:
3193break
3194fi
3195rm -f conftest.err conftest.$ac_ext
3196
3197done
3198# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3199rm -f conftest.err conftest.$ac_ext
3200if $ac_preproc_ok; then
3201 :
3202else
3203 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3204See \`config.log' for more details." >&5
3205echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3206See \`config.log' for more details." >&2;}
3207 { (exit 1); exit 1; }; }
3208fi
3209
John Criswell7a73b802003-06-30 21:59:07 +00003210ac_ext=c
3211ac_cpp='$CPP $CPPFLAGS'
3212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215
3216ac_ext=c
3217ac_cpp='$CPP $CPPFLAGS'
3218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220ac_compiler_gnu=$ac_cv_c_compiler_gnu
3221if test -n "$ac_tool_prefix"; then
3222 for ac_prog in gcc
3223 do
3224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3225set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3226echo "$as_me:$LINENO: checking for $ac_word" >&5
3227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228if test "${ac_cv_prog_CC+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3230else
3231 if test -n "$CC"; then
3232 ac_cv_prog_CC="$CC" # Let the user override the test.
3233else
3234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235for as_dir in $PATH
3236do
3237 IFS=$as_save_IFS
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3243 break 2
3244 fi
3245done
3246done
3247
3248fi
3249fi
3250CC=$ac_cv_prog_CC
3251if test -n "$CC"; then
3252 echo "$as_me:$LINENO: result: $CC" >&5
3253echo "${ECHO_T}$CC" >&6
3254else
3255 echo "$as_me:$LINENO: result: no" >&5
3256echo "${ECHO_T}no" >&6
3257fi
3258
3259 test -n "$CC" && break
3260 done
3261fi
3262if test -z "$CC"; then
3263 ac_ct_CC=$CC
3264 for ac_prog in gcc
3265do
3266 # Extract the first word of "$ac_prog", so it can be a program name with args.
3267set dummy $ac_prog; ac_word=$2
3268echo "$as_me:$LINENO: checking for $ac_word" >&5
3269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3270if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3272else
3273 if test -n "$ac_ct_CC"; then
3274 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3275else
3276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277for as_dir in $PATH
3278do
3279 IFS=$as_save_IFS
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283 ac_cv_prog_ac_ct_CC="$ac_prog"
3284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 break 2
3286 fi
3287done
3288done
3289
3290fi
3291fi
3292ac_ct_CC=$ac_cv_prog_ac_ct_CC
3293if test -n "$ac_ct_CC"; then
3294 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3295echo "${ECHO_T}$ac_ct_CC" >&6
3296else
3297 echo "$as_me:$LINENO: result: no" >&5
3298echo "${ECHO_T}no" >&6
3299fi
3300
3301 test -n "$ac_ct_CC" && break
3302done
3303
3304 CC=$ac_ct_CC
3305fi
3306
3307
John Criswell0c38eaf2003-09-10 15:17:25 +00003308test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3309See \`config.log' for more details." >&5
3310echo "$as_me: error: no acceptable C compiler found in \$PATH
3311See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003312 { (exit 1); exit 1; }; }
3313
3314# Provide some information about the compiler.
3315echo "$as_me:$LINENO:" \
3316 "checking for C compiler version" >&5
3317ac_compiler=`set X $ac_compile; echo $2`
3318{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3319 (eval $ac_compiler --version </dev/null >&5) 2>&5
3320 ac_status=$?
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }
3323{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3324 (eval $ac_compiler -v </dev/null >&5) 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }
3328{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3329 (eval $ac_compiler -V </dev/null >&5) 2>&5
3330 ac_status=$?
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }
3333
3334echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3335echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3336if test "${ac_cv_c_compiler_gnu+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3338else
3339 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003340/* confdefs.h. */
3341_ACEOF
3342cat confdefs.h >>conftest.$ac_ext
3343cat >>conftest.$ac_ext <<_ACEOF
3344/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003345
John Criswell7a73b802003-06-30 21:59:07 +00003346int
3347main ()
3348{
3349#ifndef __GNUC__
3350 choke me
3351#endif
3352
3353 ;
3354 return 0;
3355}
3356_ACEOF
3357rm -f conftest.$ac_objext
3358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003359 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003360 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003361 grep -v '^ *+' conftest.er1 >conftest.err
3362 rm -f conftest.er1
3363 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003366 { ac_try='test -z "$ac_c_werror_flag"
3367 || test ! -s conftest.err'
3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369 (eval $ac_try) 2>&5
3370 ac_status=$?
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; } &&
3373 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 (eval $ac_try) 2>&5
3376 ac_status=$?
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; }; then
3379 ac_compiler_gnu=yes
3380else
3381 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003382sed 's/^/| /' conftest.$ac_ext >&5
3383
John Criswell7a73b802003-06-30 21:59:07 +00003384ac_compiler_gnu=no
3385fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003387ac_cv_c_compiler_gnu=$ac_compiler_gnu
3388
3389fi
3390echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3391echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3392GCC=`test $ac_compiler_gnu = yes && echo yes`
3393ac_test_CFLAGS=${CFLAGS+set}
3394ac_save_CFLAGS=$CFLAGS
3395CFLAGS="-g"
3396echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3397echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3398if test "${ac_cv_prog_cc_g+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3400else
3401 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003402/* confdefs.h. */
3403_ACEOF
3404cat confdefs.h >>conftest.$ac_ext
3405cat >>conftest.$ac_ext <<_ACEOF
3406/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003407
John Criswell7a73b802003-06-30 21:59:07 +00003408int
3409main ()
3410{
3411
3412 ;
3413 return 0;
3414}
3415_ACEOF
3416rm -f conftest.$ac_objext
3417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003418 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003419 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003420 grep -v '^ *+' conftest.er1 >conftest.err
3421 rm -f conftest.er1
3422 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003425 { ac_try='test -z "$ac_c_werror_flag"
3426 || test ! -s conftest.err'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428 (eval $ac_try) 2>&5
3429 ac_status=$?
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; } &&
3432 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434 (eval $ac_try) 2>&5
3435 ac_status=$?
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; }; then
3438 ac_cv_prog_cc_g=yes
3439else
3440 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003441sed 's/^/| /' conftest.$ac_ext >&5
3442
John Criswell7a73b802003-06-30 21:59:07 +00003443ac_cv_prog_cc_g=no
3444fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003446fi
3447echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3448echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3449if test "$ac_test_CFLAGS" = set; then
3450 CFLAGS=$ac_save_CFLAGS
3451elif test $ac_cv_prog_cc_g = yes; then
3452 if test "$GCC" = yes; then
3453 CFLAGS="-g -O2"
3454 else
3455 CFLAGS="-g"
3456 fi
3457else
3458 if test "$GCC" = yes; then
3459 CFLAGS="-O2"
3460 else
3461 CFLAGS=
3462 fi
3463fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003464echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3465echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3466if test "${ac_cv_prog_cc_stdc+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3468else
3469 ac_cv_prog_cc_stdc=no
3470ac_save_CC=$CC
3471cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003472/* confdefs.h. */
3473_ACEOF
3474cat confdefs.h >>conftest.$ac_ext
3475cat >>conftest.$ac_ext <<_ACEOF
3476/* end confdefs.h. */
3477#include <stdarg.h>
3478#include <stdio.h>
3479#include <sys/types.h>
3480#include <sys/stat.h>
3481/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3482struct buf { int x; };
3483FILE * (*rcsopen) (struct buf *, struct stat *, int);
3484static char *e (p, i)
3485 char **p;
3486 int i;
3487{
3488 return p[i];
3489}
3490static char *f (char * (*g) (char **, int), char **p, ...)
3491{
3492 char *s;
3493 va_list v;
3494 va_start (v,p);
3495 s = g (p, va_arg (v,int));
3496 va_end (v);
3497 return s;
3498}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003499
3500/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3501 function prototypes and stuff, but not '\xHH' hex character constants.
3502 These don't provoke an error unfortunately, instead are silently treated
3503 as 'x'. The following induces an error, until -std1 is added to get
3504 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3505 array size at least. It's necessary to write '\x00'==0 to get something
3506 that's true only with -std1. */
3507int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3508
John Criswell0c38eaf2003-09-10 15:17:25 +00003509int test (int i, double x);
3510struct s1 {int (*f) (int a);};
3511struct s2 {int (*f) (double a);};
3512int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3513int argc;
3514char **argv;
3515int
3516main ()
3517{
3518return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3519 ;
3520 return 0;
3521}
3522_ACEOF
3523# Don't try gcc -ansi; that turns off useful extensions and
3524# breaks some systems' header files.
3525# AIX -qlanglvl=ansi
3526# Ultrix and OSF/1 -std1
3527# HP-UX 10.20 and later -Ae
3528# HP-UX older versions -Aa -D_HPUX_SOURCE
3529# SVR4 -Xc -D__EXTENSIONS__
3530for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3531do
3532 CC="$ac_save_CC $ac_arg"
3533 rm -f conftest.$ac_objext
3534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003535 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003536 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003537 grep -v '^ *+' conftest.er1 >conftest.err
3538 rm -f conftest.er1
3539 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003542 { ac_try='test -z "$ac_c_werror_flag"
3543 || test ! -s conftest.err'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 (eval $ac_try) 2>&5
3546 ac_status=$?
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; } &&
3549 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 (eval $ac_try) 2>&5
3552 ac_status=$?
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; }; then
3555 ac_cv_prog_cc_stdc=$ac_arg
3556break
3557else
3558 echo "$as_me: failed program was:" >&5
3559sed 's/^/| /' conftest.$ac_ext >&5
3560
3561fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003562rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003563done
3564rm -f conftest.$ac_ext conftest.$ac_objext
3565CC=$ac_save_CC
3566
3567fi
3568
3569case "x$ac_cv_prog_cc_stdc" in
3570 x|xno)
3571 echo "$as_me:$LINENO: result: none needed" >&5
3572echo "${ECHO_T}none needed" >&6 ;;
3573 *)
3574 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3575echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3576 CC="$CC $ac_cv_prog_cc_stdc" ;;
3577esac
3578
John Criswell7a73b802003-06-30 21:59:07 +00003579# Some people use a C++ compiler to compile C. Since we use `exit',
3580# in C++ we need to declare it. In case someone uses the same compiler
3581# for both compiling C and C++ we need to have the C++ compiler decide
3582# the declaration of exit, since it's the most demanding environment.
3583cat >conftest.$ac_ext <<_ACEOF
3584#ifndef __cplusplus
3585 choke me
3586#endif
3587_ACEOF
3588rm -f conftest.$ac_objext
3589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003590 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003591 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003592 grep -v '^ *+' conftest.er1 >conftest.err
3593 rm -f conftest.er1
3594 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003597 { ac_try='test -z "$ac_c_werror_flag"
3598 || test ! -s conftest.err'
3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 (eval $ac_try) 2>&5
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; } &&
3604 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 (eval $ac_try) 2>&5
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; }; then
3610 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003611 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003612 'extern "C" void std::exit (int) throw (); using std::exit;' \
3613 'extern "C" void std::exit (int); using std::exit;' \
3614 'extern "C" void exit (int) throw ();' \
3615 'extern "C" void exit (int);' \
3616 'void exit (int);'
3617do
3618 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003619/* confdefs.h. */
3620_ACEOF
3621cat confdefs.h >>conftest.$ac_ext
3622cat >>conftest.$ac_ext <<_ACEOF
3623/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003624$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003625#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003626int
3627main ()
3628{
3629exit (42);
3630 ;
3631 return 0;
3632}
3633_ACEOF
3634rm -f conftest.$ac_objext
3635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003636 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003637 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003638 grep -v '^ *+' conftest.er1 >conftest.err
3639 rm -f conftest.er1
3640 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003643 { ac_try='test -z "$ac_c_werror_flag"
3644 || test ! -s conftest.err'
3645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646 (eval $ac_try) 2>&5
3647 ac_status=$?
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; } &&
3650 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652 (eval $ac_try) 2>&5
3653 ac_status=$?
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; }; then
3656 :
3657else
3658 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003659sed 's/^/| /' conftest.$ac_ext >&5
3660
John Criswell7a73b802003-06-30 21:59:07 +00003661continue
3662fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003664 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003665/* confdefs.h. */
3666_ACEOF
3667cat confdefs.h >>conftest.$ac_ext
3668cat >>conftest.$ac_ext <<_ACEOF
3669/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003670$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003671int
3672main ()
3673{
3674exit (42);
3675 ;
3676 return 0;
3677}
3678_ACEOF
3679rm -f conftest.$ac_objext
3680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003681 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003682 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003683 grep -v '^ *+' conftest.er1 >conftest.err
3684 rm -f conftest.er1
3685 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003688 { ac_try='test -z "$ac_c_werror_flag"
3689 || test ! -s conftest.err'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691 (eval $ac_try) 2>&5
3692 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; } &&
3695 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 (eval $ac_try) 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; }; then
3701 break
3702else
3703 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003704sed 's/^/| /' conftest.$ac_ext >&5
3705
John Criswell7a73b802003-06-30 21:59:07 +00003706fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003708done
3709rm -f conftest*
3710if test -n "$ac_declaration"; then
3711 echo '#ifdef __cplusplus' >>confdefs.h
3712 echo $ac_declaration >>confdefs.h
3713 echo '#endif' >>confdefs.h
3714fi
3715
3716else
3717 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003718sed 's/^/| /' conftest.$ac_ext >&5
3719
John Criswell7a73b802003-06-30 21:59:07 +00003720fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003722ac_ext=c
3723ac_cpp='$CPP $CPPFLAGS'
3724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3726ac_compiler_gnu=$ac_cv_c_compiler_gnu
3727
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003728ac_ext=cc
3729ac_cpp='$CXXCPP $CPPFLAGS'
3730ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3733if test -n "$ac_tool_prefix"; then
3734 for ac_prog in $CCC g++
3735 do
3736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3737set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3738echo "$as_me:$LINENO: checking for $ac_word" >&5
3739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3740if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003743 if test -n "$CXX"; then
3744 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3745else
3746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003748do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3753 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 break 2
3756 fi
3757done
3758done
3759
3760fi
3761fi
3762CXX=$ac_cv_prog_CXX
3763if test -n "$CXX"; then
3764 echo "$as_me:$LINENO: result: $CXX" >&5
3765echo "${ECHO_T}$CXX" >&6
3766else
3767 echo "$as_me:$LINENO: result: no" >&5
3768echo "${ECHO_T}no" >&6
3769fi
3770
3771 test -n "$CXX" && break
3772 done
3773fi
3774if test -z "$CXX"; then
3775 ac_ct_CXX=$CXX
3776 for ac_prog in $CCC g++
3777do
3778 # Extract the first word of "$ac_prog", so it can be a program name with args.
3779set dummy $ac_prog; ac_word=$2
3780echo "$as_me:$LINENO: checking for $ac_word" >&5
3781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3782if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3784else
3785 if test -n "$ac_ct_CXX"; then
3786 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3787else
3788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789for as_dir in $PATH
3790do
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3795 ac_cv_prog_ac_ct_CXX="$ac_prog"
3796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3797 break 2
3798 fi
3799done
3800done
3801
3802fi
3803fi
3804ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3805if test -n "$ac_ct_CXX"; then
3806 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3807echo "${ECHO_T}$ac_ct_CXX" >&6
3808else
3809 echo "$as_me:$LINENO: result: no" >&5
3810echo "${ECHO_T}no" >&6
3811fi
3812
3813 test -n "$ac_ct_CXX" && break
3814done
3815test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3816
3817 CXX=$ac_ct_CXX
3818fi
3819
3820
3821# Provide some information about the compiler.
3822echo "$as_me:$LINENO:" \
3823 "checking for C++ compiler version" >&5
3824ac_compiler=`set X $ac_compile; echo $2`
3825{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3826 (eval $ac_compiler --version </dev/null >&5) 2>&5
3827 ac_status=$?
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }
3830{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3831 (eval $ac_compiler -v </dev/null >&5) 2>&5
3832 ac_status=$?
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }
3835{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3836 (eval $ac_compiler -V </dev/null >&5) 2>&5
3837 ac_status=$?
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }
3840
3841echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3842echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3843if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3845else
John Criswell7a73b802003-06-30 21:59:07 +00003846 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003847/* confdefs.h. */
3848_ACEOF
3849cat confdefs.h >>conftest.$ac_ext
3850cat >>conftest.$ac_ext <<_ACEOF
3851/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003852
3853int
3854main ()
3855{
3856#ifndef __GNUC__
3857 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00003858#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003859
3860 ;
3861 return 0;
3862}
John Criswell7a73b802003-06-30 21:59:07 +00003863_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003864rm -f conftest.$ac_objext
3865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3866 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003867 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003868 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003869 rm -f conftest.er1
3870 cat conftest.err >&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003872 (exit $ac_status); } &&
3873 { ac_try='test -z "$ac_cxx_werror_flag"
3874 || test ! -s conftest.err'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 (eval $ac_try) 2>&5
3877 ac_status=$?
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; } &&
3880 { ac_try='test -s conftest.$ac_objext'
3881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882 (eval $ac_try) 2>&5
3883 ac_status=$?
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; }; then
3886 ac_compiler_gnu=yes
3887else
3888 echo "$as_me: failed program was:" >&5
3889sed 's/^/| /' conftest.$ac_ext >&5
3890
3891ac_compiler_gnu=no
3892fi
3893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3894ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3895
3896fi
3897echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3898echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3899GXX=`test $ac_compiler_gnu = yes && echo yes`
3900ac_test_CXXFLAGS=${CXXFLAGS+set}
3901ac_save_CXXFLAGS=$CXXFLAGS
3902CXXFLAGS="-g"
3903echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3904echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3905if test "${ac_cv_prog_cxx_g+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3907else
3908 cat >conftest.$ac_ext <<_ACEOF
3909/* confdefs.h. */
3910_ACEOF
3911cat confdefs.h >>conftest.$ac_ext
3912cat >>conftest.$ac_ext <<_ACEOF
3913/* end confdefs.h. */
3914
3915int
3916main ()
3917{
3918
3919 ;
3920 return 0;
3921}
3922_ACEOF
3923rm -f conftest.$ac_objext
3924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3925 (eval $ac_compile) 2>conftest.er1
3926 ac_status=$?
3927 grep -v '^ *+' conftest.er1 >conftest.err
3928 rm -f conftest.er1
3929 cat conftest.err >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } &&
3932 { ac_try='test -z "$ac_cxx_werror_flag"
3933 || test ! -s conftest.err'
3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935 (eval $ac_try) 2>&5
3936 ac_status=$?
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; } &&
3939 { ac_try='test -s conftest.$ac_objext'
3940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941 (eval $ac_try) 2>&5
3942 ac_status=$?
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; }; then
3945 ac_cv_prog_cxx_g=yes
3946else
3947 echo "$as_me: failed program was:" >&5
3948sed 's/^/| /' conftest.$ac_ext >&5
3949
3950ac_cv_prog_cxx_g=no
3951fi
3952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3953fi
3954echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3955echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3956if test "$ac_test_CXXFLAGS" = set; then
3957 CXXFLAGS=$ac_save_CXXFLAGS
3958elif test $ac_cv_prog_cxx_g = yes; then
3959 if test "$GXX" = yes; then
3960 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003961 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003962 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003963 fi
3964else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003965 if test "$GXX" = yes; then
3966 CXXFLAGS="-O2"
3967 else
3968 CXXFLAGS=
3969 fi
John Criswell7a73b802003-06-30 21:59:07 +00003970fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003971for ac_declaration in \
3972 '' \
3973 'extern "C" void std::exit (int) throw (); using std::exit;' \
3974 'extern "C" void std::exit (int); using std::exit;' \
3975 'extern "C" void exit (int) throw ();' \
3976 'extern "C" void exit (int);' \
3977 'void exit (int);'
3978do
3979 cat >conftest.$ac_ext <<_ACEOF
3980/* confdefs.h. */
3981_ACEOF
3982cat confdefs.h >>conftest.$ac_ext
3983cat >>conftest.$ac_ext <<_ACEOF
3984/* end confdefs.h. */
3985$ac_declaration
3986#include <stdlib.h>
3987int
3988main ()
3989{
3990exit (42);
3991 ;
3992 return 0;
3993}
3994_ACEOF
3995rm -f conftest.$ac_objext
3996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3997 (eval $ac_compile) 2>conftest.er1
3998 ac_status=$?
3999 grep -v '^ *+' conftest.er1 >conftest.err
4000 rm -f conftest.er1
4001 cat conftest.err >&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } &&
4004 { ac_try='test -z "$ac_cxx_werror_flag"
4005 || test ! -s conftest.err'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 (eval $ac_try) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; } &&
4011 { ac_try='test -s conftest.$ac_objext'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 (eval $ac_try) 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004017 :
4018else
4019 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004020sed 's/^/| /' conftest.$ac_ext >&5
4021
John Criswell7a73b802003-06-30 21:59:07 +00004022continue
4023fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004025 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004026/* confdefs.h. */
4027_ACEOF
4028cat confdefs.h >>conftest.$ac_ext
4029cat >>conftest.$ac_ext <<_ACEOF
4030/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004031$ac_declaration
4032int
4033main ()
4034{
4035exit (42);
4036 ;
4037 return 0;
4038}
John Criswell7a73b802003-06-30 21:59:07 +00004039_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004040rm -f conftest.$ac_objext
4041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004043 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004044 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004045 rm -f conftest.er1
4046 cat conftest.err >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004048 (exit $ac_status); } &&
4049 { ac_try='test -z "$ac_cxx_werror_flag"
4050 || test ! -s conftest.err'
4051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052 (eval $ac_try) 2>&5
4053 ac_status=$?
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }; } &&
4056 { ac_try='test -s conftest.$ac_objext'
4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 (eval $ac_try) 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004062 break
John Criswell7a73b802003-06-30 21:59:07 +00004063else
4064 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004065sed 's/^/| /' conftest.$ac_ext >&5
4066
John Criswell7a73b802003-06-30 21:59:07 +00004067fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004069done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004070rm -f conftest*
4071if test -n "$ac_declaration"; then
4072 echo '#ifdef __cplusplus' >>confdefs.h
4073 echo $ac_declaration >>confdefs.h
4074 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004075fi
4076
4077ac_ext=c
4078ac_cpp='$CPP $CPPFLAGS'
4079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4081ac_compiler_gnu=$ac_cv_c_compiler_gnu
4082
John Criswell7a73b802003-06-30 21:59:07 +00004083echo "$as_me:$LINENO: checking " >&5
4084echo $ECHO_N "checking ... $ECHO_C" >&6
4085if test "${ac_cv_has_flex+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4087else
4088 for ac_prog in flex lex
4089do
4090 # Extract the first word of "$ac_prog", so it can be a program name with args.
4091set dummy $ac_prog; ac_word=$2
4092echo "$as_me:$LINENO: checking for $ac_word" >&5
4093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4094if test "${ac_cv_prog_LEX+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4096else
4097 if test -n "$LEX"; then
4098 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4099else
4100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101for as_dir in $PATH
4102do
4103 IFS=$as_save_IFS
4104 test -z "$as_dir" && as_dir=.
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4107 ac_cv_prog_LEX="$ac_prog"
4108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4109 break 2
4110 fi
4111done
4112done
4113
4114fi
4115fi
4116LEX=$ac_cv_prog_LEX
4117if test -n "$LEX"; then
4118 echo "$as_me:$LINENO: result: $LEX" >&5
4119echo "${ECHO_T}$LEX" >&6
4120else
4121 echo "$as_me:$LINENO: result: no" >&5
4122echo "${ECHO_T}no" >&6
4123fi
4124
4125 test -n "$LEX" && break
4126done
4127test -n "$LEX" || LEX=":"
4128
4129if test -z "$LEXLIB"
4130then
4131 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4132echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4133if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135else
4136 ac_check_lib_save_LIBS=$LIBS
4137LIBS="-lfl $LIBS"
4138cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004139/* confdefs.h. */
4140_ACEOF
4141cat confdefs.h >>conftest.$ac_ext
4142cat >>conftest.$ac_ext <<_ACEOF
4143/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004144
4145/* Override any gcc2 internal prototype to avoid an error. */
4146#ifdef __cplusplus
4147extern "C"
4148#endif
4149/* We use char because int might match the return type of a gcc2
4150 builtin and then its argument prototype would still apply. */
4151char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004152int
4153main ()
4154{
4155yywrap ();
4156 ;
4157 return 0;
4158}
4159_ACEOF
4160rm -f conftest.$ac_objext conftest$ac_exeext
4161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004162 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004163 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004164 grep -v '^ *+' conftest.er1 >conftest.err
4165 rm -f conftest.er1
4166 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004169 { ac_try='test -z "$ac_c_werror_flag"
4170 || test ! -s conftest.err'
4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172 (eval $ac_try) 2>&5
4173 ac_status=$?
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; } &&
4176 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178 (eval $ac_try) 2>&5
4179 ac_status=$?
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }; }; then
4182 ac_cv_lib_fl_yywrap=yes
4183else
4184 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004185sed 's/^/| /' conftest.$ac_ext >&5
4186
John Criswell7a73b802003-06-30 21:59:07 +00004187ac_cv_lib_fl_yywrap=no
4188fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004189rm -f conftest.err conftest.$ac_objext \
4190 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004191LIBS=$ac_check_lib_save_LIBS
4192fi
4193echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4194echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4195if test $ac_cv_lib_fl_yywrap = yes; then
4196 LEXLIB="-lfl"
4197else
4198 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4199echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4200if test "${ac_cv_lib_l_yywrap+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4202else
4203 ac_check_lib_save_LIBS=$LIBS
4204LIBS="-ll $LIBS"
4205cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004206/* confdefs.h. */
4207_ACEOF
4208cat confdefs.h >>conftest.$ac_ext
4209cat >>conftest.$ac_ext <<_ACEOF
4210/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004211
4212/* Override any gcc2 internal prototype to avoid an error. */
4213#ifdef __cplusplus
4214extern "C"
4215#endif
4216/* We use char because int might match the return type of a gcc2
4217 builtin and then its argument prototype would still apply. */
4218char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004219int
4220main ()
4221{
4222yywrap ();
4223 ;
4224 return 0;
4225}
4226_ACEOF
4227rm -f conftest.$ac_objext conftest$ac_exeext
4228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004229 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004230 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004231 grep -v '^ *+' conftest.er1 >conftest.err
4232 rm -f conftest.er1
4233 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004236 { ac_try='test -z "$ac_c_werror_flag"
4237 || test ! -s conftest.err'
4238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239 (eval $ac_try) 2>&5
4240 ac_status=$?
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; } &&
4243 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245 (eval $ac_try) 2>&5
4246 ac_status=$?
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; }; then
4249 ac_cv_lib_l_yywrap=yes
4250else
4251 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004252sed 's/^/| /' conftest.$ac_ext >&5
4253
John Criswell7a73b802003-06-30 21:59:07 +00004254ac_cv_lib_l_yywrap=no
4255fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004256rm -f conftest.err conftest.$ac_objext \
4257 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004258LIBS=$ac_check_lib_save_LIBS
4259fi
4260echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4261echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4262if test $ac_cv_lib_l_yywrap = yes; then
4263 LEXLIB="-ll"
4264fi
4265
4266fi
4267
4268fi
4269
4270if test "x$LEX" != "x:"; then
4271 echo "$as_me:$LINENO: checking lex output file root" >&5
4272echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4273if test "${ac_cv_prog_lex_root+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4275else
4276 # The minimal lex program is just a single line: %%. But some broken lexes
4277# (Solaris, I think it was) want two %% lines, so accommodate them.
4278cat >conftest.l <<_ACEOF
4279%%
4280%%
4281_ACEOF
4282{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4283 (eval $LEX conftest.l) 2>&5
4284 ac_status=$?
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }
4287if test -f lex.yy.c; then
4288 ac_cv_prog_lex_root=lex.yy
4289elif test -f lexyy.c; then
4290 ac_cv_prog_lex_root=lexyy
4291else
4292 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4293echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4294 { (exit 1); exit 1; }; }
4295fi
4296fi
4297echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4298echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4299rm -f conftest.l
4300LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4301
4302echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4303echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4304if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4306else
4307 # POSIX says lex can declare yytext either as a pointer or an array; the
4308# default is implementation-dependent. Figure out which it is, since
4309# not all implementations provide the %pointer and %array declarations.
4310ac_cv_prog_lex_yytext_pointer=no
4311echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4312ac_save_LIBS=$LIBS
4313LIBS="$LIBS $LEXLIB"
4314cat >conftest.$ac_ext <<_ACEOF
4315`cat $LEX_OUTPUT_ROOT.c`
4316_ACEOF
4317rm -f conftest.$ac_objext conftest$ac_exeext
4318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004319 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004320 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004321 grep -v '^ *+' conftest.er1 >conftest.err
4322 rm -f conftest.er1
4323 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004326 { ac_try='test -z "$ac_c_werror_flag"
4327 || test ! -s conftest.err'
4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329 (eval $ac_try) 2>&5
4330 ac_status=$?
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; } &&
4333 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335 (eval $ac_try) 2>&5
4336 ac_status=$?
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; }; then
4339 ac_cv_prog_lex_yytext_pointer=yes
4340else
4341 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004342sed 's/^/| /' conftest.$ac_ext >&5
4343
John Criswell7a73b802003-06-30 21:59:07 +00004344fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004345rm -f conftest.err conftest.$ac_objext \
4346 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004347LIBS=$ac_save_LIBS
4348rm -f "${LEX_OUTPUT_ROOT}.c"
4349
4350fi
4351echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4352echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4353if test $ac_cv_prog_lex_yytext_pointer = yes; then
4354
4355cat >>confdefs.h <<\_ACEOF
4356#define YYTEXT_POINTER 1
4357_ACEOF
4358
4359fi
4360
4361fi
4362
4363fi
4364echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4365echo "${ECHO_T}$ac_cv_has_flex" >&6
4366if test "$LEX" != "flex"; then
4367 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4368echo "$as_me: error: flex not found but required" >&2;}
4369 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004370else
4371 FLEX=flex
4372
John Criswell7a73b802003-06-30 21:59:07 +00004373fi
4374
4375echo "$as_me:$LINENO: checking " >&5
4376echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004377if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004378 echo $ECHO_N "(cached) $ECHO_C" >&6
4379else
4380 for ac_prog in 'bison -y' byacc
4381do
4382 # Extract the first word of "$ac_prog", so it can be a program name with args.
4383set dummy $ac_prog; ac_word=$2
4384echo "$as_me:$LINENO: checking for $ac_word" >&5
4385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4386if test "${ac_cv_prog_YACC+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4388else
4389 if test -n "$YACC"; then
4390 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4391else
4392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393for as_dir in $PATH
4394do
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4399 ac_cv_prog_YACC="$ac_prog"
4400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 break 2
4402 fi
4403done
4404done
4405
4406fi
4407fi
4408YACC=$ac_cv_prog_YACC
4409if test -n "$YACC"; then
4410 echo "$as_me:$LINENO: result: $YACC" >&5
4411echo "${ECHO_T}$YACC" >&6
4412else
4413 echo "$as_me:$LINENO: result: no" >&5
4414echo "${ECHO_T}no" >&6
4415fi
4416
4417 test -n "$YACC" && break
4418done
4419test -n "$YACC" || YACC="yacc"
4420
John Criswell7a73b802003-06-30 21:59:07 +00004421fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004422echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4423echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004424if test "$YACC" != "bison -y"; then
4425 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4426echo "$as_me: error: bison not found but required" >&2;}
4427 { (exit 1); exit 1; }; }
4428else
Brian Gaeke12810632004-01-13 06:52:10 +00004429 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004430
4431fi
4432
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004433echo "$as_me:$LINENO: checking for GNU make" >&5
4434echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4435if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004436 echo $ECHO_N "(cached) $ECHO_C" >&6
4437else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004438 llvm_cv_gnu_make_command=''
4439 for a in "$MAKE" make gmake gnumake ; do
4440 if test -z "$a" ; then continue ; fi ;
4441 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4442 then
4443 llvm_cv_gnu_make_command=$a ;
4444 break;
John Criswell47fdd832003-07-14 16:52:07 +00004445 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004446 done
John Criswell7a73b802003-06-30 21:59:07 +00004447fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004448echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4449echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4450 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4451 ifGNUmake='' ;
4452 else
4453 ifGNUmake='#' ;
4454 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4455echo "${ECHO_T}\"Not found\"" >&6;
4456 fi
John Criswell7a73b802003-06-30 21:59:07 +00004457
John Criswell7a73b802003-06-30 21:59:07 +00004458
4459echo "$as_me:$LINENO: checking whether ln -s works" >&5
4460echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4461LN_S=$as_ln_s
4462if test "$LN_S" = "ln -s"; then
4463 echo "$as_me:$LINENO: result: yes" >&5
4464echo "${ECHO_T}yes" >&6
4465else
4466 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4467echo "${ECHO_T}no, using $LN_S" >&6
4468fi
4469
Reid Spencer8a2d4712004-12-16 17:48:14 +00004470# Extract the first word of "cmp", so it can be a program name with args.
4471set dummy cmp; ac_word=$2
4472echo "$as_me:$LINENO: checking for $ac_word" >&5
4473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4474if test "${ac_cv_path_CMP+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4476else
4477 case $CMP in
4478 [\\/]* | ?:[\\/]*)
4479 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4480 ;;
4481 *)
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483for as_dir in $PATH
4484do
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4489 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 break 2
4492 fi
4493done
4494done
4495
4496 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4497 ;;
4498esac
4499fi
4500CMP=$ac_cv_path_CMP
4501
4502if test -n "$CMP"; then
4503 echo "$as_me:$LINENO: result: $CMP" >&5
4504echo "${ECHO_T}$CMP" >&6
4505else
4506 echo "$as_me:$LINENO: result: no" >&5
4507echo "${ECHO_T}no" >&6
4508fi
4509
4510# Extract the first word of "cp", so it can be a program name with args.
4511set dummy cp; ac_word=$2
4512echo "$as_me:$LINENO: checking for $ac_word" >&5
4513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4514if test "${ac_cv_path_CP+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516else
4517 case $CP in
4518 [\\/]* | ?:[\\/]*)
4519 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4520 ;;
4521 *)
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523for as_dir in $PATH
4524do
4525 IFS=$as_save_IFS
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4529 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531 break 2
4532 fi
4533done
4534done
4535
4536 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4537 ;;
4538esac
4539fi
4540CP=$ac_cv_path_CP
4541
4542if test -n "$CP"; then
4543 echo "$as_me:$LINENO: result: $CP" >&5
4544echo "${ECHO_T}$CP" >&6
4545else
4546 echo "$as_me:$LINENO: result: no" >&5
4547echo "${ECHO_T}no" >&6
4548fi
4549
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004550# Extract the first word of "date", so it can be a program name with args.
4551set dummy date; ac_word=$2
4552echo "$as_me:$LINENO: checking for $ac_word" >&5
4553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4554if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004555 echo $ECHO_N "(cached) $ECHO_C" >&6
4556else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004557 case $DATE in
4558 [\\/]* | ?:[\\/]*)
4559 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004560 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004561 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563for as_dir in $PATH
4564do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4569 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004572 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004573done
4574done
John Criswell7a73b802003-06-30 21:59:07 +00004575
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004576 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004577 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004578esac
John Criswell7a73b802003-06-30 21:59:07 +00004579fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004580DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004581
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004582if test -n "$DATE"; then
4583 echo "$as_me:$LINENO: result: $DATE" >&5
4584echo "${ECHO_T}$DATE" >&6
4585else
4586 echo "$as_me:$LINENO: result: no" >&5
4587echo "${ECHO_T}no" >&6
4588fi
John Criswell7a73b802003-06-30 21:59:07 +00004589
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004590# Extract the first word of "find", so it can be a program name with args.
4591set dummy find; ac_word=$2
4592echo "$as_me:$LINENO: checking for $ac_word" >&5
4593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4594if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004595 echo $ECHO_N "(cached) $ECHO_C" >&6
4596else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004597 case $FIND in
4598 [\\/]* | ?:[\\/]*)
4599 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4600 ;;
4601 *)
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603for as_dir in $PATH
4604do
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4609 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 break 2
4612 fi
4613done
4614done
4615
4616 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4617 ;;
4618esac
4619fi
4620FIND=$ac_cv_path_FIND
4621
4622if test -n "$FIND"; then
4623 echo "$as_me:$LINENO: result: $FIND" >&5
4624echo "${ECHO_T}$FIND" >&6
4625else
4626 echo "$as_me:$LINENO: result: no" >&5
4627echo "${ECHO_T}no" >&6
4628fi
4629
4630# Extract the first word of "grep", so it can be a program name with args.
4631set dummy grep; ac_word=$2
4632echo "$as_me:$LINENO: checking for $ac_word" >&5
4633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4634if test "${ac_cv_path_GREP+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4636else
4637 case $GREP in
4638 [\\/]* | ?:[\\/]*)
4639 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4640 ;;
4641 *)
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643for as_dir in $PATH
4644do
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4652 fi
4653done
4654done
4655
4656 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4657 ;;
4658esac
4659fi
4660GREP=$ac_cv_path_GREP
4661
4662if test -n "$GREP"; then
4663 echo "$as_me:$LINENO: result: $GREP" >&5
4664echo "${ECHO_T}$GREP" >&6
4665else
4666 echo "$as_me:$LINENO: result: no" >&5
4667echo "${ECHO_T}no" >&6
4668fi
4669
Reid Spencer502935f2004-12-22 05:56:56 +00004670# Extract the first word of "llvm-gcc", so it can be a program name with args.
4671set dummy llvm-gcc; ac_word=$2
4672echo "$as_me:$LINENO: checking for $ac_word" >&5
4673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4674if test "${ac_cv_path_LLVMGCC+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676else
4677 case $LLVMGCC in
4678 [\\/]* | ?:[\\/]*)
4679 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
4680 ;;
4681 *)
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683for as_dir in $PATH
4684do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
4690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 break 2
4692 fi
4693done
4694done
4695
4696 test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
4697 ;;
4698esac
4699fi
4700LLVMGCC=$ac_cv_path_LLVMGCC
4701
4702if test -n "$LLVMGCC"; then
4703 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
4704echo "${ECHO_T}$LLVMGCC" >&6
4705else
4706 echo "$as_me:$LINENO: result: no" >&5
4707echo "${ECHO_T}no" >&6
4708fi
4709
4710# Extract the first word of "llvm-g++", so it can be a program name with args.
4711set dummy llvm-g++; ac_word=$2
4712echo "$as_me:$LINENO: checking for $ac_word" >&5
4713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4714if test "${ac_cv_path_LLVMGXX+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4716else
4717 case $LLVMGXX in
4718 [\\/]* | ?:[\\/]*)
4719 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
4720 ;;
4721 *)
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723for as_dir in $PATH
4724do
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
4730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 break 2
4732 fi
4733done
4734done
4735
4736 test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
4737 ;;
4738esac
4739fi
4740LLVMGXX=$ac_cv_path_LLVMGXX
4741
4742if test -n "$LLVMGXX"; then
4743 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
4744echo "${ECHO_T}$LLVMGXX" >&6
4745else
4746 echo "$as_me:$LINENO: result: no" >&5
4747echo "${ECHO_T}no" >&6
4748fi
4749
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004750# Extract the first word of "mkdir", so it can be a program name with args.
4751set dummy mkdir; ac_word=$2
4752echo "$as_me:$LINENO: checking for $ac_word" >&5
4753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4754if test "${ac_cv_path_MKDIR+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4756else
4757 case $MKDIR in
4758 [\\/]* | ?:[\\/]*)
4759 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4760 ;;
4761 *)
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763for as_dir in $PATH
4764do
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4769 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 break 2
4772 fi
4773done
4774done
4775
4776 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4777 ;;
4778esac
4779fi
4780MKDIR=$ac_cv_path_MKDIR
4781
4782if test -n "$MKDIR"; then
4783 echo "$as_me:$LINENO: result: $MKDIR" >&5
4784echo "${ECHO_T}$MKDIR" >&6
4785else
4786 echo "$as_me:$LINENO: result: no" >&5
4787echo "${ECHO_T}no" >&6
4788fi
4789
4790# Extract the first word of "mv", so it can be a program name with args.
4791set dummy mv; ac_word=$2
4792echo "$as_me:$LINENO: checking for $ac_word" >&5
4793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4794if test "${ac_cv_path_MV+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4796else
4797 case $MV in
4798 [\\/]* | ?:[\\/]*)
4799 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4800 ;;
4801 *)
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803for as_dir in $PATH
4804do
4805 IFS=$as_save_IFS
4806 test -z "$as_dir" && as_dir=.
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4809 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 break 2
4812 fi
4813done
4814done
4815
4816 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4817 ;;
4818esac
4819fi
4820MV=$ac_cv_path_MV
4821
4822if test -n "$MV"; then
4823 echo "$as_me:$LINENO: result: $MV" >&5
4824echo "${ECHO_T}$MV" >&6
4825else
4826 echo "$as_me:$LINENO: result: no" >&5
4827echo "${ECHO_T}no" >&6
4828fi
4829
4830# Extract the first word of "pax", so it can be a program name with args.
4831set dummy pax; ac_word=$2
4832echo "$as_me:$LINENO: checking for $ac_word" >&5
4833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4834if test "${ac_cv_path_PAX+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4836else
4837 case $PAX in
4838 [\\/]* | ?:[\\/]*)
4839 ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4840 ;;
4841 *)
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843for as_dir in $PATH
4844do
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4849 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
4852 fi
4853done
4854done
4855
4856 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4857 ;;
4858esac
4859fi
4860PAX=$ac_cv_path_PAX
4861
4862if test -n "$PAX"; then
4863 echo "$as_me:$LINENO: result: $PAX" >&5
4864echo "${ECHO_T}$PAX" >&6
4865else
4866 echo "$as_me:$LINENO: result: no" >&5
4867echo "${ECHO_T}no" >&6
4868fi
4869
4870if test -n "$ac_tool_prefix"; then
4871 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4872set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4873echo "$as_me:$LINENO: checking for $ac_word" >&5
4874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4875if test "${ac_cv_prog_RANLIB+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4877else
4878 if test -n "$RANLIB"; then
4879 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4880else
4881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882for as_dir in $PATH
4883do
4884 IFS=$as_save_IFS
4885 test -z "$as_dir" && as_dir=.
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4888 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 break 2
4891 fi
4892done
4893done
4894
4895fi
4896fi
4897RANLIB=$ac_cv_prog_RANLIB
4898if test -n "$RANLIB"; then
4899 echo "$as_me:$LINENO: result: $RANLIB" >&5
4900echo "${ECHO_T}$RANLIB" >&6
4901else
4902 echo "$as_me:$LINENO: result: no" >&5
4903echo "${ECHO_T}no" >&6
4904fi
4905
4906fi
4907if test -z "$ac_cv_prog_RANLIB"; then
4908 ac_ct_RANLIB=$RANLIB
4909 # Extract the first word of "ranlib", so it can be a program name with args.
4910set dummy ranlib; ac_word=$2
4911echo "$as_me:$LINENO: checking for $ac_word" >&5
4912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4913if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4915else
4916 if test -n "$ac_ct_RANLIB"; then
4917 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4918else
4919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920for as_dir in $PATH
4921do
4922 IFS=$as_save_IFS
4923 test -z "$as_dir" && as_dir=.
4924 for ac_exec_ext in '' $ac_executable_extensions; do
4925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4926 ac_cv_prog_ac_ct_RANLIB="ranlib"
4927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4928 break 2
4929 fi
4930done
4931done
4932
4933 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4934fi
4935fi
4936ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4937if test -n "$ac_ct_RANLIB"; then
4938 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4939echo "${ECHO_T}$ac_ct_RANLIB" >&6
4940else
4941 echo "$as_me:$LINENO: result: no" >&5
4942echo "${ECHO_T}no" >&6
4943fi
4944
4945 RANLIB=$ac_ct_RANLIB
4946else
4947 RANLIB="$ac_cv_prog_RANLIB"
4948fi
4949
4950# Extract the first word of "rm", so it can be a program name with args.
4951set dummy rm; ac_word=$2
4952echo "$as_me:$LINENO: checking for $ac_word" >&5
4953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4954if test "${ac_cv_path_RM+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4956else
4957 case $RM in
4958 [\\/]* | ?:[\\/]*)
4959 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4960 ;;
4961 *)
4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963for as_dir in $PATH
4964do
4965 IFS=$as_save_IFS
4966 test -z "$as_dir" && as_dir=.
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4969 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4971 break 2
4972 fi
4973done
4974done
4975
4976 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4977 ;;
4978esac
4979fi
4980RM=$ac_cv_path_RM
4981
4982if test -n "$RM"; then
4983 echo "$as_me:$LINENO: result: $RM" >&5
4984echo "${ECHO_T}$RM" >&6
4985else
4986 echo "$as_me:$LINENO: result: no" >&5
4987echo "${ECHO_T}no" >&6
4988fi
4989
4990# Extract the first word of "sed", so it can be a program name with args.
4991set dummy sed; ac_word=$2
4992echo "$as_me:$LINENO: checking for $ac_word" >&5
4993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4994if test "${ac_cv_path_SED+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4996else
4997 case $SED in
4998 [\\/]* | ?:[\\/]*)
4999 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5000 ;;
5001 *)
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003for as_dir in $PATH
5004do
5005 IFS=$as_save_IFS
5006 test -z "$as_dir" && as_dir=.
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5009 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5011 break 2
5012 fi
5013done
5014done
5015
5016 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5017 ;;
5018esac
5019fi
5020SED=$ac_cv_path_SED
5021
5022if test -n "$SED"; then
5023 echo "$as_me:$LINENO: result: $SED" >&5
5024echo "${ECHO_T}$SED" >&6
5025else
5026 echo "$as_me:$LINENO: result: no" >&5
5027echo "${ECHO_T}no" >&6
5028fi
5029
5030# Extract the first word of "tar", so it can be a program name with args.
5031set dummy tar; ac_word=$2
5032echo "$as_me:$LINENO: checking for $ac_word" >&5
5033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5034if test "${ac_cv_path_TAR+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5036else
5037 case $TAR in
5038 [\\/]* | ?:[\\/]*)
5039 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5040 ;;
5041 *)
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043for as_dir in $PATH
5044do
5045 IFS=$as_save_IFS
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5049 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5051 break 2
5052 fi
5053done
5054done
5055
5056 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5057 ;;
5058esac
5059fi
5060TAR=$ac_cv_path_TAR
5061
5062if test -n "$TAR"; then
5063 echo "$as_me:$LINENO: result: $TAR" >&5
5064echo "${ECHO_T}$TAR" >&6
5065else
5066 echo "$as_me:$LINENO: result: no" >&5
5067echo "${ECHO_T}no" >&6
5068fi
5069
5070
5071# Find a good install program. We prefer a C program (faster),
5072# so one script is as good as another. But avoid the broken or
5073# incompatible versions:
5074# SysV /etc/install, /usr/sbin/install
5075# SunOS /usr/etc/install
5076# IRIX /sbin/install
5077# AIX /bin/install
5078# AmigaOS /C/install, which installs bootblocks on floppy discs
5079# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5080# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5081# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5082# OS/2's system install, which has a completely different semantic
5083# ./install, which can be erroneously created by make from ./install.sh.
5084echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5085echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5086if test -z "$INSTALL"; then
5087if test "${ac_cv_path_install+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5089else
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091for as_dir in $PATH
5092do
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5095 # Account for people who put trailing slashes in PATH elements.
5096case $as_dir/ in
5097 ./ | .// | /cC/* | \
5098 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5099 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5100 /usr/ucb/* ) ;;
5101 *)
5102 # OSF1 and SCO ODT 3.0 have their own names for install.
5103 # Don't use installbsd from OSF since it installs stuff as root
5104 # by default.
5105 for ac_prog in ginstall scoinst install; do
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5108 if test $ac_prog = install &&
5109 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5110 # AIX install. It has an incompatible calling convention.
5111 :
5112 elif test $ac_prog = install &&
5113 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5114 # program-specific install script used by HP pwplus--don't use.
5115 :
5116 else
5117 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5118 break 3
5119 fi
5120 fi
5121 done
5122 done
5123 ;;
5124esac
5125done
5126
5127
5128fi
5129 if test "${ac_cv_path_install+set}" = set; then
5130 INSTALL=$ac_cv_path_install
5131 else
5132 # As a last resort, use the slow shell script. We don't cache a
5133 # path for INSTALL within a source directory, because that will
5134 # break other packages using the cache if that directory is
5135 # removed, or if the path is relative.
5136 INSTALL=$ac_install_sh
5137 fi
5138fi
5139echo "$as_me:$LINENO: result: $INSTALL" >&5
5140echo "${ECHO_T}$INSTALL" >&6
5141
5142# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5143# It thinks the first close brace ends the variable substitution.
5144test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5145
5146test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5147
5148test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5149
5150
5151# Extract the first word of "bzip2", so it can be a program name with args.
5152set dummy bzip2; ac_word=$2
5153echo "$as_me:$LINENO: checking for $ac_word" >&5
5154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5155if test "${ac_cv_path_BZIP2+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157else
5158 case $BZIP2 in
5159 [\\/]* | ?:[\\/]*)
5160 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5161 ;;
5162 *)
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164for as_dir in $PATH
5165do
5166 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 break 2
5173 fi
5174done
5175done
5176
5177 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5178 ;;
5179esac
5180fi
5181BZIP2=$ac_cv_path_BZIP2
5182
5183if test -n "$BZIP2"; then
5184 echo "$as_me:$LINENO: result: $BZIP2" >&5
5185echo "${ECHO_T}$BZIP2" >&6
5186else
5187 echo "$as_me:$LINENO: result: no" >&5
5188echo "${ECHO_T}no" >&6
5189fi
5190
5191# Extract the first word of "dot", so it can be a program name with args.
5192set dummy dot; ac_word=$2
5193echo "$as_me:$LINENO: checking for $ac_word" >&5
5194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5195if test "${ac_cv_path_DOT+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5197else
5198 case $DOT in
5199 [\\/]* | ?:[\\/]*)
5200 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5201 ;;
5202 *)
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204for as_dir in $PATH
5205do
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2
5213 fi
5214done
5215done
5216
5217 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5218 ;;
5219esac
5220fi
5221DOT=$ac_cv_path_DOT
5222
5223if test -n "$DOT"; then
5224 echo "$as_me:$LINENO: result: $DOT" >&5
5225echo "${ECHO_T}$DOT" >&6
5226else
5227 echo "$as_me:$LINENO: result: no" >&5
5228echo "${ECHO_T}no" >&6
5229fi
5230
5231# Extract the first word of "doxygen", so it can be a program name with args.
5232set dummy doxygen; ac_word=$2
5233echo "$as_me:$LINENO: checking for $ac_word" >&5
5234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5235if test "${ac_cv_path_DOXYGEN+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5237else
5238 case $DOXYGEN in
5239 [\\/]* | ?:[\\/]*)
5240 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5241 ;;
5242 *)
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244for as_dir in $PATH
5245do
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5250 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 break 2
5253 fi
5254done
5255done
5256
5257 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5258 ;;
5259esac
5260fi
5261DOXYGEN=$ac_cv_path_DOXYGEN
5262
5263if test -n "$DOXYGEN"; then
5264 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5265echo "${ECHO_T}$DOXYGEN" >&6
5266else
5267 echo "$as_me:$LINENO: result: no" >&5
5268echo "${ECHO_T}no" >&6
5269fi
5270
5271# Extract the first word of "etags", so it can be a program name with args.
5272set dummy etags; ac_word=$2
5273echo "$as_me:$LINENO: checking for $ac_word" >&5
5274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5275if test "${ac_cv_path_ETAGS+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5277else
5278 case $ETAGS in
5279 [\\/]* | ?:[\\/]*)
5280 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5281 ;;
5282 *)
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284for as_dir in $PATH
5285do
5286 IFS=$as_save_IFS
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5290 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 break 2
5293 fi
5294done
5295done
5296
5297 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5298 ;;
5299esac
5300fi
5301ETAGS=$ac_cv_path_ETAGS
5302
5303if test -n "$ETAGS"; then
5304 echo "$as_me:$LINENO: result: $ETAGS" >&5
5305echo "${ECHO_T}$ETAGS" >&6
5306else
5307 echo "$as_me:$LINENO: result: no" >&5
5308echo "${ECHO_T}no" >&6
5309fi
5310
5311# Extract the first word of "groff", so it can be a program name with args.
5312set dummy groff; ac_word=$2
5313echo "$as_me:$LINENO: checking for $ac_word" >&5
5314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5315if test "${ac_cv_path_GROFF+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5317else
5318 case $GROFF in
5319 [\\/]* | ?:[\\/]*)
5320 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5321 ;;
5322 *)
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324for as_dir in $PATH
5325do
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5330 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 break 2
5333 fi
5334done
5335done
5336
5337 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5338 ;;
5339esac
5340fi
5341GROFF=$ac_cv_path_GROFF
5342
5343if test -n "$GROFF"; then
5344 echo "$as_me:$LINENO: result: $GROFF" >&5
5345echo "${ECHO_T}$GROFF" >&6
5346else
5347 echo "$as_me:$LINENO: result: no" >&5
5348echo "${ECHO_T}no" >&6
5349fi
5350
5351# Extract the first word of "gzip", so it can be a program name with args.
5352set dummy gzip; ac_word=$2
5353echo "$as_me:$LINENO: checking for $ac_word" >&5
5354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5355if test "${ac_cv_path_GZIP+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5357else
5358 case $GZIP in
5359 [\\/]* | ?:[\\/]*)
5360 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5361 ;;
5362 *)
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364for as_dir in $PATH
5365do
5366 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5370 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 break 2
5373 fi
5374done
5375done
5376
5377 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5378 ;;
5379esac
5380fi
5381GZIP=$ac_cv_path_GZIP
5382
5383if test -n "$GZIP"; then
5384 echo "$as_me:$LINENO: result: $GZIP" >&5
5385echo "${ECHO_T}$GZIP" >&6
5386else
5387 echo "$as_me:$LINENO: result: no" >&5
5388echo "${ECHO_T}no" >&6
5389fi
5390
5391# Extract the first word of "pod2html", so it can be a program name with args.
5392set dummy pod2html; ac_word=$2
5393echo "$as_me:$LINENO: checking for $ac_word" >&5
5394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5395if test "${ac_cv_path_POD2HTML+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5397else
5398 case $POD2HTML in
5399 [\\/]* | ?:[\\/]*)
5400 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5401 ;;
5402 *)
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404for as_dir in $PATH
5405do
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5410 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 break 2
5413 fi
5414done
5415done
5416
5417 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5418 ;;
5419esac
5420fi
5421POD2HTML=$ac_cv_path_POD2HTML
5422
5423if test -n "$POD2HTML"; then
5424 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5425echo "${ECHO_T}$POD2HTML" >&6
5426else
5427 echo "$as_me:$LINENO: result: no" >&5
5428echo "${ECHO_T}no" >&6
5429fi
5430
5431# Extract the first word of "pod2man", so it can be a program name with args.
5432set dummy pod2man; ac_word=$2
5433echo "$as_me:$LINENO: checking for $ac_word" >&5
5434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5435if test "${ac_cv_path_POD2MAN+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5437else
5438 case $POD2MAN in
5439 [\\/]* | ?:[\\/]*)
5440 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5441 ;;
5442 *)
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444for as_dir in $PATH
5445do
5446 IFS=$as_save_IFS
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5450 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5452 break 2
5453 fi
5454done
5455done
5456
5457 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5458 ;;
5459esac
5460fi
5461POD2MAN=$ac_cv_path_POD2MAN
5462
5463if test -n "$POD2MAN"; then
5464 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5465echo "${ECHO_T}$POD2MAN" >&6
5466else
5467 echo "$as_me:$LINENO: result: no" >&5
5468echo "${ECHO_T}no" >&6
5469fi
5470
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005471# Extract the first word of "runtest", so it can be a program name with args.
5472set dummy runtest; ac_word=$2
5473echo "$as_me:$LINENO: checking for $ac_word" >&5
5474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5475if test "${ac_cv_path_RUNTEST+set}" = set; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
5477else
5478 case $RUNTEST in
5479 [\\/]* | ?:[\\/]*)
5480 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5481 ;;
5482 *)
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484for as_dir in $PATH
5485do
5486 IFS=$as_save_IFS
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 break 2
5493 fi
5494done
5495done
5496
5497 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5498 ;;
5499esac
5500fi
5501RUNTEST=$ac_cv_path_RUNTEST
5502
5503if test -n "$RUNTEST"; then
5504 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5505echo "${ECHO_T}$RUNTEST" >&6
5506else
5507 echo "$as_me:$LINENO: result: no" >&5
5508echo "${ECHO_T}no" >&6
5509fi
5510
Reid Spencer0fcb9412004-11-30 08:11:54 +00005511
Reid Spencer0fcb9412004-11-30 08:11:54 +00005512no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005513echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5514echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005515
5516# Check whether --with-tclinclude or --without-tclinclude was given.
5517if test "${with_tclinclude+set}" = set; then
5518 withval="$with_tclinclude"
5519 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005520else
5521 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005522fi;
5523if test "${ac_cv_path_tclsh+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5525else
5526
5527if test x"${with_tclinclude}" != x ; then
5528 if test -f ${with_tclinclude}/tclsh ; then
5529 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5530 elif test -f ${with_tclinclude}/src/tclsh ; then
5531 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5532 else
5533 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5534echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5535 { (exit 1); exit 1; }; }
5536 fi
5537fi
5538
Reid Spencer0fcb9412004-11-30 08:11:54 +00005539if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005540 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005541echo "${ECHO_T}none" >&6
Reid Spencerfc757b52004-12-02 07:31:22 +00005542 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 .tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
Reid Spencercda35f82004-12-02 04:17:20 +00005543do
5544 # Extract the first word of "$ac_prog", so it can be a program name with args.
5545set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005546echo "$as_me:$LINENO: checking for $ac_word" >&5
5547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005548if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005549 echo $ECHO_N "(cached) $ECHO_C" >&6
5550else
Reid Spencercda35f82004-12-02 04:17:20 +00005551 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005552 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005553 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005554 ;;
5555 *)
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557for as_dir in $PATH
5558do
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005563 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 break 2
5566 fi
5567done
5568done
5569
5570 ;;
5571esac
5572fi
Reid Spencercda35f82004-12-02 04:17:20 +00005573TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005574
Reid Spencercda35f82004-12-02 04:17:20 +00005575if test -n "$TCLSH"; then
5576 echo "$as_me:$LINENO: result: $TCLSH" >&5
5577echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005578else
5579 echo "$as_me:$LINENO: result: no" >&5
5580echo "${ECHO_T}no" >&6
5581fi
5582
Reid Spencercda35f82004-12-02 04:17:20 +00005583 test -n "$TCLSH" && break
5584done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005585
Reid Spencercda35f82004-12-02 04:17:20 +00005586 if test x"${TCLSH}" = x ; then
5587 ac_cv_path_tclsh='';
5588 else
5589 ac_cv_path_tclsh="${TCLSH}";
5590 fi
5591else
5592 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5593echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5594 TCLSH="${ac_cv_path_tclsh}"
5595
5596fi
5597
5598fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005599
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005600# Extract the first word of "zip", so it can be a program name with args.
5601set dummy zip; ac_word=$2
5602echo "$as_me:$LINENO: checking for $ac_word" >&5
5603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5604if test "${ac_cv_path_ZIP+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5606else
5607 case $ZIP in
5608 [\\/]* | ?:[\\/]*)
5609 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5610 ;;
5611 *)
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613for as_dir in $PATH
5614do
5615 IFS=$as_save_IFS
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5621 break 2
5622 fi
5623done
5624done
5625
5626 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5627 ;;
5628esac
5629fi
5630ZIP=$ac_cv_path_ZIP
5631
5632if test -n "$ZIP"; then
5633 echo "$as_me:$LINENO: result: $ZIP" >&5
5634echo "${ECHO_T}$ZIP" >&6
5635else
5636 echo "$as_me:$LINENO: result: no" >&5
5637echo "${ECHO_T}no" >&6
5638fi
5639
5640
5641echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5642echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5643if test "${llvm_cv_link_use_r+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5645else
5646 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005647ac_cpp='$CPP $CPPFLAGS'
5648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5650ac_compiler_gnu=$ac_cv_c_compiler_gnu
5651
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005652 oldcflags="$CFLAGS"
5653 CFLAGS="$CFLAGS -Wl,-R."
5654 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005655/* confdefs.h. */
5656_ACEOF
5657cat confdefs.h >>conftest.$ac_ext
5658cat >>conftest.$ac_ext <<_ACEOF
5659/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005660
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005661int
5662main ()
5663{
5664int main() { return 0; }
5665 ;
5666 return 0;
5667}
John Criswell47fdd832003-07-14 16:52:07 +00005668_ACEOF
5669rm -f conftest.$ac_objext conftest$ac_exeext
5670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005671 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005672 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005673 grep -v '^ *+' conftest.er1 >conftest.err
5674 rm -f conftest.er1
5675 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005677 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005678 { ac_try='test -z "$ac_c_werror_flag"
5679 || test ! -s conftest.err'
5680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 (eval $ac_try) 2>&5
5682 ac_status=$?
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; } &&
5685 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687 (eval $ac_try) 2>&5
5688 ac_status=$?
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005691 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005692else
John Criswell47fdd832003-07-14 16:52:07 +00005693 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005694sed 's/^/| /' conftest.$ac_ext >&5
5695
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005696llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005697fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005698rm -f conftest.err conftest.$ac_objext \
5699 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005700 CFLAGS="$oldcflags"
5701 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005702ac_cpp='$CPP $CPPFLAGS'
5703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5705ac_compiler_gnu=$ac_cv_c_compiler_gnu
5706
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005707
John Criswell7a73b802003-06-30 21:59:07 +00005708fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005709echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5710echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5711if test "$llvm_cv_link_use_r" = yes ; then
5712
5713cat >>confdefs.h <<\_ACEOF
5714#define HAVE_LINK_R 1
5715_ACEOF
5716
John Criswell47fdd832003-07-14 16:52:07 +00005717 fi
John Criswell47fdd832003-07-14 16:52:07 +00005718
John Criswell47fdd832003-07-14 16:52:07 +00005719
John Criswell47fdd832003-07-14 16:52:07 +00005720
John Criswell7a73b802003-06-30 21:59:07 +00005721
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005722echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5723echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5724if test "${ac_cv_c_const+set}" = set; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5726else
5727 cat >conftest.$ac_ext <<_ACEOF
5728/* confdefs.h. */
5729_ACEOF
5730cat confdefs.h >>conftest.$ac_ext
5731cat >>conftest.$ac_ext <<_ACEOF
5732/* end confdefs.h. */
5733
5734int
5735main ()
5736{
5737/* FIXME: Include the comments suggested by Paul. */
5738#ifndef __cplusplus
5739 /* Ultrix mips cc rejects this. */
5740 typedef int charset[2];
5741 const charset x;
5742 /* SunOS 4.1.1 cc rejects this. */
5743 char const *const *ccp;
5744 char **p;
5745 /* NEC SVR4.0.2 mips cc rejects this. */
5746 struct point {int x, y;};
5747 static struct point const zero = {0,0};
5748 /* AIX XL C 1.02.0.0 rejects this.
5749 It does not let you subtract one const X* pointer from another in
5750 an arm of an if-expression whose if-part is not a constant
5751 expression */
5752 const char *g = "string";
5753 ccp = &g + (g ? g-g : 0);
5754 /* HPUX 7.0 cc rejects these. */
5755 ++ccp;
5756 p = (char**) ccp;
5757 ccp = (char const *const *) p;
5758 { /* SCO 3.2v4 cc rejects this. */
5759 char *t;
5760 char const *s = 0 ? (char *) 0 : (char const *) 0;
5761
5762 *t++ = 0;
5763 }
5764 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5765 int x[] = {25, 17};
5766 const int *foo = &x[0];
5767 ++foo;
5768 }
5769 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5770 typedef const int *iptr;
5771 iptr p = 0;
5772 ++p;
5773 }
5774 { /* AIX XL C 1.02.0.0 rejects this saying
5775 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5776 struct s { int j; const int *ap[3]; };
5777 struct s *b; b->j = 5;
5778 }
5779 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5780 const int foo = 10;
5781 }
5782#endif
5783
5784 ;
5785 return 0;
5786}
5787_ACEOF
5788rm -f conftest.$ac_objext
5789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5790 (eval $ac_compile) 2>conftest.er1
5791 ac_status=$?
5792 grep -v '^ *+' conftest.er1 >conftest.err
5793 rm -f conftest.er1
5794 cat conftest.err >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } &&
5797 { ac_try='test -z "$ac_c_werror_flag"
5798 || test ! -s conftest.err'
5799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 (eval $ac_try) 2>&5
5801 ac_status=$?
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); }; } &&
5804 { ac_try='test -s conftest.$ac_objext'
5805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806 (eval $ac_try) 2>&5
5807 ac_status=$?
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; }; then
5810 ac_cv_c_const=yes
5811else
5812 echo "$as_me: failed program was:" >&5
5813sed 's/^/| /' conftest.$ac_ext >&5
5814
5815ac_cv_c_const=no
5816fi
5817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5818fi
5819echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5820echo "${ECHO_T}$ac_cv_c_const" >&6
5821if test $ac_cv_c_const = no; then
5822
5823cat >>confdefs.h <<\_ACEOF
5824#define const
5825_ACEOF
5826
5827fi
5828
5829
5830echo "$as_me:$LINENO: checking for egrep" >&5
5831echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5832if test "${ac_cv_prog_egrep+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5834else
5835 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5836 then ac_cv_prog_egrep='grep -E'
5837 else ac_cv_prog_egrep='egrep'
5838 fi
5839fi
5840echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5841echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5842 EGREP=$ac_cv_prog_egrep
5843
John Criswell7a73b802003-06-30 21:59:07 +00005844
5845echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5846echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5847if test "${ac_cv_header_stdc+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5849else
5850 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005851/* confdefs.h. */
5852_ACEOF
5853cat confdefs.h >>conftest.$ac_ext
5854cat >>conftest.$ac_ext <<_ACEOF
5855/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005856#include <stdlib.h>
5857#include <stdarg.h>
5858#include <string.h>
5859#include <float.h>
5860
John Criswell0c38eaf2003-09-10 15:17:25 +00005861int
5862main ()
5863{
5864
5865 ;
5866 return 0;
5867}
John Criswell7a73b802003-06-30 21:59:07 +00005868_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005869rm -f conftest.$ac_objext
5870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005871 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005872 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005873 grep -v '^ *+' conftest.er1 >conftest.err
5874 rm -f conftest.er1
5875 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005877 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005878 { ac_try='test -z "$ac_c_werror_flag"
5879 || test ! -s conftest.err'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881 (eval $ac_try) 2>&5
5882 ac_status=$?
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; } &&
5885 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00005886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887 (eval $ac_try) 2>&5
5888 ac_status=$?
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00005891 ac_cv_header_stdc=yes
5892else
5893 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005894sed 's/^/| /' conftest.$ac_ext >&5
5895
5896ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00005897fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005899
5900if test $ac_cv_header_stdc = yes; then
5901 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5902 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005903/* confdefs.h. */
5904_ACEOF
5905cat confdefs.h >>conftest.$ac_ext
5906cat >>conftest.$ac_ext <<_ACEOF
5907/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005908#include <string.h>
5909
5910_ACEOF
5911if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005912 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005913 :
5914else
5915 ac_cv_header_stdc=no
5916fi
5917rm -f conftest*
5918
5919fi
5920
5921if test $ac_cv_header_stdc = yes; then
5922 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5923 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005924/* confdefs.h. */
5925_ACEOF
5926cat confdefs.h >>conftest.$ac_ext
5927cat >>conftest.$ac_ext <<_ACEOF
5928/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005929#include <stdlib.h>
5930
5931_ACEOF
5932if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005933 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005934 :
5935else
5936 ac_cv_header_stdc=no
5937fi
5938rm -f conftest*
5939
5940fi
5941
5942if test $ac_cv_header_stdc = yes; then
5943 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5944 if test "$cross_compiling" = yes; then
5945 :
5946else
5947 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005948/* confdefs.h. */
5949_ACEOF
5950cat confdefs.h >>conftest.$ac_ext
5951cat >>conftest.$ac_ext <<_ACEOF
5952/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005953#include <ctype.h>
5954#if ((' ' & 0x0FF) == 0x020)
5955# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5956# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5957#else
John Criswell0c38eaf2003-09-10 15:17:25 +00005958# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00005959 (('a' <= (c) && (c) <= 'i') \
5960 || ('j' <= (c) && (c) <= 'r') \
5961 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00005962# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5963#endif
5964
5965#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5966int
5967main ()
5968{
5969 int i;
5970 for (i = 0; i < 256; i++)
5971 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00005972 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00005973 exit(2);
5974 exit (0);
5975}
5976_ACEOF
5977rm -f conftest$ac_exeext
5978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5979 (eval $ac_link) 2>&5
5980 ac_status=$?
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984 (eval $ac_try) 2>&5
5985 ac_status=$?
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; }; then
5988 :
5989else
5990 echo "$as_me: program exited with status $ac_status" >&5
5991echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005992sed 's/^/| /' conftest.$ac_ext >&5
5993
John Criswell7a73b802003-06-30 21:59:07 +00005994( exit $ac_status )
5995ac_cv_header_stdc=no
5996fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005997rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005998fi
5999fi
6000fi
6001echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6002echo "${ECHO_T}$ac_cv_header_stdc" >&6
6003if test $ac_cv_header_stdc = yes; then
6004
6005cat >>confdefs.h <<\_ACEOF
6006#define STDC_HEADERS 1
6007_ACEOF
6008
6009fi
6010
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006011
6012
6013
6014
6015
6016ac_header_dirent=no
6017for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6018 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6019echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6020echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6021if eval "test \"\${$as_ac_Header+set}\" = set"; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6023else
6024 cat >conftest.$ac_ext <<_ACEOF
6025/* confdefs.h. */
6026_ACEOF
6027cat confdefs.h >>conftest.$ac_ext
6028cat >>conftest.$ac_ext <<_ACEOF
6029/* end confdefs.h. */
6030#include <sys/types.h>
6031#include <$ac_hdr>
6032
6033int
6034main ()
6035{
6036if ((DIR *) 0)
6037return 0;
6038 ;
6039 return 0;
6040}
6041_ACEOF
6042rm -f conftest.$ac_objext
6043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6044 (eval $ac_compile) 2>conftest.er1
6045 ac_status=$?
6046 grep -v '^ *+' conftest.er1 >conftest.err
6047 rm -f conftest.er1
6048 cat conftest.err >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } &&
6051 { ac_try='test -z "$ac_c_werror_flag"
6052 || test ! -s conftest.err'
6053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054 (eval $ac_try) 2>&5
6055 ac_status=$?
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); }; } &&
6058 { ac_try='test -s conftest.$ac_objext'
6059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060 (eval $ac_try) 2>&5
6061 ac_status=$?
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; }; then
6064 eval "$as_ac_Header=yes"
6065else
6066 echo "$as_me: failed program was:" >&5
6067sed 's/^/| /' conftest.$ac_ext >&5
6068
6069eval "$as_ac_Header=no"
6070fi
6071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6072fi
6073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6074echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6075if test `eval echo '${'$as_ac_Header'}'` = yes; then
6076 cat >>confdefs.h <<_ACEOF
6077#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6078_ACEOF
6079
6080ac_header_dirent=$ac_hdr; break
6081fi
6082
6083done
6084# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6085if test $ac_header_dirent = dirent.h; then
6086 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6087echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6088if test "${ac_cv_search_opendir+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6090else
6091 ac_func_search_save_LIBS=$LIBS
6092ac_cv_search_opendir=no
6093cat >conftest.$ac_ext <<_ACEOF
6094/* confdefs.h. */
6095_ACEOF
6096cat confdefs.h >>conftest.$ac_ext
6097cat >>conftest.$ac_ext <<_ACEOF
6098/* end confdefs.h. */
6099
6100/* Override any gcc2 internal prototype to avoid an error. */
6101#ifdef __cplusplus
6102extern "C"
6103#endif
6104/* We use char because int might match the return type of a gcc2
6105 builtin and then its argument prototype would still apply. */
6106char opendir ();
6107int
6108main ()
6109{
6110opendir ();
6111 ;
6112 return 0;
6113}
6114_ACEOF
6115rm -f conftest.$ac_objext conftest$ac_exeext
6116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6117 (eval $ac_link) 2>conftest.er1
6118 ac_status=$?
6119 grep -v '^ *+' conftest.er1 >conftest.err
6120 rm -f conftest.er1
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } &&
6124 { ac_try='test -z "$ac_c_werror_flag"
6125 || test ! -s conftest.err'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 (eval $ac_try) 2>&5
6128 ac_status=$?
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; } &&
6131 { ac_try='test -s conftest$ac_exeext'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 (eval $ac_try) 2>&5
6134 ac_status=$?
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; }; then
6137 ac_cv_search_opendir="none required"
6138else
6139 echo "$as_me: failed program was:" >&5
6140sed 's/^/| /' conftest.$ac_ext >&5
6141
6142fi
6143rm -f conftest.err conftest.$ac_objext \
6144 conftest$ac_exeext conftest.$ac_ext
6145if test "$ac_cv_search_opendir" = no; then
6146 for ac_lib in dir; do
6147 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6148 cat >conftest.$ac_ext <<_ACEOF
6149/* confdefs.h. */
6150_ACEOF
6151cat confdefs.h >>conftest.$ac_ext
6152cat >>conftest.$ac_ext <<_ACEOF
6153/* end confdefs.h. */
6154
6155/* Override any gcc2 internal prototype to avoid an error. */
6156#ifdef __cplusplus
6157extern "C"
6158#endif
6159/* We use char because int might match the return type of a gcc2
6160 builtin and then its argument prototype would still apply. */
6161char opendir ();
6162int
6163main ()
6164{
6165opendir ();
6166 ;
6167 return 0;
6168}
6169_ACEOF
6170rm -f conftest.$ac_objext conftest$ac_exeext
6171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6172 (eval $ac_link) 2>conftest.er1
6173 ac_status=$?
6174 grep -v '^ *+' conftest.er1 >conftest.err
6175 rm -f conftest.er1
6176 cat conftest.err >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } &&
6179 { ac_try='test -z "$ac_c_werror_flag"
6180 || test ! -s conftest.err'
6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 (eval $ac_try) 2>&5
6183 ac_status=$?
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; } &&
6186 { ac_try='test -s conftest$ac_exeext'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 (eval $ac_try) 2>&5
6189 ac_status=$?
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; }; then
6192 ac_cv_search_opendir="-l$ac_lib"
6193break
6194else
6195 echo "$as_me: failed program was:" >&5
6196sed 's/^/| /' conftest.$ac_ext >&5
6197
6198fi
6199rm -f conftest.err conftest.$ac_objext \
6200 conftest$ac_exeext conftest.$ac_ext
6201 done
6202fi
6203LIBS=$ac_func_search_save_LIBS
6204fi
6205echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6206echo "${ECHO_T}$ac_cv_search_opendir" >&6
6207if test "$ac_cv_search_opendir" != no; then
6208 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6209
6210fi
6211
6212else
6213 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6214echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6215if test "${ac_cv_search_opendir+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6217else
6218 ac_func_search_save_LIBS=$LIBS
6219ac_cv_search_opendir=no
6220cat >conftest.$ac_ext <<_ACEOF
6221/* confdefs.h. */
6222_ACEOF
6223cat confdefs.h >>conftest.$ac_ext
6224cat >>conftest.$ac_ext <<_ACEOF
6225/* end confdefs.h. */
6226
6227/* Override any gcc2 internal prototype to avoid an error. */
6228#ifdef __cplusplus
6229extern "C"
6230#endif
6231/* We use char because int might match the return type of a gcc2
6232 builtin and then its argument prototype would still apply. */
6233char opendir ();
6234int
6235main ()
6236{
6237opendir ();
6238 ;
6239 return 0;
6240}
6241_ACEOF
6242rm -f conftest.$ac_objext conftest$ac_exeext
6243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6244 (eval $ac_link) 2>conftest.er1
6245 ac_status=$?
6246 grep -v '^ *+' conftest.er1 >conftest.err
6247 rm -f conftest.er1
6248 cat conftest.err >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } &&
6251 { ac_try='test -z "$ac_c_werror_flag"
6252 || test ! -s conftest.err'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 (eval $ac_try) 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; } &&
6258 { ac_try='test -s conftest$ac_exeext'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 (eval $ac_try) 2>&5
6261 ac_status=$?
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; }; then
6264 ac_cv_search_opendir="none required"
6265else
6266 echo "$as_me: failed program was:" >&5
6267sed 's/^/| /' conftest.$ac_ext >&5
6268
6269fi
6270rm -f conftest.err conftest.$ac_objext \
6271 conftest$ac_exeext conftest.$ac_ext
6272if test "$ac_cv_search_opendir" = no; then
6273 for ac_lib in x; do
6274 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6275 cat >conftest.$ac_ext <<_ACEOF
6276/* confdefs.h. */
6277_ACEOF
6278cat confdefs.h >>conftest.$ac_ext
6279cat >>conftest.$ac_ext <<_ACEOF
6280/* end confdefs.h. */
6281
6282/* Override any gcc2 internal prototype to avoid an error. */
6283#ifdef __cplusplus
6284extern "C"
6285#endif
6286/* We use char because int might match the return type of a gcc2
6287 builtin and then its argument prototype would still apply. */
6288char opendir ();
6289int
6290main ()
6291{
6292opendir ();
6293 ;
6294 return 0;
6295}
6296_ACEOF
6297rm -f conftest.$ac_objext conftest$ac_exeext
6298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6299 (eval $ac_link) 2>conftest.er1
6300 ac_status=$?
6301 grep -v '^ *+' conftest.er1 >conftest.err
6302 rm -f conftest.er1
6303 cat conftest.err >&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); } &&
6306 { ac_try='test -z "$ac_c_werror_flag"
6307 || test ! -s conftest.err'
6308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309 (eval $ac_try) 2>&5
6310 ac_status=$?
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }; } &&
6313 { ac_try='test -s conftest$ac_exeext'
6314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315 (eval $ac_try) 2>&5
6316 ac_status=$?
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; }; then
6319 ac_cv_search_opendir="-l$ac_lib"
6320break
6321else
6322 echo "$as_me: failed program was:" >&5
6323sed 's/^/| /' conftest.$ac_ext >&5
6324
6325fi
6326rm -f conftest.err conftest.$ac_objext \
6327 conftest$ac_exeext conftest.$ac_ext
6328 done
6329fi
6330LIBS=$ac_func_search_save_LIBS
6331fi
6332echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6333echo "${ECHO_T}$ac_cv_search_opendir" >&6
6334if test "$ac_cv_search_opendir" != no; then
6335 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6336
6337fi
6338
6339fi
6340
John Criswell7a73b802003-06-30 21:59:07 +00006341# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006352 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006353do
6354as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6355echo "$as_me:$LINENO: checking for $ac_header" >&5
6356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6357if eval "test \"\${$as_ac_Header+set}\" = set"; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6359else
6360 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006361/* confdefs.h. */
6362_ACEOF
6363cat confdefs.h >>conftest.$ac_ext
6364cat >>conftest.$ac_ext <<_ACEOF
6365/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006366$ac_includes_default
6367
6368#include <$ac_header>
6369_ACEOF
6370rm -f conftest.$ac_objext
6371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006372 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006373 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006374 grep -v '^ *+' conftest.er1 >conftest.err
6375 rm -f conftest.er1
6376 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006379 { ac_try='test -z "$ac_c_werror_flag"
6380 || test ! -s conftest.err'
6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382 (eval $ac_try) 2>&5
6383 ac_status=$?
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; } &&
6386 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 (eval $ac_try) 2>&5
6389 ac_status=$?
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; }; then
6392 eval "$as_ac_Header=yes"
6393else
6394 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006395sed 's/^/| /' conftest.$ac_ext >&5
6396
John Criswell7a73b802003-06-30 21:59:07 +00006397eval "$as_ac_Header=no"
6398fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006400fi
6401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6402echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6403if test `eval echo '${'$as_ac_Header'}'` = yes; then
6404 cat >>confdefs.h <<_ACEOF
6405#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6406_ACEOF
6407
6408fi
6409
6410done
6411
6412
6413
6414for ac_header in dlfcn.h
6415do
6416as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006417if eval "test \"\${$as_ac_Header+set}\" = set"; then
6418 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006419echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6420if eval "test \"\${$as_ac_Header+set}\" = set"; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006422fi
6423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6424echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006425else
Brian Gaeke0a621332004-09-08 20:38:05 +00006426 # Is the header compilable?
6427echo "$as_me:$LINENO: checking $ac_header usability" >&5
6428echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6429cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006430/* confdefs.h. */
6431_ACEOF
6432cat confdefs.h >>conftest.$ac_ext
6433cat >>conftest.$ac_ext <<_ACEOF
6434/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006435$ac_includes_default
6436#include <$ac_header>
6437_ACEOF
6438rm -f conftest.$ac_objext
6439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006440 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006441 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006442 grep -v '^ *+' conftest.er1 >conftest.err
6443 rm -f conftest.er1
6444 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006447 { ac_try='test -z "$ac_c_werror_flag"
6448 || test ! -s conftest.err'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 (eval $ac_try) 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; } &&
6454 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456 (eval $ac_try) 2>&5
6457 ac_status=$?
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006460 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006461else
6462 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006463sed 's/^/| /' conftest.$ac_ext >&5
6464
Brian Gaeke0a621332004-09-08 20:38:05 +00006465ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006466fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006468echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6469echo "${ECHO_T}$ac_header_compiler" >&6
6470
6471# Is the header present?
6472echo "$as_me:$LINENO: checking $ac_header presence" >&5
6473echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6474cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006475/* confdefs.h. */
6476_ACEOF
6477cat confdefs.h >>conftest.$ac_ext
6478cat >>conftest.$ac_ext <<_ACEOF
6479/* end confdefs.h. */
6480#include <$ac_header>
6481_ACEOF
6482if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6484 ac_status=$?
6485 grep -v '^ *+' conftest.er1 >conftest.err
6486 rm -f conftest.er1
6487 cat conftest.err >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } >/dev/null; then
6490 if test -s conftest.err; then
6491 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006493 else
6494 ac_cpp_err=
6495 fi
6496else
6497 ac_cpp_err=yes
6498fi
6499if test -z "$ac_cpp_err"; then
6500 ac_header_preproc=yes
6501else
6502 echo "$as_me: failed program was:" >&5
6503sed 's/^/| /' conftest.$ac_ext >&5
6504
6505 ac_header_preproc=no
6506fi
6507rm -f conftest.err conftest.$ac_ext
6508echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6509echo "${ECHO_T}$ac_header_preproc" >&6
6510
6511# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006512case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6513 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6515echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6517echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6518 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006519 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006520 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6522echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6524echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6526echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6528echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6530echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6532echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006533 (
6534 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006535## ----------------------------------- ##
6536## Report this to llvmbugs@cs.uiuc.edu ##
6537## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006538_ASBOX
6539 ) |
6540 sed "s/^/$as_me: WARNING: /" >&2
6541 ;;
6542esac
6543echo "$as_me:$LINENO: checking for $ac_header" >&5
6544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6545if eval "test \"\${$as_ac_Header+set}\" = set"; then
6546 echo $ECHO_N "(cached) $ECHO_C" >&6
6547else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006548 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006549fi
6550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6551echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006552
6553fi
John Criswell7a73b802003-06-30 21:59:07 +00006554if test `eval echo '${'$as_ac_Header'}'` = yes; then
6555 cat >>confdefs.h <<_ACEOF
6556#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6557_ACEOF
6558
6559fi
6560
6561done
6562
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006563# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6564if test "${enable_ltdl_install+set}" = set; then
6565 enableval="$enable_ltdl_install"
6566
6567fi;
6568
6569
6570
6571if test x"${enable_ltdl_install-no}" != xno; then
6572 INSTALL_LTDL_TRUE=
6573 INSTALL_LTDL_FALSE='#'
6574else
6575 INSTALL_LTDL_TRUE='#'
6576 INSTALL_LTDL_FALSE=
6577fi
6578
6579
6580
6581if test x"${enable_ltdl_convenience-no}" != xno; then
6582 CONVENIENCE_LTDL_TRUE=
6583 CONVENIENCE_LTDL_FALSE='#'
6584else
6585 CONVENIENCE_LTDL_TRUE='#'
6586 CONVENIENCE_LTDL_FALSE=
6587fi
6588
6589
6590echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6591echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6592library_names_spec=
6593libname_spec='lib$name'
6594soname_spec=
6595shrext_cmds=".so"
6596postinstall_cmds=
6597postuninstall_cmds=
6598finish_cmds=
6599finish_eval=
6600shlibpath_var=
6601shlibpath_overrides_runpath=unknown
6602version_type=none
6603dynamic_linker="$host_os ld.so"
6604sys_lib_dlsearch_path_spec="/lib /usr/lib"
6605if test "$GCC" = yes; then
6606 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6607 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6608 # if the path contains ";" then we assume it to be the separator
6609 # otherwise default to the standard path separator (i.e. ":") - it is
6610 # assumed that no part of a normal pathname contains ";" but that should
6611 # okay in the real world where ";" in dirpaths is itself problematic.
6612 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6613 else
6614 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6615 fi
6616else
6617 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6618fi
6619need_lib_prefix=unknown
6620hardcode_into_libs=no
6621
6622# when you set need_version to no, make sure it does not cause -set_version
6623# flags to be left without arguments
6624need_version=unknown
6625
6626case $host_os in
6627aix3*)
6628 version_type=linux
6629 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6630 shlibpath_var=LIBPATH
6631
6632 # AIX 3 has no versioning support, so we append a major version to the name.
6633 soname_spec='${libname}${release}${shared_ext}$major'
6634 ;;
6635
6636aix4* | aix5*)
6637 version_type=linux
6638 need_lib_prefix=no
6639 need_version=no
6640 hardcode_into_libs=yes
6641 if test "$host_cpu" = ia64; then
6642 # AIX 5 supports IA64
6643 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6644 shlibpath_var=LD_LIBRARY_PATH
6645 else
6646 # With GCC up to 2.95.x, collect2 would create an import file
6647 # for dependence libraries. The import file would start with
6648 # the line `#! .'. This would cause the generated library to
6649 # depend on `.', always an invalid library. This was fixed in
6650 # development snapshots of GCC prior to 3.0.
6651 case $host_os in
6652 aix4 | aix4.[01] | aix4.[01].*)
6653 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6654 echo ' yes '
6655 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6656 :
6657 else
6658 can_build_shared=no
6659 fi
6660 ;;
6661 esac
6662 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6663 # soname into executable. Probably we can add versioning support to
6664 # collect2, so additional links can be useful in future.
6665 if test "$aix_use_runtimelinking" = yes; then
6666 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6667 # instead of lib<name>.a to let people know that these are not
6668 # typical AIX shared libraries.
6669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6670 else
6671 # We preserve .a as extension for shared libraries through AIX4.2
6672 # and later when we are not doing run time linking.
6673 library_names_spec='${libname}${release}.a $libname.a'
6674 soname_spec='${libname}${release}${shared_ext}$major'
6675 fi
6676 shlibpath_var=LIBPATH
6677 fi
6678 ;;
6679
6680amigaos*)
6681 library_names_spec='$libname.ixlibrary $libname.a'
6682 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6683 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'
6684 ;;
6685
6686beos*)
6687 library_names_spec='${libname}${shared_ext}'
6688 dynamic_linker="$host_os ld.so"
6689 shlibpath_var=LIBRARY_PATH
6690 ;;
6691
6692bsdi[45]*)
6693 version_type=linux
6694 need_version=no
6695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6696 soname_spec='${libname}${release}${shared_ext}$major'
6697 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6698 shlibpath_var=LD_LIBRARY_PATH
6699 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6700 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6701 # the default ld.so.conf also contains /usr/contrib/lib and
6702 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6703 # libtool to hard-code these into programs
6704 ;;
6705
6706cygwin* | mingw* | pw32*)
6707 version_type=windows
6708 shrext_cmds=".dll"
6709 need_version=no
6710 need_lib_prefix=no
6711
6712 case $GCC,$host_os in
6713 yes,cygwin* | yes,mingw* | yes,pw32*)
6714 library_names_spec='$libname.dll.a'
6715 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6716 postinstall_cmds='base_file=`basename \${file}`~
6717 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6718 dldir=$destdir/`dirname \$dlpath`~
6719 test -d \$dldir || mkdir -p \$dldir~
6720 $install_prog $dir/$dlname \$dldir/$dlname'
6721 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6722 dlpath=$dir/\$dldll~
6723 $rm \$dlpath'
6724 shlibpath_overrides_runpath=yes
6725
6726 case $host_os in
6727 cygwin*)
6728 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6729 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6730 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6731 ;;
6732 mingw*)
6733 # MinGW DLLs use traditional 'lib' prefix
6734 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6735 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6736 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6737 # It is most probably a Windows format PATH printed by
6738 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6739 # path with ; separators, and with drive letters. We can handle the
6740 # drive letters (cygwin fileutils understands them), so leave them,
6741 # especially as we might pass files found there to a mingw objdump,
6742 # which wouldn't understand a cygwinified path. Ahh.
6743 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6744 else
6745 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6746 fi
6747 ;;
6748 pw32*)
6749 # pw32 DLLs use 'pw' prefix rather than 'lib'
6750 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6751 ;;
6752 esac
6753 ;;
6754
6755 *)
6756 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6757 ;;
6758 esac
6759 dynamic_linker='Win32 ld.exe'
6760 # FIXME: first we should search . and the directory the executable is in
6761 shlibpath_var=PATH
6762 ;;
6763
6764darwin* | rhapsody*)
6765 dynamic_linker="$host_os dyld"
6766 version_type=darwin
6767 need_lib_prefix=no
6768 need_version=no
6769 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6770 soname_spec='${libname}${release}${major}$shared_ext'
6771 shlibpath_overrides_runpath=yes
6772 shlibpath_var=DYLD_LIBRARY_PATH
6773 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6774 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6775 if test "$GCC" = yes; then
6776 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"`
6777 else
6778 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6779 fi
6780 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6781 ;;
6782
6783dgux*)
6784 version_type=linux
6785 need_lib_prefix=no
6786 need_version=no
6787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6788 soname_spec='${libname}${release}${shared_ext}$major'
6789 shlibpath_var=LD_LIBRARY_PATH
6790 ;;
6791
6792freebsd1*)
6793 dynamic_linker=no
6794 ;;
6795
6796kfreebsd*-gnu)
6797 version_type=linux
6798 need_lib_prefix=no
6799 need_version=no
6800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6801 soname_spec='${libname}${release}${shared_ext}$major'
6802 shlibpath_var=LD_LIBRARY_PATH
6803 shlibpath_overrides_runpath=no
6804 hardcode_into_libs=yes
6805 dynamic_linker='GNU ld.so'
6806 ;;
6807
6808freebsd*)
6809 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6810 version_type=freebsd-$objformat
6811 case $version_type in
6812 freebsd-elf*)
6813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6814 need_version=no
6815 need_lib_prefix=no
6816 ;;
6817 freebsd-*)
6818 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6819 need_version=yes
6820 ;;
6821 esac
6822 shlibpath_var=LD_LIBRARY_PATH
6823 case $host_os in
6824 freebsd2*)
6825 shlibpath_overrides_runpath=yes
6826 ;;
6827 freebsd3.01* | freebsdelf3.01*)
6828 shlibpath_overrides_runpath=yes
6829 hardcode_into_libs=yes
6830 ;;
6831 *) # from 3.2 on
6832 shlibpath_overrides_runpath=no
6833 hardcode_into_libs=yes
6834 ;;
6835 esac
6836 ;;
6837
6838gnu*)
6839 version_type=linux
6840 need_lib_prefix=no
6841 need_version=no
6842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6843 soname_spec='${libname}${release}${shared_ext}$major'
6844 shlibpath_var=LD_LIBRARY_PATH
6845 hardcode_into_libs=yes
6846 ;;
6847
6848hpux9* | hpux10* | hpux11*)
6849 # Give a soname corresponding to the major version so that dld.sl refuses to
6850 # link against other versions.
6851 version_type=sunos
6852 need_lib_prefix=no
6853 need_version=no
6854 case "$host_cpu" in
6855 ia64*)
6856 shrext_cmds='.so'
6857 hardcode_into_libs=yes
6858 dynamic_linker="$host_os dld.so"
6859 shlibpath_var=LD_LIBRARY_PATH
6860 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6862 soname_spec='${libname}${release}${shared_ext}$major'
6863 if test "X$HPUX_IA64_MODE" = X32; then
6864 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6865 else
6866 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6867 fi
6868 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6869 ;;
6870 hppa*64*)
6871 shrext_cmds='.sl'
6872 hardcode_into_libs=yes
6873 dynamic_linker="$host_os dld.sl"
6874 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6877 soname_spec='${libname}${release}${shared_ext}$major'
6878 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6880 ;;
6881 *)
6882 shrext_cmds='.sl'
6883 dynamic_linker="$host_os dld.sl"
6884 shlibpath_var=SHLIB_PATH
6885 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6887 soname_spec='${libname}${release}${shared_ext}$major'
6888 ;;
6889 esac
6890 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6891 postinstall_cmds='chmod 555 $lib'
6892 ;;
6893
6894irix5* | irix6* | nonstopux*)
6895 case $host_os in
6896 nonstopux*) version_type=nonstopux ;;
6897 *)
6898 if test "$lt_cv_prog_gnu_ld" = yes; then
6899 version_type=linux
6900 else
6901 version_type=irix
6902 fi ;;
6903 esac
6904 need_lib_prefix=no
6905 need_version=no
6906 soname_spec='${libname}${release}${shared_ext}$major'
6907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6908 case $host_os in
6909 irix5* | nonstopux*)
6910 libsuff= shlibsuff=
6911 ;;
6912 *)
6913 case $LD in # libtool.m4 will add one of these switches to LD
6914 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6915 libsuff= shlibsuff= libmagic=32-bit;;
6916 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6917 libsuff=32 shlibsuff=N32 libmagic=N32;;
6918 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6919 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6920 *) libsuff= shlibsuff= libmagic=never-match;;
6921 esac
6922 ;;
6923 esac
6924 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6925 shlibpath_overrides_runpath=no
6926 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6927 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6928 hardcode_into_libs=yes
6929 ;;
6930
6931# No shared lib support for Linux oldld, aout, or coff.
6932linux*oldld* | linux*aout* | linux*coff*)
6933 dynamic_linker=no
6934 ;;
6935
6936# This must be Linux ELF.
6937linux*)
6938 version_type=linux
6939 need_lib_prefix=no
6940 need_version=no
6941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6942 soname_spec='${libname}${release}${shared_ext}$major'
6943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6944 shlibpath_var=LD_LIBRARY_PATH
6945 shlibpath_overrides_runpath=no
6946 # This implies no fast_install, which is unacceptable.
6947 # Some rework will be needed to allow for fast_install
6948 # before this can be enabled.
6949 hardcode_into_libs=yes
6950
6951 # Append ld.so.conf contents to the search path
6952 if test -f /etc/ld.so.conf; then
6953 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6954 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6955 fi
6956
6957 # We used to test for /lib/ld.so.1 and disable shared libraries on
6958 # powerpc, because MkLinux only supported shared libraries with the
6959 # GNU dynamic linker. Since this was broken with cross compilers,
6960 # most powerpc-linux boxes support dynamic linking these days and
6961 # people can always --disable-shared, the test was removed, and we
6962 # assume the GNU/Linux dynamic linker is in use.
6963 dynamic_linker='GNU/Linux ld.so'
6964 ;;
6965
6966knetbsd*-gnu)
6967 version_type=linux
6968 need_lib_prefix=no
6969 need_version=no
6970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6971 soname_spec='${libname}${release}${shared_ext}$major'
6972 shlibpath_var=LD_LIBRARY_PATH
6973 shlibpath_overrides_runpath=no
6974 hardcode_into_libs=yes
6975 dynamic_linker='GNU ld.so'
6976 ;;
6977
6978netbsd*)
6979 version_type=sunos
6980 need_lib_prefix=no
6981 need_version=no
6982 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6985 dynamic_linker='NetBSD (a.out) ld.so'
6986 else
6987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6988 soname_spec='${libname}${release}${shared_ext}$major'
6989 dynamic_linker='NetBSD ld.elf_so'
6990 fi
6991 shlibpath_var=LD_LIBRARY_PATH
6992 shlibpath_overrides_runpath=yes
6993 hardcode_into_libs=yes
6994 ;;
6995
6996newsos6)
6997 version_type=linux
6998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6999 shlibpath_var=LD_LIBRARY_PATH
7000 shlibpath_overrides_runpath=yes
7001 ;;
7002
7003nto-qnx*)
7004 version_type=linux
7005 need_lib_prefix=no
7006 need_version=no
7007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7008 soname_spec='${libname}${release}${shared_ext}$major'
7009 shlibpath_var=LD_LIBRARY_PATH
7010 shlibpath_overrides_runpath=yes
7011 ;;
7012
7013openbsd*)
7014 version_type=sunos
7015 need_lib_prefix=no
7016 need_version=no
7017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7019 shlibpath_var=LD_LIBRARY_PATH
7020 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7021 case $host_os in
7022 openbsd2.[89] | openbsd2.[89].*)
7023 shlibpath_overrides_runpath=no
7024 ;;
7025 *)
7026 shlibpath_overrides_runpath=yes
7027 ;;
7028 esac
7029 else
7030 shlibpath_overrides_runpath=yes
7031 fi
7032 ;;
7033
7034os2*)
7035 libname_spec='$name'
7036 shrext_cmds=".dll"
7037 need_lib_prefix=no
7038 library_names_spec='$libname${shared_ext} $libname.a'
7039 dynamic_linker='OS/2 ld.exe'
7040 shlibpath_var=LIBPATH
7041 ;;
7042
7043osf3* | osf4* | osf5*)
7044 version_type=osf
7045 need_lib_prefix=no
7046 need_version=no
7047 soname_spec='${libname}${release}${shared_ext}$major'
7048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7049 shlibpath_var=LD_LIBRARY_PATH
7050 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7051 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7052 ;;
7053
7054sco3.2v5*)
7055 version_type=osf
7056 soname_spec='${libname}${release}${shared_ext}$major'
7057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7058 shlibpath_var=LD_LIBRARY_PATH
7059 ;;
7060
7061solaris*)
7062 version_type=linux
7063 need_lib_prefix=no
7064 need_version=no
7065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7066 soname_spec='${libname}${release}${shared_ext}$major'
7067 shlibpath_var=LD_LIBRARY_PATH
7068 shlibpath_overrides_runpath=yes
7069 hardcode_into_libs=yes
7070 # ldd complains unless libraries are executable
7071 postinstall_cmds='chmod +x $lib'
7072 ;;
7073
7074sunos4*)
7075 version_type=sunos
7076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7077 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7078 shlibpath_var=LD_LIBRARY_PATH
7079 shlibpath_overrides_runpath=yes
7080 if test "$with_gnu_ld" = yes; then
7081 need_lib_prefix=no
7082 fi
7083 need_version=yes
7084 ;;
7085
7086sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7087 version_type=linux
7088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7089 soname_spec='${libname}${release}${shared_ext}$major'
7090 shlibpath_var=LD_LIBRARY_PATH
7091 case $host_vendor in
7092 sni)
7093 shlibpath_overrides_runpath=no
7094 need_lib_prefix=no
7095 export_dynamic_flag_spec='${wl}-Blargedynsym'
7096 runpath_var=LD_RUN_PATH
7097 ;;
7098 siemens)
7099 need_lib_prefix=no
7100 ;;
7101 motorola)
7102 need_lib_prefix=no
7103 need_version=no
7104 shlibpath_overrides_runpath=no
7105 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7106 ;;
7107 esac
7108 ;;
7109
7110sysv4*MP*)
7111 if test -d /usr/nec ;then
7112 version_type=linux
7113 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7114 soname_spec='$libname${shared_ext}.$major'
7115 shlibpath_var=LD_LIBRARY_PATH
7116 fi
7117 ;;
7118
7119uts4*)
7120 version_type=linux
7121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7122 soname_spec='${libname}${release}${shared_ext}$major'
7123 shlibpath_var=LD_LIBRARY_PATH
7124 ;;
7125
7126*)
7127 dynamic_linker=no
7128 ;;
7129esac
7130echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7131echo "${ECHO_T}$dynamic_linker" >&6
7132test "$dynamic_linker" = no && can_build_shared=no
7133
7134
7135echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7136echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7137if test "${libltdl_cv_shlibext+set}" = set; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
7139else
7140
7141module=yes
7142eval libltdl_cv_shlibext=$shrext_cmds
7143
7144fi
7145echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7146echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7147if test -n "$libltdl_cv_shlibext"; then
7148
7149cat >>confdefs.h <<_ACEOF
7150#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7151_ACEOF
7152
7153fi
7154
7155
7156echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7157echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7158if test "${libltdl_cv_shlibpath_var+set}" = set; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7160else
7161 libltdl_cv_shlibpath_var="$shlibpath_var"
7162fi
7163echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7164echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7165if test -n "$libltdl_cv_shlibpath_var"; then
7166
7167cat >>confdefs.h <<_ACEOF
7168#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7169_ACEOF
7170
7171fi
7172
7173
7174echo "$as_me:$LINENO: checking for the default library search path" >&5
7175echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7176if test "${libltdl_cv_sys_search_path+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7178else
7179 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7180fi
7181echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7182echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7183if test -n "$libltdl_cv_sys_search_path"; then
7184 sys_search_path=
7185 for dir in $libltdl_cv_sys_search_path; do
7186 if test -z "$sys_search_path"; then
7187 sys_search_path="$dir"
7188 else
7189 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7190 fi
7191 done
7192
7193cat >>confdefs.h <<_ACEOF
7194#define LTDL_SYSSEARCHPATH "$sys_search_path"
7195_ACEOF
7196
7197fi
7198
7199echo "$as_me:$LINENO: checking for objdir" >&5
7200echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7201if test "${libltdl_cv_objdir+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7203else
7204 libltdl_cv_objdir="$objdir"
7205 if test -n "$objdir"; then
7206 :
7207 else
7208 rm -f .libs 2>/dev/null
7209 mkdir .libs 2>/dev/null
7210 if test -d .libs; then
7211 libltdl_cv_objdir=.libs
7212 else
7213 # MS-DOS does not allow filenames that begin with a dot.
7214 libltdl_cv_objdir=_libs
7215 fi
7216 rmdir .libs 2>/dev/null
7217 fi
7218
7219fi
7220echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7221echo "${ECHO_T}$libltdl_cv_objdir" >&6
7222
7223cat >>confdefs.h <<_ACEOF
7224#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7225_ACEOF
7226
7227
7228echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7229echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7230if test "${lt_cv_path_NM+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7232else
7233 if test -n "$NM"; then
7234 # Let the user override the test.
7235 lt_cv_path_NM="$NM"
7236else
7237 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7238 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7239 IFS="$lt_save_ifs"
7240 test -z "$ac_dir" && ac_dir=.
7241 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7242 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7243 # Check to see if the nm accepts a BSD-compat flag.
7244 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7245 # nm: unknown option "B" ignored
7246 # Tru64's nm complains that /dev/null is an invalid object file
7247 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7248 */dev/null* | *'Invalid file or object type'*)
7249 lt_cv_path_NM="$tmp_nm -B"
7250 break
7251 ;;
7252 *)
7253 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7254 */dev/null*)
7255 lt_cv_path_NM="$tmp_nm -p"
7256 break
7257 ;;
7258 *)
7259 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7260 continue # so that we can try to find one that supports BSD flags
7261 ;;
7262 esac
7263 esac
7264 fi
7265 done
7266 IFS="$lt_save_ifs"
7267 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7268fi
7269fi
7270echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7271echo "${ECHO_T}$lt_cv_path_NM" >&6
7272NM="$lt_cv_path_NM"
7273
7274
7275
7276
7277
7278# Check for command to grab the raw symbol name followed by C symbol from nm.
7279echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7280echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7281if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7283else
7284
7285# These are sane defaults that work on at least a few old systems.
7286# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7287
7288# Character class describing NM global symbol codes.
7289symcode='[BCDEGRST]'
7290
7291# Regexp to match symbols that can be accessed directly from C.
7292sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7293
7294# Transform the above into a raw symbol and a C symbol.
7295symxfrm='\1 \2\3 \3'
7296
7297# Transform an extracted symbol line into a proper C declaration
7298lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7299
7300# Transform an extracted symbol line into symbol name and symbol address
7301lt_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'"
7302
7303# Define system-specific variables.
7304case $host_os in
7305aix*)
7306 symcode='[BCDT]'
7307 ;;
7308cygwin* | mingw* | pw32*)
7309 symcode='[ABCDGISTW]'
7310 ;;
7311hpux*) # Its linker distinguishes data from code symbols
7312 if test "$host_cpu" = ia64; then
7313 symcode='[ABCDEGRST]'
7314 fi
7315 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7316 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'"
7317 ;;
7318linux*)
7319 if test "$host_cpu" = ia64; then
7320 symcode='[ABCDGIRSTW]'
7321 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7322 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'"
7323 fi
7324 ;;
7325irix* | nonstopux*)
7326 symcode='[BCDEGRST]'
7327 ;;
7328osf*)
7329 symcode='[BCDEGQRST]'
7330 ;;
7331solaris* | sysv5*)
7332 symcode='[BDRT]'
7333 ;;
7334sysv4)
7335 symcode='[DFNSTU]'
7336 ;;
7337esac
7338
7339# Handle CRLF in mingw tool chain
7340opt_cr=
7341case $build_os in
7342mingw*)
7343 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7344 ;;
7345esac
7346
7347# If we're using GNU nm, then use its standard symbol codes.
7348case `$NM -V 2>&1` in
7349*GNU* | *'with BFD'*)
7350 symcode='[ABCDGIRSTW]' ;;
7351esac
7352
7353# Try without a prefix undercore, then with it.
7354for ac_symprfx in "" "_"; do
7355
7356 # Write the raw and C identifiers.
7357 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7358
7359 # Check to see that the pipe works correctly.
7360 pipe_works=no
7361
7362 rm -f conftest*
7363 cat > conftest.$ac_ext <<EOF
7364#ifdef __cplusplus
7365extern "C" {
7366#endif
7367char nm_test_var;
7368void nm_test_func(){}
7369#ifdef __cplusplus
7370}
7371#endif
7372int main(){nm_test_var='a';nm_test_func();return(0);}
7373EOF
7374
7375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7376 (eval $ac_compile) 2>&5
7377 ac_status=$?
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); }; then
7380 # Now try to grab the symbols.
7381 nlist=conftest.nm
7382 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7383 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7384 ac_status=$?
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); } && test -s "$nlist"; then
7387 # Try sorting and uniquifying the output.
7388 if sort "$nlist" | uniq > "$nlist"T; then
7389 mv -f "$nlist"T "$nlist"
7390 else
7391 rm -f "$nlist"T
7392 fi
7393
7394 # Make sure that we snagged all the symbols we need.
7395 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7396 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7397 cat <<EOF > conftest.$ac_ext
7398#ifdef __cplusplus
7399extern "C" {
7400#endif
7401
7402EOF
7403 # Now generate the symbol file.
7404 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7405
7406 cat <<EOF >> conftest.$ac_ext
7407#if defined (__STDC__) && __STDC__
7408# define lt_ptr_t void *
7409#else
7410# define lt_ptr_t char *
7411# define const
7412#endif
7413
7414/* The mapping between symbol names and symbols. */
7415const struct {
7416 const char *name;
7417 lt_ptr_t address;
7418}
7419lt_preloaded_symbols[] =
7420{
7421EOF
7422 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7423 cat <<\EOF >> conftest.$ac_ext
7424 {0, (lt_ptr_t) 0}
7425};
7426
7427#ifdef __cplusplus
7428}
7429#endif
7430EOF
7431 # Now try linking the two files.
7432 mv conftest.$ac_objext conftstm.$ac_objext
7433 lt_save_LIBS="$LIBS"
7434 lt_save_CFLAGS="$CFLAGS"
7435 LIBS="conftstm.$ac_objext"
7436 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7438 (eval $ac_link) 2>&5
7439 ac_status=$?
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7442 pipe_works=yes
7443 fi
7444 LIBS="$lt_save_LIBS"
7445 CFLAGS="$lt_save_CFLAGS"
7446 else
7447 echo "cannot find nm_test_func in $nlist" >&5
7448 fi
7449 else
7450 echo "cannot find nm_test_var in $nlist" >&5
7451 fi
7452 else
7453 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7454 fi
7455 else
7456 echo "$progname: failed program was:" >&5
7457 cat conftest.$ac_ext >&5
7458 fi
7459 rm -f conftest* conftst*
7460
7461 # Do not use the global_symbol_pipe unless it works.
7462 if test "$pipe_works" = yes; then
7463 break
7464 else
7465 lt_cv_sys_global_symbol_pipe=
7466 fi
7467done
7468
7469fi
7470
7471if test -z "$lt_cv_sys_global_symbol_pipe"; then
7472 lt_cv_sys_global_symbol_to_cdecl=
7473fi
7474if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7475 echo "$as_me:$LINENO: result: failed" >&5
7476echo "${ECHO_T}failed" >&6
7477else
7478 echo "$as_me:$LINENO: result: ok" >&5
7479echo "${ECHO_T}ok" >&6
7480fi
7481
7482
7483echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7484echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7485if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7487else
7488 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7489 libltdl_cv_preloaded_symbols=yes
7490 else
7491 libltdl_cv_preloaded_symbols=no
7492 fi
7493
7494fi
7495echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7496echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7497if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7498
7499cat >>confdefs.h <<\_ACEOF
7500#define HAVE_PRELOADED_SYMBOLS 1
7501_ACEOF
7502
7503fi
7504
7505LIBADD_DL=
7506
7507ac_ext=c
7508ac_cpp='$CPP $CPPFLAGS'
7509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7511ac_compiler_gnu=$ac_cv_c_compiler_gnu
7512
7513
7514echo "$as_me:$LINENO: checking for shl_load" >&5
7515echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7516if test "${ac_cv_func_shl_load+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7518else
7519 cat >conftest.$ac_ext <<_ACEOF
7520/* confdefs.h. */
7521_ACEOF
7522cat confdefs.h >>conftest.$ac_ext
7523cat >>conftest.$ac_ext <<_ACEOF
7524/* end confdefs.h. */
7525/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7527#define shl_load innocuous_shl_load
7528
7529/* System header to define __stub macros and hopefully few prototypes,
7530 which can conflict with char shl_load (); below.
7531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7532 <limits.h> exists even on freestanding compilers. */
7533
7534#ifdef __STDC__
7535# include <limits.h>
7536#else
7537# include <assert.h>
7538#endif
7539
7540#undef shl_load
7541
7542/* Override any gcc2 internal prototype to avoid an error. */
7543#ifdef __cplusplus
7544extern "C"
7545{
7546#endif
7547/* We use char because int might match the return type of a gcc2
7548 builtin and then its argument prototype would still apply. */
7549char shl_load ();
7550/* The GNU C library defines this for functions which it implements
7551 to always fail with ENOSYS. Some functions are actually named
7552 something starting with __ and the normal name is an alias. */
7553#if defined (__stub_shl_load) || defined (__stub___shl_load)
7554choke me
7555#else
7556char (*f) () = shl_load;
7557#endif
7558#ifdef __cplusplus
7559}
7560#endif
7561
7562int
7563main ()
7564{
7565return f != shl_load;
7566 ;
7567 return 0;
7568}
7569_ACEOF
7570rm -f conftest.$ac_objext conftest$ac_exeext
7571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7572 (eval $ac_link) 2>conftest.er1
7573 ac_status=$?
7574 grep -v '^ *+' conftest.er1 >conftest.err
7575 rm -f conftest.er1
7576 cat conftest.err >&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } &&
7579 { ac_try='test -z "$ac_c_werror_flag"
7580 || test ! -s conftest.err'
7581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7582 (eval $ac_try) 2>&5
7583 ac_status=$?
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; } &&
7586 { ac_try='test -s conftest$ac_exeext'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588 (eval $ac_try) 2>&5
7589 ac_status=$?
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; }; then
7592 ac_cv_func_shl_load=yes
7593else
7594 echo "$as_me: failed program was:" >&5
7595sed 's/^/| /' conftest.$ac_ext >&5
7596
7597ac_cv_func_shl_load=no
7598fi
7599rm -f conftest.err conftest.$ac_objext \
7600 conftest$ac_exeext conftest.$ac_ext
7601fi
7602echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7603echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7604if test $ac_cv_func_shl_load = yes; then
7605
7606cat >>confdefs.h <<\_ACEOF
7607#define HAVE_SHL_LOAD 1
7608_ACEOF
7609
7610else
7611 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7612echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7613if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7615else
7616 ac_check_lib_save_LIBS=$LIBS
7617LIBS="-ldld $LIBS"
7618cat >conftest.$ac_ext <<_ACEOF
7619/* confdefs.h. */
7620_ACEOF
7621cat confdefs.h >>conftest.$ac_ext
7622cat >>conftest.$ac_ext <<_ACEOF
7623/* end confdefs.h. */
7624
7625/* Override any gcc2 internal prototype to avoid an error. */
7626#ifdef __cplusplus
7627extern "C"
7628#endif
7629/* We use char because int might match the return type of a gcc2
7630 builtin and then its argument prototype would still apply. */
7631char shl_load ();
7632int
7633main ()
7634{
7635shl_load ();
7636 ;
7637 return 0;
7638}
7639_ACEOF
7640rm -f conftest.$ac_objext conftest$ac_exeext
7641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7642 (eval $ac_link) 2>conftest.er1
7643 ac_status=$?
7644 grep -v '^ *+' conftest.er1 >conftest.err
7645 rm -f conftest.er1
7646 cat conftest.err >&5
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); } &&
7649 { ac_try='test -z "$ac_c_werror_flag"
7650 || test ! -s conftest.err'
7651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652 (eval $ac_try) 2>&5
7653 ac_status=$?
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); }; } &&
7656 { ac_try='test -s conftest$ac_exeext'
7657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658 (eval $ac_try) 2>&5
7659 ac_status=$?
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); }; }; then
7662 ac_cv_lib_dld_shl_load=yes
7663else
7664 echo "$as_me: failed program was:" >&5
7665sed 's/^/| /' conftest.$ac_ext >&5
7666
7667ac_cv_lib_dld_shl_load=no
7668fi
7669rm -f conftest.err conftest.$ac_objext \
7670 conftest$ac_exeext conftest.$ac_ext
7671LIBS=$ac_check_lib_save_LIBS
7672fi
7673echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7674echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7675if test $ac_cv_lib_dld_shl_load = yes; then
7676
7677cat >>confdefs.h <<\_ACEOF
7678#define HAVE_SHL_LOAD 1
7679_ACEOF
7680
7681 LIBADD_DL="$LIBADD_DL -ldld"
7682else
7683 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7684echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7685if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7686 echo $ECHO_N "(cached) $ECHO_C" >&6
7687else
7688 ac_check_lib_save_LIBS=$LIBS
7689LIBS="-ldl $LIBS"
7690cat >conftest.$ac_ext <<_ACEOF
7691/* confdefs.h. */
7692_ACEOF
7693cat confdefs.h >>conftest.$ac_ext
7694cat >>conftest.$ac_ext <<_ACEOF
7695/* end confdefs.h. */
7696
7697/* Override any gcc2 internal prototype to avoid an error. */
7698#ifdef __cplusplus
7699extern "C"
7700#endif
7701/* We use char because int might match the return type of a gcc2
7702 builtin and then its argument prototype would still apply. */
7703char dlopen ();
7704int
7705main ()
7706{
7707dlopen ();
7708 ;
7709 return 0;
7710}
7711_ACEOF
7712rm -f conftest.$ac_objext conftest$ac_exeext
7713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7714 (eval $ac_link) 2>conftest.er1
7715 ac_status=$?
7716 grep -v '^ *+' conftest.er1 >conftest.err
7717 rm -f conftest.er1
7718 cat conftest.err >&5
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); } &&
7721 { ac_try='test -z "$ac_c_werror_flag"
7722 || test ! -s conftest.err'
7723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724 (eval $ac_try) 2>&5
7725 ac_status=$?
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); }; } &&
7728 { ac_try='test -s conftest$ac_exeext'
7729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730 (eval $ac_try) 2>&5
7731 ac_status=$?
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); }; }; then
7734 ac_cv_lib_dl_dlopen=yes
7735else
7736 echo "$as_me: failed program was:" >&5
7737sed 's/^/| /' conftest.$ac_ext >&5
7738
7739ac_cv_lib_dl_dlopen=no
7740fi
7741rm -f conftest.err conftest.$ac_objext \
7742 conftest$ac_exeext conftest.$ac_ext
7743LIBS=$ac_check_lib_save_LIBS
7744fi
7745echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7746echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7747if test $ac_cv_lib_dl_dlopen = yes; then
7748
7749cat >>confdefs.h <<\_ACEOF
7750#define HAVE_LIBDL 1
7751_ACEOF
7752
7753 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7754else
7755 cat >conftest.$ac_ext <<_ACEOF
7756/* confdefs.h. */
7757_ACEOF
7758cat confdefs.h >>conftest.$ac_ext
7759cat >>conftest.$ac_ext <<_ACEOF
7760/* end confdefs.h. */
7761#if HAVE_DLFCN_H
7762# include <dlfcn.h>
7763#endif
7764
7765int
7766main ()
7767{
7768dlopen(0, 0);
7769 ;
7770 return 0;
7771}
7772_ACEOF
7773rm -f conftest.$ac_objext conftest$ac_exeext
7774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7775 (eval $ac_link) 2>conftest.er1
7776 ac_status=$?
7777 grep -v '^ *+' conftest.er1 >conftest.err
7778 rm -f conftest.er1
7779 cat conftest.err >&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); } &&
7782 { ac_try='test -z "$ac_c_werror_flag"
7783 || test ! -s conftest.err'
7784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785 (eval $ac_try) 2>&5
7786 ac_status=$?
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; } &&
7789 { ac_try='test -s conftest$ac_exeext'
7790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7791 (eval $ac_try) 2>&5
7792 ac_status=$?
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); }; }; then
7795
7796cat >>confdefs.h <<\_ACEOF
7797#define HAVE_LIBDL 1
7798_ACEOF
7799 libltdl_cv_func_dlopen="yes"
7800else
7801 echo "$as_me: failed program was:" >&5
7802sed 's/^/| /' conftest.$ac_ext >&5
7803
7804echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7805echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7806if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7808else
7809 ac_check_lib_save_LIBS=$LIBS
7810LIBS="-lsvld $LIBS"
7811cat >conftest.$ac_ext <<_ACEOF
7812/* confdefs.h. */
7813_ACEOF
7814cat confdefs.h >>conftest.$ac_ext
7815cat >>conftest.$ac_ext <<_ACEOF
7816/* end confdefs.h. */
7817
7818/* Override any gcc2 internal prototype to avoid an error. */
7819#ifdef __cplusplus
7820extern "C"
7821#endif
7822/* We use char because int might match the return type of a gcc2
7823 builtin and then its argument prototype would still apply. */
7824char dlopen ();
7825int
7826main ()
7827{
7828dlopen ();
7829 ;
7830 return 0;
7831}
7832_ACEOF
7833rm -f conftest.$ac_objext conftest$ac_exeext
7834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7835 (eval $ac_link) 2>conftest.er1
7836 ac_status=$?
7837 grep -v '^ *+' conftest.er1 >conftest.err
7838 rm -f conftest.er1
7839 cat conftest.err >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } &&
7842 { ac_try='test -z "$ac_c_werror_flag"
7843 || test ! -s conftest.err'
7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845 (eval $ac_try) 2>&5
7846 ac_status=$?
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; } &&
7849 { ac_try='test -s conftest$ac_exeext'
7850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7851 (eval $ac_try) 2>&5
7852 ac_status=$?
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); }; }; then
7855 ac_cv_lib_svld_dlopen=yes
7856else
7857 echo "$as_me: failed program was:" >&5
7858sed 's/^/| /' conftest.$ac_ext >&5
7859
7860ac_cv_lib_svld_dlopen=no
7861fi
7862rm -f conftest.err conftest.$ac_objext \
7863 conftest$ac_exeext conftest.$ac_ext
7864LIBS=$ac_check_lib_save_LIBS
7865fi
7866echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7867echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7868if test $ac_cv_lib_svld_dlopen = yes; then
7869
7870cat >>confdefs.h <<\_ACEOF
7871#define HAVE_LIBDL 1
7872_ACEOF
7873
7874 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7875else
7876 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7877echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7878if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7880else
7881 ac_check_lib_save_LIBS=$LIBS
7882LIBS="-ldld $LIBS"
7883cat >conftest.$ac_ext <<_ACEOF
7884/* confdefs.h. */
7885_ACEOF
7886cat confdefs.h >>conftest.$ac_ext
7887cat >>conftest.$ac_ext <<_ACEOF
7888/* end confdefs.h. */
7889
7890/* Override any gcc2 internal prototype to avoid an error. */
7891#ifdef __cplusplus
7892extern "C"
7893#endif
7894/* We use char because int might match the return type of a gcc2
7895 builtin and then its argument prototype would still apply. */
7896char dld_link ();
7897int
7898main ()
7899{
7900dld_link ();
7901 ;
7902 return 0;
7903}
7904_ACEOF
7905rm -f conftest.$ac_objext conftest$ac_exeext
7906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7907 (eval $ac_link) 2>conftest.er1
7908 ac_status=$?
7909 grep -v '^ *+' conftest.er1 >conftest.err
7910 rm -f conftest.er1
7911 cat conftest.err >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } &&
7914 { ac_try='test -z "$ac_c_werror_flag"
7915 || test ! -s conftest.err'
7916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917 (eval $ac_try) 2>&5
7918 ac_status=$?
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); }; } &&
7921 { ac_try='test -s conftest$ac_exeext'
7922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923 (eval $ac_try) 2>&5
7924 ac_status=$?
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); }; }; then
7927 ac_cv_lib_dld_dld_link=yes
7928else
7929 echo "$as_me: failed program was:" >&5
7930sed 's/^/| /' conftest.$ac_ext >&5
7931
7932ac_cv_lib_dld_dld_link=no
7933fi
7934rm -f conftest.err conftest.$ac_objext \
7935 conftest$ac_exeext conftest.$ac_ext
7936LIBS=$ac_check_lib_save_LIBS
7937fi
7938echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7939echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7940if test $ac_cv_lib_dld_dld_link = yes; then
7941
7942cat >>confdefs.h <<\_ACEOF
7943#define HAVE_DLD 1
7944_ACEOF
7945
7946 LIBADD_DL="$LIBADD_DL -ldld"
7947else
7948 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7949echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7950if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7952else
7953 cat >conftest.$ac_ext <<_ACEOF
7954/* confdefs.h. */
7955_ACEOF
7956cat confdefs.h >>conftest.$ac_ext
7957cat >>conftest.$ac_ext <<_ACEOF
7958/* end confdefs.h. */
7959/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7961#define _dyld_func_lookup innocuous__dyld_func_lookup
7962
7963/* System header to define __stub macros and hopefully few prototypes,
7964 which can conflict with char _dyld_func_lookup (); below.
7965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7966 <limits.h> exists even on freestanding compilers. */
7967
7968#ifdef __STDC__
7969# include <limits.h>
7970#else
7971# include <assert.h>
7972#endif
7973
7974#undef _dyld_func_lookup
7975
7976/* Override any gcc2 internal prototype to avoid an error. */
7977#ifdef __cplusplus
7978extern "C"
7979{
7980#endif
7981/* We use char because int might match the return type of a gcc2
7982 builtin and then its argument prototype would still apply. */
7983char _dyld_func_lookup ();
7984/* The GNU C library defines this for functions which it implements
7985 to always fail with ENOSYS. Some functions are actually named
7986 something starting with __ and the normal name is an alias. */
7987#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7988choke me
7989#else
7990char (*f) () = _dyld_func_lookup;
7991#endif
7992#ifdef __cplusplus
7993}
7994#endif
7995
7996int
7997main ()
7998{
7999return f != _dyld_func_lookup;
8000 ;
8001 return 0;
8002}
8003_ACEOF
8004rm -f conftest.$ac_objext conftest$ac_exeext
8005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8006 (eval $ac_link) 2>conftest.er1
8007 ac_status=$?
8008 grep -v '^ *+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } &&
8013 { ac_try='test -z "$ac_c_werror_flag"
8014 || test ! -s conftest.err'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 (eval $ac_try) 2>&5
8017 ac_status=$?
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; } &&
8020 { ac_try='test -s conftest$ac_exeext'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022 (eval $ac_try) 2>&5
8023 ac_status=$?
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8026 ac_cv_func__dyld_func_lookup=yes
8027else
8028 echo "$as_me: failed program was:" >&5
8029sed 's/^/| /' conftest.$ac_ext >&5
8030
8031ac_cv_func__dyld_func_lookup=no
8032fi
8033rm -f conftest.err conftest.$ac_objext \
8034 conftest$ac_exeext conftest.$ac_ext
8035fi
8036echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8037echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8038if test $ac_cv_func__dyld_func_lookup = yes; then
8039
8040cat >>confdefs.h <<\_ACEOF
8041#define HAVE_DYLD 1
8042_ACEOF
8043
8044fi
8045
8046
8047fi
8048
8049
8050fi
8051
8052
8053fi
8054rm -f conftest.err conftest.$ac_objext \
8055 conftest$ac_exeext conftest.$ac_ext
8056
8057fi
8058
8059
8060fi
8061
8062
8063fi
8064
8065
8066if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8067then
8068 lt_save_LIBS="$LIBS"
8069 LIBS="$LIBS $LIBADD_DL"
8070
8071for ac_func in dlerror
8072do
8073as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8074echo "$as_me:$LINENO: checking for $ac_func" >&5
8075echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8076if eval "test \"\${$as_ac_var+set}\" = set"; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
8078else
8079 cat >conftest.$ac_ext <<_ACEOF
8080/* confdefs.h. */
8081_ACEOF
8082cat confdefs.h >>conftest.$ac_ext
8083cat >>conftest.$ac_ext <<_ACEOF
8084/* end confdefs.h. */
8085/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8087#define $ac_func innocuous_$ac_func
8088
8089/* System header to define __stub macros and hopefully few prototypes,
8090 which can conflict with char $ac_func (); below.
8091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8092 <limits.h> exists even on freestanding compilers. */
8093
8094#ifdef __STDC__
8095# include <limits.h>
8096#else
8097# include <assert.h>
8098#endif
8099
8100#undef $ac_func
8101
8102/* Override any gcc2 internal prototype to avoid an error. */
8103#ifdef __cplusplus
8104extern "C"
8105{
8106#endif
8107/* We use char because int might match the return type of a gcc2
8108 builtin and then its argument prototype would still apply. */
8109char $ac_func ();
8110/* The GNU C library defines this for functions which it implements
8111 to always fail with ENOSYS. Some functions are actually named
8112 something starting with __ and the normal name is an alias. */
8113#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8114choke me
8115#else
8116char (*f) () = $ac_func;
8117#endif
8118#ifdef __cplusplus
8119}
8120#endif
8121
8122int
8123main ()
8124{
8125return f != $ac_func;
8126 ;
8127 return 0;
8128}
8129_ACEOF
8130rm -f conftest.$ac_objext conftest$ac_exeext
8131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8132 (eval $ac_link) 2>conftest.er1
8133 ac_status=$?
8134 grep -v '^ *+' conftest.er1 >conftest.err
8135 rm -f conftest.er1
8136 cat conftest.err >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } &&
8139 { ac_try='test -z "$ac_c_werror_flag"
8140 || test ! -s conftest.err'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 (eval $ac_try) 2>&5
8143 ac_status=$?
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; } &&
8146 { ac_try='test -s conftest$ac_exeext'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148 (eval $ac_try) 2>&5
8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 eval "$as_ac_var=yes"
8153else
8154 echo "$as_me: failed program was:" >&5
8155sed 's/^/| /' conftest.$ac_ext >&5
8156
8157eval "$as_ac_var=no"
8158fi
8159rm -f conftest.err conftest.$ac_objext \
8160 conftest$ac_exeext conftest.$ac_ext
8161fi
8162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8163echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8164if test `eval echo '${'$as_ac_var'}'` = yes; then
8165 cat >>confdefs.h <<_ACEOF
8166#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8167_ACEOF
8168
8169fi
8170done
8171
8172 LIBS="$lt_save_LIBS"
8173fi
8174ac_ext=c
8175ac_cpp='$CPP $CPPFLAGS'
8176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8178ac_compiler_gnu=$ac_cv_c_compiler_gnu
8179
8180
8181
8182echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8183echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8184if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8186else
8187 ac_cv_sys_symbol_underscore=no
8188 cat > conftest.$ac_ext <<EOF
8189void nm_test_func(){}
8190int main(){nm_test_func;return 0;}
8191EOF
8192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8193 (eval $ac_compile) 2>&5
8194 ac_status=$?
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; then
8197 # Now try to grab the symbols.
8198 ac_nlist=conftest.nm
8199 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8200 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8201 ac_status=$?
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } && test -s "$ac_nlist"; then
8204 # See whether the symbols have a leading underscore.
8205 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8206 ac_cv_sys_symbol_underscore=yes
8207 else
8208 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8209 :
8210 else
8211 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8212 fi
8213 fi
8214 else
8215 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8216 fi
8217 else
8218 echo "configure: failed program was:" >&5
8219 cat conftest.c >&5
8220 fi
8221 rm -rf conftest*
8222
8223fi
8224echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8225echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8226
8227
8228if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8229 if test x"$libltdl_cv_func_dlopen" = xyes ||
8230 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8231 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8232echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8233if test "${libltdl_cv_need_uscore+set}" = set; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8235else
8236 libltdl_cv_need_uscore=unknown
8237 save_LIBS="$LIBS"
8238 LIBS="$LIBS $LIBADD_DL"
8239 if test "$cross_compiling" = yes; then :
8240 libltdl_cv_need_uscore=cross
8241else
8242 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8243 lt_status=$lt_dlunknown
8244 cat > conftest.$ac_ext <<EOF
Reid Spencer502935f2004-12-22 05:56:56 +00008245#line 8245 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008246#include "confdefs.h"
8247
8248#if HAVE_DLFCN_H
8249#include <dlfcn.h>
8250#endif
8251
8252#include <stdio.h>
8253
8254#ifdef RTLD_GLOBAL
8255# define LT_DLGLOBAL RTLD_GLOBAL
8256#else
8257# ifdef DL_GLOBAL
8258# define LT_DLGLOBAL DL_GLOBAL
8259# else
8260# define LT_DLGLOBAL 0
8261# endif
8262#endif
8263
8264/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8265 find out it does not work in some platform. */
8266#ifndef LT_DLLAZY_OR_NOW
8267# ifdef RTLD_LAZY
8268# define LT_DLLAZY_OR_NOW RTLD_LAZY
8269# else
8270# ifdef DL_LAZY
8271# define LT_DLLAZY_OR_NOW DL_LAZY
8272# else
8273# ifdef RTLD_NOW
8274# define LT_DLLAZY_OR_NOW RTLD_NOW
8275# else
8276# ifdef DL_NOW
8277# define LT_DLLAZY_OR_NOW DL_NOW
8278# else
8279# define LT_DLLAZY_OR_NOW 0
8280# endif
8281# endif
8282# endif
8283# endif
8284#endif
8285
8286#ifdef __cplusplus
8287extern "C" void exit (int);
8288#endif
8289
8290void fnord() { int i=42;}
8291int main ()
8292{
8293 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8294 int status = $lt_dlunknown;
8295
8296 if (self)
8297 {
8298 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8299 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8300 /* dlclose (self); */
8301 }
8302
8303 exit (status);
8304}
8305EOF
8306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8307 (eval $ac_link) 2>&5
8308 ac_status=$?
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8311 (./conftest; exit; ) 2>/dev/null
8312 lt_status=$?
8313 case x$lt_status in
8314 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8315 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8316 x$lt_unknown|x*) ;;
8317 esac
8318 else :
8319 # compilation failed
8320
8321 fi
8322fi
8323rm -fr conftest*
8324
8325 LIBS="$save_LIBS"
8326
8327fi
8328echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8329echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8330 fi
8331fi
8332
8333if test x"$libltdl_cv_need_uscore" = xyes; then
8334
8335cat >>confdefs.h <<\_ACEOF
8336#define NEED_USCORE 1
8337_ACEOF
8338
8339fi
8340
8341
8342echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8343echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8344if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8346else
8347 # PORTME does your system automatically load deplibs for dlopen?
8348 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8349 # For now, we just catch OSes we know something about -- in the
8350 # future, we'll try test this programmatically.
8351 libltdl_cv_sys_dlopen_deplibs=unknown
8352 case "$host_os" in
8353 aix3*|aix4.1.*|aix4.2.*)
8354 # Unknown whether this is true for these versions of AIX, but
8355 # we want this `case' here to explicitly catch those versions.
8356 libltdl_cv_sys_dlopen_deplibs=unknown
8357 ;;
8358 aix[45]*)
8359 libltdl_cv_sys_dlopen_deplibs=yes
8360 ;;
8361 darwin*)
8362 # Assuming the user has installed a libdl from somewhere, this is true
8363 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8364 libltdl_cv_sys_dlopen_deplibs=yes
8365 ;;
8366 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8367 # GNU and its variants, using gnu ld.so (Glibc)
8368 libltdl_cv_sys_dlopen_deplibs=yes
8369 ;;
8370 hpux10*|hpux11*)
8371 libltdl_cv_sys_dlopen_deplibs=yes
8372 ;;
8373 irix[12345]*|irix6.[01]*)
8374 # Catch all versions of IRIX before 6.2, and indicate that we don't
8375 # know how it worked for any of those versions.
8376 libltdl_cv_sys_dlopen_deplibs=unknown
8377 ;;
8378 irix*)
8379 # The case above catches anything before 6.2, and it's known that
8380 # at 6.2 and later dlopen does load deplibs.
8381 libltdl_cv_sys_dlopen_deplibs=yes
8382 ;;
8383 netbsd*)
8384 libltdl_cv_sys_dlopen_deplibs=yes
8385 ;;
8386 openbsd*)
8387 libltdl_cv_sys_dlopen_deplibs=yes
8388 ;;
8389 osf[1234]*)
8390 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8391 # it did *not* use an RPATH in a shared library to find objects the
8392 # library depends on, so we explictly say `no'.
8393 libltdl_cv_sys_dlopen_deplibs=no
8394 ;;
8395 osf5.0|osf5.0a|osf5.1)
8396 # dlopen *does* load deplibs and with the right loader patch applied
8397 # it even uses RPATH in a shared library to search for shared objects
8398 # that the library depends on, but there's no easy way to know if that
8399 # patch is installed. Since this is the case, all we can really
8400 # say is unknown -- it depends on the patch being installed. If
8401 # it is, this changes to `yes'. Without it, it would be `no'.
8402 libltdl_cv_sys_dlopen_deplibs=unknown
8403 ;;
8404 osf*)
8405 # the two cases above should catch all versions of osf <= 5.1. Read
8406 # the comments above for what we know about them.
8407 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8408 # is used to find them so we can finally say `yes'.
8409 libltdl_cv_sys_dlopen_deplibs=yes
8410 ;;
8411 solaris*)
8412 libltdl_cv_sys_dlopen_deplibs=yes
8413 ;;
8414 esac
8415
8416fi
8417echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8418echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8419if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8420
8421cat >>confdefs.h <<\_ACEOF
8422#define LTDL_DLOPEN_DEPLIBS 1
8423_ACEOF
8424
8425fi
8426
8427
8428for ac_header in argz.h
8429do
8430as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8431if eval "test \"\${$as_ac_Header+set}\" = set"; then
8432 echo "$as_me:$LINENO: checking for $ac_header" >&5
8433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8434if eval "test \"\${$as_ac_Header+set}\" = set"; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8436fi
8437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8438echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8439else
8440 # Is the header compilable?
8441echo "$as_me:$LINENO: checking $ac_header usability" >&5
8442echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8443cat >conftest.$ac_ext <<_ACEOF
8444/* confdefs.h. */
8445_ACEOF
8446cat confdefs.h >>conftest.$ac_ext
8447cat >>conftest.$ac_ext <<_ACEOF
8448/* end confdefs.h. */
8449$ac_includes_default
8450#include <$ac_header>
8451_ACEOF
8452rm -f conftest.$ac_objext
8453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8454 (eval $ac_compile) 2>conftest.er1
8455 ac_status=$?
8456 grep -v '^ *+' conftest.er1 >conftest.err
8457 rm -f conftest.er1
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
8461 { ac_try='test -z "$ac_c_werror_flag"
8462 || test ! -s conftest.err'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 (eval $ac_try) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; } &&
8468 { ac_try='test -s conftest.$ac_objext'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470 (eval $ac_try) 2>&5
8471 ac_status=$?
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
8474 ac_header_compiler=yes
8475else
8476 echo "$as_me: failed program was:" >&5
8477sed 's/^/| /' conftest.$ac_ext >&5
8478
8479ac_header_compiler=no
8480fi
8481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8482echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8483echo "${ECHO_T}$ac_header_compiler" >&6
8484
8485# Is the header present?
8486echo "$as_me:$LINENO: checking $ac_header presence" >&5
8487echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8488cat >conftest.$ac_ext <<_ACEOF
8489/* confdefs.h. */
8490_ACEOF
8491cat confdefs.h >>conftest.$ac_ext
8492cat >>conftest.$ac_ext <<_ACEOF
8493/* end confdefs.h. */
8494#include <$ac_header>
8495_ACEOF
8496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8498 ac_status=$?
8499 grep -v '^ *+' conftest.er1 >conftest.err
8500 rm -f conftest.er1
8501 cat conftest.err >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } >/dev/null; then
8504 if test -s conftest.err; then
8505 ac_cpp_err=$ac_c_preproc_warn_flag
8506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8507 else
8508 ac_cpp_err=
8509 fi
8510else
8511 ac_cpp_err=yes
8512fi
8513if test -z "$ac_cpp_err"; then
8514 ac_header_preproc=yes
8515else
8516 echo "$as_me: failed program was:" >&5
8517sed 's/^/| /' conftest.$ac_ext >&5
8518
8519 ac_header_preproc=no
8520fi
8521rm -f conftest.err conftest.$ac_ext
8522echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8523echo "${ECHO_T}$ac_header_preproc" >&6
8524
8525# So? What about this header?
8526case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8527 yes:no: )
8528 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8529echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8531echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8532 ac_header_preproc=yes
8533 ;;
8534 no:yes:* )
8535 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8536echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8537 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8538echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8539 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8540echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8541 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8542echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8544echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8545 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8546echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8547 (
8548 cat <<\_ASBOX
8549## ----------------------------------- ##
8550## Report this to llvmbugs@cs.uiuc.edu ##
8551## ----------------------------------- ##
8552_ASBOX
8553 ) |
8554 sed "s/^/$as_me: WARNING: /" >&2
8555 ;;
8556esac
8557echo "$as_me:$LINENO: checking for $ac_header" >&5
8558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8559if eval "test \"\${$as_ac_Header+set}\" = set"; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8561else
8562 eval "$as_ac_Header=\$ac_header_preproc"
8563fi
8564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8565echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8566
8567fi
8568if test `eval echo '${'$as_ac_Header'}'` = yes; then
8569 cat >>confdefs.h <<_ACEOF
8570#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8571_ACEOF
8572
8573fi
8574
8575done
8576
8577
8578echo "$as_me:$LINENO: checking for error_t" >&5
8579echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8580if test "${ac_cv_type_error_t+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8582else
8583 cat >conftest.$ac_ext <<_ACEOF
8584/* confdefs.h. */
8585_ACEOF
8586cat confdefs.h >>conftest.$ac_ext
8587cat >>conftest.$ac_ext <<_ACEOF
8588/* end confdefs.h. */
8589#if HAVE_ARGZ_H
8590# include <argz.h>
8591#endif
8592
8593int
8594main ()
8595{
8596if ((error_t *) 0)
8597 return 0;
8598if (sizeof (error_t))
8599 return 0;
8600 ;
8601 return 0;
8602}
8603_ACEOF
8604rm -f conftest.$ac_objext
8605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8606 (eval $ac_compile) 2>conftest.er1
8607 ac_status=$?
8608 grep -v '^ *+' conftest.er1 >conftest.err
8609 rm -f conftest.er1
8610 cat conftest.err >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } &&
8613 { ac_try='test -z "$ac_c_werror_flag"
8614 || test ! -s conftest.err'
8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 (eval $ac_try) 2>&5
8617 ac_status=$?
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; } &&
8620 { ac_try='test -s conftest.$ac_objext'
8621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622 (eval $ac_try) 2>&5
8623 ac_status=$?
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; }; then
8626 ac_cv_type_error_t=yes
8627else
8628 echo "$as_me: failed program was:" >&5
8629sed 's/^/| /' conftest.$ac_ext >&5
8630
8631ac_cv_type_error_t=no
8632fi
8633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8634fi
8635echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8636echo "${ECHO_T}$ac_cv_type_error_t" >&6
8637if test $ac_cv_type_error_t = yes; then
8638
8639cat >>confdefs.h <<_ACEOF
8640#define HAVE_ERROR_T 1
8641_ACEOF
8642
8643
8644else
8645
8646cat >>confdefs.h <<\_ACEOF
8647#define error_t int
8648_ACEOF
8649
8650fi
8651
8652
8653
8654
8655
8656
8657
8658for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8659do
8660as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8661echo "$as_me:$LINENO: checking for $ac_func" >&5
8662echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8663if eval "test \"\${$as_ac_var+set}\" = set"; then
8664 echo $ECHO_N "(cached) $ECHO_C" >&6
8665else
8666 cat >conftest.$ac_ext <<_ACEOF
8667/* confdefs.h. */
8668_ACEOF
8669cat confdefs.h >>conftest.$ac_ext
8670cat >>conftest.$ac_ext <<_ACEOF
8671/* end confdefs.h. */
8672/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8674#define $ac_func innocuous_$ac_func
8675
8676/* System header to define __stub macros and hopefully few prototypes,
8677 which can conflict with char $ac_func (); below.
8678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8679 <limits.h> exists even on freestanding compilers. */
8680
8681#ifdef __STDC__
8682# include <limits.h>
8683#else
8684# include <assert.h>
8685#endif
8686
8687#undef $ac_func
8688
8689/* Override any gcc2 internal prototype to avoid an error. */
8690#ifdef __cplusplus
8691extern "C"
8692{
8693#endif
8694/* We use char because int might match the return type of a gcc2
8695 builtin and then its argument prototype would still apply. */
8696char $ac_func ();
8697/* The GNU C library defines this for functions which it implements
8698 to always fail with ENOSYS. Some functions are actually named
8699 something starting with __ and the normal name is an alias. */
8700#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8701choke me
8702#else
8703char (*f) () = $ac_func;
8704#endif
8705#ifdef __cplusplus
8706}
8707#endif
8708
8709int
8710main ()
8711{
8712return f != $ac_func;
8713 ;
8714 return 0;
8715}
8716_ACEOF
8717rm -f conftest.$ac_objext conftest$ac_exeext
8718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8719 (eval $ac_link) 2>conftest.er1
8720 ac_status=$?
8721 grep -v '^ *+' conftest.er1 >conftest.err
8722 rm -f conftest.er1
8723 cat conftest.err >&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); } &&
8726 { ac_try='test -z "$ac_c_werror_flag"
8727 || test ! -s conftest.err'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729 (eval $ac_try) 2>&5
8730 ac_status=$?
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; } &&
8733 { ac_try='test -s conftest$ac_exeext'
8734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735 (eval $ac_try) 2>&5
8736 ac_status=$?
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; }; then
8739 eval "$as_ac_var=yes"
8740else
8741 echo "$as_me: failed program was:" >&5
8742sed 's/^/| /' conftest.$ac_ext >&5
8743
8744eval "$as_ac_var=no"
8745fi
8746rm -f conftest.err conftest.$ac_objext \
8747 conftest$ac_exeext conftest.$ac_ext
8748fi
8749echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8750echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8751if test `eval echo '${'$as_ac_var'}'` = yes; then
8752 cat >>confdefs.h <<_ACEOF
8753#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8754_ACEOF
8755
8756fi
8757done
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8787 stdio.h unistd.h
8788do
8789as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8790if eval "test \"\${$as_ac_Header+set}\" = set"; then
8791 echo "$as_me:$LINENO: checking for $ac_header" >&5
8792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8793if eval "test \"\${$as_ac_Header+set}\" = set"; then
8794 echo $ECHO_N "(cached) $ECHO_C" >&6
8795fi
8796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8798else
8799 # Is the header compilable?
8800echo "$as_me:$LINENO: checking $ac_header usability" >&5
8801echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8802cat >conftest.$ac_ext <<_ACEOF
8803/* confdefs.h. */
8804_ACEOF
8805cat confdefs.h >>conftest.$ac_ext
8806cat >>conftest.$ac_ext <<_ACEOF
8807/* end confdefs.h. */
8808$ac_includes_default
8809#include <$ac_header>
8810_ACEOF
8811rm -f conftest.$ac_objext
8812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8813 (eval $ac_compile) 2>conftest.er1
8814 ac_status=$?
8815 grep -v '^ *+' conftest.er1 >conftest.err
8816 rm -f conftest.er1
8817 cat conftest.err >&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } &&
8820 { ac_try='test -z "$ac_c_werror_flag"
8821 || test ! -s conftest.err'
8822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8823 (eval $ac_try) 2>&5
8824 ac_status=$?
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); }; } &&
8827 { ac_try='test -s conftest.$ac_objext'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829 (eval $ac_try) 2>&5
8830 ac_status=$?
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; }; then
8833 ac_header_compiler=yes
8834else
8835 echo "$as_me: failed program was:" >&5
8836sed 's/^/| /' conftest.$ac_ext >&5
8837
8838ac_header_compiler=no
8839fi
8840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8841echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8842echo "${ECHO_T}$ac_header_compiler" >&6
8843
8844# Is the header present?
8845echo "$as_me:$LINENO: checking $ac_header presence" >&5
8846echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8847cat >conftest.$ac_ext <<_ACEOF
8848/* confdefs.h. */
8849_ACEOF
8850cat confdefs.h >>conftest.$ac_ext
8851cat >>conftest.$ac_ext <<_ACEOF
8852/* end confdefs.h. */
8853#include <$ac_header>
8854_ACEOF
8855if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8857 ac_status=$?
8858 grep -v '^ *+' conftest.er1 >conftest.err
8859 rm -f conftest.er1
8860 cat conftest.err >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); } >/dev/null; then
8863 if test -s conftest.err; then
8864 ac_cpp_err=$ac_c_preproc_warn_flag
8865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8866 else
8867 ac_cpp_err=
8868 fi
8869else
8870 ac_cpp_err=yes
8871fi
8872if test -z "$ac_cpp_err"; then
8873 ac_header_preproc=yes
8874else
8875 echo "$as_me: failed program was:" >&5
8876sed 's/^/| /' conftest.$ac_ext >&5
8877
8878 ac_header_preproc=no
8879fi
8880rm -f conftest.err conftest.$ac_ext
8881echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8882echo "${ECHO_T}$ac_header_preproc" >&6
8883
8884# So? What about this header?
8885case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8886 yes:no: )
8887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8888echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8890echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8891 ac_header_preproc=yes
8892 ;;
8893 no:yes:* )
8894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8895echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8897echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8899echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8901echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8903echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8905echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8906 (
8907 cat <<\_ASBOX
8908## ----------------------------------- ##
8909## Report this to llvmbugs@cs.uiuc.edu ##
8910## ----------------------------------- ##
8911_ASBOX
8912 ) |
8913 sed "s/^/$as_me: WARNING: /" >&2
8914 ;;
8915esac
8916echo "$as_me:$LINENO: checking for $ac_header" >&5
8917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8918if eval "test \"\${$as_ac_Header+set}\" = set"; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8920else
8921 eval "$as_ac_Header=\$ac_header_preproc"
8922fi
8923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8925
8926fi
8927if test `eval echo '${'$as_ac_Header'}'` = yes; then
8928 cat >>confdefs.h <<_ACEOF
8929#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8930_ACEOF
8931
8932fi
8933
8934done
8935
8936
8937
8938
8939
8940for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8941do
8942as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8943if eval "test \"\${$as_ac_Header+set}\" = set"; then
8944 echo "$as_me:$LINENO: checking for $ac_header" >&5
8945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8946if eval "test \"\${$as_ac_Header+set}\" = set"; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8948fi
8949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8950echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8951else
8952 # Is the header compilable?
8953echo "$as_me:$LINENO: checking $ac_header usability" >&5
8954echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8955cat >conftest.$ac_ext <<_ACEOF
8956/* confdefs.h. */
8957_ACEOF
8958cat confdefs.h >>conftest.$ac_ext
8959cat >>conftest.$ac_ext <<_ACEOF
8960/* end confdefs.h. */
8961$ac_includes_default
8962#include <$ac_header>
8963_ACEOF
8964rm -f conftest.$ac_objext
8965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8966 (eval $ac_compile) 2>conftest.er1
8967 ac_status=$?
8968 grep -v '^ *+' conftest.er1 >conftest.err
8969 rm -f conftest.er1
8970 cat conftest.err >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); } &&
8973 { ac_try='test -z "$ac_c_werror_flag"
8974 || test ! -s conftest.err'
8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976 (eval $ac_try) 2>&5
8977 ac_status=$?
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; } &&
8980 { ac_try='test -s conftest.$ac_objext'
8981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 (eval $ac_try) 2>&5
8983 ac_status=$?
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; }; then
8986 ac_header_compiler=yes
8987else
8988 echo "$as_me: failed program was:" >&5
8989sed 's/^/| /' conftest.$ac_ext >&5
8990
8991ac_header_compiler=no
8992fi
8993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8994echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8995echo "${ECHO_T}$ac_header_compiler" >&6
8996
8997# Is the header present?
8998echo "$as_me:$LINENO: checking $ac_header presence" >&5
8999echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9000cat >conftest.$ac_ext <<_ACEOF
9001/* confdefs.h. */
9002_ACEOF
9003cat confdefs.h >>conftest.$ac_ext
9004cat >>conftest.$ac_ext <<_ACEOF
9005/* end confdefs.h. */
9006#include <$ac_header>
9007_ACEOF
9008if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9010 ac_status=$?
9011 grep -v '^ *+' conftest.er1 >conftest.err
9012 rm -f conftest.er1
9013 cat conftest.err >&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); } >/dev/null; then
9016 if test -s conftest.err; then
9017 ac_cpp_err=$ac_c_preproc_warn_flag
9018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9019 else
9020 ac_cpp_err=
9021 fi
9022else
9023 ac_cpp_err=yes
9024fi
9025if test -z "$ac_cpp_err"; then
9026 ac_header_preproc=yes
9027else
9028 echo "$as_me: failed program was:" >&5
9029sed 's/^/| /' conftest.$ac_ext >&5
9030
9031 ac_header_preproc=no
9032fi
9033rm -f conftest.err conftest.$ac_ext
9034echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9035echo "${ECHO_T}$ac_header_preproc" >&6
9036
9037# So? What about this header?
9038case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9039 yes:no: )
9040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9041echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9043echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9044 ac_header_preproc=yes
9045 ;;
9046 no:yes:* )
9047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9048echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9050echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9052echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9054echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9056echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9058echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9059 (
9060 cat <<\_ASBOX
9061## ----------------------------------- ##
9062## Report this to llvmbugs@cs.uiuc.edu ##
9063## ----------------------------------- ##
9064_ASBOX
9065 ) |
9066 sed "s/^/$as_me: WARNING: /" >&2
9067 ;;
9068esac
9069echo "$as_me:$LINENO: checking for $ac_header" >&5
9070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9071if eval "test \"\${$as_ac_Header+set}\" = set"; then
9072 echo $ECHO_N "(cached) $ECHO_C" >&6
9073else
9074 eval "$as_ac_Header=\$ac_header_preproc"
9075fi
9076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9077echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9078
9079fi
9080if test `eval echo '${'$as_ac_Header'}'` = yes; then
9081 cat >>confdefs.h <<_ACEOF
9082#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9083_ACEOF
9084
9085fi
9086
9087done
9088
9089
9090
9091for ac_header in string.h strings.h
9092do
9093as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9094if eval "test \"\${$as_ac_Header+set}\" = set"; then
9095 echo "$as_me:$LINENO: checking for $ac_header" >&5
9096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9097if eval "test \"\${$as_ac_Header+set}\" = set"; then
9098 echo $ECHO_N "(cached) $ECHO_C" >&6
9099fi
9100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9101echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9102else
9103 # Is the header compilable?
9104echo "$as_me:$LINENO: checking $ac_header usability" >&5
9105echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9106cat >conftest.$ac_ext <<_ACEOF
9107/* confdefs.h. */
9108_ACEOF
9109cat confdefs.h >>conftest.$ac_ext
9110cat >>conftest.$ac_ext <<_ACEOF
9111/* end confdefs.h. */
9112$ac_includes_default
9113#include <$ac_header>
9114_ACEOF
9115rm -f conftest.$ac_objext
9116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9117 (eval $ac_compile) 2>conftest.er1
9118 ac_status=$?
9119 grep -v '^ *+' conftest.er1 >conftest.err
9120 rm -f conftest.er1
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try='test -z "$ac_c_werror_flag"
9125 || test ! -s conftest.err'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127 (eval $ac_try) 2>&5
9128 ac_status=$?
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; } &&
9131 { ac_try='test -s conftest.$ac_objext'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133 (eval $ac_try) 2>&5
9134 ac_status=$?
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9137 ac_header_compiler=yes
9138else
9139 echo "$as_me: failed program was:" >&5
9140sed 's/^/| /' conftest.$ac_ext >&5
9141
9142ac_header_compiler=no
9143fi
9144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9145echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9146echo "${ECHO_T}$ac_header_compiler" >&6
9147
9148# Is the header present?
9149echo "$as_me:$LINENO: checking $ac_header presence" >&5
9150echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9151cat >conftest.$ac_ext <<_ACEOF
9152/* confdefs.h. */
9153_ACEOF
9154cat confdefs.h >>conftest.$ac_ext
9155cat >>conftest.$ac_ext <<_ACEOF
9156/* end confdefs.h. */
9157#include <$ac_header>
9158_ACEOF
9159if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9161 ac_status=$?
9162 grep -v '^ *+' conftest.er1 >conftest.err
9163 rm -f conftest.er1
9164 cat conftest.err >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); } >/dev/null; then
9167 if test -s conftest.err; then
9168 ac_cpp_err=$ac_c_preproc_warn_flag
9169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9170 else
9171 ac_cpp_err=
9172 fi
9173else
9174 ac_cpp_err=yes
9175fi
9176if test -z "$ac_cpp_err"; then
9177 ac_header_preproc=yes
9178else
9179 echo "$as_me: failed program was:" >&5
9180sed 's/^/| /' conftest.$ac_ext >&5
9181
9182 ac_header_preproc=no
9183fi
9184rm -f conftest.err conftest.$ac_ext
9185echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9186echo "${ECHO_T}$ac_header_preproc" >&6
9187
9188# So? What about this header?
9189case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9190 yes:no: )
9191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9192echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9194echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9195 ac_header_preproc=yes
9196 ;;
9197 no:yes:* )
9198 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9199echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9200 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9201echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9202 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9203echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9204 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9205echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9207echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9208 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9209echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9210 (
9211 cat <<\_ASBOX
9212## ----------------------------------- ##
9213## Report this to llvmbugs@cs.uiuc.edu ##
9214## ----------------------------------- ##
9215_ASBOX
9216 ) |
9217 sed "s/^/$as_me: WARNING: /" >&2
9218 ;;
9219esac
9220echo "$as_me:$LINENO: checking for $ac_header" >&5
9221echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9222if eval "test \"\${$as_ac_Header+set}\" = set"; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
9224else
9225 eval "$as_ac_Header=\$ac_header_preproc"
9226fi
9227echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9228echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9229
9230fi
9231if test `eval echo '${'$as_ac_Header'}'` = yes; then
9232 cat >>confdefs.h <<_ACEOF
9233#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9234_ACEOF
9235 break
9236fi
9237
9238done
9239
9240
9241
9242
9243for ac_func in strchr index
9244do
9245as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9246echo "$as_me:$LINENO: checking for $ac_func" >&5
9247echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9248if eval "test \"\${$as_ac_var+set}\" = set"; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9250else
9251 cat >conftest.$ac_ext <<_ACEOF
9252/* confdefs.h. */
9253_ACEOF
9254cat confdefs.h >>conftest.$ac_ext
9255cat >>conftest.$ac_ext <<_ACEOF
9256/* end confdefs.h. */
9257/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9259#define $ac_func innocuous_$ac_func
9260
9261/* System header to define __stub macros and hopefully few prototypes,
9262 which can conflict with char $ac_func (); below.
9263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9264 <limits.h> exists even on freestanding compilers. */
9265
9266#ifdef __STDC__
9267# include <limits.h>
9268#else
9269# include <assert.h>
9270#endif
9271
9272#undef $ac_func
9273
9274/* Override any gcc2 internal prototype to avoid an error. */
9275#ifdef __cplusplus
9276extern "C"
9277{
9278#endif
9279/* We use char because int might match the return type of a gcc2
9280 builtin and then its argument prototype would still apply. */
9281char $ac_func ();
9282/* The GNU C library defines this for functions which it implements
9283 to always fail with ENOSYS. Some functions are actually named
9284 something starting with __ and the normal name is an alias. */
9285#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9286choke me
9287#else
9288char (*f) () = $ac_func;
9289#endif
9290#ifdef __cplusplus
9291}
9292#endif
9293
9294int
9295main ()
9296{
9297return f != $ac_func;
9298 ;
9299 return 0;
9300}
9301_ACEOF
9302rm -f conftest.$ac_objext conftest$ac_exeext
9303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9304 (eval $ac_link) 2>conftest.er1
9305 ac_status=$?
9306 grep -v '^ *+' conftest.er1 >conftest.err
9307 rm -f conftest.er1
9308 cat conftest.err >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); } &&
9311 { ac_try='test -z "$ac_c_werror_flag"
9312 || test ! -s conftest.err'
9313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314 (eval $ac_try) 2>&5
9315 ac_status=$?
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); }; } &&
9318 { ac_try='test -s conftest$ac_exeext'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320 (eval $ac_try) 2>&5
9321 ac_status=$?
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; }; then
9324 eval "$as_ac_var=yes"
9325else
9326 echo "$as_me: failed program was:" >&5
9327sed 's/^/| /' conftest.$ac_ext >&5
9328
9329eval "$as_ac_var=no"
9330fi
9331rm -f conftest.err conftest.$ac_objext \
9332 conftest$ac_exeext conftest.$ac_ext
9333fi
9334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9335echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9336if test `eval echo '${'$as_ac_var'}'` = yes; then
9337 cat >>confdefs.h <<_ACEOF
9338#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9339_ACEOF
9340 break
9341fi
9342done
9343
9344
9345
9346for ac_func in strrchr rindex
9347do
9348as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9349echo "$as_me:$LINENO: checking for $ac_func" >&5
9350echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9351if eval "test \"\${$as_ac_var+set}\" = set"; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9353else
9354 cat >conftest.$ac_ext <<_ACEOF
9355/* confdefs.h. */
9356_ACEOF
9357cat confdefs.h >>conftest.$ac_ext
9358cat >>conftest.$ac_ext <<_ACEOF
9359/* end confdefs.h. */
9360/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9362#define $ac_func innocuous_$ac_func
9363
9364/* System header to define __stub macros and hopefully few prototypes,
9365 which can conflict with char $ac_func (); below.
9366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9367 <limits.h> exists even on freestanding compilers. */
9368
9369#ifdef __STDC__
9370# include <limits.h>
9371#else
9372# include <assert.h>
9373#endif
9374
9375#undef $ac_func
9376
9377/* Override any gcc2 internal prototype to avoid an error. */
9378#ifdef __cplusplus
9379extern "C"
9380{
9381#endif
9382/* We use char because int might match the return type of a gcc2
9383 builtin and then its argument prototype would still apply. */
9384char $ac_func ();
9385/* The GNU C library defines this for functions which it implements
9386 to always fail with ENOSYS. Some functions are actually named
9387 something starting with __ and the normal name is an alias. */
9388#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9389choke me
9390#else
9391char (*f) () = $ac_func;
9392#endif
9393#ifdef __cplusplus
9394}
9395#endif
9396
9397int
9398main ()
9399{
9400return f != $ac_func;
9401 ;
9402 return 0;
9403}
9404_ACEOF
9405rm -f conftest.$ac_objext conftest$ac_exeext
9406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9407 (eval $ac_link) 2>conftest.er1
9408 ac_status=$?
9409 grep -v '^ *+' conftest.er1 >conftest.err
9410 rm -f conftest.er1
9411 cat conftest.err >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); } &&
9414 { ac_try='test -z "$ac_c_werror_flag"
9415 || test ! -s conftest.err'
9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417 (eval $ac_try) 2>&5
9418 ac_status=$?
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); }; } &&
9421 { ac_try='test -s conftest$ac_exeext'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423 (eval $ac_try) 2>&5
9424 ac_status=$?
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9427 eval "$as_ac_var=yes"
9428else
9429 echo "$as_me: failed program was:" >&5
9430sed 's/^/| /' conftest.$ac_ext >&5
9431
9432eval "$as_ac_var=no"
9433fi
9434rm -f conftest.err conftest.$ac_objext \
9435 conftest$ac_exeext conftest.$ac_ext
9436fi
9437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9438echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9439if test `eval echo '${'$as_ac_var'}'` = yes; then
9440 cat >>confdefs.h <<_ACEOF
9441#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9442_ACEOF
9443 break
9444fi
9445done
9446
9447
9448
9449for ac_func in memcpy bcopy
9450do
9451as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9452echo "$as_me:$LINENO: checking for $ac_func" >&5
9453echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9454if eval "test \"\${$as_ac_var+set}\" = set"; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9456else
9457 cat >conftest.$ac_ext <<_ACEOF
9458/* confdefs.h. */
9459_ACEOF
9460cat confdefs.h >>conftest.$ac_ext
9461cat >>conftest.$ac_ext <<_ACEOF
9462/* end confdefs.h. */
9463/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9465#define $ac_func innocuous_$ac_func
9466
9467/* System header to define __stub macros and hopefully few prototypes,
9468 which can conflict with char $ac_func (); below.
9469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9470 <limits.h> exists even on freestanding compilers. */
9471
9472#ifdef __STDC__
9473# include <limits.h>
9474#else
9475# include <assert.h>
9476#endif
9477
9478#undef $ac_func
9479
9480/* Override any gcc2 internal prototype to avoid an error. */
9481#ifdef __cplusplus
9482extern "C"
9483{
9484#endif
9485/* We use char because int might match the return type of a gcc2
9486 builtin and then its argument prototype would still apply. */
9487char $ac_func ();
9488/* The GNU C library defines this for functions which it implements
9489 to always fail with ENOSYS. Some functions are actually named
9490 something starting with __ and the normal name is an alias. */
9491#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9492choke me
9493#else
9494char (*f) () = $ac_func;
9495#endif
9496#ifdef __cplusplus
9497}
9498#endif
9499
9500int
9501main ()
9502{
9503return f != $ac_func;
9504 ;
9505 return 0;
9506}
9507_ACEOF
9508rm -f conftest.$ac_objext conftest$ac_exeext
9509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9510 (eval $ac_link) 2>conftest.er1
9511 ac_status=$?
9512 grep -v '^ *+' conftest.er1 >conftest.err
9513 rm -f conftest.er1
9514 cat conftest.err >&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); } &&
9517 { ac_try='test -z "$ac_c_werror_flag"
9518 || test ! -s conftest.err'
9519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520 (eval $ac_try) 2>&5
9521 ac_status=$?
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); }; } &&
9524 { ac_try='test -s conftest$ac_exeext'
9525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526 (eval $ac_try) 2>&5
9527 ac_status=$?
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); }; }; then
9530 eval "$as_ac_var=yes"
9531else
9532 echo "$as_me: failed program was:" >&5
9533sed 's/^/| /' conftest.$ac_ext >&5
9534
9535eval "$as_ac_var=no"
9536fi
9537rm -f conftest.err conftest.$ac_objext \
9538 conftest$ac_exeext conftest.$ac_ext
9539fi
9540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9541echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9542if test `eval echo '${'$as_ac_var'}'` = yes; then
9543 cat >>confdefs.h <<_ACEOF
9544#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9545_ACEOF
9546 break
9547fi
9548done
9549
9550
9551
9552for ac_func in memmove strcmp
9553do
9554as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9555echo "$as_me:$LINENO: checking for $ac_func" >&5
9556echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9557if eval "test \"\${$as_ac_var+set}\" = set"; then
9558 echo $ECHO_N "(cached) $ECHO_C" >&6
9559else
9560 cat >conftest.$ac_ext <<_ACEOF
9561/* confdefs.h. */
9562_ACEOF
9563cat confdefs.h >>conftest.$ac_ext
9564cat >>conftest.$ac_ext <<_ACEOF
9565/* end confdefs.h. */
9566/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9568#define $ac_func innocuous_$ac_func
9569
9570/* System header to define __stub macros and hopefully few prototypes,
9571 which can conflict with char $ac_func (); below.
9572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9573 <limits.h> exists even on freestanding compilers. */
9574
9575#ifdef __STDC__
9576# include <limits.h>
9577#else
9578# include <assert.h>
9579#endif
9580
9581#undef $ac_func
9582
9583/* Override any gcc2 internal prototype to avoid an error. */
9584#ifdef __cplusplus
9585extern "C"
9586{
9587#endif
9588/* We use char because int might match the return type of a gcc2
9589 builtin and then its argument prototype would still apply. */
9590char $ac_func ();
9591/* The GNU C library defines this for functions which it implements
9592 to always fail with ENOSYS. Some functions are actually named
9593 something starting with __ and the normal name is an alias. */
9594#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9595choke me
9596#else
9597char (*f) () = $ac_func;
9598#endif
9599#ifdef __cplusplus
9600}
9601#endif
9602
9603int
9604main ()
9605{
9606return f != $ac_func;
9607 ;
9608 return 0;
9609}
9610_ACEOF
9611rm -f conftest.$ac_objext conftest$ac_exeext
9612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9613 (eval $ac_link) 2>conftest.er1
9614 ac_status=$?
9615 grep -v '^ *+' conftest.er1 >conftest.err
9616 rm -f conftest.er1
9617 cat conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } &&
9620 { ac_try='test -z "$ac_c_werror_flag"
9621 || test ! -s conftest.err'
9622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623 (eval $ac_try) 2>&5
9624 ac_status=$?
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); }; } &&
9627 { ac_try='test -s conftest$ac_exeext'
9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 (eval $ac_try) 2>&5
9630 ac_status=$?
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; }; then
9633 eval "$as_ac_var=yes"
9634else
9635 echo "$as_me: failed program was:" >&5
9636sed 's/^/| /' conftest.$ac_ext >&5
9637
9638eval "$as_ac_var=no"
9639fi
9640rm -f conftest.err conftest.$ac_objext \
9641 conftest$ac_exeext conftest.$ac_ext
9642fi
9643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9644echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9645if test `eval echo '${'$as_ac_var'}'` = yes; then
9646 cat >>confdefs.h <<_ACEOF
9647#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9648_ACEOF
9649
9650fi
9651done
9652
9653
9654
9655
9656for ac_func in closedir opendir readdir
9657do
9658as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9659echo "$as_me:$LINENO: checking for $ac_func" >&5
9660echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9661if eval "test \"\${$as_ac_var+set}\" = set"; then
9662 echo $ECHO_N "(cached) $ECHO_C" >&6
9663else
9664 cat >conftest.$ac_ext <<_ACEOF
9665/* confdefs.h. */
9666_ACEOF
9667cat confdefs.h >>conftest.$ac_ext
9668cat >>conftest.$ac_ext <<_ACEOF
9669/* end confdefs.h. */
9670/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9672#define $ac_func innocuous_$ac_func
9673
9674/* System header to define __stub macros and hopefully few prototypes,
9675 which can conflict with char $ac_func (); below.
9676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9677 <limits.h> exists even on freestanding compilers. */
9678
9679#ifdef __STDC__
9680# include <limits.h>
9681#else
9682# include <assert.h>
9683#endif
9684
9685#undef $ac_func
9686
9687/* Override any gcc2 internal prototype to avoid an error. */
9688#ifdef __cplusplus
9689extern "C"
9690{
9691#endif
9692/* We use char because int might match the return type of a gcc2
9693 builtin and then its argument prototype would still apply. */
9694char $ac_func ();
9695/* The GNU C library defines this for functions which it implements
9696 to always fail with ENOSYS. Some functions are actually named
9697 something starting with __ and the normal name is an alias. */
9698#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9699choke me
9700#else
9701char (*f) () = $ac_func;
9702#endif
9703#ifdef __cplusplus
9704}
9705#endif
9706
9707int
9708main ()
9709{
9710return f != $ac_func;
9711 ;
9712 return 0;
9713}
9714_ACEOF
9715rm -f conftest.$ac_objext conftest$ac_exeext
9716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9717 (eval $ac_link) 2>conftest.er1
9718 ac_status=$?
9719 grep -v '^ *+' conftest.er1 >conftest.err
9720 rm -f conftest.er1
9721 cat conftest.err >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } &&
9724 { ac_try='test -z "$ac_c_werror_flag"
9725 || test ! -s conftest.err'
9726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 (eval $ac_try) 2>&5
9728 ac_status=$?
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; } &&
9731 { ac_try='test -s conftest$ac_exeext'
9732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 (eval $ac_try) 2>&5
9734 ac_status=$?
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; }; then
9737 eval "$as_ac_var=yes"
9738else
9739 echo "$as_me: failed program was:" >&5
9740sed 's/^/| /' conftest.$ac_ext >&5
9741
9742eval "$as_ac_var=no"
9743fi
9744rm -f conftest.err conftest.$ac_objext \
9745 conftest$ac_exeext conftest.$ac_ext
9746fi
9747echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9748echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9749if test `eval echo '${'$as_ac_var'}'` = yes; then
9750 cat >>confdefs.h <<_ACEOF
9751#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9752_ACEOF
9753
9754fi
9755done
9756
9757
9758# Check whether --enable-shared or --disable-shared was given.
9759if test "${enable_shared+set}" = set; then
9760 enableval="$enable_shared"
9761 p=${PACKAGE-default}
9762 case $enableval in
9763 yes) enable_shared=yes ;;
9764 no) enable_shared=no ;;
9765 *)
9766 enable_shared=no
9767 # Look at the argument we got. We use all the common list separators.
9768 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9769 for pkg in $enableval; do
9770 IFS="$lt_save_ifs"
9771 if test "X$pkg" = "X$p"; then
9772 enable_shared=yes
9773 fi
9774 done
9775 IFS="$lt_save_ifs"
9776 ;;
9777 esac
9778else
9779 enable_shared=yes
9780fi;
9781
9782# Check whether --enable-static or --disable-static was given.
9783if test "${enable_static+set}" = set; then
9784 enableval="$enable_static"
9785 p=${PACKAGE-default}
9786 case $enableval in
9787 yes) enable_static=yes ;;
9788 no) enable_static=no ;;
9789 *)
9790 enable_static=no
9791 # Look at the argument we got. We use all the common list separators.
9792 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9793 for pkg in $enableval; do
9794 IFS="$lt_save_ifs"
9795 if test "X$pkg" = "X$p"; then
9796 enable_static=yes
9797 fi
9798 done
9799 IFS="$lt_save_ifs"
9800 ;;
9801 esac
9802else
9803 enable_static=yes
9804fi;
9805
9806# Check whether --enable-fast-install or --disable-fast-install was given.
9807if test "${enable_fast_install+set}" = set; then
9808 enableval="$enable_fast_install"
9809 p=${PACKAGE-default}
9810 case $enableval in
9811 yes) enable_fast_install=yes ;;
9812 no) enable_fast_install=no ;;
9813 *)
9814 enable_fast_install=no
9815 # Look at the argument we got. We use all the common list separators.
9816 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9817 for pkg in $enableval; do
9818 IFS="$lt_save_ifs"
9819 if test "X$pkg" = "X$p"; then
9820 enable_fast_install=yes
9821 fi
9822 done
9823 IFS="$lt_save_ifs"
9824 ;;
9825 esac
9826else
9827 enable_fast_install=yes
9828fi;
9829
9830echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9831echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9832if test "${lt_cv_path_SED+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9834else
9835 # Loop through the user's path and test for sed and gsed.
9836# Then use that list of sed's as ones to test for truncation.
9837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838for as_dir in $PATH
9839do
9840 IFS=$as_save_IFS
9841 test -z "$as_dir" && as_dir=.
9842 for lt_ac_prog in sed gsed; do
9843 for ac_exec_ext in '' $ac_executable_extensions; do
9844 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9845 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9846 fi
9847 done
9848 done
9849done
9850lt_ac_max=0
9851lt_ac_count=0
9852# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9853# along with /bin/sed that truncates output.
9854for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9855 test ! -f $lt_ac_sed && break
9856 cat /dev/null > conftest.in
9857 lt_ac_count=0
9858 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9859 # Check for GNU sed and select it if it is found.
9860 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9861 lt_cv_path_SED=$lt_ac_sed
9862 break
9863 fi
9864 while true; do
9865 cat conftest.in conftest.in >conftest.tmp
9866 mv conftest.tmp conftest.in
9867 cp conftest.in conftest.nl
9868 echo >>conftest.nl
9869 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9870 cmp -s conftest.out conftest.nl || break
9871 # 10000 chars as input seems more than enough
9872 test $lt_ac_count -gt 10 && break
9873 lt_ac_count=`expr $lt_ac_count + 1`
9874 if test $lt_ac_count -gt $lt_ac_max; then
9875 lt_ac_max=$lt_ac_count
9876 lt_cv_path_SED=$lt_ac_sed
9877 fi
9878 done
9879done
9880
9881fi
9882
9883SED=$lt_cv_path_SED
9884echo "$as_me:$LINENO: result: $SED" >&5
9885echo "${ECHO_T}$SED" >&6
9886
9887
9888# Check whether --with-gnu-ld or --without-gnu-ld was given.
9889if test "${with_gnu_ld+set}" = set; then
9890 withval="$with_gnu_ld"
9891 test "$withval" = no || with_gnu_ld=yes
9892else
9893 with_gnu_ld=no
9894fi;
9895ac_prog=ld
9896if test "$GCC" = yes; then
9897 # Check if gcc -print-prog-name=ld gives a path.
9898 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9899echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9900 case $host in
9901 *-*-mingw*)
9902 # gcc leaves a trailing carriage return which upsets mingw
9903 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9904 *)
9905 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9906 esac
9907 case $ac_prog in
9908 # Accept absolute paths.
9909 [\\/]* | ?:[\\/]*)
9910 re_direlt='/[^/][^/]*/\.\./'
9911 # Canonicalize the pathname of ld
9912 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9913 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9914 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9915 done
9916 test -z "$LD" && LD="$ac_prog"
9917 ;;
9918 "")
9919 # If it fails, then pretend we aren't using GCC.
9920 ac_prog=ld
9921 ;;
9922 *)
9923 # If it is relative, then search for the first ld in PATH.
9924 with_gnu_ld=unknown
9925 ;;
9926 esac
9927elif test "$with_gnu_ld" = yes; then
9928 echo "$as_me:$LINENO: checking for GNU ld" >&5
9929echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9930else
9931 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9932echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9933fi
9934if test "${lt_cv_path_LD+set}" = set; then
9935 echo $ECHO_N "(cached) $ECHO_C" >&6
9936else
9937 if test -z "$LD"; then
9938 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9939 for ac_dir in $PATH; do
9940 IFS="$lt_save_ifs"
9941 test -z "$ac_dir" && ac_dir=.
9942 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9943 lt_cv_path_LD="$ac_dir/$ac_prog"
9944 # Check to see if the program is GNU ld. I'd rather use --version,
9945 # but apparently some GNU ld's only accept -v.
9946 # Break only if it was the GNU/non-GNU ld that we prefer.
9947 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9948 *GNU* | *'with BFD'*)
9949 test "$with_gnu_ld" != no && break
9950 ;;
9951 *)
9952 test "$with_gnu_ld" != yes && break
9953 ;;
9954 esac
9955 fi
9956 done
9957 IFS="$lt_save_ifs"
9958else
9959 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9960fi
9961fi
9962
9963LD="$lt_cv_path_LD"
9964if test -n "$LD"; then
9965 echo "$as_me:$LINENO: result: $LD" >&5
9966echo "${ECHO_T}$LD" >&6
9967else
9968 echo "$as_me:$LINENO: result: no" >&5
9969echo "${ECHO_T}no" >&6
9970fi
9971test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9972echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9973 { (exit 1); exit 1; }; }
9974echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9975echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9976if test "${lt_cv_prog_gnu_ld+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9978else
9979 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9980case `$LD -v 2>&1 </dev/null` in
9981*GNU* | *'with BFD'*)
9982 lt_cv_prog_gnu_ld=yes
9983 ;;
9984*)
9985 lt_cv_prog_gnu_ld=no
9986 ;;
9987esac
9988fi
9989echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9990echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9991with_gnu_ld=$lt_cv_prog_gnu_ld
9992
9993
9994echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9995echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9996if test "${lt_cv_ld_reload_flag+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9998else
9999 lt_cv_ld_reload_flag='-r'
10000fi
10001echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10002echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10003reload_flag=$lt_cv_ld_reload_flag
10004case $reload_flag in
10005"" | " "*) ;;
10006*) reload_flag=" $reload_flag" ;;
10007esac
10008reload_cmds='$LD$reload_flag -o $output$reload_objs'
10009case $host_os in
10010 darwin*)
10011 if test "$GCC" = yes; then
10012 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10013 else
10014 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10015 fi
10016 ;;
10017esac
10018
10019echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10020echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10021if test "${lt_cv_deplibs_check_method+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10023else
10024 lt_cv_file_magic_cmd='$MAGIC_CMD'
10025lt_cv_file_magic_test_file=
10026lt_cv_deplibs_check_method='unknown'
10027# Need to set the preceding variable on all platforms that support
10028# interlibrary dependencies.
10029# 'none' -- dependencies not supported.
10030# `unknown' -- same as none, but documents that we really don't know.
10031# 'pass_all' -- all dependencies passed with no checks.
10032# 'test_compile' -- check by making test program.
10033# 'file_magic [[regex]]' -- check by looking for files in library path
10034# which responds to the $file_magic_cmd with a given extended regex.
10035# If you have `file' or equivalent on your system and you're not sure
10036# whether `pass_all' will *always* work, you probably want this one.
10037
10038case $host_os in
10039aix4* | aix5*)
10040 lt_cv_deplibs_check_method=pass_all
10041 ;;
10042
10043beos*)
10044 lt_cv_deplibs_check_method=pass_all
10045 ;;
10046
10047bsdi[45]*)
10048 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10049 lt_cv_file_magic_cmd='/usr/bin/file -L'
10050 lt_cv_file_magic_test_file=/shlib/libc.so
10051 ;;
10052
10053cygwin*)
10054 # func_win32_libid is a shell function defined in ltmain.sh
10055 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10056 lt_cv_file_magic_cmd='func_win32_libid'
10057 ;;
10058
10059mingw* | pw32*)
10060 # Base MSYS/MinGW do not provide the 'file' command needed by
10061 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10062 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10063 lt_cv_file_magic_cmd='$OBJDUMP -f'
10064 ;;
10065
10066darwin* | rhapsody*)
10067 lt_cv_deplibs_check_method=pass_all
10068 ;;
10069
10070freebsd* | kfreebsd*-gnu)
10071 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10072 case $host_cpu in
10073 i*86 )
10074 # Not sure whether the presence of OpenBSD here was a mistake.
10075 # Let's accept both of them until this is cleared up.
10076 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10077 lt_cv_file_magic_cmd=/usr/bin/file
10078 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10079 ;;
10080 esac
10081 else
10082 lt_cv_deplibs_check_method=pass_all
10083 fi
10084 ;;
10085
10086gnu*)
10087 lt_cv_deplibs_check_method=pass_all
10088 ;;
10089
10090hpux10.20* | hpux11*)
10091 lt_cv_file_magic_cmd=/usr/bin/file
10092 case "$host_cpu" in
10093 ia64*)
10094 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10095 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10096 ;;
10097 hppa*64*)
10098 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]'
10099 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10100 ;;
10101 *)
10102 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10103 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10104 ;;
10105 esac
10106 ;;
10107
10108irix5* | irix6* | nonstopux*)
10109 case $LD in
10110 *-32|*"-32 ") libmagic=32-bit;;
10111 *-n32|*"-n32 ") libmagic=N32;;
10112 *-64|*"-64 ") libmagic=64-bit;;
10113 *) libmagic=never-match;;
10114 esac
10115 lt_cv_deplibs_check_method=pass_all
10116 ;;
10117
10118# This must be Linux ELF.
10119linux*)
10120 lt_cv_deplibs_check_method=pass_all
10121 ;;
10122
10123netbsd*)
10124 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10126 else
10127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10128 fi
10129 ;;
10130
10131newos6*)
10132 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10133 lt_cv_file_magic_cmd=/usr/bin/file
10134 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10135 ;;
10136
10137nto-qnx*)
10138 lt_cv_deplibs_check_method=unknown
10139 ;;
10140
10141openbsd*)
10142 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10143 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10144 else
10145 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10146 fi
10147 ;;
10148
10149osf3* | osf4* | osf5*)
10150 lt_cv_deplibs_check_method=pass_all
10151 ;;
10152
10153sco3.2v5*)
10154 lt_cv_deplibs_check_method=pass_all
10155 ;;
10156
10157solaris*)
10158 lt_cv_deplibs_check_method=pass_all
10159 ;;
10160
10161sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10162 case $host_vendor in
10163 motorola)
10164 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]'
10165 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10166 ;;
10167 ncr)
10168 lt_cv_deplibs_check_method=pass_all
10169 ;;
10170 sequent)
10171 lt_cv_file_magic_cmd='/bin/file'
10172 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10173 ;;
10174 sni)
10175 lt_cv_file_magic_cmd='/bin/file'
10176 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10177 lt_cv_file_magic_test_file=/lib/libc.so
10178 ;;
10179 siemens)
10180 lt_cv_deplibs_check_method=pass_all
10181 ;;
10182 esac
10183 ;;
10184
10185sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10186 lt_cv_deplibs_check_method=pass_all
10187 ;;
10188esac
10189
10190fi
10191echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10192echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10193file_magic_cmd=$lt_cv_file_magic_cmd
10194deplibs_check_method=$lt_cv_deplibs_check_method
10195test -z "$deplibs_check_method" && deplibs_check_method=unknown
10196
10197
10198
10199# If no C compiler was specified, use CC.
10200LTCC=${LTCC-"$CC"}
10201
10202# Allow CC to be a program name with arguments.
10203compiler=$CC
10204
10205# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10206if test "${enable_libtool_lock+set}" = set; then
10207 enableval="$enable_libtool_lock"
10208
10209fi;
10210test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10211
10212# Some flags need to be propagated to the compiler or linker for good
10213# libtool support.
10214case $host in
10215ia64-*-hpux*)
10216 # Find out which ABI we are using.
10217 echo 'int i;' > conftest.$ac_ext
10218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10219 (eval $ac_compile) 2>&5
10220 ac_status=$?
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; then
10223 case `/usr/bin/file conftest.$ac_objext` in
10224 *ELF-32*)
10225 HPUX_IA64_MODE="32"
10226 ;;
10227 *ELF-64*)
10228 HPUX_IA64_MODE="64"
10229 ;;
10230 esac
10231 fi
10232 rm -rf conftest*
10233 ;;
10234*-*-irix6*)
10235 # Find out which ABI we are using.
Reid Spencer502935f2004-12-22 05:56:56 +000010236 echo '#line 10236 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10238 (eval $ac_compile) 2>&5
10239 ac_status=$?
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; then
10242 if test "$lt_cv_prog_gnu_ld" = yes; then
10243 case `/usr/bin/file conftest.$ac_objext` in
10244 *32-bit*)
10245 LD="${LD-ld} -melf32bsmip"
10246 ;;
10247 *N32*)
10248 LD="${LD-ld} -melf32bmipn32"
10249 ;;
10250 *64-bit*)
10251 LD="${LD-ld} -melf64bmip"
10252 ;;
10253 esac
10254 else
10255 case `/usr/bin/file conftest.$ac_objext` in
10256 *32-bit*)
10257 LD="${LD-ld} -32"
10258 ;;
10259 *N32*)
10260 LD="${LD-ld} -n32"
10261 ;;
10262 *64-bit*)
10263 LD="${LD-ld} -64"
10264 ;;
10265 esac
10266 fi
10267 fi
10268 rm -rf conftest*
10269 ;;
10270
10271x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10272 # Find out which ABI we are using.
10273 echo 'int i;' > conftest.$ac_ext
10274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10275 (eval $ac_compile) 2>&5
10276 ac_status=$?
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; then
10279 case "`/usr/bin/file conftest.o`" in
10280 *32-bit*)
10281 case $host in
10282 x86_64-*linux*)
10283 LD="${LD-ld} -m elf_i386"
10284 ;;
10285 ppc64-*linux*|powerpc64-*linux*)
10286 LD="${LD-ld} -m elf32ppclinux"
10287 ;;
10288 s390x-*linux*)
10289 LD="${LD-ld} -m elf_s390"
10290 ;;
10291 sparc64-*linux*)
10292 LD="${LD-ld} -m elf32_sparc"
10293 ;;
10294 esac
10295 ;;
10296 *64-bit*)
10297 case $host in
10298 x86_64-*linux*)
10299 LD="${LD-ld} -m elf_x86_64"
10300 ;;
10301 ppc*-*linux*|powerpc*-*linux*)
10302 LD="${LD-ld} -m elf64ppc"
10303 ;;
10304 s390*-*linux*)
10305 LD="${LD-ld} -m elf64_s390"
10306 ;;
10307 sparc*-*linux*)
10308 LD="${LD-ld} -m elf64_sparc"
10309 ;;
10310 esac
10311 ;;
10312 esac
10313 fi
10314 rm -rf conftest*
10315 ;;
10316
10317*-*-sco3.2v5*)
10318 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10319 SAVE_CFLAGS="$CFLAGS"
10320 CFLAGS="$CFLAGS -belf"
10321 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10322echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10323if test "${lt_cv_cc_needs_belf+set}" = set; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10325else
10326 ac_ext=c
10327ac_cpp='$CPP $CPPFLAGS'
10328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10330ac_compiler_gnu=$ac_cv_c_compiler_gnu
10331
10332 cat >conftest.$ac_ext <<_ACEOF
10333/* confdefs.h. */
10334_ACEOF
10335cat confdefs.h >>conftest.$ac_ext
10336cat >>conftest.$ac_ext <<_ACEOF
10337/* end confdefs.h. */
10338
10339_ACEOF
10340rm -f conftest.$ac_objext conftest$ac_exeext
10341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10342 (eval $ac_link) 2>conftest.er1
10343 ac_status=$?
10344 grep -v '^ *+' conftest.er1 >conftest.err
10345 rm -f conftest.er1
10346 cat conftest.err >&5
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); } &&
10349 { ac_try='test -z "$ac_c_werror_flag"
10350 || test ! -s conftest.err'
10351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10352 (eval $ac_try) 2>&5
10353 ac_status=$?
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); }; } &&
10356 { ac_try='test -s conftest$ac_exeext'
10357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10358 (eval $ac_try) 2>&5
10359 ac_status=$?
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); }; }; then
10362 lt_cv_cc_needs_belf=yes
10363else
10364 echo "$as_me: failed program was:" >&5
10365sed 's/^/| /' conftest.$ac_ext >&5
10366
10367lt_cv_cc_needs_belf=no
10368fi
10369rm -f conftest.err conftest.$ac_objext \
10370 conftest$ac_exeext conftest.$ac_ext
10371 ac_ext=c
10372ac_cpp='$CPP $CPPFLAGS'
10373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10375ac_compiler_gnu=$ac_cv_c_compiler_gnu
10376
10377fi
10378echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10379echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10380 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10381 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10382 CFLAGS="$SAVE_CFLAGS"
10383 fi
10384 ;;
10385
10386esac
10387
10388need_locks="$enable_libtool_lock"
10389
10390
Reid Spencer2706f8c2004-09-19 23:53:36 +000010391
10392
10393if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10394 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10395 (test "X$CXX" != "Xg++"))) ; then
10396 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010397ac_cpp='$CXXCPP $CPPFLAGS'
10398ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10399ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10400ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10401echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10402echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10403if test -z "$CXXCPP"; then
10404 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010405 echo $ECHO_N "(cached) $ECHO_C" >&6
10406else
John Criswell47fdd832003-07-14 16:52:07 +000010407 # Double quotes because CXXCPP needs to be expanded
10408 for CXXCPP in "$CXX -E" "/lib/cpp"
10409 do
10410 ac_preproc_ok=false
10411for ac_cxx_preproc_warn_flag in '' yes
10412do
10413 # Use a header file that comes with gcc, so configuring glibc
10414 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10416 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010417 # On the NeXT, cc -E runs the code through the compiler's parser,
10418 # not just through cpp. "Syntax error" is here to catch this case.
10419 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010420/* confdefs.h. */
10421_ACEOF
10422cat confdefs.h >>conftest.$ac_ext
10423cat >>conftest.$ac_ext <<_ACEOF
10424/* end confdefs.h. */
10425#ifdef __STDC__
10426# include <limits.h>
10427#else
10428# include <assert.h>
10429#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010430 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010431_ACEOF
10432if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10434 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010435 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010436 rm -f conftest.er1
10437 cat conftest.err >&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } >/dev/null; then
10440 if test -s conftest.err; then
10441 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010442 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010443 else
John Criswell47fdd832003-07-14 16:52:07 +000010444 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010445 fi
John Criswell47fdd832003-07-14 16:52:07 +000010446else
10447 ac_cpp_err=yes
10448fi
10449if test -z "$ac_cpp_err"; then
10450 :
10451else
10452 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010453sed 's/^/| /' conftest.$ac_ext >&5
10454
John Criswell47fdd832003-07-14 16:52:07 +000010455 # Broken: fails on valid input.
10456continue
10457fi
10458rm -f conftest.err conftest.$ac_ext
10459
10460 # OK, works on sane cases. Now check whether non-existent headers
10461 # can be detected and how.
10462 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010463/* confdefs.h. */
10464_ACEOF
10465cat confdefs.h >>conftest.$ac_ext
10466cat >>conftest.$ac_ext <<_ACEOF
10467/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010468#include <ac_nonexistent.h>
10469_ACEOF
10470if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10472 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010473 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010474 rm -f conftest.er1
10475 cat conftest.err >&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } >/dev/null; then
10478 if test -s conftest.err; then
10479 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010480 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010481 else
10482 ac_cpp_err=
10483 fi
10484else
10485 ac_cpp_err=yes
10486fi
10487if test -z "$ac_cpp_err"; then
10488 # Broken: success on invalid input.
10489continue
10490else
10491 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010492sed 's/^/| /' conftest.$ac_ext >&5
10493
John Criswell47fdd832003-07-14 16:52:07 +000010494 # Passes both tests.
10495ac_preproc_ok=:
10496break
10497fi
10498rm -f conftest.err conftest.$ac_ext
10499
10500done
10501# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10502rm -f conftest.err conftest.$ac_ext
10503if $ac_preproc_ok; then
10504 break
John Criswell7a73b802003-06-30 21:59:07 +000010505fi
10506
John Criswell47fdd832003-07-14 16:52:07 +000010507 done
10508 ac_cv_prog_CXXCPP=$CXXCPP
10509
10510fi
10511 CXXCPP=$ac_cv_prog_CXXCPP
10512else
10513 ac_cv_prog_CXXCPP=$CXXCPP
10514fi
10515echo "$as_me:$LINENO: result: $CXXCPP" >&5
10516echo "${ECHO_T}$CXXCPP" >&6
10517ac_preproc_ok=false
10518for ac_cxx_preproc_warn_flag in '' yes
10519do
10520 # Use a header file that comes with gcc, so configuring glibc
10521 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010522 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10523 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010524 # On the NeXT, cc -E runs the code through the compiler's parser,
10525 # not just through cpp. "Syntax error" is here to catch this case.
10526 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010527/* confdefs.h. */
10528_ACEOF
10529cat confdefs.h >>conftest.$ac_ext
10530cat >>conftest.$ac_ext <<_ACEOF
10531/* end confdefs.h. */
10532#ifdef __STDC__
10533# include <limits.h>
10534#else
10535# include <assert.h>
10536#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010537 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010538_ACEOF
10539if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10541 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010542 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010543 rm -f conftest.er1
10544 cat conftest.err >&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } >/dev/null; then
10547 if test -s conftest.err; then
10548 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010549 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010550 else
10551 ac_cpp_err=
10552 fi
10553else
10554 ac_cpp_err=yes
10555fi
10556if test -z "$ac_cpp_err"; then
10557 :
10558else
10559 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010560sed 's/^/| /' conftest.$ac_ext >&5
10561
John Criswell47fdd832003-07-14 16:52:07 +000010562 # Broken: fails on valid input.
10563continue
10564fi
10565rm -f conftest.err conftest.$ac_ext
10566
10567 # OK, works on sane cases. Now check whether non-existent headers
10568 # can be detected and how.
10569 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010570/* confdefs.h. */
10571_ACEOF
10572cat confdefs.h >>conftest.$ac_ext
10573cat >>conftest.$ac_ext <<_ACEOF
10574/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010575#include <ac_nonexistent.h>
10576_ACEOF
10577if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10579 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010580 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010581 rm -f conftest.er1
10582 cat conftest.err >&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); } >/dev/null; then
10585 if test -s conftest.err; then
10586 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010587 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010588 else
10589 ac_cpp_err=
10590 fi
10591else
10592 ac_cpp_err=yes
10593fi
10594if test -z "$ac_cpp_err"; then
10595 # Broken: success on invalid input.
10596continue
10597else
10598 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010599sed 's/^/| /' conftest.$ac_ext >&5
10600
John Criswell47fdd832003-07-14 16:52:07 +000010601 # Passes both tests.
10602ac_preproc_ok=:
10603break
10604fi
10605rm -f conftest.err conftest.$ac_ext
10606
10607done
10608# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10609rm -f conftest.err conftest.$ac_ext
10610if $ac_preproc_ok; then
10611 :
10612else
John Criswell0c38eaf2003-09-10 15:17:25 +000010613 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10614See \`config.log' for more details." >&5
10615echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10616See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010617 { (exit 1); exit 1; }; }
10618fi
10619
10620ac_ext=cc
10621ac_cpp='$CXXCPP $CPPFLAGS'
10622ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10623ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10624ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10625
Reid Spencer2706f8c2004-09-19 23:53:36 +000010626fi
10627
John Criswell47fdd832003-07-14 16:52:07 +000010628
10629ac_ext=f
10630ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10631ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10632ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10633if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010634 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 +000010635 do
10636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10637set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10638echo "$as_me:$LINENO: checking for $ac_word" >&5
10639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10640if test "${ac_cv_prog_F77+set}" = set; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10642else
10643 if test -n "$F77"; then
10644 ac_cv_prog_F77="$F77" # Let the user override the test.
10645else
10646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10647for as_dir in $PATH
10648do
10649 IFS=$as_save_IFS
10650 test -z "$as_dir" && as_dir=.
10651 for ac_exec_ext in '' $ac_executable_extensions; do
10652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10653 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10655 break 2
10656 fi
10657done
10658done
10659
10660fi
10661fi
10662F77=$ac_cv_prog_F77
10663if test -n "$F77"; then
10664 echo "$as_me:$LINENO: result: $F77" >&5
10665echo "${ECHO_T}$F77" >&6
10666else
10667 echo "$as_me:$LINENO: result: no" >&5
10668echo "${ECHO_T}no" >&6
10669fi
10670
10671 test -n "$F77" && break
10672 done
10673fi
10674if test -z "$F77"; then
10675 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010676 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 +000010677do
10678 # Extract the first word of "$ac_prog", so it can be a program name with args.
10679set dummy $ac_prog; ac_word=$2
10680echo "$as_me:$LINENO: checking for $ac_word" >&5
10681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10682if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10683 echo $ECHO_N "(cached) $ECHO_C" >&6
10684else
10685 if test -n "$ac_ct_F77"; then
10686 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10687else
10688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10689for as_dir in $PATH
10690do
10691 IFS=$as_save_IFS
10692 test -z "$as_dir" && as_dir=.
10693 for ac_exec_ext in '' $ac_executable_extensions; do
10694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10695 ac_cv_prog_ac_ct_F77="$ac_prog"
10696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10697 break 2
10698 fi
10699done
10700done
10701
10702fi
10703fi
10704ac_ct_F77=$ac_cv_prog_ac_ct_F77
10705if test -n "$ac_ct_F77"; then
10706 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10707echo "${ECHO_T}$ac_ct_F77" >&6
10708else
10709 echo "$as_me:$LINENO: result: no" >&5
10710echo "${ECHO_T}no" >&6
10711fi
10712
10713 test -n "$ac_ct_F77" && break
10714done
10715
10716 F77=$ac_ct_F77
10717fi
10718
10719
10720# Provide some information about the compiler.
Reid Spencer502935f2004-12-22 05:56:56 +000010721echo "$as_me:10721:" \
John Criswell47fdd832003-07-14 16:52:07 +000010722 "checking for Fortran 77 compiler version" >&5
10723ac_compiler=`set X $ac_compile; echo $2`
10724{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10725 (eval $ac_compiler --version </dev/null >&5) 2>&5
10726 ac_status=$?
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }
10729{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10730 (eval $ac_compiler -v </dev/null >&5) 2>&5
10731 ac_status=$?
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); }
10734{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10735 (eval $ac_compiler -V </dev/null >&5) 2>&5
10736 ac_status=$?
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010739rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010740
10741# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010742# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010743ac_save_ext=$ac_ext
10744ac_ext=F
10745echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10746echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10747if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10748 echo $ECHO_N "(cached) $ECHO_C" >&6
10749else
10750 cat >conftest.$ac_ext <<_ACEOF
10751 program main
10752#ifndef __GNUC__
10753 choke me
10754#endif
10755
10756 end
10757_ACEOF
10758rm -f conftest.$ac_objext
10759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010760 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010761 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010762 grep -v '^ *+' conftest.er1 >conftest.err
10763 rm -f conftest.er1
10764 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010767 { ac_try='test -z "$ac_f77_werror_flag"
10768 || test ! -s conftest.err'
10769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770 (eval $ac_try) 2>&5
10771 ac_status=$?
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }; } &&
10774 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776 (eval $ac_try) 2>&5
10777 ac_status=$?
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; }; then
10780 ac_compiler_gnu=yes
10781else
10782 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010783sed 's/^/| /' conftest.$ac_ext >&5
10784
John Criswell47fdd832003-07-14 16:52:07 +000010785ac_compiler_gnu=no
10786fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010788ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10789
10790fi
10791echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10792echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10793ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000010794ac_test_FFLAGS=${FFLAGS+set}
10795ac_save_FFLAGS=$FFLAGS
10796FFLAGS=
10797echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10798echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10799if test "${ac_cv_prog_f77_g+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10801else
10802 FFLAGS=-g
10803cat >conftest.$ac_ext <<_ACEOF
10804 program main
10805
10806 end
10807_ACEOF
10808rm -f conftest.$ac_objext
10809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010810 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010811 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010812 grep -v '^ *+' conftest.er1 >conftest.err
10813 rm -f conftest.er1
10814 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010817 { ac_try='test -z "$ac_f77_werror_flag"
10818 || test ! -s conftest.err'
10819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10820 (eval $ac_try) 2>&5
10821 ac_status=$?
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; } &&
10824 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826 (eval $ac_try) 2>&5
10827 ac_status=$?
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; }; then
10830 ac_cv_prog_f77_g=yes
10831else
10832 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010833sed 's/^/| /' conftest.$ac_ext >&5
10834
John Criswell47fdd832003-07-14 16:52:07 +000010835ac_cv_prog_f77_g=no
10836fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010838
10839fi
10840echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10841echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10842if test "$ac_test_FFLAGS" = set; then
10843 FFLAGS=$ac_save_FFLAGS
10844elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010845 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010846 FFLAGS="-g -O2"
10847 else
10848 FFLAGS="-g"
10849 fi
10850else
Reid Spencer2706f8c2004-09-19 23:53:36 +000010851 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010852 FFLAGS="-O2"
10853 else
10854 FFLAGS=
10855 fi
10856fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010857
10858G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000010859ac_ext=c
10860ac_cpp='$CPP $CPPFLAGS'
10861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10863ac_compiler_gnu=$ac_cv_c_compiler_gnu
10864
10865
10866
10867# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10868
10869# find the maximum length of command line arguments
10870echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10871echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10872if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10874else
10875 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000010876 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000010877
10878 case $build_os in
10879 msdosdjgpp*)
10880 # On DJGPP, this test can blow up pretty badly due to problems in libc
10881 # (any single argument exceeding 2000 bytes causes a buffer overrun
10882 # during glob expansion). Even if it were fixed, the result of this
10883 # check would be larger than it should be.
10884 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10885 ;;
10886
10887 gnu*)
10888 # Under GNU Hurd, this test is not required because there is
10889 # no limit to the length of command line arguments.
10890 # Libtool will interpret -1 as no limit whatsoever
10891 lt_cv_sys_max_cmd_len=-1;
10892 ;;
10893
10894 cygwin* | mingw*)
10895 # On Win9x/ME, this test blows up -- it succeeds, but takes
10896 # about 5 minutes as the teststring grows exponentially.
10897 # Worse, since 9x/ME are not pre-emptively multitasking,
10898 # you end up with a "frozen" computer, even though with patience
10899 # the test eventually succeeds (with a max line length of 256k).
10900 # Instead, let's just punt: use the minimum linelength reported by
10901 # all of the supported platforms: 8192 (on NT/2K/XP).
10902 lt_cv_sys_max_cmd_len=8192;
10903 ;;
10904
Reid Spencer2706f8c2004-09-19 23:53:36 +000010905 amigaos*)
10906 # On AmigaOS with pdksh, this test takes hours, literally.
10907 # So we just punt and use a minimum line length of 8192.
10908 lt_cv_sys_max_cmd_len=8192;
10909 ;;
10910
10911 netbsd* | freebsd* | openbsd* | darwin* )
10912 # This has been around since 386BSD, at least. Likely further.
10913 if test -x /sbin/sysctl; then
10914 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10915 elif test -x /usr/sbin/sysctl; then
10916 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10917 else
10918 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10919 fi
10920 # And add a safety zone
10921 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10922 ;;
10923
John Criswell47fdd832003-07-14 16:52:07 +000010924 *)
10925 # If test is not a shell built-in, we'll probably end up computing a
10926 # maximum length that is only half of the actual maximum length, but
10927 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010928 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10929 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10930 = "XX$teststring") >/dev/null 2>&1 &&
10931 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000010932 lt_cv_sys_max_cmd_len=$new_result &&
10933 test $i != 17 # 1/2 MB should be enough
10934 do
10935 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000010936 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000010937 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000010938 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000010939 # Add a significant safety factor because C++ compilers can tack on massive
10940 # amounts of additional arguments before passing them to the linker.
10941 # It appears as though 1/2 is a usable value.
10942 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10943 ;;
10944 esac
10945
10946fi
10947
10948if test -n $lt_cv_sys_max_cmd_len ; then
10949 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10950echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10951else
10952 echo "$as_me:$LINENO: result: none" >&5
10953echo "${ECHO_T}none" >&6
10954fi
10955
10956
10957
10958
10959# Check for command to grab the raw symbol name followed by C symbol from nm.
10960echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10961echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10962if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10963 echo $ECHO_N "(cached) $ECHO_C" >&6
10964else
10965
10966# These are sane defaults that work on at least a few old systems.
10967# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10968
10969# Character class describing NM global symbol codes.
10970symcode='[BCDEGRST]'
10971
10972# Regexp to match symbols that can be accessed directly from C.
10973sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10974
10975# Transform the above into a raw symbol and a C symbol.
10976symxfrm='\1 \2\3 \3'
10977
10978# Transform an extracted symbol line into a proper C declaration
10979lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10980
10981# Transform an extracted symbol line into symbol name and symbol address
10982lt_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'"
10983
10984# Define system-specific variables.
10985case $host_os in
10986aix*)
10987 symcode='[BCDT]'
10988 ;;
10989cygwin* | mingw* | pw32*)
10990 symcode='[ABCDGISTW]'
10991 ;;
10992hpux*) # Its linker distinguishes data from code symbols
10993 if test "$host_cpu" = ia64; then
10994 symcode='[ABCDEGRST]'
10995 fi
10996 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10997 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'"
10998 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010999linux*)
11000 if test "$host_cpu" = ia64; then
11001 symcode='[ABCDGIRSTW]'
11002 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11003 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'"
11004 fi
11005 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011006irix* | nonstopux*)
11007 symcode='[BCDEGRST]'
11008 ;;
11009osf*)
11010 symcode='[BCDEGQRST]'
11011 ;;
11012solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011013 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000011014 ;;
11015sysv4)
11016 symcode='[DFNSTU]'
11017 ;;
11018esac
11019
11020# Handle CRLF in mingw tool chain
11021opt_cr=
11022case $build_os in
11023mingw*)
11024 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11025 ;;
11026esac
11027
11028# If we're using GNU nm, then use its standard symbol codes.
11029case `$NM -V 2>&1` in
11030*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011031 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000011032esac
11033
11034# Try without a prefix undercore, then with it.
11035for ac_symprfx in "" "_"; do
11036
11037 # Write the raw and C identifiers.
11038 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11039
11040 # Check to see that the pipe works correctly.
11041 pipe_works=no
11042
11043 rm -f conftest*
11044 cat > conftest.$ac_ext <<EOF
11045#ifdef __cplusplus
11046extern "C" {
11047#endif
11048char nm_test_var;
11049void nm_test_func(){}
11050#ifdef __cplusplus
11051}
11052#endif
11053int main(){nm_test_var='a';nm_test_func();return(0);}
11054EOF
11055
11056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11057 (eval $ac_compile) 2>&5
11058 ac_status=$?
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; then
11061 # Now try to grab the symbols.
11062 nlist=conftest.nm
11063 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11064 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11065 ac_status=$?
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } && test -s "$nlist"; then
11068 # Try sorting and uniquifying the output.
11069 if sort "$nlist" | uniq > "$nlist"T; then
11070 mv -f "$nlist"T "$nlist"
11071 else
11072 rm -f "$nlist"T
11073 fi
11074
11075 # Make sure that we snagged all the symbols we need.
11076 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11077 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11078 cat <<EOF > conftest.$ac_ext
11079#ifdef __cplusplus
11080extern "C" {
11081#endif
11082
11083EOF
11084 # Now generate the symbol file.
11085 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11086
11087 cat <<EOF >> conftest.$ac_ext
11088#if defined (__STDC__) && __STDC__
11089# define lt_ptr_t void *
11090#else
11091# define lt_ptr_t char *
11092# define const
11093#endif
11094
11095/* The mapping between symbol names and symbols. */
11096const struct {
11097 const char *name;
11098 lt_ptr_t address;
11099}
11100lt_preloaded_symbols[] =
11101{
11102EOF
11103 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11104 cat <<\EOF >> conftest.$ac_ext
11105 {0, (lt_ptr_t) 0}
11106};
11107
11108#ifdef __cplusplus
11109}
11110#endif
11111EOF
11112 # Now try linking the two files.
11113 mv conftest.$ac_objext conftstm.$ac_objext
11114 lt_save_LIBS="$LIBS"
11115 lt_save_CFLAGS="$CFLAGS"
11116 LIBS="conftstm.$ac_objext"
11117 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11119 (eval $ac_link) 2>&5
11120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11123 pipe_works=yes
11124 fi
11125 LIBS="$lt_save_LIBS"
11126 CFLAGS="$lt_save_CFLAGS"
11127 else
11128 echo "cannot find nm_test_func in $nlist" >&5
11129 fi
11130 else
11131 echo "cannot find nm_test_var in $nlist" >&5
11132 fi
11133 else
11134 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11135 fi
11136 else
11137 echo "$progname: failed program was:" >&5
11138 cat conftest.$ac_ext >&5
11139 fi
11140 rm -f conftest* conftst*
11141
11142 # Do not use the global_symbol_pipe unless it works.
11143 if test "$pipe_works" = yes; then
11144 break
11145 else
11146 lt_cv_sys_global_symbol_pipe=
11147 fi
11148done
11149
11150fi
11151
11152if test -z "$lt_cv_sys_global_symbol_pipe"; then
11153 lt_cv_sys_global_symbol_to_cdecl=
11154fi
11155if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11156 echo "$as_me:$LINENO: result: failed" >&5
11157echo "${ECHO_T}failed" >&6
11158else
11159 echo "$as_me:$LINENO: result: ok" >&5
11160echo "${ECHO_T}ok" >&6
11161fi
11162
11163echo "$as_me:$LINENO: checking for objdir" >&5
11164echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11165if test "${lt_cv_objdir+set}" = set; then
11166 echo $ECHO_N "(cached) $ECHO_C" >&6
11167else
11168 rm -f .libs 2>/dev/null
11169mkdir .libs 2>/dev/null
11170if test -d .libs; then
11171 lt_cv_objdir=.libs
11172else
11173 # MS-DOS does not allow filenames that begin with a dot.
11174 lt_cv_objdir=_libs
11175fi
11176rmdir .libs 2>/dev/null
11177fi
11178echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11179echo "${ECHO_T}$lt_cv_objdir" >&6
11180objdir=$lt_cv_objdir
11181
11182
11183
11184
11185
11186case $host_os in
11187aix3*)
11188 # AIX sometimes has problems with the GCC collect2 program. For some
11189 # reason, if we set the COLLECT_NAMES environment variable, the problems
11190 # vanish in a puff of smoke.
11191 if test "X${COLLECT_NAMES+set}" != Xset; then
11192 COLLECT_NAMES=
11193 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011194 fi
11195 ;;
11196esac
11197
John Criswell47fdd832003-07-14 16:52:07 +000011198# Sed substitution that helps us do robust quoting. It backslashifies
11199# metacharacters that are still active within double-quoted strings.
11200Xsed='sed -e s/^X//'
11201sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11202
11203# Same as above, but do not quote variable references.
11204double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11205
11206# Sed substitution to delay expansion of an escaped shell variable in a
11207# double_quote_subst'ed string.
11208delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11209
11210# Sed substitution to avoid accidental globbing in evaled expressions
11211no_glob_subst='s/\*/\\\*/g'
11212
11213# Constants:
11214rm="rm -f"
11215
11216# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011217default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011218can_build_shared=yes
11219
11220# All known linkers require a `.a' archive for static linking (except M$VC,
11221# which needs '.lib').
11222libext=a
11223ltmain="$ac_aux_dir/ltmain.sh"
11224ofile="$default_ofile"
11225with_gnu_ld="$lt_cv_prog_gnu_ld"
11226
11227if test -n "$ac_tool_prefix"; then
11228 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11229set dummy ${ac_tool_prefix}ar; ac_word=$2
11230echo "$as_me:$LINENO: checking for $ac_word" >&5
11231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11232if test "${ac_cv_prog_AR+set}" = set; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11234else
11235 if test -n "$AR"; then
11236 ac_cv_prog_AR="$AR" # Let the user override the test.
11237else
11238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11239for as_dir in $PATH
11240do
11241 IFS=$as_save_IFS
11242 test -z "$as_dir" && as_dir=.
11243 for ac_exec_ext in '' $ac_executable_extensions; do
11244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11245 ac_cv_prog_AR="${ac_tool_prefix}ar"
11246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11247 break 2
11248 fi
11249done
11250done
11251
11252fi
11253fi
11254AR=$ac_cv_prog_AR
11255if test -n "$AR"; then
11256 echo "$as_me:$LINENO: result: $AR" >&5
11257echo "${ECHO_T}$AR" >&6
11258else
11259 echo "$as_me:$LINENO: result: no" >&5
11260echo "${ECHO_T}no" >&6
11261fi
11262
11263fi
11264if test -z "$ac_cv_prog_AR"; then
11265 ac_ct_AR=$AR
11266 # Extract the first word of "ar", so it can be a program name with args.
11267set dummy ar; ac_word=$2
11268echo "$as_me:$LINENO: checking for $ac_word" >&5
11269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11270if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11272else
11273 if test -n "$ac_ct_AR"; then
11274 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11275else
11276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11277for as_dir in $PATH
11278do
11279 IFS=$as_save_IFS
11280 test -z "$as_dir" && as_dir=.
11281 for ac_exec_ext in '' $ac_executable_extensions; do
11282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11283 ac_cv_prog_ac_ct_AR="ar"
11284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11285 break 2
11286 fi
11287done
11288done
11289
11290 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11291fi
11292fi
11293ac_ct_AR=$ac_cv_prog_ac_ct_AR
11294if test -n "$ac_ct_AR"; then
11295 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11296echo "${ECHO_T}$ac_ct_AR" >&6
11297else
11298 echo "$as_me:$LINENO: result: no" >&5
11299echo "${ECHO_T}no" >&6
11300fi
11301
11302 AR=$ac_ct_AR
11303else
11304 AR="$ac_cv_prog_AR"
11305fi
11306
John Criswell7a73b802003-06-30 21:59:07 +000011307if test -n "$ac_tool_prefix"; then
11308 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11309set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11310echo "$as_me:$LINENO: checking for $ac_word" >&5
11311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11312if test "${ac_cv_prog_RANLIB+set}" = set; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11314else
11315 if test -n "$RANLIB"; then
11316 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11317else
11318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11319for as_dir in $PATH
11320do
11321 IFS=$as_save_IFS
11322 test -z "$as_dir" && as_dir=.
11323 for ac_exec_ext in '' $ac_executable_extensions; do
11324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11325 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11327 break 2
11328 fi
11329done
11330done
11331
11332fi
11333fi
11334RANLIB=$ac_cv_prog_RANLIB
11335if test -n "$RANLIB"; then
11336 echo "$as_me:$LINENO: result: $RANLIB" >&5
11337echo "${ECHO_T}$RANLIB" >&6
11338else
11339 echo "$as_me:$LINENO: result: no" >&5
11340echo "${ECHO_T}no" >&6
11341fi
11342
11343fi
11344if test -z "$ac_cv_prog_RANLIB"; then
11345 ac_ct_RANLIB=$RANLIB
11346 # Extract the first word of "ranlib", so it can be a program name with args.
11347set dummy ranlib; ac_word=$2
11348echo "$as_me:$LINENO: checking for $ac_word" >&5
11349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11350if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11351 echo $ECHO_N "(cached) $ECHO_C" >&6
11352else
11353 if test -n "$ac_ct_RANLIB"; then
11354 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11355else
11356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357for as_dir in $PATH
11358do
11359 IFS=$as_save_IFS
11360 test -z "$as_dir" && as_dir=.
11361 for ac_exec_ext in '' $ac_executable_extensions; do
11362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11363 ac_cv_prog_ac_ct_RANLIB="ranlib"
11364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11365 break 2
11366 fi
11367done
11368done
11369
11370 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11371fi
11372fi
11373ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11374if test -n "$ac_ct_RANLIB"; then
11375 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11376echo "${ECHO_T}$ac_ct_RANLIB" >&6
11377else
11378 echo "$as_me:$LINENO: result: no" >&5
11379echo "${ECHO_T}no" >&6
11380fi
11381
11382 RANLIB=$ac_ct_RANLIB
11383else
11384 RANLIB="$ac_cv_prog_RANLIB"
11385fi
11386
11387if test -n "$ac_tool_prefix"; then
11388 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11389set dummy ${ac_tool_prefix}strip; ac_word=$2
11390echo "$as_me:$LINENO: checking for $ac_word" >&5
11391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11392if test "${ac_cv_prog_STRIP+set}" = set; then
11393 echo $ECHO_N "(cached) $ECHO_C" >&6
11394else
11395 if test -n "$STRIP"; then
11396 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11397else
11398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11399for as_dir in $PATH
11400do
11401 IFS=$as_save_IFS
11402 test -z "$as_dir" && as_dir=.
11403 for ac_exec_ext in '' $ac_executable_extensions; do
11404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11405 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11407 break 2
11408 fi
11409done
11410done
11411
11412fi
11413fi
11414STRIP=$ac_cv_prog_STRIP
11415if test -n "$STRIP"; then
11416 echo "$as_me:$LINENO: result: $STRIP" >&5
11417echo "${ECHO_T}$STRIP" >&6
11418else
11419 echo "$as_me:$LINENO: result: no" >&5
11420echo "${ECHO_T}no" >&6
11421fi
11422
11423fi
11424if test -z "$ac_cv_prog_STRIP"; then
11425 ac_ct_STRIP=$STRIP
11426 # Extract the first word of "strip", so it can be a program name with args.
11427set dummy strip; ac_word=$2
11428echo "$as_me:$LINENO: checking for $ac_word" >&5
11429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11430if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11431 echo $ECHO_N "(cached) $ECHO_C" >&6
11432else
11433 if test -n "$ac_ct_STRIP"; then
11434 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11435else
11436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11437for as_dir in $PATH
11438do
11439 IFS=$as_save_IFS
11440 test -z "$as_dir" && as_dir=.
11441 for ac_exec_ext in '' $ac_executable_extensions; do
11442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11443 ac_cv_prog_ac_ct_STRIP="strip"
11444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11445 break 2
11446 fi
11447done
11448done
11449
11450 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11451fi
11452fi
11453ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11454if test -n "$ac_ct_STRIP"; then
11455 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11456echo "${ECHO_T}$ac_ct_STRIP" >&6
11457else
11458 echo "$as_me:$LINENO: result: no" >&5
11459echo "${ECHO_T}no" >&6
11460fi
11461
11462 STRIP=$ac_ct_STRIP
11463else
11464 STRIP="$ac_cv_prog_STRIP"
11465fi
11466
11467
John Criswell7a73b802003-06-30 21:59:07 +000011468old_CC="$CC"
11469old_CFLAGS="$CFLAGS"
11470
11471# Set sane defaults for various variables
11472test -z "$AR" && AR=ar
11473test -z "$AR_FLAGS" && AR_FLAGS=cru
11474test -z "$AS" && AS=as
11475test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011476test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011477test -z "$DLLTOOL" && DLLTOOL=dlltool
11478test -z "$LD" && LD=ld
11479test -z "$LN_S" && LN_S="ln -s"
11480test -z "$MAGIC_CMD" && MAGIC_CMD=file
11481test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011482test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011483test -z "$OBJDUMP" && OBJDUMP=objdump
11484test -z "$RANLIB" && RANLIB=:
11485test -z "$STRIP" && STRIP=:
11486test -z "$ac_objext" && ac_objext=o
11487
John Criswell7a73b802003-06-30 21:59:07 +000011488# Determine commands to create old-style static archives.
11489old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11490old_postinstall_cmds='chmod 644 $oldlib'
11491old_postuninstall_cmds=
11492
11493if test -n "$RANLIB"; then
11494 case $host_os in
11495 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011496 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011497 ;;
11498 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011499 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011500 ;;
11501 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011502 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011503fi
11504
Reid Spencer2706f8c2004-09-19 23:53:36 +000011505cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11506
John Criswell47fdd832003-07-14 16:52:07 +000011507# Only perform the check for file, if the check method requires it
11508case $deplibs_check_method in
11509file_magic*)
11510 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11511 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11512echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11513if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011515else
John Criswell47fdd832003-07-14 16:52:07 +000011516 case $MAGIC_CMD in
11517[\\/*] | ?:[\\/]*)
11518 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11519 ;;
11520*)
11521 lt_save_MAGIC_CMD="$MAGIC_CMD"
11522 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11523 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11524 for ac_dir in $ac_dummy; do
11525 IFS="$lt_save_ifs"
11526 test -z "$ac_dir" && ac_dir=.
11527 if test -f $ac_dir/${ac_tool_prefix}file; then
11528 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11529 if test -n "$file_magic_test_file"; then
11530 case $deplibs_check_method in
11531 "file_magic "*)
11532 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11533 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11534 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11535 $EGREP "$file_magic_regex" > /dev/null; then
11536 :
11537 else
11538 cat <<EOF 1>&2
11539
11540*** Warning: the command libtool uses to detect shared libraries,
11541*** $file_magic_cmd, produces output that libtool cannot recognize.
11542*** The result is that libtool may fail to recognize shared libraries
11543*** as such. This will affect the creation of libtool libraries that
11544*** depend on shared libraries, but programs linked with such libtool
11545*** libraries will work regardless of this problem. Nevertheless, you
11546*** may want to report the problem to your system manager and/or to
11547*** bug-libtool@gnu.org
11548
11549EOF
11550 fi ;;
11551 esac
11552 fi
11553 break
11554 fi
11555 done
11556 IFS="$lt_save_ifs"
11557 MAGIC_CMD="$lt_save_MAGIC_CMD"
11558 ;;
11559esac
John Criswell7a73b802003-06-30 21:59:07 +000011560fi
John Criswell7a73b802003-06-30 21:59:07 +000011561
John Criswell47fdd832003-07-14 16:52:07 +000011562MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11563if test -n "$MAGIC_CMD"; then
11564 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11565echo "${ECHO_T}$MAGIC_CMD" >&6
11566else
11567 echo "$as_me:$LINENO: result: no" >&5
11568echo "${ECHO_T}no" >&6
11569fi
John Criswell7a73b802003-06-30 21:59:07 +000011570
John Criswell47fdd832003-07-14 16:52:07 +000011571if test -z "$lt_cv_path_MAGIC_CMD"; then
11572 if test -n "$ac_tool_prefix"; then
11573 echo "$as_me:$LINENO: checking for file" >&5
11574echo $ECHO_N "checking for file... $ECHO_C" >&6
11575if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11577else
11578 case $MAGIC_CMD in
11579[\\/*] | ?:[\\/]*)
11580 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11581 ;;
11582*)
11583 lt_save_MAGIC_CMD="$MAGIC_CMD"
11584 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11585 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11586 for ac_dir in $ac_dummy; do
11587 IFS="$lt_save_ifs"
11588 test -z "$ac_dir" && ac_dir=.
11589 if test -f $ac_dir/file; then
11590 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11591 if test -n "$file_magic_test_file"; then
11592 case $deplibs_check_method in
11593 "file_magic "*)
11594 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11595 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11596 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11597 $EGREP "$file_magic_regex" > /dev/null; then
11598 :
11599 else
11600 cat <<EOF 1>&2
11601
11602*** Warning: the command libtool uses to detect shared libraries,
11603*** $file_magic_cmd, produces output that libtool cannot recognize.
11604*** The result is that libtool may fail to recognize shared libraries
11605*** as such. This will affect the creation of libtool libraries that
11606*** depend on shared libraries, but programs linked with such libtool
11607*** libraries will work regardless of this problem. Nevertheless, you
11608*** may want to report the problem to your system manager and/or to
11609*** bug-libtool@gnu.org
11610
11611EOF
11612 fi ;;
11613 esac
11614 fi
11615 break
11616 fi
11617 done
11618 IFS="$lt_save_ifs"
11619 MAGIC_CMD="$lt_save_MAGIC_CMD"
11620 ;;
11621esac
11622fi
11623
11624MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11625if test -n "$MAGIC_CMD"; then
11626 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11627echo "${ECHO_T}$MAGIC_CMD" >&6
11628else
11629 echo "$as_me:$LINENO: result: no" >&5
11630echo "${ECHO_T}no" >&6
11631fi
11632
11633 else
11634 MAGIC_CMD=:
11635 fi
11636fi
11637
11638 fi
11639 ;;
11640esac
11641
Reid Spencer17795972004-11-18 09:47:37 +000011642enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011643enable_win32_dll=no
11644
11645# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11646if test "${enable_libtool_lock+set}" = set; then
11647 enableval="$enable_libtool_lock"
11648
11649fi;
11650test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11651
John Criswell7a73b802003-06-30 21:59:07 +000011652
11653# Check whether --with-pic or --without-pic was given.
11654if test "${with_pic+set}" = set; then
11655 withval="$with_pic"
11656 pic_mode="$withval"
11657else
11658 pic_mode=default
11659fi;
11660test -z "$pic_mode" && pic_mode=default
11661
John Criswell47fdd832003-07-14 16:52:07 +000011662# Use C for the default configuration in the libtool script
11663tagname=
11664lt_save_CC="$CC"
11665ac_ext=c
11666ac_cpp='$CPP $CPPFLAGS'
11667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11669ac_compiler_gnu=$ac_cv_c_compiler_gnu
11670
11671
11672# Source file extension for C test sources.
11673ac_ext=c
11674
11675# Object file extension for compiled C test sources.
11676objext=o
11677objext=$objext
11678
11679# Code to be used in simple compile tests
11680lt_simple_compile_test_code="int some_variable = 0;\n"
11681
11682# Code to be used in simple link tests
11683lt_simple_link_test_code='int main(){return(0);}\n'
11684
11685
11686# If no C compiler was specified, use CC.
11687LTCC=${LTCC-"$CC"}
11688
11689# Allow CC to be a program name with arguments.
11690compiler=$CC
11691
11692
11693#
11694# Check for any special shared library compilation flags.
11695#
11696lt_prog_cc_shlib=
11697if test "$GCC" = no; then
11698 case $host_os in
11699 sco3.2v5*)
11700 lt_prog_cc_shlib='-belf'
11701 ;;
11702 esac
11703fi
11704if test -n "$lt_prog_cc_shlib"; then
11705 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11706echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11707 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11708 else
11709 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11710echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11711 lt_cv_prog_cc_can_build_shared=no
11712 fi
11713fi
11714
11715
11716#
11717# Check to make sure the static flag actually works.
11718#
11719echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11720echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11721if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011722 echo $ECHO_N "(cached) $ECHO_C" >&6
11723else
John Criswell47fdd832003-07-14 16:52:07 +000011724 lt_prog_compiler_static_works=no
11725 save_LDFLAGS="$LDFLAGS"
11726 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11727 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11728 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11729 # The compiler can only warn and ignore the option if not recognized
11730 # So say no if there are warnings
11731 if test -s conftest.err; then
11732 # Append any errors to the config.log.
11733 cat conftest.err 1>&5
11734 else
11735 lt_prog_compiler_static_works=yes
11736 fi
11737 fi
11738 $rm conftest*
11739 LDFLAGS="$save_LDFLAGS"
11740
11741fi
11742echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11743echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11744
11745if test x"$lt_prog_compiler_static_works" = xyes; then
11746 :
11747else
11748 lt_prog_compiler_static=
11749fi
11750
11751
11752
John Criswell47fdd832003-07-14 16:52:07 +000011753
11754lt_prog_compiler_no_builtin_flag=
11755
11756if test "$GCC" = yes; then
11757 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11758
Reid Spencer2706f8c2004-09-19 23:53:36 +000011759
11760echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011761echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11762if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11763 echo $ECHO_N "(cached) $ECHO_C" >&6
11764else
11765 lt_cv_prog_compiler_rtti_exceptions=no
11766 ac_outfile=conftest.$ac_objext
11767 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11768 lt_compiler_flag="-fno-rtti -fno-exceptions"
11769 # Insert the option either (1) after the last *FLAGS variable, or
11770 # (2) before a word containing "conftest.", or (3) at the end.
11771 # Note that $ac_compile itself does not contain backslashes and begins
11772 # with a dollar sign (not a hyphen), so the echo should work correctly.
11773 # The option is referenced via a variable to avoid confusing sed.
11774 lt_compile=`echo "$ac_compile" | $SED \
11775 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11777 -e 's:$: $lt_compiler_flag:'`
Reid Spencer502935f2004-12-22 05:56:56 +000011778 (eval echo "\"\$as_me:11778: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011779 (eval "$lt_compile" 2>conftest.err)
11780 ac_status=$?
11781 cat conftest.err >&5
Reid Spencer502935f2004-12-22 05:56:56 +000011782 echo "$as_me:11782: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011783 if (exit $ac_status) && test -s "$ac_outfile"; then
11784 # The compiler can only warn and ignore the option if not recognized
11785 # So say no if there are warnings
11786 if test ! -s conftest.err; then
11787 lt_cv_prog_compiler_rtti_exceptions=yes
11788 fi
11789 fi
11790 $rm conftest*
11791
11792fi
11793echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11794echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11795
11796if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11797 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11798else
11799 :
11800fi
11801
11802fi
11803
11804lt_prog_compiler_wl=
11805lt_prog_compiler_pic=
11806lt_prog_compiler_static=
11807
11808echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11809echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011810
11811 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000011812 lt_prog_compiler_wl='-Wl,'
11813 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000011814
11815 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011816 aix*)
11817 # All AIX code is PIC.
11818 if test "$host_cpu" = ia64; then
11819 # AIX 5 now supports IA64 processor
11820 lt_prog_compiler_static='-Bstatic'
11821 fi
John Criswell7a73b802003-06-30 21:59:07 +000011822 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011823
John Criswell7a73b802003-06-30 21:59:07 +000011824 amigaos*)
11825 # FIXME: we need at least 68020 code to build shared libraries, but
11826 # adding the `-m68020' flag to GCC prevents building anything better,
11827 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000011828 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000011829 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011830
11831 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000011832 # PIC is the default for these OSes.
11833 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011834
11835 mingw* | pw32* | os2*)
11836 # This hack is so that the source file can tell whether it is being
11837 # built for inclusion in a dll (and should export symbols for example).
11838 lt_prog_compiler_pic='-DDLL_EXPORT'
11839 ;;
11840
John Criswell7a73b802003-06-30 21:59:07 +000011841 darwin* | rhapsody*)
11842 # PIC is the default on this platform
11843 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000011844 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000011845 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011846
11847 msdosdjgpp*)
11848 # Just because we use GCC doesn't mean we suddenly get shared libraries
11849 # on systems that don't support them.
11850 lt_prog_compiler_can_build_shared=no
11851 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011852 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011853
John Criswell7a73b802003-06-30 21:59:07 +000011854 sysv4*MP*)
11855 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000011856 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000011857 fi
11858 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011859
11860 hpux*)
11861 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11862 # not for PA HP-UX.
11863 case "$host_cpu" in
11864 hppa*64*|ia64*)
11865 # +Z the default
11866 ;;
11867 *)
11868 lt_prog_compiler_pic='-fPIC'
11869 ;;
11870 esac
11871 ;;
11872
John Criswell7a73b802003-06-30 21:59:07 +000011873 *)
John Criswell47fdd832003-07-14 16:52:07 +000011874 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000011875 ;;
11876 esac
11877 else
John Criswell47fdd832003-07-14 16:52:07 +000011878 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000011879 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011880 aix*)
11881 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011882 if test "$host_cpu" = ia64; then
11883 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000011884 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011885 else
John Criswell47fdd832003-07-14 16:52:07 +000011886 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000011887 fi
11888 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011889 darwin*)
11890 # PIC is the default on this platform
11891 # Common symbols not allowed in MH_DYLIB files
11892 case "$cc_basename" in
11893 xlc*)
11894 lt_prog_compiler_pic='-qnocommon'
11895 lt_prog_compiler_wl='-Wl,'
11896 ;;
11897 esac
11898 ;;
John Criswell7a73b802003-06-30 21:59:07 +000011899
John Criswell47fdd832003-07-14 16:52:07 +000011900 mingw* | pw32* | os2*)
11901 # This hack is so that the source file can tell whether it is being
11902 # built for inclusion in a dll (and should export symbols for example).
11903 lt_prog_compiler_pic='-DDLL_EXPORT'
11904 ;;
11905
John Criswell7a73b802003-06-30 21:59:07 +000011906 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000011907 lt_prog_compiler_wl='-Wl,'
11908 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11909 # not for PA HP-UX.
11910 case "$host_cpu" in
11911 hppa*64*|ia64*)
11912 # +Z the default
11913 ;;
11914 *)
11915 lt_prog_compiler_pic='+Z'
11916 ;;
11917 esac
11918 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11919 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000011920 ;;
11921
John Criswell47fdd832003-07-14 16:52:07 +000011922 irix5* | irix6* | nonstopux*)
11923 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011924 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000011925 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011926 ;;
11927
11928 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000011929 lt_prog_compiler_pic='-KPIC'
11930 lt_prog_compiler_static='-Bstatic'
11931 ;;
11932
11933 linux*)
11934 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011935 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000011936 lt_prog_compiler_wl='-Wl,'
11937 lt_prog_compiler_pic='-KPIC'
11938 lt_prog_compiler_static='-static'
11939 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011940 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000011941 lt_prog_compiler_wl='-Wl,'
11942 # All Alpha code is PIC.
11943 lt_prog_compiler_static='-non_shared'
11944 ;;
11945 esac
John Criswell7a73b802003-06-30 21:59:07 +000011946 ;;
11947
11948 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000011949 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011950 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000011951 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011952 ;;
11953
11954 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000011955 lt_prog_compiler_pic='-Kpic'
11956 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000011957 ;;
11958
11959 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000011960 lt_prog_compiler_wl='-Wl,'
11961 lt_prog_compiler_pic='-KPIC'
11962 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011963 ;;
11964
11965 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000011966 lt_prog_compiler_wl='-Qoption ld '
11967 lt_prog_compiler_pic='-PIC'
11968 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011969 ;;
11970
11971 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000011972 lt_prog_compiler_wl='-Wl,'
11973 lt_prog_compiler_pic='-KPIC'
11974 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011975 ;;
11976
11977 sysv4*MP*)
11978 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000011979 lt_prog_compiler_pic='-Kconform_pic'
11980 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011981 fi
11982 ;;
11983
John Criswell47fdd832003-07-14 16:52:07 +000011984 uts4*)
11985 lt_prog_compiler_pic='-pic'
11986 lt_prog_compiler_static='-Bstatic'
11987 ;;
11988
John Criswell7a73b802003-06-30 21:59:07 +000011989 *)
John Criswell47fdd832003-07-14 16:52:07 +000011990 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011991 ;;
11992 esac
11993 fi
11994
John Criswell47fdd832003-07-14 16:52:07 +000011995echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11996echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011997
John Criswell47fdd832003-07-14 16:52:07 +000011998#
11999# Check to make sure the PIC flag actually works.
12000#
12001if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012002
12003echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012004echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12005if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012006 echo $ECHO_N "(cached) $ECHO_C" >&6
12007else
John Criswell47fdd832003-07-14 16:52:07 +000012008 lt_prog_compiler_pic_works=no
12009 ac_outfile=conftest.$ac_objext
12010 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12011 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12012 # Insert the option either (1) after the last *FLAGS variable, or
12013 # (2) before a word containing "conftest.", or (3) at the end.
12014 # Note that $ac_compile itself does not contain backslashes and begins
12015 # with a dollar sign (not a hyphen), so the echo should work correctly.
12016 # The option is referenced via a variable to avoid confusing sed.
12017 lt_compile=`echo "$ac_compile" | $SED \
12018 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12020 -e 's:$: $lt_compiler_flag:'`
Reid Spencer502935f2004-12-22 05:56:56 +000012021 (eval echo "\"\$as_me:12021: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012022 (eval "$lt_compile" 2>conftest.err)
12023 ac_status=$?
12024 cat conftest.err >&5
Reid Spencer502935f2004-12-22 05:56:56 +000012025 echo "$as_me:12025: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012026 if (exit $ac_status) && test -s "$ac_outfile"; then
12027 # The compiler can only warn and ignore the option if not recognized
12028 # So say no if there are warnings
12029 if test ! -s conftest.err; then
12030 lt_prog_compiler_pic_works=yes
12031 fi
12032 fi
12033 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012034
John Criswell47fdd832003-07-14 16:52:07 +000012035fi
12036echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12037echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012038
John Criswell47fdd832003-07-14 16:52:07 +000012039if test x"$lt_prog_compiler_pic_works" = xyes; then
12040 case $lt_prog_compiler_pic in
12041 "" | " "*) ;;
12042 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12043 esac
John Criswell7a73b802003-06-30 21:59:07 +000012044else
John Criswell47fdd832003-07-14 16:52:07 +000012045 lt_prog_compiler_pic=
12046 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012047fi
12048
John Criswell7a73b802003-06-30 21:59:07 +000012049fi
John Criswell47fdd832003-07-14 16:52:07 +000012050case "$host_os" in
12051 # For platforms which do not support PIC, -DPIC is meaningless:
12052 *djgpp*)
12053 lt_prog_compiler_pic=
12054 ;;
12055 *)
12056 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12057 ;;
12058esac
John Criswell7a73b802003-06-30 21:59:07 +000012059
John Criswell7a73b802003-06-30 21:59:07 +000012060echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12061echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012062if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012063 echo $ECHO_N "(cached) $ECHO_C" >&6
12064else
John Criswell47fdd832003-07-14 16:52:07 +000012065 lt_cv_prog_compiler_c_o=no
12066 $rm -r conftest 2>/dev/null
12067 mkdir conftest
12068 cd conftest
12069 mkdir out
12070 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012071
John Criswell47fdd832003-07-14 16:52:07 +000012072 lt_compiler_flag="-o out/conftest2.$ac_objext"
12073 # Insert the option either (1) after the last *FLAGS variable, or
12074 # (2) before a word containing "conftest.", or (3) at the end.
12075 # Note that $ac_compile itself does not contain backslashes and begins
12076 # with a dollar sign (not a hyphen), so the echo should work correctly.
12077 lt_compile=`echo "$ac_compile" | $SED \
12078 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12080 -e 's:$: $lt_compiler_flag:'`
Reid Spencer502935f2004-12-22 05:56:56 +000012081 (eval echo "\"\$as_me:12081: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012082 (eval "$lt_compile" 2>out/conftest.err)
12083 ac_status=$?
12084 cat out/conftest.err >&5
Reid Spencer502935f2004-12-22 05:56:56 +000012085 echo "$as_me:12085: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012086 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12087 then
12088 # The compiler can only warn and ignore the option if not recognized
12089 # So say no if there are warnings
12090 if test ! -s out/conftest.err; then
12091 lt_cv_prog_compiler_c_o=yes
12092 fi
12093 fi
12094 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012095 $rm conftest*
12096 # SGI C++ compiler will create directory out/ii_files/ for
12097 # template instantiation
12098 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12099 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012100 cd ..
12101 rmdir conftest
12102 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012103
12104fi
John Criswell47fdd832003-07-14 16:52:07 +000012105echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12106echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012107
John Criswell7a73b802003-06-30 21:59:07 +000012108
John Criswell7a73b802003-06-30 21:59:07 +000012109hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012110if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012111 # do not overwrite the value of need_locks provided by the user
12112 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12113echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12114 hard_links=yes
12115 $rm conftest*
12116 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12117 touch conftest.a
12118 ln conftest.a conftest.b 2>&5 || hard_links=no
12119 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12120 echo "$as_me:$LINENO: result: $hard_links" >&5
12121echo "${ECHO_T}$hard_links" >&6
12122 if test "$hard_links" = no; then
12123 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12124echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12125 need_locks=warn
12126 fi
12127else
12128 need_locks=no
12129fi
John Criswell7a73b802003-06-30 21:59:07 +000012130
John Criswell47fdd832003-07-14 16:52:07 +000012131echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12132echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12133
12134 runpath_var=
12135 allow_undefined_flag=
12136 enable_shared_with_static_runtimes=no
12137 archive_cmds=
12138 archive_expsym_cmds=
12139 old_archive_From_new_cmds=
12140 old_archive_from_expsyms_cmds=
12141 export_dynamic_flag_spec=
12142 whole_archive_flag_spec=
12143 thread_safe_flag_spec=
12144 hardcode_libdir_flag_spec=
12145 hardcode_libdir_flag_spec_ld=
12146 hardcode_libdir_separator=
12147 hardcode_direct=no
12148 hardcode_minus_L=no
12149 hardcode_shlibpath_var=unsupported
12150 link_all_deplibs=unknown
12151 hardcode_automatic=no
12152 module_cmds=
12153 module_expsym_cmds=
12154 always_export_symbols=no
12155 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12156 # include_expsyms should be a list of space-separated symbols to be *always*
12157 # included in the symbol list
12158 include_expsyms=
12159 # exclude_expsyms can be an extended regexp of symbols to exclude
12160 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12161 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12162 # as well as any symbol that contains `d'.
12163 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12164 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12165 # platforms (ab)use it in PIC code, but their linkers get confused if
12166 # the symbol is explicitly referenced. Since portable code cannot
12167 # rely on this symbol name, it's probably fine to never include it in
12168 # preloaded symbol tables.
12169 extract_expsyms_cmds=
12170
12171 case $host_os in
12172 cygwin* | mingw* | pw32*)
12173 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12174 # When not using gcc, we currently assume that we are using
12175 # Microsoft Visual C++.
12176 if test "$GCC" != yes; then
12177 with_gnu_ld=no
12178 fi
12179 ;;
12180 openbsd*)
12181 with_gnu_ld=no
12182 ;;
12183 esac
12184
12185 ld_shlibs=yes
12186 if test "$with_gnu_ld" = yes; then
12187 # If archive_cmds runs LD, not CC, wlarc should be empty
12188 wlarc='${wl}'
12189
12190 # See if GNU ld supports shared libraries.
12191 case $host_os in
12192 aix3* | aix4* | aix5*)
12193 # On AIX/PPC, the GNU linker is very broken
12194 if test "$host_cpu" != ia64; then
12195 ld_shlibs=no
12196 cat <<EOF 1>&2
12197
12198*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12199*** to be unable to reliably create shared libraries on AIX.
12200*** Therefore, libtool is disabling shared libraries support. If you
12201*** really care for shared libraries, you may want to modify your PATH
12202*** so that a non-GNU linker is found, and then restart.
12203
12204EOF
12205 fi
12206 ;;
12207
12208 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012209 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)'
John Criswell47fdd832003-07-14 16:52:07 +000012210 hardcode_libdir_flag_spec='-L$libdir'
12211 hardcode_minus_L=yes
12212
12213 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12214 # that the semantics of dynamic libraries on AmigaOS, at least up
12215 # to version 4, is to share data among multiple programs linked
12216 # with the same dynamic library. Since this doesn't match the
12217 # behavior of shared libraries on other platforms, we can't use
12218 # them.
12219 ld_shlibs=no
12220 ;;
12221
12222 beos*)
12223 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12224 allow_undefined_flag=unsupported
12225 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12226 # support --undefined. This deserves some investigation. FIXME
12227 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12228 else
12229 ld_shlibs=no
12230 fi
12231 ;;
12232
12233 cygwin* | mingw* | pw32*)
12234 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12235 # as there is no search path for DLLs.
12236 hardcode_libdir_flag_spec='-L$libdir'
12237 allow_undefined_flag=unsupported
12238 always_export_symbols=no
12239 enable_shared_with_static_runtimes=yes
12240 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12241
12242 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12244 # If the export-symbols file already is a .def file (1st line
12245 # is EXPORTS), use it as is; otherwise, prepend...
12246 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12247 cp $export_symbols $output_objdir/$soname.def;
12248 else
12249 echo EXPORTS > $output_objdir/$soname.def;
12250 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012251 fi~
12252 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
John Criswell47fdd832003-07-14 16:52:07 +000012253 else
12254 ld_shlibs=no
12255 fi
12256 ;;
12257
12258 netbsd*)
12259 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12260 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12261 wlarc=
12262 else
12263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12264 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12265 fi
12266 ;;
12267
12268 solaris* | sysv5*)
12269 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12270 ld_shlibs=no
12271 cat <<EOF 1>&2
12272
12273*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12274*** create shared libraries on Solaris systems. Therefore, libtool
12275*** is disabling shared libraries support. We urge you to upgrade GNU
12276*** binutils to release 2.9.1 or newer. Another option is to modify
12277*** your PATH or compiler configuration so that the native linker is
12278*** used, and then restart.
12279
12280EOF
12281 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12283 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12284 else
12285 ld_shlibs=no
12286 fi
12287 ;;
12288
12289 sunos4*)
12290 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12291 wlarc=
12292 hardcode_direct=yes
12293 hardcode_shlibpath_var=no
12294 ;;
12295
Reid Spencer2706f8c2004-09-19 23:53:36 +000012296 linux*)
12297 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12298 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12299 archive_cmds="$tmp_archive_cmds"
12300 supports_anon_versioning=no
12301 case `$LD -v 2>/dev/null` in
12302 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12303 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12304 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12305 *\ 2.11.*) ;; # other 2.11 versions
12306 *) supports_anon_versioning=yes ;;
12307 esac
12308 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012309 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12310cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12311$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012312 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12313 else
12314 archive_expsym_cmds="$tmp_archive_cmds"
12315 fi
12316 else
12317 ld_shlibs=no
12318 fi
12319 ;;
12320
John Criswell47fdd832003-07-14 16:52:07 +000012321 *)
12322 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12324 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12325 else
12326 ld_shlibs=no
12327 fi
12328 ;;
12329 esac
12330
12331 if test "$ld_shlibs" = yes; then
12332 runpath_var=LD_RUN_PATH
12333 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12334 export_dynamic_flag_spec='${wl}--export-dynamic'
12335 # ancient GNU ld didn't support --whole-archive et. al.
12336 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12337 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12338 else
12339 whole_archive_flag_spec=
12340 fi
12341 fi
12342 else
12343 # PORTME fill in a description of your system's linker (not GNU ld)
12344 case $host_os in
12345 aix3*)
12346 allow_undefined_flag=unsupported
12347 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012348 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'
John Criswell47fdd832003-07-14 16:52:07 +000012349 # Note: this linker hardcodes the directories in LIBPATH if there
12350 # are no directories specified by -L.
12351 hardcode_minus_L=yes
12352 if test "$GCC" = yes && test -z "$link_static_flag"; then
12353 # Neither direct hardcoding nor static linking is supported with a
12354 # broken collect2.
12355 hardcode_direct=unsupported
12356 fi
12357 ;;
12358
12359 aix4* | aix5*)
12360 if test "$host_cpu" = ia64; then
12361 # On IA64, the linker does run time linking by default, so we don't
12362 # have to do anything special.
12363 aix_use_runtimelinking=no
12364 exp_sym_flag='-Bexport'
12365 no_entry_flag=""
12366 else
12367 # If we're using GNU nm, then we don't want the "-C" option.
12368 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12369 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12370 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'
12371 else
12372 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'
12373 fi
12374 aix_use_runtimelinking=no
12375
12376 # Test if we are trying to use run time linking or normal
12377 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12378 # need to do runtime linking.
12379 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12380 for ld_flag in $LDFLAGS; do
12381 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12382 aix_use_runtimelinking=yes
12383 break
12384 fi
12385 done
12386 esac
12387
12388 exp_sym_flag='-bexport'
12389 no_entry_flag='-bnoentry'
12390 fi
12391
12392 # When large executables or shared objects are built, AIX ld can
12393 # have problems creating the table of contents. If linking a library
12394 # or program results in "error TOC overflow" add -mminimal-toc to
12395 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12396 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12397
12398 archive_cmds=''
12399 hardcode_direct=yes
12400 hardcode_libdir_separator=':'
12401 link_all_deplibs=yes
12402
12403 if test "$GCC" = yes; then
12404 case $host_os in aix4.012|aix4.012.*)
12405 # We only want to do this on AIX 4.2 and lower, the check
12406 # below for broken collect2 doesn't work under 4.3+
12407 collect2name=`${CC} -print-prog-name=collect2`
12408 if test -f "$collect2name" && \
12409 strings "$collect2name" | grep resolve_lib_name >/dev/null
12410 then
12411 # We have reworked collect2
12412 hardcode_direct=yes
12413 else
12414 # We have old collect2
12415 hardcode_direct=unsupported
12416 # It fails to find uninstalled libraries when the uninstalled
12417 # path is not listed in the libpath. Setting hardcode_minus_L
12418 # to unsupported forces relinking
12419 hardcode_minus_L=yes
12420 hardcode_libdir_flag_spec='-L$libdir'
12421 hardcode_libdir_separator=
12422 fi
12423 esac
12424 shared_flag='-shared'
12425 else
12426 # not using gcc
12427 if test "$host_cpu" = ia64; then
12428 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12429 # chokes on -Wl,-G. The following line is correct:
12430 shared_flag='-G'
12431 else
12432 if test "$aix_use_runtimelinking" = yes; then
12433 shared_flag='${wl}-G'
12434 else
12435 shared_flag='${wl}-bM:SRE'
12436 fi
12437 fi
12438 fi
12439
12440 # It seems that -bexpall does not export symbols beginning with
12441 # underscore (_), so it is better to generate a list of symbols to export.
12442 always_export_symbols=yes
12443 if test "$aix_use_runtimelinking" = yes; then
12444 # Warning - without using the other runtime loading flags (-brtl),
12445 # -berok will link without error, but may produce a broken library.
12446 allow_undefined_flag='-berok'
12447 # Determine the default libpath from the value encoded in an empty executable.
12448 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012449/* confdefs.h. */
12450_ACEOF
12451cat confdefs.h >>conftest.$ac_ext
12452cat >>conftest.$ac_ext <<_ACEOF
12453/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012454
John Criswell7a73b802003-06-30 21:59:07 +000012455int
12456main ()
12457{
John Criswell47fdd832003-07-14 16:52:07 +000012458
John Criswell7a73b802003-06-30 21:59:07 +000012459 ;
12460 return 0;
12461}
12462_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012463rm -f conftest.$ac_objext conftest$ac_exeext
12464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012465 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012466 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012467 grep -v '^ *+' conftest.er1 >conftest.err
12468 rm -f conftest.er1
12469 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012472 { ac_try='test -z "$ac_c_werror_flag"
12473 || test ! -s conftest.err'
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12476 ac_status=$?
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; } &&
12479 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12482 ac_status=$?
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012485
John Criswell47fdd832003-07-14 16:52:07 +000012486aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12487}'`
12488# Check for a 64-bit object if we didn't find anything.
12489if 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; }
12490}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012491else
12492 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012493sed 's/^/| /' conftest.$ac_ext >&5
12494
John Criswell7a73b802003-06-30 21:59:07 +000012495fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012496rm -f conftest.err conftest.$ac_objext \
12497 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012498if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012499
John Criswell47fdd832003-07-14 16:52:07 +000012500 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12501 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"
12502 else
12503 if test "$host_cpu" = ia64; then
12504 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12505 allow_undefined_flag="-z nodefs"
12506 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"
12507 else
12508 # Determine the default libpath from the value encoded in an empty executable.
12509 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012510/* confdefs.h. */
12511_ACEOF
12512cat confdefs.h >>conftest.$ac_ext
12513cat >>conftest.$ac_ext <<_ACEOF
12514/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012515
John Criswell47fdd832003-07-14 16:52:07 +000012516int
12517main ()
12518{
John Criswell7a73b802003-06-30 21:59:07 +000012519
John Criswell47fdd832003-07-14 16:52:07 +000012520 ;
12521 return 0;
12522}
12523_ACEOF
12524rm -f conftest.$ac_objext conftest$ac_exeext
12525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012526 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012527 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012528 grep -v '^ *+' conftest.er1 >conftest.err
12529 rm -f conftest.er1
12530 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012533 { ac_try='test -z "$ac_c_werror_flag"
12534 || test ! -s conftest.err'
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; } &&
12540 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012546
John Criswell47fdd832003-07-14 16:52:07 +000012547aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12548}'`
12549# Check for a 64-bit object if we didn't find anything.
12550if 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; }
12551}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012552else
John Criswell47fdd832003-07-14 16:52:07 +000012553 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012554sed 's/^/| /' conftest.$ac_ext >&5
12555
John Criswell47fdd832003-07-14 16:52:07 +000012556fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012557rm -f conftest.err conftest.$ac_objext \
12558 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012559if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012560
John Criswell47fdd832003-07-14 16:52:07 +000012561 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12562 # Warning - without using the other run time loading flags,
12563 # -berok will link without error, but may produce a broken library.
12564 no_undefined_flag=' ${wl}-bernotok'
12565 allow_undefined_flag=' ${wl}-berok'
12566 # -bexpall does not export symbols beginning with underscore (_)
12567 always_export_symbols=yes
12568 # Exported symbols can be pulled into shared objects from archives
12569 whole_archive_flag_spec=' '
12570 archive_cmds_need_lc=yes
12571 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012572 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 +000012573 fi
12574 fi
John Criswell7a73b802003-06-30 21:59:07 +000012575 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012576
12577 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012578 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)'
John Criswell47fdd832003-07-14 16:52:07 +000012579 hardcode_libdir_flag_spec='-L$libdir'
12580 hardcode_minus_L=yes
12581 # see comment about different semantics on the GNU ld section
12582 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012583 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012584
Reid Spencer2706f8c2004-09-19 23:53:36 +000012585 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012586 export_dynamic_flag_spec=-rdynamic
12587 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012588
John Criswell47fdd832003-07-14 16:52:07 +000012589 cygwin* | mingw* | pw32*)
12590 # When not using gcc, we currently assume that we are using
12591 # Microsoft Visual C++.
12592 # hardcode_libdir_flag_spec is actually meaningless, as there is
12593 # no search path for DLLs.
12594 hardcode_libdir_flag_spec=' '
12595 allow_undefined_flag=unsupported
12596 # Tell ltmain to make .lib files, not .a files.
12597 libext=lib
12598 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012599 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012600 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012601 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012602 # The linker will automatically build a .lib file if we build a DLL.
12603 old_archive_From_new_cmds='true'
12604 # FIXME: Should let the user specify the lib program.
12605 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12606 fix_srcfile_path='`cygpath -w "$srcfile"`'
12607 enable_shared_with_static_runtimes=yes
12608 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012609
John Criswell47fdd832003-07-14 16:52:07 +000012610 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012611 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012612 rhapsody* | darwin1.[012])
12613 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12614 ;;
12615 *) # Darwin 1.3 on
12616 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12617 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12618 else
12619 case ${MACOSX_DEPLOYMENT_TARGET} in
12620 10.[012])
12621 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12622 ;;
12623 10.*)
12624 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12625 ;;
12626 esac
12627 fi
12628 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012629 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012630 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012631 hardcode_direct=no
12632 hardcode_automatic=yes
12633 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012634 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012635 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012636 if test "$GCC" = yes ; then
12637 output_verbose_link_cmd='echo'
12638 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12639 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12640 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +000012641 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}'
12642 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012643 else
12644 case "$cc_basename" in
12645 xlc*)
12646 output_verbose_link_cmd='echo'
12647 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12648 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12649 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +000012650 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12651 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012652 ;;
12653 *)
12654 ld_shlibs=no
12655 ;;
12656 esac
John Criswell7a73b802003-06-30 21:59:07 +000012657 fi
John Criswell47fdd832003-07-14 16:52:07 +000012658 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012659
John Criswell47fdd832003-07-14 16:52:07 +000012660 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012662 hardcode_libdir_flag_spec='-L$libdir'
12663 hardcode_shlibpath_var=no
12664 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012665
John Criswell47fdd832003-07-14 16:52:07 +000012666 freebsd1*)
12667 ld_shlibs=no
12668 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012669
John Criswell47fdd832003-07-14 16:52:07 +000012670 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12671 # support. Future versions do this automatically, but an explicit c++rt0.o
12672 # does not break anything, and helps significantly (at the cost of a little
12673 # extra space).
12674 freebsd2.2*)
12675 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12676 hardcode_libdir_flag_spec='-R$libdir'
12677 hardcode_direct=yes
12678 hardcode_shlibpath_var=no
12679 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012680
John Criswell47fdd832003-07-14 16:52:07 +000012681 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12682 freebsd2*)
12683 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12684 hardcode_direct=yes
12685 hardcode_minus_L=yes
12686 hardcode_shlibpath_var=no
12687 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012688
John Criswell47fdd832003-07-14 16:52:07 +000012689 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012690 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012691 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12692 hardcode_libdir_flag_spec='-R$libdir'
12693 hardcode_direct=yes
12694 hardcode_shlibpath_var=no
12695 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012696
John Criswell47fdd832003-07-14 16:52:07 +000012697 hpux9*)
12698 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012699 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'
John Criswell47fdd832003-07-14 16:52:07 +000012700 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012701 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'
John Criswell47fdd832003-07-14 16:52:07 +000012702 fi
12703 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12704 hardcode_libdir_separator=:
12705 hardcode_direct=yes
12706
12707 # hardcode_minus_L: Not really in the search PATH,
12708 # but as the default location of the library.
12709 hardcode_minus_L=yes
12710 export_dynamic_flag_spec='${wl}-E'
12711 ;;
12712
12713 hpux10* | hpux11*)
12714 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12715 case "$host_cpu" in
12716 hppa*64*|ia64*)
12717 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12718 ;;
12719 *)
12720 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12721 ;;
12722 esac
12723 else
12724 case "$host_cpu" in
12725 hppa*64*|ia64*)
12726 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12727 ;;
12728 *)
12729 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12730 ;;
12731 esac
12732 fi
12733 if test "$with_gnu_ld" = no; then
12734 case "$host_cpu" in
12735 hppa*64*)
12736 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12737 hardcode_libdir_flag_spec_ld='+b $libdir'
12738 hardcode_libdir_separator=:
12739 hardcode_direct=no
12740 hardcode_shlibpath_var=no
12741 ;;
12742 ia64*)
12743 hardcode_libdir_flag_spec='-L$libdir'
12744 hardcode_direct=no
12745 hardcode_shlibpath_var=no
12746
12747 # hardcode_minus_L: Not really in the search PATH,
12748 # but as the default location of the library.
12749 hardcode_minus_L=yes
12750 ;;
12751 *)
12752 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12753 hardcode_libdir_separator=:
12754 hardcode_direct=yes
12755 export_dynamic_flag_spec='${wl}-E'
12756
12757 # hardcode_minus_L: Not really in the search PATH,
12758 # but as the default location of the library.
12759 hardcode_minus_L=yes
12760 ;;
12761 esac
12762 fi
12763 ;;
12764
12765 irix5* | irix6* | nonstopux*)
12766 if test "$GCC" = yes; then
12767 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'
12768 else
12769 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'
12770 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12771 fi
12772 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12773 hardcode_libdir_separator=:
12774 link_all_deplibs=yes
12775 ;;
12776
12777 netbsd*)
12778 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12779 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12780 else
12781 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12782 fi
12783 hardcode_libdir_flag_spec='-R$libdir'
12784 hardcode_direct=yes
12785 hardcode_shlibpath_var=no
12786 ;;
12787
12788 newsos6)
12789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12790 hardcode_direct=yes
12791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12792 hardcode_libdir_separator=:
12793 hardcode_shlibpath_var=no
12794 ;;
12795
12796 openbsd*)
12797 hardcode_direct=yes
12798 hardcode_shlibpath_var=no
12799 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12800 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012801 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000012802 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12803 export_dynamic_flag_spec='${wl}-E'
12804 else
12805 case $host_os in
12806 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12807 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12808 hardcode_libdir_flag_spec='-R$libdir'
12809 ;;
12810 *)
12811 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12812 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12813 ;;
12814 esac
12815 fi
12816 ;;
12817
12818 os2*)
12819 hardcode_libdir_flag_spec='-L$libdir'
12820 hardcode_minus_L=yes
12821 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000012822 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'
John Criswell47fdd832003-07-14 16:52:07 +000012823 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12824 ;;
12825
12826 osf3*)
12827 if test "$GCC" = yes; then
12828 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12829 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'
12830 else
12831 allow_undefined_flag=' -expect_unresolved \*'
12832 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'
12833 fi
12834 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12835 hardcode_libdir_separator=:
12836 ;;
12837
12838 osf4* | osf5*) # as osf3* with the addition of -msym flag
12839 if test "$GCC" = yes; then
12840 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12841 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'
12842 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12843 else
12844 allow_undefined_flag=' -expect_unresolved \*'
12845 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'
Reid Spencer177dbe22004-10-13 01:01:03 +000012846 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12847 $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'
12848
John Criswell47fdd832003-07-14 16:52:07 +000012849 # Both c and cxx compiler support -rpath directly
12850 hardcode_libdir_flag_spec='-rpath $libdir'
12851 fi
12852 hardcode_libdir_separator=:
12853 ;;
12854
12855 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000012856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12857 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000012858 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000012859 runpath_var=LD_RUN_PATH
12860 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000012861 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012862
John Criswell47fdd832003-07-14 16:52:07 +000012863 solaris*)
12864 no_undefined_flag=' -z text'
12865 if test "$GCC" = yes; then
12866 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012867 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12868 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000012869 else
12870 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012871 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12872 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000012873 fi
12874 hardcode_libdir_flag_spec='-R$libdir'
12875 hardcode_shlibpath_var=no
12876 case $host_os in
12877 solaris2.[0-5] | solaris2.[0-5].*) ;;
12878 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12879 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12880 esac
12881 link_all_deplibs=yes
12882 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012883
John Criswell47fdd832003-07-14 16:52:07 +000012884 sunos4*)
12885 if test "x$host_vendor" = xsequent; then
12886 # Use $CC to link under sequent, because it throws in some extra .o
12887 # files that make .init and .fini sections work.
12888 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12889 else
12890 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12891 fi
12892 hardcode_libdir_flag_spec='-L$libdir'
12893 hardcode_direct=yes
12894 hardcode_minus_L=yes
12895 hardcode_shlibpath_var=no
12896 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012897
John Criswell47fdd832003-07-14 16:52:07 +000012898 sysv4)
12899 case $host_vendor in
12900 sni)
12901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12902 hardcode_direct=yes # is this really true???
12903 ;;
12904 siemens)
12905 ## LD is ld it makes a PLAMLIB
12906 ## CC just makes a GrossModule.
12907 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12908 reload_cmds='$CC -r -o $output$reload_objs'
12909 hardcode_direct=no
12910 ;;
12911 motorola)
12912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12913 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12914 ;;
12915 esac
12916 runpath_var='LD_RUN_PATH'
12917 hardcode_shlibpath_var=no
12918 ;;
12919
12920 sysv4.3*)
12921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12922 hardcode_shlibpath_var=no
12923 export_dynamic_flag_spec='-Bexport'
12924 ;;
12925
12926 sysv4*MP*)
12927 if test -d /usr/nec; then
12928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12929 hardcode_shlibpath_var=no
12930 runpath_var=LD_RUN_PATH
12931 hardcode_runpath_var=yes
12932 ld_shlibs=yes
12933 fi
12934 ;;
12935
12936 sysv4.2uw2*)
12937 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12938 hardcode_direct=yes
12939 hardcode_minus_L=no
12940 hardcode_shlibpath_var=no
12941 hardcode_runpath_var=yes
12942 runpath_var=LD_RUN_PATH
12943 ;;
12944
12945 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12946 no_undefined_flag='${wl}-z ${wl}text'
12947 if test "$GCC" = yes; then
12948 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12949 else
12950 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12951 fi
12952 runpath_var='LD_RUN_PATH'
12953 hardcode_shlibpath_var=no
12954 ;;
12955
12956 sysv5*)
12957 no_undefined_flag=' -z text'
12958 # $CC -shared without GNU ld will not create a library from C++
12959 # object files and a static libstdc++, better avoid it by now
12960 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012961 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12962 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000012963 hardcode_libdir_flag_spec=
12964 hardcode_shlibpath_var=no
12965 runpath_var='LD_RUN_PATH'
12966 ;;
12967
12968 uts4*)
12969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12970 hardcode_libdir_flag_spec='-L$libdir'
12971 hardcode_shlibpath_var=no
12972 ;;
12973
12974 *)
12975 ld_shlibs=no
12976 ;;
12977 esac
12978 fi
12979
John Criswell7a73b802003-06-30 21:59:07 +000012980echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12981echo "${ECHO_T}$ld_shlibs" >&6
12982test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012983
John Criswell47fdd832003-07-14 16:52:07 +000012984variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12985if test "$GCC" = yes; then
12986 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12987fi
12988
12989#
12990# Do we need to explicitly link libc?
12991#
12992case "x$archive_cmds_need_lc" in
12993x|xyes)
12994 # Assume -lc should be added
12995 archive_cmds_need_lc=yes
12996
12997 if test "$enable_shared" = yes && test "$GCC" = yes; then
12998 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012999 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000013000 # FIXME: we may have to deal with multi-command sequences.
13001 ;;
13002 '$CC '*)
13003 # Test whether the compiler implicitly links with -lc since on some
13004 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13005 # to ld, don't add -lc before -lgcc.
13006 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13007echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13008 $rm conftest*
13009 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13010
13011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13012 (eval $ac_compile) 2>&5
13013 ac_status=$?
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); } 2>conftest.err; then
13016 soname=conftest
13017 lib=conftest
13018 libobjs=conftest.$ac_objext
13019 deplibs=
13020 wl=$lt_prog_compiler_wl
13021 compiler_flags=-v
13022 linker_flags=-v
13023 verstring=
13024 output_objdir=.
13025 libname=conftest
13026 lt_save_allow_undefined_flag=$allow_undefined_flag
13027 allow_undefined_flag=
13028 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13029 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13030 ac_status=$?
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); }
13033 then
13034 archive_cmds_need_lc=no
13035 else
13036 archive_cmds_need_lc=yes
13037 fi
13038 allow_undefined_flag=$lt_save_allow_undefined_flag
13039 else
13040 cat conftest.err 1>&5
13041 fi
13042 $rm conftest*
13043 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13044echo "${ECHO_T}$archive_cmds_need_lc" >&6
13045 ;;
13046 esac
13047 fi
13048 ;;
13049esac
13050
John Criswell7a73b802003-06-30 21:59:07 +000013051echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13052echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13053library_names_spec=
13054libname_spec='lib$name'
13055soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013056shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013057postinstall_cmds=
13058postuninstall_cmds=
13059finish_cmds=
13060finish_eval=
13061shlibpath_var=
13062shlibpath_overrides_runpath=unknown
13063version_type=none
13064dynamic_linker="$host_os ld.so"
13065sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013066if test "$GCC" = yes; then
13067 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13068 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13069 # if the path contains ";" then we assume it to be the separator
13070 # otherwise default to the standard path separator (i.e. ":") - it is
13071 # assumed that no part of a normal pathname contains ";" but that should
13072 # okay in the real world where ";" in dirpaths is itself problematic.
13073 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13074 else
13075 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13076 fi
13077else
13078 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13079fi
13080need_lib_prefix=unknown
13081hardcode_into_libs=no
13082
13083# when you set need_version to no, make sure it does not cause -set_version
13084# flags to be left without arguments
13085need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013086
13087case $host_os in
13088aix3*)
13089 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013090 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013091 shlibpath_var=LIBPATH
13092
John Criswell47fdd832003-07-14 16:52:07 +000013093 # AIX 3 has no versioning support, so we append a major version to the name.
13094 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013095 ;;
13096
13097aix4* | aix5*)
13098 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013099 need_lib_prefix=no
13100 need_version=no
13101 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013102 if test "$host_cpu" = ia64; then
13103 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013104 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013105 shlibpath_var=LD_LIBRARY_PATH
13106 else
13107 # With GCC up to 2.95.x, collect2 would create an import file
13108 # for dependence libraries. The import file would start with
13109 # the line `#! .'. This would cause the generated library to
13110 # depend on `.', always an invalid library. This was fixed in
13111 # development snapshots of GCC prior to 3.0.
13112 case $host_os in
13113 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013114 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13115 echo ' yes '
13116 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13117 :
13118 else
13119 can_build_shared=no
13120 fi
13121 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013122 esac
John Criswell47fdd832003-07-14 16:52:07 +000013123 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13124 # soname into executable. Probably we can add versioning support to
13125 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013126 if test "$aix_use_runtimelinking" = yes; then
13127 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13128 # instead of lib<name>.a to let people know that these are not
13129 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013131 else
13132 # We preserve .a as extension for shared libraries through AIX4.2
13133 # and later when we are not doing run time linking.
13134 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013135 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013136 fi
13137 shlibpath_var=LIBPATH
13138 fi
13139 ;;
13140
13141amigaos*)
13142 library_names_spec='$libname.ixlibrary $libname.a'
13143 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013144 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 +000013145 ;;
13146
13147beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013148 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013149 dynamic_linker="$host_os ld.so"
13150 shlibpath_var=LIBRARY_PATH
13151 ;;
13152
Reid Spencer2706f8c2004-09-19 23:53:36 +000013153bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013154 version_type=linux
13155 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13157 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013158 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13159 shlibpath_var=LD_LIBRARY_PATH
13160 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13161 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013162 # the default ld.so.conf also contains /usr/contrib/lib and
13163 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13164 # libtool to hard-code these into programs
13165 ;;
13166
13167cygwin* | mingw* | pw32*)
13168 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013169 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013170 need_version=no
13171 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013172
John Criswell7a73b802003-06-30 21:59:07 +000013173 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013174 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013175 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013176 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013177 postinstall_cmds='base_file=`basename \${file}`~
13178 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13179 dldir=$destdir/`dirname \$dlpath`~
13180 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013181 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013182 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13183 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013184 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013185 shlibpath_overrides_runpath=yes
13186
13187 case $host_os in
13188 cygwin*)
13189 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13190 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013191 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013192 ;;
13193 mingw*)
13194 # MinGW DLLs use traditional 'lib' prefix
13195 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13196 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13197 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13198 # It is most probably a Windows format PATH printed by
13199 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13200 # path with ; separators, and with drive letters. We can handle the
13201 # drive letters (cygwin fileutils understands them), so leave them,
13202 # especially as we might pass files found there to a mingw objdump,
13203 # which wouldn't understand a cygwinified path. Ahh.
13204 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13205 else
13206 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13207 fi
13208 ;;
13209 pw32*)
13210 # pw32 DLLs use 'pw' prefix rather than 'lib'
13211 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13212 ;;
13213 esac
John Criswell7a73b802003-06-30 21:59:07 +000013214 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013215
John Criswell7a73b802003-06-30 21:59:07 +000013216 *)
John Criswell47fdd832003-07-14 16:52:07 +000013217 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013218 ;;
13219 esac
13220 dynamic_linker='Win32 ld.exe'
13221 # FIXME: first we should search . and the directory the executable is in
13222 shlibpath_var=PATH
13223 ;;
13224
13225darwin* | rhapsody*)
13226 dynamic_linker="$host_os dyld"
13227 version_type=darwin
13228 need_lib_prefix=no
13229 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013230 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013231 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013232 shlibpath_overrides_runpath=yes
13233 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013234 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013235 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013236 if test "$GCC" = yes; then
13237 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"`
13238 else
13239 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013240 fi
13241 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13242 ;;
13243
13244dgux*)
13245 version_type=linux
13246 need_lib_prefix=no
13247 need_version=no
13248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13249 soname_spec='${libname}${release}${shared_ext}$major'
13250 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013251 ;;
13252
13253freebsd1*)
13254 dynamic_linker=no
13255 ;;
13256
Reid Spencer2706f8c2004-09-19 23:53:36 +000013257kfreebsd*-gnu)
13258 version_type=linux
13259 need_lib_prefix=no
13260 need_version=no
13261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13262 soname_spec='${libname}${release}${shared_ext}$major'
13263 shlibpath_var=LD_LIBRARY_PATH
13264 shlibpath_overrides_runpath=no
13265 hardcode_into_libs=yes
13266 dynamic_linker='GNU ld.so'
13267 ;;
13268
John Criswell7a73b802003-06-30 21:59:07 +000013269freebsd*)
13270 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13271 version_type=freebsd-$objformat
13272 case $version_type in
13273 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013275 need_version=no
13276 need_lib_prefix=no
13277 ;;
13278 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013279 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013280 need_version=yes
13281 ;;
13282 esac
13283 shlibpath_var=LD_LIBRARY_PATH
13284 case $host_os in
13285 freebsd2*)
13286 shlibpath_overrides_runpath=yes
13287 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013288 freebsd3.01* | freebsdelf3.01*)
13289 shlibpath_overrides_runpath=yes
13290 hardcode_into_libs=yes
13291 ;;
13292 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013293 shlibpath_overrides_runpath=no
13294 hardcode_into_libs=yes
13295 ;;
13296 esac
13297 ;;
13298
13299gnu*)
13300 version_type=linux
13301 need_lib_prefix=no
13302 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13304 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013305 shlibpath_var=LD_LIBRARY_PATH
13306 hardcode_into_libs=yes
13307 ;;
13308
13309hpux9* | hpux10* | hpux11*)
13310 # Give a soname corresponding to the major version so that dld.sl refuses to
13311 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013312 version_type=sunos
13313 need_lib_prefix=no
13314 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013315 case "$host_cpu" in
13316 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013317 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013318 hardcode_into_libs=yes
13319 dynamic_linker="$host_os dld.so"
13320 shlibpath_var=LD_LIBRARY_PATH
13321 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13323 soname_spec='${libname}${release}${shared_ext}$major'
13324 if test "X$HPUX_IA64_MODE" = X32; then
13325 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13326 else
13327 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13328 fi
13329 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13330 ;;
13331 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013332 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013333 hardcode_into_libs=yes
13334 dynamic_linker="$host_os dld.sl"
13335 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13336 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13338 soname_spec='${libname}${release}${shared_ext}$major'
13339 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13340 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13341 ;;
13342 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013343 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013344 dynamic_linker="$host_os dld.sl"
13345 shlibpath_var=SHLIB_PATH
13346 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13348 soname_spec='${libname}${release}${shared_ext}$major'
13349 ;;
13350 esac
John Criswell7a73b802003-06-30 21:59:07 +000013351 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13352 postinstall_cmds='chmod 555 $lib'
13353 ;;
13354
John Criswell47fdd832003-07-14 16:52:07 +000013355irix5* | irix6* | nonstopux*)
13356 case $host_os in
13357 nonstopux*) version_type=nonstopux ;;
13358 *)
13359 if test "$lt_cv_prog_gnu_ld" = yes; then
13360 version_type=linux
13361 else
13362 version_type=irix
13363 fi ;;
13364 esac
John Criswell7a73b802003-06-30 21:59:07 +000013365 need_lib_prefix=no
13366 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013367 soname_spec='${libname}${release}${shared_ext}$major'
13368 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 +000013369 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013370 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013371 libsuff= shlibsuff=
13372 ;;
13373 *)
13374 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013375 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13376 libsuff= shlibsuff= libmagic=32-bit;;
13377 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13378 libsuff=32 shlibsuff=N32 libmagic=N32;;
13379 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13380 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013381 *) libsuff= shlibsuff= libmagic=never-match;;
13382 esac
13383 ;;
13384 esac
13385 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13386 shlibpath_overrides_runpath=no
13387 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13388 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013389 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013390 ;;
13391
13392# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013393linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013394 dynamic_linker=no
13395 ;;
13396
13397# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013398linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013399 version_type=linux
13400 need_lib_prefix=no
13401 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13403 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013404 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13405 shlibpath_var=LD_LIBRARY_PATH
13406 shlibpath_overrides_runpath=no
13407 # This implies no fast_install, which is unacceptable.
13408 # Some rework will be needed to allow for fast_install
13409 # before this can be enabled.
13410 hardcode_into_libs=yes
13411
Reid Spencer2706f8c2004-09-19 23:53:36 +000013412 # Append ld.so.conf contents to the search path
13413 if test -f /etc/ld.so.conf; then
13414 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13415 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13416 fi
13417
John Criswell7a73b802003-06-30 21:59:07 +000013418 # We used to test for /lib/ld.so.1 and disable shared libraries on
13419 # powerpc, because MkLinux only supported shared libraries with the
13420 # GNU dynamic linker. Since this was broken with cross compilers,
13421 # most powerpc-linux boxes support dynamic linking these days and
13422 # people can always --disable-shared, the test was removed, and we
13423 # assume the GNU/Linux dynamic linker is in use.
13424 dynamic_linker='GNU/Linux ld.so'
13425 ;;
13426
Reid Spencer2706f8c2004-09-19 23:53:36 +000013427knetbsd*-gnu)
13428 version_type=linux
13429 need_lib_prefix=no
13430 need_version=no
13431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13432 soname_spec='${libname}${release}${shared_ext}$major'
13433 shlibpath_var=LD_LIBRARY_PATH
13434 shlibpath_overrides_runpath=no
13435 hardcode_into_libs=yes
13436 dynamic_linker='GNU ld.so'
13437 ;;
13438
John Criswell7a73b802003-06-30 21:59:07 +000013439netbsd*)
13440 version_type=sunos
13441 need_lib_prefix=no
13442 need_version=no
13443 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13446 dynamic_linker='NetBSD (a.out) ld.so'
13447 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013449 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013450 dynamic_linker='NetBSD ld.elf_so'
13451 fi
13452 shlibpath_var=LD_LIBRARY_PATH
13453 shlibpath_overrides_runpath=yes
13454 hardcode_into_libs=yes
13455 ;;
13456
13457newsos6)
13458 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13460 shlibpath_var=LD_LIBRARY_PATH
13461 shlibpath_overrides_runpath=yes
13462 ;;
13463
Reid Spencer2706f8c2004-09-19 23:53:36 +000013464nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013465 version_type=linux
13466 need_lib_prefix=no
13467 need_version=no
13468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13469 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013470 shlibpath_var=LD_LIBRARY_PATH
13471 shlibpath_overrides_runpath=yes
13472 ;;
13473
13474openbsd*)
13475 version_type=sunos
13476 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013477 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13480 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013481 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 +000013482 case $host_os in
13483 openbsd2.[89] | openbsd2.[89].*)
13484 shlibpath_overrides_runpath=no
13485 ;;
13486 *)
13487 shlibpath_overrides_runpath=yes
13488 ;;
13489 esac
John Criswell7a73b802003-06-30 21:59:07 +000013490 else
13491 shlibpath_overrides_runpath=yes
13492 fi
John Criswell7a73b802003-06-30 21:59:07 +000013493 ;;
13494
13495os2*)
13496 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013497 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013498 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013499 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013500 dynamic_linker='OS/2 ld.exe'
13501 shlibpath_var=LIBPATH
13502 ;;
13503
13504osf3* | osf4* | osf5*)
13505 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013506 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013507 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013508 soname_spec='${libname}${release}${shared_ext}$major'
13509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013510 shlibpath_var=LD_LIBRARY_PATH
13511 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13512 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13513 ;;
13514
13515sco3.2v5*)
13516 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013517 soname_spec='${libname}${release}${shared_ext}$major'
13518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013519 shlibpath_var=LD_LIBRARY_PATH
13520 ;;
13521
13522solaris*)
13523 version_type=linux
13524 need_lib_prefix=no
13525 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13527 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013528 shlibpath_var=LD_LIBRARY_PATH
13529 shlibpath_overrides_runpath=yes
13530 hardcode_into_libs=yes
13531 # ldd complains unless libraries are executable
13532 postinstall_cmds='chmod +x $lib'
13533 ;;
13534
13535sunos4*)
13536 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013538 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13539 shlibpath_var=LD_LIBRARY_PATH
13540 shlibpath_overrides_runpath=yes
13541 if test "$with_gnu_ld" = yes; then
13542 need_lib_prefix=no
13543 fi
13544 need_version=yes
13545 ;;
13546
13547sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13548 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13550 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013551 shlibpath_var=LD_LIBRARY_PATH
13552 case $host_vendor in
13553 sni)
13554 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013555 need_lib_prefix=no
13556 export_dynamic_flag_spec='${wl}-Blargedynsym'
13557 runpath_var=LD_RUN_PATH
13558 ;;
13559 siemens)
13560 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013561 ;;
13562 motorola)
13563 need_lib_prefix=no
13564 need_version=no
13565 shlibpath_overrides_runpath=no
13566 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13567 ;;
13568 esac
13569 ;;
13570
John Criswell7a73b802003-06-30 21:59:07 +000013571sysv4*MP*)
13572 if test -d /usr/nec ;then
13573 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013574 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13575 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013576 shlibpath_var=LD_LIBRARY_PATH
13577 fi
13578 ;;
13579
John Criswell47fdd832003-07-14 16:52:07 +000013580uts4*)
13581 version_type=linux
13582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13583 soname_spec='${libname}${release}${shared_ext}$major'
13584 shlibpath_var=LD_LIBRARY_PATH
13585 ;;
13586
John Criswell7a73b802003-06-30 21:59:07 +000013587*)
13588 dynamic_linker=no
13589 ;;
13590esac
13591echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13592echo "${ECHO_T}$dynamic_linker" >&6
13593test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013594
Reid Spencer2706f8c2004-09-19 23:53:36 +000013595echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13596echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13597hardcode_action=
13598if test -n "$hardcode_libdir_flag_spec" || \
13599 test -n "$runpath_var" || \
13600 test "X$hardcode_automatic" = "Xyes" ; then
13601
13602 # We can hardcode non-existant directories.
13603 if test "$hardcode_direct" != no &&
13604 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13605 # have to relink, otherwise we might link with an installed library
13606 # when we should be linking with a yet-to-be-installed one
13607 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13608 test "$hardcode_minus_L" != no; then
13609 # Linking always hardcodes the temporary library directory.
13610 hardcode_action=relink
13611 else
13612 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13613 hardcode_action=immediate
13614 fi
13615else
13616 # We cannot hardcode anything, or else we can only hardcode existing
13617 # directories.
13618 hardcode_action=unsupported
13619fi
13620echo "$as_me:$LINENO: result: $hardcode_action" >&5
13621echo "${ECHO_T}$hardcode_action" >&6
13622
13623if test "$hardcode_action" = relink; then
13624 # Fast installation is not supported
13625 enable_fast_install=no
13626elif test "$shlibpath_overrides_runpath" = yes ||
13627 test "$enable_shared" = no; then
13628 # Fast installation is not necessary
13629 enable_fast_install=needless
13630fi
13631
13632striplib=
13633old_striplib=
13634echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13635echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13636if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13637 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13638 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13639 echo "$as_me:$LINENO: result: yes" >&5
13640echo "${ECHO_T}yes" >&6
13641else
13642# FIXME - insert some real tests, host_os isn't really good enough
13643 case $host_os in
13644 darwin*)
13645 if test -n "$STRIP" ; then
13646 striplib="$STRIP -x"
13647 echo "$as_me:$LINENO: result: yes" >&5
13648echo "${ECHO_T}yes" >&6
13649 else
13650 echo "$as_me:$LINENO: result: no" >&5
13651echo "${ECHO_T}no" >&6
13652fi
13653 ;;
13654 *)
13655 echo "$as_me:$LINENO: result: no" >&5
13656echo "${ECHO_T}no" >&6
13657 ;;
13658 esac
13659fi
13660
John Criswell7a73b802003-06-30 21:59:07 +000013661if test "x$enable_dlopen" != xyes; then
13662 enable_dlopen=unknown
13663 enable_dlopen_self=unknown
13664 enable_dlopen_self_static=unknown
13665else
13666 lt_cv_dlopen=no
13667 lt_cv_dlopen_libs=
13668
13669 case $host_os in
13670 beos*)
13671 lt_cv_dlopen="load_add_on"
13672 lt_cv_dlopen_libs=
13673 lt_cv_dlopen_self=yes
13674 ;;
13675
John Criswell47fdd832003-07-14 16:52:07 +000013676 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013677 lt_cv_dlopen="LoadLibrary"
13678 lt_cv_dlopen_libs=
13679 ;;
13680
John Criswell47fdd832003-07-14 16:52:07 +000013681 cygwin*)
13682 lt_cv_dlopen="dlopen"
13683 lt_cv_dlopen_libs=
13684 ;;
13685
13686 darwin*)
13687 # if libdl is installed we need to link against it
13688 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13689echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13690if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13691 echo $ECHO_N "(cached) $ECHO_C" >&6
13692else
13693 ac_check_lib_save_LIBS=$LIBS
13694LIBS="-ldl $LIBS"
13695cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013696/* confdefs.h. */
13697_ACEOF
13698cat confdefs.h >>conftest.$ac_ext
13699cat >>conftest.$ac_ext <<_ACEOF
13700/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013701
13702/* Override any gcc2 internal prototype to avoid an error. */
13703#ifdef __cplusplus
13704extern "C"
13705#endif
13706/* We use char because int might match the return type of a gcc2
13707 builtin and then its argument prototype would still apply. */
13708char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013709int
13710main ()
13711{
13712dlopen ();
13713 ;
13714 return 0;
13715}
13716_ACEOF
13717rm -f conftest.$ac_objext conftest$ac_exeext
13718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013719 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013720 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013721 grep -v '^ *+' conftest.er1 >conftest.err
13722 rm -f conftest.er1
13723 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013726 { ac_try='test -z "$ac_c_werror_flag"
13727 || test ! -s conftest.err'
13728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729 (eval $ac_try) 2>&5
13730 ac_status=$?
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; } &&
13733 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735 (eval $ac_try) 2>&5
13736 ac_status=$?
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; }; then
13739 ac_cv_lib_dl_dlopen=yes
13740else
13741 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013742sed 's/^/| /' conftest.$ac_ext >&5
13743
John Criswell47fdd832003-07-14 16:52:07 +000013744ac_cv_lib_dl_dlopen=no
13745fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013746rm -f conftest.err conftest.$ac_objext \
13747 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013748LIBS=$ac_check_lib_save_LIBS
13749fi
13750echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13751echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13752if test $ac_cv_lib_dl_dlopen = yes; then
13753 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13754else
13755
13756 lt_cv_dlopen="dyld"
13757 lt_cv_dlopen_libs=
13758 lt_cv_dlopen_self=yes
13759
13760fi
13761
13762 ;;
13763
John Criswell7a73b802003-06-30 21:59:07 +000013764 *)
13765 echo "$as_me:$LINENO: checking for shl_load" >&5
13766echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13767if test "${ac_cv_func_shl_load+set}" = set; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13769else
13770 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013771/* confdefs.h. */
13772_ACEOF
13773cat confdefs.h >>conftest.$ac_ext
13774cat >>conftest.$ac_ext <<_ACEOF
13775/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013776/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13778#define shl_load innocuous_shl_load
13779
John Criswell7a73b802003-06-30 21:59:07 +000013780/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013781 which can conflict with char shl_load (); below.
13782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13783 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013784
John Criswell0c38eaf2003-09-10 15:17:25 +000013785#ifdef __STDC__
13786# include <limits.h>
13787#else
13788# include <assert.h>
13789#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013790
13791#undef shl_load
13792
John Criswell7a73b802003-06-30 21:59:07 +000013793/* Override any gcc2 internal prototype to avoid an error. */
13794#ifdef __cplusplus
13795extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013796{
John Criswell7a73b802003-06-30 21:59:07 +000013797#endif
13798/* We use char because int might match the return type of a gcc2
13799 builtin and then its argument prototype would still apply. */
13800char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013801/* The GNU C library defines this for functions which it implements
13802 to always fail with ENOSYS. Some functions are actually named
13803 something starting with __ and the normal name is an alias. */
13804#if defined (__stub_shl_load) || defined (__stub___shl_load)
13805choke me
13806#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013807char (*f) () = shl_load;
13808#endif
13809#ifdef __cplusplus
13810}
John Criswell7a73b802003-06-30 21:59:07 +000013811#endif
13812
John Criswell0c38eaf2003-09-10 15:17:25 +000013813int
13814main ()
13815{
13816return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000013817 ;
13818 return 0;
13819}
13820_ACEOF
13821rm -f conftest.$ac_objext conftest$ac_exeext
13822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013823 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013824 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013825 grep -v '^ *+' conftest.er1 >conftest.err
13826 rm -f conftest.er1
13827 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013830 { ac_try='test -z "$ac_c_werror_flag"
13831 || test ! -s conftest.err'
13832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833 (eval $ac_try) 2>&5
13834 ac_status=$?
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; } &&
13837 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13840 ac_status=$?
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; }; then
13843 ac_cv_func_shl_load=yes
13844else
13845 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013846sed 's/^/| /' conftest.$ac_ext >&5
13847
John Criswell7a73b802003-06-30 21:59:07 +000013848ac_cv_func_shl_load=no
13849fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013850rm -f conftest.err conftest.$ac_objext \
13851 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013852fi
13853echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13854echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13855if test $ac_cv_func_shl_load = yes; then
13856 lt_cv_dlopen="shl_load"
13857else
13858 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13859echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13860if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13861 echo $ECHO_N "(cached) $ECHO_C" >&6
13862else
13863 ac_check_lib_save_LIBS=$LIBS
13864LIBS="-ldld $LIBS"
13865cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013866/* confdefs.h. */
13867_ACEOF
13868cat confdefs.h >>conftest.$ac_ext
13869cat >>conftest.$ac_ext <<_ACEOF
13870/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013871
13872/* Override any gcc2 internal prototype to avoid an error. */
13873#ifdef __cplusplus
13874extern "C"
13875#endif
13876/* We use char because int might match the return type of a gcc2
13877 builtin and then its argument prototype would still apply. */
13878char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013879int
13880main ()
13881{
13882shl_load ();
13883 ;
13884 return 0;
13885}
13886_ACEOF
13887rm -f conftest.$ac_objext conftest$ac_exeext
13888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013889 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013890 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013891 grep -v '^ *+' conftest.er1 >conftest.err
13892 rm -f conftest.er1
13893 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013896 { ac_try='test -z "$ac_c_werror_flag"
13897 || test ! -s conftest.err'
13898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13899 (eval $ac_try) 2>&5
13900 ac_status=$?
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); }; } &&
13903 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13906 ac_status=$?
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; }; then
13909 ac_cv_lib_dld_shl_load=yes
13910else
13911 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013912sed 's/^/| /' conftest.$ac_ext >&5
13913
John Criswell7a73b802003-06-30 21:59:07 +000013914ac_cv_lib_dld_shl_load=no
13915fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013916rm -f conftest.err conftest.$ac_objext \
13917 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013918LIBS=$ac_check_lib_save_LIBS
13919fi
13920echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13921echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13922if test $ac_cv_lib_dld_shl_load = yes; then
13923 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13924else
13925 echo "$as_me:$LINENO: checking for dlopen" >&5
13926echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13927if test "${ac_cv_func_dlopen+set}" = set; then
13928 echo $ECHO_N "(cached) $ECHO_C" >&6
13929else
13930 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013931/* confdefs.h. */
13932_ACEOF
13933cat confdefs.h >>conftest.$ac_ext
13934cat >>conftest.$ac_ext <<_ACEOF
13935/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013936/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13938#define dlopen innocuous_dlopen
13939
John Criswell7a73b802003-06-30 21:59:07 +000013940/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013941 which can conflict with char dlopen (); below.
13942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13943 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013944
John Criswell0c38eaf2003-09-10 15:17:25 +000013945#ifdef __STDC__
13946# include <limits.h>
13947#else
13948# include <assert.h>
13949#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013950
13951#undef dlopen
13952
John Criswell7a73b802003-06-30 21:59:07 +000013953/* Override any gcc2 internal prototype to avoid an error. */
13954#ifdef __cplusplus
13955extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013956{
John Criswell7a73b802003-06-30 21:59:07 +000013957#endif
13958/* We use char because int might match the return type of a gcc2
13959 builtin and then its argument prototype would still apply. */
13960char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013961/* The GNU C library defines this for functions which it implements
13962 to always fail with ENOSYS. Some functions are actually named
13963 something starting with __ and the normal name is an alias. */
13964#if defined (__stub_dlopen) || defined (__stub___dlopen)
13965choke me
13966#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013967char (*f) () = dlopen;
13968#endif
13969#ifdef __cplusplus
13970}
John Criswell7a73b802003-06-30 21:59:07 +000013971#endif
13972
John Criswell0c38eaf2003-09-10 15:17:25 +000013973int
13974main ()
13975{
13976return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000013977 ;
13978 return 0;
13979}
13980_ACEOF
13981rm -f conftest.$ac_objext conftest$ac_exeext
13982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013983 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013984 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013985 grep -v '^ *+' conftest.er1 >conftest.err
13986 rm -f conftest.er1
13987 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013990 { ac_try='test -z "$ac_c_werror_flag"
13991 || test ! -s conftest.err'
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993 (eval $ac_try) 2>&5
13994 ac_status=$?
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; } &&
13997 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14000 ac_status=$?
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; }; then
14003 ac_cv_func_dlopen=yes
14004else
14005 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014006sed 's/^/| /' conftest.$ac_ext >&5
14007
John Criswell7a73b802003-06-30 21:59:07 +000014008ac_cv_func_dlopen=no
14009fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014010rm -f conftest.err conftest.$ac_objext \
14011 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014012fi
14013echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14014echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14015if test $ac_cv_func_dlopen = yes; then
14016 lt_cv_dlopen="dlopen"
14017else
14018 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14019echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14020if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14021 echo $ECHO_N "(cached) $ECHO_C" >&6
14022else
14023 ac_check_lib_save_LIBS=$LIBS
14024LIBS="-ldl $LIBS"
14025cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014026/* confdefs.h. */
14027_ACEOF
14028cat confdefs.h >>conftest.$ac_ext
14029cat >>conftest.$ac_ext <<_ACEOF
14030/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014031
14032/* Override any gcc2 internal prototype to avoid an error. */
14033#ifdef __cplusplus
14034extern "C"
14035#endif
14036/* We use char because int might match the return type of a gcc2
14037 builtin and then its argument prototype would still apply. */
14038char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014039int
14040main ()
14041{
14042dlopen ();
14043 ;
14044 return 0;
14045}
14046_ACEOF
14047rm -f conftest.$ac_objext conftest$ac_exeext
14048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014049 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014050 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014051 grep -v '^ *+' conftest.er1 >conftest.err
14052 rm -f conftest.er1
14053 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014056 { ac_try='test -z "$ac_c_werror_flag"
14057 || test ! -s conftest.err'
14058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059 (eval $ac_try) 2>&5
14060 ac_status=$?
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; } &&
14063 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14065 (eval $ac_try) 2>&5
14066 ac_status=$?
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); }; }; then
14069 ac_cv_lib_dl_dlopen=yes
14070else
14071 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014072sed 's/^/| /' conftest.$ac_ext >&5
14073
John Criswell7a73b802003-06-30 21:59:07 +000014074ac_cv_lib_dl_dlopen=no
14075fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014076rm -f conftest.err conftest.$ac_objext \
14077 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014078LIBS=$ac_check_lib_save_LIBS
14079fi
14080echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14081echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14082if test $ac_cv_lib_dl_dlopen = yes; then
14083 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14084else
14085 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14086echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14087if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
14089else
14090 ac_check_lib_save_LIBS=$LIBS
14091LIBS="-lsvld $LIBS"
14092cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014093/* confdefs.h. */
14094_ACEOF
14095cat confdefs.h >>conftest.$ac_ext
14096cat >>conftest.$ac_ext <<_ACEOF
14097/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014098
14099/* Override any gcc2 internal prototype to avoid an error. */
14100#ifdef __cplusplus
14101extern "C"
14102#endif
14103/* We use char because int might match the return type of a gcc2
14104 builtin and then its argument prototype would still apply. */
14105char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014106int
14107main ()
14108{
14109dlopen ();
14110 ;
14111 return 0;
14112}
14113_ACEOF
14114rm -f conftest.$ac_objext conftest$ac_exeext
14115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014116 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014117 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014118 grep -v '^ *+' conftest.er1 >conftest.err
14119 rm -f conftest.er1
14120 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014123 { ac_try='test -z "$ac_c_werror_flag"
14124 || test ! -s conftest.err'
14125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126 (eval $ac_try) 2>&5
14127 ac_status=$?
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; } &&
14130 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132 (eval $ac_try) 2>&5
14133 ac_status=$?
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; }; then
14136 ac_cv_lib_svld_dlopen=yes
14137else
14138 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014139sed 's/^/| /' conftest.$ac_ext >&5
14140
John Criswell7a73b802003-06-30 21:59:07 +000014141ac_cv_lib_svld_dlopen=no
14142fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014143rm -f conftest.err conftest.$ac_objext \
14144 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014145LIBS=$ac_check_lib_save_LIBS
14146fi
14147echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14148echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14149if test $ac_cv_lib_svld_dlopen = yes; then
14150 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14151else
14152 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14153echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14154if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14155 echo $ECHO_N "(cached) $ECHO_C" >&6
14156else
14157 ac_check_lib_save_LIBS=$LIBS
14158LIBS="-ldld $LIBS"
14159cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014160/* confdefs.h. */
14161_ACEOF
14162cat confdefs.h >>conftest.$ac_ext
14163cat >>conftest.$ac_ext <<_ACEOF
14164/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014165
14166/* Override any gcc2 internal prototype to avoid an error. */
14167#ifdef __cplusplus
14168extern "C"
14169#endif
14170/* We use char because int might match the return type of a gcc2
14171 builtin and then its argument prototype would still apply. */
14172char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014173int
14174main ()
14175{
14176dld_link ();
14177 ;
14178 return 0;
14179}
14180_ACEOF
14181rm -f conftest.$ac_objext conftest$ac_exeext
14182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014183 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014184 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014185 grep -v '^ *+' conftest.er1 >conftest.err
14186 rm -f conftest.er1
14187 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014190 { ac_try='test -z "$ac_c_werror_flag"
14191 || test ! -s conftest.err'
14192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193 (eval $ac_try) 2>&5
14194 ac_status=$?
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); }; } &&
14197 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199 (eval $ac_try) 2>&5
14200 ac_status=$?
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; }; then
14203 ac_cv_lib_dld_dld_link=yes
14204else
14205 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014206sed 's/^/| /' conftest.$ac_ext >&5
14207
John Criswell7a73b802003-06-30 21:59:07 +000014208ac_cv_lib_dld_dld_link=no
14209fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014210rm -f conftest.err conftest.$ac_objext \
14211 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014212LIBS=$ac_check_lib_save_LIBS
14213fi
14214echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14215echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14216if test $ac_cv_lib_dld_dld_link = yes; then
14217 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14218fi
14219
14220
14221fi
14222
14223
14224fi
14225
14226
14227fi
14228
14229
14230fi
14231
14232
14233fi
14234
14235 ;;
14236 esac
14237
14238 if test "x$lt_cv_dlopen" != xno; then
14239 enable_dlopen=yes
14240 else
14241 enable_dlopen=no
14242 fi
14243
14244 case $lt_cv_dlopen in
14245 dlopen)
14246 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014247 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014248
14249 save_LDFLAGS="$LDFLAGS"
14250 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14251
14252 save_LIBS="$LIBS"
14253 LIBS="$lt_cv_dlopen_libs $LIBS"
14254
14255 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14256echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14257if test "${lt_cv_dlopen_self+set}" = set; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
14259else
14260 if test "$cross_compiling" = yes; then :
14261 lt_cv_dlopen_self=cross
14262else
John Criswell47fdd832003-07-14 16:52:07 +000014263 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014264 lt_status=$lt_dlunknown
14265 cat > conftest.$ac_ext <<EOF
Reid Spencer502935f2004-12-22 05:56:56 +000014266#line 14266 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014267#include "confdefs.h"
14268
14269#if HAVE_DLFCN_H
14270#include <dlfcn.h>
14271#endif
14272
14273#include <stdio.h>
14274
14275#ifdef RTLD_GLOBAL
14276# define LT_DLGLOBAL RTLD_GLOBAL
14277#else
14278# ifdef DL_GLOBAL
14279# define LT_DLGLOBAL DL_GLOBAL
14280# else
14281# define LT_DLGLOBAL 0
14282# endif
14283#endif
14284
14285/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14286 find out it does not work in some platform. */
14287#ifndef LT_DLLAZY_OR_NOW
14288# ifdef RTLD_LAZY
14289# define LT_DLLAZY_OR_NOW RTLD_LAZY
14290# else
14291# ifdef DL_LAZY
14292# define LT_DLLAZY_OR_NOW DL_LAZY
14293# else
14294# ifdef RTLD_NOW
14295# define LT_DLLAZY_OR_NOW RTLD_NOW
14296# else
14297# ifdef DL_NOW
14298# define LT_DLLAZY_OR_NOW DL_NOW
14299# else
14300# define LT_DLLAZY_OR_NOW 0
14301# endif
14302# endif
14303# endif
14304# endif
14305#endif
14306
14307#ifdef __cplusplus
14308extern "C" void exit (int);
14309#endif
14310
14311void fnord() { int i=42;}
14312int main ()
14313{
14314 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14315 int status = $lt_dlunknown;
14316
14317 if (self)
14318 {
14319 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14320 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14321 /* dlclose (self); */
14322 }
14323
14324 exit (status);
14325}
14326EOF
14327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14328 (eval $ac_link) 2>&5
14329 ac_status=$?
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14332 (./conftest; exit; ) 2>/dev/null
14333 lt_status=$?
14334 case x$lt_status in
14335 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14336 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14337 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14338 esac
14339 else :
14340 # compilation failed
14341 lt_cv_dlopen_self=no
14342 fi
14343fi
14344rm -fr conftest*
14345
14346
14347fi
14348echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14349echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14350
14351 if test "x$lt_cv_dlopen_self" = xyes; then
14352 LDFLAGS="$LDFLAGS $link_static_flag"
14353 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14354echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14355if test "${lt_cv_dlopen_self_static+set}" = set; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14357else
14358 if test "$cross_compiling" = yes; then :
14359 lt_cv_dlopen_self_static=cross
14360else
John Criswell47fdd832003-07-14 16:52:07 +000014361 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014362 lt_status=$lt_dlunknown
14363 cat > conftest.$ac_ext <<EOF
Reid Spencer502935f2004-12-22 05:56:56 +000014364#line 14364 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014365#include "confdefs.h"
14366
14367#if HAVE_DLFCN_H
14368#include <dlfcn.h>
14369#endif
14370
14371#include <stdio.h>
14372
14373#ifdef RTLD_GLOBAL
14374# define LT_DLGLOBAL RTLD_GLOBAL
14375#else
14376# ifdef DL_GLOBAL
14377# define LT_DLGLOBAL DL_GLOBAL
14378# else
14379# define LT_DLGLOBAL 0
14380# endif
14381#endif
14382
14383/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14384 find out it does not work in some platform. */
14385#ifndef LT_DLLAZY_OR_NOW
14386# ifdef RTLD_LAZY
14387# define LT_DLLAZY_OR_NOW RTLD_LAZY
14388# else
14389# ifdef DL_LAZY
14390# define LT_DLLAZY_OR_NOW DL_LAZY
14391# else
14392# ifdef RTLD_NOW
14393# define LT_DLLAZY_OR_NOW RTLD_NOW
14394# else
14395# ifdef DL_NOW
14396# define LT_DLLAZY_OR_NOW DL_NOW
14397# else
14398# define LT_DLLAZY_OR_NOW 0
14399# endif
14400# endif
14401# endif
14402# endif
14403#endif
14404
14405#ifdef __cplusplus
14406extern "C" void exit (int);
14407#endif
14408
14409void fnord() { int i=42;}
14410int main ()
14411{
14412 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14413 int status = $lt_dlunknown;
14414
14415 if (self)
14416 {
14417 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14418 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14419 /* dlclose (self); */
14420 }
14421
14422 exit (status);
14423}
14424EOF
14425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14426 (eval $ac_link) 2>&5
14427 ac_status=$?
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14430 (./conftest; exit; ) 2>/dev/null
14431 lt_status=$?
14432 case x$lt_status in
14433 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14434 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14435 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14436 esac
14437 else :
14438 # compilation failed
14439 lt_cv_dlopen_self_static=no
14440 fi
14441fi
14442rm -fr conftest*
14443
14444
14445fi
14446echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14447echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14448 fi
14449
14450 CPPFLAGS="$save_CPPFLAGS"
14451 LDFLAGS="$save_LDFLAGS"
14452 LIBS="$save_LIBS"
14453 ;;
14454 esac
14455
14456 case $lt_cv_dlopen_self in
14457 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14458 *) enable_dlopen_self=unknown ;;
14459 esac
14460
14461 case $lt_cv_dlopen_self_static in
14462 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14463 *) enable_dlopen_self_static=unknown ;;
14464 esac
14465fi
14466
14467
John Criswell47fdd832003-07-14 16:52:07 +000014468# Report which librarie types wil actually be built
14469echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14470echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14471echo "$as_me:$LINENO: result: $can_build_shared" >&5
14472echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014473
John Criswell47fdd832003-07-14 16:52:07 +000014474echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14475echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14476test "$can_build_shared" = "no" && enable_shared=no
14477
14478# On AIX, shared libraries and static libraries use the same namespace, and
14479# are all built from PIC.
14480case "$host_os" in
14481aix3*)
14482 test "$enable_shared" = yes && enable_static=no
14483 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014484 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014485 postinstall_cmds='$RANLIB $lib'
14486 fi
14487 ;;
14488
Reid Spencer2706f8c2004-09-19 23:53:36 +000014489aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014490 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14491 test "$enable_shared" = yes && enable_static=no
14492 fi
John Criswell7a73b802003-06-30 21:59:07 +000014493 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014494esac
14495echo "$as_me:$LINENO: result: $enable_shared" >&5
14496echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014497
John Criswell47fdd832003-07-14 16:52:07 +000014498echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14499echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14500# Make sure either enable_shared or enable_static is yes.
14501test "$enable_shared" = yes || enable_static=yes
14502echo "$as_me:$LINENO: result: $enable_static" >&5
14503echo "${ECHO_T}$enable_static" >&6
14504
14505# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014506# libtool distribution, otherwise you forgot to ship ltmain.sh
14507# with your package, and you will get complaints that there are
14508# no rules to generate ltmain.sh.
14509if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014510 # See if we are running on zsh, and set the options which allow our commands through
14511 # without removal of \ escapes.
14512 if test -n "${ZSH_VERSION+set}" ; then
14513 setopt NO_GLOB_SUBST
14514 fi
John Criswell7a73b802003-06-30 21:59:07 +000014515 # Now quote all the things that may contain metacharacters while being
14516 # careful not to overquote the AC_SUBSTed values. We take copies of the
14517 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014518 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14519 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014520 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14521 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14522 deplibs_check_method reload_flag reload_cmds need_locks \
14523 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14524 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014525 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014526 old_postinstall_cmds old_postuninstall_cmds \
14527 compiler \
14528 CC \
14529 LD \
14530 lt_prog_compiler_wl \
14531 lt_prog_compiler_pic \
14532 lt_prog_compiler_static \
14533 lt_prog_compiler_no_builtin_flag \
14534 export_dynamic_flag_spec \
14535 thread_safe_flag_spec \
14536 whole_archive_flag_spec \
14537 enable_shared_with_static_runtimes \
14538 old_archive_cmds \
14539 old_archive_from_new_cmds \
14540 predep_objects \
14541 postdep_objects \
14542 predeps \
14543 postdeps \
14544 compiler_lib_search_path \
14545 archive_cmds \
14546 archive_expsym_cmds \
14547 postinstall_cmds \
14548 postuninstall_cmds \
14549 old_archive_from_expsyms_cmds \
14550 allow_undefined_flag \
14551 no_undefined_flag \
14552 export_symbols_cmds \
14553 hardcode_libdir_flag_spec \
14554 hardcode_libdir_flag_spec_ld \
14555 hardcode_libdir_separator \
14556 hardcode_automatic \
14557 module_cmds \
14558 module_expsym_cmds \
14559 lt_cv_prog_compiler_c_o \
14560 exclude_expsyms \
14561 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014562
14563 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014564 old_archive_cmds | \
14565 old_archive_from_new_cmds | \
14566 archive_cmds | \
14567 archive_expsym_cmds | \
14568 module_cmds | \
14569 module_expsym_cmds | \
14570 old_archive_from_expsyms_cmds | \
14571 export_symbols_cmds | \
14572 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014573 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014574 old_postinstall_cmds | old_postuninstall_cmds | \
14575 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014576 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014577 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell7a73b802003-06-30 21:59:07 +000014578 ;;
14579 *)
14580 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14581 ;;
14582 esac
14583 done
14584
John Criswell47fdd832003-07-14 16:52:07 +000014585 case $lt_echo in
14586 *'\$0 --fallback-echo"')
14587 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14588 ;;
14589 esac
14590
14591cfgfile="${ofile}T"
14592 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14593 $rm -f "$cfgfile"
14594 { echo "$as_me:$LINENO: creating $ofile" >&5
14595echo "$as_me: creating $ofile" >&6;}
14596
14597 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014598#! $SHELL
14599
John Criswell47fdd832003-07-14 16:52:07 +000014600# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014601# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14602# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14603#
John Criswell47fdd832003-07-14 16:52:07 +000014604# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14605# Free Software Foundation, Inc.
14606#
14607# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014608# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14609#
14610# This program is free software; you can redistribute it and/or modify
14611# it under the terms of the GNU General Public License as published by
14612# the Free Software Foundation; either version 2 of the License, or
14613# (at your option) any later version.
14614#
14615# This program is distributed in the hope that it will be useful, but
14616# WITHOUT ANY WARRANTY; without even the implied warranty of
14617# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14618# General Public License for more details.
14619#
14620# You should have received a copy of the GNU General Public License
14621# along with this program; if not, write to the Free Software
14622# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14623#
14624# As a special exception to the GNU General Public License, if you
14625# distribute this file as part of a program that contains a
14626# configuration script generated by Autoconf, you may include it under
14627# the same distribution terms that you use for the rest of that program.
14628
John Criswell47fdd832003-07-14 16:52:07 +000014629# A sed program that does not truncate output.
14630SED=$lt_SED
14631
John Criswell7a73b802003-06-30 21:59:07 +000014632# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014633Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014634
14635# The HP-UX ksh and POSIX shell print the target directory to stdout
14636# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014637(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014638
John Criswell47fdd832003-07-14 16:52:07 +000014639# The names of the tagged configurations supported by this script.
14640available_tags=
14641
John Criswell7a73b802003-06-30 21:59:07 +000014642# ### BEGIN LIBTOOL CONFIG
14643
14644# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14645
14646# Shell to use when invoking shell scripts.
14647SHELL=$lt_SHELL
14648
14649# Whether or not to build shared libraries.
14650build_libtool_libs=$enable_shared
14651
14652# Whether or not to build static libraries.
14653build_old_libs=$enable_static
14654
14655# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014656build_libtool_need_lc=$archive_cmds_need_lc
14657
14658# Whether or not to disallow shared libs when runtime libs are static
14659allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014660
14661# Whether or not to optimize for fast installation.
14662fast_install=$enable_fast_install
14663
14664# The host system.
14665host_alias=$host_alias
14666host=$host
14667
14668# An echo program that does not interpret backslashes.
14669echo=$lt_echo
14670
14671# The archiver.
14672AR=$lt_AR
14673AR_FLAGS=$lt_AR_FLAGS
14674
John Criswell47fdd832003-07-14 16:52:07 +000014675# A C compiler.
14676LTCC=$lt_LTCC
14677
14678# A language-specific compiler.
14679CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014680
14681# Is the compiler the GNU C compiler?
14682with_gcc=$GCC
14683
John Criswell47fdd832003-07-14 16:52:07 +000014684# An ERE matcher.
14685EGREP=$lt_EGREP
14686
John Criswell7a73b802003-06-30 21:59:07 +000014687# The linker used to build libraries.
14688LD=$lt_LD
14689
14690# Whether we need hard or soft links.
14691LN_S=$lt_LN_S
14692
14693# A BSD-compatible nm program.
14694NM=$lt_NM
14695
14696# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014697STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014698
14699# Used to examine libraries when file_magic_cmd begins "file"
14700MAGIC_CMD=$MAGIC_CMD
14701
14702# Used on cygwin: DLL creation program.
14703DLLTOOL="$DLLTOOL"
14704
14705# Used on cygwin: object dumper.
14706OBJDUMP="$OBJDUMP"
14707
14708# Used on cygwin: assembler.
14709AS="$AS"
14710
14711# The name of the directory that contains temporary libtool files.
14712objdir=$objdir
14713
14714# How to create reloadable object files.
14715reload_flag=$lt_reload_flag
14716reload_cmds=$lt_reload_cmds
14717
14718# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014719wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014720
14721# Object file suffix (normally "o").
14722objext="$ac_objext"
14723
14724# Old archive suffix (normally "a").
14725libext="$libext"
14726
John Criswell47fdd832003-07-14 16:52:07 +000014727# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014728shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014729
John Criswell7a73b802003-06-30 21:59:07 +000014730# Executable file suffix (normally "").
14731exeext="$exeext"
14732
14733# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014734pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014735pic_mode=$pic_mode
14736
John Criswell47fdd832003-07-14 16:52:07 +000014737# What is the maximum length of a command?
14738max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014739
John Criswell47fdd832003-07-14 16:52:07 +000014740# Does compiler simultaneously support -c and -o options?
14741compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014742
14743# Must we lock files when doing compilation ?
14744need_locks=$lt_need_locks
14745
14746# Do we need the lib prefix for modules?
14747need_lib_prefix=$need_lib_prefix
14748
14749# Do we need a version for libraries?
14750need_version=$need_version
14751
14752# Whether dlopen is supported.
14753dlopen_support=$enable_dlopen
14754
14755# Whether dlopen of programs is supported.
14756dlopen_self=$enable_dlopen_self
14757
14758# Whether dlopen of statically linked programs is supported.
14759dlopen_self_static=$enable_dlopen_self_static
14760
14761# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014762link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014763
14764# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014765no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014766
14767# Compiler flag to allow reflexive dlopens.
14768export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14769
14770# Compiler flag to generate shared objects directly from archives.
14771whole_archive_flag_spec=$lt_whole_archive_flag_spec
14772
14773# Compiler flag to generate thread-safe objects.
14774thread_safe_flag_spec=$lt_thread_safe_flag_spec
14775
14776# Library versioning type.
14777version_type=$version_type
14778
14779# Format of library name prefix.
14780libname_spec=$lt_libname_spec
14781
14782# List of archive names. First name is the real one, the rest are links.
14783# The last name is the one that the linker finds with -lNAME.
14784library_names_spec=$lt_library_names_spec
14785
14786# The coded name of the library, if different from the real name.
14787soname_spec=$lt_soname_spec
14788
14789# Commands used to build and install an old-style archive.
14790RANLIB=$lt_RANLIB
14791old_archive_cmds=$lt_old_archive_cmds
14792old_postinstall_cmds=$lt_old_postinstall_cmds
14793old_postuninstall_cmds=$lt_old_postuninstall_cmds
14794
14795# Create an old-style archive from a shared archive.
14796old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14797
14798# Create a temporary old-style archive to link instead of a shared archive.
14799old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14800
14801# Commands used to build and install a shared archive.
14802archive_cmds=$lt_archive_cmds
14803archive_expsym_cmds=$lt_archive_expsym_cmds
14804postinstall_cmds=$lt_postinstall_cmds
14805postuninstall_cmds=$lt_postuninstall_cmds
14806
John Criswell47fdd832003-07-14 16:52:07 +000014807# Commands used to build a loadable module (assumed same as above if empty)
14808module_cmds=$lt_module_cmds
14809module_expsym_cmds=$lt_module_expsym_cmds
14810
John Criswell7a73b802003-06-30 21:59:07 +000014811# Commands to strip libraries.
14812old_striplib=$lt_old_striplib
14813striplib=$lt_striplib
14814
John Criswell47fdd832003-07-14 16:52:07 +000014815# Dependencies to place before the objects being linked to create a
14816# shared library.
14817predep_objects=$lt_predep_objects
14818
14819# Dependencies to place after the objects being linked to create a
14820# shared library.
14821postdep_objects=$lt_postdep_objects
14822
14823# Dependencies to place before the objects being linked to create a
14824# shared library.
14825predeps=$lt_predeps
14826
14827# Dependencies to place after the objects being linked to create a
14828# shared library.
14829postdeps=$lt_postdeps
14830
14831# The library search path used internally by the compiler when linking
14832# a shared library.
14833compiler_lib_search_path=$lt_compiler_lib_search_path
14834
John Criswell7a73b802003-06-30 21:59:07 +000014835# Method to check whether dependent libraries are shared objects.
14836deplibs_check_method=$lt_deplibs_check_method
14837
14838# Command to use when deplibs_check_method == file_magic.
14839file_magic_cmd=$lt_file_magic_cmd
14840
14841# Flag that allows shared libraries with undefined symbols to be built.
14842allow_undefined_flag=$lt_allow_undefined_flag
14843
14844# Flag that forces no undefined symbols.
14845no_undefined_flag=$lt_no_undefined_flag
14846
14847# Commands used to finish a libtool library installation in a directory.
14848finish_cmds=$lt_finish_cmds
14849
14850# Same as above, but a single script fragment to be evaled but not shown.
14851finish_eval=$lt_finish_eval
14852
14853# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000014854global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000014855
14856# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000014857global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000014858
14859# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000014860global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000014861
14862# This is the shared library runtime path variable.
14863runpath_var=$runpath_var
14864
14865# This is the shared library path variable.
14866shlibpath_var=$shlibpath_var
14867
14868# Is shlibpath searched before the hard-coded library search path?
14869shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14870
14871# How to hardcode a shared library path into an executable.
14872hardcode_action=$hardcode_action
14873
14874# Whether we should hardcode library paths into libraries.
14875hardcode_into_libs=$hardcode_into_libs
14876
14877# Flag to hardcode \$libdir into a binary during linking.
14878# This must work even if \$libdir does not exist.
14879hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14880
John Criswell47fdd832003-07-14 16:52:07 +000014881# If ld is used when linking, flag to hardcode \$libdir into
14882# a binary during linking. This must work even if \$libdir does
14883# not exist.
14884hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14885
John Criswell7a73b802003-06-30 21:59:07 +000014886# Whether we need a single -rpath flag with a separated argument.
14887hardcode_libdir_separator=$lt_hardcode_libdir_separator
14888
John Criswell47fdd832003-07-14 16:52:07 +000014889# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000014890# resulting binary.
14891hardcode_direct=$hardcode_direct
14892
14893# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14894# resulting binary.
14895hardcode_minus_L=$hardcode_minus_L
14896
14897# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14898# the resulting binary.
14899hardcode_shlibpath_var=$hardcode_shlibpath_var
14900
John Criswell47fdd832003-07-14 16:52:07 +000014901# Set to yes if building a shared library automatically hardcodes DIR into the library
14902# and all subsequent libraries and executables linked against it.
14903hardcode_automatic=$hardcode_automatic
14904
John Criswell7a73b802003-06-30 21:59:07 +000014905# Variables whose values should be saved in libtool wrapper scripts and
14906# restored at relink time.
14907variables_saved_for_relink="$variables_saved_for_relink"
14908
14909# Whether libtool must link a program against all its dependency libraries.
14910link_all_deplibs=$link_all_deplibs
14911
14912# Compile-time system search path for libraries
14913sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14914
14915# Run-time system search path for libraries
14916sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14917
14918# Fix the shell variable \$srcfile for the compiler.
14919fix_srcfile_path="$fix_srcfile_path"
14920
14921# Set to yes if exported symbols are required.
14922always_export_symbols=$always_export_symbols
14923
14924# The commands to list exported symbols.
14925export_symbols_cmds=$lt_export_symbols_cmds
14926
14927# The commands to extract the exported symbol list from a shared archive.
14928extract_expsyms_cmds=$lt_extract_expsyms_cmds
14929
14930# Symbols that should not be listed in the preloaded symbols.
14931exclude_expsyms=$lt_exclude_expsyms
14932
14933# Symbols that must always be exported.
14934include_expsyms=$lt_include_expsyms
14935
14936# ### END LIBTOOL CONFIG
14937
14938__EOF__
14939
John Criswell47fdd832003-07-14 16:52:07 +000014940
John Criswell7a73b802003-06-30 21:59:07 +000014941 case $host_os in
14942 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000014943 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014944
14945# AIX sometimes has problems with the GCC collect2 program. For some
14946# reason, if we set the COLLECT_NAMES environment variable, the problems
14947# vanish in a puff of smoke.
14948if test "X${COLLECT_NAMES+set}" != Xset; then
14949 COLLECT_NAMES=
14950 export COLLECT_NAMES
14951fi
14952EOF
14953 ;;
14954 esac
14955
John Criswell7a73b802003-06-30 21:59:07 +000014956 # We use sed instead of cat because bash on DJGPP gets confused if
14957 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14958 # text mode, it properly converts lines to CR/LF. This bash problem
14959 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000014960 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000014961
John Criswell47fdd832003-07-14 16:52:07 +000014962 mv -f "$cfgfile" "$ofile" || \
14963 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000014964 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000014965
14966else
14967 # If there is no Makefile yet, we rely on a make rule to execute
14968 # `config.status --recheck' to rerun these tests and create the
14969 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014970 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14971 if test -f "$ltmain_in"; then
14972 test -f Makefile && make "$ltmain"
14973 fi
John Criswell7a73b802003-06-30 21:59:07 +000014974fi
John Criswell7a73b802003-06-30 21:59:07 +000014975
14976
John Criswell47fdd832003-07-14 16:52:07 +000014977ac_ext=c
14978ac_cpp='$CPP $CPPFLAGS'
14979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14981ac_compiler_gnu=$ac_cv_c_compiler_gnu
14982
14983CC="$lt_save_CC"
14984
14985
14986# Check whether --with-tags or --without-tags was given.
14987if test "${with_tags+set}" = set; then
14988 withval="$with_tags"
14989 tagnames="$withval"
14990fi;
14991
14992if test -f "$ltmain" && test -n "$tagnames"; then
14993 if test ! -f "${ofile}"; then
14994 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14995echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14996 fi
14997
14998 if test -z "$LTCC"; then
14999 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15000 if test -z "$LTCC"; then
15001 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15002echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15003 else
15004 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15005echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15006 fi
15007 fi
15008
15009 # Extract list of available tagged configurations in $ofile.
15010 # Note that this assumes the entire list is on one line.
15011 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15012
15013 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15014 for tagname in $tagnames; do
15015 IFS="$lt_save_ifs"
15016 # Check whether tagname contains only valid characters
15017 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15018 "") ;;
15019 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15020echo "$as_me: error: invalid tag name: $tagname" >&2;}
15021 { (exit 1); exit 1; }; }
15022 ;;
15023 esac
15024
15025 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15026 then
15027 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15028echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15029 { (exit 1); exit 1; }; }
15030 fi
15031
15032 # Update the list of available tags.
15033 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015034 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000015035
15036 case $tagname in
15037 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015038 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15039 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15040 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000015041 ac_ext=cc
15042ac_cpp='$CXXCPP $CPPFLAGS'
15043ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15044ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15045ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15046
15047
15048
15049
15050archive_cmds_need_lc_CXX=no
15051allow_undefined_flag_CXX=
15052always_export_symbols_CXX=no
15053archive_expsym_cmds_CXX=
15054export_dynamic_flag_spec_CXX=
15055hardcode_direct_CXX=no
15056hardcode_libdir_flag_spec_CXX=
15057hardcode_libdir_flag_spec_ld_CXX=
15058hardcode_libdir_separator_CXX=
15059hardcode_minus_L_CXX=no
15060hardcode_automatic_CXX=no
15061module_cmds_CXX=
15062module_expsym_cmds_CXX=
15063link_all_deplibs_CXX=unknown
15064old_archive_cmds_CXX=$old_archive_cmds
15065no_undefined_flag_CXX=
15066whole_archive_flag_spec_CXX=
15067enable_shared_with_static_runtimes_CXX=no
15068
15069# Dependencies to place before and after the object being linked:
15070predep_objects_CXX=
15071postdep_objects_CXX=
15072predeps_CXX=
15073postdeps_CXX=
15074compiler_lib_search_path_CXX=
15075
15076# Source file extension for C++ test sources.
15077ac_ext=cc
15078
15079# Object file extension for compiled C++ test sources.
15080objext=o
15081objext_CXX=$objext
15082
15083# Code to be used in simple compile tests
15084lt_simple_compile_test_code="int some_variable = 0;\n"
15085
15086# Code to be used in simple link tests
15087lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15088
15089# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15090
15091# If no C compiler was specified, use CC.
15092LTCC=${LTCC-"$CC"}
15093
15094# Allow CC to be a program name with arguments.
15095compiler=$CC
15096
15097
15098# Allow CC to be a program name with arguments.
15099lt_save_CC=$CC
15100lt_save_LD=$LD
15101lt_save_GCC=$GCC
15102GCC=$GXX
15103lt_save_with_gnu_ld=$with_gnu_ld
15104lt_save_path_LD=$lt_cv_path_LD
15105if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15106 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15107else
15108 unset lt_cv_prog_gnu_ld
15109fi
15110if test -n "${lt_cv_path_LDCXX+set}"; then
15111 lt_cv_path_LD=$lt_cv_path_LDCXX
15112else
15113 unset lt_cv_path_LD
15114fi
15115test -z "${LDCXX+set}" || LD=$LDCXX
15116CC=${CXX-"c++"}
15117compiler=$CC
15118compiler_CXX=$CC
15119cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15120
15121# We don't want -fno-exception wen compiling C++ code, so set the
15122# no_builtin_flag separately
15123if test "$GXX" = yes; then
15124 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15125else
15126 lt_prog_compiler_no_builtin_flag_CXX=
15127fi
15128
15129if test "$GXX" = yes; then
15130 # Set up default GNU C++ configuration
15131
15132
15133# Check whether --with-gnu-ld or --without-gnu-ld was given.
15134if test "${with_gnu_ld+set}" = set; then
15135 withval="$with_gnu_ld"
15136 test "$withval" = no || with_gnu_ld=yes
15137else
15138 with_gnu_ld=no
15139fi;
15140ac_prog=ld
15141if test "$GCC" = yes; then
15142 # Check if gcc -print-prog-name=ld gives a path.
15143 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15144echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15145 case $host in
15146 *-*-mingw*)
15147 # gcc leaves a trailing carriage return which upsets mingw
15148 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15149 *)
15150 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15151 esac
15152 case $ac_prog in
15153 # Accept absolute paths.
15154 [\\/]* | ?:[\\/]*)
15155 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015156 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015157 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15158 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15159 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15160 done
15161 test -z "$LD" && LD="$ac_prog"
15162 ;;
15163 "")
15164 # If it fails, then pretend we aren't using GCC.
15165 ac_prog=ld
15166 ;;
15167 *)
15168 # If it is relative, then search for the first ld in PATH.
15169 with_gnu_ld=unknown
15170 ;;
15171 esac
15172elif test "$with_gnu_ld" = yes; then
15173 echo "$as_me:$LINENO: checking for GNU ld" >&5
15174echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15175else
15176 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15177echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15178fi
15179if test "${lt_cv_path_LD+set}" = set; then
15180 echo $ECHO_N "(cached) $ECHO_C" >&6
15181else
15182 if test -z "$LD"; then
15183 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15184 for ac_dir in $PATH; do
15185 IFS="$lt_save_ifs"
15186 test -z "$ac_dir" && ac_dir=.
15187 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15188 lt_cv_path_LD="$ac_dir/$ac_prog"
15189 # Check to see if the program is GNU ld. I'd rather use --version,
15190 # but apparently some GNU ld's only accept -v.
15191 # Break only if it was the GNU/non-GNU ld that we prefer.
15192 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15193 *GNU* | *'with BFD'*)
15194 test "$with_gnu_ld" != no && break
15195 ;;
15196 *)
15197 test "$with_gnu_ld" != yes && break
15198 ;;
15199 esac
15200 fi
15201 done
15202 IFS="$lt_save_ifs"
15203else
15204 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15205fi
15206fi
15207
15208LD="$lt_cv_path_LD"
15209if test -n "$LD"; then
15210 echo "$as_me:$LINENO: result: $LD" >&5
15211echo "${ECHO_T}$LD" >&6
15212else
15213 echo "$as_me:$LINENO: result: no" >&5
15214echo "${ECHO_T}no" >&6
15215fi
15216test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15217echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15218 { (exit 1); exit 1; }; }
15219echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15220echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15221if test "${lt_cv_prog_gnu_ld+set}" = set; then
15222 echo $ECHO_N "(cached) $ECHO_C" >&6
15223else
15224 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015225case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015226*GNU* | *'with BFD'*)
15227 lt_cv_prog_gnu_ld=yes
15228 ;;
15229*)
15230 lt_cv_prog_gnu_ld=no
15231 ;;
15232esac
15233fi
15234echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15235echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15236with_gnu_ld=$lt_cv_prog_gnu_ld
15237
15238
15239
15240 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15241 # archiving commands below assume that GNU ld is being used.
15242 if test "$with_gnu_ld" = yes; then
15243 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15244 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'
15245
15246 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15247 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15248
15249 # If archive_cmds runs LD, not CC, wlarc should be empty
15250 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15251 # investigate it a little bit more. (MM)
15252 wlarc='${wl}'
15253
15254 # ancient GNU ld didn't support --whole-archive et. al.
15255 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15256 grep 'no-whole-archive' > /dev/null; then
15257 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15258 else
15259 whole_archive_flag_spec_CXX=
15260 fi
15261 else
15262 with_gnu_ld=no
15263 wlarc=
15264
15265 # A generic and very simple default shared library creation
15266 # command for GNU C++ for the case where it uses the native
15267 # linker, instead of GNU ld. If possible, this setting should
15268 # overridden to take advantage of the native linker features on
15269 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015270 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015271 fi
15272
15273 # Commands to make compiler produce verbose output that lists
15274 # what "hidden" libraries, object files and flags are used when
15275 # linking a shared library.
15276 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15277
15278else
15279 GXX=no
15280 with_gnu_ld=no
15281 wlarc=
15282fi
15283
15284# PORTME: fill in a description of your system's C++ link characteristics
15285echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15286echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15287ld_shlibs_CXX=yes
15288case $host_os in
15289 aix3*)
15290 # FIXME: insert proper C++ library support
15291 ld_shlibs_CXX=no
15292 ;;
15293 aix4* | aix5*)
15294 if test "$host_cpu" = ia64; then
15295 # On IA64, the linker does run time linking by default, so we don't
15296 # have to do anything special.
15297 aix_use_runtimelinking=no
15298 exp_sym_flag='-Bexport'
15299 no_entry_flag=""
15300 else
15301 aix_use_runtimelinking=no
15302
15303 # Test if we are trying to use run time linking or normal
15304 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15305 # need to do runtime linking.
15306 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15307 for ld_flag in $LDFLAGS; do
15308 case $ld_flag in
15309 *-brtl*)
15310 aix_use_runtimelinking=yes
15311 break
15312 ;;
15313 esac
15314 done
15315 esac
15316
15317 exp_sym_flag='-bexport'
15318 no_entry_flag='-bnoentry'
15319 fi
15320
15321 # When large executables or shared objects are built, AIX ld can
15322 # have problems creating the table of contents. If linking a library
15323 # or program results in "error TOC overflow" add -mminimal-toc to
15324 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15325 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15326
15327 archive_cmds_CXX=''
15328 hardcode_direct_CXX=yes
15329 hardcode_libdir_separator_CXX=':'
15330 link_all_deplibs_CXX=yes
15331
15332 if test "$GXX" = yes; then
15333 case $host_os in aix4.012|aix4.012.*)
15334 # We only want to do this on AIX 4.2 and lower, the check
15335 # below for broken collect2 doesn't work under 4.3+
15336 collect2name=`${CC} -print-prog-name=collect2`
15337 if test -f "$collect2name" && \
15338 strings "$collect2name" | grep resolve_lib_name >/dev/null
15339 then
15340 # We have reworked collect2
15341 hardcode_direct_CXX=yes
15342 else
15343 # We have old collect2
15344 hardcode_direct_CXX=unsupported
15345 # It fails to find uninstalled libraries when the uninstalled
15346 # path is not listed in the libpath. Setting hardcode_minus_L
15347 # to unsupported forces relinking
15348 hardcode_minus_L_CXX=yes
15349 hardcode_libdir_flag_spec_CXX='-L$libdir'
15350 hardcode_libdir_separator_CXX=
15351 fi
15352 esac
15353 shared_flag='-shared'
15354 else
15355 # not using gcc
15356 if test "$host_cpu" = ia64; then
15357 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15358 # chokes on -Wl,-G. The following line is correct:
15359 shared_flag='-G'
15360 else
15361 if test "$aix_use_runtimelinking" = yes; then
15362 shared_flag='${wl}-G'
15363 else
15364 shared_flag='${wl}-bM:SRE'
15365 fi
15366 fi
15367 fi
15368
15369 # It seems that -bexpall does not export symbols beginning with
15370 # underscore (_), so it is better to generate a list of symbols to export.
15371 always_export_symbols_CXX=yes
15372 if test "$aix_use_runtimelinking" = yes; then
15373 # Warning - without using the other runtime loading flags (-brtl),
15374 # -berok will link without error, but may produce a broken library.
15375 allow_undefined_flag_CXX='-berok'
15376 # Determine the default libpath from the value encoded in an empty executable.
15377 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015378/* confdefs.h. */
15379_ACEOF
15380cat confdefs.h >>conftest.$ac_ext
15381cat >>conftest.$ac_ext <<_ACEOF
15382/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015383
John Criswell47fdd832003-07-14 16:52:07 +000015384int
15385main ()
15386{
15387
15388 ;
15389 return 0;
15390}
15391_ACEOF
15392rm -f conftest.$ac_objext conftest$ac_exeext
15393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015394 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015395 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015396 grep -v '^ *+' conftest.er1 >conftest.err
15397 rm -f conftest.er1
15398 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015401 { ac_try='test -z "$ac_cxx_werror_flag"
15402 || test ! -s conftest.err'
15403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404 (eval $ac_try) 2>&5
15405 ac_status=$?
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; } &&
15408 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410 (eval $ac_try) 2>&5
15411 ac_status=$?
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; }; then
15414
15415aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15416}'`
15417# Check for a 64-bit object if we didn't find anything.
15418if 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; }
15419}'`; fi
15420else
15421 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015422sed 's/^/| /' conftest.$ac_ext >&5
15423
John Criswell47fdd832003-07-14 16:52:07 +000015424fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015425rm -f conftest.err conftest.$ac_objext \
15426 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015427if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15428
15429 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15430
15431 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"
15432 else
15433 if test "$host_cpu" = ia64; then
15434 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15435 allow_undefined_flag_CXX="-z nodefs"
15436 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"
15437 else
15438 # Determine the default libpath from the value encoded in an empty executable.
15439 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015440/* confdefs.h. */
15441_ACEOF
15442cat confdefs.h >>conftest.$ac_ext
15443cat >>conftest.$ac_ext <<_ACEOF
15444/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015445
John Criswell47fdd832003-07-14 16:52:07 +000015446int
15447main ()
15448{
15449
15450 ;
15451 return 0;
15452}
15453_ACEOF
15454rm -f conftest.$ac_objext conftest$ac_exeext
15455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015456 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015457 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015458 grep -v '^ *+' conftest.er1 >conftest.err
15459 rm -f conftest.er1
15460 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015463 { ac_try='test -z "$ac_cxx_werror_flag"
15464 || test ! -s conftest.err'
15465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466 (eval $ac_try) 2>&5
15467 ac_status=$?
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); }; } &&
15470 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15473 ac_status=$?
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; }; then
15476
15477aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15478}'`
15479# Check for a 64-bit object if we didn't find anything.
15480if 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; }
15481}'`; fi
15482else
15483 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015484sed 's/^/| /' conftest.$ac_ext >&5
15485
John Criswell47fdd832003-07-14 16:52:07 +000015486fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015487rm -f conftest.err conftest.$ac_objext \
15488 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015489if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15490
15491 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15492 # Warning - without using the other run time loading flags,
15493 # -berok will link without error, but may produce a broken library.
15494 no_undefined_flag_CXX=' ${wl}-bernotok'
15495 allow_undefined_flag_CXX=' ${wl}-berok'
15496 # -bexpall does not export symbols beginning with underscore (_)
15497 always_export_symbols_CXX=yes
15498 # Exported symbols can be pulled into shared objects from archives
15499 whole_archive_flag_spec_CXX=' '
15500 archive_cmds_need_lc_CXX=yes
15501 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015502 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'
John Criswell47fdd832003-07-14 16:52:07 +000015503 fi
15504 fi
15505 ;;
15506 chorus*)
15507 case $cc_basename in
15508 *)
15509 # FIXME: insert proper C++ library support
15510 ld_shlibs_CXX=no
15511 ;;
15512 esac
15513 ;;
15514
Reid Spencer2706f8c2004-09-19 23:53:36 +000015515
John Criswell47fdd832003-07-14 16:52:07 +000015516 cygwin* | mingw* | pw32*)
15517 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15518 # as there is no search path for DLLs.
15519 hardcode_libdir_flag_spec_CXX='-L$libdir'
15520 allow_undefined_flag_CXX=unsupported
15521 always_export_symbols_CXX=no
15522 enable_shared_with_static_runtimes_CXX=yes
15523
15524 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15525 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'
15526 # If the export-symbols file already is a .def file (1st line
15527 # is EXPORTS), use it as is; otherwise, prepend...
15528 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15529 cp $export_symbols $output_objdir/$soname.def;
15530 else
15531 echo EXPORTS > $output_objdir/$soname.def;
15532 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015533 fi~
15534 $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'
John Criswell47fdd832003-07-14 16:52:07 +000015535 else
15536 ld_shlibs_CXX=no
15537 fi
15538 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015539 darwin* | rhapsody*)
15540 case "$host_os" in
15541 rhapsody* | darwin1.[012])
15542 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15543 ;;
15544 *) # Darwin 1.3 on
15545 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15546 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15547 else
15548 case ${MACOSX_DEPLOYMENT_TARGET} in
15549 10.[012])
15550 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15551 ;;
15552 10.*)
15553 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15554 ;;
15555 esac
15556 fi
15557 ;;
15558 esac
15559 archive_cmds_need_lc_CXX=no
15560 hardcode_direct_CXX=no
15561 hardcode_automatic_CXX=yes
15562 hardcode_shlibpath_var_CXX=unsupported
15563 whole_archive_flag_spec_CXX=''
15564 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015565
Reid Spencer2706f8c2004-09-19 23:53:36 +000015566 if test "$GXX" = yes ; then
15567 lt_int_apple_cc_single_mod=no
15568 output_verbose_link_cmd='echo'
15569 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15570 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015571 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015572 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015573 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
Brian Gaeke0a621332004-09-08 20:38:05 +000015574 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015575 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015576 fi
15577 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15578 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15579 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015580 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015581 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015582 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015583 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015584 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015585 else
15586 case "$cc_basename" in
15587 xlc*)
15588 output_verbose_link_cmd='echo'
15589 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15590 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15591 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +000015592 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15593 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015594 ;;
15595 *)
15596 ld_shlibs_CXX=no
15597 ;;
15598 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015599 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015600 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015601
15602 dgux*)
15603 case $cc_basename in
15604 ec++)
15605 # FIXME: insert proper C++ library support
15606 ld_shlibs_CXX=no
15607 ;;
15608 ghcx)
15609 # Green Hills C++ Compiler
15610 # FIXME: insert proper C++ library support
15611 ld_shlibs_CXX=no
15612 ;;
15613 *)
15614 # FIXME: insert proper C++ library support
15615 ld_shlibs_CXX=no
15616 ;;
15617 esac
15618 ;;
15619 freebsd12*)
15620 # C++ shared libraries reported to be fairly broken before switch to ELF
15621 ld_shlibs_CXX=no
15622 ;;
15623 freebsd-elf*)
15624 archive_cmds_need_lc_CXX=no
15625 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015626 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015627 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15628 # conventions
15629 ld_shlibs_CXX=yes
15630 ;;
15631 gnu*)
15632 ;;
15633 hpux9*)
15634 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15635 hardcode_libdir_separator_CXX=:
15636 export_dynamic_flag_spec_CXX='${wl}-E'
15637 hardcode_direct_CXX=yes
15638 hardcode_minus_L_CXX=yes # Not in the search PATH,
15639 # but as the default
15640 # location of the library.
15641
15642 case $cc_basename in
15643 CC)
15644 # FIXME: insert proper C++ library support
15645 ld_shlibs_CXX=no
15646 ;;
15647 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015648 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'
John Criswell47fdd832003-07-14 16:52:07 +000015649 # Commands to make compiler produce verbose output that lists
15650 # what "hidden" libraries, object files and flags are used when
15651 # linking a shared library.
15652 #
15653 # There doesn't appear to be a way to prevent this compiler from
15654 # explicitly linking system object files so we need to strip them
15655 # from the output so that they don't get included in the library
15656 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015657 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'
John Criswell47fdd832003-07-14 16:52:07 +000015658 ;;
15659 *)
15660 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015661 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'
John Criswell47fdd832003-07-14 16:52:07 +000015662 else
15663 # FIXME: insert proper C++ library support
15664 ld_shlibs_CXX=no
15665 fi
15666 ;;
15667 esac
15668 ;;
15669 hpux10*|hpux11*)
15670 if test $with_gnu_ld = no; then
15671 case "$host_cpu" in
15672 hppa*64*)
15673 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15674 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15675 hardcode_libdir_separator_CXX=:
15676 ;;
15677 ia64*)
15678 hardcode_libdir_flag_spec_CXX='-L$libdir'
15679 ;;
15680 *)
15681 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15682 hardcode_libdir_separator_CXX=:
15683 export_dynamic_flag_spec_CXX='${wl}-E'
15684 ;;
15685 esac
15686 fi
15687 case "$host_cpu" in
15688 hppa*64*)
15689 hardcode_direct_CXX=no
15690 hardcode_shlibpath_var_CXX=no
15691 ;;
15692 ia64*)
15693 hardcode_direct_CXX=no
15694 hardcode_shlibpath_var_CXX=no
15695 hardcode_minus_L_CXX=yes # Not in the search PATH,
15696 # but as the default
15697 # location of the library.
15698 ;;
15699 *)
15700 hardcode_direct_CXX=yes
15701 hardcode_minus_L_CXX=yes # Not in the search PATH,
15702 # but as the default
15703 # location of the library.
15704 ;;
15705 esac
15706
15707 case $cc_basename in
15708 CC)
15709 # FIXME: insert proper C++ library support
15710 ld_shlibs_CXX=no
15711 ;;
15712 aCC)
15713 case "$host_cpu" in
15714 hppa*64*|ia64*)
15715 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15716 ;;
15717 *)
15718 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15719 ;;
15720 esac
15721 # Commands to make compiler produce verbose output that lists
15722 # what "hidden" libraries, object files and flags are used when
15723 # linking a shared library.
15724 #
15725 # There doesn't appear to be a way to prevent this compiler from
15726 # explicitly linking system object files so we need to strip them
15727 # from the output so that they don't get included in the library
15728 # dependencies.
15729 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'
15730 ;;
15731 *)
15732 if test "$GXX" = yes; then
15733 if test $with_gnu_ld = no; then
15734 case "$host_cpu" in
15735 ia64*|hppa*64*)
15736 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15737 ;;
15738 *)
15739 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'
15740 ;;
15741 esac
15742 fi
15743 else
15744 # FIXME: insert proper C++ library support
15745 ld_shlibs_CXX=no
15746 fi
15747 ;;
15748 esac
15749 ;;
15750 irix5* | irix6*)
15751 case $cc_basename in
15752 CC)
15753 # SGI C++
15754 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'
15755
15756 # Archives containing C++ object files must be created using
15757 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15758 # necessary to make sure instantiated templates are included
15759 # in the archive.
15760 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15761 ;;
15762 *)
15763 if test "$GXX" = yes; then
15764 if test "$with_gnu_ld" = no; then
15765 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'
15766 else
15767 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'
15768 fi
15769 fi
15770 link_all_deplibs_CXX=yes
15771 ;;
15772 esac
15773 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15774 hardcode_libdir_separator_CXX=:
15775 ;;
15776 linux*)
15777 case $cc_basename in
15778 KCC)
15779 # Kuck and Associates, Inc. (KAI) C++ Compiler
15780
15781 # KCC will only create a shared library if the output file
15782 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15783 # to its proper name (with version) after linking.
15784 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'
15785 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'
15786 # Commands to make compiler produce verbose output that lists
15787 # what "hidden" libraries, object files and flags are used when
15788 # linking a shared library.
15789 #
15790 # There doesn't appear to be a way to prevent this compiler from
15791 # explicitly linking system object files so we need to strip them
15792 # from the output so that they don't get included in the library
15793 # dependencies.
15794 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'
15795
15796 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15797 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15798
15799 # Archives containing C++ object files must be created using
15800 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15801 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15802 ;;
15803 icpc)
15804 # Intel C++
15805 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015806 # version 8.0 and above of icpc choke on multiply defined symbols
15807 # if we add $predep_objects and $postdep_objects, however 7.1 and
15808 # earlier do not add the objects themselves.
15809 case `$CC -V 2>&1` in
15810 *"Version 7."*)
15811 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15812 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'
15813 ;;
15814 *) # Version 8.0 or newer
15815 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15816 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15817 ;;
15818 esac
John Criswell47fdd832003-07-14 16:52:07 +000015819 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000015820 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15821 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15822 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15823 ;;
15824 cxx)
15825 # Compaq C++
15826 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15827 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'
15828
15829 runpath_var=LD_RUN_PATH
15830 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15831 hardcode_libdir_separator_CXX=:
15832
15833 # Commands to make compiler produce verbose output that lists
15834 # what "hidden" libraries, object files and flags are used when
15835 # linking a shared library.
15836 #
15837 # There doesn't appear to be a way to prevent this compiler from
15838 # explicitly linking system object files so we need to strip them
15839 # from the output so that they don't get included in the library
15840 # dependencies.
15841 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'
15842 ;;
15843 esac
15844 ;;
15845 lynxos*)
15846 # FIXME: insert proper C++ library support
15847 ld_shlibs_CXX=no
15848 ;;
15849 m88k*)
15850 # FIXME: insert proper C++ library support
15851 ld_shlibs_CXX=no
15852 ;;
15853 mvs*)
15854 case $cc_basename in
15855 cxx)
15856 # FIXME: insert proper C++ library support
15857 ld_shlibs_CXX=no
15858 ;;
15859 *)
15860 # FIXME: insert proper C++ library support
15861 ld_shlibs_CXX=no
15862 ;;
15863 esac
15864 ;;
15865 netbsd*)
15866 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15867 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15868 wlarc=
15869 hardcode_libdir_flag_spec_CXX='-R$libdir'
15870 hardcode_direct_CXX=yes
15871 hardcode_shlibpath_var_CXX=no
15872 fi
15873 # Workaround some broken pre-1.5 toolchains
15874 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15875 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015876 openbsd2*)
15877 # C++ shared libraries are fairly broken
15878 ld_shlibs_CXX=no
15879 ;;
15880 openbsd*)
15881 hardcode_direct_CXX=yes
15882 hardcode_shlibpath_var_CXX=no
15883 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15884 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15885 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15886 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15887 export_dynamic_flag_spec_CXX='${wl}-E'
15888 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15889 fi
15890 output_verbose_link_cmd='echo'
15891 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015892 osf3*)
15893 case $cc_basename in
15894 KCC)
15895 # Kuck and Associates, Inc. (KAI) C++ Compiler
15896
15897 # KCC will only create a shared library if the output file
15898 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15899 # to its proper name (with version) after linking.
15900 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'
15901
15902 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15903 hardcode_libdir_separator_CXX=:
15904
15905 # Archives containing C++ object files must be created using
15906 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15907 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15908
15909 ;;
15910 RCC)
15911 # Rational C++ 2.4.1
15912 # FIXME: insert proper C++ library support
15913 ld_shlibs_CXX=no
15914 ;;
15915 cxx)
15916 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15917 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'
15918
15919 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15920 hardcode_libdir_separator_CXX=:
15921
15922 # Commands to make compiler produce verbose output that lists
15923 # what "hidden" libraries, object files and flags are used when
15924 # linking a shared library.
15925 #
15926 # There doesn't appear to be a way to prevent this compiler from
15927 # explicitly linking system object files so we need to strip them
15928 # from the output so that they don't get included in the library
15929 # dependencies.
15930 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'
15931 ;;
15932 *)
15933 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15934 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15935 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'
15936
15937 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15938 hardcode_libdir_separator_CXX=:
15939
15940 # Commands to make compiler produce verbose output that lists
15941 # what "hidden" libraries, object files and flags are used when
15942 # linking a shared library.
15943 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15944
15945 else
15946 # FIXME: insert proper C++ library support
15947 ld_shlibs_CXX=no
15948 fi
15949 ;;
15950 esac
15951 ;;
15952 osf4* | osf5*)
15953 case $cc_basename in
15954 KCC)
15955 # Kuck and Associates, Inc. (KAI) C++ Compiler
15956
15957 # KCC will only create a shared library if the output file
15958 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15959 # to its proper name (with version) after linking.
15960 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'
15961
15962 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15963 hardcode_libdir_separator_CXX=:
15964
15965 # Archives containing C++ object files must be created using
15966 # the KAI C++ compiler.
15967 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15968 ;;
15969 RCC)
15970 # Rational C++ 2.4.1
15971 # FIXME: insert proper C++ library support
15972 ld_shlibs_CXX=no
15973 ;;
15974 cxx)
15975 allow_undefined_flag_CXX=' -expect_unresolved \*'
15976 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'
Reid Spencer177dbe22004-10-13 01:01:03 +000015977 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15978 echo "-hidden">> $lib.exp~
15979 $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~
15980 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000015981
15982 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15983 hardcode_libdir_separator_CXX=:
15984
15985 # Commands to make compiler produce verbose output that lists
15986 # what "hidden" libraries, object files and flags are used when
15987 # linking a shared library.
15988 #
15989 # There doesn't appear to be a way to prevent this compiler from
15990 # explicitly linking system object files so we need to strip them
15991 # from the output so that they don't get included in the library
15992 # dependencies.
15993 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'
15994 ;;
15995 *)
15996 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15997 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15998 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'
15999
16000 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16001 hardcode_libdir_separator_CXX=:
16002
16003 # Commands to make compiler produce verbose output that lists
16004 # what "hidden" libraries, object files and flags are used when
16005 # linking a shared library.
16006 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16007
16008 else
16009 # FIXME: insert proper C++ library support
16010 ld_shlibs_CXX=no
16011 fi
16012 ;;
16013 esac
16014 ;;
16015 psos*)
16016 # FIXME: insert proper C++ library support
16017 ld_shlibs_CXX=no
16018 ;;
16019 sco*)
16020 archive_cmds_need_lc_CXX=no
16021 case $cc_basename in
16022 CC)
16023 # FIXME: insert proper C++ library support
16024 ld_shlibs_CXX=no
16025 ;;
16026 *)
16027 # FIXME: insert proper C++ library support
16028 ld_shlibs_CXX=no
16029 ;;
16030 esac
16031 ;;
16032 sunos4*)
16033 case $cc_basename in
16034 CC)
16035 # Sun C++ 4.x
16036 # FIXME: insert proper C++ library support
16037 ld_shlibs_CXX=no
16038 ;;
16039 lcc)
16040 # Lucid
16041 # FIXME: insert proper C++ library support
16042 ld_shlibs_CXX=no
16043 ;;
16044 *)
16045 # FIXME: insert proper C++ library support
16046 ld_shlibs_CXX=no
16047 ;;
16048 esac
16049 ;;
16050 solaris*)
16051 case $cc_basename in
16052 CC)
16053 # Sun C++ 4.2, 5.x and Centerline C++
16054 no_undefined_flag_CXX=' -zdefs'
16055 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016056 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16057 $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'
John Criswell47fdd832003-07-14 16:52:07 +000016058
16059 hardcode_libdir_flag_spec_CXX='-R$libdir'
16060 hardcode_shlibpath_var_CXX=no
16061 case $host_os in
16062 solaris2.0-5 | solaris2.0-5.*) ;;
16063 *)
16064 # The C++ compiler is used as linker so we must use $wl
16065 # flag to pass the commands to the underlying system
16066 # linker.
16067 # Supported since Solaris 2.6 (maybe 2.5.1?)
16068 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16069 ;;
16070 esac
16071 link_all_deplibs_CXX=yes
16072
16073 # Commands to make compiler produce verbose output that lists
16074 # what "hidden" libraries, object files and flags are used when
16075 # linking a shared library.
16076 #
16077 # There doesn't appear to be a way to prevent this compiler from
16078 # explicitly linking system object files so we need to strip them
16079 # from the output so that they don't get included in the library
16080 # dependencies.
16081 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'
16082
16083 # Archives containing C++ object files must be created using
16084 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16085 # necessary to make sure instantiated templates are included
16086 # in the archive.
16087 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16088 ;;
16089 gcx)
16090 # Green Hills C++ Compiler
16091 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16092
16093 # The C++ compiler must be used to create the archive.
16094 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16095 ;;
16096 *)
16097 # GNU C++ compiler with Solaris linker
16098 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16099 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16100 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016101 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Reid Spencer177dbe22004-10-13 01:01:03 +000016102 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16103 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16104
John Criswell47fdd832003-07-14 16:52:07 +000016105 # Commands to make compiler produce verbose output that lists
16106 # what "hidden" libraries, object files and flags are used when
16107 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016108 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016109 else
16110 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16111 # platform.
16112 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Reid Spencer177dbe22004-10-13 01:01:03 +000016113 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16114 $CC -G -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 +000016115
16116 # Commands to make compiler produce verbose output that lists
16117 # what "hidden" libraries, object files and flags are used when
16118 # linking a shared library.
16119 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16120 fi
16121
16122 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16123 fi
16124 ;;
16125 esac
16126 ;;
16127 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16128 archive_cmds_need_lc_CXX=no
16129 ;;
16130 tandem*)
16131 case $cc_basename in
16132 NCC)
16133 # NonStop-UX NCC 3.20
16134 # FIXME: insert proper C++ library support
16135 ld_shlibs_CXX=no
16136 ;;
16137 *)
16138 # FIXME: insert proper C++ library support
16139 ld_shlibs_CXX=no
16140 ;;
16141 esac
16142 ;;
16143 vxworks*)
16144 # FIXME: insert proper C++ library support
16145 ld_shlibs_CXX=no
16146 ;;
16147 *)
16148 # FIXME: insert proper C++ library support
16149 ld_shlibs_CXX=no
16150 ;;
16151esac
16152echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16153echo "${ECHO_T}$ld_shlibs_CXX" >&6
16154test "$ld_shlibs_CXX" = no && can_build_shared=no
16155
16156GCC_CXX="$GXX"
16157LD_CXX="$LD"
16158
John Criswell47fdd832003-07-14 16:52:07 +000016159
16160cat > conftest.$ac_ext <<EOF
16161class Foo
16162{
16163public:
16164 Foo (void) { a = 0; }
16165private:
16166 int a;
16167};
16168EOF
16169
16170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16171 (eval $ac_compile) 2>&5
16172 ac_status=$?
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); }; then
16175 # Parse the compiler output and extract the necessary
16176 # objects, libraries and library flags.
16177
16178 # Sentinel used to keep track of whether or not we are before
16179 # the conftest object file.
16180 pre_test_object_deps_done=no
16181
16182 # The `*' in the case matches for architectures that use `case' in
16183 # $output_verbose_cmd can trigger glob expansion during the loop
16184 # eval without this substitution.
16185 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16186
16187 for p in `eval $output_verbose_link_cmd`; do
16188 case $p in
16189
16190 -L* | -R* | -l*)
16191 # Some compilers place space between "-{L,R}" and the path.
16192 # Remove the space.
16193 if test $p = "-L" \
16194 || test $p = "-R"; then
16195 prev=$p
16196 continue
16197 else
16198 prev=
16199 fi
16200
16201 if test "$pre_test_object_deps_done" = no; then
16202 case $p in
16203 -L* | -R*)
16204 # Internal compiler library paths should come after those
16205 # provided the user. The postdeps already come after the
16206 # user supplied libs so there is no need to process them.
16207 if test -z "$compiler_lib_search_path_CXX"; then
16208 compiler_lib_search_path_CXX="${prev}${p}"
16209 else
16210 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16211 fi
16212 ;;
16213 # The "-l" case would never come before the object being
16214 # linked, so don't bother handling this case.
16215 esac
16216 else
16217 if test -z "$postdeps_CXX"; then
16218 postdeps_CXX="${prev}${p}"
16219 else
16220 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16221 fi
16222 fi
16223 ;;
16224
16225 *.$objext)
16226 # This assumes that the test object file only shows up
16227 # once in the compiler output.
16228 if test "$p" = "conftest.$objext"; then
16229 pre_test_object_deps_done=yes
16230 continue
16231 fi
16232
16233 if test "$pre_test_object_deps_done" = no; then
16234 if test -z "$predep_objects_CXX"; then
16235 predep_objects_CXX="$p"
16236 else
16237 predep_objects_CXX="$predep_objects_CXX $p"
16238 fi
16239 else
16240 if test -z "$postdep_objects_CXX"; then
16241 postdep_objects_CXX="$p"
16242 else
16243 postdep_objects_CXX="$postdep_objects_CXX $p"
16244 fi
16245 fi
16246 ;;
16247
16248 *) ;; # Ignore the rest.
16249
16250 esac
16251 done
16252
16253 # Clean up.
16254 rm -f a.out a.exe
16255else
16256 echo "libtool.m4: error: problem compiling CXX test program"
16257fi
16258
16259$rm -f confest.$objext
16260
16261case " $postdeps_CXX " in
16262*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16263esac
16264
16265lt_prog_compiler_wl_CXX=
16266lt_prog_compiler_pic_CXX=
16267lt_prog_compiler_static_CXX=
16268
16269echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16270echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16271
16272 # C++ specific cases for pic, static, wl, etc.
16273 if test "$GXX" = yes; then
16274 lt_prog_compiler_wl_CXX='-Wl,'
16275 lt_prog_compiler_static_CXX='-static'
16276
16277 case $host_os in
16278 aix*)
16279 # All AIX code is PIC.
16280 if test "$host_cpu" = ia64; then
16281 # AIX 5 now supports IA64 processor
16282 lt_prog_compiler_static_CXX='-Bstatic'
16283 fi
16284 ;;
16285 amigaos*)
16286 # FIXME: we need at least 68020 code to build shared libraries, but
16287 # adding the `-m68020' flag to GCC prevents building anything better,
16288 # like `-m68040'.
16289 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16290 ;;
16291 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16292 # PIC is the default for these OSes.
16293 ;;
16294 mingw* | os2* | pw32*)
16295 # This hack is so that the source file can tell whether it is being
16296 # built for inclusion in a dll (and should export symbols for example).
16297 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16298 ;;
16299 darwin* | rhapsody*)
16300 # PIC is the default on this platform
16301 # Common symbols not allowed in MH_DYLIB files
16302 lt_prog_compiler_pic_CXX='-fno-common'
16303 ;;
16304 *djgpp*)
16305 # DJGPP does not support shared libraries at all
16306 lt_prog_compiler_pic_CXX=
16307 ;;
16308 sysv4*MP*)
16309 if test -d /usr/nec; then
16310 lt_prog_compiler_pic_CXX=-Kconform_pic
16311 fi
16312 ;;
16313 hpux*)
16314 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16315 # not for PA HP-UX.
16316 case "$host_cpu" in
16317 hppa*64*|ia64*)
16318 ;;
16319 *)
16320 lt_prog_compiler_pic_CXX='-fPIC'
16321 ;;
16322 esac
16323 ;;
16324 *)
16325 lt_prog_compiler_pic_CXX='-fPIC'
16326 ;;
16327 esac
16328 else
16329 case $host_os in
16330 aix4* | aix5*)
16331 # All AIX code is PIC.
16332 if test "$host_cpu" = ia64; then
16333 # AIX 5 now supports IA64 processor
16334 lt_prog_compiler_static_CXX='-Bstatic'
16335 else
16336 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16337 fi
16338 ;;
16339 chorus*)
16340 case $cc_basename in
16341 cxch68)
16342 # Green Hills C++ Compiler
16343 # _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"
16344 ;;
16345 esac
16346 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016347 darwin*)
16348 # PIC is the default on this platform
16349 # Common symbols not allowed in MH_DYLIB files
16350 case "$cc_basename" in
16351 xlc*)
16352 lt_prog_compiler_pic_CXX='-qnocommon'
16353 lt_prog_compiler_wl_CXX='-Wl,'
16354 ;;
16355 esac
16356 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016357 dgux*)
16358 case $cc_basename in
16359 ec++)
16360 lt_prog_compiler_pic_CXX='-KPIC'
16361 ;;
16362 ghcx)
16363 # Green Hills C++ Compiler
16364 lt_prog_compiler_pic_CXX='-pic'
16365 ;;
16366 *)
16367 ;;
16368 esac
16369 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016370 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016371 # FreeBSD uses GNU C++
16372 ;;
16373 hpux9* | hpux10* | hpux11*)
16374 case $cc_basename in
16375 CC)
16376 lt_prog_compiler_wl_CXX='-Wl,'
16377 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16378 if test "$host_cpu" != ia64; then
16379 lt_prog_compiler_pic_CXX='+Z'
16380 fi
16381 ;;
16382 aCC)
16383 lt_prog_compiler_wl_CXX='-Wl,'
16384 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16385 case "$host_cpu" in
16386 hppa*64*|ia64*)
16387 # +Z the default
16388 ;;
16389 *)
16390 lt_prog_compiler_pic_CXX='+Z'
16391 ;;
16392 esac
16393 ;;
16394 *)
16395 ;;
16396 esac
16397 ;;
16398 irix5* | irix6* | nonstopux*)
16399 case $cc_basename in
16400 CC)
16401 lt_prog_compiler_wl_CXX='-Wl,'
16402 lt_prog_compiler_static_CXX='-non_shared'
16403 # CC pic flag -KPIC is the default.
16404 ;;
16405 *)
16406 ;;
16407 esac
16408 ;;
16409 linux*)
16410 case $cc_basename in
16411 KCC)
16412 # KAI C++ Compiler
16413 lt_prog_compiler_wl_CXX='--backend -Wl,'
16414 lt_prog_compiler_pic_CXX='-fPIC'
16415 ;;
16416 icpc)
16417 # Intel C++
16418 lt_prog_compiler_wl_CXX='-Wl,'
16419 lt_prog_compiler_pic_CXX='-KPIC'
16420 lt_prog_compiler_static_CXX='-static'
16421 ;;
16422 cxx)
16423 # Compaq C++
16424 # Make sure the PIC flag is empty. It appears that all Alpha
16425 # Linux and Compaq Tru64 Unix objects are PIC.
16426 lt_prog_compiler_pic_CXX=
16427 lt_prog_compiler_static_CXX='-non_shared'
16428 ;;
16429 *)
16430 ;;
16431 esac
16432 ;;
16433 lynxos*)
16434 ;;
16435 m88k*)
16436 ;;
16437 mvs*)
16438 case $cc_basename in
16439 cxx)
16440 lt_prog_compiler_pic_CXX='-W c,exportall'
16441 ;;
16442 *)
16443 ;;
16444 esac
16445 ;;
16446 netbsd*)
16447 ;;
16448 osf3* | osf4* | osf5*)
16449 case $cc_basename in
16450 KCC)
16451 lt_prog_compiler_wl_CXX='--backend -Wl,'
16452 ;;
16453 RCC)
16454 # Rational C++ 2.4.1
16455 lt_prog_compiler_pic_CXX='-pic'
16456 ;;
16457 cxx)
16458 # Digital/Compaq C++
16459 lt_prog_compiler_wl_CXX='-Wl,'
16460 # Make sure the PIC flag is empty. It appears that all Alpha
16461 # Linux and Compaq Tru64 Unix objects are PIC.
16462 lt_prog_compiler_pic_CXX=
16463 lt_prog_compiler_static_CXX='-non_shared'
16464 ;;
16465 *)
16466 ;;
16467 esac
16468 ;;
16469 psos*)
16470 ;;
16471 sco*)
16472 case $cc_basename in
16473 CC)
16474 lt_prog_compiler_pic_CXX='-fPIC'
16475 ;;
16476 *)
16477 ;;
16478 esac
16479 ;;
16480 solaris*)
16481 case $cc_basename in
16482 CC)
16483 # Sun C++ 4.2, 5.x and Centerline C++
16484 lt_prog_compiler_pic_CXX='-KPIC'
16485 lt_prog_compiler_static_CXX='-Bstatic'
16486 lt_prog_compiler_wl_CXX='-Qoption ld '
16487 ;;
16488 gcx)
16489 # Green Hills C++ Compiler
16490 lt_prog_compiler_pic_CXX='-PIC'
16491 ;;
16492 *)
16493 ;;
16494 esac
16495 ;;
16496 sunos4*)
16497 case $cc_basename in
16498 CC)
16499 # Sun C++ 4.x
16500 lt_prog_compiler_pic_CXX='-pic'
16501 lt_prog_compiler_static_CXX='-Bstatic'
16502 ;;
16503 lcc)
16504 # Lucid
16505 lt_prog_compiler_pic_CXX='-pic'
16506 ;;
16507 *)
16508 ;;
16509 esac
16510 ;;
16511 tandem*)
16512 case $cc_basename in
16513 NCC)
16514 # NonStop-UX NCC 3.20
16515 lt_prog_compiler_pic_CXX='-KPIC'
16516 ;;
16517 *)
16518 ;;
16519 esac
16520 ;;
16521 unixware*)
16522 ;;
16523 vxworks*)
16524 ;;
16525 *)
16526 lt_prog_compiler_can_build_shared_CXX=no
16527 ;;
16528 esac
16529 fi
16530
16531echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16532echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16533
16534#
16535# Check to make sure the PIC flag actually works.
16536#
16537if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016538
16539echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016540echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16541if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16542 echo $ECHO_N "(cached) $ECHO_C" >&6
16543else
16544 lt_prog_compiler_pic_works_CXX=no
16545 ac_outfile=conftest.$ac_objext
16546 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16547 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16548 # Insert the option either (1) after the last *FLAGS variable, or
16549 # (2) before a word containing "conftest.", or (3) at the end.
16550 # Note that $ac_compile itself does not contain backslashes and begins
16551 # with a dollar sign (not a hyphen), so the echo should work correctly.
16552 # The option is referenced via a variable to avoid confusing sed.
16553 lt_compile=`echo "$ac_compile" | $SED \
16554 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16556 -e 's:$: $lt_compiler_flag:'`
Reid Spencer502935f2004-12-22 05:56:56 +000016557 (eval echo "\"\$as_me:16557: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016558 (eval "$lt_compile" 2>conftest.err)
16559 ac_status=$?
16560 cat conftest.err >&5
Reid Spencer502935f2004-12-22 05:56:56 +000016561 echo "$as_me:16561: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016562 if (exit $ac_status) && test -s "$ac_outfile"; then
16563 # The compiler can only warn and ignore the option if not recognized
16564 # So say no if there are warnings
16565 if test ! -s conftest.err; then
16566 lt_prog_compiler_pic_works_CXX=yes
16567 fi
16568 fi
16569 $rm conftest*
16570
16571fi
16572echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16573echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16574
16575if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16576 case $lt_prog_compiler_pic_CXX in
16577 "" | " "*) ;;
16578 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16579 esac
16580else
16581 lt_prog_compiler_pic_CXX=
16582 lt_prog_compiler_can_build_shared_CXX=no
16583fi
16584
16585fi
16586case "$host_os" in
16587 # For platforms which do not support PIC, -DPIC is meaningless:
16588 *djgpp*)
16589 lt_prog_compiler_pic_CXX=
16590 ;;
16591 *)
16592 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16593 ;;
16594esac
16595
16596echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16597echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16598if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16599 echo $ECHO_N "(cached) $ECHO_C" >&6
16600else
16601 lt_cv_prog_compiler_c_o_CXX=no
16602 $rm -r conftest 2>/dev/null
16603 mkdir conftest
16604 cd conftest
16605 mkdir out
16606 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16607
John Criswell47fdd832003-07-14 16:52:07 +000016608 lt_compiler_flag="-o out/conftest2.$ac_objext"
16609 # Insert the option either (1) after the last *FLAGS variable, or
16610 # (2) before a word containing "conftest.", or (3) at the end.
16611 # Note that $ac_compile itself does not contain backslashes and begins
16612 # with a dollar sign (not a hyphen), so the echo should work correctly.
16613 lt_compile=`echo "$ac_compile" | $SED \
16614 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16615 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16616 -e 's:$: $lt_compiler_flag:'`
Reid Spencer502935f2004-12-22 05:56:56 +000016617 (eval echo "\"\$as_me:16617: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016618 (eval "$lt_compile" 2>out/conftest.err)
16619 ac_status=$?
16620 cat out/conftest.err >&5
Reid Spencer502935f2004-12-22 05:56:56 +000016621 echo "$as_me:16621: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016622 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16623 then
16624 # The compiler can only warn and ignore the option if not recognized
16625 # So say no if there are warnings
16626 if test ! -s out/conftest.err; then
16627 lt_cv_prog_compiler_c_o_CXX=yes
16628 fi
16629 fi
16630 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016631 $rm conftest*
16632 # SGI C++ compiler will create directory out/ii_files/ for
16633 # template instantiation
16634 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16635 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016636 cd ..
16637 rmdir conftest
16638 $rm conftest*
16639
16640fi
16641echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16642echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16643
16644
16645hard_links="nottested"
16646if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16647 # do not overwrite the value of need_locks provided by the user
16648 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16649echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16650 hard_links=yes
16651 $rm conftest*
16652 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16653 touch conftest.a
16654 ln conftest.a conftest.b 2>&5 || hard_links=no
16655 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16656 echo "$as_me:$LINENO: result: $hard_links" >&5
16657echo "${ECHO_T}$hard_links" >&6
16658 if test "$hard_links" = no; then
16659 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16660echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16661 need_locks=warn
16662 fi
16663else
16664 need_locks=no
16665fi
16666
16667echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16668echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16669
16670 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16671 case $host_os in
16672 aix4* | aix5*)
16673 # If we're using GNU nm, then we don't want the "-C" option.
16674 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16675 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16676 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'
16677 else
16678 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'
16679 fi
16680 ;;
16681 pw32*)
16682 export_symbols_cmds_CXX="$ltdll_cmds"
16683 ;;
16684 cygwin* | mingw*)
16685 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16686 ;;
16687 *)
16688 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16689 ;;
16690 esac
16691
16692echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16693echo "${ECHO_T}$ld_shlibs_CXX" >&6
16694test "$ld_shlibs_CXX" = no && can_build_shared=no
16695
16696variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16697if test "$GCC" = yes; then
16698 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16699fi
16700
16701#
16702# Do we need to explicitly link libc?
16703#
16704case "x$archive_cmds_need_lc_CXX" in
16705x|xyes)
16706 # Assume -lc should be added
16707 archive_cmds_need_lc_CXX=yes
16708
16709 if test "$enable_shared" = yes && test "$GCC" = yes; then
16710 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016711 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016712 # FIXME: we may have to deal with multi-command sequences.
16713 ;;
16714 '$CC '*)
16715 # Test whether the compiler implicitly links with -lc since on some
16716 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16717 # to ld, don't add -lc before -lgcc.
16718 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16719echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16720 $rm conftest*
16721 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16722
16723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16724 (eval $ac_compile) 2>&5
16725 ac_status=$?
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); } 2>conftest.err; then
16728 soname=conftest
16729 lib=conftest
16730 libobjs=conftest.$ac_objext
16731 deplibs=
16732 wl=$lt_prog_compiler_wl_CXX
16733 compiler_flags=-v
16734 linker_flags=-v
16735 verstring=
16736 output_objdir=.
16737 libname=conftest
16738 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16739 allow_undefined_flag_CXX=
16740 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16741 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16742 ac_status=$?
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); }
16745 then
16746 archive_cmds_need_lc_CXX=no
16747 else
16748 archive_cmds_need_lc_CXX=yes
16749 fi
16750 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16751 else
16752 cat conftest.err 1>&5
16753 fi
16754 $rm conftest*
16755 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16756echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16757 ;;
16758 esac
16759 fi
16760 ;;
16761esac
16762
John Criswell47fdd832003-07-14 16:52:07 +000016763echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16764echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16765library_names_spec=
16766libname_spec='lib$name'
16767soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016768shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016769postinstall_cmds=
16770postuninstall_cmds=
16771finish_cmds=
16772finish_eval=
16773shlibpath_var=
16774shlibpath_overrides_runpath=unknown
16775version_type=none
16776dynamic_linker="$host_os ld.so"
16777sys_lib_dlsearch_path_spec="/lib /usr/lib"
16778if test "$GCC" = yes; then
16779 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16780 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16781 # if the path contains ";" then we assume it to be the separator
16782 # otherwise default to the standard path separator (i.e. ":") - it is
16783 # assumed that no part of a normal pathname contains ";" but that should
16784 # okay in the real world where ";" in dirpaths is itself problematic.
16785 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16786 else
16787 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16788 fi
16789else
16790 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16791fi
16792need_lib_prefix=unknown
16793hardcode_into_libs=no
16794
16795# when you set need_version to no, make sure it does not cause -set_version
16796# flags to be left without arguments
16797need_version=unknown
16798
16799case $host_os in
16800aix3*)
16801 version_type=linux
16802 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16803 shlibpath_var=LIBPATH
16804
16805 # AIX 3 has no versioning support, so we append a major version to the name.
16806 soname_spec='${libname}${release}${shared_ext}$major'
16807 ;;
16808
16809aix4* | aix5*)
16810 version_type=linux
16811 need_lib_prefix=no
16812 need_version=no
16813 hardcode_into_libs=yes
16814 if test "$host_cpu" = ia64; then
16815 # AIX 5 supports IA64
16816 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16817 shlibpath_var=LD_LIBRARY_PATH
16818 else
16819 # With GCC up to 2.95.x, collect2 would create an import file
16820 # for dependence libraries. The import file would start with
16821 # the line `#! .'. This would cause the generated library to
16822 # depend on `.', always an invalid library. This was fixed in
16823 # development snapshots of GCC prior to 3.0.
16824 case $host_os in
16825 aix4 | aix4.[01] | aix4.[01].*)
16826 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16827 echo ' yes '
16828 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16829 :
16830 else
16831 can_build_shared=no
16832 fi
16833 ;;
16834 esac
16835 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16836 # soname into executable. Probably we can add versioning support to
16837 # collect2, so additional links can be useful in future.
16838 if test "$aix_use_runtimelinking" = yes; then
16839 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16840 # instead of lib<name>.a to let people know that these are not
16841 # typical AIX shared libraries.
16842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16843 else
16844 # We preserve .a as extension for shared libraries through AIX4.2
16845 # and later when we are not doing run time linking.
16846 library_names_spec='${libname}${release}.a $libname.a'
16847 soname_spec='${libname}${release}${shared_ext}$major'
16848 fi
16849 shlibpath_var=LIBPATH
16850 fi
16851 ;;
16852
16853amigaos*)
16854 library_names_spec='$libname.ixlibrary $libname.a'
16855 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016856 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 +000016857 ;;
16858
16859beos*)
16860 library_names_spec='${libname}${shared_ext}'
16861 dynamic_linker="$host_os ld.so"
16862 shlibpath_var=LIBRARY_PATH
16863 ;;
16864
Reid Spencer2706f8c2004-09-19 23:53:36 +000016865bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016866 version_type=linux
16867 need_version=no
16868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16869 soname_spec='${libname}${release}${shared_ext}$major'
16870 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16871 shlibpath_var=LD_LIBRARY_PATH
16872 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16873 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16874 # the default ld.so.conf also contains /usr/contrib/lib and
16875 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16876 # libtool to hard-code these into programs
16877 ;;
16878
16879cygwin* | mingw* | pw32*)
16880 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016881 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016882 need_version=no
16883 need_lib_prefix=no
16884
16885 case $GCC,$host_os in
16886 yes,cygwin* | yes,mingw* | yes,pw32*)
16887 library_names_spec='$libname.dll.a'
16888 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016889 postinstall_cmds='base_file=`basename \${file}`~
16890 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16891 dldir=$destdir/`dirname \$dlpath`~
16892 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000016893 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016894 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16895 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000016896 $rm \$dlpath'
16897 shlibpath_overrides_runpath=yes
16898
16899 case $host_os in
16900 cygwin*)
16901 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16902 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016903 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016904 ;;
16905 mingw*)
16906 # MinGW DLLs use traditional 'lib' prefix
16907 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16908 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16909 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16910 # It is most probably a Windows format PATH printed by
16911 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16912 # path with ; separators, and with drive letters. We can handle the
16913 # drive letters (cygwin fileutils understands them), so leave them,
16914 # especially as we might pass files found there to a mingw objdump,
16915 # which wouldn't understand a cygwinified path. Ahh.
16916 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16917 else
16918 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16919 fi
16920 ;;
16921 pw32*)
16922 # pw32 DLLs use 'pw' prefix rather than 'lib'
16923 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16924 ;;
16925 esac
16926 ;;
16927
16928 *)
16929 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16930 ;;
16931 esac
16932 dynamic_linker='Win32 ld.exe'
16933 # FIXME: first we should search . and the directory the executable is in
16934 shlibpath_var=PATH
16935 ;;
16936
16937darwin* | rhapsody*)
16938 dynamic_linker="$host_os dyld"
16939 version_type=darwin
16940 need_lib_prefix=no
16941 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016942 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016943 soname_spec='${libname}${release}${major}$shared_ext'
16944 shlibpath_overrides_runpath=yes
16945 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000016946 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000016947 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016948 if test "$GCC" = yes; then
16949 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"`
16950 else
16951 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016952 fi
16953 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16954 ;;
16955
16956dgux*)
16957 version_type=linux
16958 need_lib_prefix=no
16959 need_version=no
16960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16961 soname_spec='${libname}${release}${shared_ext}$major'
16962 shlibpath_var=LD_LIBRARY_PATH
16963 ;;
16964
16965freebsd1*)
16966 dynamic_linker=no
16967 ;;
16968
Reid Spencer2706f8c2004-09-19 23:53:36 +000016969kfreebsd*-gnu)
16970 version_type=linux
16971 need_lib_prefix=no
16972 need_version=no
16973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16974 soname_spec='${libname}${release}${shared_ext}$major'
16975 shlibpath_var=LD_LIBRARY_PATH
16976 shlibpath_overrides_runpath=no
16977 hardcode_into_libs=yes
16978 dynamic_linker='GNU ld.so'
16979 ;;
16980
John Criswell47fdd832003-07-14 16:52:07 +000016981freebsd*)
16982 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16983 version_type=freebsd-$objformat
16984 case $version_type in
16985 freebsd-elf*)
16986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16987 need_version=no
16988 need_lib_prefix=no
16989 ;;
16990 freebsd-*)
16991 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16992 need_version=yes
16993 ;;
16994 esac
16995 shlibpath_var=LD_LIBRARY_PATH
16996 case $host_os in
16997 freebsd2*)
16998 shlibpath_overrides_runpath=yes
16999 ;;
17000 freebsd3.01* | freebsdelf3.01*)
17001 shlibpath_overrides_runpath=yes
17002 hardcode_into_libs=yes
17003 ;;
17004 *) # from 3.2 on
17005 shlibpath_overrides_runpath=no
17006 hardcode_into_libs=yes
17007 ;;
17008 esac
17009 ;;
17010
17011gnu*)
17012 version_type=linux
17013 need_lib_prefix=no
17014 need_version=no
17015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17016 soname_spec='${libname}${release}${shared_ext}$major'
17017 shlibpath_var=LD_LIBRARY_PATH
17018 hardcode_into_libs=yes
17019 ;;
17020
17021hpux9* | hpux10* | hpux11*)
17022 # Give a soname corresponding to the major version so that dld.sl refuses to
17023 # link against other versions.
17024 version_type=sunos
17025 need_lib_prefix=no
17026 need_version=no
17027 case "$host_cpu" in
17028 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017029 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017030 hardcode_into_libs=yes
17031 dynamic_linker="$host_os dld.so"
17032 shlibpath_var=LD_LIBRARY_PATH
17033 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17035 soname_spec='${libname}${release}${shared_ext}$major'
17036 if test "X$HPUX_IA64_MODE" = X32; then
17037 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17038 else
17039 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17040 fi
17041 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17042 ;;
17043 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017044 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017045 hardcode_into_libs=yes
17046 dynamic_linker="$host_os dld.sl"
17047 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17048 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17050 soname_spec='${libname}${release}${shared_ext}$major'
17051 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17052 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17053 ;;
17054 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017055 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017056 dynamic_linker="$host_os dld.sl"
17057 shlibpath_var=SHLIB_PATH
17058 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17060 soname_spec='${libname}${release}${shared_ext}$major'
17061 ;;
17062 esac
17063 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17064 postinstall_cmds='chmod 555 $lib'
17065 ;;
17066
17067irix5* | irix6* | nonstopux*)
17068 case $host_os in
17069 nonstopux*) version_type=nonstopux ;;
17070 *)
17071 if test "$lt_cv_prog_gnu_ld" = yes; then
17072 version_type=linux
17073 else
17074 version_type=irix
17075 fi ;;
17076 esac
17077 need_lib_prefix=no
17078 need_version=no
17079 soname_spec='${libname}${release}${shared_ext}$major'
17080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17081 case $host_os in
17082 irix5* | nonstopux*)
17083 libsuff= shlibsuff=
17084 ;;
17085 *)
17086 case $LD in # libtool.m4 will add one of these switches to LD
17087 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17088 libsuff= shlibsuff= libmagic=32-bit;;
17089 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17090 libsuff=32 shlibsuff=N32 libmagic=N32;;
17091 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17092 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17093 *) libsuff= shlibsuff= libmagic=never-match;;
17094 esac
17095 ;;
17096 esac
17097 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17098 shlibpath_overrides_runpath=no
17099 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17100 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17101 hardcode_into_libs=yes
17102 ;;
17103
17104# No shared lib support for Linux oldld, aout, or coff.
17105linux*oldld* | linux*aout* | linux*coff*)
17106 dynamic_linker=no
17107 ;;
17108
17109# This must be Linux ELF.
17110linux*)
17111 version_type=linux
17112 need_lib_prefix=no
17113 need_version=no
17114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17115 soname_spec='${libname}${release}${shared_ext}$major'
17116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17117 shlibpath_var=LD_LIBRARY_PATH
17118 shlibpath_overrides_runpath=no
17119 # This implies no fast_install, which is unacceptable.
17120 # Some rework will be needed to allow for fast_install
17121 # before this can be enabled.
17122 hardcode_into_libs=yes
17123
Reid Spencer2706f8c2004-09-19 23:53:36 +000017124 # Append ld.so.conf contents to the search path
17125 if test -f /etc/ld.so.conf; then
17126 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17127 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17128 fi
17129
John Criswell47fdd832003-07-14 16:52:07 +000017130 # We used to test for /lib/ld.so.1 and disable shared libraries on
17131 # powerpc, because MkLinux only supported shared libraries with the
17132 # GNU dynamic linker. Since this was broken with cross compilers,
17133 # most powerpc-linux boxes support dynamic linking these days and
17134 # people can always --disable-shared, the test was removed, and we
17135 # assume the GNU/Linux dynamic linker is in use.
17136 dynamic_linker='GNU/Linux ld.so'
17137 ;;
17138
Reid Spencer2706f8c2004-09-19 23:53:36 +000017139knetbsd*-gnu)
17140 version_type=linux
17141 need_lib_prefix=no
17142 need_version=no
17143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17144 soname_spec='${libname}${release}${shared_ext}$major'
17145 shlibpath_var=LD_LIBRARY_PATH
17146 shlibpath_overrides_runpath=no
17147 hardcode_into_libs=yes
17148 dynamic_linker='GNU ld.so'
17149 ;;
17150
John Criswell47fdd832003-07-14 16:52:07 +000017151netbsd*)
17152 version_type=sunos
17153 need_lib_prefix=no
17154 need_version=no
17155 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17157 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17158 dynamic_linker='NetBSD (a.out) ld.so'
17159 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017161 soname_spec='${libname}${release}${shared_ext}$major'
17162 dynamic_linker='NetBSD ld.elf_so'
17163 fi
17164 shlibpath_var=LD_LIBRARY_PATH
17165 shlibpath_overrides_runpath=yes
17166 hardcode_into_libs=yes
17167 ;;
17168
17169newsos6)
17170 version_type=linux
17171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17172 shlibpath_var=LD_LIBRARY_PATH
17173 shlibpath_overrides_runpath=yes
17174 ;;
17175
Reid Spencer2706f8c2004-09-19 23:53:36 +000017176nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017177 version_type=linux
17178 need_lib_prefix=no
17179 need_version=no
17180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17181 soname_spec='${libname}${release}${shared_ext}$major'
17182 shlibpath_var=LD_LIBRARY_PATH
17183 shlibpath_overrides_runpath=yes
17184 ;;
17185
17186openbsd*)
17187 version_type=sunos
17188 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017189 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17192 shlibpath_var=LD_LIBRARY_PATH
17193 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17194 case $host_os in
17195 openbsd2.[89] | openbsd2.[89].*)
17196 shlibpath_overrides_runpath=no
17197 ;;
17198 *)
17199 shlibpath_overrides_runpath=yes
17200 ;;
17201 esac
17202 else
17203 shlibpath_overrides_runpath=yes
17204 fi
17205 ;;
17206
17207os2*)
17208 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017209 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017210 need_lib_prefix=no
17211 library_names_spec='$libname${shared_ext} $libname.a'
17212 dynamic_linker='OS/2 ld.exe'
17213 shlibpath_var=LIBPATH
17214 ;;
17215
17216osf3* | osf4* | osf5*)
17217 version_type=osf
17218 need_lib_prefix=no
17219 need_version=no
17220 soname_spec='${libname}${release}${shared_ext}$major'
17221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17222 shlibpath_var=LD_LIBRARY_PATH
17223 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17224 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17225 ;;
17226
17227sco3.2v5*)
17228 version_type=osf
17229 soname_spec='${libname}${release}${shared_ext}$major'
17230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17231 shlibpath_var=LD_LIBRARY_PATH
17232 ;;
17233
17234solaris*)
17235 version_type=linux
17236 need_lib_prefix=no
17237 need_version=no
17238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17239 soname_spec='${libname}${release}${shared_ext}$major'
17240 shlibpath_var=LD_LIBRARY_PATH
17241 shlibpath_overrides_runpath=yes
17242 hardcode_into_libs=yes
17243 # ldd complains unless libraries are executable
17244 postinstall_cmds='chmod +x $lib'
17245 ;;
17246
17247sunos4*)
17248 version_type=sunos
17249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17250 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17251 shlibpath_var=LD_LIBRARY_PATH
17252 shlibpath_overrides_runpath=yes
17253 if test "$with_gnu_ld" = yes; then
17254 need_lib_prefix=no
17255 fi
17256 need_version=yes
17257 ;;
17258
17259sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17260 version_type=linux
17261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17262 soname_spec='${libname}${release}${shared_ext}$major'
17263 shlibpath_var=LD_LIBRARY_PATH
17264 case $host_vendor in
17265 sni)
17266 shlibpath_overrides_runpath=no
17267 need_lib_prefix=no
17268 export_dynamic_flag_spec='${wl}-Blargedynsym'
17269 runpath_var=LD_RUN_PATH
17270 ;;
17271 siemens)
17272 need_lib_prefix=no
17273 ;;
17274 motorola)
17275 need_lib_prefix=no
17276 need_version=no
17277 shlibpath_overrides_runpath=no
17278 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17279 ;;
17280 esac
17281 ;;
17282
17283sysv4*MP*)
17284 if test -d /usr/nec ;then
17285 version_type=linux
17286 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17287 soname_spec='$libname${shared_ext}.$major'
17288 shlibpath_var=LD_LIBRARY_PATH
17289 fi
17290 ;;
17291
17292uts4*)
17293 version_type=linux
17294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17295 soname_spec='${libname}${release}${shared_ext}$major'
17296 shlibpath_var=LD_LIBRARY_PATH
17297 ;;
17298
17299*)
17300 dynamic_linker=no
17301 ;;
17302esac
17303echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17304echo "${ECHO_T}$dynamic_linker" >&6
17305test "$dynamic_linker" = no && can_build_shared=no
17306
Reid Spencer2706f8c2004-09-19 23:53:36 +000017307echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17308echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17309hardcode_action_CXX=
17310if test -n "$hardcode_libdir_flag_spec_CXX" || \
17311 test -n "$runpath_var_CXX" || \
17312 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17313
17314 # We can hardcode non-existant directories.
17315 if test "$hardcode_direct_CXX" != no &&
17316 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17317 # have to relink, otherwise we might link with an installed library
17318 # when we should be linking with a yet-to-be-installed one
17319 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17320 test "$hardcode_minus_L_CXX" != no; then
17321 # Linking always hardcodes the temporary library directory.
17322 hardcode_action_CXX=relink
17323 else
17324 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17325 hardcode_action_CXX=immediate
17326 fi
17327else
17328 # We cannot hardcode anything, or else we can only hardcode existing
17329 # directories.
17330 hardcode_action_CXX=unsupported
17331fi
17332echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17333echo "${ECHO_T}$hardcode_action_CXX" >&6
17334
17335if test "$hardcode_action_CXX" = relink; then
17336 # Fast installation is not supported
17337 enable_fast_install=no
17338elif test "$shlibpath_overrides_runpath" = yes ||
17339 test "$enable_shared" = no; then
17340 # Fast installation is not necessary
17341 enable_fast_install=needless
17342fi
17343
17344striplib=
17345old_striplib=
17346echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17347echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17348if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17349 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17350 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17351 echo "$as_me:$LINENO: result: yes" >&5
17352echo "${ECHO_T}yes" >&6
17353else
17354# FIXME - insert some real tests, host_os isn't really good enough
17355 case $host_os in
17356 darwin*)
17357 if test -n "$STRIP" ; then
17358 striplib="$STRIP -x"
17359 echo "$as_me:$LINENO: result: yes" >&5
17360echo "${ECHO_T}yes" >&6
17361 else
17362 echo "$as_me:$LINENO: result: no" >&5
17363echo "${ECHO_T}no" >&6
17364fi
17365 ;;
17366 *)
17367 echo "$as_me:$LINENO: result: no" >&5
17368echo "${ECHO_T}no" >&6
17369 ;;
17370 esac
17371fi
17372
John Criswell47fdd832003-07-14 16:52:07 +000017373if test "x$enable_dlopen" != xyes; then
17374 enable_dlopen=unknown
17375 enable_dlopen_self=unknown
17376 enable_dlopen_self_static=unknown
17377else
17378 lt_cv_dlopen=no
17379 lt_cv_dlopen_libs=
17380
17381 case $host_os in
17382 beos*)
17383 lt_cv_dlopen="load_add_on"
17384 lt_cv_dlopen_libs=
17385 lt_cv_dlopen_self=yes
17386 ;;
17387
17388 mingw* | pw32*)
17389 lt_cv_dlopen="LoadLibrary"
17390 lt_cv_dlopen_libs=
17391 ;;
17392
17393 cygwin*)
17394 lt_cv_dlopen="dlopen"
17395 lt_cv_dlopen_libs=
17396 ;;
17397
17398 darwin*)
17399 # if libdl is installed we need to link against it
17400 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17401echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17402if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17403 echo $ECHO_N "(cached) $ECHO_C" >&6
17404else
17405 ac_check_lib_save_LIBS=$LIBS
17406LIBS="-ldl $LIBS"
17407cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017408/* confdefs.h. */
17409_ACEOF
17410cat confdefs.h >>conftest.$ac_ext
17411cat >>conftest.$ac_ext <<_ACEOF
17412/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017413
17414/* Override any gcc2 internal prototype to avoid an error. */
17415#ifdef __cplusplus
17416extern "C"
17417#endif
17418/* We use char because int might match the return type of a gcc2
17419 builtin and then its argument prototype would still apply. */
17420char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017421int
17422main ()
17423{
17424dlopen ();
17425 ;
17426 return 0;
17427}
17428_ACEOF
17429rm -f conftest.$ac_objext conftest$ac_exeext
17430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017431 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017432 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017433 grep -v '^ *+' conftest.er1 >conftest.err
17434 rm -f conftest.er1
17435 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017438 { ac_try='test -z "$ac_cxx_werror_flag"
17439 || test ! -s conftest.err'
17440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441 (eval $ac_try) 2>&5
17442 ac_status=$?
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); }; } &&
17445 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447 (eval $ac_try) 2>&5
17448 ac_status=$?
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; }; then
17451 ac_cv_lib_dl_dlopen=yes
17452else
17453 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017454sed 's/^/| /' conftest.$ac_ext >&5
17455
John Criswell47fdd832003-07-14 16:52:07 +000017456ac_cv_lib_dl_dlopen=no
17457fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017458rm -f conftest.err conftest.$ac_objext \
17459 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017460LIBS=$ac_check_lib_save_LIBS
17461fi
17462echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17463echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17464if test $ac_cv_lib_dl_dlopen = yes; then
17465 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17466else
17467
17468 lt_cv_dlopen="dyld"
17469 lt_cv_dlopen_libs=
17470 lt_cv_dlopen_self=yes
17471
17472fi
17473
17474 ;;
17475
17476 *)
17477 echo "$as_me:$LINENO: checking for shl_load" >&5
17478echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17479if test "${ac_cv_func_shl_load+set}" = set; then
17480 echo $ECHO_N "(cached) $ECHO_C" >&6
17481else
17482 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017483/* confdefs.h. */
17484_ACEOF
17485cat confdefs.h >>conftest.$ac_ext
17486cat >>conftest.$ac_ext <<_ACEOF
17487/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017488/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17490#define shl_load innocuous_shl_load
17491
John Criswell47fdd832003-07-14 16:52:07 +000017492/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017493 which can conflict with char shl_load (); below.
17494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17495 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017496
John Criswell0c38eaf2003-09-10 15:17:25 +000017497#ifdef __STDC__
17498# include <limits.h>
17499#else
17500# include <assert.h>
17501#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017502
17503#undef shl_load
17504
John Criswell47fdd832003-07-14 16:52:07 +000017505/* Override any gcc2 internal prototype to avoid an error. */
17506#ifdef __cplusplus
17507extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017508{
John Criswell47fdd832003-07-14 16:52:07 +000017509#endif
17510/* We use char because int might match the return type of a gcc2
17511 builtin and then its argument prototype would still apply. */
17512char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017513/* The GNU C library defines this for functions which it implements
17514 to always fail with ENOSYS. Some functions are actually named
17515 something starting with __ and the normal name is an alias. */
17516#if defined (__stub_shl_load) || defined (__stub___shl_load)
17517choke me
17518#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017519char (*f) () = shl_load;
17520#endif
17521#ifdef __cplusplus
17522}
John Criswell47fdd832003-07-14 16:52:07 +000017523#endif
17524
John Criswell0c38eaf2003-09-10 15:17:25 +000017525int
17526main ()
17527{
17528return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017529 ;
17530 return 0;
17531}
17532_ACEOF
17533rm -f conftest.$ac_objext conftest$ac_exeext
17534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017535 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017536 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017537 grep -v '^ *+' conftest.er1 >conftest.err
17538 rm -f conftest.er1
17539 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017542 { ac_try='test -z "$ac_cxx_werror_flag"
17543 || test ! -s conftest.err'
17544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17545 (eval $ac_try) 2>&5
17546 ac_status=$?
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; } &&
17549 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17551 (eval $ac_try) 2>&5
17552 ac_status=$?
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); }; }; then
17555 ac_cv_func_shl_load=yes
17556else
17557 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017558sed 's/^/| /' conftest.$ac_ext >&5
17559
John Criswell47fdd832003-07-14 16:52:07 +000017560ac_cv_func_shl_load=no
17561fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017562rm -f conftest.err conftest.$ac_objext \
17563 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017564fi
17565echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17566echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17567if test $ac_cv_func_shl_load = yes; then
17568 lt_cv_dlopen="shl_load"
17569else
17570 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17571echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17572if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17573 echo $ECHO_N "(cached) $ECHO_C" >&6
17574else
17575 ac_check_lib_save_LIBS=$LIBS
17576LIBS="-ldld $LIBS"
17577cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017578/* confdefs.h. */
17579_ACEOF
17580cat confdefs.h >>conftest.$ac_ext
17581cat >>conftest.$ac_ext <<_ACEOF
17582/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017583
17584/* Override any gcc2 internal prototype to avoid an error. */
17585#ifdef __cplusplus
17586extern "C"
17587#endif
17588/* We use char because int might match the return type of a gcc2
17589 builtin and then its argument prototype would still apply. */
17590char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017591int
17592main ()
17593{
17594shl_load ();
17595 ;
17596 return 0;
17597}
17598_ACEOF
17599rm -f conftest.$ac_objext conftest$ac_exeext
17600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017601 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017602 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017603 grep -v '^ *+' conftest.er1 >conftest.err
17604 rm -f conftest.er1
17605 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017608 { ac_try='test -z "$ac_cxx_werror_flag"
17609 || test ! -s conftest.err'
17610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611 (eval $ac_try) 2>&5
17612 ac_status=$?
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; } &&
17615 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17617 (eval $ac_try) 2>&5
17618 ac_status=$?
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); }; }; then
17621 ac_cv_lib_dld_shl_load=yes
17622else
17623 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017624sed 's/^/| /' conftest.$ac_ext >&5
17625
John Criswell47fdd832003-07-14 16:52:07 +000017626ac_cv_lib_dld_shl_load=no
17627fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017628rm -f conftest.err conftest.$ac_objext \
17629 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017630LIBS=$ac_check_lib_save_LIBS
17631fi
17632echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17633echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17634if test $ac_cv_lib_dld_shl_load = yes; then
17635 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17636else
17637 echo "$as_me:$LINENO: checking for dlopen" >&5
17638echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17639if test "${ac_cv_func_dlopen+set}" = set; then
17640 echo $ECHO_N "(cached) $ECHO_C" >&6
17641else
17642 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017643/* confdefs.h. */
17644_ACEOF
17645cat confdefs.h >>conftest.$ac_ext
17646cat >>conftest.$ac_ext <<_ACEOF
17647/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017648/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17650#define dlopen innocuous_dlopen
17651
John Criswell47fdd832003-07-14 16:52:07 +000017652/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017653 which can conflict with char dlopen (); below.
17654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17655 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017656
John Criswell0c38eaf2003-09-10 15:17:25 +000017657#ifdef __STDC__
17658# include <limits.h>
17659#else
17660# include <assert.h>
17661#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017662
17663#undef dlopen
17664
John Criswell47fdd832003-07-14 16:52:07 +000017665/* Override any gcc2 internal prototype to avoid an error. */
17666#ifdef __cplusplus
17667extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017668{
John Criswell47fdd832003-07-14 16:52:07 +000017669#endif
17670/* We use char because int might match the return type of a gcc2
17671 builtin and then its argument prototype would still apply. */
17672char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017673/* The GNU C library defines this for functions which it implements
17674 to always fail with ENOSYS. Some functions are actually named
17675 something starting with __ and the normal name is an alias. */
17676#if defined (__stub_dlopen) || defined (__stub___dlopen)
17677choke me
17678#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017679char (*f) () = dlopen;
17680#endif
17681#ifdef __cplusplus
17682}
John Criswell47fdd832003-07-14 16:52:07 +000017683#endif
17684
John Criswell0c38eaf2003-09-10 15:17:25 +000017685int
17686main ()
17687{
17688return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017689 ;
17690 return 0;
17691}
17692_ACEOF
17693rm -f conftest.$ac_objext conftest$ac_exeext
17694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017695 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017696 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017697 grep -v '^ *+' conftest.er1 >conftest.err
17698 rm -f conftest.er1
17699 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017702 { ac_try='test -z "$ac_cxx_werror_flag"
17703 || test ! -s conftest.err'
17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17706 ac_status=$?
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; } &&
17709 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17712 ac_status=$?
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; }; then
17715 ac_cv_func_dlopen=yes
17716else
17717 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017718sed 's/^/| /' conftest.$ac_ext >&5
17719
John Criswell47fdd832003-07-14 16:52:07 +000017720ac_cv_func_dlopen=no
17721fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017722rm -f conftest.err conftest.$ac_objext \
17723 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017724fi
17725echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17726echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17727if test $ac_cv_func_dlopen = yes; then
17728 lt_cv_dlopen="dlopen"
17729else
17730 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17731echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17732if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17733 echo $ECHO_N "(cached) $ECHO_C" >&6
17734else
17735 ac_check_lib_save_LIBS=$LIBS
17736LIBS="-ldl $LIBS"
17737cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017738/* confdefs.h. */
17739_ACEOF
17740cat confdefs.h >>conftest.$ac_ext
17741cat >>conftest.$ac_ext <<_ACEOF
17742/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017743
17744/* Override any gcc2 internal prototype to avoid an error. */
17745#ifdef __cplusplus
17746extern "C"
17747#endif
17748/* We use char because int might match the return type of a gcc2
17749 builtin and then its argument prototype would still apply. */
17750char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017751int
17752main ()
17753{
17754dlopen ();
17755 ;
17756 return 0;
17757}
17758_ACEOF
17759rm -f conftest.$ac_objext conftest$ac_exeext
17760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017761 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017762 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017763 grep -v '^ *+' conftest.er1 >conftest.err
17764 rm -f conftest.er1
17765 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017768 { ac_try='test -z "$ac_cxx_werror_flag"
17769 || test ! -s conftest.err'
17770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771 (eval $ac_try) 2>&5
17772 ac_status=$?
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; } &&
17775 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17777 (eval $ac_try) 2>&5
17778 ac_status=$?
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); }; }; then
17781 ac_cv_lib_dl_dlopen=yes
17782else
17783 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017784sed 's/^/| /' conftest.$ac_ext >&5
17785
John Criswell47fdd832003-07-14 16:52:07 +000017786ac_cv_lib_dl_dlopen=no
17787fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017788rm -f conftest.err conftest.$ac_objext \
17789 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017790LIBS=$ac_check_lib_save_LIBS
17791fi
17792echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17793echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17794if test $ac_cv_lib_dl_dlopen = yes; then
17795 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17796else
17797 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17798echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17799if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17800 echo $ECHO_N "(cached) $ECHO_C" >&6
17801else
17802 ac_check_lib_save_LIBS=$LIBS
17803LIBS="-lsvld $LIBS"
17804cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017805/* confdefs.h. */
17806_ACEOF
17807cat confdefs.h >>conftest.$ac_ext
17808cat >>conftest.$ac_ext <<_ACEOF
17809/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017810
17811/* Override any gcc2 internal prototype to avoid an error. */
17812#ifdef __cplusplus
17813extern "C"
17814#endif
17815/* We use char because int might match the return type of a gcc2
17816 builtin and then its argument prototype would still apply. */
17817char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017818int
17819main ()
17820{
17821dlopen ();
17822 ;
17823 return 0;
17824}
17825_ACEOF
17826rm -f conftest.$ac_objext conftest$ac_exeext
17827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017828 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017829 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017830 grep -v '^ *+' conftest.er1 >conftest.err
17831 rm -f conftest.er1
17832 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017835 { ac_try='test -z "$ac_cxx_werror_flag"
17836 || test ! -s conftest.err'
17837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17838 (eval $ac_try) 2>&5
17839 ac_status=$?
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); }; } &&
17842 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17844 (eval $ac_try) 2>&5
17845 ac_status=$?
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; }; then
17848 ac_cv_lib_svld_dlopen=yes
17849else
17850 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017851sed 's/^/| /' conftest.$ac_ext >&5
17852
John Criswell47fdd832003-07-14 16:52:07 +000017853ac_cv_lib_svld_dlopen=no
17854fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017855rm -f conftest.err conftest.$ac_objext \
17856 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017857LIBS=$ac_check_lib_save_LIBS
17858fi
17859echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17860echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17861if test $ac_cv_lib_svld_dlopen = yes; then
17862 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17863else
17864 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17865echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17866if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17867 echo $ECHO_N "(cached) $ECHO_C" >&6
17868else
17869 ac_check_lib_save_LIBS=$LIBS
17870LIBS="-ldld $LIBS"
17871cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017872/* confdefs.h. */
17873_ACEOF
17874cat confdefs.h >>conftest.$ac_ext
17875cat >>conftest.$ac_ext <<_ACEOF
17876/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017877
17878/* Override any gcc2 internal prototype to avoid an error. */
17879#ifdef __cplusplus
17880extern "C"
17881#endif
17882/* We use char because int might match the return type of a gcc2
17883 builtin and then its argument prototype would still apply. */
17884char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017885int
17886main ()
17887{
17888dld_link ();
17889 ;
17890 return 0;
17891}
17892_ACEOF
17893rm -f conftest.$ac_objext conftest$ac_exeext
17894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017895 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017896 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017897 grep -v '^ *+' conftest.er1 >conftest.err
17898 rm -f conftest.er1
17899 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017902 { ac_try='test -z "$ac_cxx_werror_flag"
17903 || test ! -s conftest.err'
17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17906 ac_status=$?
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; } &&
17909 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17911 (eval $ac_try) 2>&5
17912 ac_status=$?
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); }; }; then
17915 ac_cv_lib_dld_dld_link=yes
17916else
17917 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017918sed 's/^/| /' conftest.$ac_ext >&5
17919
John Criswell47fdd832003-07-14 16:52:07 +000017920ac_cv_lib_dld_dld_link=no
17921fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017922rm -f conftest.err conftest.$ac_objext \
17923 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017924LIBS=$ac_check_lib_save_LIBS
17925fi
17926echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17927echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17928if test $ac_cv_lib_dld_dld_link = yes; then
17929 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17930fi
17931
17932
17933fi
17934
17935
17936fi
17937
17938
17939fi
17940
17941
17942fi
17943
17944
17945fi
17946
17947 ;;
17948 esac
17949
17950 if test "x$lt_cv_dlopen" != xno; then
17951 enable_dlopen=yes
17952 else
17953 enable_dlopen=no
17954 fi
17955
17956 case $lt_cv_dlopen in
17957 dlopen)
17958 save_CPPFLAGS="$CPPFLAGS"
17959 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17960
17961 save_LDFLAGS="$LDFLAGS"
17962 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17963
17964 save_LIBS="$LIBS"
17965 LIBS="$lt_cv_dlopen_libs $LIBS"
17966
17967 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17968echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17969if test "${lt_cv_dlopen_self+set}" = set; then
17970 echo $ECHO_N "(cached) $ECHO_C" >&6
17971else
17972 if test "$cross_compiling" = yes; then :
17973 lt_cv_dlopen_self=cross
17974else
17975 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17976 lt_status=$lt_dlunknown
17977 cat > conftest.$ac_ext <<EOF
Reid Spencer502935f2004-12-22 05:56:56 +000017978#line 17978 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017979#include "confdefs.h"
17980
17981#if HAVE_DLFCN_H
17982#include <dlfcn.h>
17983#endif
17984
17985#include <stdio.h>
17986
17987#ifdef RTLD_GLOBAL
17988# define LT_DLGLOBAL RTLD_GLOBAL
17989#else
17990# ifdef DL_GLOBAL
17991# define LT_DLGLOBAL DL_GLOBAL
17992# else
17993# define LT_DLGLOBAL 0
17994# endif
17995#endif
17996
17997/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17998 find out it does not work in some platform. */
17999#ifndef LT_DLLAZY_OR_NOW
18000# ifdef RTLD_LAZY
18001# define LT_DLLAZY_OR_NOW RTLD_LAZY
18002# else
18003# ifdef DL_LAZY
18004# define LT_DLLAZY_OR_NOW DL_LAZY
18005# else
18006# ifdef RTLD_NOW
18007# define LT_DLLAZY_OR_NOW RTLD_NOW
18008# else
18009# ifdef DL_NOW
18010# define LT_DLLAZY_OR_NOW DL_NOW
18011# else
18012# define LT_DLLAZY_OR_NOW 0
18013# endif
18014# endif
18015# endif
18016# endif
18017#endif
18018
18019#ifdef __cplusplus
18020extern "C" void exit (int);
18021#endif
18022
18023void fnord() { int i=42;}
18024int main ()
18025{
18026 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18027 int status = $lt_dlunknown;
18028
18029 if (self)
18030 {
18031 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18032 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18033 /* dlclose (self); */
18034 }
18035
18036 exit (status);
18037}
18038EOF
18039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18040 (eval $ac_link) 2>&5
18041 ac_status=$?
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18044 (./conftest; exit; ) 2>/dev/null
18045 lt_status=$?
18046 case x$lt_status in
18047 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18048 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18049 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18050 esac
18051 else :
18052 # compilation failed
18053 lt_cv_dlopen_self=no
18054 fi
18055fi
18056rm -fr conftest*
18057
18058
18059fi
18060echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18061echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18062
18063 if test "x$lt_cv_dlopen_self" = xyes; then
18064 LDFLAGS="$LDFLAGS $link_static_flag"
18065 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18066echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18067if test "${lt_cv_dlopen_self_static+set}" = set; then
18068 echo $ECHO_N "(cached) $ECHO_C" >&6
18069else
18070 if test "$cross_compiling" = yes; then :
18071 lt_cv_dlopen_self_static=cross
18072else
18073 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18074 lt_status=$lt_dlunknown
18075 cat > conftest.$ac_ext <<EOF
Reid Spencer502935f2004-12-22 05:56:56 +000018076#line 18076 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018077#include "confdefs.h"
18078
18079#if HAVE_DLFCN_H
18080#include <dlfcn.h>
18081#endif
18082
18083#include <stdio.h>
18084
18085#ifdef RTLD_GLOBAL
18086# define LT_DLGLOBAL RTLD_GLOBAL
18087#else
18088# ifdef DL_GLOBAL
18089# define LT_DLGLOBAL DL_GLOBAL
18090# else
18091# define LT_DLGLOBAL 0
18092# endif
18093#endif
18094
18095/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18096 find out it does not work in some platform. */
18097#ifndef LT_DLLAZY_OR_NOW
18098# ifdef RTLD_LAZY
18099# define LT_DLLAZY_OR_NOW RTLD_LAZY
18100# else
18101# ifdef DL_LAZY
18102# define LT_DLLAZY_OR_NOW DL_LAZY
18103# else
18104# ifdef RTLD_NOW
18105# define LT_DLLAZY_OR_NOW RTLD_NOW
18106# else
18107# ifdef DL_NOW
18108# define LT_DLLAZY_OR_NOW DL_NOW
18109# else
18110# define LT_DLLAZY_OR_NOW 0
18111# endif
18112# endif
18113# endif
18114# endif
18115#endif
18116
18117#ifdef __cplusplus
18118extern "C" void exit (int);
18119#endif
18120
18121void fnord() { int i=42;}
18122int main ()
18123{
18124 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18125 int status = $lt_dlunknown;
18126
18127 if (self)
18128 {
18129 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18130 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18131 /* dlclose (self); */
18132 }
18133
18134 exit (status);
18135}
18136EOF
18137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18138 (eval $ac_link) 2>&5
18139 ac_status=$?
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18142 (./conftest; exit; ) 2>/dev/null
18143 lt_status=$?
18144 case x$lt_status in
18145 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18146 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18147 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18148 esac
18149 else :
18150 # compilation failed
18151 lt_cv_dlopen_self_static=no
18152 fi
18153fi
18154rm -fr conftest*
18155
18156
18157fi
18158echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18159echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18160 fi
18161
18162 CPPFLAGS="$save_CPPFLAGS"
18163 LDFLAGS="$save_LDFLAGS"
18164 LIBS="$save_LIBS"
18165 ;;
18166 esac
18167
18168 case $lt_cv_dlopen_self in
18169 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18170 *) enable_dlopen_self=unknown ;;
18171 esac
18172
18173 case $lt_cv_dlopen_self_static in
18174 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18175 *) enable_dlopen_self_static=unknown ;;
18176 esac
18177fi
18178
18179
18180# The else clause should only fire when bootstrapping the
18181# libtool distribution, otherwise you forgot to ship ltmain.sh
18182# with your package, and you will get complaints that there are
18183# no rules to generate ltmain.sh.
18184if test -f "$ltmain"; then
18185 # See if we are running on zsh, and set the options which allow our commands through
18186 # without removal of \ escapes.
18187 if test -n "${ZSH_VERSION+set}" ; then
18188 setopt NO_GLOB_SUBST
18189 fi
18190 # Now quote all the things that may contain metacharacters while being
18191 # careful not to overquote the AC_SUBSTed values. We take copies of the
18192 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018193 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18194 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018195 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18196 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18197 deplibs_check_method reload_flag reload_cmds need_locks \
18198 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18199 lt_cv_sys_global_symbol_to_c_name_address \
18200 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18201 old_postinstall_cmds old_postuninstall_cmds \
18202 compiler_CXX \
18203 CC_CXX \
18204 LD_CXX \
18205 lt_prog_compiler_wl_CXX \
18206 lt_prog_compiler_pic_CXX \
18207 lt_prog_compiler_static_CXX \
18208 lt_prog_compiler_no_builtin_flag_CXX \
18209 export_dynamic_flag_spec_CXX \
18210 thread_safe_flag_spec_CXX \
18211 whole_archive_flag_spec_CXX \
18212 enable_shared_with_static_runtimes_CXX \
18213 old_archive_cmds_CXX \
18214 old_archive_from_new_cmds_CXX \
18215 predep_objects_CXX \
18216 postdep_objects_CXX \
18217 predeps_CXX \
18218 postdeps_CXX \
18219 compiler_lib_search_path_CXX \
18220 archive_cmds_CXX \
18221 archive_expsym_cmds_CXX \
18222 postinstall_cmds_CXX \
18223 postuninstall_cmds_CXX \
18224 old_archive_from_expsyms_cmds_CXX \
18225 allow_undefined_flag_CXX \
18226 no_undefined_flag_CXX \
18227 export_symbols_cmds_CXX \
18228 hardcode_libdir_flag_spec_CXX \
18229 hardcode_libdir_flag_spec_ld_CXX \
18230 hardcode_libdir_separator_CXX \
18231 hardcode_automatic_CXX \
18232 module_cmds_CXX \
18233 module_expsym_cmds_CXX \
18234 lt_cv_prog_compiler_c_o_CXX \
18235 exclude_expsyms_CXX \
18236 include_expsyms_CXX; do
18237
18238 case $var in
18239 old_archive_cmds_CXX | \
18240 old_archive_from_new_cmds_CXX | \
18241 archive_cmds_CXX | \
18242 archive_expsym_cmds_CXX | \
18243 module_cmds_CXX | \
18244 module_expsym_cmds_CXX | \
18245 old_archive_from_expsyms_cmds_CXX | \
18246 export_symbols_cmds_CXX | \
18247 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18248 postinstall_cmds | postuninstall_cmds | \
18249 old_postinstall_cmds | old_postuninstall_cmds | \
18250 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18251 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018252 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000018253 ;;
18254 *)
18255 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18256 ;;
18257 esac
18258 done
18259
18260 case $lt_echo in
18261 *'\$0 --fallback-echo"')
18262 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18263 ;;
18264 esac
18265
18266cfgfile="$ofile"
18267
18268 cat <<__EOF__ >> "$cfgfile"
18269# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18270
18271# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18272
18273# Shell to use when invoking shell scripts.
18274SHELL=$lt_SHELL
18275
18276# Whether or not to build shared libraries.
18277build_libtool_libs=$enable_shared
18278
18279# Whether or not to build static libraries.
18280build_old_libs=$enable_static
18281
18282# Whether or not to add -lc for building shared libraries.
18283build_libtool_need_lc=$archive_cmds_need_lc_CXX
18284
18285# Whether or not to disallow shared libs when runtime libs are static
18286allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18287
18288# Whether or not to optimize for fast installation.
18289fast_install=$enable_fast_install
18290
18291# The host system.
18292host_alias=$host_alias
18293host=$host
18294
18295# An echo program that does not interpret backslashes.
18296echo=$lt_echo
18297
18298# The archiver.
18299AR=$lt_AR
18300AR_FLAGS=$lt_AR_FLAGS
18301
18302# A C compiler.
18303LTCC=$lt_LTCC
18304
18305# A language-specific compiler.
18306CC=$lt_compiler_CXX
18307
18308# Is the compiler the GNU C compiler?
18309with_gcc=$GCC_CXX
18310
18311# An ERE matcher.
18312EGREP=$lt_EGREP
18313
18314# The linker used to build libraries.
18315LD=$lt_LD_CXX
18316
18317# Whether we need hard or soft links.
18318LN_S=$lt_LN_S
18319
18320# A BSD-compatible nm program.
18321NM=$lt_NM
18322
18323# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018324STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018325
18326# Used to examine libraries when file_magic_cmd begins "file"
18327MAGIC_CMD=$MAGIC_CMD
18328
18329# Used on cygwin: DLL creation program.
18330DLLTOOL="$DLLTOOL"
18331
18332# Used on cygwin: object dumper.
18333OBJDUMP="$OBJDUMP"
18334
18335# Used on cygwin: assembler.
18336AS="$AS"
18337
18338# The name of the directory that contains temporary libtool files.
18339objdir=$objdir
18340
18341# How to create reloadable object files.
18342reload_flag=$lt_reload_flag
18343reload_cmds=$lt_reload_cmds
18344
18345# How to pass a linker flag through the compiler.
18346wl=$lt_lt_prog_compiler_wl_CXX
18347
18348# Object file suffix (normally "o").
18349objext="$ac_objext"
18350
18351# Old archive suffix (normally "a").
18352libext="$libext"
18353
18354# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018355shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018356
18357# Executable file suffix (normally "").
18358exeext="$exeext"
18359
18360# Additional compiler flags for building library objects.
18361pic_flag=$lt_lt_prog_compiler_pic_CXX
18362pic_mode=$pic_mode
18363
18364# What is the maximum length of a command?
18365max_cmd_len=$lt_cv_sys_max_cmd_len
18366
18367# Does compiler simultaneously support -c and -o options?
18368compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18369
18370# Must we lock files when doing compilation ?
18371need_locks=$lt_need_locks
18372
18373# Do we need the lib prefix for modules?
18374need_lib_prefix=$need_lib_prefix
18375
18376# Do we need a version for libraries?
18377need_version=$need_version
18378
18379# Whether dlopen is supported.
18380dlopen_support=$enable_dlopen
18381
18382# Whether dlopen of programs is supported.
18383dlopen_self=$enable_dlopen_self
18384
18385# Whether dlopen of statically linked programs is supported.
18386dlopen_self_static=$enable_dlopen_self_static
18387
18388# Compiler flag to prevent dynamic linking.
18389link_static_flag=$lt_lt_prog_compiler_static_CXX
18390
18391# Compiler flag to turn off builtin functions.
18392no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18393
18394# Compiler flag to allow reflexive dlopens.
18395export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18396
18397# Compiler flag to generate shared objects directly from archives.
18398whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18399
18400# Compiler flag to generate thread-safe objects.
18401thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18402
18403# Library versioning type.
18404version_type=$version_type
18405
18406# Format of library name prefix.
18407libname_spec=$lt_libname_spec
18408
18409# List of archive names. First name is the real one, the rest are links.
18410# The last name is the one that the linker finds with -lNAME.
18411library_names_spec=$lt_library_names_spec
18412
18413# The coded name of the library, if different from the real name.
18414soname_spec=$lt_soname_spec
18415
18416# Commands used to build and install an old-style archive.
18417RANLIB=$lt_RANLIB
18418old_archive_cmds=$lt_old_archive_cmds_CXX
18419old_postinstall_cmds=$lt_old_postinstall_cmds
18420old_postuninstall_cmds=$lt_old_postuninstall_cmds
18421
18422# Create an old-style archive from a shared archive.
18423old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18424
18425# Create a temporary old-style archive to link instead of a shared archive.
18426old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18427
18428# Commands used to build and install a shared archive.
18429archive_cmds=$lt_archive_cmds_CXX
18430archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18431postinstall_cmds=$lt_postinstall_cmds
18432postuninstall_cmds=$lt_postuninstall_cmds
18433
18434# Commands used to build a loadable module (assumed same as above if empty)
18435module_cmds=$lt_module_cmds_CXX
18436module_expsym_cmds=$lt_module_expsym_cmds_CXX
18437
18438# Commands to strip libraries.
18439old_striplib=$lt_old_striplib
18440striplib=$lt_striplib
18441
18442# Dependencies to place before the objects being linked to create a
18443# shared library.
18444predep_objects=$lt_predep_objects_CXX
18445
18446# Dependencies to place after the objects being linked to create a
18447# shared library.
18448postdep_objects=$lt_postdep_objects_CXX
18449
18450# Dependencies to place before the objects being linked to create a
18451# shared library.
18452predeps=$lt_predeps_CXX
18453
18454# Dependencies to place after the objects being linked to create a
18455# shared library.
18456postdeps=$lt_postdeps_CXX
18457
18458# The library search path used internally by the compiler when linking
18459# a shared library.
18460compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18461
18462# Method to check whether dependent libraries are shared objects.
18463deplibs_check_method=$lt_deplibs_check_method
18464
18465# Command to use when deplibs_check_method == file_magic.
18466file_magic_cmd=$lt_file_magic_cmd
18467
18468# Flag that allows shared libraries with undefined symbols to be built.
18469allow_undefined_flag=$lt_allow_undefined_flag_CXX
18470
18471# Flag that forces no undefined symbols.
18472no_undefined_flag=$lt_no_undefined_flag_CXX
18473
18474# Commands used to finish a libtool library installation in a directory.
18475finish_cmds=$lt_finish_cmds
18476
18477# Same as above, but a single script fragment to be evaled but not shown.
18478finish_eval=$lt_finish_eval
18479
18480# Take the output of nm and produce a listing of raw symbols and C names.
18481global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18482
18483# Transform the output of nm in a proper C declaration
18484global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18485
18486# Transform the output of nm in a C name address pair
18487global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18488
18489# This is the shared library runtime path variable.
18490runpath_var=$runpath_var
18491
18492# This is the shared library path variable.
18493shlibpath_var=$shlibpath_var
18494
18495# Is shlibpath searched before the hard-coded library search path?
18496shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18497
18498# How to hardcode a shared library path into an executable.
18499hardcode_action=$hardcode_action_CXX
18500
18501# Whether we should hardcode library paths into libraries.
18502hardcode_into_libs=$hardcode_into_libs
18503
18504# Flag to hardcode \$libdir into a binary during linking.
18505# This must work even if \$libdir does not exist.
18506hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18507
18508# If ld is used when linking, flag to hardcode \$libdir into
18509# a binary during linking. This must work even if \$libdir does
18510# not exist.
18511hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18512
18513# Whether we need a single -rpath flag with a separated argument.
18514hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18515
18516# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18517# resulting binary.
18518hardcode_direct=$hardcode_direct_CXX
18519
18520# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18521# resulting binary.
18522hardcode_minus_L=$hardcode_minus_L_CXX
18523
18524# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18525# the resulting binary.
18526hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18527
18528# Set to yes if building a shared library automatically hardcodes DIR into the library
18529# and all subsequent libraries and executables linked against it.
18530hardcode_automatic=$hardcode_automatic_CXX
18531
18532# Variables whose values should be saved in libtool wrapper scripts and
18533# restored at relink time.
18534variables_saved_for_relink="$variables_saved_for_relink"
18535
18536# Whether libtool must link a program against all its dependency libraries.
18537link_all_deplibs=$link_all_deplibs_CXX
18538
18539# Compile-time system search path for libraries
18540sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18541
18542# Run-time system search path for libraries
18543sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18544
18545# Fix the shell variable \$srcfile for the compiler.
18546fix_srcfile_path="$fix_srcfile_path_CXX"
18547
18548# Set to yes if exported symbols are required.
18549always_export_symbols=$always_export_symbols_CXX
18550
18551# The commands to list exported symbols.
18552export_symbols_cmds=$lt_export_symbols_cmds_CXX
18553
18554# The commands to extract the exported symbol list from a shared archive.
18555extract_expsyms_cmds=$lt_extract_expsyms_cmds
18556
18557# Symbols that should not be listed in the preloaded symbols.
18558exclude_expsyms=$lt_exclude_expsyms_CXX
18559
18560# Symbols that must always be exported.
18561include_expsyms=$lt_include_expsyms_CXX
18562
18563# ### END LIBTOOL TAG CONFIG: $tagname
18564
18565__EOF__
18566
18567
18568else
18569 # If there is no Makefile yet, we rely on a make rule to execute
18570 # `config.status --recheck' to rerun these tests and create the
18571 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018572 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18573 if test -f "$ltmain_in"; then
18574 test -f Makefile && make "$ltmain"
18575 fi
John Criswell47fdd832003-07-14 16:52:07 +000018576fi
18577
18578
18579ac_ext=c
18580ac_cpp='$CPP $CPPFLAGS'
18581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18583ac_compiler_gnu=$ac_cv_c_compiler_gnu
18584
18585CC=$lt_save_CC
18586LDCXX=$LD
18587LD=$lt_save_LD
18588GCC=$lt_save_GCC
18589with_gnu_ldcxx=$with_gnu_ld
18590with_gnu_ld=$lt_save_with_gnu_ld
18591lt_cv_path_LDCXX=$lt_cv_path_LD
18592lt_cv_path_LD=$lt_save_path_LD
18593lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18594lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18595
18596 else
18597 tagname=""
18598 fi
18599 ;;
18600
18601 F77)
18602 if test -n "$F77" && test "X$F77" != "Xno"; then
18603
18604ac_ext=f
18605ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18606ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18607ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18608
18609
18610archive_cmds_need_lc_F77=no
18611allow_undefined_flag_F77=
18612always_export_symbols_F77=no
18613archive_expsym_cmds_F77=
18614export_dynamic_flag_spec_F77=
18615hardcode_direct_F77=no
18616hardcode_libdir_flag_spec_F77=
18617hardcode_libdir_flag_spec_ld_F77=
18618hardcode_libdir_separator_F77=
18619hardcode_minus_L_F77=no
18620hardcode_automatic_F77=no
18621module_cmds_F77=
18622module_expsym_cmds_F77=
18623link_all_deplibs_F77=unknown
18624old_archive_cmds_F77=$old_archive_cmds
18625no_undefined_flag_F77=
18626whole_archive_flag_spec_F77=
18627enable_shared_with_static_runtimes_F77=no
18628
18629# Source file extension for f77 test sources.
18630ac_ext=f
18631
18632# Object file extension for compiled f77 test sources.
18633objext=o
18634objext_F77=$objext
18635
18636# Code to be used in simple compile tests
18637lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18638
18639# Code to be used in simple link tests
18640lt_simple_link_test_code=" program t\n end\n"
18641
18642# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18643
18644# If no C compiler was specified, use CC.
18645LTCC=${LTCC-"$CC"}
18646
18647# Allow CC to be a program name with arguments.
18648compiler=$CC
18649
18650
18651# Allow CC to be a program name with arguments.
18652lt_save_CC="$CC"
18653CC=${F77-"f77"}
18654compiler=$CC
18655compiler_F77=$CC
18656cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18657
18658echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18659echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18660echo "$as_me:$LINENO: result: $can_build_shared" >&5
18661echo "${ECHO_T}$can_build_shared" >&6
18662
18663echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18664echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18665test "$can_build_shared" = "no" && enable_shared=no
18666
18667# On AIX, shared libraries and static libraries use the same namespace, and
18668# are all built from PIC.
18669case "$host_os" in
18670aix3*)
18671 test "$enable_shared" = yes && enable_static=no
18672 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018673 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018674 postinstall_cmds='$RANLIB $lib'
18675 fi
18676 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018677aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018678 test "$enable_shared" = yes && enable_static=no
18679 ;;
18680esac
18681echo "$as_me:$LINENO: result: $enable_shared" >&5
18682echo "${ECHO_T}$enable_shared" >&6
18683
18684echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18685echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18686# Make sure either enable_shared or enable_static is yes.
18687test "$enable_shared" = yes || enable_static=yes
18688echo "$as_me:$LINENO: result: $enable_static" >&5
18689echo "${ECHO_T}$enable_static" >&6
18690
18691test "$ld_shlibs_F77" = no && can_build_shared=no
18692
18693GCC_F77="$G77"
18694LD_F77="$LD"
18695
18696lt_prog_compiler_wl_F77=
18697lt_prog_compiler_pic_F77=
18698lt_prog_compiler_static_F77=
18699
18700echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18701echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18702
18703 if test "$GCC" = yes; then
18704 lt_prog_compiler_wl_F77='-Wl,'
18705 lt_prog_compiler_static_F77='-static'
18706
18707 case $host_os in
18708 aix*)
18709 # All AIX code is PIC.
18710 if test "$host_cpu" = ia64; then
18711 # AIX 5 now supports IA64 processor
18712 lt_prog_compiler_static_F77='-Bstatic'
18713 fi
18714 ;;
18715
18716 amigaos*)
18717 # FIXME: we need at least 68020 code to build shared libraries, but
18718 # adding the `-m68020' flag to GCC prevents building anything better,
18719 # like `-m68040'.
18720 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18721 ;;
18722
18723 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18724 # PIC is the default for these OSes.
18725 ;;
18726
18727 mingw* | pw32* | os2*)
18728 # This hack is so that the source file can tell whether it is being
18729 # built for inclusion in a dll (and should export symbols for example).
18730 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18731 ;;
18732
18733 darwin* | rhapsody*)
18734 # PIC is the default on this platform
18735 # Common symbols not allowed in MH_DYLIB files
18736 lt_prog_compiler_pic_F77='-fno-common'
18737 ;;
18738
18739 msdosdjgpp*)
18740 # Just because we use GCC doesn't mean we suddenly get shared libraries
18741 # on systems that don't support them.
18742 lt_prog_compiler_can_build_shared_F77=no
18743 enable_shared=no
18744 ;;
18745
18746 sysv4*MP*)
18747 if test -d /usr/nec; then
18748 lt_prog_compiler_pic_F77=-Kconform_pic
18749 fi
18750 ;;
18751
18752 hpux*)
18753 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18754 # not for PA HP-UX.
18755 case "$host_cpu" in
18756 hppa*64*|ia64*)
18757 # +Z the default
18758 ;;
18759 *)
18760 lt_prog_compiler_pic_F77='-fPIC'
18761 ;;
18762 esac
18763 ;;
18764
18765 *)
18766 lt_prog_compiler_pic_F77='-fPIC'
18767 ;;
18768 esac
18769 else
18770 # PORTME Check for flag to pass linker flags through the system compiler.
18771 case $host_os in
18772 aix*)
18773 lt_prog_compiler_wl_F77='-Wl,'
18774 if test "$host_cpu" = ia64; then
18775 # AIX 5 now supports IA64 processor
18776 lt_prog_compiler_static_F77='-Bstatic'
18777 else
18778 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18779 fi
18780 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018781 darwin*)
18782 # PIC is the default on this platform
18783 # Common symbols not allowed in MH_DYLIB files
18784 case "$cc_basename" in
18785 xlc*)
18786 lt_prog_compiler_pic_F77='-qnocommon'
18787 lt_prog_compiler_wl_F77='-Wl,'
18788 ;;
18789 esac
18790 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018791
18792 mingw* | pw32* | os2*)
18793 # This hack is so that the source file can tell whether it is being
18794 # built for inclusion in a dll (and should export symbols for example).
18795 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18796 ;;
18797
18798 hpux9* | hpux10* | hpux11*)
18799 lt_prog_compiler_wl_F77='-Wl,'
18800 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18801 # not for PA HP-UX.
18802 case "$host_cpu" in
18803 hppa*64*|ia64*)
18804 # +Z the default
18805 ;;
18806 *)
18807 lt_prog_compiler_pic_F77='+Z'
18808 ;;
18809 esac
18810 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18811 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18812 ;;
18813
18814 irix5* | irix6* | nonstopux*)
18815 lt_prog_compiler_wl_F77='-Wl,'
18816 # PIC (with -KPIC) is the default.
18817 lt_prog_compiler_static_F77='-non_shared'
18818 ;;
18819
18820 newsos6)
18821 lt_prog_compiler_pic_F77='-KPIC'
18822 lt_prog_compiler_static_F77='-Bstatic'
18823 ;;
18824
18825 linux*)
18826 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018827 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000018828 lt_prog_compiler_wl_F77='-Wl,'
18829 lt_prog_compiler_pic_F77='-KPIC'
18830 lt_prog_compiler_static_F77='-static'
18831 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018832 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000018833 lt_prog_compiler_wl_F77='-Wl,'
18834 # All Alpha code is PIC.
18835 lt_prog_compiler_static_F77='-non_shared'
18836 ;;
18837 esac
18838 ;;
18839
18840 osf3* | osf4* | osf5*)
18841 lt_prog_compiler_wl_F77='-Wl,'
18842 # All OSF/1 code is PIC.
18843 lt_prog_compiler_static_F77='-non_shared'
18844 ;;
18845
18846 sco3.2v5*)
18847 lt_prog_compiler_pic_F77='-Kpic'
18848 lt_prog_compiler_static_F77='-dn'
18849 ;;
18850
18851 solaris*)
18852 lt_prog_compiler_wl_F77='-Wl,'
18853 lt_prog_compiler_pic_F77='-KPIC'
18854 lt_prog_compiler_static_F77='-Bstatic'
18855 ;;
18856
18857 sunos4*)
18858 lt_prog_compiler_wl_F77='-Qoption ld '
18859 lt_prog_compiler_pic_F77='-PIC'
18860 lt_prog_compiler_static_F77='-Bstatic'
18861 ;;
18862
18863 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18864 lt_prog_compiler_wl_F77='-Wl,'
18865 lt_prog_compiler_pic_F77='-KPIC'
18866 lt_prog_compiler_static_F77='-Bstatic'
18867 ;;
18868
18869 sysv4*MP*)
18870 if test -d /usr/nec ;then
18871 lt_prog_compiler_pic_F77='-Kconform_pic'
18872 lt_prog_compiler_static_F77='-Bstatic'
18873 fi
18874 ;;
18875
18876 uts4*)
18877 lt_prog_compiler_pic_F77='-pic'
18878 lt_prog_compiler_static_F77='-Bstatic'
18879 ;;
18880
18881 *)
18882 lt_prog_compiler_can_build_shared_F77=no
18883 ;;
18884 esac
18885 fi
18886
18887echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18888echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18889
18890#
18891# Check to make sure the PIC flag actually works.
18892#
18893if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018894
18895echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018896echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18897if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18898 echo $ECHO_N "(cached) $ECHO_C" >&6
18899else
18900 lt_prog_compiler_pic_works_F77=no
18901 ac_outfile=conftest.$ac_objext
18902 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18903 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18904 # Insert the option either (1) after the last *FLAGS variable, or
18905 # (2) before a word containing "conftest.", or (3) at the end.
18906 # Note that $ac_compile itself does not contain backslashes and begins
18907 # with a dollar sign (not a hyphen), so the echo should work correctly.
18908 # The option is referenced via a variable to avoid confusing sed.
18909 lt_compile=`echo "$ac_compile" | $SED \
18910 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18912 -e 's:$: $lt_compiler_flag:'`
Reid Spencer502935f2004-12-22 05:56:56 +000018913 (eval echo "\"\$as_me:18913: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018914 (eval "$lt_compile" 2>conftest.err)
18915 ac_status=$?
18916 cat conftest.err >&5
Reid Spencer502935f2004-12-22 05:56:56 +000018917 echo "$as_me:18917: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018918 if (exit $ac_status) && test -s "$ac_outfile"; then
18919 # The compiler can only warn and ignore the option if not recognized
18920 # So say no if there are warnings
18921 if test ! -s conftest.err; then
18922 lt_prog_compiler_pic_works_F77=yes
18923 fi
18924 fi
18925 $rm conftest*
18926
18927fi
18928echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18929echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18930
18931if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18932 case $lt_prog_compiler_pic_F77 in
18933 "" | " "*) ;;
18934 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18935 esac
18936else
18937 lt_prog_compiler_pic_F77=
18938 lt_prog_compiler_can_build_shared_F77=no
18939fi
18940
18941fi
18942case "$host_os" in
18943 # For platforms which do not support PIC, -DPIC is meaningless:
18944 *djgpp*)
18945 lt_prog_compiler_pic_F77=
18946 ;;
18947 *)
18948 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18949 ;;
18950esac
18951
18952echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18953echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18954if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18956else
18957 lt_cv_prog_compiler_c_o_F77=no
18958 $rm -r conftest 2>/dev/null
18959 mkdir conftest
18960 cd conftest
18961 mkdir out
18962 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18963
John Criswell47fdd832003-07-14 16:52:07 +000018964 lt_compiler_flag="-o out/conftest2.$ac_objext"
18965 # Insert the option either (1) after the last *FLAGS variable, or
18966 # (2) before a word containing "conftest.", or (3) at the end.
18967 # Note that $ac_compile itself does not contain backslashes and begins
18968 # with a dollar sign (not a hyphen), so the echo should work correctly.
18969 lt_compile=`echo "$ac_compile" | $SED \
18970 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18971 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18972 -e 's:$: $lt_compiler_flag:'`
Reid Spencer502935f2004-12-22 05:56:56 +000018973 (eval echo "\"\$as_me:18973: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018974 (eval "$lt_compile" 2>out/conftest.err)
18975 ac_status=$?
18976 cat out/conftest.err >&5
Reid Spencer502935f2004-12-22 05:56:56 +000018977 echo "$as_me:18977: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018978 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18979 then
18980 # The compiler can only warn and ignore the option if not recognized
18981 # So say no if there are warnings
18982 if test ! -s out/conftest.err; then
18983 lt_cv_prog_compiler_c_o_F77=yes
18984 fi
18985 fi
18986 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000018987 $rm conftest*
18988 # SGI C++ compiler will create directory out/ii_files/ for
18989 # template instantiation
18990 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18991 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000018992 cd ..
18993 rmdir conftest
18994 $rm conftest*
18995
18996fi
18997echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18998echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18999
19000
19001hard_links="nottested"
19002if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19003 # do not overwrite the value of need_locks provided by the user
19004 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19005echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19006 hard_links=yes
19007 $rm conftest*
19008 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19009 touch conftest.a
19010 ln conftest.a conftest.b 2>&5 || hard_links=no
19011 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19012 echo "$as_me:$LINENO: result: $hard_links" >&5
19013echo "${ECHO_T}$hard_links" >&6
19014 if test "$hard_links" = no; then
19015 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19016echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19017 need_locks=warn
19018 fi
19019else
19020 need_locks=no
19021fi
19022
19023echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19024echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19025
19026 runpath_var=
19027 allow_undefined_flag_F77=
19028 enable_shared_with_static_runtimes_F77=no
19029 archive_cmds_F77=
19030 archive_expsym_cmds_F77=
19031 old_archive_From_new_cmds_F77=
19032 old_archive_from_expsyms_cmds_F77=
19033 export_dynamic_flag_spec_F77=
19034 whole_archive_flag_spec_F77=
19035 thread_safe_flag_spec_F77=
19036 hardcode_libdir_flag_spec_F77=
19037 hardcode_libdir_flag_spec_ld_F77=
19038 hardcode_libdir_separator_F77=
19039 hardcode_direct_F77=no
19040 hardcode_minus_L_F77=no
19041 hardcode_shlibpath_var_F77=unsupported
19042 link_all_deplibs_F77=unknown
19043 hardcode_automatic_F77=no
19044 module_cmds_F77=
19045 module_expsym_cmds_F77=
19046 always_export_symbols_F77=no
19047 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19048 # include_expsyms should be a list of space-separated symbols to be *always*
19049 # included in the symbol list
19050 include_expsyms_F77=
19051 # exclude_expsyms can be an extended regexp of symbols to exclude
19052 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19053 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19054 # as well as any symbol that contains `d'.
19055 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19056 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19057 # platforms (ab)use it in PIC code, but their linkers get confused if
19058 # the symbol is explicitly referenced. Since portable code cannot
19059 # rely on this symbol name, it's probably fine to never include it in
19060 # preloaded symbol tables.
19061 extract_expsyms_cmds=
19062
19063 case $host_os in
19064 cygwin* | mingw* | pw32*)
19065 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19066 # When not using gcc, we currently assume that we are using
19067 # Microsoft Visual C++.
19068 if test "$GCC" != yes; then
19069 with_gnu_ld=no
19070 fi
19071 ;;
19072 openbsd*)
19073 with_gnu_ld=no
19074 ;;
19075 esac
19076
19077 ld_shlibs_F77=yes
19078 if test "$with_gnu_ld" = yes; then
19079 # If archive_cmds runs LD, not CC, wlarc should be empty
19080 wlarc='${wl}'
19081
19082 # See if GNU ld supports shared libraries.
19083 case $host_os in
19084 aix3* | aix4* | aix5*)
19085 # On AIX/PPC, the GNU linker is very broken
19086 if test "$host_cpu" != ia64; then
19087 ld_shlibs_F77=no
19088 cat <<EOF 1>&2
19089
19090*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19091*** to be unable to reliably create shared libraries on AIX.
19092*** Therefore, libtool is disabling shared libraries support. If you
19093*** really care for shared libraries, you may want to modify your PATH
19094*** so that a non-GNU linker is found, and then restart.
19095
19096EOF
19097 fi
19098 ;;
19099
19100 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019101 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)'
John Criswell47fdd832003-07-14 16:52:07 +000019102 hardcode_libdir_flag_spec_F77='-L$libdir'
19103 hardcode_minus_L_F77=yes
19104
19105 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19106 # that the semantics of dynamic libraries on AmigaOS, at least up
19107 # to version 4, is to share data among multiple programs linked
19108 # with the same dynamic library. Since this doesn't match the
19109 # behavior of shared libraries on other platforms, we can't use
19110 # them.
19111 ld_shlibs_F77=no
19112 ;;
19113
19114 beos*)
19115 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19116 allow_undefined_flag_F77=unsupported
19117 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19118 # support --undefined. This deserves some investigation. FIXME
19119 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19120 else
19121 ld_shlibs_F77=no
19122 fi
19123 ;;
19124
19125 cygwin* | mingw* | pw32*)
19126 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19127 # as there is no search path for DLLs.
19128 hardcode_libdir_flag_spec_F77='-L$libdir'
19129 allow_undefined_flag_F77=unsupported
19130 always_export_symbols_F77=no
19131 enable_shared_with_static_runtimes_F77=yes
19132 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19133
19134 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19135 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19136 # If the export-symbols file already is a .def file (1st line
19137 # is EXPORTS), use it as is; otherwise, prepend...
19138 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19139 cp $export_symbols $output_objdir/$soname.def;
19140 else
19141 echo EXPORTS > $output_objdir/$soname.def;
19142 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019143 fi~
19144 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
John Criswell47fdd832003-07-14 16:52:07 +000019145 else
19146 ld_shlibs=no
19147 fi
19148 ;;
19149
19150 netbsd*)
19151 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19152 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19153 wlarc=
19154 else
19155 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19156 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19157 fi
19158 ;;
19159
19160 solaris* | sysv5*)
19161 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19162 ld_shlibs_F77=no
19163 cat <<EOF 1>&2
19164
19165*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19166*** create shared libraries on Solaris systems. Therefore, libtool
19167*** is disabling shared libraries support. We urge you to upgrade GNU
19168*** binutils to release 2.9.1 or newer. Another option is to modify
19169*** your PATH or compiler configuration so that the native linker is
19170*** used, and then restart.
19171
19172EOF
19173 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19174 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19175 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19176 else
19177 ld_shlibs_F77=no
19178 fi
19179 ;;
19180
19181 sunos4*)
19182 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19183 wlarc=
19184 hardcode_direct_F77=yes
19185 hardcode_shlibpath_var_F77=no
19186 ;;
19187
Reid Spencer2706f8c2004-09-19 23:53:36 +000019188 linux*)
19189 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19190 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19191 archive_cmds_F77="$tmp_archive_cmds"
19192 supports_anon_versioning=no
19193 case `$LD -v 2>/dev/null` in
19194 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19195 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19196 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19197 *\ 2.11.*) ;; # other 2.11 versions
19198 *) supports_anon_versioning=yes ;;
19199 esac
19200 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019201 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19202cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19203$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019204 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19205 else
19206 archive_expsym_cmds_F77="$tmp_archive_cmds"
19207 fi
19208 else
19209 ld_shlibs_F77=no
19210 fi
19211 ;;
19212
John Criswell47fdd832003-07-14 16:52:07 +000019213 *)
19214 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19215 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19216 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19217 else
19218 ld_shlibs_F77=no
19219 fi
19220 ;;
19221 esac
19222
19223 if test "$ld_shlibs_F77" = yes; then
19224 runpath_var=LD_RUN_PATH
19225 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19226 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19227 # ancient GNU ld didn't support --whole-archive et. al.
19228 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19229 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19230 else
19231 whole_archive_flag_spec_F77=
19232 fi
19233 fi
19234 else
19235 # PORTME fill in a description of your system's linker (not GNU ld)
19236 case $host_os in
19237 aix3*)
19238 allow_undefined_flag_F77=unsupported
19239 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019240 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'
John Criswell47fdd832003-07-14 16:52:07 +000019241 # Note: this linker hardcodes the directories in LIBPATH if there
19242 # are no directories specified by -L.
19243 hardcode_minus_L_F77=yes
19244 if test "$GCC" = yes && test -z "$link_static_flag"; then
19245 # Neither direct hardcoding nor static linking is supported with a
19246 # broken collect2.
19247 hardcode_direct_F77=unsupported
19248 fi
19249 ;;
19250
19251 aix4* | aix5*)
19252 if test "$host_cpu" = ia64; then
19253 # On IA64, the linker does run time linking by default, so we don't
19254 # have to do anything special.
19255 aix_use_runtimelinking=no
19256 exp_sym_flag='-Bexport'
19257 no_entry_flag=""
19258 else
19259 # If we're using GNU nm, then we don't want the "-C" option.
19260 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19261 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19262 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'
19263 else
19264 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'
19265 fi
19266 aix_use_runtimelinking=no
19267
19268 # Test if we are trying to use run time linking or normal
19269 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19270 # need to do runtime linking.
19271 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19272 for ld_flag in $LDFLAGS; do
19273 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19274 aix_use_runtimelinking=yes
19275 break
19276 fi
19277 done
19278 esac
19279
19280 exp_sym_flag='-bexport'
19281 no_entry_flag='-bnoentry'
19282 fi
19283
19284 # When large executables or shared objects are built, AIX ld can
19285 # have problems creating the table of contents. If linking a library
19286 # or program results in "error TOC overflow" add -mminimal-toc to
19287 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19288 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19289
19290 archive_cmds_F77=''
19291 hardcode_direct_F77=yes
19292 hardcode_libdir_separator_F77=':'
19293 link_all_deplibs_F77=yes
19294
19295 if test "$GCC" = yes; then
19296 case $host_os in aix4.012|aix4.012.*)
19297 # We only want to do this on AIX 4.2 and lower, the check
19298 # below for broken collect2 doesn't work under 4.3+
19299 collect2name=`${CC} -print-prog-name=collect2`
19300 if test -f "$collect2name" && \
19301 strings "$collect2name" | grep resolve_lib_name >/dev/null
19302 then
19303 # We have reworked collect2
19304 hardcode_direct_F77=yes
19305 else
19306 # We have old collect2
19307 hardcode_direct_F77=unsupported
19308 # It fails to find uninstalled libraries when the uninstalled
19309 # path is not listed in the libpath. Setting hardcode_minus_L
19310 # to unsupported forces relinking
19311 hardcode_minus_L_F77=yes
19312 hardcode_libdir_flag_spec_F77='-L$libdir'
19313 hardcode_libdir_separator_F77=
19314 fi
19315 esac
19316 shared_flag='-shared'
19317 else
19318 # not using gcc
19319 if test "$host_cpu" = ia64; then
19320 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19321 # chokes on -Wl,-G. The following line is correct:
19322 shared_flag='-G'
19323 else
19324 if test "$aix_use_runtimelinking" = yes; then
19325 shared_flag='${wl}-G'
19326 else
19327 shared_flag='${wl}-bM:SRE'
19328 fi
19329 fi
19330 fi
19331
19332 # It seems that -bexpall does not export symbols beginning with
19333 # underscore (_), so it is better to generate a list of symbols to export.
19334 always_export_symbols_F77=yes
19335 if test "$aix_use_runtimelinking" = yes; then
19336 # Warning - without using the other runtime loading flags (-brtl),
19337 # -berok will link without error, but may produce a broken library.
19338 allow_undefined_flag_F77='-berok'
19339 # Determine the default libpath from the value encoded in an empty executable.
19340 cat >conftest.$ac_ext <<_ACEOF
19341 program main
19342
19343 end
19344_ACEOF
19345rm -f conftest.$ac_objext conftest$ac_exeext
19346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019347 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019348 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019349 grep -v '^ *+' conftest.er1 >conftest.err
19350 rm -f conftest.er1
19351 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019354 { ac_try='test -z "$ac_f77_werror_flag"
19355 || test ! -s conftest.err'
19356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357 (eval $ac_try) 2>&5
19358 ac_status=$?
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; } &&
19361 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363 (eval $ac_try) 2>&5
19364 ac_status=$?
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; }; then
19367
19368aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19369}'`
19370# Check for a 64-bit object if we didn't find anything.
19371if 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; }
19372}'`; fi
19373else
19374 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019375sed 's/^/| /' conftest.$ac_ext >&5
19376
John Criswell47fdd832003-07-14 16:52:07 +000019377fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019378rm -f conftest.err conftest.$ac_objext \
19379 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019380if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19381
19382 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19383 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"
19384 else
19385 if test "$host_cpu" = ia64; then
19386 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19387 allow_undefined_flag_F77="-z nodefs"
19388 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"
19389 else
19390 # Determine the default libpath from the value encoded in an empty executable.
19391 cat >conftest.$ac_ext <<_ACEOF
19392 program main
19393
19394 end
19395_ACEOF
19396rm -f conftest.$ac_objext conftest$ac_exeext
19397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019398 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019399 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019400 grep -v '^ *+' conftest.er1 >conftest.err
19401 rm -f conftest.er1
19402 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019405 { ac_try='test -z "$ac_f77_werror_flag"
19406 || test ! -s conftest.err'
19407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408 (eval $ac_try) 2>&5
19409 ac_status=$?
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); }; } &&
19412 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414 (eval $ac_try) 2>&5
19415 ac_status=$?
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); }; }; then
19418
19419aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19420}'`
19421# Check for a 64-bit object if we didn't find anything.
19422if 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; }
19423}'`; fi
19424else
19425 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019426sed 's/^/| /' conftest.$ac_ext >&5
19427
John Criswell47fdd832003-07-14 16:52:07 +000019428fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019429rm -f conftest.err conftest.$ac_objext \
19430 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019431if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19432
19433 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19434 # Warning - without using the other run time loading flags,
19435 # -berok will link without error, but may produce a broken library.
19436 no_undefined_flag_F77=' ${wl}-bernotok'
19437 allow_undefined_flag_F77=' ${wl}-berok'
19438 # -bexpall does not export symbols beginning with underscore (_)
19439 always_export_symbols_F77=yes
19440 # Exported symbols can be pulled into shared objects from archives
19441 whole_archive_flag_spec_F77=' '
19442 archive_cmds_need_lc_F77=yes
19443 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019444 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'
John Criswell47fdd832003-07-14 16:52:07 +000019445 fi
19446 fi
19447 ;;
19448
19449 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019450 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)'
John Criswell47fdd832003-07-14 16:52:07 +000019451 hardcode_libdir_flag_spec_F77='-L$libdir'
19452 hardcode_minus_L_F77=yes
19453 # see comment about different semantics on the GNU ld section
19454 ld_shlibs_F77=no
19455 ;;
19456
Reid Spencer2706f8c2004-09-19 23:53:36 +000019457 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019458 export_dynamic_flag_spec_F77=-rdynamic
19459 ;;
19460
19461 cygwin* | mingw* | pw32*)
19462 # When not using gcc, we currently assume that we are using
19463 # Microsoft Visual C++.
19464 # hardcode_libdir_flag_spec is actually meaningless, as there is
19465 # no search path for DLLs.
19466 hardcode_libdir_flag_spec_F77=' '
19467 allow_undefined_flag_F77=unsupported
19468 # Tell ltmain to make .lib files, not .a files.
19469 libext=lib
19470 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019471 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019472 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019473 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000019474 # The linker will automatically build a .lib file if we build a DLL.
19475 old_archive_From_new_cmds_F77='true'
19476 # FIXME: Should let the user specify the lib program.
19477 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19478 fix_srcfile_path='`cygpath -w "$srcfile"`'
19479 enable_shared_with_static_runtimes_F77=yes
19480 ;;
19481
19482 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019483 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019484 rhapsody* | darwin1.[012])
19485 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19486 ;;
19487 *) # Darwin 1.3 on
19488 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19489 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19490 else
19491 case ${MACOSX_DEPLOYMENT_TARGET} in
19492 10.[012])
19493 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19494 ;;
19495 10.*)
19496 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19497 ;;
19498 esac
19499 fi
19500 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019501 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019502 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019503 hardcode_direct_F77=no
19504 hardcode_automatic_F77=yes
19505 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019506 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019507 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019508 if test "$GCC" = yes ; then
19509 output_verbose_link_cmd='echo'
19510 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19511 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19512 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +000019513 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19514 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019515 else
19516 case "$cc_basename" in
19517 xlc*)
19518 output_verbose_link_cmd='echo'
19519 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19520 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19521 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +000019522 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19523 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019524 ;;
19525 *)
19526 ld_shlibs_F77=no
19527 ;;
19528 esac
John Criswell47fdd832003-07-14 16:52:07 +000019529 fi
19530 ;;
19531
19532 dgux*)
19533 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19534 hardcode_libdir_flag_spec_F77='-L$libdir'
19535 hardcode_shlibpath_var_F77=no
19536 ;;
19537
19538 freebsd1*)
19539 ld_shlibs_F77=no
19540 ;;
19541
19542 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19543 # support. Future versions do this automatically, but an explicit c++rt0.o
19544 # does not break anything, and helps significantly (at the cost of a little
19545 # extra space).
19546 freebsd2.2*)
19547 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19548 hardcode_libdir_flag_spec_F77='-R$libdir'
19549 hardcode_direct_F77=yes
19550 hardcode_shlibpath_var_F77=no
19551 ;;
19552
19553 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19554 freebsd2*)
19555 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19556 hardcode_direct_F77=yes
19557 hardcode_minus_L_F77=yes
19558 hardcode_shlibpath_var_F77=no
19559 ;;
19560
19561 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019562 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019563 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19564 hardcode_libdir_flag_spec_F77='-R$libdir'
19565 hardcode_direct_F77=yes
19566 hardcode_shlibpath_var_F77=no
19567 ;;
19568
19569 hpux9*)
19570 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019571 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'
John Criswell47fdd832003-07-14 16:52:07 +000019572 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019573 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'
John Criswell47fdd832003-07-14 16:52:07 +000019574 fi
19575 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19576 hardcode_libdir_separator_F77=:
19577 hardcode_direct_F77=yes
19578
19579 # hardcode_minus_L: Not really in the search PATH,
19580 # but as the default location of the library.
19581 hardcode_minus_L_F77=yes
19582 export_dynamic_flag_spec_F77='${wl}-E'
19583 ;;
19584
19585 hpux10* | hpux11*)
19586 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19587 case "$host_cpu" in
19588 hppa*64*|ia64*)
19589 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19590 ;;
19591 *)
19592 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19593 ;;
19594 esac
19595 else
19596 case "$host_cpu" in
19597 hppa*64*|ia64*)
19598 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19599 ;;
19600 *)
19601 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19602 ;;
19603 esac
19604 fi
19605 if test "$with_gnu_ld" = no; then
19606 case "$host_cpu" in
19607 hppa*64*)
19608 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19609 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19610 hardcode_libdir_separator_F77=:
19611 hardcode_direct_F77=no
19612 hardcode_shlibpath_var_F77=no
19613 ;;
19614 ia64*)
19615 hardcode_libdir_flag_spec_F77='-L$libdir'
19616 hardcode_direct_F77=no
19617 hardcode_shlibpath_var_F77=no
19618
19619 # hardcode_minus_L: Not really in the search PATH,
19620 # but as the default location of the library.
19621 hardcode_minus_L_F77=yes
19622 ;;
19623 *)
19624 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19625 hardcode_libdir_separator_F77=:
19626 hardcode_direct_F77=yes
19627 export_dynamic_flag_spec_F77='${wl}-E'
19628
19629 # hardcode_minus_L: Not really in the search PATH,
19630 # but as the default location of the library.
19631 hardcode_minus_L_F77=yes
19632 ;;
19633 esac
19634 fi
19635 ;;
19636
19637 irix5* | irix6* | nonstopux*)
19638 if test "$GCC" = yes; then
19639 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'
19640 else
19641 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'
19642 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19643 fi
19644 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19645 hardcode_libdir_separator_F77=:
19646 link_all_deplibs_F77=yes
19647 ;;
19648
19649 netbsd*)
19650 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19651 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19652 else
19653 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19654 fi
19655 hardcode_libdir_flag_spec_F77='-R$libdir'
19656 hardcode_direct_F77=yes
19657 hardcode_shlibpath_var_F77=no
19658 ;;
19659
19660 newsos6)
19661 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19662 hardcode_direct_F77=yes
19663 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19664 hardcode_libdir_separator_F77=:
19665 hardcode_shlibpath_var_F77=no
19666 ;;
19667
19668 openbsd*)
19669 hardcode_direct_F77=yes
19670 hardcode_shlibpath_var_F77=no
19671 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19672 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019673 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000019674 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19675 export_dynamic_flag_spec_F77='${wl}-E'
19676 else
19677 case $host_os in
19678 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19679 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19680 hardcode_libdir_flag_spec_F77='-R$libdir'
19681 ;;
19682 *)
19683 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19684 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19685 ;;
19686 esac
19687 fi
19688 ;;
19689
19690 os2*)
19691 hardcode_libdir_flag_spec_F77='-L$libdir'
19692 hardcode_minus_L_F77=yes
19693 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019694 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'
John Criswell47fdd832003-07-14 16:52:07 +000019695 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19696 ;;
19697
19698 osf3*)
19699 if test "$GCC" = yes; then
19700 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19701 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'
19702 else
19703 allow_undefined_flag_F77=' -expect_unresolved \*'
19704 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'
19705 fi
19706 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19707 hardcode_libdir_separator_F77=:
19708 ;;
19709
19710 osf4* | osf5*) # as osf3* with the addition of -msym flag
19711 if test "$GCC" = yes; then
19712 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19713 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'
19714 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19715 else
19716 allow_undefined_flag_F77=' -expect_unresolved \*'
19717 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'
Reid Spencer177dbe22004-10-13 01:01:03 +000019718 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~
19719 $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'
19720
John Criswell47fdd832003-07-14 16:52:07 +000019721 # Both c and cxx compiler support -rpath directly
19722 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19723 fi
19724 hardcode_libdir_separator_F77=:
19725 ;;
19726
19727 sco3.2v5*)
19728 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19729 hardcode_shlibpath_var_F77=no
19730 export_dynamic_flag_spec_F77='${wl}-Bexport'
19731 runpath_var=LD_RUN_PATH
19732 hardcode_runpath_var=yes
19733 ;;
19734
19735 solaris*)
19736 no_undefined_flag_F77=' -z text'
19737 if test "$GCC" = yes; then
19738 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019739 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19740 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019741 else
19742 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019743 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19744 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019745 fi
19746 hardcode_libdir_flag_spec_F77='-R$libdir'
19747 hardcode_shlibpath_var_F77=no
19748 case $host_os in
19749 solaris2.[0-5] | solaris2.[0-5].*) ;;
19750 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19751 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19752 esac
19753 link_all_deplibs_F77=yes
19754 ;;
19755
19756 sunos4*)
19757 if test "x$host_vendor" = xsequent; then
19758 # Use $CC to link under sequent, because it throws in some extra .o
19759 # files that make .init and .fini sections work.
19760 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19761 else
19762 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19763 fi
19764 hardcode_libdir_flag_spec_F77='-L$libdir'
19765 hardcode_direct_F77=yes
19766 hardcode_minus_L_F77=yes
19767 hardcode_shlibpath_var_F77=no
19768 ;;
19769
19770 sysv4)
19771 case $host_vendor in
19772 sni)
19773 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19774 hardcode_direct_F77=yes # is this really true???
19775 ;;
19776 siemens)
19777 ## LD is ld it makes a PLAMLIB
19778 ## CC just makes a GrossModule.
19779 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19780 reload_cmds_F77='$CC -r -o $output$reload_objs'
19781 hardcode_direct_F77=no
19782 ;;
19783 motorola)
19784 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19785 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19786 ;;
19787 esac
19788 runpath_var='LD_RUN_PATH'
19789 hardcode_shlibpath_var_F77=no
19790 ;;
19791
19792 sysv4.3*)
19793 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19794 hardcode_shlibpath_var_F77=no
19795 export_dynamic_flag_spec_F77='-Bexport'
19796 ;;
19797
19798 sysv4*MP*)
19799 if test -d /usr/nec; then
19800 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19801 hardcode_shlibpath_var_F77=no
19802 runpath_var=LD_RUN_PATH
19803 hardcode_runpath_var=yes
19804 ld_shlibs_F77=yes
19805 fi
19806 ;;
19807
19808 sysv4.2uw2*)
19809 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19810 hardcode_direct_F77=yes
19811 hardcode_minus_L_F77=no
19812 hardcode_shlibpath_var_F77=no
19813 hardcode_runpath_var=yes
19814 runpath_var=LD_RUN_PATH
19815 ;;
19816
19817 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19818 no_undefined_flag_F77='${wl}-z ${wl}text'
19819 if test "$GCC" = yes; then
19820 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19821 else
19822 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19823 fi
19824 runpath_var='LD_RUN_PATH'
19825 hardcode_shlibpath_var_F77=no
19826 ;;
19827
19828 sysv5*)
19829 no_undefined_flag_F77=' -z text'
19830 # $CC -shared without GNU ld will not create a library from C++
19831 # object files and a static libstdc++, better avoid it by now
19832 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019833 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19834 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019835 hardcode_libdir_flag_spec_F77=
19836 hardcode_shlibpath_var_F77=no
19837 runpath_var='LD_RUN_PATH'
19838 ;;
19839
19840 uts4*)
19841 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19842 hardcode_libdir_flag_spec_F77='-L$libdir'
19843 hardcode_shlibpath_var_F77=no
19844 ;;
19845
19846 *)
19847 ld_shlibs_F77=no
19848 ;;
19849 esac
19850 fi
19851
19852echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19853echo "${ECHO_T}$ld_shlibs_F77" >&6
19854test "$ld_shlibs_F77" = no && can_build_shared=no
19855
19856variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19857if test "$GCC" = yes; then
19858 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19859fi
19860
19861#
19862# Do we need to explicitly link libc?
19863#
19864case "x$archive_cmds_need_lc_F77" in
19865x|xyes)
19866 # Assume -lc should be added
19867 archive_cmds_need_lc_F77=yes
19868
19869 if test "$enable_shared" = yes && test "$GCC" = yes; then
19870 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019871 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019872 # FIXME: we may have to deal with multi-command sequences.
19873 ;;
19874 '$CC '*)
19875 # Test whether the compiler implicitly links with -lc since on some
19876 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19877 # to ld, don't add -lc before -lgcc.
19878 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19879echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19880 $rm conftest*
19881 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19882
19883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19884 (eval $ac_compile) 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); } 2>conftest.err; then
19888 soname=conftest
19889 lib=conftest
19890 libobjs=conftest.$ac_objext
19891 deplibs=
19892 wl=$lt_prog_compiler_wl_F77
19893 compiler_flags=-v
19894 linker_flags=-v
19895 verstring=
19896 output_objdir=.
19897 libname=conftest
19898 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19899 allow_undefined_flag_F77=
19900 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19901 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19902 ac_status=$?
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); }
19905 then
19906 archive_cmds_need_lc_F77=no
19907 else
19908 archive_cmds_need_lc_F77=yes
19909 fi
19910 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19911 else
19912 cat conftest.err 1>&5
19913 fi
19914 $rm conftest*
19915 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19916echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19917 ;;
19918 esac
19919 fi
19920 ;;
19921esac
19922
John Criswell47fdd832003-07-14 16:52:07 +000019923echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19924echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19925library_names_spec=
19926libname_spec='lib$name'
19927soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019928shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019929postinstall_cmds=
19930postuninstall_cmds=
19931finish_cmds=
19932finish_eval=
19933shlibpath_var=
19934shlibpath_overrides_runpath=unknown
19935version_type=none
19936dynamic_linker="$host_os ld.so"
19937sys_lib_dlsearch_path_spec="/lib /usr/lib"
19938if test "$GCC" = yes; then
19939 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19940 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19941 # if the path contains ";" then we assume it to be the separator
19942 # otherwise default to the standard path separator (i.e. ":") - it is
19943 # assumed that no part of a normal pathname contains ";" but that should
19944 # okay in the real world where ";" in dirpaths is itself problematic.
19945 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19946 else
19947 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19948 fi
19949else
19950 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19951fi
19952need_lib_prefix=unknown
19953hardcode_into_libs=no
19954
19955# when you set need_version to no, make sure it does not cause -set_version
19956# flags to be left without arguments
19957need_version=unknown
19958
19959case $host_os in
19960aix3*)
19961 version_type=linux
19962 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19963 shlibpath_var=LIBPATH
19964
19965 # AIX 3 has no versioning support, so we append a major version to the name.
19966 soname_spec='${libname}${release}${shared_ext}$major'
19967 ;;
19968
19969aix4* | aix5*)
19970 version_type=linux
19971 need_lib_prefix=no
19972 need_version=no
19973 hardcode_into_libs=yes
19974 if test "$host_cpu" = ia64; then
19975 # AIX 5 supports IA64
19976 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19977 shlibpath_var=LD_LIBRARY_PATH
19978 else
19979 # With GCC up to 2.95.x, collect2 would create an import file
19980 # for dependence libraries. The import file would start with
19981 # the line `#! .'. This would cause the generated library to
19982 # depend on `.', always an invalid library. This was fixed in
19983 # development snapshots of GCC prior to 3.0.
19984 case $host_os in
19985 aix4 | aix4.[01] | aix4.[01].*)
19986 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19987 echo ' yes '
19988 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19989 :
19990 else
19991 can_build_shared=no
19992 fi
19993 ;;
19994 esac
19995 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19996 # soname into executable. Probably we can add versioning support to
19997 # collect2, so additional links can be useful in future.
19998 if test "$aix_use_runtimelinking" = yes; then
19999 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20000 # instead of lib<name>.a to let people know that these are not
20001 # typical AIX shared libraries.
20002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20003 else
20004 # We preserve .a as extension for shared libraries through AIX4.2
20005 # and later when we are not doing run time linking.
20006 library_names_spec='${libname}${release}.a $libname.a'
20007 soname_spec='${libname}${release}${shared_ext}$major'
20008 fi
20009 shlibpath_var=LIBPATH
20010 fi
20011 ;;
20012
20013amigaos*)
20014 library_names_spec='$libname.ixlibrary $libname.a'
20015 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020016 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 +000020017 ;;
20018
20019beos*)
20020 library_names_spec='${libname}${shared_ext}'
20021 dynamic_linker="$host_os ld.so"
20022 shlibpath_var=LIBRARY_PATH
20023 ;;
20024
Reid Spencer2706f8c2004-09-19 23:53:36 +000020025bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020026 version_type=linux
20027 need_version=no
20028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20029 soname_spec='${libname}${release}${shared_ext}$major'
20030 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20031 shlibpath_var=LD_LIBRARY_PATH
20032 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20033 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20034 # the default ld.so.conf also contains /usr/contrib/lib and
20035 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20036 # libtool to hard-code these into programs
20037 ;;
20038
20039cygwin* | mingw* | pw32*)
20040 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020041 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020042 need_version=no
20043 need_lib_prefix=no
20044
20045 case $GCC,$host_os in
20046 yes,cygwin* | yes,mingw* | yes,pw32*)
20047 library_names_spec='$libname.dll.a'
20048 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020049 postinstall_cmds='base_file=`basename \${file}`~
20050 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20051 dldir=$destdir/`dirname \$dlpath`~
20052 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020053 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020054 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20055 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020056 $rm \$dlpath'
20057 shlibpath_overrides_runpath=yes
20058
20059 case $host_os in
20060 cygwin*)
20061 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20062 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020063 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020064 ;;
20065 mingw*)
20066 # MinGW DLLs use traditional 'lib' prefix
20067 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20068 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20069 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20070 # It is most probably a Windows format PATH printed by
20071 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20072 # path with ; separators, and with drive letters. We can handle the
20073 # drive letters (cygwin fileutils understands them), so leave them,
20074 # especially as we might pass files found there to a mingw objdump,
20075 # which wouldn't understand a cygwinified path. Ahh.
20076 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20077 else
20078 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20079 fi
20080 ;;
20081 pw32*)
20082 # pw32 DLLs use 'pw' prefix rather than 'lib'
20083 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20084 ;;
20085 esac
20086 ;;
20087
20088 *)
20089 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20090 ;;
20091 esac
20092 dynamic_linker='Win32 ld.exe'
20093 # FIXME: first we should search . and the directory the executable is in
20094 shlibpath_var=PATH
20095 ;;
20096
20097darwin* | rhapsody*)
20098 dynamic_linker="$host_os dyld"
20099 version_type=darwin
20100 need_lib_prefix=no
20101 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020102 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020103 soname_spec='${libname}${release}${major}$shared_ext'
20104 shlibpath_overrides_runpath=yes
20105 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020106 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020107 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020108 if test "$GCC" = yes; then
20109 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"`
20110 else
20111 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020112 fi
20113 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20114 ;;
20115
20116dgux*)
20117 version_type=linux
20118 need_lib_prefix=no
20119 need_version=no
20120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20121 soname_spec='${libname}${release}${shared_ext}$major'
20122 shlibpath_var=LD_LIBRARY_PATH
20123 ;;
20124
20125freebsd1*)
20126 dynamic_linker=no
20127 ;;
20128
Reid Spencer2706f8c2004-09-19 23:53:36 +000020129kfreebsd*-gnu)
20130 version_type=linux
20131 need_lib_prefix=no
20132 need_version=no
20133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20134 soname_spec='${libname}${release}${shared_ext}$major'
20135 shlibpath_var=LD_LIBRARY_PATH
20136 shlibpath_overrides_runpath=no
20137 hardcode_into_libs=yes
20138 dynamic_linker='GNU ld.so'
20139 ;;
20140
John Criswell47fdd832003-07-14 16:52:07 +000020141freebsd*)
20142 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20143 version_type=freebsd-$objformat
20144 case $version_type in
20145 freebsd-elf*)
20146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20147 need_version=no
20148 need_lib_prefix=no
20149 ;;
20150 freebsd-*)
20151 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20152 need_version=yes
20153 ;;
20154 esac
20155 shlibpath_var=LD_LIBRARY_PATH
20156 case $host_os in
20157 freebsd2*)
20158 shlibpath_overrides_runpath=yes
20159 ;;
20160 freebsd3.01* | freebsdelf3.01*)
20161 shlibpath_overrides_runpath=yes
20162 hardcode_into_libs=yes
20163 ;;
20164 *) # from 3.2 on
20165 shlibpath_overrides_runpath=no
20166 hardcode_into_libs=yes
20167 ;;
20168 esac
20169 ;;
20170
20171gnu*)
20172 version_type=linux
20173 need_lib_prefix=no
20174 need_version=no
20175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20176 soname_spec='${libname}${release}${shared_ext}$major'
20177 shlibpath_var=LD_LIBRARY_PATH
20178 hardcode_into_libs=yes
20179 ;;
20180
20181hpux9* | hpux10* | hpux11*)
20182 # Give a soname corresponding to the major version so that dld.sl refuses to
20183 # link against other versions.
20184 version_type=sunos
20185 need_lib_prefix=no
20186 need_version=no
20187 case "$host_cpu" in
20188 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020189 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020190 hardcode_into_libs=yes
20191 dynamic_linker="$host_os dld.so"
20192 shlibpath_var=LD_LIBRARY_PATH
20193 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20195 soname_spec='${libname}${release}${shared_ext}$major'
20196 if test "X$HPUX_IA64_MODE" = X32; then
20197 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20198 else
20199 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20200 fi
20201 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20202 ;;
20203 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020204 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020205 hardcode_into_libs=yes
20206 dynamic_linker="$host_os dld.sl"
20207 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20208 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20210 soname_spec='${libname}${release}${shared_ext}$major'
20211 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20212 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20213 ;;
20214 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020215 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020216 dynamic_linker="$host_os dld.sl"
20217 shlibpath_var=SHLIB_PATH
20218 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20220 soname_spec='${libname}${release}${shared_ext}$major'
20221 ;;
20222 esac
20223 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20224 postinstall_cmds='chmod 555 $lib'
20225 ;;
20226
20227irix5* | irix6* | nonstopux*)
20228 case $host_os in
20229 nonstopux*) version_type=nonstopux ;;
20230 *)
20231 if test "$lt_cv_prog_gnu_ld" = yes; then
20232 version_type=linux
20233 else
20234 version_type=irix
20235 fi ;;
20236 esac
20237 need_lib_prefix=no
20238 need_version=no
20239 soname_spec='${libname}${release}${shared_ext}$major'
20240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20241 case $host_os in
20242 irix5* | nonstopux*)
20243 libsuff= shlibsuff=
20244 ;;
20245 *)
20246 case $LD in # libtool.m4 will add one of these switches to LD
20247 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20248 libsuff= shlibsuff= libmagic=32-bit;;
20249 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20250 libsuff=32 shlibsuff=N32 libmagic=N32;;
20251 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20252 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20253 *) libsuff= shlibsuff= libmagic=never-match;;
20254 esac
20255 ;;
20256 esac
20257 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20258 shlibpath_overrides_runpath=no
20259 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20260 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20261 hardcode_into_libs=yes
20262 ;;
20263
20264# No shared lib support for Linux oldld, aout, or coff.
20265linux*oldld* | linux*aout* | linux*coff*)
20266 dynamic_linker=no
20267 ;;
20268
20269# This must be Linux ELF.
20270linux*)
20271 version_type=linux
20272 need_lib_prefix=no
20273 need_version=no
20274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20275 soname_spec='${libname}${release}${shared_ext}$major'
20276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20277 shlibpath_var=LD_LIBRARY_PATH
20278 shlibpath_overrides_runpath=no
20279 # This implies no fast_install, which is unacceptable.
20280 # Some rework will be needed to allow for fast_install
20281 # before this can be enabled.
20282 hardcode_into_libs=yes
20283
Reid Spencer2706f8c2004-09-19 23:53:36 +000020284 # Append ld.so.conf contents to the search path
20285 if test -f /etc/ld.so.conf; then
20286 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20287 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20288 fi
20289
John Criswell47fdd832003-07-14 16:52:07 +000020290 # We used to test for /lib/ld.so.1 and disable shared libraries on
20291 # powerpc, because MkLinux only supported shared libraries with the
20292 # GNU dynamic linker. Since this was broken with cross compilers,
20293 # most powerpc-linux boxes support dynamic linking these days and
20294 # people can always --disable-shared, the test was removed, and we
20295 # assume the GNU/Linux dynamic linker is in use.
20296 dynamic_linker='GNU/Linux ld.so'
20297 ;;
20298
Reid Spencer2706f8c2004-09-19 23:53:36 +000020299knetbsd*-gnu)
20300 version_type=linux
20301 need_lib_prefix=no
20302 need_version=no
20303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20304 soname_spec='${libname}${release}${shared_ext}$major'
20305 shlibpath_var=LD_LIBRARY_PATH
20306 shlibpath_overrides_runpath=no
20307 hardcode_into_libs=yes
20308 dynamic_linker='GNU ld.so'
20309 ;;
20310
John Criswell47fdd832003-07-14 16:52:07 +000020311netbsd*)
20312 version_type=sunos
20313 need_lib_prefix=no
20314 need_version=no
20315 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20318 dynamic_linker='NetBSD (a.out) ld.so'
20319 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020321 soname_spec='${libname}${release}${shared_ext}$major'
20322 dynamic_linker='NetBSD ld.elf_so'
20323 fi
20324 shlibpath_var=LD_LIBRARY_PATH
20325 shlibpath_overrides_runpath=yes
20326 hardcode_into_libs=yes
20327 ;;
20328
20329newsos6)
20330 version_type=linux
20331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20332 shlibpath_var=LD_LIBRARY_PATH
20333 shlibpath_overrides_runpath=yes
20334 ;;
20335
Reid Spencer2706f8c2004-09-19 23:53:36 +000020336nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020337 version_type=linux
20338 need_lib_prefix=no
20339 need_version=no
20340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20341 soname_spec='${libname}${release}${shared_ext}$major'
20342 shlibpath_var=LD_LIBRARY_PATH
20343 shlibpath_overrides_runpath=yes
20344 ;;
20345
20346openbsd*)
20347 version_type=sunos
20348 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020349 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20352 shlibpath_var=LD_LIBRARY_PATH
20353 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20354 case $host_os in
20355 openbsd2.[89] | openbsd2.[89].*)
20356 shlibpath_overrides_runpath=no
20357 ;;
20358 *)
20359 shlibpath_overrides_runpath=yes
20360 ;;
20361 esac
20362 else
20363 shlibpath_overrides_runpath=yes
20364 fi
20365 ;;
20366
20367os2*)
20368 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020369 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020370 need_lib_prefix=no
20371 library_names_spec='$libname${shared_ext} $libname.a'
20372 dynamic_linker='OS/2 ld.exe'
20373 shlibpath_var=LIBPATH
20374 ;;
20375
20376osf3* | osf4* | osf5*)
20377 version_type=osf
20378 need_lib_prefix=no
20379 need_version=no
20380 soname_spec='${libname}${release}${shared_ext}$major'
20381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20382 shlibpath_var=LD_LIBRARY_PATH
20383 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20384 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20385 ;;
20386
20387sco3.2v5*)
20388 version_type=osf
20389 soname_spec='${libname}${release}${shared_ext}$major'
20390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20391 shlibpath_var=LD_LIBRARY_PATH
20392 ;;
20393
20394solaris*)
20395 version_type=linux
20396 need_lib_prefix=no
20397 need_version=no
20398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20399 soname_spec='${libname}${release}${shared_ext}$major'
20400 shlibpath_var=LD_LIBRARY_PATH
20401 shlibpath_overrides_runpath=yes
20402 hardcode_into_libs=yes
20403 # ldd complains unless libraries are executable
20404 postinstall_cmds='chmod +x $lib'
20405 ;;
20406
20407sunos4*)
20408 version_type=sunos
20409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20410 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20411 shlibpath_var=LD_LIBRARY_PATH
20412 shlibpath_overrides_runpath=yes
20413 if test "$with_gnu_ld" = yes; then
20414 need_lib_prefix=no
20415 fi
20416 need_version=yes
20417 ;;
20418
20419sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20420 version_type=linux
20421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20422 soname_spec='${libname}${release}${shared_ext}$major'
20423 shlibpath_var=LD_LIBRARY_PATH
20424 case $host_vendor in
20425 sni)
20426 shlibpath_overrides_runpath=no
20427 need_lib_prefix=no
20428 export_dynamic_flag_spec='${wl}-Blargedynsym'
20429 runpath_var=LD_RUN_PATH
20430 ;;
20431 siemens)
20432 need_lib_prefix=no
20433 ;;
20434 motorola)
20435 need_lib_prefix=no
20436 need_version=no
20437 shlibpath_overrides_runpath=no
20438 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20439 ;;
20440 esac
20441 ;;
20442
20443sysv4*MP*)
20444 if test -d /usr/nec ;then
20445 version_type=linux
20446 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20447 soname_spec='$libname${shared_ext}.$major'
20448 shlibpath_var=LD_LIBRARY_PATH
20449 fi
20450 ;;
20451
20452uts4*)
20453 version_type=linux
20454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20455 soname_spec='${libname}${release}${shared_ext}$major'
20456 shlibpath_var=LD_LIBRARY_PATH
20457 ;;
20458
20459*)
20460 dynamic_linker=no
20461 ;;
20462esac
20463echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20464echo "${ECHO_T}$dynamic_linker" >&6
20465test "$dynamic_linker" = no && can_build_shared=no
20466
Reid Spencer2706f8c2004-09-19 23:53:36 +000020467echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20468echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20469hardcode_action_F77=
20470if test -n "$hardcode_libdir_flag_spec_F77" || \
20471 test -n "$runpath_var_F77" || \
20472 test "X$hardcode_automatic_F77" = "Xyes" ; then
20473
20474 # We can hardcode non-existant directories.
20475 if test "$hardcode_direct_F77" != no &&
20476 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20477 # have to relink, otherwise we might link with an installed library
20478 # when we should be linking with a yet-to-be-installed one
20479 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20480 test "$hardcode_minus_L_F77" != no; then
20481 # Linking always hardcodes the temporary library directory.
20482 hardcode_action_F77=relink
20483 else
20484 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20485 hardcode_action_F77=immediate
20486 fi
20487else
20488 # We cannot hardcode anything, or else we can only hardcode existing
20489 # directories.
20490 hardcode_action_F77=unsupported
20491fi
20492echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20493echo "${ECHO_T}$hardcode_action_F77" >&6
20494
20495if test "$hardcode_action_F77" = relink; then
20496 # Fast installation is not supported
20497 enable_fast_install=no
20498elif test "$shlibpath_overrides_runpath" = yes ||
20499 test "$enable_shared" = no; then
20500 # Fast installation is not necessary
20501 enable_fast_install=needless
20502fi
20503
20504striplib=
20505old_striplib=
20506echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20507echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20508if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20509 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20510 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20511 echo "$as_me:$LINENO: result: yes" >&5
20512echo "${ECHO_T}yes" >&6
20513else
20514# FIXME - insert some real tests, host_os isn't really good enough
20515 case $host_os in
20516 darwin*)
20517 if test -n "$STRIP" ; then
20518 striplib="$STRIP -x"
20519 echo "$as_me:$LINENO: result: yes" >&5
20520echo "${ECHO_T}yes" >&6
20521 else
20522 echo "$as_me:$LINENO: result: no" >&5
20523echo "${ECHO_T}no" >&6
20524fi
20525 ;;
20526 *)
20527 echo "$as_me:$LINENO: result: no" >&5
20528echo "${ECHO_T}no" >&6
20529 ;;
20530 esac
20531fi
20532
20533
John Criswell47fdd832003-07-14 16:52:07 +000020534
20535# The else clause should only fire when bootstrapping the
20536# libtool distribution, otherwise you forgot to ship ltmain.sh
20537# with your package, and you will get complaints that there are
20538# no rules to generate ltmain.sh.
20539if test -f "$ltmain"; then
20540 # See if we are running on zsh, and set the options which allow our commands through
20541 # without removal of \ escapes.
20542 if test -n "${ZSH_VERSION+set}" ; then
20543 setopt NO_GLOB_SUBST
20544 fi
20545 # Now quote all the things that may contain metacharacters while being
20546 # careful not to overquote the AC_SUBSTed values. We take copies of the
20547 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020548 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20549 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020550 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20551 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20552 deplibs_check_method reload_flag reload_cmds need_locks \
20553 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20554 lt_cv_sys_global_symbol_to_c_name_address \
20555 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20556 old_postinstall_cmds old_postuninstall_cmds \
20557 compiler_F77 \
20558 CC_F77 \
20559 LD_F77 \
20560 lt_prog_compiler_wl_F77 \
20561 lt_prog_compiler_pic_F77 \
20562 lt_prog_compiler_static_F77 \
20563 lt_prog_compiler_no_builtin_flag_F77 \
20564 export_dynamic_flag_spec_F77 \
20565 thread_safe_flag_spec_F77 \
20566 whole_archive_flag_spec_F77 \
20567 enable_shared_with_static_runtimes_F77 \
20568 old_archive_cmds_F77 \
20569 old_archive_from_new_cmds_F77 \
20570 predep_objects_F77 \
20571 postdep_objects_F77 \
20572 predeps_F77 \
20573 postdeps_F77 \
20574 compiler_lib_search_path_F77 \
20575 archive_cmds_F77 \
20576 archive_expsym_cmds_F77 \
20577 postinstall_cmds_F77 \
20578 postuninstall_cmds_F77 \
20579 old_archive_from_expsyms_cmds_F77 \
20580 allow_undefined_flag_F77 \
20581 no_undefined_flag_F77 \
20582 export_symbols_cmds_F77 \
20583 hardcode_libdir_flag_spec_F77 \
20584 hardcode_libdir_flag_spec_ld_F77 \
20585 hardcode_libdir_separator_F77 \
20586 hardcode_automatic_F77 \
20587 module_cmds_F77 \
20588 module_expsym_cmds_F77 \
20589 lt_cv_prog_compiler_c_o_F77 \
20590 exclude_expsyms_F77 \
20591 include_expsyms_F77; do
20592
20593 case $var in
20594 old_archive_cmds_F77 | \
20595 old_archive_from_new_cmds_F77 | \
20596 archive_cmds_F77 | \
20597 archive_expsym_cmds_F77 | \
20598 module_cmds_F77 | \
20599 module_expsym_cmds_F77 | \
20600 old_archive_from_expsyms_cmds_F77 | \
20601 export_symbols_cmds_F77 | \
20602 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20603 postinstall_cmds | postuninstall_cmds | \
20604 old_postinstall_cmds | old_postuninstall_cmds | \
20605 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20606 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020607 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000020608 ;;
20609 *)
20610 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20611 ;;
20612 esac
20613 done
20614
20615 case $lt_echo in
20616 *'\$0 --fallback-echo"')
20617 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20618 ;;
20619 esac
20620
20621cfgfile="$ofile"
20622
20623 cat <<__EOF__ >> "$cfgfile"
20624# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20625
20626# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20627
20628# Shell to use when invoking shell scripts.
20629SHELL=$lt_SHELL
20630
20631# Whether or not to build shared libraries.
20632build_libtool_libs=$enable_shared
20633
20634# Whether or not to build static libraries.
20635build_old_libs=$enable_static
20636
20637# Whether or not to add -lc for building shared libraries.
20638build_libtool_need_lc=$archive_cmds_need_lc_F77
20639
20640# Whether or not to disallow shared libs when runtime libs are static
20641allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20642
20643# Whether or not to optimize for fast installation.
20644fast_install=$enable_fast_install
20645
20646# The host system.
20647host_alias=$host_alias
20648host=$host
20649
20650# An echo program that does not interpret backslashes.
20651echo=$lt_echo
20652
20653# The archiver.
20654AR=$lt_AR
20655AR_FLAGS=$lt_AR_FLAGS
20656
20657# A C compiler.
20658LTCC=$lt_LTCC
20659
20660# A language-specific compiler.
20661CC=$lt_compiler_F77
20662
20663# Is the compiler the GNU C compiler?
20664with_gcc=$GCC_F77
20665
20666# An ERE matcher.
20667EGREP=$lt_EGREP
20668
20669# The linker used to build libraries.
20670LD=$lt_LD_F77
20671
20672# Whether we need hard or soft links.
20673LN_S=$lt_LN_S
20674
20675# A BSD-compatible nm program.
20676NM=$lt_NM
20677
20678# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020679STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020680
20681# Used to examine libraries when file_magic_cmd begins "file"
20682MAGIC_CMD=$MAGIC_CMD
20683
20684# Used on cygwin: DLL creation program.
20685DLLTOOL="$DLLTOOL"
20686
20687# Used on cygwin: object dumper.
20688OBJDUMP="$OBJDUMP"
20689
20690# Used on cygwin: assembler.
20691AS="$AS"
20692
20693# The name of the directory that contains temporary libtool files.
20694objdir=$objdir
20695
20696# How to create reloadable object files.
20697reload_flag=$lt_reload_flag
20698reload_cmds=$lt_reload_cmds
20699
20700# How to pass a linker flag through the compiler.
20701wl=$lt_lt_prog_compiler_wl_F77
20702
20703# Object file suffix (normally "o").
20704objext="$ac_objext"
20705
20706# Old archive suffix (normally "a").
20707libext="$libext"
20708
20709# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020710shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020711
20712# Executable file suffix (normally "").
20713exeext="$exeext"
20714
20715# Additional compiler flags for building library objects.
20716pic_flag=$lt_lt_prog_compiler_pic_F77
20717pic_mode=$pic_mode
20718
20719# What is the maximum length of a command?
20720max_cmd_len=$lt_cv_sys_max_cmd_len
20721
20722# Does compiler simultaneously support -c and -o options?
20723compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20724
20725# Must we lock files when doing compilation ?
20726need_locks=$lt_need_locks
20727
20728# Do we need the lib prefix for modules?
20729need_lib_prefix=$need_lib_prefix
20730
20731# Do we need a version for libraries?
20732need_version=$need_version
20733
20734# Whether dlopen is supported.
20735dlopen_support=$enable_dlopen
20736
20737# Whether dlopen of programs is supported.
20738dlopen_self=$enable_dlopen_self
20739
20740# Whether dlopen of statically linked programs is supported.
20741dlopen_self_static=$enable_dlopen_self_static
20742
20743# Compiler flag to prevent dynamic linking.
20744link_static_flag=$lt_lt_prog_compiler_static_F77
20745
20746# Compiler flag to turn off builtin functions.
20747no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20748
20749# Compiler flag to allow reflexive dlopens.
20750export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20751
20752# Compiler flag to generate shared objects directly from archives.
20753whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20754
20755# Compiler flag to generate thread-safe objects.
20756thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20757
20758# Library versioning type.
20759version_type=$version_type
20760
20761# Format of library name prefix.
20762libname_spec=$lt_libname_spec
20763
20764# List of archive names. First name is the real one, the rest are links.
20765# The last name is the one that the linker finds with -lNAME.
20766library_names_spec=$lt_library_names_spec
20767
20768# The coded name of the library, if different from the real name.
20769soname_spec=$lt_soname_spec
20770
20771# Commands used to build and install an old-style archive.
20772RANLIB=$lt_RANLIB
20773old_archive_cmds=$lt_old_archive_cmds_F77
20774old_postinstall_cmds=$lt_old_postinstall_cmds
20775old_postuninstall_cmds=$lt_old_postuninstall_cmds
20776
20777# Create an old-style archive from a shared archive.
20778old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20779
20780# Create a temporary old-style archive to link instead of a shared archive.
20781old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20782
20783# Commands used to build and install a shared archive.
20784archive_cmds=$lt_archive_cmds_F77
20785archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20786postinstall_cmds=$lt_postinstall_cmds
20787postuninstall_cmds=$lt_postuninstall_cmds
20788
20789# Commands used to build a loadable module (assumed same as above if empty)
20790module_cmds=$lt_module_cmds_F77
20791module_expsym_cmds=$lt_module_expsym_cmds_F77
20792
20793# Commands to strip libraries.
20794old_striplib=$lt_old_striplib
20795striplib=$lt_striplib
20796
20797# Dependencies to place before the objects being linked to create a
20798# shared library.
20799predep_objects=$lt_predep_objects_F77
20800
20801# Dependencies to place after the objects being linked to create a
20802# shared library.
20803postdep_objects=$lt_postdep_objects_F77
20804
20805# Dependencies to place before the objects being linked to create a
20806# shared library.
20807predeps=$lt_predeps_F77
20808
20809# Dependencies to place after the objects being linked to create a
20810# shared library.
20811postdeps=$lt_postdeps_F77
20812
20813# The library search path used internally by the compiler when linking
20814# a shared library.
20815compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20816
20817# Method to check whether dependent libraries are shared objects.
20818deplibs_check_method=$lt_deplibs_check_method
20819
20820# Command to use when deplibs_check_method == file_magic.
20821file_magic_cmd=$lt_file_magic_cmd
20822
20823# Flag that allows shared libraries with undefined symbols to be built.
20824allow_undefined_flag=$lt_allow_undefined_flag_F77
20825
20826# Flag that forces no undefined symbols.
20827no_undefined_flag=$lt_no_undefined_flag_F77
20828
20829# Commands used to finish a libtool library installation in a directory.
20830finish_cmds=$lt_finish_cmds
20831
20832# Same as above, but a single script fragment to be evaled but not shown.
20833finish_eval=$lt_finish_eval
20834
20835# Take the output of nm and produce a listing of raw symbols and C names.
20836global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20837
20838# Transform the output of nm in a proper C declaration
20839global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20840
20841# Transform the output of nm in a C name address pair
20842global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20843
20844# This is the shared library runtime path variable.
20845runpath_var=$runpath_var
20846
20847# This is the shared library path variable.
20848shlibpath_var=$shlibpath_var
20849
20850# Is shlibpath searched before the hard-coded library search path?
20851shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20852
20853# How to hardcode a shared library path into an executable.
20854hardcode_action=$hardcode_action_F77
20855
20856# Whether we should hardcode library paths into libraries.
20857hardcode_into_libs=$hardcode_into_libs
20858
20859# Flag to hardcode \$libdir into a binary during linking.
20860# This must work even if \$libdir does not exist.
20861hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20862
20863# If ld is used when linking, flag to hardcode \$libdir into
20864# a binary during linking. This must work even if \$libdir does
20865# not exist.
20866hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20867
20868# Whether we need a single -rpath flag with a separated argument.
20869hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20870
20871# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20872# resulting binary.
20873hardcode_direct=$hardcode_direct_F77
20874
20875# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20876# resulting binary.
20877hardcode_minus_L=$hardcode_minus_L_F77
20878
20879# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20880# the resulting binary.
20881hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20882
20883# Set to yes if building a shared library automatically hardcodes DIR into the library
20884# and all subsequent libraries and executables linked against it.
20885hardcode_automatic=$hardcode_automatic_F77
20886
20887# Variables whose values should be saved in libtool wrapper scripts and
20888# restored at relink time.
20889variables_saved_for_relink="$variables_saved_for_relink"
20890
20891# Whether libtool must link a program against all its dependency libraries.
20892link_all_deplibs=$link_all_deplibs_F77
20893
20894# Compile-time system search path for libraries
20895sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20896
20897# Run-time system search path for libraries
20898sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20899
20900# Fix the shell variable \$srcfile for the compiler.
20901fix_srcfile_path="$fix_srcfile_path_F77"
20902
20903# Set to yes if exported symbols are required.
20904always_export_symbols=$always_export_symbols_F77
20905
20906# The commands to list exported symbols.
20907export_symbols_cmds=$lt_export_symbols_cmds_F77
20908
20909# The commands to extract the exported symbol list from a shared archive.
20910extract_expsyms_cmds=$lt_extract_expsyms_cmds
20911
20912# Symbols that should not be listed in the preloaded symbols.
20913exclude_expsyms=$lt_exclude_expsyms_F77
20914
20915# Symbols that must always be exported.
20916include_expsyms=$lt_include_expsyms_F77
20917
20918# ### END LIBTOOL TAG CONFIG: $tagname
20919
20920__EOF__
20921
20922
20923else
20924 # If there is no Makefile yet, we rely on a make rule to execute
20925 # `config.status --recheck' to rerun these tests and create the
20926 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020927 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20928 if test -f "$ltmain_in"; then
20929 test -f Makefile && make "$ltmain"
20930 fi
John Criswell47fdd832003-07-14 16:52:07 +000020931fi
20932
20933
20934ac_ext=c
20935ac_cpp='$CPP $CPPFLAGS'
20936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20938ac_compiler_gnu=$ac_cv_c_compiler_gnu
20939
20940CC="$lt_save_CC"
20941
20942 else
20943 tagname=""
20944 fi
20945 ;;
20946
20947 GCJ)
20948 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020949 ac_ext=c
20950ac_cpp='$CPP $CPPFLAGS'
20951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20953ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000020954
20955
20956# Source file extension for Java test sources.
20957ac_ext=java
20958
20959# Object file extension for compiled Java test sources.
20960objext=o
20961objext_GCJ=$objext
20962
20963# Code to be used in simple compile tests
20964lt_simple_compile_test_code="class foo {}\n"
20965
20966# Code to be used in simple link tests
20967lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20968
20969# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20970
20971# If no C compiler was specified, use CC.
20972LTCC=${LTCC-"$CC"}
20973
20974# Allow CC to be a program name with arguments.
20975compiler=$CC
20976
20977
20978# Allow CC to be a program name with arguments.
20979lt_save_CC="$CC"
20980CC=${GCJ-"gcj"}
20981compiler=$CC
20982compiler_GCJ=$CC
20983
20984# GCJ did not exist at the time GCC didn't implicitly link libc in.
20985archive_cmds_need_lc_GCJ=no
20986
John Criswell47fdd832003-07-14 16:52:07 +000020987
20988lt_prog_compiler_no_builtin_flag_GCJ=
20989
20990if test "$GCC" = yes; then
20991 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20992
Reid Spencer2706f8c2004-09-19 23:53:36 +000020993
20994echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020995echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20996if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20997 echo $ECHO_N "(cached) $ECHO_C" >&6
20998else
20999 lt_cv_prog_compiler_rtti_exceptions=no
21000 ac_outfile=conftest.$ac_objext
21001 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21002 lt_compiler_flag="-fno-rtti -fno-exceptions"
21003 # Insert the option either (1) after the last *FLAGS variable, or
21004 # (2) before a word containing "conftest.", or (3) at the end.
21005 # Note that $ac_compile itself does not contain backslashes and begins
21006 # with a dollar sign (not a hyphen), so the echo should work correctly.
21007 # The option is referenced via a variable to avoid confusing sed.
21008 lt_compile=`echo "$ac_compile" | $SED \
21009 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21011 -e 's:$: $lt_compiler_flag:'`
Reid Spencer502935f2004-12-22 05:56:56 +000021012 (eval echo "\"\$as_me:21012: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021013 (eval "$lt_compile" 2>conftest.err)
21014 ac_status=$?
21015 cat conftest.err >&5
Reid Spencer502935f2004-12-22 05:56:56 +000021016 echo "$as_me:21016: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021017 if (exit $ac_status) && test -s "$ac_outfile"; then
21018 # The compiler can only warn and ignore the option if not recognized
21019 # So say no if there are warnings
21020 if test ! -s conftest.err; then
21021 lt_cv_prog_compiler_rtti_exceptions=yes
21022 fi
21023 fi
21024 $rm conftest*
21025
21026fi
21027echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21028echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21029
21030if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21031 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21032else
21033 :
21034fi
21035
21036fi
21037
21038lt_prog_compiler_wl_GCJ=
21039lt_prog_compiler_pic_GCJ=
21040lt_prog_compiler_static_GCJ=
21041
21042echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21043echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21044
21045 if test "$GCC" = yes; then
21046 lt_prog_compiler_wl_GCJ='-Wl,'
21047 lt_prog_compiler_static_GCJ='-static'
21048
21049 case $host_os in
21050 aix*)
21051 # All AIX code is PIC.
21052 if test "$host_cpu" = ia64; then
21053 # AIX 5 now supports IA64 processor
21054 lt_prog_compiler_static_GCJ='-Bstatic'
21055 fi
21056 ;;
21057
21058 amigaos*)
21059 # FIXME: we need at least 68020 code to build shared libraries, but
21060 # adding the `-m68020' flag to GCC prevents building anything better,
21061 # like `-m68040'.
21062 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21063 ;;
21064
21065 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21066 # PIC is the default for these OSes.
21067 ;;
21068
21069 mingw* | pw32* | os2*)
21070 # This hack is so that the source file can tell whether it is being
21071 # built for inclusion in a dll (and should export symbols for example).
21072 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21073 ;;
21074
21075 darwin* | rhapsody*)
21076 # PIC is the default on this platform
21077 # Common symbols not allowed in MH_DYLIB files
21078 lt_prog_compiler_pic_GCJ='-fno-common'
21079 ;;
21080
21081 msdosdjgpp*)
21082 # Just because we use GCC doesn't mean we suddenly get shared libraries
21083 # on systems that don't support them.
21084 lt_prog_compiler_can_build_shared_GCJ=no
21085 enable_shared=no
21086 ;;
21087
21088 sysv4*MP*)
21089 if test -d /usr/nec; then
21090 lt_prog_compiler_pic_GCJ=-Kconform_pic
21091 fi
21092 ;;
21093
21094 hpux*)
21095 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21096 # not for PA HP-UX.
21097 case "$host_cpu" in
21098 hppa*64*|ia64*)
21099 # +Z the default
21100 ;;
21101 *)
21102 lt_prog_compiler_pic_GCJ='-fPIC'
21103 ;;
21104 esac
21105 ;;
21106
21107 *)
21108 lt_prog_compiler_pic_GCJ='-fPIC'
21109 ;;
21110 esac
21111 else
21112 # PORTME Check for flag to pass linker flags through the system compiler.
21113 case $host_os in
21114 aix*)
21115 lt_prog_compiler_wl_GCJ='-Wl,'
21116 if test "$host_cpu" = ia64; then
21117 # AIX 5 now supports IA64 processor
21118 lt_prog_compiler_static_GCJ='-Bstatic'
21119 else
21120 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21121 fi
21122 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021123 darwin*)
21124 # PIC is the default on this platform
21125 # Common symbols not allowed in MH_DYLIB files
21126 case "$cc_basename" in
21127 xlc*)
21128 lt_prog_compiler_pic_GCJ='-qnocommon'
21129 lt_prog_compiler_wl_GCJ='-Wl,'
21130 ;;
21131 esac
21132 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021133
21134 mingw* | pw32* | os2*)
21135 # This hack is so that the source file can tell whether it is being
21136 # built for inclusion in a dll (and should export symbols for example).
21137 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21138 ;;
21139
21140 hpux9* | hpux10* | hpux11*)
21141 lt_prog_compiler_wl_GCJ='-Wl,'
21142 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21143 # not for PA HP-UX.
21144 case "$host_cpu" in
21145 hppa*64*|ia64*)
21146 # +Z the default
21147 ;;
21148 *)
21149 lt_prog_compiler_pic_GCJ='+Z'
21150 ;;
21151 esac
21152 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21153 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21154 ;;
21155
21156 irix5* | irix6* | nonstopux*)
21157 lt_prog_compiler_wl_GCJ='-Wl,'
21158 # PIC (with -KPIC) is the default.
21159 lt_prog_compiler_static_GCJ='-non_shared'
21160 ;;
21161
21162 newsos6)
21163 lt_prog_compiler_pic_GCJ='-KPIC'
21164 lt_prog_compiler_static_GCJ='-Bstatic'
21165 ;;
21166
21167 linux*)
21168 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021169 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021170 lt_prog_compiler_wl_GCJ='-Wl,'
21171 lt_prog_compiler_pic_GCJ='-KPIC'
21172 lt_prog_compiler_static_GCJ='-static'
21173 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021174 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021175 lt_prog_compiler_wl_GCJ='-Wl,'
21176 # All Alpha code is PIC.
21177 lt_prog_compiler_static_GCJ='-non_shared'
21178 ;;
21179 esac
21180 ;;
21181
21182 osf3* | osf4* | osf5*)
21183 lt_prog_compiler_wl_GCJ='-Wl,'
21184 # All OSF/1 code is PIC.
21185 lt_prog_compiler_static_GCJ='-non_shared'
21186 ;;
21187
21188 sco3.2v5*)
21189 lt_prog_compiler_pic_GCJ='-Kpic'
21190 lt_prog_compiler_static_GCJ='-dn'
21191 ;;
21192
21193 solaris*)
21194 lt_prog_compiler_wl_GCJ='-Wl,'
21195 lt_prog_compiler_pic_GCJ='-KPIC'
21196 lt_prog_compiler_static_GCJ='-Bstatic'
21197 ;;
21198
21199 sunos4*)
21200 lt_prog_compiler_wl_GCJ='-Qoption ld '
21201 lt_prog_compiler_pic_GCJ='-PIC'
21202 lt_prog_compiler_static_GCJ='-Bstatic'
21203 ;;
21204
21205 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21206 lt_prog_compiler_wl_GCJ='-Wl,'
21207 lt_prog_compiler_pic_GCJ='-KPIC'
21208 lt_prog_compiler_static_GCJ='-Bstatic'
21209 ;;
21210
21211 sysv4*MP*)
21212 if test -d /usr/nec ;then
21213 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21214 lt_prog_compiler_static_GCJ='-Bstatic'
21215 fi
21216 ;;
21217
21218 uts4*)
21219 lt_prog_compiler_pic_GCJ='-pic'
21220 lt_prog_compiler_static_GCJ='-Bstatic'
21221 ;;
21222
21223 *)
21224 lt_prog_compiler_can_build_shared_GCJ=no
21225 ;;
21226 esac
21227 fi
21228
21229echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21230echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21231
21232#
21233# Check to make sure the PIC flag actually works.
21234#
21235if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021236
21237echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021238echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21239if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21240 echo $ECHO_N "(cached) $ECHO_C" >&6
21241else
21242 lt_prog_compiler_pic_works_GCJ=no
21243 ac_outfile=conftest.$ac_objext
21244 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21245 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21246 # Insert the option either (1) after the last *FLAGS variable, or
21247 # (2) before a word containing "conftest.", or (3) at the end.
21248 # Note that $ac_compile itself does not contain backslashes and begins
21249 # with a dollar sign (not a hyphen), so the echo should work correctly.
21250 # The option is referenced via a variable to avoid confusing sed.
21251 lt_compile=`echo "$ac_compile" | $SED \
21252 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21254 -e 's:$: $lt_compiler_flag:'`
Reid Spencer502935f2004-12-22 05:56:56 +000021255 (eval echo "\"\$as_me:21255: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021256 (eval "$lt_compile" 2>conftest.err)
21257 ac_status=$?
21258 cat conftest.err >&5
Reid Spencer502935f2004-12-22 05:56:56 +000021259 echo "$as_me:21259: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021260 if (exit $ac_status) && test -s "$ac_outfile"; then
21261 # The compiler can only warn and ignore the option if not recognized
21262 # So say no if there are warnings
21263 if test ! -s conftest.err; then
21264 lt_prog_compiler_pic_works_GCJ=yes
21265 fi
21266 fi
21267 $rm conftest*
21268
21269fi
21270echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21271echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21272
21273if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21274 case $lt_prog_compiler_pic_GCJ in
21275 "" | " "*) ;;
21276 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21277 esac
21278else
21279 lt_prog_compiler_pic_GCJ=
21280 lt_prog_compiler_can_build_shared_GCJ=no
21281fi
21282
21283fi
21284case "$host_os" in
21285 # For platforms which do not support PIC, -DPIC is meaningless:
21286 *djgpp*)
21287 lt_prog_compiler_pic_GCJ=
21288 ;;
21289 *)
21290 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21291 ;;
21292esac
21293
21294echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21295echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21296if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21297 echo $ECHO_N "(cached) $ECHO_C" >&6
21298else
21299 lt_cv_prog_compiler_c_o_GCJ=no
21300 $rm -r conftest 2>/dev/null
21301 mkdir conftest
21302 cd conftest
21303 mkdir out
21304 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21305
John Criswell47fdd832003-07-14 16:52:07 +000021306 lt_compiler_flag="-o out/conftest2.$ac_objext"
21307 # Insert the option either (1) after the last *FLAGS variable, or
21308 # (2) before a word containing "conftest.", or (3) at the end.
21309 # Note that $ac_compile itself does not contain backslashes and begins
21310 # with a dollar sign (not a hyphen), so the echo should work correctly.
21311 lt_compile=`echo "$ac_compile" | $SED \
21312 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21314 -e 's:$: $lt_compiler_flag:'`
Reid Spencer502935f2004-12-22 05:56:56 +000021315 (eval echo "\"\$as_me:21315: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021316 (eval "$lt_compile" 2>out/conftest.err)
21317 ac_status=$?
21318 cat out/conftest.err >&5
Reid Spencer502935f2004-12-22 05:56:56 +000021319 echo "$as_me:21319: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021320 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21321 then
21322 # The compiler can only warn and ignore the option if not recognized
21323 # So say no if there are warnings
21324 if test ! -s out/conftest.err; then
21325 lt_cv_prog_compiler_c_o_GCJ=yes
21326 fi
21327 fi
21328 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021329 $rm conftest*
21330 # SGI C++ compiler will create directory out/ii_files/ for
21331 # template instantiation
21332 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21333 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021334 cd ..
21335 rmdir conftest
21336 $rm conftest*
21337
21338fi
21339echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21340echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21341
21342
21343hard_links="nottested"
21344if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21345 # do not overwrite the value of need_locks provided by the user
21346 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21347echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21348 hard_links=yes
21349 $rm conftest*
21350 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21351 touch conftest.a
21352 ln conftest.a conftest.b 2>&5 || hard_links=no
21353 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21354 echo "$as_me:$LINENO: result: $hard_links" >&5
21355echo "${ECHO_T}$hard_links" >&6
21356 if test "$hard_links" = no; then
21357 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21358echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21359 need_locks=warn
21360 fi
21361else
21362 need_locks=no
21363fi
21364
21365echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21366echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21367
21368 runpath_var=
21369 allow_undefined_flag_GCJ=
21370 enable_shared_with_static_runtimes_GCJ=no
21371 archive_cmds_GCJ=
21372 archive_expsym_cmds_GCJ=
21373 old_archive_From_new_cmds_GCJ=
21374 old_archive_from_expsyms_cmds_GCJ=
21375 export_dynamic_flag_spec_GCJ=
21376 whole_archive_flag_spec_GCJ=
21377 thread_safe_flag_spec_GCJ=
21378 hardcode_libdir_flag_spec_GCJ=
21379 hardcode_libdir_flag_spec_ld_GCJ=
21380 hardcode_libdir_separator_GCJ=
21381 hardcode_direct_GCJ=no
21382 hardcode_minus_L_GCJ=no
21383 hardcode_shlibpath_var_GCJ=unsupported
21384 link_all_deplibs_GCJ=unknown
21385 hardcode_automatic_GCJ=no
21386 module_cmds_GCJ=
21387 module_expsym_cmds_GCJ=
21388 always_export_symbols_GCJ=no
21389 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21390 # include_expsyms should be a list of space-separated symbols to be *always*
21391 # included in the symbol list
21392 include_expsyms_GCJ=
21393 # exclude_expsyms can be an extended regexp of symbols to exclude
21394 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21395 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21396 # as well as any symbol that contains `d'.
21397 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21398 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21399 # platforms (ab)use it in PIC code, but their linkers get confused if
21400 # the symbol is explicitly referenced. Since portable code cannot
21401 # rely on this symbol name, it's probably fine to never include it in
21402 # preloaded symbol tables.
21403 extract_expsyms_cmds=
21404
21405 case $host_os in
21406 cygwin* | mingw* | pw32*)
21407 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21408 # When not using gcc, we currently assume that we are using
21409 # Microsoft Visual C++.
21410 if test "$GCC" != yes; then
21411 with_gnu_ld=no
21412 fi
21413 ;;
21414 openbsd*)
21415 with_gnu_ld=no
21416 ;;
21417 esac
21418
21419 ld_shlibs_GCJ=yes
21420 if test "$with_gnu_ld" = yes; then
21421 # If archive_cmds runs LD, not CC, wlarc should be empty
21422 wlarc='${wl}'
21423
21424 # See if GNU ld supports shared libraries.
21425 case $host_os in
21426 aix3* | aix4* | aix5*)
21427 # On AIX/PPC, the GNU linker is very broken
21428 if test "$host_cpu" != ia64; then
21429 ld_shlibs_GCJ=no
21430 cat <<EOF 1>&2
21431
21432*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21433*** to be unable to reliably create shared libraries on AIX.
21434*** Therefore, libtool is disabling shared libraries support. If you
21435*** really care for shared libraries, you may want to modify your PATH
21436*** so that a non-GNU linker is found, and then restart.
21437
21438EOF
21439 fi
21440 ;;
21441
21442 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021443 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)'
John Criswell47fdd832003-07-14 16:52:07 +000021444 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21445 hardcode_minus_L_GCJ=yes
21446
21447 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21448 # that the semantics of dynamic libraries on AmigaOS, at least up
21449 # to version 4, is to share data among multiple programs linked
21450 # with the same dynamic library. Since this doesn't match the
21451 # behavior of shared libraries on other platforms, we can't use
21452 # them.
21453 ld_shlibs_GCJ=no
21454 ;;
21455
21456 beos*)
21457 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21458 allow_undefined_flag_GCJ=unsupported
21459 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21460 # support --undefined. This deserves some investigation. FIXME
21461 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21462 else
21463 ld_shlibs_GCJ=no
21464 fi
21465 ;;
21466
21467 cygwin* | mingw* | pw32*)
21468 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21469 # as there is no search path for DLLs.
21470 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21471 allow_undefined_flag_GCJ=unsupported
21472 always_export_symbols_GCJ=no
21473 enable_shared_with_static_runtimes_GCJ=yes
21474 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21475
21476 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21477 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21478 # If the export-symbols file already is a .def file (1st line
21479 # is EXPORTS), use it as is; otherwise, prepend...
21480 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21481 cp $export_symbols $output_objdir/$soname.def;
21482 else
21483 echo EXPORTS > $output_objdir/$soname.def;
21484 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021485 fi~
21486 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
John Criswell47fdd832003-07-14 16:52:07 +000021487 else
21488 ld_shlibs=no
21489 fi
21490 ;;
21491
21492 netbsd*)
21493 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21494 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21495 wlarc=
21496 else
21497 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21498 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21499 fi
21500 ;;
21501
21502 solaris* | sysv5*)
21503 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21504 ld_shlibs_GCJ=no
21505 cat <<EOF 1>&2
21506
21507*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21508*** create shared libraries on Solaris systems. Therefore, libtool
21509*** is disabling shared libraries support. We urge you to upgrade GNU
21510*** binutils to release 2.9.1 or newer. Another option is to modify
21511*** your PATH or compiler configuration so that the native linker is
21512*** used, and then restart.
21513
21514EOF
21515 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21516 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21517 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21518 else
21519 ld_shlibs_GCJ=no
21520 fi
21521 ;;
21522
21523 sunos4*)
21524 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21525 wlarc=
21526 hardcode_direct_GCJ=yes
21527 hardcode_shlibpath_var_GCJ=no
21528 ;;
21529
Reid Spencer2706f8c2004-09-19 23:53:36 +000021530 linux*)
21531 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21532 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21533 archive_cmds_GCJ="$tmp_archive_cmds"
21534 supports_anon_versioning=no
21535 case `$LD -v 2>/dev/null` in
21536 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21537 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21538 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21539 *\ 2.11.*) ;; # other 2.11 versions
21540 *) supports_anon_versioning=yes ;;
21541 esac
21542 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021543 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21544cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21545$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021546 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21547 else
21548 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21549 fi
21550 else
21551 ld_shlibs_GCJ=no
21552 fi
21553 ;;
21554
John Criswell47fdd832003-07-14 16:52:07 +000021555 *)
21556 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21557 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21558 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21559 else
21560 ld_shlibs_GCJ=no
21561 fi
21562 ;;
21563 esac
21564
21565 if test "$ld_shlibs_GCJ" = yes; then
21566 runpath_var=LD_RUN_PATH
21567 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21568 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21569 # ancient GNU ld didn't support --whole-archive et. al.
21570 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21571 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21572 else
21573 whole_archive_flag_spec_GCJ=
21574 fi
21575 fi
21576 else
21577 # PORTME fill in a description of your system's linker (not GNU ld)
21578 case $host_os in
21579 aix3*)
21580 allow_undefined_flag_GCJ=unsupported
21581 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021582 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'
John Criswell47fdd832003-07-14 16:52:07 +000021583 # Note: this linker hardcodes the directories in LIBPATH if there
21584 # are no directories specified by -L.
21585 hardcode_minus_L_GCJ=yes
21586 if test "$GCC" = yes && test -z "$link_static_flag"; then
21587 # Neither direct hardcoding nor static linking is supported with a
21588 # broken collect2.
21589 hardcode_direct_GCJ=unsupported
21590 fi
21591 ;;
21592
21593 aix4* | aix5*)
21594 if test "$host_cpu" = ia64; then
21595 # On IA64, the linker does run time linking by default, so we don't
21596 # have to do anything special.
21597 aix_use_runtimelinking=no
21598 exp_sym_flag='-Bexport'
21599 no_entry_flag=""
21600 else
21601 # If we're using GNU nm, then we don't want the "-C" option.
21602 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21603 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21604 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'
21605 else
21606 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'
21607 fi
21608 aix_use_runtimelinking=no
21609
21610 # Test if we are trying to use run time linking or normal
21611 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21612 # need to do runtime linking.
21613 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21614 for ld_flag in $LDFLAGS; do
21615 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21616 aix_use_runtimelinking=yes
21617 break
21618 fi
21619 done
21620 esac
21621
21622 exp_sym_flag='-bexport'
21623 no_entry_flag='-bnoentry'
21624 fi
21625
21626 # When large executables or shared objects are built, AIX ld can
21627 # have problems creating the table of contents. If linking a library
21628 # or program results in "error TOC overflow" add -mminimal-toc to
21629 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21630 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21631
21632 archive_cmds_GCJ=''
21633 hardcode_direct_GCJ=yes
21634 hardcode_libdir_separator_GCJ=':'
21635 link_all_deplibs_GCJ=yes
21636
21637 if test "$GCC" = yes; then
21638 case $host_os in aix4.012|aix4.012.*)
21639 # We only want to do this on AIX 4.2 and lower, the check
21640 # below for broken collect2 doesn't work under 4.3+
21641 collect2name=`${CC} -print-prog-name=collect2`
21642 if test -f "$collect2name" && \
21643 strings "$collect2name" | grep resolve_lib_name >/dev/null
21644 then
21645 # We have reworked collect2
21646 hardcode_direct_GCJ=yes
21647 else
21648 # We have old collect2
21649 hardcode_direct_GCJ=unsupported
21650 # It fails to find uninstalled libraries when the uninstalled
21651 # path is not listed in the libpath. Setting hardcode_minus_L
21652 # to unsupported forces relinking
21653 hardcode_minus_L_GCJ=yes
21654 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21655 hardcode_libdir_separator_GCJ=
21656 fi
21657 esac
21658 shared_flag='-shared'
21659 else
21660 # not using gcc
21661 if test "$host_cpu" = ia64; then
21662 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21663 # chokes on -Wl,-G. The following line is correct:
21664 shared_flag='-G'
21665 else
21666 if test "$aix_use_runtimelinking" = yes; then
21667 shared_flag='${wl}-G'
21668 else
21669 shared_flag='${wl}-bM:SRE'
21670 fi
21671 fi
21672 fi
21673
21674 # It seems that -bexpall does not export symbols beginning with
21675 # underscore (_), so it is better to generate a list of symbols to export.
21676 always_export_symbols_GCJ=yes
21677 if test "$aix_use_runtimelinking" = yes; then
21678 # Warning - without using the other runtime loading flags (-brtl),
21679 # -berok will link without error, but may produce a broken library.
21680 allow_undefined_flag_GCJ='-berok'
21681 # Determine the default libpath from the value encoded in an empty executable.
21682 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021683/* confdefs.h. */
21684_ACEOF
21685cat confdefs.h >>conftest.$ac_ext
21686cat >>conftest.$ac_ext <<_ACEOF
21687/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021688
John Criswell47fdd832003-07-14 16:52:07 +000021689int
21690main ()
21691{
21692
21693 ;
21694 return 0;
21695}
21696_ACEOF
21697rm -f conftest.$ac_objext conftest$ac_exeext
21698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021699 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021700 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021701 grep -v '^ *+' conftest.er1 >conftest.err
21702 rm -f conftest.er1
21703 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021706 { ac_try='test -z "$ac_c_werror_flag"
21707 || test ! -s conftest.err'
21708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21709 (eval $ac_try) 2>&5
21710 ac_status=$?
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); }; } &&
21713 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21715 (eval $ac_try) 2>&5
21716 ac_status=$?
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); }; }; then
21719
21720aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21721}'`
21722# Check for a 64-bit object if we didn't find anything.
21723if 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; }
21724}'`; fi
21725else
21726 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021727sed 's/^/| /' conftest.$ac_ext >&5
21728
John Criswell47fdd832003-07-14 16:52:07 +000021729fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021730rm -f conftest.err conftest.$ac_objext \
21731 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021732if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21733
21734 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21735 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"
21736 else
21737 if test "$host_cpu" = ia64; then
21738 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21739 allow_undefined_flag_GCJ="-z nodefs"
21740 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"
21741 else
21742 # Determine the default libpath from the value encoded in an empty executable.
21743 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021744/* confdefs.h. */
21745_ACEOF
21746cat confdefs.h >>conftest.$ac_ext
21747cat >>conftest.$ac_ext <<_ACEOF
21748/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021749
John Criswell47fdd832003-07-14 16:52:07 +000021750int
21751main ()
21752{
21753
21754 ;
21755 return 0;
21756}
21757_ACEOF
21758rm -f conftest.$ac_objext conftest$ac_exeext
21759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021760 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021761 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021762 grep -v '^ *+' conftest.er1 >conftest.err
21763 rm -f conftest.er1
21764 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021767 { ac_try='test -z "$ac_c_werror_flag"
21768 || test ! -s conftest.err'
21769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21770 (eval $ac_try) 2>&5
21771 ac_status=$?
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); }; } &&
21774 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21776 (eval $ac_try) 2>&5
21777 ac_status=$?
21778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779 (exit $ac_status); }; }; then
21780
21781aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21782}'`
21783# Check for a 64-bit object if we didn't find anything.
21784if 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; }
21785}'`; fi
21786else
21787 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021788sed 's/^/| /' conftest.$ac_ext >&5
21789
John Criswell47fdd832003-07-14 16:52:07 +000021790fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021791rm -f conftest.err conftest.$ac_objext \
21792 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021793if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21794
21795 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21796 # Warning - without using the other run time loading flags,
21797 # -berok will link without error, but may produce a broken library.
21798 no_undefined_flag_GCJ=' ${wl}-bernotok'
21799 allow_undefined_flag_GCJ=' ${wl}-berok'
21800 # -bexpall does not export symbols beginning with underscore (_)
21801 always_export_symbols_GCJ=yes
21802 # Exported symbols can be pulled into shared objects from archives
21803 whole_archive_flag_spec_GCJ=' '
21804 archive_cmds_need_lc_GCJ=yes
21805 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000021806 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'
John Criswell47fdd832003-07-14 16:52:07 +000021807 fi
21808 fi
21809 ;;
21810
21811 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021812 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)'
John Criswell47fdd832003-07-14 16:52:07 +000021813 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21814 hardcode_minus_L_GCJ=yes
21815 # see comment about different semantics on the GNU ld section
21816 ld_shlibs_GCJ=no
21817 ;;
21818
Reid Spencer2706f8c2004-09-19 23:53:36 +000021819 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021820 export_dynamic_flag_spec_GCJ=-rdynamic
21821 ;;
21822
21823 cygwin* | mingw* | pw32*)
21824 # When not using gcc, we currently assume that we are using
21825 # Microsoft Visual C++.
21826 # hardcode_libdir_flag_spec is actually meaningless, as there is
21827 # no search path for DLLs.
21828 hardcode_libdir_flag_spec_GCJ=' '
21829 allow_undefined_flag_GCJ=unsupported
21830 # Tell ltmain to make .lib files, not .a files.
21831 libext=lib
21832 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021833 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021834 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021835 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000021836 # The linker will automatically build a .lib file if we build a DLL.
21837 old_archive_From_new_cmds_GCJ='true'
21838 # FIXME: Should let the user specify the lib program.
21839 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21840 fix_srcfile_path='`cygpath -w "$srcfile"`'
21841 enable_shared_with_static_runtimes_GCJ=yes
21842 ;;
21843
21844 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000021845 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021846 rhapsody* | darwin1.[012])
21847 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21848 ;;
21849 *) # Darwin 1.3 on
21850 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21851 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21852 else
21853 case ${MACOSX_DEPLOYMENT_TARGET} in
21854 10.[012])
21855 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21856 ;;
21857 10.*)
21858 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21859 ;;
21860 esac
21861 fi
21862 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021863 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021864 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000021865 hardcode_direct_GCJ=no
21866 hardcode_automatic_GCJ=yes
21867 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021868 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000021869 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021870 if test "$GCC" = yes ; then
21871 output_verbose_link_cmd='echo'
21872 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21873 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21874 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +000021875 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21876 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000021877 else
21878 case "$cc_basename" in
21879 xlc*)
21880 output_verbose_link_cmd='echo'
21881 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21882 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21883 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +000021884 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21885 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000021886 ;;
21887 *)
21888 ld_shlibs_GCJ=no
21889 ;;
21890 esac
John Criswell47fdd832003-07-14 16:52:07 +000021891 fi
21892 ;;
21893
21894 dgux*)
21895 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21896 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21897 hardcode_shlibpath_var_GCJ=no
21898 ;;
21899
21900 freebsd1*)
21901 ld_shlibs_GCJ=no
21902 ;;
21903
21904 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21905 # support. Future versions do this automatically, but an explicit c++rt0.o
21906 # does not break anything, and helps significantly (at the cost of a little
21907 # extra space).
21908 freebsd2.2*)
21909 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21910 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21911 hardcode_direct_GCJ=yes
21912 hardcode_shlibpath_var_GCJ=no
21913 ;;
21914
21915 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21916 freebsd2*)
21917 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21918 hardcode_direct_GCJ=yes
21919 hardcode_minus_L_GCJ=yes
21920 hardcode_shlibpath_var_GCJ=no
21921 ;;
21922
21923 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021924 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000021925 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21926 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21927 hardcode_direct_GCJ=yes
21928 hardcode_shlibpath_var_GCJ=no
21929 ;;
21930
21931 hpux9*)
21932 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021933 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'
John Criswell47fdd832003-07-14 16:52:07 +000021934 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021935 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'
John Criswell47fdd832003-07-14 16:52:07 +000021936 fi
21937 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21938 hardcode_libdir_separator_GCJ=:
21939 hardcode_direct_GCJ=yes
21940
21941 # hardcode_minus_L: Not really in the search PATH,
21942 # but as the default location of the library.
21943 hardcode_minus_L_GCJ=yes
21944 export_dynamic_flag_spec_GCJ='${wl}-E'
21945 ;;
21946
21947 hpux10* | hpux11*)
21948 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21949 case "$host_cpu" in
21950 hppa*64*|ia64*)
21951 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21952 ;;
21953 *)
21954 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21955 ;;
21956 esac
21957 else
21958 case "$host_cpu" in
21959 hppa*64*|ia64*)
21960 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21961 ;;
21962 *)
21963 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21964 ;;
21965 esac
21966 fi
21967 if test "$with_gnu_ld" = no; then
21968 case "$host_cpu" in
21969 hppa*64*)
21970 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21971 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21972 hardcode_libdir_separator_GCJ=:
21973 hardcode_direct_GCJ=no
21974 hardcode_shlibpath_var_GCJ=no
21975 ;;
21976 ia64*)
21977 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21978 hardcode_direct_GCJ=no
21979 hardcode_shlibpath_var_GCJ=no
21980
21981 # hardcode_minus_L: Not really in the search PATH,
21982 # but as the default location of the library.
21983 hardcode_minus_L_GCJ=yes
21984 ;;
21985 *)
21986 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21987 hardcode_libdir_separator_GCJ=:
21988 hardcode_direct_GCJ=yes
21989 export_dynamic_flag_spec_GCJ='${wl}-E'
21990
21991 # hardcode_minus_L: Not really in the search PATH,
21992 # but as the default location of the library.
21993 hardcode_minus_L_GCJ=yes
21994 ;;
21995 esac
21996 fi
21997 ;;
21998
21999 irix5* | irix6* | nonstopux*)
22000 if test "$GCC" = yes; then
22001 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'
22002 else
22003 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'
22004 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22005 fi
22006 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22007 hardcode_libdir_separator_GCJ=:
22008 link_all_deplibs_GCJ=yes
22009 ;;
22010
22011 netbsd*)
22012 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22013 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22014 else
22015 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22016 fi
22017 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22018 hardcode_direct_GCJ=yes
22019 hardcode_shlibpath_var_GCJ=no
22020 ;;
22021
22022 newsos6)
22023 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22024 hardcode_direct_GCJ=yes
22025 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22026 hardcode_libdir_separator_GCJ=:
22027 hardcode_shlibpath_var_GCJ=no
22028 ;;
22029
22030 openbsd*)
22031 hardcode_direct_GCJ=yes
22032 hardcode_shlibpath_var_GCJ=no
22033 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22034 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022035 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000022036 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22037 export_dynamic_flag_spec_GCJ='${wl}-E'
22038 else
22039 case $host_os in
22040 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22041 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22042 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22043 ;;
22044 *)
22045 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22046 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22047 ;;
22048 esac
22049 fi
22050 ;;
22051
22052 os2*)
22053 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22054 hardcode_minus_L_GCJ=yes
22055 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022056 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'
John Criswell47fdd832003-07-14 16:52:07 +000022057 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22058 ;;
22059
22060 osf3*)
22061 if test "$GCC" = yes; then
22062 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22063 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'
22064 else
22065 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22066 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'
22067 fi
22068 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22069 hardcode_libdir_separator_GCJ=:
22070 ;;
22071
22072 osf4* | osf5*) # as osf3* with the addition of -msym flag
22073 if test "$GCC" = yes; then
22074 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22075 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'
22076 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22077 else
22078 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22079 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'
Reid Spencer177dbe22004-10-13 01:01:03 +000022080 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~
22081 $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'
22082
John Criswell47fdd832003-07-14 16:52:07 +000022083 # Both c and cxx compiler support -rpath directly
22084 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22085 fi
22086 hardcode_libdir_separator_GCJ=:
22087 ;;
22088
22089 sco3.2v5*)
22090 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22091 hardcode_shlibpath_var_GCJ=no
22092 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22093 runpath_var=LD_RUN_PATH
22094 hardcode_runpath_var=yes
22095 ;;
22096
22097 solaris*)
22098 no_undefined_flag_GCJ=' -z text'
22099 if test "$GCC" = yes; then
22100 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022101 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22102 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000022103 else
22104 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022105 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22106 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000022107 fi
22108 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22109 hardcode_shlibpath_var_GCJ=no
22110 case $host_os in
22111 solaris2.[0-5] | solaris2.[0-5].*) ;;
22112 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22113 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22114 esac
22115 link_all_deplibs_GCJ=yes
22116 ;;
22117
22118 sunos4*)
22119 if test "x$host_vendor" = xsequent; then
22120 # Use $CC to link under sequent, because it throws in some extra .o
22121 # files that make .init and .fini sections work.
22122 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22123 else
22124 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22125 fi
22126 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22127 hardcode_direct_GCJ=yes
22128 hardcode_minus_L_GCJ=yes
22129 hardcode_shlibpath_var_GCJ=no
22130 ;;
22131
22132 sysv4)
22133 case $host_vendor in
22134 sni)
22135 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22136 hardcode_direct_GCJ=yes # is this really true???
22137 ;;
22138 siemens)
22139 ## LD is ld it makes a PLAMLIB
22140 ## CC just makes a GrossModule.
22141 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22142 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22143 hardcode_direct_GCJ=no
22144 ;;
22145 motorola)
22146 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22147 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22148 ;;
22149 esac
22150 runpath_var='LD_RUN_PATH'
22151 hardcode_shlibpath_var_GCJ=no
22152 ;;
22153
22154 sysv4.3*)
22155 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22156 hardcode_shlibpath_var_GCJ=no
22157 export_dynamic_flag_spec_GCJ='-Bexport'
22158 ;;
22159
22160 sysv4*MP*)
22161 if test -d /usr/nec; then
22162 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22163 hardcode_shlibpath_var_GCJ=no
22164 runpath_var=LD_RUN_PATH
22165 hardcode_runpath_var=yes
22166 ld_shlibs_GCJ=yes
22167 fi
22168 ;;
22169
22170 sysv4.2uw2*)
22171 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22172 hardcode_direct_GCJ=yes
22173 hardcode_minus_L_GCJ=no
22174 hardcode_shlibpath_var_GCJ=no
22175 hardcode_runpath_var=yes
22176 runpath_var=LD_RUN_PATH
22177 ;;
22178
22179 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22180 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22181 if test "$GCC" = yes; then
22182 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22183 else
22184 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22185 fi
22186 runpath_var='LD_RUN_PATH'
22187 hardcode_shlibpath_var_GCJ=no
22188 ;;
22189
22190 sysv5*)
22191 no_undefined_flag_GCJ=' -z text'
22192 # $CC -shared without GNU ld will not create a library from C++
22193 # object files and a static libstdc++, better avoid it by now
22194 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022195 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22196 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000022197 hardcode_libdir_flag_spec_GCJ=
22198 hardcode_shlibpath_var_GCJ=no
22199 runpath_var='LD_RUN_PATH'
22200 ;;
22201
22202 uts4*)
22203 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22204 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22205 hardcode_shlibpath_var_GCJ=no
22206 ;;
22207
22208 *)
22209 ld_shlibs_GCJ=no
22210 ;;
22211 esac
22212 fi
22213
22214echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22215echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22216test "$ld_shlibs_GCJ" = no && can_build_shared=no
22217
22218variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22219if test "$GCC" = yes; then
22220 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22221fi
22222
22223#
22224# Do we need to explicitly link libc?
22225#
22226case "x$archive_cmds_need_lc_GCJ" in
22227x|xyes)
22228 # Assume -lc should be added
22229 archive_cmds_need_lc_GCJ=yes
22230
22231 if test "$enable_shared" = yes && test "$GCC" = yes; then
22232 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022233 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022234 # FIXME: we may have to deal with multi-command sequences.
22235 ;;
22236 '$CC '*)
22237 # Test whether the compiler implicitly links with -lc since on some
22238 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22239 # to ld, don't add -lc before -lgcc.
22240 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22241echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22242 $rm conftest*
22243 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22244
22245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22246 (eval $ac_compile) 2>&5
22247 ac_status=$?
22248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); } 2>conftest.err; then
22250 soname=conftest
22251 lib=conftest
22252 libobjs=conftest.$ac_objext
22253 deplibs=
22254 wl=$lt_prog_compiler_wl_GCJ
22255 compiler_flags=-v
22256 linker_flags=-v
22257 verstring=
22258 output_objdir=.
22259 libname=conftest
22260 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22261 allow_undefined_flag_GCJ=
22262 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22263 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22264 ac_status=$?
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); }
22267 then
22268 archive_cmds_need_lc_GCJ=no
22269 else
22270 archive_cmds_need_lc_GCJ=yes
22271 fi
22272 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22273 else
22274 cat conftest.err 1>&5
22275 fi
22276 $rm conftest*
22277 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22278echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22279 ;;
22280 esac
22281 fi
22282 ;;
22283esac
22284
John Criswell47fdd832003-07-14 16:52:07 +000022285echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22286echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22287library_names_spec=
22288libname_spec='lib$name'
22289soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022290shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022291postinstall_cmds=
22292postuninstall_cmds=
22293finish_cmds=
22294finish_eval=
22295shlibpath_var=
22296shlibpath_overrides_runpath=unknown
22297version_type=none
22298dynamic_linker="$host_os ld.so"
22299sys_lib_dlsearch_path_spec="/lib /usr/lib"
22300if test "$GCC" = yes; then
22301 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22302 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22303 # if the path contains ";" then we assume it to be the separator
22304 # otherwise default to the standard path separator (i.e. ":") - it is
22305 # assumed that no part of a normal pathname contains ";" but that should
22306 # okay in the real world where ";" in dirpaths is itself problematic.
22307 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22308 else
22309 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22310 fi
22311else
22312 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22313fi
22314need_lib_prefix=unknown
22315hardcode_into_libs=no
22316
22317# when you set need_version to no, make sure it does not cause -set_version
22318# flags to be left without arguments
22319need_version=unknown
22320
22321case $host_os in
22322aix3*)
22323 version_type=linux
22324 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22325 shlibpath_var=LIBPATH
22326
22327 # AIX 3 has no versioning support, so we append a major version to the name.
22328 soname_spec='${libname}${release}${shared_ext}$major'
22329 ;;
22330
22331aix4* | aix5*)
22332 version_type=linux
22333 need_lib_prefix=no
22334 need_version=no
22335 hardcode_into_libs=yes
22336 if test "$host_cpu" = ia64; then
22337 # AIX 5 supports IA64
22338 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22339 shlibpath_var=LD_LIBRARY_PATH
22340 else
22341 # With GCC up to 2.95.x, collect2 would create an import file
22342 # for dependence libraries. The import file would start with
22343 # the line `#! .'. This would cause the generated library to
22344 # depend on `.', always an invalid library. This was fixed in
22345 # development snapshots of GCC prior to 3.0.
22346 case $host_os in
22347 aix4 | aix4.[01] | aix4.[01].*)
22348 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22349 echo ' yes '
22350 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22351 :
22352 else
22353 can_build_shared=no
22354 fi
22355 ;;
22356 esac
22357 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22358 # soname into executable. Probably we can add versioning support to
22359 # collect2, so additional links can be useful in future.
22360 if test "$aix_use_runtimelinking" = yes; then
22361 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22362 # instead of lib<name>.a to let people know that these are not
22363 # typical AIX shared libraries.
22364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22365 else
22366 # We preserve .a as extension for shared libraries through AIX4.2
22367 # and later when we are not doing run time linking.
22368 library_names_spec='${libname}${release}.a $libname.a'
22369 soname_spec='${libname}${release}${shared_ext}$major'
22370 fi
22371 shlibpath_var=LIBPATH
22372 fi
22373 ;;
22374
22375amigaos*)
22376 library_names_spec='$libname.ixlibrary $libname.a'
22377 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022378 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 +000022379 ;;
22380
22381beos*)
22382 library_names_spec='${libname}${shared_ext}'
22383 dynamic_linker="$host_os ld.so"
22384 shlibpath_var=LIBRARY_PATH
22385 ;;
22386
Reid Spencer2706f8c2004-09-19 23:53:36 +000022387bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022388 version_type=linux
22389 need_version=no
22390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22391 soname_spec='${libname}${release}${shared_ext}$major'
22392 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22393 shlibpath_var=LD_LIBRARY_PATH
22394 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22395 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22396 # the default ld.so.conf also contains /usr/contrib/lib and
22397 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22398 # libtool to hard-code these into programs
22399 ;;
22400
22401cygwin* | mingw* | pw32*)
22402 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022403 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022404 need_version=no
22405 need_lib_prefix=no
22406
22407 case $GCC,$host_os in
22408 yes,cygwin* | yes,mingw* | yes,pw32*)
22409 library_names_spec='$libname.dll.a'
22410 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022411 postinstall_cmds='base_file=`basename \${file}`~
22412 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22413 dldir=$destdir/`dirname \$dlpath`~
22414 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022415 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022416 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22417 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022418 $rm \$dlpath'
22419 shlibpath_overrides_runpath=yes
22420
22421 case $host_os in
22422 cygwin*)
22423 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22424 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022425 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022426 ;;
22427 mingw*)
22428 # MinGW DLLs use traditional 'lib' prefix
22429 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22430 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22431 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22432 # It is most probably a Windows format PATH printed by
22433 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22434 # path with ; separators, and with drive letters. We can handle the
22435 # drive letters (cygwin fileutils understands them), so leave them,
22436 # especially as we might pass files found there to a mingw objdump,
22437 # which wouldn't understand a cygwinified path. Ahh.
22438 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22439 else
22440 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22441 fi
22442 ;;
22443 pw32*)
22444 # pw32 DLLs use 'pw' prefix rather than 'lib'
22445 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22446 ;;
22447 esac
22448 ;;
22449
22450 *)
22451 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22452 ;;
22453 esac
22454 dynamic_linker='Win32 ld.exe'
22455 # FIXME: first we should search . and the directory the executable is in
22456 shlibpath_var=PATH
22457 ;;
22458
22459darwin* | rhapsody*)
22460 dynamic_linker="$host_os dyld"
22461 version_type=darwin
22462 need_lib_prefix=no
22463 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022464 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022465 soname_spec='${libname}${release}${major}$shared_ext'
22466 shlibpath_overrides_runpath=yes
22467 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022468 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022469 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022470 if test "$GCC" = yes; then
22471 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"`
22472 else
22473 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022474 fi
22475 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22476 ;;
22477
22478dgux*)
22479 version_type=linux
22480 need_lib_prefix=no
22481 need_version=no
22482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22483 soname_spec='${libname}${release}${shared_ext}$major'
22484 shlibpath_var=LD_LIBRARY_PATH
22485 ;;
22486
22487freebsd1*)
22488 dynamic_linker=no
22489 ;;
22490
Reid Spencer2706f8c2004-09-19 23:53:36 +000022491kfreebsd*-gnu)
22492 version_type=linux
22493 need_lib_prefix=no
22494 need_version=no
22495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22496 soname_spec='${libname}${release}${shared_ext}$major'
22497 shlibpath_var=LD_LIBRARY_PATH
22498 shlibpath_overrides_runpath=no
22499 hardcode_into_libs=yes
22500 dynamic_linker='GNU ld.so'
22501 ;;
22502
John Criswell47fdd832003-07-14 16:52:07 +000022503freebsd*)
22504 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22505 version_type=freebsd-$objformat
22506 case $version_type in
22507 freebsd-elf*)
22508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22509 need_version=no
22510 need_lib_prefix=no
22511 ;;
22512 freebsd-*)
22513 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22514 need_version=yes
22515 ;;
22516 esac
22517 shlibpath_var=LD_LIBRARY_PATH
22518 case $host_os in
22519 freebsd2*)
22520 shlibpath_overrides_runpath=yes
22521 ;;
22522 freebsd3.01* | freebsdelf3.01*)
22523 shlibpath_overrides_runpath=yes
22524 hardcode_into_libs=yes
22525 ;;
22526 *) # from 3.2 on
22527 shlibpath_overrides_runpath=no
22528 hardcode_into_libs=yes
22529 ;;
22530 esac
22531 ;;
22532
22533gnu*)
22534 version_type=linux
22535 need_lib_prefix=no
22536 need_version=no
22537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22538 soname_spec='${libname}${release}${shared_ext}$major'
22539 shlibpath_var=LD_LIBRARY_PATH
22540 hardcode_into_libs=yes
22541 ;;
22542
22543hpux9* | hpux10* | hpux11*)
22544 # Give a soname corresponding to the major version so that dld.sl refuses to
22545 # link against other versions.
22546 version_type=sunos
22547 need_lib_prefix=no
22548 need_version=no
22549 case "$host_cpu" in
22550 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022551 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022552 hardcode_into_libs=yes
22553 dynamic_linker="$host_os dld.so"
22554 shlibpath_var=LD_LIBRARY_PATH
22555 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22557 soname_spec='${libname}${release}${shared_ext}$major'
22558 if test "X$HPUX_IA64_MODE" = X32; then
22559 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22560 else
22561 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22562 fi
22563 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22564 ;;
22565 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022566 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022567 hardcode_into_libs=yes
22568 dynamic_linker="$host_os dld.sl"
22569 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22570 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22572 soname_spec='${libname}${release}${shared_ext}$major'
22573 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22574 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22575 ;;
22576 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022577 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022578 dynamic_linker="$host_os dld.sl"
22579 shlibpath_var=SHLIB_PATH
22580 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22582 soname_spec='${libname}${release}${shared_ext}$major'
22583 ;;
22584 esac
22585 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22586 postinstall_cmds='chmod 555 $lib'
22587 ;;
22588
22589irix5* | irix6* | nonstopux*)
22590 case $host_os in
22591 nonstopux*) version_type=nonstopux ;;
22592 *)
22593 if test "$lt_cv_prog_gnu_ld" = yes; then
22594 version_type=linux
22595 else
22596 version_type=irix
22597 fi ;;
22598 esac
22599 need_lib_prefix=no
22600 need_version=no
22601 soname_spec='${libname}${release}${shared_ext}$major'
22602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22603 case $host_os in
22604 irix5* | nonstopux*)
22605 libsuff= shlibsuff=
22606 ;;
22607 *)
22608 case $LD in # libtool.m4 will add one of these switches to LD
22609 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22610 libsuff= shlibsuff= libmagic=32-bit;;
22611 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22612 libsuff=32 shlibsuff=N32 libmagic=N32;;
22613 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22614 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22615 *) libsuff= shlibsuff= libmagic=never-match;;
22616 esac
22617 ;;
22618 esac
22619 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22620 shlibpath_overrides_runpath=no
22621 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22622 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22623 hardcode_into_libs=yes
22624 ;;
22625
22626# No shared lib support for Linux oldld, aout, or coff.
22627linux*oldld* | linux*aout* | linux*coff*)
22628 dynamic_linker=no
22629 ;;
22630
22631# This must be Linux ELF.
22632linux*)
22633 version_type=linux
22634 need_lib_prefix=no
22635 need_version=no
22636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22637 soname_spec='${libname}${release}${shared_ext}$major'
22638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22639 shlibpath_var=LD_LIBRARY_PATH
22640 shlibpath_overrides_runpath=no
22641 # This implies no fast_install, which is unacceptable.
22642 # Some rework will be needed to allow for fast_install
22643 # before this can be enabled.
22644 hardcode_into_libs=yes
22645
Reid Spencer2706f8c2004-09-19 23:53:36 +000022646 # Append ld.so.conf contents to the search path
22647 if test -f /etc/ld.so.conf; then
22648 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22649 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22650 fi
22651
John Criswell47fdd832003-07-14 16:52:07 +000022652 # We used to test for /lib/ld.so.1 and disable shared libraries on
22653 # powerpc, because MkLinux only supported shared libraries with the
22654 # GNU dynamic linker. Since this was broken with cross compilers,
22655 # most powerpc-linux boxes support dynamic linking these days and
22656 # people can always --disable-shared, the test was removed, and we
22657 # assume the GNU/Linux dynamic linker is in use.
22658 dynamic_linker='GNU/Linux ld.so'
22659 ;;
22660
Reid Spencer2706f8c2004-09-19 23:53:36 +000022661knetbsd*-gnu)
22662 version_type=linux
22663 need_lib_prefix=no
22664 need_version=no
22665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22666 soname_spec='${libname}${release}${shared_ext}$major'
22667 shlibpath_var=LD_LIBRARY_PATH
22668 shlibpath_overrides_runpath=no
22669 hardcode_into_libs=yes
22670 dynamic_linker='GNU ld.so'
22671 ;;
22672
John Criswell47fdd832003-07-14 16:52:07 +000022673netbsd*)
22674 version_type=sunos
22675 need_lib_prefix=no
22676 need_version=no
22677 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22679 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22680 dynamic_linker='NetBSD (a.out) ld.so'
22681 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022683 soname_spec='${libname}${release}${shared_ext}$major'
22684 dynamic_linker='NetBSD ld.elf_so'
22685 fi
22686 shlibpath_var=LD_LIBRARY_PATH
22687 shlibpath_overrides_runpath=yes
22688 hardcode_into_libs=yes
22689 ;;
22690
22691newsos6)
22692 version_type=linux
22693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22694 shlibpath_var=LD_LIBRARY_PATH
22695 shlibpath_overrides_runpath=yes
22696 ;;
22697
Reid Spencer2706f8c2004-09-19 23:53:36 +000022698nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022699 version_type=linux
22700 need_lib_prefix=no
22701 need_version=no
22702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22703 soname_spec='${libname}${release}${shared_ext}$major'
22704 shlibpath_var=LD_LIBRARY_PATH
22705 shlibpath_overrides_runpath=yes
22706 ;;
22707
22708openbsd*)
22709 version_type=sunos
22710 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022711 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22714 shlibpath_var=LD_LIBRARY_PATH
22715 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22716 case $host_os in
22717 openbsd2.[89] | openbsd2.[89].*)
22718 shlibpath_overrides_runpath=no
22719 ;;
22720 *)
22721 shlibpath_overrides_runpath=yes
22722 ;;
22723 esac
22724 else
22725 shlibpath_overrides_runpath=yes
22726 fi
22727 ;;
22728
22729os2*)
22730 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022731 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022732 need_lib_prefix=no
22733 library_names_spec='$libname${shared_ext} $libname.a'
22734 dynamic_linker='OS/2 ld.exe'
22735 shlibpath_var=LIBPATH
22736 ;;
22737
22738osf3* | osf4* | osf5*)
22739 version_type=osf
22740 need_lib_prefix=no
22741 need_version=no
22742 soname_spec='${libname}${release}${shared_ext}$major'
22743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22744 shlibpath_var=LD_LIBRARY_PATH
22745 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22746 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22747 ;;
22748
22749sco3.2v5*)
22750 version_type=osf
22751 soname_spec='${libname}${release}${shared_ext}$major'
22752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22753 shlibpath_var=LD_LIBRARY_PATH
22754 ;;
22755
22756solaris*)
22757 version_type=linux
22758 need_lib_prefix=no
22759 need_version=no
22760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22761 soname_spec='${libname}${release}${shared_ext}$major'
22762 shlibpath_var=LD_LIBRARY_PATH
22763 shlibpath_overrides_runpath=yes
22764 hardcode_into_libs=yes
22765 # ldd complains unless libraries are executable
22766 postinstall_cmds='chmod +x $lib'
22767 ;;
22768
22769sunos4*)
22770 version_type=sunos
22771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22772 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22773 shlibpath_var=LD_LIBRARY_PATH
22774 shlibpath_overrides_runpath=yes
22775 if test "$with_gnu_ld" = yes; then
22776 need_lib_prefix=no
22777 fi
22778 need_version=yes
22779 ;;
22780
22781sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22782 version_type=linux
22783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22784 soname_spec='${libname}${release}${shared_ext}$major'
22785 shlibpath_var=LD_LIBRARY_PATH
22786 case $host_vendor in
22787 sni)
22788 shlibpath_overrides_runpath=no
22789 need_lib_prefix=no
22790 export_dynamic_flag_spec='${wl}-Blargedynsym'
22791 runpath_var=LD_RUN_PATH
22792 ;;
22793 siemens)
22794 need_lib_prefix=no
22795 ;;
22796 motorola)
22797 need_lib_prefix=no
22798 need_version=no
22799 shlibpath_overrides_runpath=no
22800 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22801 ;;
22802 esac
22803 ;;
22804
22805sysv4*MP*)
22806 if test -d /usr/nec ;then
22807 version_type=linux
22808 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22809 soname_spec='$libname${shared_ext}.$major'
22810 shlibpath_var=LD_LIBRARY_PATH
22811 fi
22812 ;;
22813
22814uts4*)
22815 version_type=linux
22816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22817 soname_spec='${libname}${release}${shared_ext}$major'
22818 shlibpath_var=LD_LIBRARY_PATH
22819 ;;
22820
22821*)
22822 dynamic_linker=no
22823 ;;
22824esac
22825echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22826echo "${ECHO_T}$dynamic_linker" >&6
22827test "$dynamic_linker" = no && can_build_shared=no
22828
Reid Spencer2706f8c2004-09-19 23:53:36 +000022829echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22830echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22831hardcode_action_GCJ=
22832if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22833 test -n "$runpath_var_GCJ" || \
22834 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22835
22836 # We can hardcode non-existant directories.
22837 if test "$hardcode_direct_GCJ" != no &&
22838 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22839 # have to relink, otherwise we might link with an installed library
22840 # when we should be linking with a yet-to-be-installed one
22841 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22842 test "$hardcode_minus_L_GCJ" != no; then
22843 # Linking always hardcodes the temporary library directory.
22844 hardcode_action_GCJ=relink
22845 else
22846 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22847 hardcode_action_GCJ=immediate
22848 fi
22849else
22850 # We cannot hardcode anything, or else we can only hardcode existing
22851 # directories.
22852 hardcode_action_GCJ=unsupported
22853fi
22854echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22855echo "${ECHO_T}$hardcode_action_GCJ" >&6
22856
22857if test "$hardcode_action_GCJ" = relink; then
22858 # Fast installation is not supported
22859 enable_fast_install=no
22860elif test "$shlibpath_overrides_runpath" = yes ||
22861 test "$enable_shared" = no; then
22862 # Fast installation is not necessary
22863 enable_fast_install=needless
22864fi
22865
22866striplib=
22867old_striplib=
22868echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22869echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22870if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22871 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22872 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22873 echo "$as_me:$LINENO: result: yes" >&5
22874echo "${ECHO_T}yes" >&6
22875else
22876# FIXME - insert some real tests, host_os isn't really good enough
22877 case $host_os in
22878 darwin*)
22879 if test -n "$STRIP" ; then
22880 striplib="$STRIP -x"
22881 echo "$as_me:$LINENO: result: yes" >&5
22882echo "${ECHO_T}yes" >&6
22883 else
22884 echo "$as_me:$LINENO: result: no" >&5
22885echo "${ECHO_T}no" >&6
22886fi
22887 ;;
22888 *)
22889 echo "$as_me:$LINENO: result: no" >&5
22890echo "${ECHO_T}no" >&6
22891 ;;
22892 esac
22893fi
22894
John Criswell47fdd832003-07-14 16:52:07 +000022895if test "x$enable_dlopen" != xyes; then
22896 enable_dlopen=unknown
22897 enable_dlopen_self=unknown
22898 enable_dlopen_self_static=unknown
22899else
22900 lt_cv_dlopen=no
22901 lt_cv_dlopen_libs=
22902
22903 case $host_os in
22904 beos*)
22905 lt_cv_dlopen="load_add_on"
22906 lt_cv_dlopen_libs=
22907 lt_cv_dlopen_self=yes
22908 ;;
22909
22910 mingw* | pw32*)
22911 lt_cv_dlopen="LoadLibrary"
22912 lt_cv_dlopen_libs=
22913 ;;
22914
22915 cygwin*)
22916 lt_cv_dlopen="dlopen"
22917 lt_cv_dlopen_libs=
22918 ;;
22919
22920 darwin*)
22921 # if libdl is installed we need to link against it
22922 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22923echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22924if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22925 echo $ECHO_N "(cached) $ECHO_C" >&6
22926else
22927 ac_check_lib_save_LIBS=$LIBS
22928LIBS="-ldl $LIBS"
22929cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022930/* confdefs.h. */
22931_ACEOF
22932cat confdefs.h >>conftest.$ac_ext
22933cat >>conftest.$ac_ext <<_ACEOF
22934/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022935
22936/* Override any gcc2 internal prototype to avoid an error. */
22937#ifdef __cplusplus
22938extern "C"
22939#endif
22940/* We use char because int might match the return type of a gcc2
22941 builtin and then its argument prototype would still apply. */
22942char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000022943int
22944main ()
22945{
22946dlopen ();
22947 ;
22948 return 0;
22949}
22950_ACEOF
22951rm -f conftest.$ac_objext conftest$ac_exeext
22952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022953 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022954 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022955 grep -v '^ *+' conftest.er1 >conftest.err
22956 rm -f conftest.er1
22957 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022960 { ac_try='test -z "$ac_c_werror_flag"
22961 || test ! -s conftest.err'
22962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22963 (eval $ac_try) 2>&5
22964 ac_status=$?
22965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966 (exit $ac_status); }; } &&
22967 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22969 (eval $ac_try) 2>&5
22970 ac_status=$?
22971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972 (exit $ac_status); }; }; then
22973 ac_cv_lib_dl_dlopen=yes
22974else
22975 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022976sed 's/^/| /' conftest.$ac_ext >&5
22977
John Criswell47fdd832003-07-14 16:52:07 +000022978ac_cv_lib_dl_dlopen=no
22979fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022980rm -f conftest.err conftest.$ac_objext \
22981 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022982LIBS=$ac_check_lib_save_LIBS
22983fi
22984echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22985echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22986if test $ac_cv_lib_dl_dlopen = yes; then
22987 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22988else
22989
22990 lt_cv_dlopen="dyld"
22991 lt_cv_dlopen_libs=
22992 lt_cv_dlopen_self=yes
22993
22994fi
22995
22996 ;;
22997
22998 *)
22999 echo "$as_me:$LINENO: checking for shl_load" >&5
23000echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23001if test "${ac_cv_func_shl_load+set}" = set; then
23002 echo $ECHO_N "(cached) $ECHO_C" >&6
23003else
23004 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023005/* confdefs.h. */
23006_ACEOF
23007cat confdefs.h >>conftest.$ac_ext
23008cat >>conftest.$ac_ext <<_ACEOF
23009/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023010/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23012#define shl_load innocuous_shl_load
23013
John Criswell47fdd832003-07-14 16:52:07 +000023014/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023015 which can conflict with char shl_load (); below.
23016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23017 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023018
John Criswell0c38eaf2003-09-10 15:17:25 +000023019#ifdef __STDC__
23020# include <limits.h>
23021#else
23022# include <assert.h>
23023#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023024
23025#undef shl_load
23026
John Criswell47fdd832003-07-14 16:52:07 +000023027/* Override any gcc2 internal prototype to avoid an error. */
23028#ifdef __cplusplus
23029extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023030{
John Criswell47fdd832003-07-14 16:52:07 +000023031#endif
23032/* We use char because int might match the return type of a gcc2
23033 builtin and then its argument prototype would still apply. */
23034char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023035/* The GNU C library defines this for functions which it implements
23036 to always fail with ENOSYS. Some functions are actually named
23037 something starting with __ and the normal name is an alias. */
23038#if defined (__stub_shl_load) || defined (__stub___shl_load)
23039choke me
23040#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023041char (*f) () = shl_load;
23042#endif
23043#ifdef __cplusplus
23044}
John Criswell47fdd832003-07-14 16:52:07 +000023045#endif
23046
John Criswell0c38eaf2003-09-10 15:17:25 +000023047int
23048main ()
23049{
23050return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000023051 ;
23052 return 0;
23053}
23054_ACEOF
23055rm -f conftest.$ac_objext conftest$ac_exeext
23056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023057 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023058 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023059 grep -v '^ *+' conftest.er1 >conftest.err
23060 rm -f conftest.er1
23061 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023064 { ac_try='test -z "$ac_c_werror_flag"
23065 || test ! -s conftest.err'
23066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23067 (eval $ac_try) 2>&5
23068 ac_status=$?
23069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070 (exit $ac_status); }; } &&
23071 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23073 (eval $ac_try) 2>&5
23074 ac_status=$?
23075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); }; }; then
23077 ac_cv_func_shl_load=yes
23078else
23079 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023080sed 's/^/| /' conftest.$ac_ext >&5
23081
John Criswell47fdd832003-07-14 16:52:07 +000023082ac_cv_func_shl_load=no
23083fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023084rm -f conftest.err conftest.$ac_objext \
23085 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023086fi
23087echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23088echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23089if test $ac_cv_func_shl_load = yes; then
23090 lt_cv_dlopen="shl_load"
23091else
23092 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23093echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23094if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23095 echo $ECHO_N "(cached) $ECHO_C" >&6
23096else
23097 ac_check_lib_save_LIBS=$LIBS
23098LIBS="-ldld $LIBS"
23099cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023100/* confdefs.h. */
23101_ACEOF
23102cat confdefs.h >>conftest.$ac_ext
23103cat >>conftest.$ac_ext <<_ACEOF
23104/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023105
23106/* Override any gcc2 internal prototype to avoid an error. */
23107#ifdef __cplusplus
23108extern "C"
23109#endif
23110/* We use char because int might match the return type of a gcc2
23111 builtin and then its argument prototype would still apply. */
23112char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023113int
23114main ()
23115{
23116shl_load ();
23117 ;
23118 return 0;
23119}
23120_ACEOF
23121rm -f conftest.$ac_objext conftest$ac_exeext
23122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023123 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023124 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023125 grep -v '^ *+' conftest.er1 >conftest.err
23126 rm -f conftest.er1
23127 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023130 { ac_try='test -z "$ac_c_werror_flag"
23131 || test ! -s conftest.err'
23132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23133 (eval $ac_try) 2>&5
23134 ac_status=$?
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); }; } &&
23137 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23139 (eval $ac_try) 2>&5
23140 ac_status=$?
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); }; }; then
23143 ac_cv_lib_dld_shl_load=yes
23144else
23145 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023146sed 's/^/| /' conftest.$ac_ext >&5
23147
John Criswell47fdd832003-07-14 16:52:07 +000023148ac_cv_lib_dld_shl_load=no
23149fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023150rm -f conftest.err conftest.$ac_objext \
23151 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023152LIBS=$ac_check_lib_save_LIBS
23153fi
23154echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23155echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23156if test $ac_cv_lib_dld_shl_load = yes; then
23157 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23158else
23159 echo "$as_me:$LINENO: checking for dlopen" >&5
23160echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23161if test "${ac_cv_func_dlopen+set}" = set; then
23162 echo $ECHO_N "(cached) $ECHO_C" >&6
23163else
23164 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023165/* confdefs.h. */
23166_ACEOF
23167cat confdefs.h >>conftest.$ac_ext
23168cat >>conftest.$ac_ext <<_ACEOF
23169/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023170/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23172#define dlopen innocuous_dlopen
23173
John Criswell47fdd832003-07-14 16:52:07 +000023174/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023175 which can conflict with char dlopen (); below.
23176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23177 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023178
John Criswell0c38eaf2003-09-10 15:17:25 +000023179#ifdef __STDC__
23180# include <limits.h>
23181#else
23182# include <assert.h>
23183#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023184
23185#undef dlopen
23186
John Criswell47fdd832003-07-14 16:52:07 +000023187/* Override any gcc2 internal prototype to avoid an error. */
23188#ifdef __cplusplus
23189extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023190{
John Criswell47fdd832003-07-14 16:52:07 +000023191#endif
23192/* We use char because int might match the return type of a gcc2
23193 builtin and then its argument prototype would still apply. */
23194char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023195/* The GNU C library defines this for functions which it implements
23196 to always fail with ENOSYS. Some functions are actually named
23197 something starting with __ and the normal name is an alias. */
23198#if defined (__stub_dlopen) || defined (__stub___dlopen)
23199choke me
23200#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023201char (*f) () = dlopen;
23202#endif
23203#ifdef __cplusplus
23204}
John Criswell47fdd832003-07-14 16:52:07 +000023205#endif
23206
John Criswell0c38eaf2003-09-10 15:17:25 +000023207int
23208main ()
23209{
23210return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023211 ;
23212 return 0;
23213}
23214_ACEOF
23215rm -f conftest.$ac_objext conftest$ac_exeext
23216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023217 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023218 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023219 grep -v '^ *+' conftest.er1 >conftest.err
23220 rm -f conftest.er1
23221 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023224 { ac_try='test -z "$ac_c_werror_flag"
23225 || test ! -s conftest.err'
23226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23227 (eval $ac_try) 2>&5
23228 ac_status=$?
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); }; } &&
23231 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23233 (eval $ac_try) 2>&5
23234 ac_status=$?
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); }; }; then
23237 ac_cv_func_dlopen=yes
23238else
23239 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023240sed 's/^/| /' conftest.$ac_ext >&5
23241
John Criswell47fdd832003-07-14 16:52:07 +000023242ac_cv_func_dlopen=no
23243fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023244rm -f conftest.err conftest.$ac_objext \
23245 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023246fi
23247echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23248echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23249if test $ac_cv_func_dlopen = yes; then
23250 lt_cv_dlopen="dlopen"
23251else
23252 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23253echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23254if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23255 echo $ECHO_N "(cached) $ECHO_C" >&6
23256else
23257 ac_check_lib_save_LIBS=$LIBS
23258LIBS="-ldl $LIBS"
23259cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023260/* confdefs.h. */
23261_ACEOF
23262cat confdefs.h >>conftest.$ac_ext
23263cat >>conftest.$ac_ext <<_ACEOF
23264/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023265
23266/* Override any gcc2 internal prototype to avoid an error. */
23267#ifdef __cplusplus
23268extern "C"
23269#endif
23270/* We use char because int might match the return type of a gcc2
23271 builtin and then its argument prototype would still apply. */
23272char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023273int
23274main ()
23275{
23276dlopen ();
23277 ;
23278 return 0;
23279}
23280_ACEOF
23281rm -f conftest.$ac_objext conftest$ac_exeext
23282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023283 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023284 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023285 grep -v '^ *+' conftest.er1 >conftest.err
23286 rm -f conftest.er1
23287 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023290 { ac_try='test -z "$ac_c_werror_flag"
23291 || test ! -s conftest.err'
23292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23293 (eval $ac_try) 2>&5
23294 ac_status=$?
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); }; } &&
23297 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23299 (eval $ac_try) 2>&5
23300 ac_status=$?
23301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302 (exit $ac_status); }; }; then
23303 ac_cv_lib_dl_dlopen=yes
23304else
23305 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023306sed 's/^/| /' conftest.$ac_ext >&5
23307
John Criswell47fdd832003-07-14 16:52:07 +000023308ac_cv_lib_dl_dlopen=no
23309fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023310rm -f conftest.err conftest.$ac_objext \
23311 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023312LIBS=$ac_check_lib_save_LIBS
23313fi
23314echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23315echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23316if test $ac_cv_lib_dl_dlopen = yes; then
23317 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23318else
23319 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23320echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23321if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23322 echo $ECHO_N "(cached) $ECHO_C" >&6
23323else
23324 ac_check_lib_save_LIBS=$LIBS
23325LIBS="-lsvld $LIBS"
23326cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023327/* confdefs.h. */
23328_ACEOF
23329cat confdefs.h >>conftest.$ac_ext
23330cat >>conftest.$ac_ext <<_ACEOF
23331/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023332
23333/* Override any gcc2 internal prototype to avoid an error. */
23334#ifdef __cplusplus
23335extern "C"
23336#endif
23337/* We use char because int might match the return type of a gcc2
23338 builtin and then its argument prototype would still apply. */
23339char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023340int
23341main ()
23342{
23343dlopen ();
23344 ;
23345 return 0;
23346}
23347_ACEOF
23348rm -f conftest.$ac_objext conftest$ac_exeext
23349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023350 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023351 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023352 grep -v '^ *+' conftest.er1 >conftest.err
23353 rm -f conftest.er1
23354 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023357 { ac_try='test -z "$ac_c_werror_flag"
23358 || test ! -s conftest.err'
23359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23360 (eval $ac_try) 2>&5
23361 ac_status=$?
23362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363 (exit $ac_status); }; } &&
23364 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23366 (eval $ac_try) 2>&5
23367 ac_status=$?
23368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23369 (exit $ac_status); }; }; then
23370 ac_cv_lib_svld_dlopen=yes
23371else
23372 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023373sed 's/^/| /' conftest.$ac_ext >&5
23374
John Criswell47fdd832003-07-14 16:52:07 +000023375ac_cv_lib_svld_dlopen=no
23376fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023377rm -f conftest.err conftest.$ac_objext \
23378 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023379LIBS=$ac_check_lib_save_LIBS
23380fi
23381echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23382echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23383if test $ac_cv_lib_svld_dlopen = yes; then
23384 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23385else
23386 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23387echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23388if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23389 echo $ECHO_N "(cached) $ECHO_C" >&6
23390else
23391 ac_check_lib_save_LIBS=$LIBS
23392LIBS="-ldld $LIBS"
23393cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023394/* confdefs.h. */
23395_ACEOF
23396cat confdefs.h >>conftest.$ac_ext
23397cat >>conftest.$ac_ext <<_ACEOF
23398/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023399
23400/* Override any gcc2 internal prototype to avoid an error. */
23401#ifdef __cplusplus
23402extern "C"
23403#endif
23404/* We use char because int might match the return type of a gcc2
23405 builtin and then its argument prototype would still apply. */
23406char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023407int
23408main ()
23409{
23410dld_link ();
23411 ;
23412 return 0;
23413}
23414_ACEOF
23415rm -f conftest.$ac_objext conftest$ac_exeext
23416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023417 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023418 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023419 grep -v '^ *+' conftest.er1 >conftest.err
23420 rm -f conftest.er1
23421 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023424 { ac_try='test -z "$ac_c_werror_flag"
23425 || test ! -s conftest.err'
23426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23427 (eval $ac_try) 2>&5
23428 ac_status=$?
23429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430 (exit $ac_status); }; } &&
23431 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23433 (eval $ac_try) 2>&5
23434 ac_status=$?
23435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23436 (exit $ac_status); }; }; then
23437 ac_cv_lib_dld_dld_link=yes
23438else
23439 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023440sed 's/^/| /' conftest.$ac_ext >&5
23441
John Criswell47fdd832003-07-14 16:52:07 +000023442ac_cv_lib_dld_dld_link=no
23443fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023444rm -f conftest.err conftest.$ac_objext \
23445 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023446LIBS=$ac_check_lib_save_LIBS
23447fi
23448echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23449echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23450if test $ac_cv_lib_dld_dld_link = yes; then
23451 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23452fi
23453
23454
23455fi
23456
23457
23458fi
23459
23460
23461fi
23462
23463
23464fi
23465
23466
23467fi
23468
23469 ;;
23470 esac
23471
23472 if test "x$lt_cv_dlopen" != xno; then
23473 enable_dlopen=yes
23474 else
23475 enable_dlopen=no
23476 fi
23477
23478 case $lt_cv_dlopen in
23479 dlopen)
23480 save_CPPFLAGS="$CPPFLAGS"
23481 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23482
23483 save_LDFLAGS="$LDFLAGS"
23484 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23485
23486 save_LIBS="$LIBS"
23487 LIBS="$lt_cv_dlopen_libs $LIBS"
23488
23489 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23490echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23491if test "${lt_cv_dlopen_self+set}" = set; then
23492 echo $ECHO_N "(cached) $ECHO_C" >&6
23493else
23494 if test "$cross_compiling" = yes; then :
23495 lt_cv_dlopen_self=cross
23496else
23497 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23498 lt_status=$lt_dlunknown
23499 cat > conftest.$ac_ext <<EOF
Reid Spencer502935f2004-12-22 05:56:56 +000023500#line 23500 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023501#include "confdefs.h"
23502
23503#if HAVE_DLFCN_H
23504#include <dlfcn.h>
23505#endif
23506
23507#include <stdio.h>
23508
23509#ifdef RTLD_GLOBAL
23510# define LT_DLGLOBAL RTLD_GLOBAL
23511#else
23512# ifdef DL_GLOBAL
23513# define LT_DLGLOBAL DL_GLOBAL
23514# else
23515# define LT_DLGLOBAL 0
23516# endif
23517#endif
23518
23519/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23520 find out it does not work in some platform. */
23521#ifndef LT_DLLAZY_OR_NOW
23522# ifdef RTLD_LAZY
23523# define LT_DLLAZY_OR_NOW RTLD_LAZY
23524# else
23525# ifdef DL_LAZY
23526# define LT_DLLAZY_OR_NOW DL_LAZY
23527# else
23528# ifdef RTLD_NOW
23529# define LT_DLLAZY_OR_NOW RTLD_NOW
23530# else
23531# ifdef DL_NOW
23532# define LT_DLLAZY_OR_NOW DL_NOW
23533# else
23534# define LT_DLLAZY_OR_NOW 0
23535# endif
23536# endif
23537# endif
23538# endif
23539#endif
23540
23541#ifdef __cplusplus
23542extern "C" void exit (int);
23543#endif
23544
23545void fnord() { int i=42;}
23546int main ()
23547{
23548 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23549 int status = $lt_dlunknown;
23550
23551 if (self)
23552 {
23553 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23554 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23555 /* dlclose (self); */
23556 }
23557
23558 exit (status);
23559}
23560EOF
23561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23562 (eval $ac_link) 2>&5
23563 ac_status=$?
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23566 (./conftest; exit; ) 2>/dev/null
23567 lt_status=$?
23568 case x$lt_status in
23569 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23570 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23571 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23572 esac
23573 else :
23574 # compilation failed
23575 lt_cv_dlopen_self=no
23576 fi
23577fi
23578rm -fr conftest*
23579
23580
23581fi
23582echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23583echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23584
23585 if test "x$lt_cv_dlopen_self" = xyes; then
23586 LDFLAGS="$LDFLAGS $link_static_flag"
23587 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23588echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23589if test "${lt_cv_dlopen_self_static+set}" = set; then
23590 echo $ECHO_N "(cached) $ECHO_C" >&6
23591else
23592 if test "$cross_compiling" = yes; then :
23593 lt_cv_dlopen_self_static=cross
23594else
23595 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23596 lt_status=$lt_dlunknown
23597 cat > conftest.$ac_ext <<EOF
Reid Spencer502935f2004-12-22 05:56:56 +000023598#line 23598 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023599#include "confdefs.h"
23600
23601#if HAVE_DLFCN_H
23602#include <dlfcn.h>
23603#endif
23604
23605#include <stdio.h>
23606
23607#ifdef RTLD_GLOBAL
23608# define LT_DLGLOBAL RTLD_GLOBAL
23609#else
23610# ifdef DL_GLOBAL
23611# define LT_DLGLOBAL DL_GLOBAL
23612# else
23613# define LT_DLGLOBAL 0
23614# endif
23615#endif
23616
23617/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23618 find out it does not work in some platform. */
23619#ifndef LT_DLLAZY_OR_NOW
23620# ifdef RTLD_LAZY
23621# define LT_DLLAZY_OR_NOW RTLD_LAZY
23622# else
23623# ifdef DL_LAZY
23624# define LT_DLLAZY_OR_NOW DL_LAZY
23625# else
23626# ifdef RTLD_NOW
23627# define LT_DLLAZY_OR_NOW RTLD_NOW
23628# else
23629# ifdef DL_NOW
23630# define LT_DLLAZY_OR_NOW DL_NOW
23631# else
23632# define LT_DLLAZY_OR_NOW 0
23633# endif
23634# endif
23635# endif
23636# endif
23637#endif
23638
23639#ifdef __cplusplus
23640extern "C" void exit (int);
23641#endif
23642
23643void fnord() { int i=42;}
23644int main ()
23645{
23646 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23647 int status = $lt_dlunknown;
23648
23649 if (self)
23650 {
23651 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23652 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23653 /* dlclose (self); */
23654 }
23655
23656 exit (status);
23657}
23658EOF
23659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23660 (eval $ac_link) 2>&5
23661 ac_status=$?
23662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23664 (./conftest; exit; ) 2>/dev/null
23665 lt_status=$?
23666 case x$lt_status in
23667 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23668 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23669 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23670 esac
23671 else :
23672 # compilation failed
23673 lt_cv_dlopen_self_static=no
23674 fi
23675fi
23676rm -fr conftest*
23677
23678
23679fi
23680echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23681echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23682 fi
23683
23684 CPPFLAGS="$save_CPPFLAGS"
23685 LDFLAGS="$save_LDFLAGS"
23686 LIBS="$save_LIBS"
23687 ;;
23688 esac
23689
23690 case $lt_cv_dlopen_self in
23691 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23692 *) enable_dlopen_self=unknown ;;
23693 esac
23694
23695 case $lt_cv_dlopen_self_static in
23696 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23697 *) enable_dlopen_self_static=unknown ;;
23698 esac
23699fi
23700
23701
23702# The else clause should only fire when bootstrapping the
23703# libtool distribution, otherwise you forgot to ship ltmain.sh
23704# with your package, and you will get complaints that there are
23705# no rules to generate ltmain.sh.
23706if test -f "$ltmain"; then
23707 # See if we are running on zsh, and set the options which allow our commands through
23708 # without removal of \ escapes.
23709 if test -n "${ZSH_VERSION+set}" ; then
23710 setopt NO_GLOB_SUBST
23711 fi
23712 # Now quote all the things that may contain metacharacters while being
23713 # careful not to overquote the AC_SUBSTed values. We take copies of the
23714 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023715 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23716 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023717 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23718 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23719 deplibs_check_method reload_flag reload_cmds need_locks \
23720 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23721 lt_cv_sys_global_symbol_to_c_name_address \
23722 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23723 old_postinstall_cmds old_postuninstall_cmds \
23724 compiler_GCJ \
23725 CC_GCJ \
23726 LD_GCJ \
23727 lt_prog_compiler_wl_GCJ \
23728 lt_prog_compiler_pic_GCJ \
23729 lt_prog_compiler_static_GCJ \
23730 lt_prog_compiler_no_builtin_flag_GCJ \
23731 export_dynamic_flag_spec_GCJ \
23732 thread_safe_flag_spec_GCJ \
23733 whole_archive_flag_spec_GCJ \
23734 enable_shared_with_static_runtimes_GCJ \
23735 old_archive_cmds_GCJ \
23736 old_archive_from_new_cmds_GCJ \
23737 predep_objects_GCJ \
23738 postdep_objects_GCJ \
23739 predeps_GCJ \
23740 postdeps_GCJ \
23741 compiler_lib_search_path_GCJ \
23742 archive_cmds_GCJ \
23743 archive_expsym_cmds_GCJ \
23744 postinstall_cmds_GCJ \
23745 postuninstall_cmds_GCJ \
23746 old_archive_from_expsyms_cmds_GCJ \
23747 allow_undefined_flag_GCJ \
23748 no_undefined_flag_GCJ \
23749 export_symbols_cmds_GCJ \
23750 hardcode_libdir_flag_spec_GCJ \
23751 hardcode_libdir_flag_spec_ld_GCJ \
23752 hardcode_libdir_separator_GCJ \
23753 hardcode_automatic_GCJ \
23754 module_cmds_GCJ \
23755 module_expsym_cmds_GCJ \
23756 lt_cv_prog_compiler_c_o_GCJ \
23757 exclude_expsyms_GCJ \
23758 include_expsyms_GCJ; do
23759
23760 case $var in
23761 old_archive_cmds_GCJ | \
23762 old_archive_from_new_cmds_GCJ | \
23763 archive_cmds_GCJ | \
23764 archive_expsym_cmds_GCJ | \
23765 module_cmds_GCJ | \
23766 module_expsym_cmds_GCJ | \
23767 old_archive_from_expsyms_cmds_GCJ | \
23768 export_symbols_cmds_GCJ | \
23769 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23770 postinstall_cmds | postuninstall_cmds | \
23771 old_postinstall_cmds | old_postuninstall_cmds | \
23772 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23773 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023774 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000023775 ;;
23776 *)
23777 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23778 ;;
23779 esac
23780 done
23781
23782 case $lt_echo in
23783 *'\$0 --fallback-echo"')
23784 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23785 ;;
23786 esac
23787
23788cfgfile="$ofile"
23789
23790 cat <<__EOF__ >> "$cfgfile"
23791# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23792
23793# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23794
23795# Shell to use when invoking shell scripts.
23796SHELL=$lt_SHELL
23797
23798# Whether or not to build shared libraries.
23799build_libtool_libs=$enable_shared
23800
23801# Whether or not to build static libraries.
23802build_old_libs=$enable_static
23803
23804# Whether or not to add -lc for building shared libraries.
23805build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23806
23807# Whether or not to disallow shared libs when runtime libs are static
23808allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23809
23810# Whether or not to optimize for fast installation.
23811fast_install=$enable_fast_install
23812
23813# The host system.
23814host_alias=$host_alias
23815host=$host
23816
23817# An echo program that does not interpret backslashes.
23818echo=$lt_echo
23819
23820# The archiver.
23821AR=$lt_AR
23822AR_FLAGS=$lt_AR_FLAGS
23823
23824# A C compiler.
23825LTCC=$lt_LTCC
23826
23827# A language-specific compiler.
23828CC=$lt_compiler_GCJ
23829
23830# Is the compiler the GNU C compiler?
23831with_gcc=$GCC_GCJ
23832
23833# An ERE matcher.
23834EGREP=$lt_EGREP
23835
23836# The linker used to build libraries.
23837LD=$lt_LD_GCJ
23838
23839# Whether we need hard or soft links.
23840LN_S=$lt_LN_S
23841
23842# A BSD-compatible nm program.
23843NM=$lt_NM
23844
23845# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023846STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023847
23848# Used to examine libraries when file_magic_cmd begins "file"
23849MAGIC_CMD=$MAGIC_CMD
23850
23851# Used on cygwin: DLL creation program.
23852DLLTOOL="$DLLTOOL"
23853
23854# Used on cygwin: object dumper.
23855OBJDUMP="$OBJDUMP"
23856
23857# Used on cygwin: assembler.
23858AS="$AS"
23859
23860# The name of the directory that contains temporary libtool files.
23861objdir=$objdir
23862
23863# How to create reloadable object files.
23864reload_flag=$lt_reload_flag
23865reload_cmds=$lt_reload_cmds
23866
23867# How to pass a linker flag through the compiler.
23868wl=$lt_lt_prog_compiler_wl_GCJ
23869
23870# Object file suffix (normally "o").
23871objext="$ac_objext"
23872
23873# Old archive suffix (normally "a").
23874libext="$libext"
23875
23876# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023877shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023878
23879# Executable file suffix (normally "").
23880exeext="$exeext"
23881
23882# Additional compiler flags for building library objects.
23883pic_flag=$lt_lt_prog_compiler_pic_GCJ
23884pic_mode=$pic_mode
23885
23886# What is the maximum length of a command?
23887max_cmd_len=$lt_cv_sys_max_cmd_len
23888
23889# Does compiler simultaneously support -c and -o options?
23890compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23891
23892# Must we lock files when doing compilation ?
23893need_locks=$lt_need_locks
23894
23895# Do we need the lib prefix for modules?
23896need_lib_prefix=$need_lib_prefix
23897
23898# Do we need a version for libraries?
23899need_version=$need_version
23900
23901# Whether dlopen is supported.
23902dlopen_support=$enable_dlopen
23903
23904# Whether dlopen of programs is supported.
23905dlopen_self=$enable_dlopen_self
23906
23907# Whether dlopen of statically linked programs is supported.
23908dlopen_self_static=$enable_dlopen_self_static
23909
23910# Compiler flag to prevent dynamic linking.
23911link_static_flag=$lt_lt_prog_compiler_static_GCJ
23912
23913# Compiler flag to turn off builtin functions.
23914no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23915
23916# Compiler flag to allow reflexive dlopens.
23917export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23918
23919# Compiler flag to generate shared objects directly from archives.
23920whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23921
23922# Compiler flag to generate thread-safe objects.
23923thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23924
23925# Library versioning type.
23926version_type=$version_type
23927
23928# Format of library name prefix.
23929libname_spec=$lt_libname_spec
23930
23931# List of archive names. First name is the real one, the rest are links.
23932# The last name is the one that the linker finds with -lNAME.
23933library_names_spec=$lt_library_names_spec
23934
23935# The coded name of the library, if different from the real name.
23936soname_spec=$lt_soname_spec
23937
23938# Commands used to build and install an old-style archive.
23939RANLIB=$lt_RANLIB
23940old_archive_cmds=$lt_old_archive_cmds_GCJ
23941old_postinstall_cmds=$lt_old_postinstall_cmds
23942old_postuninstall_cmds=$lt_old_postuninstall_cmds
23943
23944# Create an old-style archive from a shared archive.
23945old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23946
23947# Create a temporary old-style archive to link instead of a shared archive.
23948old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23949
23950# Commands used to build and install a shared archive.
23951archive_cmds=$lt_archive_cmds_GCJ
23952archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23953postinstall_cmds=$lt_postinstall_cmds
23954postuninstall_cmds=$lt_postuninstall_cmds
23955
23956# Commands used to build a loadable module (assumed same as above if empty)
23957module_cmds=$lt_module_cmds_GCJ
23958module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23959
23960# Commands to strip libraries.
23961old_striplib=$lt_old_striplib
23962striplib=$lt_striplib
23963
23964# Dependencies to place before the objects being linked to create a
23965# shared library.
23966predep_objects=$lt_predep_objects_GCJ
23967
23968# Dependencies to place after the objects being linked to create a
23969# shared library.
23970postdep_objects=$lt_postdep_objects_GCJ
23971
23972# Dependencies to place before the objects being linked to create a
23973# shared library.
23974predeps=$lt_predeps_GCJ
23975
23976# Dependencies to place after the objects being linked to create a
23977# shared library.
23978postdeps=$lt_postdeps_GCJ
23979
23980# The library search path used internally by the compiler when linking
23981# a shared library.
23982compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23983
23984# Method to check whether dependent libraries are shared objects.
23985deplibs_check_method=$lt_deplibs_check_method
23986
23987# Command to use when deplibs_check_method == file_magic.
23988file_magic_cmd=$lt_file_magic_cmd
23989
23990# Flag that allows shared libraries with undefined symbols to be built.
23991allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23992
23993# Flag that forces no undefined symbols.
23994no_undefined_flag=$lt_no_undefined_flag_GCJ
23995
23996# Commands used to finish a libtool library installation in a directory.
23997finish_cmds=$lt_finish_cmds
23998
23999# Same as above, but a single script fragment to be evaled but not shown.
24000finish_eval=$lt_finish_eval
24001
24002# Take the output of nm and produce a listing of raw symbols and C names.
24003global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24004
24005# Transform the output of nm in a proper C declaration
24006global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24007
24008# Transform the output of nm in a C name address pair
24009global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24010
24011# This is the shared library runtime path variable.
24012runpath_var=$runpath_var
24013
24014# This is the shared library path variable.
24015shlibpath_var=$shlibpath_var
24016
24017# Is shlibpath searched before the hard-coded library search path?
24018shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24019
24020# How to hardcode a shared library path into an executable.
24021hardcode_action=$hardcode_action_GCJ
24022
24023# Whether we should hardcode library paths into libraries.
24024hardcode_into_libs=$hardcode_into_libs
24025
24026# Flag to hardcode \$libdir into a binary during linking.
24027# This must work even if \$libdir does not exist.
24028hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24029
24030# If ld is used when linking, flag to hardcode \$libdir into
24031# a binary during linking. This must work even if \$libdir does
24032# not exist.
24033hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24034
24035# Whether we need a single -rpath flag with a separated argument.
24036hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24037
24038# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24039# resulting binary.
24040hardcode_direct=$hardcode_direct_GCJ
24041
24042# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24043# resulting binary.
24044hardcode_minus_L=$hardcode_minus_L_GCJ
24045
24046# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24047# the resulting binary.
24048hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24049
24050# Set to yes if building a shared library automatically hardcodes DIR into the library
24051# and all subsequent libraries and executables linked against it.
24052hardcode_automatic=$hardcode_automatic_GCJ
24053
24054# Variables whose values should be saved in libtool wrapper scripts and
24055# restored at relink time.
24056variables_saved_for_relink="$variables_saved_for_relink"
24057
24058# Whether libtool must link a program against all its dependency libraries.
24059link_all_deplibs=$link_all_deplibs_GCJ
24060
24061# Compile-time system search path for libraries
24062sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24063
24064# Run-time system search path for libraries
24065sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24066
24067# Fix the shell variable \$srcfile for the compiler.
24068fix_srcfile_path="$fix_srcfile_path_GCJ"
24069
24070# Set to yes if exported symbols are required.
24071always_export_symbols=$always_export_symbols_GCJ
24072
24073# The commands to list exported symbols.
24074export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24075
24076# The commands to extract the exported symbol list from a shared archive.
24077extract_expsyms_cmds=$lt_extract_expsyms_cmds
24078
24079# Symbols that should not be listed in the preloaded symbols.
24080exclude_expsyms=$lt_exclude_expsyms_GCJ
24081
24082# Symbols that must always be exported.
24083include_expsyms=$lt_include_expsyms_GCJ
24084
24085# ### END LIBTOOL TAG CONFIG: $tagname
24086
24087__EOF__
24088
24089
24090else
24091 # If there is no Makefile yet, we rely on a make rule to execute
24092 # `config.status --recheck' to rerun these tests and create the
24093 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024094 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24095 if test -f "$ltmain_in"; then
24096 test -f Makefile && make "$ltmain"
24097 fi
John Criswell47fdd832003-07-14 16:52:07 +000024098fi
24099
24100
24101ac_ext=c
24102ac_cpp='$CPP $CPPFLAGS'
24103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24105ac_compiler_gnu=$ac_cv_c_compiler_gnu
24106
24107CC="$lt_save_CC"
24108
24109 else
24110 tagname=""
24111 fi
24112 ;;
24113
24114 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024115 ac_ext=c
24116ac_cpp='$CPP $CPPFLAGS'
24117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24119ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024120
24121
24122# Source file extension for RC test sources.
24123ac_ext=rc
24124
24125# Object file extension for compiled RC test sources.
24126objext=o
24127objext_RC=$objext
24128
24129# Code to be used in simple compile tests
24130lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24131
24132# Code to be used in simple link tests
24133lt_simple_link_test_code="$lt_simple_compile_test_code"
24134
24135# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24136
24137# If no C compiler was specified, use CC.
24138LTCC=${LTCC-"$CC"}
24139
24140# Allow CC to be a program name with arguments.
24141compiler=$CC
24142
24143
24144# Allow CC to be a program name with arguments.
24145lt_save_CC="$CC"
24146CC=${RC-"windres"}
24147compiler=$CC
24148compiler_RC=$CC
24149lt_cv_prog_compiler_c_o_RC=yes
24150
24151# The else clause should only fire when bootstrapping the
24152# libtool distribution, otherwise you forgot to ship ltmain.sh
24153# with your package, and you will get complaints that there are
24154# no rules to generate ltmain.sh.
24155if test -f "$ltmain"; then
24156 # See if we are running on zsh, and set the options which allow our commands through
24157 # without removal of \ escapes.
24158 if test -n "${ZSH_VERSION+set}" ; then
24159 setopt NO_GLOB_SUBST
24160 fi
24161 # Now quote all the things that may contain metacharacters while being
24162 # careful not to overquote the AC_SUBSTed values. We take copies of the
24163 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024164 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24165 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024166 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24167 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24168 deplibs_check_method reload_flag reload_cmds need_locks \
24169 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24170 lt_cv_sys_global_symbol_to_c_name_address \
24171 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24172 old_postinstall_cmds old_postuninstall_cmds \
24173 compiler_RC \
24174 CC_RC \
24175 LD_RC \
24176 lt_prog_compiler_wl_RC \
24177 lt_prog_compiler_pic_RC \
24178 lt_prog_compiler_static_RC \
24179 lt_prog_compiler_no_builtin_flag_RC \
24180 export_dynamic_flag_spec_RC \
24181 thread_safe_flag_spec_RC \
24182 whole_archive_flag_spec_RC \
24183 enable_shared_with_static_runtimes_RC \
24184 old_archive_cmds_RC \
24185 old_archive_from_new_cmds_RC \
24186 predep_objects_RC \
24187 postdep_objects_RC \
24188 predeps_RC \
24189 postdeps_RC \
24190 compiler_lib_search_path_RC \
24191 archive_cmds_RC \
24192 archive_expsym_cmds_RC \
24193 postinstall_cmds_RC \
24194 postuninstall_cmds_RC \
24195 old_archive_from_expsyms_cmds_RC \
24196 allow_undefined_flag_RC \
24197 no_undefined_flag_RC \
24198 export_symbols_cmds_RC \
24199 hardcode_libdir_flag_spec_RC \
24200 hardcode_libdir_flag_spec_ld_RC \
24201 hardcode_libdir_separator_RC \
24202 hardcode_automatic_RC \
24203 module_cmds_RC \
24204 module_expsym_cmds_RC \
24205 lt_cv_prog_compiler_c_o_RC \
24206 exclude_expsyms_RC \
24207 include_expsyms_RC; do
24208
24209 case $var in
24210 old_archive_cmds_RC | \
24211 old_archive_from_new_cmds_RC | \
24212 archive_cmds_RC | \
24213 archive_expsym_cmds_RC | \
24214 module_cmds_RC | \
24215 module_expsym_cmds_RC | \
24216 old_archive_from_expsyms_cmds_RC | \
24217 export_symbols_cmds_RC | \
24218 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24219 postinstall_cmds | postuninstall_cmds | \
24220 old_postinstall_cmds | old_postuninstall_cmds | \
24221 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24222 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024223 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000024224 ;;
24225 *)
24226 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24227 ;;
24228 esac
24229 done
24230
24231 case $lt_echo in
24232 *'\$0 --fallback-echo"')
24233 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24234 ;;
24235 esac
24236
24237cfgfile="$ofile"
24238
24239 cat <<__EOF__ >> "$cfgfile"
24240# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24241
24242# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24243
24244# Shell to use when invoking shell scripts.
24245SHELL=$lt_SHELL
24246
24247# Whether or not to build shared libraries.
24248build_libtool_libs=$enable_shared
24249
24250# Whether or not to build static libraries.
24251build_old_libs=$enable_static
24252
24253# Whether or not to add -lc for building shared libraries.
24254build_libtool_need_lc=$archive_cmds_need_lc_RC
24255
24256# Whether or not to disallow shared libs when runtime libs are static
24257allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24258
24259# Whether or not to optimize for fast installation.
24260fast_install=$enable_fast_install
24261
24262# The host system.
24263host_alias=$host_alias
24264host=$host
24265
24266# An echo program that does not interpret backslashes.
24267echo=$lt_echo
24268
24269# The archiver.
24270AR=$lt_AR
24271AR_FLAGS=$lt_AR_FLAGS
24272
24273# A C compiler.
24274LTCC=$lt_LTCC
24275
24276# A language-specific compiler.
24277CC=$lt_compiler_RC
24278
24279# Is the compiler the GNU C compiler?
24280with_gcc=$GCC_RC
24281
24282# An ERE matcher.
24283EGREP=$lt_EGREP
24284
24285# The linker used to build libraries.
24286LD=$lt_LD_RC
24287
24288# Whether we need hard or soft links.
24289LN_S=$lt_LN_S
24290
24291# A BSD-compatible nm program.
24292NM=$lt_NM
24293
24294# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024295STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024296
24297# Used to examine libraries when file_magic_cmd begins "file"
24298MAGIC_CMD=$MAGIC_CMD
24299
24300# Used on cygwin: DLL creation program.
24301DLLTOOL="$DLLTOOL"
24302
24303# Used on cygwin: object dumper.
24304OBJDUMP="$OBJDUMP"
24305
24306# Used on cygwin: assembler.
24307AS="$AS"
24308
24309# The name of the directory that contains temporary libtool files.
24310objdir=$objdir
24311
24312# How to create reloadable object files.
24313reload_flag=$lt_reload_flag
24314reload_cmds=$lt_reload_cmds
24315
24316# How to pass a linker flag through the compiler.
24317wl=$lt_lt_prog_compiler_wl_RC
24318
24319# Object file suffix (normally "o").
24320objext="$ac_objext"
24321
24322# Old archive suffix (normally "a").
24323libext="$libext"
24324
24325# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024326shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024327
24328# Executable file suffix (normally "").
24329exeext="$exeext"
24330
24331# Additional compiler flags for building library objects.
24332pic_flag=$lt_lt_prog_compiler_pic_RC
24333pic_mode=$pic_mode
24334
24335# What is the maximum length of a command?
24336max_cmd_len=$lt_cv_sys_max_cmd_len
24337
24338# Does compiler simultaneously support -c and -o options?
24339compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24340
24341# Must we lock files when doing compilation ?
24342need_locks=$lt_need_locks
24343
24344# Do we need the lib prefix for modules?
24345need_lib_prefix=$need_lib_prefix
24346
24347# Do we need a version for libraries?
24348need_version=$need_version
24349
24350# Whether dlopen is supported.
24351dlopen_support=$enable_dlopen
24352
24353# Whether dlopen of programs is supported.
24354dlopen_self=$enable_dlopen_self
24355
24356# Whether dlopen of statically linked programs is supported.
24357dlopen_self_static=$enable_dlopen_self_static
24358
24359# Compiler flag to prevent dynamic linking.
24360link_static_flag=$lt_lt_prog_compiler_static_RC
24361
24362# Compiler flag to turn off builtin functions.
24363no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24364
24365# Compiler flag to allow reflexive dlopens.
24366export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24367
24368# Compiler flag to generate shared objects directly from archives.
24369whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24370
24371# Compiler flag to generate thread-safe objects.
24372thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24373
24374# Library versioning type.
24375version_type=$version_type
24376
24377# Format of library name prefix.
24378libname_spec=$lt_libname_spec
24379
24380# List of archive names. First name is the real one, the rest are links.
24381# The last name is the one that the linker finds with -lNAME.
24382library_names_spec=$lt_library_names_spec
24383
24384# The coded name of the library, if different from the real name.
24385soname_spec=$lt_soname_spec
24386
24387# Commands used to build and install an old-style archive.
24388RANLIB=$lt_RANLIB
24389old_archive_cmds=$lt_old_archive_cmds_RC
24390old_postinstall_cmds=$lt_old_postinstall_cmds
24391old_postuninstall_cmds=$lt_old_postuninstall_cmds
24392
24393# Create an old-style archive from a shared archive.
24394old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24395
24396# Create a temporary old-style archive to link instead of a shared archive.
24397old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24398
24399# Commands used to build and install a shared archive.
24400archive_cmds=$lt_archive_cmds_RC
24401archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24402postinstall_cmds=$lt_postinstall_cmds
24403postuninstall_cmds=$lt_postuninstall_cmds
24404
24405# Commands used to build a loadable module (assumed same as above if empty)
24406module_cmds=$lt_module_cmds_RC
24407module_expsym_cmds=$lt_module_expsym_cmds_RC
24408
24409# Commands to strip libraries.
24410old_striplib=$lt_old_striplib
24411striplib=$lt_striplib
24412
24413# Dependencies to place before the objects being linked to create a
24414# shared library.
24415predep_objects=$lt_predep_objects_RC
24416
24417# Dependencies to place after the objects being linked to create a
24418# shared library.
24419postdep_objects=$lt_postdep_objects_RC
24420
24421# Dependencies to place before the objects being linked to create a
24422# shared library.
24423predeps=$lt_predeps_RC
24424
24425# Dependencies to place after the objects being linked to create a
24426# shared library.
24427postdeps=$lt_postdeps_RC
24428
24429# The library search path used internally by the compiler when linking
24430# a shared library.
24431compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24432
24433# Method to check whether dependent libraries are shared objects.
24434deplibs_check_method=$lt_deplibs_check_method
24435
24436# Command to use when deplibs_check_method == file_magic.
24437file_magic_cmd=$lt_file_magic_cmd
24438
24439# Flag that allows shared libraries with undefined symbols to be built.
24440allow_undefined_flag=$lt_allow_undefined_flag_RC
24441
24442# Flag that forces no undefined symbols.
24443no_undefined_flag=$lt_no_undefined_flag_RC
24444
24445# Commands used to finish a libtool library installation in a directory.
24446finish_cmds=$lt_finish_cmds
24447
24448# Same as above, but a single script fragment to be evaled but not shown.
24449finish_eval=$lt_finish_eval
24450
24451# Take the output of nm and produce a listing of raw symbols and C names.
24452global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24453
24454# Transform the output of nm in a proper C declaration
24455global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24456
24457# Transform the output of nm in a C name address pair
24458global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24459
24460# This is the shared library runtime path variable.
24461runpath_var=$runpath_var
24462
24463# This is the shared library path variable.
24464shlibpath_var=$shlibpath_var
24465
24466# Is shlibpath searched before the hard-coded library search path?
24467shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24468
24469# How to hardcode a shared library path into an executable.
24470hardcode_action=$hardcode_action_RC
24471
24472# Whether we should hardcode library paths into libraries.
24473hardcode_into_libs=$hardcode_into_libs
24474
24475# Flag to hardcode \$libdir into a binary during linking.
24476# This must work even if \$libdir does not exist.
24477hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24478
24479# If ld is used when linking, flag to hardcode \$libdir into
24480# a binary during linking. This must work even if \$libdir does
24481# not exist.
24482hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24483
24484# Whether we need a single -rpath flag with a separated argument.
24485hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24486
24487# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24488# resulting binary.
24489hardcode_direct=$hardcode_direct_RC
24490
24491# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24492# resulting binary.
24493hardcode_minus_L=$hardcode_minus_L_RC
24494
24495# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24496# the resulting binary.
24497hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24498
24499# Set to yes if building a shared library automatically hardcodes DIR into the library
24500# and all subsequent libraries and executables linked against it.
24501hardcode_automatic=$hardcode_automatic_RC
24502
24503# Variables whose values should be saved in libtool wrapper scripts and
24504# restored at relink time.
24505variables_saved_for_relink="$variables_saved_for_relink"
24506
24507# Whether libtool must link a program against all its dependency libraries.
24508link_all_deplibs=$link_all_deplibs_RC
24509
24510# Compile-time system search path for libraries
24511sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24512
24513# Run-time system search path for libraries
24514sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24515
24516# Fix the shell variable \$srcfile for the compiler.
24517fix_srcfile_path="$fix_srcfile_path_RC"
24518
24519# Set to yes if exported symbols are required.
24520always_export_symbols=$always_export_symbols_RC
24521
24522# The commands to list exported symbols.
24523export_symbols_cmds=$lt_export_symbols_cmds_RC
24524
24525# The commands to extract the exported symbol list from a shared archive.
24526extract_expsyms_cmds=$lt_extract_expsyms_cmds
24527
24528# Symbols that should not be listed in the preloaded symbols.
24529exclude_expsyms=$lt_exclude_expsyms_RC
24530
24531# Symbols that must always be exported.
24532include_expsyms=$lt_include_expsyms_RC
24533
24534# ### END LIBTOOL TAG CONFIG: $tagname
24535
24536__EOF__
24537
24538
24539else
24540 # If there is no Makefile yet, we rely on a make rule to execute
24541 # `config.status --recheck' to rerun these tests and create the
24542 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024543 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24544 if test -f "$ltmain_in"; then
24545 test -f Makefile && make "$ltmain"
24546 fi
John Criswell47fdd832003-07-14 16:52:07 +000024547fi
24548
24549
24550ac_ext=c
24551ac_cpp='$CPP $CPPFLAGS'
24552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24554ac_compiler_gnu=$ac_cv_c_compiler_gnu
24555
24556CC="$lt_save_CC"
24557
24558 ;;
24559
24560 *)
24561 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24562echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24563 { (exit 1); exit 1; }; }
24564 ;;
24565 esac
24566
24567 # Append the new tag name to the list of available tags.
24568 if test -n "$tagname" ; then
24569 available_tags="$available_tags $tagname"
24570 fi
24571 fi
24572 done
24573 IFS="$lt_save_ifs"
24574
24575 # Now substitute the updated list of available tags.
24576 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24577 mv "${ofile}T" "$ofile"
24578 chmod +x "$ofile"
24579 else
24580 rm -f "${ofile}T"
24581 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24582echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24583 { (exit 1); exit 1; }; }
24584 fi
24585fi
John Criswell7a73b802003-06-30 21:59:07 +000024586
24587
24588
24589# This can be used to rebuild libtool when needed
24590LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24591
24592# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024593LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024594
24595# Prevent multiple expansion
24596
24597
24598
John Criswell47fdd832003-07-14 16:52:07 +000024599
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610
24611
24612
24613
24614
24615
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024616
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024617etags_version=`$ETAGS --version 2>&1`
24618case "$etags_version" in
24619 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24620 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24621 *) ETAGSFLAGS="" ;;
24622esac
24623ETAGSFLAGS=$ETAGSFLAGS
24624
24625
24626echo "$as_me:$LINENO: checking tool compatibility" >&5
24627echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24628
Reid Spencer86901802004-12-08 23:07:27 +000024629ICC=no
24630IXX=no
24631case $CC in
24632 icc*|icpc*)
24633 ICC=yes
24634 IXX=yes
24635 ;;
24636 *)
24637 ;;
24638esac
24639
24640if test "$GCC" != "yes" && test "$ICC" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024641then
Reid Spencer86901802004-12-08 23:07:27 +000024642 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24643echo "$as_me: error: gcc|icc required but not found" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024644 { (exit 1); exit 1; }; }
24645fi
24646
Reid Spencer86901802004-12-08 23:07:27 +000024647if test "$GXX" != "yes" && test "$IXX" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024648then
Reid Spencer86901802004-12-08 23:07:27 +000024649 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24650echo "$as_me: error: g++|icc required but not found" >&2;}
24651 { (exit 1); exit 1; }; }
24652fi
24653
24654if test "$GCC" = "yes"
24655then
24656 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24657 if test "$gccmajor" -lt "3"
24658 then
24659 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024660echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24661 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000024662 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024663fi
24664
24665if test -z "$llvm_cv_gnu_make_command"
24666then
24667 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24668echo "$as_me: error: GNU Make required but not found" >&2;}
24669 { (exit 1); exit 1; }; }
24670fi
24671
24672echo "$as_me:$LINENO: result: ok" >&5
24673echo "${ECHO_T}ok" >&6
24674
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024675
John Criswell7a73b802003-06-30 21:59:07 +000024676
John Criswell7a73b802003-06-30 21:59:07 +000024677echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24678echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24679if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24680 echo $ECHO_N "(cached) $ECHO_C" >&6
24681else
24682 ac_check_lib_save_LIBS=$LIBS
24683LIBS="-lelf $LIBS"
24684cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024685/* confdefs.h. */
24686_ACEOF
24687cat confdefs.h >>conftest.$ac_ext
24688cat >>conftest.$ac_ext <<_ACEOF
24689/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024690
24691/* Override any gcc2 internal prototype to avoid an error. */
24692#ifdef __cplusplus
24693extern "C"
24694#endif
24695/* We use char because int might match the return type of a gcc2
24696 builtin and then its argument prototype would still apply. */
24697char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000024698int
24699main ()
24700{
24701elf_begin ();
24702 ;
24703 return 0;
24704}
24705_ACEOF
24706rm -f conftest.$ac_objext conftest$ac_exeext
24707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024708 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024709 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024710 grep -v '^ *+' conftest.er1 >conftest.err
24711 rm -f conftest.er1
24712 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024715 { ac_try='test -z "$ac_c_werror_flag"
24716 || test ! -s conftest.err'
24717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24718 (eval $ac_try) 2>&5
24719 ac_status=$?
24720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721 (exit $ac_status); }; } &&
24722 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24724 (eval $ac_try) 2>&5
24725 ac_status=$?
24726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727 (exit $ac_status); }; }; then
24728 ac_cv_lib_elf_elf_begin=yes
24729else
24730 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024731sed 's/^/| /' conftest.$ac_ext >&5
24732
John Criswell7a73b802003-06-30 21:59:07 +000024733ac_cv_lib_elf_elf_begin=no
24734fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024735rm -f conftest.err conftest.$ac_objext \
24736 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024737LIBS=$ac_check_lib_save_LIBS
24738fi
24739echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24740echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24741if test $ac_cv_lib_elf_elf_begin = yes; then
24742 cat >>confdefs.h <<_ACEOF
24743#define HAVE_LIBELF 1
24744_ACEOF
24745
24746 LIBS="-lelf $LIBS"
24747
24748fi
24749
24750
Reid Spencer17795972004-11-18 09:47:37 +000024751echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24752echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24753if test "${ac_cv_search_lt_dlopen+set}" = set; then
24754 echo $ECHO_N "(cached) $ECHO_C" >&6
24755else
24756 ac_func_search_save_LIBS=$LIBS
24757ac_cv_search_lt_dlopen=no
24758cat >conftest.$ac_ext <<_ACEOF
24759/* confdefs.h. */
24760_ACEOF
24761cat confdefs.h >>conftest.$ac_ext
24762cat >>conftest.$ac_ext <<_ACEOF
24763/* end confdefs.h. */
24764
24765/* Override any gcc2 internal prototype to avoid an error. */
24766#ifdef __cplusplus
24767extern "C"
24768#endif
24769/* We use char because int might match the return type of a gcc2
24770 builtin and then its argument prototype would still apply. */
24771char lt_dlopen ();
24772int
24773main ()
24774{
24775lt_dlopen ();
24776 ;
24777 return 0;
24778}
24779_ACEOF
24780rm -f conftest.$ac_objext conftest$ac_exeext
24781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24782 (eval $ac_link) 2>conftest.er1
24783 ac_status=$?
24784 grep -v '^ *+' conftest.er1 >conftest.err
24785 rm -f conftest.er1
24786 cat conftest.err >&5
24787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); } &&
24789 { ac_try='test -z "$ac_c_werror_flag"
24790 || test ! -s conftest.err'
24791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24792 (eval $ac_try) 2>&5
24793 ac_status=$?
24794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795 (exit $ac_status); }; } &&
24796 { ac_try='test -s conftest$ac_exeext'
24797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24798 (eval $ac_try) 2>&5
24799 ac_status=$?
24800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801 (exit $ac_status); }; }; then
24802 ac_cv_search_lt_dlopen="none required"
24803else
24804 echo "$as_me: failed program was:" >&5
24805sed 's/^/| /' conftest.$ac_ext >&5
24806
24807fi
24808rm -f conftest.err conftest.$ac_objext \
24809 conftest$ac_exeext conftest.$ac_ext
24810if test "$ac_cv_search_lt_dlopen" = no; then
24811 for ac_lib in ltdl; do
24812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24813 cat >conftest.$ac_ext <<_ACEOF
24814/* confdefs.h. */
24815_ACEOF
24816cat confdefs.h >>conftest.$ac_ext
24817cat >>conftest.$ac_ext <<_ACEOF
24818/* end confdefs.h. */
24819
24820/* Override any gcc2 internal prototype to avoid an error. */
24821#ifdef __cplusplus
24822extern "C"
24823#endif
24824/* We use char because int might match the return type of a gcc2
24825 builtin and then its argument prototype would still apply. */
24826char lt_dlopen ();
24827int
24828main ()
24829{
24830lt_dlopen ();
24831 ;
24832 return 0;
24833}
24834_ACEOF
24835rm -f conftest.$ac_objext conftest$ac_exeext
24836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24837 (eval $ac_link) 2>conftest.er1
24838 ac_status=$?
24839 grep -v '^ *+' conftest.er1 >conftest.err
24840 rm -f conftest.er1
24841 cat conftest.err >&5
24842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 (exit $ac_status); } &&
24844 { ac_try='test -z "$ac_c_werror_flag"
24845 || test ! -s conftest.err'
24846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24847 (eval $ac_try) 2>&5
24848 ac_status=$?
24849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24850 (exit $ac_status); }; } &&
24851 { ac_try='test -s conftest$ac_exeext'
24852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24853 (eval $ac_try) 2>&5
24854 ac_status=$?
24855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856 (exit $ac_status); }; }; then
24857 ac_cv_search_lt_dlopen="-l$ac_lib"
24858break
24859else
24860 echo "$as_me: failed program was:" >&5
24861sed 's/^/| /' conftest.$ac_ext >&5
24862
24863fi
24864rm -f conftest.err conftest.$ac_objext \
24865 conftest$ac_exeext conftest.$ac_ext
24866 done
24867fi
24868LIBS=$ac_func_search_save_LIBS
24869fi
24870echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24871echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24872if test "$ac_cv_search_lt_dlopen" != no; then
24873 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24874
24875cat >>confdefs.h <<\_ACEOF
24876#define HAVE_LT_DLOPEN 1
24877_ACEOF
24878
24879else
24880 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24881 not be available" >&5
24882echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24883 not be available" >&2;}
24884fi
24885
24886
John Criswell7a73b802003-06-30 21:59:07 +000024887echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24888echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24889if test "${ac_cv_search_dlopen+set}" = set; then
24890 echo $ECHO_N "(cached) $ECHO_C" >&6
24891else
24892 ac_func_search_save_LIBS=$LIBS
24893ac_cv_search_dlopen=no
24894cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024895/* confdefs.h. */
24896_ACEOF
24897cat confdefs.h >>conftest.$ac_ext
24898cat >>conftest.$ac_ext <<_ACEOF
24899/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024900
24901/* Override any gcc2 internal prototype to avoid an error. */
24902#ifdef __cplusplus
24903extern "C"
24904#endif
24905/* We use char because int might match the return type of a gcc2
24906 builtin and then its argument prototype would still apply. */
24907char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000024908int
24909main ()
24910{
24911dlopen ();
24912 ;
24913 return 0;
24914}
24915_ACEOF
24916rm -f conftest.$ac_objext conftest$ac_exeext
24917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024918 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024919 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024920 grep -v '^ *+' conftest.er1 >conftest.err
24921 rm -f conftest.er1
24922 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024925 { ac_try='test -z "$ac_c_werror_flag"
24926 || test ! -s conftest.err'
24927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24928 (eval $ac_try) 2>&5
24929 ac_status=$?
24930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931 (exit $ac_status); }; } &&
24932 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24934 (eval $ac_try) 2>&5
24935 ac_status=$?
24936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937 (exit $ac_status); }; }; then
24938 ac_cv_search_dlopen="none required"
24939else
24940 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024941sed 's/^/| /' conftest.$ac_ext >&5
24942
John Criswell7a73b802003-06-30 21:59:07 +000024943fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024944rm -f conftest.err conftest.$ac_objext \
24945 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024946if test "$ac_cv_search_dlopen" = no; then
24947 for ac_lib in dl; do
24948 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24949 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024950/* confdefs.h. */
24951_ACEOF
24952cat confdefs.h >>conftest.$ac_ext
24953cat >>conftest.$ac_ext <<_ACEOF
24954/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024955
24956/* Override any gcc2 internal prototype to avoid an error. */
24957#ifdef __cplusplus
24958extern "C"
24959#endif
24960/* We use char because int might match the return type of a gcc2
24961 builtin and then its argument prototype would still apply. */
24962char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000024963int
24964main ()
24965{
24966dlopen ();
24967 ;
24968 return 0;
24969}
24970_ACEOF
24971rm -f conftest.$ac_objext conftest$ac_exeext
24972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024973 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024974 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024975 grep -v '^ *+' conftest.er1 >conftest.err
24976 rm -f conftest.er1
24977 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024980 { ac_try='test -z "$ac_c_werror_flag"
24981 || test ! -s conftest.err'
24982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24983 (eval $ac_try) 2>&5
24984 ac_status=$?
24985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986 (exit $ac_status); }; } &&
24987 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24989 (eval $ac_try) 2>&5
24990 ac_status=$?
24991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992 (exit $ac_status); }; }; then
24993 ac_cv_search_dlopen="-l$ac_lib"
24994break
24995else
24996 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024997sed 's/^/| /' conftest.$ac_ext >&5
24998
John Criswell7a73b802003-06-30 21:59:07 +000024999fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025000rm -f conftest.err conftest.$ac_objext \
25001 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025002 done
25003fi
25004LIBS=$ac_func_search_save_LIBS
25005fi
25006echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25007echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25008if test "$ac_cv_search_dlopen" != no; then
25009 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025010
25011cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025012#define HAVE_DLOPEN 1
25013_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025014
25015else
Brian Gaekec45be042003-10-07 06:01:34 +000025016 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25017echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025018fi
25019
25020
25021echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25022echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25023if test "${ac_cv_search_mallinfo+set}" = set; then
25024 echo $ECHO_N "(cached) $ECHO_C" >&6
25025else
25026 ac_func_search_save_LIBS=$LIBS
25027ac_cv_search_mallinfo=no
25028cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025029/* confdefs.h. */
25030_ACEOF
25031cat confdefs.h >>conftest.$ac_ext
25032cat >>conftest.$ac_ext <<_ACEOF
25033/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025034
25035/* Override any gcc2 internal prototype to avoid an error. */
25036#ifdef __cplusplus
25037extern "C"
25038#endif
25039/* We use char because int might match the return type of a gcc2
25040 builtin and then its argument prototype would still apply. */
25041char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025042int
25043main ()
25044{
25045mallinfo ();
25046 ;
25047 return 0;
25048}
25049_ACEOF
25050rm -f conftest.$ac_objext conftest$ac_exeext
25051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025052 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025053 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025054 grep -v '^ *+' conftest.er1 >conftest.err
25055 rm -f conftest.er1
25056 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025059 { ac_try='test -z "$ac_c_werror_flag"
25060 || test ! -s conftest.err'
25061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25062 (eval $ac_try) 2>&5
25063 ac_status=$?
25064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065 (exit $ac_status); }; } &&
25066 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25068 (eval $ac_try) 2>&5
25069 ac_status=$?
25070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071 (exit $ac_status); }; }; then
25072 ac_cv_search_mallinfo="none required"
25073else
25074 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025075sed 's/^/| /' conftest.$ac_ext >&5
25076
John Criswell7a73b802003-06-30 21:59:07 +000025077fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025078rm -f conftest.err conftest.$ac_objext \
25079 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025080if test "$ac_cv_search_mallinfo" = no; then
25081 for ac_lib in malloc; do
25082 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25083 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025084/* confdefs.h. */
25085_ACEOF
25086cat confdefs.h >>conftest.$ac_ext
25087cat >>conftest.$ac_ext <<_ACEOF
25088/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025089
25090/* Override any gcc2 internal prototype to avoid an error. */
25091#ifdef __cplusplus
25092extern "C"
25093#endif
25094/* We use char because int might match the return type of a gcc2
25095 builtin and then its argument prototype would still apply. */
25096char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025097int
25098main ()
25099{
25100mallinfo ();
25101 ;
25102 return 0;
25103}
25104_ACEOF
25105rm -f conftest.$ac_objext conftest$ac_exeext
25106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025107 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025108 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025109 grep -v '^ *+' conftest.er1 >conftest.err
25110 rm -f conftest.er1
25111 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025114 { ac_try='test -z "$ac_c_werror_flag"
25115 || test ! -s conftest.err'
25116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25117 (eval $ac_try) 2>&5
25118 ac_status=$?
25119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25120 (exit $ac_status); }; } &&
25121 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25123 (eval $ac_try) 2>&5
25124 ac_status=$?
25125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126 (exit $ac_status); }; }; then
25127 ac_cv_search_mallinfo="-l$ac_lib"
25128break
25129else
25130 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025131sed 's/^/| /' conftest.$ac_ext >&5
25132
John Criswell7a73b802003-06-30 21:59:07 +000025133fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025134rm -f conftest.err conftest.$ac_objext \
25135 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025136 done
25137fi
25138LIBS=$ac_func_search_save_LIBS
25139fi
25140echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25141echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25142if test "$ac_cv_search_mallinfo" != no; then
25143 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025144
25145cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025146#define HAVE_MALLINFO 1
25147_ACEOF
25148
25149fi
25150
25151
Brian Gaeke5f268f72003-12-05 19:29:01 +000025152echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25153echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25154if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25155 echo $ECHO_N "(cached) $ECHO_C" >&6
25156else
25157 ac_func_search_save_LIBS=$LIBS
25158ac_cv_search_pthread_mutex_lock=no
25159cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025160/* confdefs.h. */
25161_ACEOF
25162cat confdefs.h >>conftest.$ac_ext
25163cat >>conftest.$ac_ext <<_ACEOF
25164/* end confdefs.h. */
25165
25166/* Override any gcc2 internal prototype to avoid an error. */
25167#ifdef __cplusplus
25168extern "C"
25169#endif
25170/* We use char because int might match the return type of a gcc2
25171 builtin and then its argument prototype would still apply. */
25172char pthread_mutex_lock ();
25173int
25174main ()
25175{
25176pthread_mutex_lock ();
25177 ;
25178 return 0;
25179}
25180_ACEOF
25181rm -f conftest.$ac_objext conftest$ac_exeext
25182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025183 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025184 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025185 grep -v '^ *+' conftest.er1 >conftest.err
25186 rm -f conftest.er1
25187 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025190 { ac_try='test -z "$ac_c_werror_flag"
25191 || test ! -s conftest.err'
25192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25193 (eval $ac_try) 2>&5
25194 ac_status=$?
25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); }; } &&
25197 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25199 (eval $ac_try) 2>&5
25200 ac_status=$?
25201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202 (exit $ac_status); }; }; then
25203 ac_cv_search_pthread_mutex_lock="none required"
25204else
25205 echo "$as_me: failed program was:" >&5
25206sed 's/^/| /' conftest.$ac_ext >&5
25207
25208fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025209rm -f conftest.err conftest.$ac_objext \
25210 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025211if test "$ac_cv_search_pthread_mutex_lock" = no; then
25212 for ac_lib in pthread; do
25213 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25214 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025215/* confdefs.h. */
25216_ACEOF
25217cat confdefs.h >>conftest.$ac_ext
25218cat >>conftest.$ac_ext <<_ACEOF
25219/* end confdefs.h. */
25220
25221/* Override any gcc2 internal prototype to avoid an error. */
25222#ifdef __cplusplus
25223extern "C"
25224#endif
25225/* We use char because int might match the return type of a gcc2
25226 builtin and then its argument prototype would still apply. */
25227char pthread_mutex_lock ();
25228int
25229main ()
25230{
25231pthread_mutex_lock ();
25232 ;
25233 return 0;
25234}
25235_ACEOF
25236rm -f conftest.$ac_objext conftest$ac_exeext
25237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025238 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025239 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025240 grep -v '^ *+' conftest.er1 >conftest.err
25241 rm -f conftest.er1
25242 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025245 { ac_try='test -z "$ac_c_werror_flag"
25246 || test ! -s conftest.err'
25247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25248 (eval $ac_try) 2>&5
25249 ac_status=$?
25250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251 (exit $ac_status); }; } &&
25252 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25254 (eval $ac_try) 2>&5
25255 ac_status=$?
25256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257 (exit $ac_status); }; }; then
25258 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25259break
25260else
25261 echo "$as_me: failed program was:" >&5
25262sed 's/^/| /' conftest.$ac_ext >&5
25263
25264fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025265rm -f conftest.err conftest.$ac_objext \
25266 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025267 done
25268fi
25269LIBS=$ac_func_search_save_LIBS
25270fi
25271echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25272echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25273if test "$ac_cv_search_pthread_mutex_lock" != no; then
25274 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025275
John Criswell40468462004-09-24 21:19:06 +000025276cat >>confdefs.h <<\_ACEOF
25277#define HAVE_PTHREAD_MUTEX_LOCK 1
25278_ACEOF
25279
25280fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025281
Brian Gaekec9a410c2004-02-23 21:30:37 +000025282
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025283
John Criswell7a73b802003-06-30 21:59:07 +000025284echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25285echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25286if test "${ac_cv_header_stdc+set}" = set; then
25287 echo $ECHO_N "(cached) $ECHO_C" >&6
25288else
25289 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025290/* confdefs.h. */
25291_ACEOF
25292cat confdefs.h >>conftest.$ac_ext
25293cat >>conftest.$ac_ext <<_ACEOF
25294/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025295#include <stdlib.h>
25296#include <stdarg.h>
25297#include <string.h>
25298#include <float.h>
25299
John Criswell0c38eaf2003-09-10 15:17:25 +000025300int
25301main ()
25302{
25303
25304 ;
25305 return 0;
25306}
John Criswell7a73b802003-06-30 21:59:07 +000025307_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025308rm -f conftest.$ac_objext
25309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025310 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025311 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025312 grep -v '^ *+' conftest.er1 >conftest.err
25313 rm -f conftest.er1
25314 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025316 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025317 { ac_try='test -z "$ac_c_werror_flag"
25318 || test ! -s conftest.err'
25319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25320 (eval $ac_try) 2>&5
25321 ac_status=$?
25322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323 (exit $ac_status); }; } &&
25324 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000025325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25326 (eval $ac_try) 2>&5
25327 ac_status=$?
25328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25329 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000025330 ac_cv_header_stdc=yes
25331else
25332 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025333sed 's/^/| /' conftest.$ac_ext >&5
25334
25335ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000025336fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025338
25339if test $ac_cv_header_stdc = yes; then
25340 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25341 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025342/* confdefs.h. */
25343_ACEOF
25344cat confdefs.h >>conftest.$ac_ext
25345cat >>conftest.$ac_ext <<_ACEOF
25346/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025347#include <string.h>
25348
25349_ACEOF
25350if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025351 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025352 :
25353else
25354 ac_cv_header_stdc=no
25355fi
25356rm -f conftest*
25357
25358fi
25359
25360if test $ac_cv_header_stdc = yes; then
25361 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25362 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025363/* confdefs.h. */
25364_ACEOF
25365cat confdefs.h >>conftest.$ac_ext
25366cat >>conftest.$ac_ext <<_ACEOF
25367/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025368#include <stdlib.h>
25369
25370_ACEOF
25371if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025372 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025373 :
25374else
25375 ac_cv_header_stdc=no
25376fi
25377rm -f conftest*
25378
25379fi
25380
25381if test $ac_cv_header_stdc = yes; then
25382 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25383 if test "$cross_compiling" = yes; then
25384 :
25385else
25386 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025387/* confdefs.h. */
25388_ACEOF
25389cat confdefs.h >>conftest.$ac_ext
25390cat >>conftest.$ac_ext <<_ACEOF
25391/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025392#include <ctype.h>
25393#if ((' ' & 0x0FF) == 0x020)
25394# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25395# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25396#else
John Criswell0c38eaf2003-09-10 15:17:25 +000025397# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025398 (('a' <= (c) && (c) <= 'i') \
25399 || ('j' <= (c) && (c) <= 'r') \
25400 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000025401# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25402#endif
25403
25404#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25405int
25406main ()
25407{
25408 int i;
25409 for (i = 0; i < 256; i++)
25410 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000025411 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000025412 exit(2);
25413 exit (0);
25414}
25415_ACEOF
25416rm -f conftest$ac_exeext
25417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25418 (eval $ac_link) 2>&5
25419 ac_status=$?
25420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25423 (eval $ac_try) 2>&5
25424 ac_status=$?
25425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426 (exit $ac_status); }; }; then
25427 :
25428else
25429 echo "$as_me: program exited with status $ac_status" >&5
25430echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025431sed 's/^/| /' conftest.$ac_ext >&5
25432
John Criswell7a73b802003-06-30 21:59:07 +000025433( exit $ac_status )
25434ac_cv_header_stdc=no
25435fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025436rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025437fi
25438fi
25439fi
25440echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25441echo "${ECHO_T}$ac_cv_header_stdc" >&6
25442if test $ac_cv_header_stdc = yes; then
25443
25444cat >>confdefs.h <<\_ACEOF
25445#define STDC_HEADERS 1
25446_ACEOF
25447
25448fi
25449
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025450
John Criswell7a73b802003-06-30 21:59:07 +000025451echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25452echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25453if test "${ac_cv_header_sys_wait_h+set}" = set; then
25454 echo $ECHO_N "(cached) $ECHO_C" >&6
25455else
25456 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025457/* confdefs.h. */
25458_ACEOF
25459cat confdefs.h >>conftest.$ac_ext
25460cat >>conftest.$ac_ext <<_ACEOF
25461/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025462#include <sys/types.h>
25463#include <sys/wait.h>
25464#ifndef WEXITSTATUS
25465# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25466#endif
25467#ifndef WIFEXITED
25468# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25469#endif
25470
John Criswell7a73b802003-06-30 21:59:07 +000025471int
25472main ()
25473{
25474 int s;
25475 wait (&s);
25476 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25477 ;
25478 return 0;
25479}
25480_ACEOF
25481rm -f conftest.$ac_objext
25482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025483 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025484 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025485 grep -v '^ *+' conftest.er1 >conftest.err
25486 rm -f conftest.er1
25487 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025490 { ac_try='test -z "$ac_c_werror_flag"
25491 || test ! -s conftest.err'
25492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25493 (eval $ac_try) 2>&5
25494 ac_status=$?
25495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496 (exit $ac_status); }; } &&
25497 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000025498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25499 (eval $ac_try) 2>&5
25500 ac_status=$?
25501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502 (exit $ac_status); }; }; then
25503 ac_cv_header_sys_wait_h=yes
25504else
25505 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025506sed 's/^/| /' conftest.$ac_ext >&5
25507
John Criswell7a73b802003-06-30 21:59:07 +000025508ac_cv_header_sys_wait_h=no
25509fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025511fi
25512echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25513echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
25514if test $ac_cv_header_sys_wait_h = yes; then
25515
25516cat >>confdefs.h <<\_ACEOF
25517#define HAVE_SYS_WAIT_H 1
25518_ACEOF
25519
25520fi
25521
25522
25523
25524
25525
25526
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025527for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h
John Criswell7a73b802003-06-30 21:59:07 +000025528do
25529as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25530if eval "test \"\${$as_ac_Header+set}\" = set"; then
25531 echo "$as_me:$LINENO: checking for $ac_header" >&5
25532echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25533if eval "test \"\${$as_ac_Header+set}\" = set"; then
25534 echo $ECHO_N "(cached) $ECHO_C" >&6
25535fi
25536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25537echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25538else
25539 # Is the header compilable?
25540echo "$as_me:$LINENO: checking $ac_header usability" >&5
25541echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25542cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025543/* confdefs.h. */
25544_ACEOF
25545cat confdefs.h >>conftest.$ac_ext
25546cat >>conftest.$ac_ext <<_ACEOF
25547/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025548$ac_includes_default
25549#include <$ac_header>
25550_ACEOF
25551rm -f conftest.$ac_objext
25552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025553 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025554 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025555 grep -v '^ *+' conftest.er1 >conftest.err
25556 rm -f conftest.er1
25557 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25559 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025560 { ac_try='test -z "$ac_c_werror_flag"
25561 || test ! -s conftest.err'
25562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25563 (eval $ac_try) 2>&5
25564 ac_status=$?
25565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566 (exit $ac_status); }; } &&
25567 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000025568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25569 (eval $ac_try) 2>&5
25570 ac_status=$?
25571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572 (exit $ac_status); }; }; then
25573 ac_header_compiler=yes
25574else
25575 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025576sed 's/^/| /' conftest.$ac_ext >&5
25577
John Criswell7a73b802003-06-30 21:59:07 +000025578ac_header_compiler=no
25579fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025581echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25582echo "${ECHO_T}$ac_header_compiler" >&6
25583
25584# Is the header present?
25585echo "$as_me:$LINENO: checking $ac_header presence" >&5
25586echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25587cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025588/* confdefs.h. */
25589_ACEOF
25590cat confdefs.h >>conftest.$ac_ext
25591cat >>conftest.$ac_ext <<_ACEOF
25592/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025593#include <$ac_header>
25594_ACEOF
25595if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25597 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000025598 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000025599 rm -f conftest.er1
25600 cat conftest.err >&5
25601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602 (exit $ac_status); } >/dev/null; then
25603 if test -s conftest.err; then
25604 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000025605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000025606 else
25607 ac_cpp_err=
25608 fi
25609else
25610 ac_cpp_err=yes
25611fi
25612if test -z "$ac_cpp_err"; then
25613 ac_header_preproc=yes
25614else
25615 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025616sed 's/^/| /' conftest.$ac_ext >&5
25617
John Criswell7a73b802003-06-30 21:59:07 +000025618 ac_header_preproc=no
25619fi
25620rm -f conftest.err conftest.$ac_ext
25621echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25622echo "${ECHO_T}$ac_header_preproc" >&6
25623
25624# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25626 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000025627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25628echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25630echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25631 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000025632 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000025633 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000025634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25635echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25637echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25639echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25641echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000025642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25643echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25645echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000025646 (
25647 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000025648## ----------------------------------- ##
25649## Report this to llvmbugs@cs.uiuc.edu ##
25650## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000025651_ASBOX
25652 ) |
25653 sed "s/^/$as_me: WARNING: /" >&2
25654 ;;
John Criswell7a73b802003-06-30 21:59:07 +000025655esac
25656echo "$as_me:$LINENO: checking for $ac_header" >&5
25657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25658if eval "test \"\${$as_ac_Header+set}\" = set"; then
25659 echo $ECHO_N "(cached) $ECHO_C" >&6
25660else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025661 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000025662fi
25663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25664echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25665
25666fi
25667if test `eval echo '${'$as_ac_Header'}'` = yes; then
25668 cat >>confdefs.h <<_ACEOF
25669#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25670_ACEOF
25671
25672fi
25673
25674done
25675
25676
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025677
25678
25679
25680
Reid Spencer2bc7bd52004-11-29 12:29:58 +000025681for ac_header in dlfcn.h execinfo.h fcntl.h limits.h link.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025682do
25683as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25684if eval "test \"\${$as_ac_Header+set}\" = set"; then
25685 echo "$as_me:$LINENO: checking for $ac_header" >&5
25686echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25687if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025688 echo $ECHO_N "(cached) $ECHO_C" >&6
25689fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025690echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25691echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025692else
25693 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025694echo "$as_me:$LINENO: checking $ac_header usability" >&5
25695echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025696cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025697/* confdefs.h. */
25698_ACEOF
25699cat confdefs.h >>conftest.$ac_ext
25700cat >>conftest.$ac_ext <<_ACEOF
25701/* end confdefs.h. */
25702$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025703#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025704_ACEOF
25705rm -f conftest.$ac_objext
25706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025707 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025708 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025709 grep -v '^ *+' conftest.er1 >conftest.err
25710 rm -f conftest.er1
25711 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025714 { ac_try='test -z "$ac_c_werror_flag"
25715 || test ! -s conftest.err'
25716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25717 (eval $ac_try) 2>&5
25718 ac_status=$?
25719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720 (exit $ac_status); }; } &&
25721 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25723 (eval $ac_try) 2>&5
25724 ac_status=$?
25725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726 (exit $ac_status); }; }; then
25727 ac_header_compiler=yes
25728else
25729 echo "$as_me: failed program was:" >&5
25730sed 's/^/| /' conftest.$ac_ext >&5
25731
25732ac_header_compiler=no
25733fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025735echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25736echo "${ECHO_T}$ac_header_compiler" >&6
25737
25738# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025739echo "$as_me:$LINENO: checking $ac_header presence" >&5
25740echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025741cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025742/* confdefs.h. */
25743_ACEOF
25744cat confdefs.h >>conftest.$ac_ext
25745cat >>conftest.$ac_ext <<_ACEOF
25746/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025747#include <$ac_header>
25748_ACEOF
25749if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25751 ac_status=$?
25752 grep -v '^ *+' conftest.er1 >conftest.err
25753 rm -f conftest.er1
25754 cat conftest.err >&5
25755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25756 (exit $ac_status); } >/dev/null; then
25757 if test -s conftest.err; then
25758 ac_cpp_err=$ac_c_preproc_warn_flag
25759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25760 else
25761 ac_cpp_err=
25762 fi
25763else
25764 ac_cpp_err=yes
25765fi
25766if test -z "$ac_cpp_err"; then
25767 ac_header_preproc=yes
25768else
25769 echo "$as_me: failed program was:" >&5
25770sed 's/^/| /' conftest.$ac_ext >&5
25771
25772 ac_header_preproc=no
25773fi
25774rm -f conftest.err conftest.$ac_ext
25775echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25776echo "${ECHO_T}$ac_header_preproc" >&6
25777
25778# So? What about this header?
25779case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25780 yes:no: )
25781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25782echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25784echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25785 ac_header_preproc=yes
25786 ;;
25787 no:yes:* )
25788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25789echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25791echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25792 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25793echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25794 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25795echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25797echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25798 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25799echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25800 (
25801 cat <<\_ASBOX
25802## ----------------------------------- ##
25803## Report this to llvmbugs@cs.uiuc.edu ##
25804## ----------------------------------- ##
25805_ASBOX
25806 ) |
25807 sed "s/^/$as_me: WARNING: /" >&2
25808 ;;
25809esac
25810echo "$as_me:$LINENO: checking for $ac_header" >&5
25811echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25812if eval "test \"\${$as_ac_Header+set}\" = set"; then
25813 echo $ECHO_N "(cached) $ECHO_C" >&6
25814else
25815 eval "$as_ac_Header=\$ac_header_preproc"
25816fi
25817echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25818echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25819
25820fi
25821if test `eval echo '${'$as_ac_Header'}'` = yes; then
25822 cat >>confdefs.h <<_ACEOF
25823#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25824_ACEOF
25825
25826fi
25827
25828done
25829
25830
25831
25832
Reid Spencer2bc7bd52004-11-29 12:29:58 +000025833for ac_header in malloc.h unistd.h windows.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025834do
25835as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25836if eval "test \"\${$as_ac_Header+set}\" = set"; then
25837 echo "$as_me:$LINENO: checking for $ac_header" >&5
25838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25839if eval "test \"\${$as_ac_Header+set}\" = set"; then
25840 echo $ECHO_N "(cached) $ECHO_C" >&6
25841fi
25842echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25843echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25844else
25845 # Is the header compilable?
25846echo "$as_me:$LINENO: checking $ac_header usability" >&5
25847echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25848cat >conftest.$ac_ext <<_ACEOF
25849/* confdefs.h. */
25850_ACEOF
25851cat confdefs.h >>conftest.$ac_ext
25852cat >>conftest.$ac_ext <<_ACEOF
25853/* end confdefs.h. */
25854$ac_includes_default
25855#include <$ac_header>
25856_ACEOF
25857rm -f conftest.$ac_objext
25858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25859 (eval $ac_compile) 2>conftest.er1
25860 ac_status=$?
25861 grep -v '^ *+' conftest.er1 >conftest.err
25862 rm -f conftest.er1
25863 cat conftest.err >&5
25864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865 (exit $ac_status); } &&
25866 { ac_try='test -z "$ac_c_werror_flag"
25867 || test ! -s conftest.err'
25868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25869 (eval $ac_try) 2>&5
25870 ac_status=$?
25871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872 (exit $ac_status); }; } &&
25873 { ac_try='test -s conftest.$ac_objext'
25874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25875 (eval $ac_try) 2>&5
25876 ac_status=$?
25877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878 (exit $ac_status); }; }; then
25879 ac_header_compiler=yes
25880else
25881 echo "$as_me: failed program was:" >&5
25882sed 's/^/| /' conftest.$ac_ext >&5
25883
25884ac_header_compiler=no
25885fi
25886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25887echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25888echo "${ECHO_T}$ac_header_compiler" >&6
25889
25890# Is the header present?
25891echo "$as_me:$LINENO: checking $ac_header presence" >&5
25892echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25893cat >conftest.$ac_ext <<_ACEOF
25894/* confdefs.h. */
25895_ACEOF
25896cat confdefs.h >>conftest.$ac_ext
25897cat >>conftest.$ac_ext <<_ACEOF
25898/* end confdefs.h. */
25899#include <$ac_header>
25900_ACEOF
25901if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25903 ac_status=$?
25904 grep -v '^ *+' conftest.er1 >conftest.err
25905 rm -f conftest.er1
25906 cat conftest.err >&5
25907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25908 (exit $ac_status); } >/dev/null; then
25909 if test -s conftest.err; then
25910 ac_cpp_err=$ac_c_preproc_warn_flag
25911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25912 else
25913 ac_cpp_err=
25914 fi
25915else
25916 ac_cpp_err=yes
25917fi
25918if test -z "$ac_cpp_err"; then
25919 ac_header_preproc=yes
25920else
25921 echo "$as_me: failed program was:" >&5
25922sed 's/^/| /' conftest.$ac_ext >&5
25923
25924 ac_header_preproc=no
25925fi
25926rm -f conftest.err conftest.$ac_ext
25927echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25928echo "${ECHO_T}$ac_header_preproc" >&6
25929
25930# So? What about this header?
25931case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25932 yes:no: )
25933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25934echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25936echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25937 ac_header_preproc=yes
25938 ;;
25939 no:yes:* )
25940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25941echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25943echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25945echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25947echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25949echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25951echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25952 (
25953 cat <<\_ASBOX
25954## ----------------------------------- ##
25955## Report this to llvmbugs@cs.uiuc.edu ##
25956## ----------------------------------- ##
25957_ASBOX
25958 ) |
25959 sed "s/^/$as_me: WARNING: /" >&2
25960 ;;
25961esac
25962echo "$as_me:$LINENO: checking for $ac_header" >&5
25963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25964if eval "test \"\${$as_ac_Header+set}\" = set"; then
25965 echo $ECHO_N "(cached) $ECHO_C" >&6
25966else
25967 eval "$as_ac_Header=\$ac_header_preproc"
25968fi
25969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25970echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25971
25972fi
25973if test `eval echo '${'$as_ac_Header'}'` = yes; then
25974 cat >>confdefs.h <<_ACEOF
25975#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25976_ACEOF
25977
25978fi
25979
25980done
25981
25982echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25983echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
25984if test "${ac_cv_header_time+set}" = set; then
25985 echo $ECHO_N "(cached) $ECHO_C" >&6
25986else
25987 cat >conftest.$ac_ext <<_ACEOF
25988/* confdefs.h. */
25989_ACEOF
25990cat confdefs.h >>conftest.$ac_ext
25991cat >>conftest.$ac_ext <<_ACEOF
25992/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025993#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025994#include <sys/time.h>
25995#include <time.h>
25996
25997int
25998main ()
25999{
26000if ((struct tm *) 0)
26001return 0;
26002 ;
26003 return 0;
26004}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026005_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026006rm -f conftest.$ac_objext
26007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26008 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026009 ac_status=$?
26010 grep -v '^ *+' conftest.er1 >conftest.err
26011 rm -f conftest.er1
26012 cat conftest.err >&5
26013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026014 (exit $ac_status); } &&
26015 { ac_try='test -z "$ac_c_werror_flag"
26016 || test ! -s conftest.err'
26017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26018 (eval $ac_try) 2>&5
26019 ac_status=$?
26020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021 (exit $ac_status); }; } &&
26022 { ac_try='test -s conftest.$ac_objext'
26023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26024 (eval $ac_try) 2>&5
26025 ac_status=$?
26026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027 (exit $ac_status); }; }; then
26028 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026029else
26030 echo "$as_me: failed program was:" >&5
26031sed 's/^/| /' conftest.$ac_ext >&5
26032
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026033ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026034fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26036fi
26037echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26038echo "${ECHO_T}$ac_cv_header_time" >&6
26039if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026040
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026041cat >>confdefs.h <<\_ACEOF
26042#define TIME_WITH_SYS_TIME 1
26043_ACEOF
26044
26045fi
26046
26047echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26048echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26049if test "${ac_cv_header_mmap_anon+set}" = set; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026050 echo $ECHO_N "(cached) $ECHO_C" >&6
26051else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026052 ac_ext=c
26053ac_cpp='$CPP $CPPFLAGS'
26054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26056ac_compiler_gnu=$ac_cv_c_compiler_gnu
26057
26058 cat >conftest.$ac_ext <<_ACEOF
26059/* confdefs.h. */
26060_ACEOF
26061cat confdefs.h >>conftest.$ac_ext
26062cat >>conftest.$ac_ext <<_ACEOF
26063/* end confdefs.h. */
26064#include <sys/mman.h>
26065#include <unistd.h>
26066#include <fcntl.h>
26067int
26068main ()
26069{
26070mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26071 ;
26072 return 0;
26073}
26074_ACEOF
26075rm -f conftest.$ac_objext
26076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26077 (eval $ac_compile) 2>conftest.er1
26078 ac_status=$?
26079 grep -v '^ *+' conftest.er1 >conftest.err
26080 rm -f conftest.er1
26081 cat conftest.err >&5
26082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083 (exit $ac_status); } &&
26084 { ac_try='test -z "$ac_c_werror_flag"
26085 || test ! -s conftest.err'
26086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26087 (eval $ac_try) 2>&5
26088 ac_status=$?
26089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090 (exit $ac_status); }; } &&
26091 { ac_try='test -s conftest.$ac_objext'
26092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26093 (eval $ac_try) 2>&5
26094 ac_status=$?
26095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26096 (exit $ac_status); }; }; then
26097 ac_cv_header_mmap_anon=yes
26098else
26099 echo "$as_me: failed program was:" >&5
26100sed 's/^/| /' conftest.$ac_ext >&5
26101
26102ac_cv_header_mmap_anon=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026103fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26105 ac_ext=c
26106ac_cpp='$CPP $CPPFLAGS'
26107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26109ac_compiler_gnu=$ac_cv_c_compiler_gnu
26110
26111
26112fi
26113echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26114echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26115if test "$ac_cv_header_mmap_anon" = yes; then
26116
26117cat >>confdefs.h <<\_ACEOF
26118#define HAVE_MMAP_ANONYMOUS
26119_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026120
26121fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026122
26123
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026124
26125
26126for ac_header in inttypes.h stdint.h
26127do
26128as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26129if eval "test \"\${$as_ac_Header+set}\" = set"; then
26130 echo "$as_me:$LINENO: checking for $ac_header" >&5
26131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26132if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026133 echo $ECHO_N "(cached) $ECHO_C" >&6
26134fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026135echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26136echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026137else
26138 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026139echo "$as_me:$LINENO: checking $ac_header usability" >&5
26140echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026141cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026142/* confdefs.h. */
26143_ACEOF
26144cat confdefs.h >>conftest.$ac_ext
26145cat >>conftest.$ac_ext <<_ACEOF
26146/* end confdefs.h. */
26147$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026148#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026149_ACEOF
26150rm -f conftest.$ac_objext
26151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026152 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026153 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026154 grep -v '^ *+' conftest.er1 >conftest.err
26155 rm -f conftest.er1
26156 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26158 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026159 { ac_try='test -z "$ac_c_werror_flag"
26160 || test ! -s conftest.err'
26161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26162 (eval $ac_try) 2>&5
26163 ac_status=$?
26164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26165 (exit $ac_status); }; } &&
26166 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26168 (eval $ac_try) 2>&5
26169 ac_status=$?
26170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171 (exit $ac_status); }; }; then
26172 ac_header_compiler=yes
26173else
26174 echo "$as_me: failed program was:" >&5
26175sed 's/^/| /' conftest.$ac_ext >&5
26176
26177ac_header_compiler=no
26178fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026180echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26181echo "${ECHO_T}$ac_header_compiler" >&6
26182
26183# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026184echo "$as_me:$LINENO: checking $ac_header presence" >&5
26185echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026186cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026187/* confdefs.h. */
26188_ACEOF
26189cat confdefs.h >>conftest.$ac_ext
26190cat >>conftest.$ac_ext <<_ACEOF
26191/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026192#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026193_ACEOF
26194if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26196 ac_status=$?
26197 grep -v '^ *+' conftest.er1 >conftest.err
26198 rm -f conftest.er1
26199 cat conftest.err >&5
26200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201 (exit $ac_status); } >/dev/null; then
26202 if test -s conftest.err; then
26203 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026205 else
26206 ac_cpp_err=
26207 fi
26208else
26209 ac_cpp_err=yes
26210fi
26211if test -z "$ac_cpp_err"; then
26212 ac_header_preproc=yes
26213else
26214 echo "$as_me: failed program was:" >&5
26215sed 's/^/| /' conftest.$ac_ext >&5
26216
26217 ac_header_preproc=no
26218fi
26219rm -f conftest.err conftest.$ac_ext
26220echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26221echo "${ECHO_T}$ac_header_preproc" >&6
26222
26223# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026224case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26225 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026226 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26227echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26229echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026230 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026231 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026232 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026233 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26234echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26235 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26236echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26237 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26238echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26239 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26240echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26242echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26243 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26244echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026245 (
26246 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026247## ----------------------------------- ##
26248## Report this to llvmbugs@cs.uiuc.edu ##
26249## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026250_ASBOX
26251 ) |
26252 sed "s/^/$as_me: WARNING: /" >&2
26253 ;;
26254esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026255echo "$as_me:$LINENO: checking for $ac_header" >&5
26256echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26257if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026258 echo $ECHO_N "(cached) $ECHO_C" >&6
26259else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026260 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026261fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026262echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26263echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026264
26265fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026266if test `eval echo '${'$as_ac_Header'}'` = yes; then
26267 cat >>confdefs.h <<_ACEOF
26268#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026269_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026270
26271fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026272
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026273done
26274
John Criswell7ed43ad2004-07-19 16:12:29 +000026275
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026276
John Criswell7a73b802003-06-30 21:59:07 +000026277echo "$as_me:$LINENO: checking for pid_t" >&5
26278echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26279if test "${ac_cv_type_pid_t+set}" = set; then
26280 echo $ECHO_N "(cached) $ECHO_C" >&6
26281else
26282 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026283/* confdefs.h. */
26284_ACEOF
26285cat confdefs.h >>conftest.$ac_ext
26286cat >>conftest.$ac_ext <<_ACEOF
26287/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026288$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026289int
26290main ()
26291{
26292if ((pid_t *) 0)
26293 return 0;
26294if (sizeof (pid_t))
26295 return 0;
26296 ;
26297 return 0;
26298}
26299_ACEOF
26300rm -f conftest.$ac_objext
26301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026302 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026303 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026304 grep -v '^ *+' conftest.er1 >conftest.err
26305 rm -f conftest.er1
26306 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26308 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026309 { ac_try='test -z "$ac_c_werror_flag"
26310 || test ! -s conftest.err'
26311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26312 (eval $ac_try) 2>&5
26313 ac_status=$?
26314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315 (exit $ac_status); }; } &&
26316 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26318 (eval $ac_try) 2>&5
26319 ac_status=$?
26320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321 (exit $ac_status); }; }; then
26322 ac_cv_type_pid_t=yes
26323else
26324 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026325sed 's/^/| /' conftest.$ac_ext >&5
26326
John Criswell7a73b802003-06-30 21:59:07 +000026327ac_cv_type_pid_t=no
26328fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026330fi
26331echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26332echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26333if test $ac_cv_type_pid_t = yes; then
26334 :
26335else
26336
26337cat >>confdefs.h <<_ACEOF
26338#define pid_t int
26339_ACEOF
26340
26341fi
26342
26343echo "$as_me:$LINENO: checking for size_t" >&5
26344echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26345if test "${ac_cv_type_size_t+set}" = set; then
26346 echo $ECHO_N "(cached) $ECHO_C" >&6
26347else
26348 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026349/* confdefs.h. */
26350_ACEOF
26351cat confdefs.h >>conftest.$ac_ext
26352cat >>conftest.$ac_ext <<_ACEOF
26353/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026354$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026355int
26356main ()
26357{
26358if ((size_t *) 0)
26359 return 0;
26360if (sizeof (size_t))
26361 return 0;
26362 ;
26363 return 0;
26364}
26365_ACEOF
26366rm -f conftest.$ac_objext
26367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026368 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026369 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026370 grep -v '^ *+' conftest.er1 >conftest.err
26371 rm -f conftest.er1
26372 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26374 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026375 { ac_try='test -z "$ac_c_werror_flag"
26376 || test ! -s conftest.err'
26377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26378 (eval $ac_try) 2>&5
26379 ac_status=$?
26380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381 (exit $ac_status); }; } &&
26382 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26384 (eval $ac_try) 2>&5
26385 ac_status=$?
26386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26387 (exit $ac_status); }; }; then
26388 ac_cv_type_size_t=yes
26389else
26390 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026391sed 's/^/| /' conftest.$ac_ext >&5
26392
John Criswell7a73b802003-06-30 21:59:07 +000026393ac_cv_type_size_t=no
26394fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026396fi
26397echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26398echo "${ECHO_T}$ac_cv_type_size_t" >&6
26399if test $ac_cv_type_size_t = yes; then
26400 :
26401else
26402
26403cat >>confdefs.h <<_ACEOF
26404#define size_t unsigned
26405_ACEOF
26406
26407fi
26408
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026409echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26410echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26411if test "${ac_cv_type_signal+set}" = set; then
26412 echo $ECHO_N "(cached) $ECHO_C" >&6
26413else
26414 cat >conftest.$ac_ext <<_ACEOF
26415/* confdefs.h. */
26416_ACEOF
26417cat confdefs.h >>conftest.$ac_ext
26418cat >>conftest.$ac_ext <<_ACEOF
26419/* end confdefs.h. */
26420#include <sys/types.h>
26421#include <signal.h>
26422#ifdef signal
26423# undef signal
26424#endif
26425#ifdef __cplusplus
26426extern "C" void (*signal (int, void (*)(int)))(int);
26427#else
26428void (*signal ()) ();
26429#endif
26430
26431int
26432main ()
26433{
26434int i;
26435 ;
26436 return 0;
26437}
26438_ACEOF
26439rm -f conftest.$ac_objext
26440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26441 (eval $ac_compile) 2>conftest.er1
26442 ac_status=$?
26443 grep -v '^ *+' conftest.er1 >conftest.err
26444 rm -f conftest.er1
26445 cat conftest.err >&5
26446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447 (exit $ac_status); } &&
26448 { ac_try='test -z "$ac_c_werror_flag"
26449 || test ! -s conftest.err'
26450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26451 (eval $ac_try) 2>&5
26452 ac_status=$?
26453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454 (exit $ac_status); }; } &&
26455 { ac_try='test -s conftest.$ac_objext'
26456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26457 (eval $ac_try) 2>&5
26458 ac_status=$?
26459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26460 (exit $ac_status); }; }; then
26461 ac_cv_type_signal=void
26462else
26463 echo "$as_me: failed program was:" >&5
26464sed 's/^/| /' conftest.$ac_ext >&5
26465
26466ac_cv_type_signal=int
26467fi
26468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26469fi
26470echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26471echo "${ECHO_T}$ac_cv_type_signal" >&6
26472
26473cat >>confdefs.h <<_ACEOF
26474#define RETSIGTYPE $ac_cv_type_signal
26475_ACEOF
26476
26477
26478echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26479echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26480if test "${ac_cv_struct_tm+set}" = set; then
26481 echo $ECHO_N "(cached) $ECHO_C" >&6
26482else
26483 cat >conftest.$ac_ext <<_ACEOF
26484/* confdefs.h. */
26485_ACEOF
26486cat confdefs.h >>conftest.$ac_ext
26487cat >>conftest.$ac_ext <<_ACEOF
26488/* end confdefs.h. */
26489#include <sys/types.h>
26490#include <time.h>
26491
26492int
26493main ()
26494{
26495struct tm *tp; tp->tm_sec;
26496 ;
26497 return 0;
26498}
26499_ACEOF
26500rm -f conftest.$ac_objext
26501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26502 (eval $ac_compile) 2>conftest.er1
26503 ac_status=$?
26504 grep -v '^ *+' conftest.er1 >conftest.err
26505 rm -f conftest.er1
26506 cat conftest.err >&5
26507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508 (exit $ac_status); } &&
26509 { ac_try='test -z "$ac_c_werror_flag"
26510 || test ! -s conftest.err'
26511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26512 (eval $ac_try) 2>&5
26513 ac_status=$?
26514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515 (exit $ac_status); }; } &&
26516 { ac_try='test -s conftest.$ac_objext'
26517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26518 (eval $ac_try) 2>&5
26519 ac_status=$?
26520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521 (exit $ac_status); }; }; then
26522 ac_cv_struct_tm=time.h
26523else
26524 echo "$as_me: failed program was:" >&5
26525sed 's/^/| /' conftest.$ac_ext >&5
26526
26527ac_cv_struct_tm=sys/time.h
26528fi
26529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26530fi
26531echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26532echo "${ECHO_T}$ac_cv_struct_tm" >&6
26533if test $ac_cv_struct_tm = sys/time.h; then
26534
26535cat >>confdefs.h <<\_ACEOF
26536#define TM_IN_SYS_TIME 1
26537_ACEOF
26538
26539fi
26540
John Criswell7a73b802003-06-30 21:59:07 +000026541echo "$as_me:$LINENO: checking for int64_t" >&5
26542echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26543if test "${ac_cv_type_int64_t+set}" = set; then
26544 echo $ECHO_N "(cached) $ECHO_C" >&6
26545else
26546 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026547/* confdefs.h. */
26548_ACEOF
26549cat confdefs.h >>conftest.$ac_ext
26550cat >>conftest.$ac_ext <<_ACEOF
26551/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026552$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026553int
26554main ()
26555{
26556if ((int64_t *) 0)
26557 return 0;
26558if (sizeof (int64_t))
26559 return 0;
26560 ;
26561 return 0;
26562}
26563_ACEOF
26564rm -f conftest.$ac_objext
26565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026566 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026567 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026568 grep -v '^ *+' conftest.er1 >conftest.err
26569 rm -f conftest.er1
26570 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026573 { ac_try='test -z "$ac_c_werror_flag"
26574 || test ! -s conftest.err'
26575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26576 (eval $ac_try) 2>&5
26577 ac_status=$?
26578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26579 (exit $ac_status); }; } &&
26580 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26582 (eval $ac_try) 2>&5
26583 ac_status=$?
26584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585 (exit $ac_status); }; }; then
26586 ac_cv_type_int64_t=yes
26587else
26588 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026589sed 's/^/| /' conftest.$ac_ext >&5
26590
John Criswell7a73b802003-06-30 21:59:07 +000026591ac_cv_type_int64_t=no
26592fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026594fi
26595echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26596echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26597if test $ac_cv_type_int64_t = yes; then
26598
26599cat >>confdefs.h <<_ACEOF
26600#define HAVE_INT64_T 1
26601_ACEOF
26602
26603
26604else
26605 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26606echo "$as_me: error: Type int64_t required but not found" >&2;}
26607 { (exit 1); exit 1; }; }
26608fi
26609
26610echo "$as_me:$LINENO: checking for uint64_t" >&5
26611echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26612if test "${ac_cv_type_uint64_t+set}" = set; then
26613 echo $ECHO_N "(cached) $ECHO_C" >&6
26614else
26615 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026616/* confdefs.h. */
26617_ACEOF
26618cat confdefs.h >>conftest.$ac_ext
26619cat >>conftest.$ac_ext <<_ACEOF
26620/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026621$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026622int
26623main ()
26624{
26625if ((uint64_t *) 0)
26626 return 0;
26627if (sizeof (uint64_t))
26628 return 0;
26629 ;
26630 return 0;
26631}
26632_ACEOF
26633rm -f conftest.$ac_objext
26634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026635 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026636 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026637 grep -v '^ *+' conftest.er1 >conftest.err
26638 rm -f conftest.er1
26639 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026642 { ac_try='test -z "$ac_c_werror_flag"
26643 || test ! -s conftest.err'
26644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26645 (eval $ac_try) 2>&5
26646 ac_status=$?
26647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26648 (exit $ac_status); }; } &&
26649 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26651 (eval $ac_try) 2>&5
26652 ac_status=$?
26653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654 (exit $ac_status); }; }; then
26655 ac_cv_type_uint64_t=yes
26656else
26657 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026658sed 's/^/| /' conftest.$ac_ext >&5
26659
John Criswell7a73b802003-06-30 21:59:07 +000026660ac_cv_type_uint64_t=no
26661fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026663fi
26664echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26665echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26666if test $ac_cv_type_uint64_t = yes; then
26667
26668cat >>confdefs.h <<_ACEOF
26669#define HAVE_UINT64_T 1
26670_ACEOF
26671
26672
26673else
Misha Brukmanceca9042004-09-02 23:02:30 +000026674 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000026675echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26676if test "${ac_cv_type_u_int64_t+set}" = set; then
26677 echo $ECHO_N "(cached) $ECHO_C" >&6
26678else
26679 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000026680/* confdefs.h. */
26681_ACEOF
26682cat confdefs.h >>conftest.$ac_ext
26683cat >>conftest.$ac_ext <<_ACEOF
26684/* end confdefs.h. */
26685$ac_includes_default
26686int
26687main ()
26688{
26689if ((u_int64_t *) 0)
26690 return 0;
26691if (sizeof (u_int64_t))
26692 return 0;
26693 ;
26694 return 0;
26695}
26696_ACEOF
26697rm -f conftest.$ac_objext
26698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026699 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000026700 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026701 grep -v '^ *+' conftest.er1 >conftest.err
26702 rm -f conftest.er1
26703 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000026704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26705 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026706 { ac_try='test -z "$ac_c_werror_flag"
26707 || test ! -s conftest.err'
26708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26709 (eval $ac_try) 2>&5
26710 ac_status=$?
26711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712 (exit $ac_status); }; } &&
26713 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000026714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26715 (eval $ac_try) 2>&5
26716 ac_status=$?
26717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26718 (exit $ac_status); }; }; then
26719 ac_cv_type_u_int64_t=yes
26720else
26721 echo "$as_me: failed program was:" >&5
26722sed 's/^/| /' conftest.$ac_ext >&5
26723
26724ac_cv_type_u_int64_t=no
26725fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000026727fi
26728echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
26729echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
26730if test $ac_cv_type_u_int64_t = yes; then
26731
26732cat >>confdefs.h <<_ACEOF
26733#define HAVE_U_INT64_T 1
26734_ACEOF
26735
26736
Misha Brukmanceca9042004-09-02 23:02:30 +000026737else
26738 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
26739echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
26740 { (exit 1); exit 1; }; }
26741fi
26742
John Criswell679ff312004-09-02 18:44:44 +000026743fi
26744
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026745
26746
26747
26748
26749
26750
26751
26752
Reid Spencerab5eaea2004-12-20 00:59:04 +000026753for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
26754do
26755as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26756echo "$as_me:$LINENO: checking for $ac_func" >&5
26757echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26758if eval "test \"\${$as_ac_var+set}\" = set"; then
26759 echo $ECHO_N "(cached) $ECHO_C" >&6
26760else
26761 cat >conftest.$ac_ext <<_ACEOF
26762/* confdefs.h. */
26763_ACEOF
26764cat confdefs.h >>conftest.$ac_ext
26765cat >>conftest.$ac_ext <<_ACEOF
26766/* end confdefs.h. */
26767/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26769#define $ac_func innocuous_$ac_func
Reid Spencerf9960f72004-12-15 01:41:56 +000026770
Reid Spencerab5eaea2004-12-20 00:59:04 +000026771/* System header to define __stub macros and hopefully few prototypes,
26772 which can conflict with char $ac_func (); below.
26773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26774 <limits.h> exists even on freestanding compilers. */
26775
26776#ifdef __STDC__
26777# include <limits.h>
26778#else
26779# include <assert.h>
26780#endif
26781
26782#undef $ac_func
26783
26784/* Override any gcc2 internal prototype to avoid an error. */
26785#ifdef __cplusplus
26786extern "C"
26787{
26788#endif
26789/* We use char because int might match the return type of a gcc2
26790 builtin and then its argument prototype would still apply. */
26791char $ac_func ();
26792/* The GNU C library defines this for functions which it implements
26793 to always fail with ENOSYS. Some functions are actually named
26794 something starting with __ and the normal name is an alias. */
26795#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26796choke me
26797#else
26798char (*f) () = $ac_func;
26799#endif
26800#ifdef __cplusplus
26801}
26802#endif
26803
26804int
26805main ()
26806{
26807return f != $ac_func;
26808 ;
26809 return 0;
26810}
26811_ACEOF
26812rm -f conftest.$ac_objext conftest$ac_exeext
26813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26814 (eval $ac_link) 2>conftest.er1
26815 ac_status=$?
26816 grep -v '^ *+' conftest.er1 >conftest.err
26817 rm -f conftest.er1
26818 cat conftest.err >&5
26819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820 (exit $ac_status); } &&
26821 { ac_try='test -z "$ac_c_werror_flag"
26822 || test ! -s conftest.err'
26823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26824 (eval $ac_try) 2>&5
26825 ac_status=$?
26826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827 (exit $ac_status); }; } &&
26828 { ac_try='test -s conftest$ac_exeext'
26829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26830 (eval $ac_try) 2>&5
26831 ac_status=$?
26832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833 (exit $ac_status); }; }; then
26834 eval "$as_ac_var=yes"
26835else
26836 echo "$as_me: failed program was:" >&5
26837sed 's/^/| /' conftest.$ac_ext >&5
26838
26839eval "$as_ac_var=no"
26840fi
26841rm -f conftest.err conftest.$ac_objext \
26842 conftest$ac_exeext conftest.$ac_ext
26843fi
26844echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26845echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26846if test `eval echo '${'$as_ac_var'}'` = yes; then
26847 cat >>confdefs.h <<_ACEOF
26848#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26849_ACEOF
26850
26851fi
26852done
26853
26854
26855
26856
26857for ac_func in mkdtemp mkstemp mktemp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026858do
26859as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26860echo "$as_me:$LINENO: checking for $ac_func" >&5
26861echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26862if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000026863 echo $ECHO_N "(cached) $ECHO_C" >&6
26864else
26865 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026866/* confdefs.h. */
26867_ACEOF
26868cat confdefs.h >>conftest.$ac_ext
26869cat >>conftest.$ac_ext <<_ACEOF
26870/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026871/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26873#define $ac_func innocuous_$ac_func
26874
26875/* System header to define __stub macros and hopefully few prototypes,
26876 which can conflict with char $ac_func (); below.
26877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26878 <limits.h> exists even on freestanding compilers. */
26879
26880#ifdef __STDC__
26881# include <limits.h>
26882#else
26883# include <assert.h>
26884#endif
26885
26886#undef $ac_func
26887
26888/* Override any gcc2 internal prototype to avoid an error. */
26889#ifdef __cplusplus
26890extern "C"
26891{
26892#endif
26893/* We use char because int might match the return type of a gcc2
26894 builtin and then its argument prototype would still apply. */
26895char $ac_func ();
26896/* The GNU C library defines this for functions which it implements
26897 to always fail with ENOSYS. Some functions are actually named
26898 something starting with __ and the normal name is an alias. */
26899#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26900choke me
26901#else
26902char (*f) () = $ac_func;
26903#endif
26904#ifdef __cplusplus
26905}
26906#endif
John Criswell7a73b802003-06-30 21:59:07 +000026907
John Criswell7a73b802003-06-30 21:59:07 +000026908int
26909main ()
26910{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026911return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000026912 ;
26913 return 0;
26914}
26915_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026916rm -f conftest.$ac_objext conftest$ac_exeext
26917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26918 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026919 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026920 grep -v '^ *+' conftest.er1 >conftest.err
26921 rm -f conftest.er1
26922 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026925 { ac_try='test -z "$ac_c_werror_flag"
26926 || test ! -s conftest.err'
26927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26928 (eval $ac_try) 2>&5
26929 ac_status=$?
26930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026932 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000026933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26934 (eval $ac_try) 2>&5
26935 ac_status=$?
26936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026938 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000026939else
26940 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026941sed 's/^/| /' conftest.$ac_ext >&5
26942
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026943eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000026944fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026945rm -f conftest.err conftest.$ac_objext \
26946 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026947fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26949echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26950if test `eval echo '${'$as_ac_var'}'` = yes; then
26951 cat >>confdefs.h <<_ACEOF
26952#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000026953_ACEOF
26954
26955fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026956done
John Criswell7a73b802003-06-30 21:59:07 +000026957
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026958
26959
26960
Reid Spencer6af3d262004-12-15 04:01:48 +000026961
26962
Reid Spencerab5eaea2004-12-20 00:59:04 +000026963for ac_func in realpath strdup strtoq strtoll sysconf
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026964do
26965as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26966echo "$as_me:$LINENO: checking for $ac_func" >&5
26967echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26968if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000026969 echo $ECHO_N "(cached) $ECHO_C" >&6
26970else
26971 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026972/* confdefs.h. */
26973_ACEOF
26974cat confdefs.h >>conftest.$ac_ext
26975cat >>conftest.$ac_ext <<_ACEOF
26976/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026977/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26979#define $ac_func innocuous_$ac_func
26980
26981/* System header to define __stub macros and hopefully few prototypes,
26982 which can conflict with char $ac_func (); below.
26983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26984 <limits.h> exists even on freestanding compilers. */
26985
26986#ifdef __STDC__
26987# include <limits.h>
26988#else
26989# include <assert.h>
26990#endif
26991
26992#undef $ac_func
26993
26994/* Override any gcc2 internal prototype to avoid an error. */
26995#ifdef __cplusplus
26996extern "C"
26997{
26998#endif
26999/* We use char because int might match the return type of a gcc2
27000 builtin and then its argument prototype would still apply. */
27001char $ac_func ();
27002/* The GNU C library defines this for functions which it implements
27003 to always fail with ENOSYS. Some functions are actually named
27004 something starting with __ and the normal name is an alias. */
27005#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27006choke me
27007#else
27008char (*f) () = $ac_func;
27009#endif
27010#ifdef __cplusplus
27011}
27012#endif
John Criswell7a73b802003-06-30 21:59:07 +000027013
John Criswell7a73b802003-06-30 21:59:07 +000027014int
27015main ()
27016{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027017return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027018 ;
27019 return 0;
27020}
27021_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027022rm -f conftest.$ac_objext conftest$ac_exeext
27023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27024 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027025 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027026 grep -v '^ *+' conftest.er1 >conftest.err
27027 rm -f conftest.er1
27028 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027031 { ac_try='test -z "$ac_c_werror_flag"
27032 || test ! -s conftest.err'
27033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27034 (eval $ac_try) 2>&5
27035 ac_status=$?
27036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027038 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27040 (eval $ac_try) 2>&5
27041 ac_status=$?
27042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027044 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027045else
27046 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027047sed 's/^/| /' conftest.$ac_ext >&5
27048
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027049eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027050fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027051rm -f conftest.err conftest.$ac_objext \
27052 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027053fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27055echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27056if test `eval echo '${'$as_ac_var'}'` = yes; then
27057 cat >>confdefs.h <<_ACEOF
27058#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027059_ACEOF
27060
27061fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027062done
John Criswell7a73b802003-06-30 21:59:07 +000027063
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027064echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27065echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000027066if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027067 echo $ECHO_N "(cached) $ECHO_C" >&6
27068else
Reid Spencer2706f8c2004-09-19 23:53:36 +000027069 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027070ac_cpp='$CPP $CPPFLAGS'
27071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27073ac_compiler_gnu=$ac_cv_c_compiler_gnu
27074
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027075 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027076 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027077else
27078 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000027079
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027080 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000027081_ACEOF
27082cat confdefs.h >>conftest.$ac_ext
27083cat >>conftest.$ac_ext <<_ACEOF
27084/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000027085
John Criswella0137d32003-10-13 16:22:01 +000027086#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000027087#include <stdlib.h>
27088
John Criswella0137d32003-10-13 16:22:01 +000027089int
27090main ()
27091{
27092
Reid Spencer2706f8c2004-09-19 23:53:36 +000027093volatile double A, B;
27094char Buffer[100];
27095A = 1;
27096A /= 10.0;
27097sprintf(Buffer, "%a", A);
27098B = atof(Buffer);
27099if (A != B)
27100 return (1);
27101if (A != 0x1.999999999999ap-4)
27102 return (1);
27103return (0);
John Criswella0137d32003-10-13 16:22:01 +000027104 ;
27105 return 0;
27106}
27107_ACEOF
27108rm -f conftest$ac_exeext
27109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27110 (eval $ac_link) 2>&5
27111 ac_status=$?
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27115 (eval $ac_try) 2>&5
27116 ac_status=$?
27117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027119 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000027120else
27121 echo "$as_me: program exited with status $ac_status" >&5
27122echo "$as_me: failed program was:" >&5
27123sed 's/^/| /' conftest.$ac_ext >&5
27124
27125( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000027126llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027127fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027128rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000027129fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027130 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027131ac_cpp='$CPP $CPPFLAGS'
27132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27134ac_compiler_gnu=$ac_cv_c_compiler_gnu
27135
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027136fi
Reid Spencer3be58f92004-11-27 22:01:43 +000027137echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27138echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27139 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000027140
27141cat >>confdefs.h <<\_ACEOF
27142#define HAVE_PRINTF_A 1
27143_ACEOF
27144
Reid Spencer2706f8c2004-09-19 23:53:36 +000027145 fi
John Criswella0137d32003-10-13 16:22:01 +000027146
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027147# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27148# for constant arguments. Useless!
27149echo "$as_me:$LINENO: checking for working alloca.h" >&5
27150echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27151if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000027152 echo $ECHO_N "(cached) $ECHO_C" >&6
27153else
John Criswell0021c312004-02-13 21:57:29 +000027154 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000027155/* confdefs.h. */
27156_ACEOF
27157cat confdefs.h >>conftest.$ac_ext
27158cat >>conftest.$ac_ext <<_ACEOF
27159/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027160#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000027161int
27162main ()
27163{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027164char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000027165 ;
27166 return 0;
27167}
27168_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027169rm -f conftest.$ac_objext conftest$ac_exeext
27170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27171 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000027172 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027173 grep -v '^ *+' conftest.er1 >conftest.err
27174 rm -f conftest.er1
27175 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000027176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027178 { ac_try='test -z "$ac_c_werror_flag"
27179 || test ! -s conftest.err'
27180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27181 (eval $ac_try) 2>&5
27182 ac_status=$?
27183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027185 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000027186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27187 (eval $ac_try) 2>&5
27188 ac_status=$?
27189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27190 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027191 ac_cv_working_alloca_h=yes
27192else
27193 echo "$as_me: failed program was:" >&5
27194sed 's/^/| /' conftest.$ac_ext >&5
27195
27196ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000027197fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027198rm -f conftest.err conftest.$ac_objext \
27199 conftest$ac_exeext conftest.$ac_ext
27200fi
27201echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27202echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27203if test $ac_cv_working_alloca_h = yes; then
27204
27205cat >>confdefs.h <<\_ACEOF
27206#define HAVE_ALLOCA_H 1
27207_ACEOF
27208
27209fi
27210
27211echo "$as_me:$LINENO: checking for alloca" >&5
27212echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27213if test "${ac_cv_func_alloca_works+set}" = set; then
27214 echo $ECHO_N "(cached) $ECHO_C" >&6
27215else
27216 cat >conftest.$ac_ext <<_ACEOF
27217/* confdefs.h. */
27218_ACEOF
27219cat confdefs.h >>conftest.$ac_ext
27220cat >>conftest.$ac_ext <<_ACEOF
27221/* end confdefs.h. */
27222#ifdef __GNUC__
27223# define alloca __builtin_alloca
27224#else
27225# ifdef _MSC_VER
27226# include <malloc.h>
27227# define alloca _alloca
27228# else
27229# if HAVE_ALLOCA_H
27230# include <alloca.h>
27231# else
27232# ifdef _AIX
27233 #pragma alloca
27234# else
27235# ifndef alloca /* predefined by HP cc +Olibcalls */
27236char *alloca ();
27237# endif
27238# endif
27239# endif
27240# endif
27241#endif
27242
27243int
27244main ()
27245{
27246char *p = (char *) alloca (1);
27247 ;
27248 return 0;
27249}
27250_ACEOF
27251rm -f conftest.$ac_objext conftest$ac_exeext
27252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27253 (eval $ac_link) 2>conftest.er1
27254 ac_status=$?
27255 grep -v '^ *+' conftest.er1 >conftest.err
27256 rm -f conftest.er1
27257 cat conftest.err >&5
27258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27259 (exit $ac_status); } &&
27260 { ac_try='test -z "$ac_c_werror_flag"
27261 || test ! -s conftest.err'
27262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27263 (eval $ac_try) 2>&5
27264 ac_status=$?
27265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); }; } &&
27267 { ac_try='test -s conftest$ac_exeext'
27268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27269 (eval $ac_try) 2>&5
27270 ac_status=$?
27271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272 (exit $ac_status); }; }; then
27273 ac_cv_func_alloca_works=yes
27274else
27275 echo "$as_me: failed program was:" >&5
27276sed 's/^/| /' conftest.$ac_ext >&5
27277
27278ac_cv_func_alloca_works=no
27279fi
27280rm -f conftest.err conftest.$ac_objext \
27281 conftest$ac_exeext conftest.$ac_ext
27282fi
27283echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27284echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27285
27286if test $ac_cv_func_alloca_works = yes; then
27287
27288cat >>confdefs.h <<\_ACEOF
27289#define HAVE_ALLOCA 1
27290_ACEOF
27291
27292else
27293 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27294# that cause trouble. Some versions do not even contain alloca or
27295# contain a buggy version. If you still want to use their alloca,
27296# use ar to extract alloca.o from them instead of compiling alloca.c.
27297
27298ALLOCA=alloca.$ac_objext
27299
27300cat >>confdefs.h <<\_ACEOF
27301#define C_ALLOCA 1
27302_ACEOF
27303
27304
27305echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27306echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27307if test "${ac_cv_os_cray+set}" = set; then
27308 echo $ECHO_N "(cached) $ECHO_C" >&6
27309else
27310 cat >conftest.$ac_ext <<_ACEOF
27311/* confdefs.h. */
27312_ACEOF
27313cat confdefs.h >>conftest.$ac_ext
27314cat >>conftest.$ac_ext <<_ACEOF
27315/* end confdefs.h. */
27316#if defined(CRAY) && ! defined(CRAY2)
27317webecray
27318#else
27319wenotbecray
27320#endif
27321
27322_ACEOF
27323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27324 $EGREP "webecray" >/dev/null 2>&1; then
27325 ac_cv_os_cray=yes
27326else
27327 ac_cv_os_cray=no
27328fi
27329rm -f conftest*
27330
27331fi
27332echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27333echo "${ECHO_T}$ac_cv_os_cray" >&6
27334if test $ac_cv_os_cray = yes; then
27335 for ac_func in _getb67 GETB67 getb67; do
27336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27337echo "$as_me:$LINENO: checking for $ac_func" >&5
27338echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27339if eval "test \"\${$as_ac_var+set}\" = set"; then
27340 echo $ECHO_N "(cached) $ECHO_C" >&6
27341else
27342 cat >conftest.$ac_ext <<_ACEOF
27343/* confdefs.h. */
27344_ACEOF
27345cat confdefs.h >>conftest.$ac_ext
27346cat >>conftest.$ac_ext <<_ACEOF
27347/* end confdefs.h. */
27348/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27350#define $ac_func innocuous_$ac_func
27351
27352/* System header to define __stub macros and hopefully few prototypes,
27353 which can conflict with char $ac_func (); below.
27354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27355 <limits.h> exists even on freestanding compilers. */
27356
27357#ifdef __STDC__
27358# include <limits.h>
27359#else
27360# include <assert.h>
27361#endif
27362
27363#undef $ac_func
27364
27365/* Override any gcc2 internal prototype to avoid an error. */
27366#ifdef __cplusplus
27367extern "C"
27368{
27369#endif
27370/* We use char because int might match the return type of a gcc2
27371 builtin and then its argument prototype would still apply. */
27372char $ac_func ();
27373/* The GNU C library defines this for functions which it implements
27374 to always fail with ENOSYS. Some functions are actually named
27375 something starting with __ and the normal name is an alias. */
27376#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27377choke me
27378#else
27379char (*f) () = $ac_func;
27380#endif
27381#ifdef __cplusplus
27382}
27383#endif
27384
27385int
27386main ()
27387{
27388return f != $ac_func;
27389 ;
27390 return 0;
27391}
27392_ACEOF
27393rm -f conftest.$ac_objext conftest$ac_exeext
27394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27395 (eval $ac_link) 2>conftest.er1
27396 ac_status=$?
27397 grep -v '^ *+' conftest.er1 >conftest.err
27398 rm -f conftest.er1
27399 cat conftest.err >&5
27400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401 (exit $ac_status); } &&
27402 { ac_try='test -z "$ac_c_werror_flag"
27403 || test ! -s conftest.err'
27404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405 (eval $ac_try) 2>&5
27406 ac_status=$?
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); }; } &&
27409 { ac_try='test -s conftest$ac_exeext'
27410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27411 (eval $ac_try) 2>&5
27412 ac_status=$?
27413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414 (exit $ac_status); }; }; then
27415 eval "$as_ac_var=yes"
27416else
27417 echo "$as_me: failed program was:" >&5
27418sed 's/^/| /' conftest.$ac_ext >&5
27419
27420eval "$as_ac_var=no"
27421fi
27422rm -f conftest.err conftest.$ac_objext \
27423 conftest$ac_exeext conftest.$ac_ext
27424fi
27425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27426echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27427if test `eval echo '${'$as_ac_var'}'` = yes; then
27428
27429cat >>confdefs.h <<_ACEOF
27430#define CRAY_STACKSEG_END $ac_func
27431_ACEOF
27432
27433 break
27434fi
27435
27436 done
27437fi
27438
27439echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27440echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27441if test "${ac_cv_c_stack_direction+set}" = set; then
27442 echo $ECHO_N "(cached) $ECHO_C" >&6
27443else
27444 if test "$cross_compiling" = yes; then
27445 ac_cv_c_stack_direction=0
27446else
27447 cat >conftest.$ac_ext <<_ACEOF
27448/* confdefs.h. */
27449_ACEOF
27450cat confdefs.h >>conftest.$ac_ext
27451cat >>conftest.$ac_ext <<_ACEOF
27452/* end confdefs.h. */
27453int
27454find_stack_direction ()
27455{
27456 static char *addr = 0;
27457 auto char dummy;
27458 if (addr == 0)
27459 {
27460 addr = &dummy;
27461 return find_stack_direction ();
27462 }
John Criswell0021c312004-02-13 21:57:29 +000027463 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027464 return (&dummy > addr) ? 1 : -1;
27465}
John Criswell0021c312004-02-13 21:57:29 +000027466
John Criswell0021c312004-02-13 21:57:29 +000027467int
27468main ()
27469{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027470 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000027471}
27472_ACEOF
27473rm -f conftest$ac_exeext
27474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27475 (eval $ac_link) 2>&5
27476 ac_status=$?
27477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27480 (eval $ac_try) 2>&5
27481 ac_status=$?
27482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027484 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000027485else
27486 echo "$as_me: program exited with status $ac_status" >&5
27487echo "$as_me: failed program was:" >&5
27488sed 's/^/| /' conftest.$ac_ext >&5
27489
27490( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027491ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000027492fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027493rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000027494fi
27495fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027496echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27497echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27498
27499cat >>confdefs.h <<_ACEOF
27500#define STACK_DIRECTION $ac_cv_c_stack_direction
27501_ACEOF
27502
27503
John Criswell0021c312004-02-13 21:57:29 +000027504fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027505
27506
27507echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27508echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27509if test "${ac_cv_func_rand48+set}" = set; then
27510 echo $ECHO_N "(cached) $ECHO_C" >&6
27511else
27512 ac_ext=cc
27513ac_cpp='$CXXCPP $CPPFLAGS'
27514ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27515ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27516ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27517
27518 cat >conftest.$ac_ext <<_ACEOF
27519/* confdefs.h. */
27520_ACEOF
27521cat confdefs.h >>conftest.$ac_ext
27522cat >>conftest.$ac_ext <<_ACEOF
27523/* end confdefs.h. */
27524#include <stdlib.h>
27525int
27526main ()
27527{
27528srand48(0);lrand48();drand48();
27529 ;
27530 return 0;
27531}
27532_ACEOF
27533rm -f conftest.$ac_objext
27534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27535 (eval $ac_compile) 2>conftest.er1
27536 ac_status=$?
27537 grep -v '^ *+' conftest.er1 >conftest.err
27538 rm -f conftest.er1
27539 cat conftest.err >&5
27540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541 (exit $ac_status); } &&
27542 { ac_try='test -z "$ac_cxx_werror_flag"
27543 || test ! -s conftest.err'
27544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27545 (eval $ac_try) 2>&5
27546 ac_status=$?
27547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27548 (exit $ac_status); }; } &&
27549 { ac_try='test -s conftest.$ac_objext'
27550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27551 (eval $ac_try) 2>&5
27552 ac_status=$?
27553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554 (exit $ac_status); }; }; then
27555 ac_cv_func_rand48=yes
27556else
27557 echo "$as_me: failed program was:" >&5
27558sed 's/^/| /' conftest.$ac_ext >&5
27559
27560ac_cv_func_rand48=no
27561fi
27562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27563 ac_ext=c
27564ac_cpp='$CPP $CPPFLAGS'
27565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27567ac_compiler_gnu=$ac_cv_c_compiler_gnu
27568
27569fi
27570echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27571echo "${ECHO_T}$ac_cv_func_rand48" >&6
27572
27573if test "$ac_cv_func_rand48" = "yes" ; then
27574
27575cat >>confdefs.h <<\_ACEOF
27576#define HAVE_RAND48 1
27577_ACEOF
27578
27579fi
John Criswell0021c312004-02-13 21:57:29 +000027580
27581
John Criswell7a73b802003-06-30 21:59:07 +000027582echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27583echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27584if test "${ac_cv_cxx_namespaces+set}" = set; then
27585 echo $ECHO_N "(cached) $ECHO_C" >&6
27586else
Reid Spencer2706f8c2004-09-19 23:53:36 +000027587 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000027588ac_cpp='$CXXCPP $CPPFLAGS'
27589ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27590ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27591ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27592
27593 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027594/* confdefs.h. */
27595_ACEOF
27596cat confdefs.h >>conftest.$ac_ext
27597cat >>conftest.$ac_ext <<_ACEOF
27598/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027599namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000027600int
27601main ()
27602{
27603using namespace Outer::Inner; return i;
27604 ;
27605 return 0;
27606}
27607_ACEOF
27608rm -f conftest.$ac_objext
27609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027610 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027611 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027612 grep -v '^ *+' conftest.er1 >conftest.err
27613 rm -f conftest.er1
27614 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027617 { ac_try='test -z "$ac_cxx_werror_flag"
27618 || test ! -s conftest.err'
27619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27620 (eval $ac_try) 2>&5
27621 ac_status=$?
27622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623 (exit $ac_status); }; } &&
27624 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27626 (eval $ac_try) 2>&5
27627 ac_status=$?
27628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27629 (exit $ac_status); }; }; then
27630 ac_cv_cxx_namespaces=yes
27631else
27632 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027633sed 's/^/| /' conftest.$ac_ext >&5
27634
John Criswell7a73b802003-06-30 21:59:07 +000027635ac_cv_cxx_namespaces=no
27636fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027638 ac_ext=c
27639ac_cpp='$CPP $CPPFLAGS'
27640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27642ac_compiler_gnu=$ac_cv_c_compiler_gnu
27643
27644
27645fi
27646echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
27647echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
27648if test "$ac_cv_cxx_namespaces" = yes; then
27649
27650cat >>confdefs.h <<\_ACEOF
27651#define HAVE_NAMESPACES
27652_ACEOF
27653
27654fi
27655
Brian Gaeke90583492003-11-10 03:06:28 +000027656echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
27657echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
27658if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000027659 echo $ECHO_N "(cached) $ECHO_C" >&6
27660else
27661
John Criswell7a73b802003-06-30 21:59:07 +000027662 ac_ext=cc
27663ac_cpp='$CXXCPP $CPPFLAGS'
27664ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27665ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27666ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27667
27668 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027669/* confdefs.h. */
27670_ACEOF
27671cat confdefs.h >>conftest.$ac_ext
27672cat >>conftest.$ac_ext <<_ACEOF
27673/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027674#include <ext/hash_map>
27675#ifdef HAVE_NAMESPACES
27676using namespace std;
27677#endif
John Criswell7a73b802003-06-30 21:59:07 +000027678int
27679main ()
27680{
Brian Gaeke90583492003-11-10 03:06:28 +000027681hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000027682 ;
27683 return 0;
27684}
27685_ACEOF
27686rm -f conftest.$ac_objext
27687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027688 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027689 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027690 grep -v '^ *+' conftest.er1 >conftest.err
27691 rm -f conftest.er1
27692 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027695 { ac_try='test -z "$ac_cxx_werror_flag"
27696 || test ! -s conftest.err'
27697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27698 (eval $ac_try) 2>&5
27699 ac_status=$?
27700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701 (exit $ac_status); }; } &&
27702 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27704 (eval $ac_try) 2>&5
27705 ac_status=$?
27706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27707 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000027708 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000027709else
27710 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027711sed 's/^/| /' conftest.$ac_ext >&5
27712
Brian Gaeke90583492003-11-10 03:06:28 +000027713ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000027714fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027716 ac_ext=c
27717ac_cpp='$CPP $CPPFLAGS'
27718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27720ac_compiler_gnu=$ac_cv_c_compiler_gnu
27721
John Criswell7a73b802003-06-30 21:59:07 +000027722fi
Brian Gaeke90583492003-11-10 03:06:28 +000027723echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
27724echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027725 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
27726 then
John Criswell9f011862004-09-24 18:28:00 +000027727
27728cat >>confdefs.h <<\_ACEOF
27729#define HAVE_STD_EXT_HASH_MAP 1
27730_ACEOF
27731
27732 else
27733
27734cat >>confdefs.h <<\_ACEOF
27735#define HAVE_STD_EXT_HASH_MAP 0
27736_ACEOF
27737
Brian Gaeke90583492003-11-10 03:06:28 +000027738 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027739
Brian Gaeke90583492003-11-10 03:06:28 +000027740 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
27741echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
27742if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
27743 echo $ECHO_N "(cached) $ECHO_C" >&6
27744else
27745
Brian Gaeke90583492003-11-10 03:06:28 +000027746 ac_ext=cc
27747ac_cpp='$CXXCPP $CPPFLAGS'
27748ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27749ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27750ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27751
27752 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000027753/* confdefs.h. */
27754_ACEOF
27755cat confdefs.h >>conftest.$ac_ext
27756cat >>conftest.$ac_ext <<_ACEOF
27757/* end confdefs.h. */
27758#include <ext/hash_map>
27759#ifdef HAVE_NAMESPACES
27760using namespace __gnu_cxx;
27761#endif
27762int
27763main ()
27764{
27765hash_map<int,int> t;
27766 ;
27767 return 0;
27768}
27769_ACEOF
27770rm -f conftest.$ac_objext
27771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027772 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000027773 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027774 grep -v '^ *+' conftest.er1 >conftest.err
27775 rm -f conftest.er1
27776 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000027777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027779 { ac_try='test -z "$ac_cxx_werror_flag"
27780 || test ! -s conftest.err'
27781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27782 (eval $ac_try) 2>&5
27783 ac_status=$?
27784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27785 (exit $ac_status); }; } &&
27786 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000027787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27788 (eval $ac_try) 2>&5
27789 ac_status=$?
27790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791 (exit $ac_status); }; }; then
27792 ac_cv_cxx_have_gnu_ext_hash_map=yes
27793else
27794 echo "$as_me: failed program was:" >&5
27795sed 's/^/| /' conftest.$ac_ext >&5
27796
27797ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000027798fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027800 ac_ext=c
27801ac_cpp='$CPP $CPPFLAGS'
27802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27804ac_compiler_gnu=$ac_cv_c_compiler_gnu
27805
27806fi
27807echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
27808echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027809 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
27810 then
John Criswell9f011862004-09-24 18:28:00 +000027811
27812cat >>confdefs.h <<\_ACEOF
27813#define HAVE_GNU_EXT_HASH_MAP 1
27814_ACEOF
27815
27816 else
27817
27818cat >>confdefs.h <<\_ACEOF
27819#define HAVE_GNU_EXT_HASH_MAP 0
27820_ACEOF
27821
Brian Gaeke90583492003-11-10 03:06:28 +000027822 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027823
Brian Gaeke90583492003-11-10 03:06:28 +000027824 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
27825echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
27826if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
27827 echo $ECHO_N "(cached) $ECHO_C" >&6
27828else
John Criswell7a73b802003-06-30 21:59:07 +000027829
Brian Gaeke90583492003-11-10 03:06:28 +000027830 ac_ext=cc
27831ac_cpp='$CXXCPP $CPPFLAGS'
27832ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27833ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27834ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27835
27836 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000027837/* confdefs.h. */
27838_ACEOF
27839cat confdefs.h >>conftest.$ac_ext
27840cat >>conftest.$ac_ext <<_ACEOF
27841/* end confdefs.h. */
27842#include <hash_map>
27843int
27844main ()
27845{
27846hash_map<int,int> t;
27847 ;
27848 return 0;
27849}
27850_ACEOF
27851rm -f conftest.$ac_objext
27852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027853 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000027854 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027855 grep -v '^ *+' conftest.er1 >conftest.err
27856 rm -f conftest.er1
27857 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000027858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027860 { ac_try='test -z "$ac_cxx_werror_flag"
27861 || test ! -s conftest.err'
27862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27863 (eval $ac_try) 2>&5
27864 ac_status=$?
27865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866 (exit $ac_status); }; } &&
27867 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000027868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27869 (eval $ac_try) 2>&5
27870 ac_status=$?
27871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27872 (exit $ac_status); }; }; then
27873 ac_cv_cxx_have_global_hash_map=yes
27874else
27875 echo "$as_me: failed program was:" >&5
27876sed 's/^/| /' conftest.$ac_ext >&5
27877
27878ac_cv_cxx_have_global_hash_map=no
27879fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027881 ac_ext=c
27882ac_cpp='$CPP $CPPFLAGS'
27883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27885ac_compiler_gnu=$ac_cv_c_compiler_gnu
27886
27887fi
27888echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
27889echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027890 if test "$ac_cv_cxx_have_global_hash_map" = yes
27891 then
John Criswell9f011862004-09-24 18:28:00 +000027892
27893cat >>confdefs.h <<\_ACEOF
27894#define HAVE_GLOBAL_HASH_MAP 1
27895_ACEOF
27896
27897 else
27898
27899cat >>confdefs.h <<\_ACEOF
27900#define HAVE_GLOBAL_HASH_MAP 0
27901_ACEOF
27902
Brian Gaeke90583492003-11-10 03:06:28 +000027903 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027904
Brian Gaeke90583492003-11-10 03:06:28 +000027905echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
27906echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
27907if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000027908 echo $ECHO_N "(cached) $ECHO_C" >&6
27909else
27910
John Criswell7a73b802003-06-30 21:59:07 +000027911 ac_ext=cc
27912ac_cpp='$CXXCPP $CPPFLAGS'
27913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27916
27917 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027918/* confdefs.h. */
27919_ACEOF
27920cat confdefs.h >>conftest.$ac_ext
27921cat >>conftest.$ac_ext <<_ACEOF
27922/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027923#include <ext/hash_set>
27924#ifdef HAVE_NAMESPACES
27925using namespace std;
27926#endif
John Criswell7a73b802003-06-30 21:59:07 +000027927int
27928main ()
27929{
Brian Gaeke90583492003-11-10 03:06:28 +000027930hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000027931 ;
27932 return 0;
27933}
27934_ACEOF
27935rm -f conftest.$ac_objext
27936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027937 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027938 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027939 grep -v '^ *+' conftest.er1 >conftest.err
27940 rm -f conftest.er1
27941 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27943 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027944 { ac_try='test -z "$ac_cxx_werror_flag"
27945 || test ! -s conftest.err'
27946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27947 (eval $ac_try) 2>&5
27948 ac_status=$?
27949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950 (exit $ac_status); }; } &&
27951 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27953 (eval $ac_try) 2>&5
27954 ac_status=$?
27955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000027957 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000027958else
27959 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027960sed 's/^/| /' conftest.$ac_ext >&5
27961
Brian Gaeke90583492003-11-10 03:06:28 +000027962ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000027963fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027965 ac_ext=c
27966ac_cpp='$CPP $CPPFLAGS'
27967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27969ac_compiler_gnu=$ac_cv_c_compiler_gnu
27970
27971fi
27972echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
27973echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027974 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
27975 then
John Criswell9f011862004-09-24 18:28:00 +000027976
27977cat >>confdefs.h <<\_ACEOF
27978#define HAVE_STD_EXT_HASH_SET 1
27979_ACEOF
27980
27981 else
27982
27983cat >>confdefs.h <<\_ACEOF
27984#define HAVE_STD_EXT_HASH_SET 0
27985_ACEOF
27986
Brian Gaeke90583492003-11-10 03:06:28 +000027987 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027988
Brian Gaeke90583492003-11-10 03:06:28 +000027989 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
27990echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
27991if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
27992 echo $ECHO_N "(cached) $ECHO_C" >&6
27993else
27994
Brian Gaeke90583492003-11-10 03:06:28 +000027995 ac_ext=cc
27996ac_cpp='$CXXCPP $CPPFLAGS'
27997ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27998ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27999ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28000
John Criswell7a73b802003-06-30 21:59:07 +000028001 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028002/* confdefs.h. */
28003_ACEOF
28004cat confdefs.h >>conftest.$ac_ext
28005cat >>conftest.$ac_ext <<_ACEOF
28006/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028007#include <ext/hash_set>
28008#ifdef HAVE_NAMESPACES
28009using namespace __gnu_cxx;
28010#endif
John Criswell7a73b802003-06-30 21:59:07 +000028011int
28012main ()
28013{
Brian Gaeke90583492003-11-10 03:06:28 +000028014hash_set<int> t;
28015 ;
28016 return 0;
28017}
28018_ACEOF
28019rm -f conftest.$ac_objext
28020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028021 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028022 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028023 grep -v '^ *+' conftest.er1 >conftest.err
28024 rm -f conftest.er1
28025 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28027 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028028 { ac_try='test -z "$ac_cxx_werror_flag"
28029 || test ! -s conftest.err'
28030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28031 (eval $ac_try) 2>&5
28032 ac_status=$?
28033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28034 (exit $ac_status); }; } &&
28035 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28037 (eval $ac_try) 2>&5
28038 ac_status=$?
28039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28040 (exit $ac_status); }; }; then
28041 ac_cv_cxx_have_gnu_ext_hash_set=yes
28042else
28043 echo "$as_me: failed program was:" >&5
28044sed 's/^/| /' conftest.$ac_ext >&5
28045
28046ac_cv_cxx_have_gnu_ext_hash_set=no
28047fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028049 ac_ext=c
28050ac_cpp='$CPP $CPPFLAGS'
28051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28053ac_compiler_gnu=$ac_cv_c_compiler_gnu
28054
28055fi
28056echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28057echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028058 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28059 then
John Criswell9f011862004-09-24 18:28:00 +000028060
28061cat >>confdefs.h <<\_ACEOF
28062#define HAVE_GNU_EXT_HASH_SET 1
28063_ACEOF
28064
28065 else
28066
28067cat >>confdefs.h <<\_ACEOF
28068#define HAVE_GNU_EXT_HASH_SET 0
28069_ACEOF
28070
Brian Gaeke90583492003-11-10 03:06:28 +000028071 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028072
Brian Gaeke90583492003-11-10 03:06:28 +000028073 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28074echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28075if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28076 echo $ECHO_N "(cached) $ECHO_C" >&6
28077else
28078
Brian Gaeke90583492003-11-10 03:06:28 +000028079 ac_ext=cc
28080ac_cpp='$CXXCPP $CPPFLAGS'
28081ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28082ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28083ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28084
28085 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028086/* confdefs.h. */
28087_ACEOF
28088cat confdefs.h >>conftest.$ac_ext
28089cat >>conftest.$ac_ext <<_ACEOF
28090/* end confdefs.h. */
28091#include <hash_set>
28092int
28093main ()
28094{
John Criswell7a73b802003-06-30 21:59:07 +000028095hash_set<int> t; return 0;
28096 ;
28097 return 0;
28098}
28099_ACEOF
28100rm -f conftest.$ac_objext
28101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028102 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028103 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028104 grep -v '^ *+' conftest.er1 >conftest.err
28105 rm -f conftest.er1
28106 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28108 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028109 { ac_try='test -z "$ac_cxx_werror_flag"
28110 || test ! -s conftest.err'
28111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28112 (eval $ac_try) 2>&5
28113 ac_status=$?
28114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115 (exit $ac_status); }; } &&
28116 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28118 (eval $ac_try) 2>&5
28119 ac_status=$?
28120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028122 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028123else
28124 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028125sed 's/^/| /' conftest.$ac_ext >&5
28126
Brian Gaeke90583492003-11-10 03:06:28 +000028127ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028128fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028130 ac_ext=c
28131ac_cpp='$CPP $CPPFLAGS'
28132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28134ac_compiler_gnu=$ac_cv_c_compiler_gnu
28135
John Criswell7a73b802003-06-30 21:59:07 +000028136fi
Brian Gaeke90583492003-11-10 03:06:28 +000028137echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28138echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028139 if test "$ac_cv_cxx_have_global_hash_set" = yes
28140 then
John Criswell9f011862004-09-24 18:28:00 +000028141
28142cat >>confdefs.h <<\_ACEOF
28143#define HAVE_GLOBAL_HASH_SET 1
28144_ACEOF
28145
28146 else
28147
28148cat >>confdefs.h <<\_ACEOF
28149#define HAVE_GLOBAL_HASH_SET 0
28150_ACEOF
28151
Brian Gaeke90583492003-11-10 03:06:28 +000028152 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028153
John Criswell7a73b802003-06-30 21:59:07 +000028154echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28155echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28156if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28157 echo $ECHO_N "(cached) $ECHO_C" >&6
28158else
28159
John Criswell7a73b802003-06-30 21:59:07 +000028160 ac_ext=cc
28161ac_cpp='$CXXCPP $CPPFLAGS'
28162ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28163ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28164ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28165
28166 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028167/* confdefs.h. */
28168_ACEOF
28169cat confdefs.h >>conftest.$ac_ext
28170cat >>conftest.$ac_ext <<_ACEOF
28171/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028172#include <iterator>
28173#ifdef HAVE_NAMESPACES
28174using namespace std;
28175#endif
John Criswell7a73b802003-06-30 21:59:07 +000028176int
28177main ()
28178{
28179iterator<int,int,int> t; return 0;
28180 ;
28181 return 0;
28182}
28183_ACEOF
28184rm -f conftest.$ac_objext
28185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028186 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028187 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028188 grep -v '^ *+' conftest.er1 >conftest.err
28189 rm -f conftest.er1
28190 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028193 { ac_try='test -z "$ac_cxx_werror_flag"
28194 || test ! -s conftest.err'
28195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28196 (eval $ac_try) 2>&5
28197 ac_status=$?
28198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199 (exit $ac_status); }; } &&
28200 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28202 (eval $ac_try) 2>&5
28203 ac_status=$?
28204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205 (exit $ac_status); }; }; then
28206 ac_cv_cxx_have_std_iterator=yes
28207else
28208 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028209sed 's/^/| /' conftest.$ac_ext >&5
28210
John Criswell7a73b802003-06-30 21:59:07 +000028211ac_cv_cxx_have_std_iterator=no
28212fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028214 ac_ext=c
28215ac_cpp='$CPP $CPPFLAGS'
28216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28218ac_compiler_gnu=$ac_cv_c_compiler_gnu
28219
28220
28221fi
28222echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28223echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028224if test "$ac_cv_cxx_have_std_iterator" = yes
28225then
John Criswell40468462004-09-24 21:19:06 +000028226
28227cat >>confdefs.h <<\_ACEOF
28228#define HAVE_STD_ITERATOR 1
28229_ACEOF
28230
28231else
28232
28233cat >>confdefs.h <<\_ACEOF
28234#define HAVE_STD_ITERATOR 0
28235_ACEOF
28236
John Criswell7a73b802003-06-30 21:59:07 +000028237fi
28238
28239echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28240echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28241if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28242 echo $ECHO_N "(cached) $ECHO_C" >&6
28243else
28244
John Criswell7a73b802003-06-30 21:59:07 +000028245 ac_ext=cc
28246ac_cpp='$CXXCPP $CPPFLAGS'
28247ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28248ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28249ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28250
28251 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028252/* confdefs.h. */
28253_ACEOF
28254cat confdefs.h >>conftest.$ac_ext
28255cat >>conftest.$ac_ext <<_ACEOF
28256/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028257#include <iterator>
28258#ifdef HAVE_NAMESPACES
28259using namespace std;
28260#endif
John Criswell7a73b802003-06-30 21:59:07 +000028261int
28262main ()
28263{
John Criswellc78022e2003-07-29 19:11:58 +000028264bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028265 ;
28266 return 0;
28267}
28268_ACEOF
28269rm -f conftest.$ac_objext
28270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028271 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028272 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028273 grep -v '^ *+' conftest.er1 >conftest.err
28274 rm -f conftest.er1
28275 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28277 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028278 { ac_try='test -z "$ac_cxx_werror_flag"
28279 || test ! -s conftest.err'
28280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28281 (eval $ac_try) 2>&5
28282 ac_status=$?
28283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284 (exit $ac_status); }; } &&
28285 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28287 (eval $ac_try) 2>&5
28288 ac_status=$?
28289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290 (exit $ac_status); }; }; then
28291 ac_cv_cxx_have_bi_iterator=yes
28292else
28293 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028294sed 's/^/| /' conftest.$ac_ext >&5
28295
John Criswell7a73b802003-06-30 21:59:07 +000028296ac_cv_cxx_have_bi_iterator=no
28297fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028299 ac_ext=c
28300ac_cpp='$CPP $CPPFLAGS'
28301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28303ac_compiler_gnu=$ac_cv_c_compiler_gnu
28304
28305
28306fi
28307echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28308echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028309if test "$ac_cv_cxx_have_bi_iterator" = yes
28310then
John Criswell40468462004-09-24 21:19:06 +000028311
28312cat >>confdefs.h <<\_ACEOF
28313#define HAVE_BI_ITERATOR 1
28314_ACEOF
28315
28316else
28317
28318cat >>confdefs.h <<\_ACEOF
28319#define HAVE_BI_ITERATOR 0
28320_ACEOF
28321
John Criswell7a73b802003-06-30 21:59:07 +000028322fi
28323
28324echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28325echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28326if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28327 echo $ECHO_N "(cached) $ECHO_C" >&6
28328else
28329
John Criswell7a73b802003-06-30 21:59:07 +000028330 ac_ext=cc
28331ac_cpp='$CXXCPP $CPPFLAGS'
28332ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28333ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28334ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28335
28336 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028337/* confdefs.h. */
28338_ACEOF
28339cat confdefs.h >>conftest.$ac_ext
28340cat >>conftest.$ac_ext <<_ACEOF
28341/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028342#include <iterator>
28343#ifdef HAVE_NAMESPACES
28344using namespace std;
28345#endif
John Criswell7a73b802003-06-30 21:59:07 +000028346int
28347main ()
28348{
John Criswellc78022e2003-07-29 19:11:58 +000028349forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028350 ;
28351 return 0;
28352}
28353_ACEOF
28354rm -f conftest.$ac_objext
28355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028356 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028357 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028358 grep -v '^ *+' conftest.er1 >conftest.err
28359 rm -f conftest.er1
28360 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028363 { ac_try='test -z "$ac_cxx_werror_flag"
28364 || test ! -s conftest.err'
28365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28366 (eval $ac_try) 2>&5
28367 ac_status=$?
28368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369 (exit $ac_status); }; } &&
28370 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28372 (eval $ac_try) 2>&5
28373 ac_status=$?
28374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375 (exit $ac_status); }; }; then
28376 ac_cv_cxx_have_fwd_iterator=yes
28377else
28378 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028379sed 's/^/| /' conftest.$ac_ext >&5
28380
John Criswell7a73b802003-06-30 21:59:07 +000028381ac_cv_cxx_have_fwd_iterator=no
28382fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028384 ac_ext=c
28385ac_cpp='$CPP $CPPFLAGS'
28386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28388ac_compiler_gnu=$ac_cv_c_compiler_gnu
28389
28390
28391fi
28392echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28393echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028394if test "$ac_cv_cxx_have_fwd_iterator" = yes
28395then
John Criswell40468462004-09-24 21:19:06 +000028396
28397cat >>confdefs.h <<\_ACEOF
28398#define HAVE_FWD_ITERATOR 1
28399_ACEOF
28400
28401else
28402
28403cat >>confdefs.h <<\_ACEOF
28404#define HAVE_FWD_ITERATOR 0
28405_ACEOF
28406
John Criswell7a73b802003-06-30 21:59:07 +000028407fi
28408
28409
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028410echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28411echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28412if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28413 echo $ECHO_N "(cached) $ECHO_C" >&6
28414else
28415 ac_ext=cc
28416ac_cpp='$CXXCPP $CPPFLAGS'
28417ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28418ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28419ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28420
Reid Spencerabec8f92004-10-27 23:03:44 +000028421 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028422/* confdefs.h. */
28423_ACEOF
28424cat confdefs.h >>conftest.$ac_ext
28425cat >>conftest.$ac_ext <<_ACEOF
28426/* end confdefs.h. */
28427#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028428int
28429main ()
28430{
28431float f; isnan(f);
28432 ;
28433 return 0;
28434}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028435_ACEOF
28436rm -f conftest.$ac_objext
28437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028438 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028439 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028440 grep -v '^ *+' conftest.er1 >conftest.err
28441 rm -f conftest.er1
28442 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028445 { ac_try='test -z "$ac_cxx_werror_flag"
28446 || test ! -s conftest.err'
28447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28448 (eval $ac_try) 2>&5
28449 ac_status=$?
28450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451 (exit $ac_status); }; } &&
28452 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28454 (eval $ac_try) 2>&5
28455 ac_status=$?
28456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457 (exit $ac_status); }; }; then
28458 ac_cv_func_isnan_in_math_h=yes
28459else
28460 echo "$as_me: failed program was:" >&5
28461sed 's/^/| /' conftest.$ac_ext >&5
28462
28463ac_cv_func_isnan_in_math_h=no
28464fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028466 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028467ac_cpp='$CPP $CPPFLAGS'
28468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28470ac_compiler_gnu=$ac_cv_c_compiler_gnu
28471
28472fi
28473echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28474echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028475
28476
28477if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028478
28479cat >>confdefs.h <<\_ACEOF
28480#define HAVE_ISNAN_IN_MATH_H 1
28481_ACEOF
28482
Reid Spencerabec8f92004-10-27 23:03:44 +000028483fi
28484
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028485echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28486echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28487if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28488 echo $ECHO_N "(cached) $ECHO_C" >&6
28489else
28490 ac_ext=cc
28491ac_cpp='$CXXCPP $CPPFLAGS'
28492ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28493ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28494ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28495
Reid Spencerabec8f92004-10-27 23:03:44 +000028496 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028497/* confdefs.h. */
28498_ACEOF
28499cat confdefs.h >>conftest.$ac_ext
28500cat >>conftest.$ac_ext <<_ACEOF
28501/* end confdefs.h. */
28502#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028503int
28504main ()
28505{
28506float f; isnan(f);
28507 ;
28508 return 0;
28509}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028510_ACEOF
28511rm -f conftest.$ac_objext
28512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028513 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028514 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028515 grep -v '^ *+' conftest.er1 >conftest.err
28516 rm -f conftest.er1
28517 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28519 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028520 { ac_try='test -z "$ac_cxx_werror_flag"
28521 || test ! -s conftest.err'
28522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28523 (eval $ac_try) 2>&5
28524 ac_status=$?
28525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28526 (exit $ac_status); }; } &&
28527 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28529 (eval $ac_try) 2>&5
28530 ac_status=$?
28531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532 (exit $ac_status); }; }; then
28533 ac_cv_func_isnan_in_cmath=yes
28534else
28535 echo "$as_me: failed program was:" >&5
28536sed 's/^/| /' conftest.$ac_ext >&5
28537
28538ac_cv_func_isnan_in_cmath=no
28539fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028541 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028542ac_cpp='$CPP $CPPFLAGS'
28543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28545ac_compiler_gnu=$ac_cv_c_compiler_gnu
28546
28547fi
28548echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28549echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028550
28551if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028552
28553cat >>confdefs.h <<\_ACEOF
28554#define HAVE_ISNAN_IN_CMATH 1
28555_ACEOF
28556
Reid Spencerabec8f92004-10-27 23:03:44 +000028557fi
28558
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028559echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28560echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28561if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28562 echo $ECHO_N "(cached) $ECHO_C" >&6
28563else
28564 ac_ext=cc
28565ac_cpp='$CXXCPP $CPPFLAGS'
28566ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28567ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28568ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28569
Reid Spencerabec8f92004-10-27 23:03:44 +000028570 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028571/* confdefs.h. */
28572_ACEOF
28573cat confdefs.h >>conftest.$ac_ext
28574cat >>conftest.$ac_ext <<_ACEOF
28575/* end confdefs.h. */
28576#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028577int
28578main ()
28579{
28580float f; std::isnan(f);
28581 ;
28582 return 0;
28583}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028584_ACEOF
28585rm -f conftest.$ac_objext
28586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028587 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028588 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028589 grep -v '^ *+' conftest.er1 >conftest.err
28590 rm -f conftest.er1
28591 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028594 { ac_try='test -z "$ac_cxx_werror_flag"
28595 || test ! -s conftest.err'
28596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28597 (eval $ac_try) 2>&5
28598 ac_status=$?
28599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600 (exit $ac_status); }; } &&
28601 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28603 (eval $ac_try) 2>&5
28604 ac_status=$?
28605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28606 (exit $ac_status); }; }; then
28607 ac_cv_func_std_isnan_in_cmath=yes
28608else
28609 echo "$as_me: failed program was:" >&5
28610sed 's/^/| /' conftest.$ac_ext >&5
28611
28612ac_cv_func_std_isnan_in_cmath=no
28613fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028615 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028616ac_cpp='$CPP $CPPFLAGS'
28617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28619ac_compiler_gnu=$ac_cv_c_compiler_gnu
28620
28621fi
28622echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
28623echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028624
28625if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028626
28627cat >>confdefs.h <<\_ACEOF
28628#define HAVE_STD_ISNAN_IN_CMATH 1
28629_ACEOF
28630
Reid Spencerabec8f92004-10-27 23:03:44 +000028631fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028632
28633
Brian Gaeke52a551d2004-07-21 03:14:12 +000028634echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
28635echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
28636if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
28637 echo $ECHO_N "(cached) $ECHO_C" >&6
28638else
28639 ac_ext=cc
28640ac_cpp='$CXXCPP $CPPFLAGS'
28641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28644
Reid Spencerabec8f92004-10-27 23:03:44 +000028645 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028646/* confdefs.h. */
28647_ACEOF
28648cat confdefs.h >>conftest.$ac_ext
28649cat >>conftest.$ac_ext <<_ACEOF
28650/* end confdefs.h. */
28651#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028652int
28653main ()
28654{
28655float f; isinf(f);
28656 ;
28657 return 0;
28658}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028659_ACEOF
28660rm -f conftest.$ac_objext
28661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028662 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028663 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028664 grep -v '^ *+' conftest.er1 >conftest.err
28665 rm -f conftest.er1
28666 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28668 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028669 { ac_try='test -z "$ac_cxx_werror_flag"
28670 || test ! -s conftest.err'
28671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28672 (eval $ac_try) 2>&5
28673 ac_status=$?
28674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675 (exit $ac_status); }; } &&
28676 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28678 (eval $ac_try) 2>&5
28679 ac_status=$?
28680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681 (exit $ac_status); }; }; then
28682 ac_cv_func_isinf_in_math_h=yes
28683else
28684 echo "$as_me: failed program was:" >&5
28685sed 's/^/| /' conftest.$ac_ext >&5
28686
28687ac_cv_func_isinf_in_math_h=no
28688fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028690 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000028691ac_cpp='$CPP $CPPFLAGS'
28692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28694ac_compiler_gnu=$ac_cv_c_compiler_gnu
28695
28696fi
28697echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
28698echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028699
28700if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000028701
28702cat >>confdefs.h <<\_ACEOF
28703#define HAVE_ISINF_IN_MATH_H 1
28704_ACEOF
28705
Reid Spencerabec8f92004-10-27 23:03:44 +000028706fi
28707
Brian Gaeke52a551d2004-07-21 03:14:12 +000028708echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
28709echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
28710if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
28711 echo $ECHO_N "(cached) $ECHO_C" >&6
28712else
28713 ac_ext=cc
28714ac_cpp='$CXXCPP $CPPFLAGS'
28715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28718
Reid Spencerabec8f92004-10-27 23:03:44 +000028719 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028720/* confdefs.h. */
28721_ACEOF
28722cat confdefs.h >>conftest.$ac_ext
28723cat >>conftest.$ac_ext <<_ACEOF
28724/* end confdefs.h. */
28725#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028726int
28727main ()
28728{
28729float f; isinf(f);
28730 ;
28731 return 0;
28732}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028733_ACEOF
28734rm -f conftest.$ac_objext
28735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028736 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028737 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028738 grep -v '^ *+' conftest.er1 >conftest.err
28739 rm -f conftest.er1
28740 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028743 { ac_try='test -z "$ac_cxx_werror_flag"
28744 || test ! -s conftest.err'
28745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28746 (eval $ac_try) 2>&5
28747 ac_status=$?
28748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749 (exit $ac_status); }; } &&
28750 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28752 (eval $ac_try) 2>&5
28753 ac_status=$?
28754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28755 (exit $ac_status); }; }; then
28756 ac_cv_func_isinf_in_cmath=yes
28757else
28758 echo "$as_me: failed program was:" >&5
28759sed 's/^/| /' conftest.$ac_ext >&5
28760
28761ac_cv_func_isinf_in_cmath=no
28762fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028764 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000028765ac_cpp='$CPP $CPPFLAGS'
28766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28768ac_compiler_gnu=$ac_cv_c_compiler_gnu
28769
28770fi
28771echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
28772echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028773
28774if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000028775
28776cat >>confdefs.h <<\_ACEOF
28777#define HAVE_ISINF_IN_CMATH 1
28778_ACEOF
28779
Reid Spencerabec8f92004-10-27 23:03:44 +000028780fi
28781
Brian Gaeke52a551d2004-07-21 03:14:12 +000028782echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
28783echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
28784if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
28785 echo $ECHO_N "(cached) $ECHO_C" >&6
28786else
28787 ac_ext=cc
28788ac_cpp='$CXXCPP $CPPFLAGS'
28789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28790ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28792
Reid Spencerabec8f92004-10-27 23:03:44 +000028793 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028794/* confdefs.h. */
28795_ACEOF
28796cat confdefs.h >>conftest.$ac_ext
28797cat >>conftest.$ac_ext <<_ACEOF
28798/* end confdefs.h. */
28799#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028800int
28801main ()
28802{
28803float f; std::isinf(f)}
28804 ;
28805 return 0;
28806}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028807_ACEOF
28808rm -f conftest.$ac_objext
28809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028810 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028811 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028812 grep -v '^ *+' conftest.er1 >conftest.err
28813 rm -f conftest.er1
28814 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028817 { ac_try='test -z "$ac_cxx_werror_flag"
28818 || test ! -s conftest.err'
28819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28820 (eval $ac_try) 2>&5
28821 ac_status=$?
28822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28823 (exit $ac_status); }; } &&
28824 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28826 (eval $ac_try) 2>&5
28827 ac_status=$?
28828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829 (exit $ac_status); }; }; then
28830 ac_cv_func_std_isinf_in_cmath=yes
28831else
28832 echo "$as_me: failed program was:" >&5
28833sed 's/^/| /' conftest.$ac_ext >&5
28834
28835ac_cv_func_std_isinf_in_cmath=no
28836fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028838 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000028839ac_cpp='$CPP $CPPFLAGS'
28840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28842ac_compiler_gnu=$ac_cv_c_compiler_gnu
28843
28844fi
28845echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
28846echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028847
28848if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000028849
28850cat >>confdefs.h <<\_ACEOF
28851#define HAVE_STD_ISINF_IN_CMATH 1
28852_ACEOF
28853
Reid Spencerabec8f92004-10-27 23:03:44 +000028854fi
28855
Brian Gaeked59a6472004-07-21 03:33:58 +000028856echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
28857echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
28858if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
28859 echo $ECHO_N "(cached) $ECHO_C" >&6
28860else
28861 ac_ext=cc
28862ac_cpp='$CXXCPP $CPPFLAGS'
28863ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28864ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28865ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28866
Reid Spencerabec8f92004-10-27 23:03:44 +000028867 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000028868/* confdefs.h. */
28869_ACEOF
28870cat confdefs.h >>conftest.$ac_ext
28871cat >>conftest.$ac_ext <<_ACEOF
28872/* end confdefs.h. */
28873#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028874int
28875main ()
28876{
28877float f; finite(f);
28878 ;
28879 return 0;
28880}
Brian Gaeked59a6472004-07-21 03:33:58 +000028881_ACEOF
28882rm -f conftest.$ac_objext
28883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028884 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000028885 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028886 grep -v '^ *+' conftest.er1 >conftest.err
28887 rm -f conftest.er1
28888 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000028889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28890 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028891 { ac_try='test -z "$ac_cxx_werror_flag"
28892 || test ! -s conftest.err'
28893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28894 (eval $ac_try) 2>&5
28895 ac_status=$?
28896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28897 (exit $ac_status); }; } &&
28898 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000028899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28900 (eval $ac_try) 2>&5
28901 ac_status=$?
28902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903 (exit $ac_status); }; }; then
28904 ac_cv_func_finite_in_ieeefp_h=yes
28905else
28906 echo "$as_me: failed program was:" >&5
28907sed 's/^/| /' conftest.$ac_ext >&5
28908
28909ac_cv_func_finite_in_ieeefp_h=no
28910fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028912 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000028913ac_cpp='$CPP $CPPFLAGS'
28914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28916ac_compiler_gnu=$ac_cv_c_compiler_gnu
28917
28918fi
28919echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
28920echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028921
Brian Gaeke6802b552004-10-28 05:06:45 +000028922if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000028923
28924cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000028925#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000028926_ACEOF
28927
Reid Spencerabec8f92004-10-27 23:03:44 +000028928fi
28929
28930
28931
John Criswell7a73b802003-06-30 21:59:07 +000028932
28933
28934for ac_header in stdlib.h unistd.h
28935do
28936as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28937if eval "test \"\${$as_ac_Header+set}\" = set"; then
28938 echo "$as_me:$LINENO: checking for $ac_header" >&5
28939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28940if eval "test \"\${$as_ac_Header+set}\" = set"; then
28941 echo $ECHO_N "(cached) $ECHO_C" >&6
28942fi
28943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28944echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28945else
28946 # Is the header compilable?
28947echo "$as_me:$LINENO: checking $ac_header usability" >&5
28948echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28949cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028950/* confdefs.h. */
28951_ACEOF
28952cat confdefs.h >>conftest.$ac_ext
28953cat >>conftest.$ac_ext <<_ACEOF
28954/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028955$ac_includes_default
28956#include <$ac_header>
28957_ACEOF
28958rm -f conftest.$ac_objext
28959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028960 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028961 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028962 grep -v '^ *+' conftest.er1 >conftest.err
28963 rm -f conftest.er1
28964 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028967 { ac_try='test -z "$ac_c_werror_flag"
28968 || test ! -s conftest.err'
28969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28970 (eval $ac_try) 2>&5
28971 ac_status=$?
28972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28973 (exit $ac_status); }; } &&
28974 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28976 (eval $ac_try) 2>&5
28977 ac_status=$?
28978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979 (exit $ac_status); }; }; then
28980 ac_header_compiler=yes
28981else
28982 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028983sed 's/^/| /' conftest.$ac_ext >&5
28984
John Criswell7a73b802003-06-30 21:59:07 +000028985ac_header_compiler=no
28986fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028988echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28989echo "${ECHO_T}$ac_header_compiler" >&6
28990
28991# Is the header present?
28992echo "$as_me:$LINENO: checking $ac_header presence" >&5
28993echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28994cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028995/* confdefs.h. */
28996_ACEOF
28997cat confdefs.h >>conftest.$ac_ext
28998cat >>conftest.$ac_ext <<_ACEOF
28999/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029000#include <$ac_header>
29001_ACEOF
29002if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29004 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000029005 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000029006 rm -f conftest.er1
29007 cat conftest.err >&5
29008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009 (exit $ac_status); } >/dev/null; then
29010 if test -s conftest.err; then
29011 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000029012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000029013 else
29014 ac_cpp_err=
29015 fi
29016else
29017 ac_cpp_err=yes
29018fi
29019if test -z "$ac_cpp_err"; then
29020 ac_header_preproc=yes
29021else
29022 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029023sed 's/^/| /' conftest.$ac_ext >&5
29024
John Criswell7a73b802003-06-30 21:59:07 +000029025 ac_header_preproc=no
29026fi
29027rm -f conftest.err conftest.$ac_ext
29028echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29029echo "${ECHO_T}$ac_header_preproc" >&6
29030
29031# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029032case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29033 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000029034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29035echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29037echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29038 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029039 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029040 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000029041 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29042echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029043 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29044echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29045 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29046echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29047 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29048echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29050echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029051 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29052echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029053 (
29054 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029055## ----------------------------------- ##
29056## Report this to llvmbugs@cs.uiuc.edu ##
29057## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000029058_ASBOX
29059 ) |
29060 sed "s/^/$as_me: WARNING: /" >&2
29061 ;;
John Criswell7a73b802003-06-30 21:59:07 +000029062esac
29063echo "$as_me:$LINENO: checking for $ac_header" >&5
29064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29065if eval "test \"\${$as_ac_Header+set}\" = set"; then
29066 echo $ECHO_N "(cached) $ECHO_C" >&6
29067else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029068 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000029069fi
29070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29071echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29072
29073fi
29074if test `eval echo '${'$as_ac_Header'}'` = yes; then
29075 cat >>confdefs.h <<_ACEOF
29076#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29077_ACEOF
29078
29079fi
29080
29081done
29082
29083
29084for ac_func in getpagesize
29085do
29086as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29087echo "$as_me:$LINENO: checking for $ac_func" >&5
29088echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29089if eval "test \"\${$as_ac_var+set}\" = set"; then
29090 echo $ECHO_N "(cached) $ECHO_C" >&6
29091else
29092 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029093/* confdefs.h. */
29094_ACEOF
29095cat confdefs.h >>conftest.$ac_ext
29096cat >>conftest.$ac_ext <<_ACEOF
29097/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029098/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29100#define $ac_func innocuous_$ac_func
29101
John Criswell7a73b802003-06-30 21:59:07 +000029102/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000029103 which can conflict with char $ac_func (); below.
29104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29105 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029106
John Criswell0c38eaf2003-09-10 15:17:25 +000029107#ifdef __STDC__
29108# include <limits.h>
29109#else
29110# include <assert.h>
29111#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000029112
29113#undef $ac_func
29114
John Criswell7a73b802003-06-30 21:59:07 +000029115/* Override any gcc2 internal prototype to avoid an error. */
29116#ifdef __cplusplus
29117extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000029118{
John Criswell7a73b802003-06-30 21:59:07 +000029119#endif
29120/* We use char because int might match the return type of a gcc2
29121 builtin and then its argument prototype would still apply. */
29122char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029123/* The GNU C library defines this for functions which it implements
29124 to always fail with ENOSYS. Some functions are actually named
29125 something starting with __ and the normal name is an alias. */
29126#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29127choke me
29128#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029129char (*f) () = $ac_func;
29130#endif
29131#ifdef __cplusplus
29132}
John Criswell7a73b802003-06-30 21:59:07 +000029133#endif
29134
John Criswell0c38eaf2003-09-10 15:17:25 +000029135int
29136main ()
29137{
29138return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000029139 ;
29140 return 0;
29141}
29142_ACEOF
29143rm -f conftest.$ac_objext conftest$ac_exeext
29144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029145 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029146 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029147 grep -v '^ *+' conftest.er1 >conftest.err
29148 rm -f conftest.er1
29149 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029152 { ac_try='test -z "$ac_c_werror_flag"
29153 || test ! -s conftest.err'
29154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29155 (eval $ac_try) 2>&5
29156 ac_status=$?
29157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158 (exit $ac_status); }; } &&
29159 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29161 (eval $ac_try) 2>&5
29162 ac_status=$?
29163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29164 (exit $ac_status); }; }; then
29165 eval "$as_ac_var=yes"
29166else
29167 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029168sed 's/^/| /' conftest.$ac_ext >&5
29169
John Criswell7a73b802003-06-30 21:59:07 +000029170eval "$as_ac_var=no"
29171fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029172rm -f conftest.err conftest.$ac_objext \
29173 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029174fi
29175echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29176echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29177if test `eval echo '${'$as_ac_var'}'` = yes; then
29178 cat >>confdefs.h <<_ACEOF
29179#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29180_ACEOF
29181
29182fi
29183done
29184
29185echo "$as_me:$LINENO: checking for working mmap" >&5
29186echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29187if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29188 echo $ECHO_N "(cached) $ECHO_C" >&6
29189else
29190 if test "$cross_compiling" = yes; then
29191 ac_cv_func_mmap_fixed_mapped=no
29192else
29193 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029194/* confdefs.h. */
29195_ACEOF
29196cat confdefs.h >>conftest.$ac_ext
29197cat >>conftest.$ac_ext <<_ACEOF
29198/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029199$ac_includes_default
29200/* malloc might have been renamed as rpl_malloc. */
29201#undef malloc
29202
29203/* Thanks to Mike Haertel and Jim Avera for this test.
29204 Here is a matrix of mmap possibilities:
29205 mmap private not fixed
29206 mmap private fixed at somewhere currently unmapped
29207 mmap private fixed at somewhere already mapped
29208 mmap shared not fixed
29209 mmap shared fixed at somewhere currently unmapped
29210 mmap shared fixed at somewhere already mapped
29211 For private mappings, we should verify that changes cannot be read()
29212 back from the file, nor mmap's back from the file at a different
29213 address. (There have been systems where private was not correctly
29214 implemented like the infamous i386 svr4.0, and systems where the
29215 VM page cache was not coherent with the file system buffer cache
29216 like early versions of FreeBSD and possibly contemporary NetBSD.)
29217 For shared mappings, we should conversely verify that changes get
29218 propagated back to all the places they're supposed to be.
29219
29220 Grep wants private fixed already mapped.
29221 The main things grep needs to know about mmap are:
29222 * does it exist and is it safe to write into the mmap'd area
29223 * how to use it (BSD variants) */
29224
29225#include <fcntl.h>
29226#include <sys/mman.h>
29227
29228#if !STDC_HEADERS && !HAVE_STDLIB_H
29229char *malloc ();
29230#endif
29231
29232/* This mess was copied from the GNU getpagesize.h. */
29233#if !HAVE_GETPAGESIZE
29234/* Assume that all systems that can run configure have sys/param.h. */
29235# if !HAVE_SYS_PARAM_H
29236# define HAVE_SYS_PARAM_H 1
29237# endif
29238
29239# ifdef _SC_PAGESIZE
29240# define getpagesize() sysconf(_SC_PAGESIZE)
29241# else /* no _SC_PAGESIZE */
29242# if HAVE_SYS_PARAM_H
29243# include <sys/param.h>
29244# ifdef EXEC_PAGESIZE
29245# define getpagesize() EXEC_PAGESIZE
29246# else /* no EXEC_PAGESIZE */
29247# ifdef NBPG
29248# define getpagesize() NBPG * CLSIZE
29249# ifndef CLSIZE
29250# define CLSIZE 1
29251# endif /* no CLSIZE */
29252# else /* no NBPG */
29253# ifdef NBPC
29254# define getpagesize() NBPC
29255# else /* no NBPC */
29256# ifdef PAGESIZE
29257# define getpagesize() PAGESIZE
29258# endif /* PAGESIZE */
29259# endif /* no NBPC */
29260# endif /* no NBPG */
29261# endif /* no EXEC_PAGESIZE */
29262# else /* no HAVE_SYS_PARAM_H */
29263# define getpagesize() 8192 /* punt totally */
29264# endif /* no HAVE_SYS_PARAM_H */
29265# endif /* no _SC_PAGESIZE */
29266
29267#endif /* no HAVE_GETPAGESIZE */
29268
29269int
29270main ()
29271{
29272 char *data, *data2, *data3;
29273 int i, pagesize;
29274 int fd;
29275
29276 pagesize = getpagesize ();
29277
29278 /* First, make a file with some known garbage in it. */
29279 data = (char *) malloc (pagesize);
29280 if (!data)
29281 exit (1);
29282 for (i = 0; i < pagesize; ++i)
29283 *(data + i) = rand ();
29284 umask (0);
29285 fd = creat ("conftest.mmap", 0600);
29286 if (fd < 0)
29287 exit (1);
29288 if (write (fd, data, pagesize) != pagesize)
29289 exit (1);
29290 close (fd);
29291
29292 /* Next, try to mmap the file at a fixed address which already has
29293 something else allocated at it. If we can, also make sure that
29294 we see the same garbage. */
29295 fd = open ("conftest.mmap", O_RDWR);
29296 if (fd < 0)
29297 exit (1);
29298 data2 = (char *) malloc (2 * pagesize);
29299 if (!data2)
29300 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000029301 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000029302 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000029303 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000029304 exit (1);
29305 for (i = 0; i < pagesize; ++i)
29306 if (*(data + i) != *(data2 + i))
29307 exit (1);
29308
29309 /* Finally, make sure that changes to the mapped area do not
29310 percolate back to the file as seen by read(). (This is a bug on
29311 some variants of i386 svr4.0.) */
29312 for (i = 0; i < pagesize; ++i)
29313 *(data2 + i) = *(data2 + i) + 1;
29314 data3 = (char *) malloc (pagesize);
29315 if (!data3)
29316 exit (1);
29317 if (read (fd, data3, pagesize) != pagesize)
29318 exit (1);
29319 for (i = 0; i < pagesize; ++i)
29320 if (*(data + i) != *(data3 + i))
29321 exit (1);
29322 close (fd);
29323 exit (0);
29324}
29325_ACEOF
29326rm -f conftest$ac_exeext
29327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29328 (eval $ac_link) 2>&5
29329 ac_status=$?
29330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29333 (eval $ac_try) 2>&5
29334 ac_status=$?
29335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29336 (exit $ac_status); }; }; then
29337 ac_cv_func_mmap_fixed_mapped=yes
29338else
29339 echo "$as_me: program exited with status $ac_status" >&5
29340echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029341sed 's/^/| /' conftest.$ac_ext >&5
29342
John Criswell7a73b802003-06-30 21:59:07 +000029343( exit $ac_status )
29344ac_cv_func_mmap_fixed_mapped=no
29345fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029346rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029347fi
29348fi
29349echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29350echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29351if test $ac_cv_func_mmap_fixed_mapped = yes; then
29352
29353cat >>confdefs.h <<\_ACEOF
29354#define HAVE_MMAP 1
29355_ACEOF
29356
29357fi
29358rm -f conftest.mmap
29359
29360echo "$as_me:$LINENO: checking for mmap of files" >&5
29361echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29362if test "${ac_cv_func_mmap_file+set}" = set; then
29363 echo $ECHO_N "(cached) $ECHO_C" >&6
29364else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029365 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000029366ac_cpp='$CPP $CPPFLAGS'
29367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29369ac_compiler_gnu=$ac_cv_c_compiler_gnu
29370
29371 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029372 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000029373else
29374 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000029375
Reid Spencer777ce172004-09-20 04:09:56 +000029376 /* confdefs.h. */
29377_ACEOF
29378cat confdefs.h >>conftest.$ac_ext
29379cat >>conftest.$ac_ext <<_ACEOF
29380/* end confdefs.h. */
29381
John Criswell7a73b802003-06-30 21:59:07 +000029382#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000029383#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000029384#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000029385
29386int
29387main ()
29388{
John Criswell7a73b802003-06-30 21:59:07 +000029389
29390 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000029391 fd = creat ("foo",0777);
29392 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29393 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029394 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000029395 ;
29396 return 0;
29397}
John Criswell7a73b802003-06-30 21:59:07 +000029398_ACEOF
29399rm -f conftest$ac_exeext
29400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29401 (eval $ac_link) 2>&5
29402 ac_status=$?
29403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29406 (eval $ac_try) 2>&5
29407 ac_status=$?
29408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409 (exit $ac_status); }; }; then
29410 ac_cv_func_mmap_file=yes
29411else
29412 echo "$as_me: program exited with status $ac_status" >&5
29413echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029414sed 's/^/| /' conftest.$ac_ext >&5
29415
John Criswell7a73b802003-06-30 21:59:07 +000029416( exit $ac_status )
29417ac_cv_func_mmap_file=no
29418fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029419rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029420fi
29421 ac_ext=c
29422ac_cpp='$CPP $CPPFLAGS'
29423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29425ac_compiler_gnu=$ac_cv_c_compiler_gnu
29426
29427
29428fi
29429echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29430echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29431if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000029432
29433cat >>confdefs.h <<\_ACEOF
29434#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000029435_ACEOF
29436
29437 MMAP_FILE=yes
29438
29439fi
29440
John Criswell7a73b802003-06-30 21:59:07 +000029441echo "$as_me:$LINENO: checking for mprotect" >&5
29442echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29443if test "${ac_cv_func_mprotect+set}" = set; then
29444 echo $ECHO_N "(cached) $ECHO_C" >&6
29445else
29446 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029447/* confdefs.h. */
29448_ACEOF
29449cat confdefs.h >>conftest.$ac_ext
29450cat >>conftest.$ac_ext <<_ACEOF
29451/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029452/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29454#define mprotect innocuous_mprotect
29455
John Criswell7a73b802003-06-30 21:59:07 +000029456/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000029457 which can conflict with char mprotect (); below.
29458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29459 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029460
John Criswell0c38eaf2003-09-10 15:17:25 +000029461#ifdef __STDC__
29462# include <limits.h>
29463#else
29464# include <assert.h>
29465#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000029466
29467#undef mprotect
29468
John Criswell7a73b802003-06-30 21:59:07 +000029469/* Override any gcc2 internal prototype to avoid an error. */
29470#ifdef __cplusplus
29471extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000029472{
John Criswell7a73b802003-06-30 21:59:07 +000029473#endif
29474/* We use char because int might match the return type of a gcc2
29475 builtin and then its argument prototype would still apply. */
29476char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000029477/* The GNU C library defines this for functions which it implements
29478 to always fail with ENOSYS. Some functions are actually named
29479 something starting with __ and the normal name is an alias. */
29480#if defined (__stub_mprotect) || defined (__stub___mprotect)
29481choke me
29482#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029483char (*f) () = mprotect;
29484#endif
29485#ifdef __cplusplus
29486}
John Criswell7a73b802003-06-30 21:59:07 +000029487#endif
29488
John Criswell0c38eaf2003-09-10 15:17:25 +000029489int
29490main ()
29491{
29492return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000029493 ;
29494 return 0;
29495}
29496_ACEOF
29497rm -f conftest.$ac_objext conftest$ac_exeext
29498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029499 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029500 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029501 grep -v '^ *+' conftest.er1 >conftest.err
29502 rm -f conftest.er1
29503 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029506 { ac_try='test -z "$ac_c_werror_flag"
29507 || test ! -s conftest.err'
29508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29509 (eval $ac_try) 2>&5
29510 ac_status=$?
29511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512 (exit $ac_status); }; } &&
29513 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29515 (eval $ac_try) 2>&5
29516 ac_status=$?
29517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29518 (exit $ac_status); }; }; then
29519 ac_cv_func_mprotect=yes
29520else
29521 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029522sed 's/^/| /' conftest.$ac_ext >&5
29523
John Criswell7a73b802003-06-30 21:59:07 +000029524ac_cv_func_mprotect=no
29525fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029526rm -f conftest.err conftest.$ac_objext \
29527 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029528fi
29529echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29530echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29531if test $ac_cv_func_mprotect = yes; then
29532 :
29533else
29534 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29535echo "$as_me: error: Function mprotect() required but not found" >&2;}
29536 { (exit 1); exit 1; }; }
29537fi
29538
29539
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029540if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000029541then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029542 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29543echo "$as_me: WARNING: mmap() required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000029544fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029545if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000029546then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029547 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29548echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000029549fi
John Criswell7a73b802003-06-30 21:59:07 +000029550
29551
Brian Gaekef3b24102003-11-16 18:38:14 +000029552echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29553echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029554if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29555 echo $ECHO_N "(cached) $ECHO_C" >&6
29556else
29557 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000029558if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029559 cp /dev/null conftest.c
Reid Spencer502935f2004-12-22 05:56:56 +000029560 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029561 if test $? -eq 0 ; then
29562 llvm_cv_llvmgcc_sanity="yes"
29563 fi
29564 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000029565fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029566fi
29567echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
29568echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
29569
29570if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000029571 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029572 LLVMCC1=$llvmcc1path
29573
Reid Spencer502935f2004-12-22 05:56:56 +000029574 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029575 LLVMCC1PLUS=$llvmcc1pluspath
29576
Reid Spencer502935f2004-12-22 05:56:56 +000029577 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
29578 LLVMGCCDIR=$llvmgccdir
29579
Brian Gaekef3b24102003-11-16 18:38:14 +000029580fi
29581
Reid Spencer2bc7bd52004-11-29 12:29:58 +000029582SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000029583
29584
Reid Spencere9de0912004-08-20 09:03:57 +000029585# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029586# information into substitutions that will end up in Makefile.config.in
29587# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000029588eval LLVM_PREFIX="${prefix}";
29589eval LLVM_BINDIR="${prefix}/bin";
29590eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000029591eval LLVM_DATADIR="${prefix}/share/llvm";
29592eval LLVM_DOCSDIR="${prefix}/docs/llvm";
29593eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000029594eval LLVM_INCLUDEDIR="${prefix}/include";
29595eval LLVM_INFODIR="${prefix}/info";
29596eval LLVM_MANDIR="${prefix}/man";
29597LLVM_CONFIGTIME=`date`
29598
29599
29600
29601
29602
29603
29604
29605
29606
29607
29608
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029609# Place the various directores into the config.h file as #defines so that we
29610# can know about the installation paths within LLVM.
29611
Reid Spencere9de0912004-08-20 09:03:57 +000029612cat >>confdefs.h <<_ACEOF
29613#define LLVM_PREFIX "$LLVM_PREFIX"
29614_ACEOF
29615
29616
29617cat >>confdefs.h <<_ACEOF
29618#define LLVM_BINDIR "$LLVM_BINDIR"
29619_ACEOF
29620
29621
29622cat >>confdefs.h <<_ACEOF
29623#define LLVM_LIBDIR "$LLVM_LIBDIR"
29624_ACEOF
29625
29626
29627cat >>confdefs.h <<_ACEOF
29628#define LLVM_DATADIR "$LLVM_DATADIR"
29629_ACEOF
29630
29631
29632cat >>confdefs.h <<_ACEOF
29633#define LLVM_DATADIR "$LLVM_DOCSDIR"
29634_ACEOF
29635
29636
29637cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000029638#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000029639_ACEOF
29640
29641
29642cat >>confdefs.h <<_ACEOF
29643#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
29644_ACEOF
29645
29646
29647cat >>confdefs.h <<_ACEOF
29648#define LLVM_INFODIR "$LLVM_INFODIR"
29649_ACEOF
29650
29651
29652cat >>confdefs.h <<_ACEOF
29653#define LLVM_MANDIR "$LLVM_MANDIR"
29654_ACEOF
29655
29656
29657cat >>confdefs.h <<_ACEOF
29658#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
29659_ACEOF
29660
29661
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029662
29663 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
29664
29665
29666 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
29667
29668 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
29669
29670 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
29671
29672 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
29673
29674 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
29675
29676
29677 ac_config_files="$ac_config_files Makefile.config"
29678
29679
29680 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
29681
29682
Reid Spencer1f319422004-11-29 04:56:35 +000029683 ac_config_files="$ac_config_files docs/doxygen.cfg"
29684
29685
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029686 ac_config_commands="$ac_config_commands Makefile"
29687
29688
29689 ac_config_commands="$ac_config_commands Makefile.common"
29690
29691
29692 ac_config_commands="$ac_config_commands examples/Makefile"
29693
29694
29695 ac_config_commands="$ac_config_commands lib/Makefile"
29696
29697
29698 ac_config_commands="$ac_config_commands runtime/Makefile"
29699
29700
29701 ac_config_commands="$ac_config_commands test/Makefile"
29702
29703
29704 ac_config_commands="$ac_config_commands test/Makefile.tests"
29705
29706
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029707 ac_config_commands="$ac_config_commands tools/Makefile"
29708
29709
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029710 ac_config_commands="$ac_config_commands utils/Makefile"
29711
29712
29713 ac_config_commands="$ac_config_commands projects/Makefile"
29714
29715
29716
John Criswell7a73b802003-06-30 21:59:07 +000029717cat >confcache <<\_ACEOF
29718# This file is a shell script that caches the results of configure
29719# tests run on this system so they can be shared between configure
29720# scripts and configure runs, see configure's option --config-cache.
29721# It is not useful on other systems. If it contains results you don't
29722# want to keep, you may remove or edit it.
29723#
29724# config.status only pays attention to the cache file if you give it
29725# the --recheck option to rerun configure.
29726#
John Criswell0c38eaf2003-09-10 15:17:25 +000029727# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000029728# loading this file, other *unset* `ac_cv_foo' will be assigned the
29729# following values.
29730
29731_ACEOF
29732
29733# The following way of writing the cache mishandles newlines in values,
29734# but we know of no workaround that is simple, portable, and efficient.
29735# So, don't put newlines in cache variables' values.
29736# Ultrix sh set writes to stderr and can't be redirected directly,
29737# and sets the high bit in the cache file unless we assign to the vars.
29738{
29739 (set) 2>&1 |
29740 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29741 *ac_space=\ *)
29742 # `set' does not quote correctly, so add quotes (double-quote
29743 # substitution turns \\\\ into \\, and sed turns \\ into \).
29744 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029745 "s/'/'\\\\''/g;
29746 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000029747 ;;
29748 *)
29749 # `set' quotes correctly as required by POSIX, so do not add quotes.
29750 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029751 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000029752 ;;
29753 esac;
29754} |
29755 sed '
29756 t clear
29757 : clear
29758 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29759 t end
29760 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29761 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000029762if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000029763 if test -w $cache_file; then
29764 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29765 cat confcache >$cache_file
29766 else
29767 echo "not updating unwritable cache $cache_file"
29768 fi
29769fi
29770rm -f confcache
29771
29772test "x$prefix" = xNONE && prefix=$ac_default_prefix
29773# Let make expand exec_prefix.
29774test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29775
29776# VPATH may cause trouble with some makes, so we remove $(srcdir),
29777# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29778# trailing colons and then remove the whole line if VPATH becomes empty
29779# (actually we leave an empty line to preserve line numbers).
29780if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000029781 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000029782s/:*\$(srcdir):*/:/;
29783s/:*\${srcdir}:*/:/;
29784s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029785s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000029786s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029787s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000029788}'
29789fi
29790
29791DEFS=-DHAVE_CONFIG_H
29792
John Criswell0c38eaf2003-09-10 15:17:25 +000029793ac_libobjs=
29794ac_ltlibobjs=
29795for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29796 # 1. Remove the extension, and $U if already installed.
29797 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000029798 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000029799 # 2. Add them.
29800 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29801 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29802done
29803LIBOBJS=$ac_libobjs
29804
29805LTLIBOBJS=$ac_ltlibobjs
29806
29807
Reid Spencer2bc7bd52004-11-29 12:29:58 +000029808if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
29809 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
29810Usually this means the macro was only invoked conditionally." >&5
29811echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
29812Usually this means the macro was only invoked conditionally." >&2;}
29813 { (exit 1); exit 1; }; }
29814fi
29815if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
29816 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29817Usually this means the macro was only invoked conditionally." >&5
29818echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29819Usually this means the macro was only invoked conditionally." >&2;}
29820 { (exit 1); exit 1; }; }
29821fi
John Criswell7a73b802003-06-30 21:59:07 +000029822
29823: ${CONFIG_STATUS=./config.status}
29824ac_clean_files_save=$ac_clean_files
29825ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29826{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29827echo "$as_me: creating $CONFIG_STATUS" >&6;}
29828cat >$CONFIG_STATUS <<_ACEOF
29829#! $SHELL
29830# Generated by $as_me.
29831# Run this file to recreate the current configuration.
29832# Compiler output produced by configure, useful for debugging
29833# configure, is in config.log if it exists.
29834
29835debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000029836ac_cs_recheck=false
29837ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000029838SHELL=\${CONFIG_SHELL-$SHELL}
29839_ACEOF
29840
29841cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000029842## --------------------- ##
29843## M4sh Initialization. ##
29844## --------------------- ##
29845
29846# Be Bourne compatible
29847if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29848 emulate sh
29849 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000029850 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29851 # is contrary to our usage. Disable this feature.
29852 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000029853elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29854 set -o posix
29855fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029856DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000029857
John Criswell7a73b802003-06-30 21:59:07 +000029858# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029859if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029860 as_unset=unset
29861else
29862 as_unset=false
29863fi
29864
John Criswell0c38eaf2003-09-10 15:17:25 +000029865
29866# Work around bugs in pre-3.0 UWIN ksh.
29867$as_unset ENV MAIL MAILPATH
29868PS1='$ '
29869PS2='> '
29870PS4='+ '
29871
29872# NLS nuisances.
29873for as_var in \
29874 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29875 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29876 LC_TELEPHONE LC_TIME
29877do
Reid Spencer2706f8c2004-09-19 23:53:36 +000029878 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000029879 eval $as_var=C; export $as_var
29880 else
29881 $as_unset $as_var
29882 fi
29883done
29884
29885# Required to use basename.
29886if expr a : '\(a\)' >/dev/null 2>&1; then
29887 as_expr=expr
29888else
29889 as_expr=false
29890fi
29891
29892if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29893 as_basename=basename
29894else
29895 as_basename=false
29896fi
John Criswell7a73b802003-06-30 21:59:07 +000029897
29898
29899# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000029900as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000029901$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29902 X"$0" : 'X\(//\)$' \| \
29903 X"$0" : 'X\(/\)$' \| \
29904 . : '\(.\)' 2>/dev/null ||
29905echo X/"$0" |
29906 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29907 /^X\/\(\/\/\)$/{ s//\1/; q; }
29908 /^X\/\(\/\).*/{ s//\1/; q; }
29909 s/.*/./; q'`
29910
John Criswell0c38eaf2003-09-10 15:17:25 +000029911
John Criswell7a73b802003-06-30 21:59:07 +000029912# PATH needs CR, and LINENO needs CR and PATH.
29913# Avoid depending upon Character Ranges.
29914as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29915as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29916as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29917as_cr_digits='0123456789'
29918as_cr_alnum=$as_cr_Letters$as_cr_digits
29919
29920# The user is always right.
29921if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000029922 echo "#! /bin/sh" >conf$$.sh
29923 echo "exit 0" >>conf$$.sh
29924 chmod +x conf$$.sh
29925 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029926 PATH_SEPARATOR=';'
29927 else
29928 PATH_SEPARATOR=:
29929 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000029930 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000029931fi
29932
29933
29934 as_lineno_1=$LINENO
29935 as_lineno_2=$LINENO
29936 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29937 test "x$as_lineno_1" != "x$as_lineno_2" &&
29938 test "x$as_lineno_3" = "x$as_lineno_2" || {
29939 # Find who we are. Look in the path if we contain no path at all
29940 # relative or not.
29941 case $0 in
29942 *[\\/]* ) as_myself=$0 ;;
29943 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29944for as_dir in $PATH
29945do
29946 IFS=$as_save_IFS
29947 test -z "$as_dir" && as_dir=.
29948 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29949done
29950
29951 ;;
29952 esac
29953 # We did not find ourselves, most probably we were run as `sh COMMAND'
29954 # in which case we are not to be found in the path.
29955 if test "x$as_myself" = x; then
29956 as_myself=$0
29957 fi
29958 if test ! -f "$as_myself"; then
29959 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29960echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29961 { (exit 1); exit 1; }; }
29962 fi
29963 case $CONFIG_SHELL in
29964 '')
29965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29966for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29967do
29968 IFS=$as_save_IFS
29969 test -z "$as_dir" && as_dir=.
29970 for as_base in sh bash ksh sh5; do
29971 case $as_dir in
29972 /*)
29973 if ("$as_dir/$as_base" -c '
29974 as_lineno_1=$LINENO
29975 as_lineno_2=$LINENO
29976 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29977 test "x$as_lineno_1" != "x$as_lineno_2" &&
29978 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000029979 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29980 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000029981 CONFIG_SHELL=$as_dir/$as_base
29982 export CONFIG_SHELL
29983 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29984 fi;;
29985 esac
29986 done
29987done
29988;;
29989 esac
29990
29991 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29992 # uniformly replaced by the line number. The first 'sed' inserts a
29993 # line-number line before each line; the second 'sed' does the real
29994 # work. The second script uses 'N' to pair each line-number line
29995 # with the numbered line, and appends trailing '-' during
29996 # substitution so that $LINENO is not a special case at line end.
29997 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29998 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29999 sed '=' <$as_myself |
30000 sed '
30001 N
30002 s,$,-,
30003 : loop
30004 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30005 t loop
30006 s,-$,,
30007 s,^['$as_cr_digits']*\n,,
30008 ' >$as_me.lineno &&
30009 chmod +x $as_me.lineno ||
30010 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30011echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30012 { (exit 1); exit 1; }; }
30013
30014 # Don't try to exec as it changes $[0], causing all sort of problems
30015 # (the dirname of $[0] is not the place where we might find the
30016 # original and so on. Autoconf is especially sensible to this).
30017 . ./$as_me.lineno
30018 # Exit status is that of the last command.
30019 exit
30020}
30021
30022
30023case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30024 *c*,-n*) ECHO_N= ECHO_C='
30025' ECHO_T=' ' ;;
30026 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30027 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30028esac
30029
30030if expr a : '\(a\)' >/dev/null 2>&1; then
30031 as_expr=expr
30032else
30033 as_expr=false
30034fi
30035
30036rm -f conf$$ conf$$.exe conf$$.file
30037echo >conf$$.file
30038if ln -s conf$$.file conf$$ 2>/dev/null; then
30039 # We could just check for DJGPP; but this test a) works b) is more generic
30040 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30041 if test -f conf$$.exe; then
30042 # Don't use ln at all; we don't have any links
30043 as_ln_s='cp -p'
30044 else
30045 as_ln_s='ln -s'
30046 fi
30047elif ln conf$$.file conf$$ 2>/dev/null; then
30048 as_ln_s=ln
30049else
30050 as_ln_s='cp -p'
30051fi
30052rm -f conf$$ conf$$.exe conf$$.file
30053
John Criswell0c38eaf2003-09-10 15:17:25 +000030054if mkdir -p . 2>/dev/null; then
30055 as_mkdir_p=:
30056else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030057 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000030058 as_mkdir_p=false
30059fi
30060
John Criswell7a73b802003-06-30 21:59:07 +000030061as_executable_p="test -f"
30062
30063# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030064as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030065
30066# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030067as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030068
30069
30070# IFS
30071# We need space, tab and new line, in precisely that order.
30072as_nl='
30073'
30074IFS=" $as_nl"
30075
30076# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000030077$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000030078
30079exec 6>&1
30080
30081# Open the log real soon, to keep \$[0] and so on meaningful, and to
30082# report actual input values of CONFIG_FILES etc. instead of their
30083# values after options handling. Logging --version etc. is OK.
30084exec 5>>config.log
30085{
30086 echo
30087 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30088## Running $as_me. ##
30089_ASBOX
30090} >&5
30091cat >&5 <<_CSEOF
30092
Reid Spencerabec8f92004-10-27 23:03:44 +000030093This file was extended by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000030094generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000030095
30096 CONFIG_FILES = $CONFIG_FILES
30097 CONFIG_HEADERS = $CONFIG_HEADERS
30098 CONFIG_LINKS = $CONFIG_LINKS
30099 CONFIG_COMMANDS = $CONFIG_COMMANDS
30100 $ $0 $@
30101
30102_CSEOF
30103echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30104echo >&5
30105_ACEOF
30106
30107# Files that config.status was made for.
30108if test -n "$ac_config_files"; then
30109 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30110fi
30111
30112if test -n "$ac_config_headers"; then
30113 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30114fi
30115
30116if test -n "$ac_config_links"; then
30117 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30118fi
30119
30120if test -n "$ac_config_commands"; then
30121 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30122fi
30123
30124cat >>$CONFIG_STATUS <<\_ACEOF
30125
30126ac_cs_usage="\
30127\`$as_me' instantiates files from templates according to the
30128current configuration.
30129
30130Usage: $0 [OPTIONS] [FILE]...
30131
30132 -h, --help print this help, then exit
30133 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000030134 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000030135 -d, --debug don't remove temporary files
30136 --recheck update $as_me by reconfiguring in the same conditions
30137 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030138 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000030139 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030140 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000030141
30142Configuration files:
30143$config_files
30144
30145Configuration headers:
30146$config_headers
30147
Reid Spencerde8c47f2004-08-29 19:35:28 +000030148Configuration links:
30149$config_links
30150
John Criswellc764fbc2003-09-06 15:17:13 +000030151Configuration commands:
30152$config_commands
30153
John Criswell7a73b802003-06-30 21:59:07 +000030154Report bugs to <bug-autoconf@gnu.org>."
30155_ACEOF
30156
30157cat >>$CONFIG_STATUS <<_ACEOF
30158ac_cs_version="\\
Reid Spencerabec8f92004-10-27 23:03:44 +000030159llvm config.status 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +000030160configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000030161 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30162
Reid Spencer2706f8c2004-09-19 23:53:36 +000030163Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000030164This config.status script is free software; the Free Software Foundation
30165gives unlimited permission to copy, distribute and modify it."
30166srcdir=$srcdir
30167INSTALL="$INSTALL"
30168_ACEOF
30169
30170cat >>$CONFIG_STATUS <<\_ACEOF
30171# If no file are specified by the user, then we need to provide default
30172# value. By we need to know if files were specified by the user.
30173ac_need_defaults=:
30174while test $# != 0
30175do
30176 case $1 in
30177 --*=*)
30178 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30179 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030180 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000030181 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030182 -*)
30183 ac_option=$1
30184 ac_optarg=$2
30185 ac_shift=shift
30186 ;;
John Criswell7a73b802003-06-30 21:59:07 +000030187 *) # This is not an option, so the user has probably given explicit
30188 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000030189 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000030190 ac_need_defaults=false;;
30191 esac
30192
John Criswell0c38eaf2003-09-10 15:17:25 +000030193 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000030194 # Handling of the options.
30195_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000030196cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030197 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30198 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030199 --version | --vers* | -V )
30200 echo "$ac_cs_version"; exit 0 ;;
30201 --he | --h)
30202 # Conflict between --help and --header
30203 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30204Try \`$0 --help' for more information." >&5
30205echo "$as_me: error: ambiguous option: $1
30206Try \`$0 --help' for more information." >&2;}
30207 { (exit 1); exit 1; }; };;
30208 --help | --hel | -h )
30209 echo "$ac_cs_usage"; exit 0 ;;
30210 --debug | --d* | -d )
30211 debug=: ;;
30212 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000030213 $ac_shift
30214 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030215 ac_need_defaults=false;;
30216 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000030217 $ac_shift
30218 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030219 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30221 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30222 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030223
30224 # This is an error.
30225 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30226Try \`$0 --help' for more information." >&5
30227echo "$as_me: error: unrecognized option: $1
30228Try \`$0 --help' for more information." >&2;}
30229 { (exit 1); exit 1; }; } ;;
30230
30231 *) ac_config_targets="$ac_config_targets $1" ;;
30232
30233 esac
30234 shift
30235done
30236
John Criswell0c38eaf2003-09-10 15:17:25 +000030237ac_configure_extra_args=
30238
30239if $ac_cs_silent; then
30240 exec 6>/dev/null
30241 ac_configure_extra_args="$ac_configure_extra_args --silent"
30242fi
30243
30244_ACEOF
30245cat >>$CONFIG_STATUS <<_ACEOF
30246if \$ac_cs_recheck; then
30247 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30248 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30249fi
30250
John Criswell7a73b802003-06-30 21:59:07 +000030251_ACEOF
30252
John Criswellc764fbc2003-09-06 15:17:13 +000030253cat >>$CONFIG_STATUS <<_ACEOF
30254#
30255# INIT-COMMANDS section.
30256#
John Criswell7a73b802003-06-30 21:59:07 +000030257
John Criswellc764fbc2003-09-06 15:17:13 +000030258${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30259${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000030260${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030261${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030262${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030263${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30264${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellc764fbc2003-09-06 15:17:13 +000030265${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000030266${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030267${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030268
30269_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030270
30271
30272
30273cat >>$CONFIG_STATUS <<\_ACEOF
30274for ac_config_target in $ac_config_targets
30275do
30276 case "$ac_config_target" in
30277 # Handling of arguments.
30278 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer0acd65f2004-11-23 23:48:45 +000030279 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30280 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30281 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30282 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000030283 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spenceredd01b92004-11-25 06:03:14 +000030284 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030285 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30286 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000030287 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030288 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030289 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030290 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30291 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030292 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000030293 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030294 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000030295 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000030296 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000030297 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30298 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000030299 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30300 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000030301 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30302echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30303 { (exit 1); exit 1; }; };;
30304 esac
30305done
30306
30307# If the user did not use the arguments to specify the items to instantiate,
30308# then the envvar interface is used. Set only those that are not.
30309# We use the long form for the default assignment because of an extremely
30310# bizarre bug on SunOS 4.1.3.
30311if $ac_need_defaults; then
30312 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30313 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Reid Spencerde8c47f2004-08-29 19:35:28 +000030314 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
John Criswellc764fbc2003-09-06 15:17:13 +000030315 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000030316fi
30317
John Criswell0c38eaf2003-09-10 15:17:25 +000030318# Have a temporary directory for convenience. Make it in the build tree
30319# simply because there is no reason to put it here, and in addition,
30320# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000030321# Create a temporary directory, and hook for its removal unless debugging.
30322$debug ||
30323{
30324 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30325 trap '{ (exit 1); exit 1; }' 1 2 13 15
30326}
30327
30328# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000030329
John Criswell7a73b802003-06-30 21:59:07 +000030330{
John Criswell0c38eaf2003-09-10 15:17:25 +000030331 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000030332 test -n "$tmp" && test -d "$tmp"
30333} ||
30334{
John Criswell0c38eaf2003-09-10 15:17:25 +000030335 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000030336 (umask 077 && mkdir $tmp)
30337} ||
30338{
John Criswell0c38eaf2003-09-10 15:17:25 +000030339 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000030340 { (exit 1); exit 1; }
30341}
30342
30343_ACEOF
30344
30345cat >>$CONFIG_STATUS <<_ACEOF
30346
30347#
30348# CONFIG_FILES section.
30349#
30350
30351# No need to generate the scripts if there are no CONFIG_FILES.
30352# This happens for instance when ./config.status config.h
30353if test -n "\$CONFIG_FILES"; then
30354 # Protect against being on the right side of a sed subst in config.status.
30355 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30356 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30357s,@SHELL@,$SHELL,;t t
30358s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30359s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30360s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30361s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30362s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30363s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30364s,@exec_prefix@,$exec_prefix,;t t
30365s,@prefix@,$prefix,;t t
30366s,@program_transform_name@,$program_transform_name,;t t
30367s,@bindir@,$bindir,;t t
30368s,@sbindir@,$sbindir,;t t
30369s,@libexecdir@,$libexecdir,;t t
30370s,@datadir@,$datadir,;t t
30371s,@sysconfdir@,$sysconfdir,;t t
30372s,@sharedstatedir@,$sharedstatedir,;t t
30373s,@localstatedir@,$localstatedir,;t t
30374s,@libdir@,$libdir,;t t
30375s,@includedir@,$includedir,;t t
30376s,@oldincludedir@,$oldincludedir,;t t
30377s,@infodir@,$infodir,;t t
30378s,@mandir@,$mandir,;t t
30379s,@build_alias@,$build_alias,;t t
30380s,@host_alias@,$host_alias,;t t
30381s,@target_alias@,$target_alias,;t t
30382s,@DEFS@,$DEFS,;t t
30383s,@ECHO_C@,$ECHO_C,;t t
30384s,@ECHO_N@,$ECHO_N,;t t
30385s,@ECHO_T@,$ECHO_T,;t t
30386s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030387s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000030388s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030389s,@build@,$build,;t t
30390s,@build_cpu@,$build_cpu,;t t
30391s,@build_vendor@,$build_vendor,;t t
30392s,@build_os@,$build_os,;t t
30393s,@host@,$host,;t t
30394s,@host_cpu@,$host_cpu,;t t
30395s,@host_vendor@,$host_vendor,;t t
30396s,@host_os@,$host_os,;t t
30397s,@target@,$target,;t t
30398s,@target_cpu@,$target_cpu,;t t
30399s,@target_vendor@,$target_vendor,;t t
30400s,@target_os@,$target_os,;t t
30401s,@OS@,$OS,;t t
John Criswell76595452003-07-01 22:07:39 +000030402s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030403s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030404s,@CC@,$CC,;t t
30405s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030406s,@LDFLAGS@,$LDFLAGS,;t t
30407s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030408s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030409s,@EXEEXT@,$EXEEXT,;t t
30410s,@OBJEXT@,$OBJEXT,;t t
30411s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30412s,@JIT@,$JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030413s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030414s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030415s,@CXX@,$CXX,;t t
30416s,@CXXFLAGS@,$CXXFLAGS,;t t
30417s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030418s,@LEX@,$LEX,;t t
30419s,@LEXLIB@,$LEXLIB,;t t
30420s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000030421s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030422s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000030423s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030424s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030425s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000030426s,@CMP@,$CMP,;t t
30427s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030428s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030429s,@FIND@,$FIND,;t t
30430s,@GREP@,$GREP,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000030431s,@LLVMGCC@,$LLVMGCC,;t t
30432s,@LLVMGXX@,$LLVMGXX,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030433s,@MKDIR@,$MKDIR,;t t
30434s,@MV@,$MV,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030435s,@PAX@,$PAX,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030436s,@RANLIB@,$RANLIB,;t t
30437s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030438s,@RM@,$RM,;t t
30439s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000030440s,@TAR@,$TAR,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030441s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30442s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30443s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030444s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030445s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030446s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030447s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030448s,@GROFF@,$GROFF,;t t
30449s,@GZIP@,$GZIP,;t t
30450s,@POD2HTML@,$POD2HTML,;t t
30451s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000030452s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000030453s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030454s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030455s,@EGREP@,$EGREP,;t t
30456s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30457s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30458s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30459s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30460s,@LIBADD_DL@,$LIBADD_DL,;t t
30461s,@ECHO@,$ECHO,;t t
30462s,@AR@,$AR,;t t
30463s,@ac_ct_AR@,$ac_ct_AR,;t t
30464s,@STRIP@,$STRIP,;t t
30465s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30466s,@CXXCPP@,$CXXCPP,;t t
30467s,@F77@,$F77,;t t
30468s,@FFLAGS@,$FFLAGS,;t t
30469s,@ac_ct_F77@,$ac_ct_F77,;t t
30470s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030471s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030472s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030473s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000030474s,@LLVMCC1@,$LLVMCC1,;t t
30475s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000030476s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000030477s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000030478s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30479s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30480s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30481s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30482s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30483s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30484s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30485s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30486s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30487s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000030488s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000030489s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030490CEOF
30491
30492_ACEOF
30493
30494 cat >>$CONFIG_STATUS <<\_ACEOF
30495 # Split the substitutions into bite-sized pieces for seds with
30496 # small command number limits, like on Digital OSF/1 and HP-UX.
30497 ac_max_sed_lines=48
30498 ac_sed_frag=1 # Number of current file.
30499 ac_beg=1 # First line for current file.
30500 ac_end=$ac_max_sed_lines # Line after last line for current file.
30501 ac_more_lines=:
30502 ac_sed_cmds=
30503 while $ac_more_lines; do
30504 if test $ac_beg -gt 1; then
30505 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30506 else
30507 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30508 fi
30509 if test ! -s $tmp/subs.frag; then
30510 ac_more_lines=false
30511 else
30512 # The purpose of the label and of the branching condition is to
30513 # speed up the sed processing (if there are no `@' at all, there
30514 # is no need to browse any of the substitutions).
30515 # These are the two extra sed commands mentioned above.
30516 (echo ':t
30517 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30518 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030519 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000030520 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030521 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000030522 fi
30523 ac_sed_frag=`expr $ac_sed_frag + 1`
30524 ac_beg=$ac_end
30525 ac_end=`expr $ac_end + $ac_max_sed_lines`
30526 fi
30527 done
30528 if test -z "$ac_sed_cmds"; then
30529 ac_sed_cmds=cat
30530 fi
30531fi # test -n "$CONFIG_FILES"
30532
30533_ACEOF
30534cat >>$CONFIG_STATUS <<\_ACEOF
30535for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30536 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30537 case $ac_file in
30538 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000030539 cat >$tmp/stdin
30540 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30541 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030542 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000030543 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030544 * ) ac_file_in=$ac_file.in ;;
30545 esac
30546
30547 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30548 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30549$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030550 X"$ac_file" : 'X\(//\)[^/]' \| \
30551 X"$ac_file" : 'X\(//\)$' \| \
30552 X"$ac_file" : 'X\(/\)' \| \
30553 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000030554echo X"$ac_file" |
30555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30556 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30557 /^X\(\/\/\)$/{ s//\1/; q; }
30558 /^X\(\/\).*/{ s//\1/; q; }
30559 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030560 { if $as_mkdir_p; then
30561 mkdir -p "$ac_dir"
30562 else
30563 as_dir="$ac_dir"
30564 as_dirs=
30565 while test ! -d "$as_dir"; do
30566 as_dirs="$as_dir $as_dirs"
30567 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30568$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030569 X"$as_dir" : 'X\(//\)[^/]' \| \
30570 X"$as_dir" : 'X\(//\)$' \| \
30571 X"$as_dir" : 'X\(/\)' \| \
30572 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000030573echo X"$as_dir" |
30574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30575 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30576 /^X\(\/\/\)$/{ s//\1/; q; }
30577 /^X\(\/\).*/{ s//\1/; q; }
30578 s/.*/./; q'`
30579 done
30580 test ! -n "$as_dirs" || mkdir $as_dirs
30581 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30582echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30583 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000030584
30585 ac_builddir=.
30586
30587if test "$ac_dir" != .; then
30588 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30589 # A "../" for each directory in $ac_dir_suffix.
30590 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30591else
30592 ac_dir_suffix= ac_top_builddir=
30593fi
30594
30595case $srcdir in
30596 .) # No --srcdir option. We are building in place.
30597 ac_srcdir=.
30598 if test -z "$ac_top_builddir"; then
30599 ac_top_srcdir=.
30600 else
30601 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30602 fi ;;
30603 [\\/]* | ?:[\\/]* ) # Absolute path.
30604 ac_srcdir=$srcdir$ac_dir_suffix;
30605 ac_top_srcdir=$srcdir ;;
30606 *) # Relative path.
30607 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30608 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30609esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000030610
30611# Do not use `cd foo && pwd` to compute absolute paths, because
30612# the directories may not exist.
30613case `pwd` in
30614.) ac_abs_builddir="$ac_dir";;
30615*)
30616 case "$ac_dir" in
30617 .) ac_abs_builddir=`pwd`;;
30618 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30619 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30620 esac;;
30621esac
30622case $ac_abs_builddir in
30623.) ac_abs_top_builddir=${ac_top_builddir}.;;
30624*)
30625 case ${ac_top_builddir}. in
30626 .) ac_abs_top_builddir=$ac_abs_builddir;;
30627 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30628 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30629 esac;;
30630esac
30631case $ac_abs_builddir in
30632.) ac_abs_srcdir=$ac_srcdir;;
30633*)
30634 case $ac_srcdir in
30635 .) ac_abs_srcdir=$ac_abs_builddir;;
30636 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30637 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30638 esac;;
30639esac
30640case $ac_abs_builddir in
30641.) ac_abs_top_srcdir=$ac_top_srcdir;;
30642*)
30643 case $ac_top_srcdir in
30644 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30645 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30646 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30647 esac;;
30648esac
John Criswell7a73b802003-06-30 21:59:07 +000030649
30650
30651 case $INSTALL in
30652 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30653 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30654 esac
30655
30656 if test x"$ac_file" != x-; then
30657 { echo "$as_me:$LINENO: creating $ac_file" >&5
30658echo "$as_me: creating $ac_file" >&6;}
30659 rm -f "$ac_file"
30660 fi
30661 # Let's still pretend it is `configure' which instantiates (i.e., don't
30662 # use $as_me), people would be surprised to read:
30663 # /* config.h. Generated by config.status. */
30664 if test x"$ac_file" = x-; then
30665 configure_input=
30666 else
30667 configure_input="$ac_file. "
30668 fi
30669 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030670 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000030671
30672 # First look for the input files in the build tree, otherwise in the
30673 # src tree.
30674 ac_file_inputs=`IFS=:
30675 for f in $ac_file_in; do
30676 case $f in
30677 -) echo $tmp/stdin ;;
30678 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000030679 # Absolute (can't be DOS-style, as IFS=:)
30680 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030681echo "$as_me: error: cannot find input file: $f" >&2;}
30682 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030683 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000030684 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000030685 if test -f "$f"; then
30686 # Build tree
30687 echo "$f"
30688 elif test -f "$srcdir/$f"; then
30689 # Source tree
30690 echo "$srcdir/$f"
30691 else
30692 # /dev/null tree
30693 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030694echo "$as_me: error: cannot find input file: $f" >&2;}
30695 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030696 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000030697 esac
30698 done` || { (exit 1); exit 1; }
30699_ACEOF
30700cat >>$CONFIG_STATUS <<_ACEOF
30701 sed "$ac_vpsub
30702$extrasub
30703_ACEOF
30704cat >>$CONFIG_STATUS <<\_ACEOF
30705:t
30706/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30707s,@configure_input@,$configure_input,;t t
30708s,@srcdir@,$ac_srcdir,;t t
30709s,@abs_srcdir@,$ac_abs_srcdir,;t t
30710s,@top_srcdir@,$ac_top_srcdir,;t t
30711s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30712s,@builddir@,$ac_builddir,;t t
30713s,@abs_builddir@,$ac_abs_builddir,;t t
30714s,@top_builddir@,$ac_top_builddir,;t t
30715s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30716s,@INSTALL@,$ac_INSTALL,;t t
30717" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30718 rm -f $tmp/stdin
30719 if test x"$ac_file" != x-; then
30720 mv $tmp/out $ac_file
30721 else
30722 cat $tmp/out
30723 rm -f $tmp/out
30724 fi
30725
30726done
30727_ACEOF
30728cat >>$CONFIG_STATUS <<\_ACEOF
30729
30730#
30731# CONFIG_HEADER section.
30732#
30733
30734# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30735# NAME is the cpp macro being defined and VALUE is the value it is being given.
30736#
30737# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030738ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30739ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000030740ac_dC=' '
30741ac_dD=',;t'
30742# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000030743ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000030744ac_uB='$,\1#\2define\3'
30745ac_uC=' '
30746ac_uD=',;t'
30747
30748for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30749 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30750 case $ac_file in
30751 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000030752 cat >$tmp/stdin
30753 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30754 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030755 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000030756 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030757 * ) ac_file_in=$ac_file.in ;;
30758 esac
30759
30760 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30761echo "$as_me: creating $ac_file" >&6;}
30762
30763 # First look for the input files in the build tree, otherwise in the
30764 # src tree.
30765 ac_file_inputs=`IFS=:
30766 for f in $ac_file_in; do
30767 case $f in
30768 -) echo $tmp/stdin ;;
30769 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000030770 # Absolute (can't be DOS-style, as IFS=:)
30771 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030772echo "$as_me: error: cannot find input file: $f" >&2;}
30773 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030774 # Do quote $f, to prevent DOS paths from being IFS'd.
30775 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000030776 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000030777 if test -f "$f"; then
30778 # Build tree
30779 echo "$f"
30780 elif test -f "$srcdir/$f"; then
30781 # Source tree
30782 echo "$srcdir/$f"
30783 else
30784 # /dev/null tree
30785 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030786echo "$as_me: error: cannot find input file: $f" >&2;}
30787 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030788 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000030789 esac
30790 done` || { (exit 1); exit 1; }
30791 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030792 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000030793
30794_ACEOF
30795
30796# Transform confdefs.h into two sed scripts, `conftest.defines' and
30797# `conftest.undefs', that substitutes the proper values into
30798# config.h.in to produce config.h. The first handles `#define'
30799# templates, and the second `#undef' templates.
30800# And first: Protect against being on the right side of a sed subst in
30801# config.status. Protect against being in an unquoted here document
30802# in config.status.
30803rm -f conftest.defines conftest.undefs
30804# Using a here document instead of a string reduces the quoting nightmare.
30805# Putting comments in sed scripts is not portable.
30806#
30807# `end' is used to avoid that the second main sed command (meant for
30808# 0-ary CPP macros) applies to n-ary macro definitions.
30809# See the Autoconf documentation for `clear'.
30810cat >confdef2sed.sed <<\_ACEOF
30811s/[\\&,]/\\&/g
30812s,[\\$`],\\&,g
30813t clear
30814: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000030815s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000030816t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000030817s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000030818: end
30819_ACEOF
30820# If some macros were called several times there might be several times
30821# the same #defines, which is useless. Nevertheless, we may not want to
30822# sort them, since we want the *last* AC-DEFINE to be honored.
30823uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30824sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30825rm -f confdef2sed.sed
30826
30827# This sed command replaces #undef with comments. This is necessary, for
30828# example, in the case of _POSIX_SOURCE, which is predefined and required
30829# on some systems where configure will not decide to define it.
30830cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000030831s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000030832_ACEOF
30833
30834# Break up conftest.defines because some shells have a limit on the size
30835# of here documents, and old seds have small limits too (100 cmds).
30836echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000030837echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030838echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30839echo ' :' >>$CONFIG_STATUS
30840rm -f conftest.tail
30841while grep . conftest.defines >/dev/null
30842do
30843 # Write a limited-size here document to $tmp/defines.sed.
30844 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30845 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030846 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030847 # Work around the forget-to-reset-the-flag bug.
30848 echo 't clr' >>$CONFIG_STATUS
30849 echo ': clr' >>$CONFIG_STATUS
30850 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30851 echo 'CEOF
30852 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30853 rm -f $tmp/in
30854 mv $tmp/out $tmp/in
30855' >>$CONFIG_STATUS
30856 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30857 rm -f conftest.defines
30858 mv conftest.tail conftest.defines
30859done
30860rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000030861echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030862echo >>$CONFIG_STATUS
30863
30864# Break up conftest.undefs because some shells have a limit on the size
30865# of here documents, and old seds have small limits too (100 cmds).
30866echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30867rm -f conftest.tail
30868while grep . conftest.undefs >/dev/null
30869do
30870 # Write a limited-size here document to $tmp/undefs.sed.
30871 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30872 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000030873 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030874 # Work around the forget-to-reset-the-flag bug.
30875 echo 't clr' >>$CONFIG_STATUS
30876 echo ': clr' >>$CONFIG_STATUS
30877 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30878 echo 'CEOF
30879 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30880 rm -f $tmp/in
30881 mv $tmp/out $tmp/in
30882' >>$CONFIG_STATUS
30883 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30884 rm -f conftest.undefs
30885 mv conftest.tail conftest.undefs
30886done
30887rm -f conftest.undefs
30888
30889cat >>$CONFIG_STATUS <<\_ACEOF
30890 # Let's still pretend it is `configure' which instantiates (i.e., don't
30891 # use $as_me), people would be surprised to read:
30892 # /* config.h. Generated by config.status. */
30893 if test x"$ac_file" = x-; then
30894 echo "/* Generated by configure. */" >$tmp/config.h
30895 else
30896 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30897 fi
30898 cat $tmp/in >>$tmp/config.h
30899 rm -f $tmp/in
30900 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030901 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030902 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30903echo "$as_me: $ac_file is unchanged" >&6;}
30904 else
30905 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30906$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030907 X"$ac_file" : 'X\(//\)[^/]' \| \
30908 X"$ac_file" : 'X\(//\)$' \| \
30909 X"$ac_file" : 'X\(/\)' \| \
30910 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000030911echo X"$ac_file" |
30912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30913 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30914 /^X\(\/\/\)$/{ s//\1/; q; }
30915 /^X\(\/\).*/{ s//\1/; q; }
30916 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030917 { if $as_mkdir_p; then
30918 mkdir -p "$ac_dir"
30919 else
30920 as_dir="$ac_dir"
30921 as_dirs=
30922 while test ! -d "$as_dir"; do
30923 as_dirs="$as_dir $as_dirs"
30924 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30925$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030926 X"$as_dir" : 'X\(//\)[^/]' \| \
30927 X"$as_dir" : 'X\(//\)$' \| \
30928 X"$as_dir" : 'X\(/\)' \| \
30929 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000030930echo X"$as_dir" |
30931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30932 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30933 /^X\(\/\/\)$/{ s//\1/; q; }
30934 /^X\(\/\).*/{ s//\1/; q; }
30935 s/.*/./; q'`
30936 done
30937 test ! -n "$as_dirs" || mkdir $as_dirs
30938 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30939echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30940 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000030941
30942 rm -f $ac_file
30943 mv $tmp/config.h $ac_file
30944 fi
30945 else
30946 cat $tmp/config.h
30947 rm -f $tmp/config.h
30948 fi
30949done
30950_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000030951cat >>$CONFIG_STATUS <<\_ACEOF
30952
30953#
Reid Spencerde8c47f2004-08-29 19:35:28 +000030954# CONFIG_LINKS section.
30955#
30956
30957for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30958 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30959 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30960
30961 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30962echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30963
30964 if test ! -r $srcdir/$ac_source; then
30965 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30966echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30967 { (exit 1); exit 1; }; }
30968 fi
30969 rm -f $ac_dest
30970
30971 # Make relative symlinks.
30972 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30973$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030974 X"$ac_dest" : 'X\(//\)[^/]' \| \
30975 X"$ac_dest" : 'X\(//\)$' \| \
30976 X"$ac_dest" : 'X\(/\)' \| \
30977 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000030978echo X"$ac_dest" |
30979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30980 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30981 /^X\(\/\/\)$/{ s//\1/; q; }
30982 /^X\(\/\).*/{ s//\1/; q; }
30983 s/.*/./; q'`
30984 { if $as_mkdir_p; then
30985 mkdir -p "$ac_dest_dir"
30986 else
30987 as_dir="$ac_dest_dir"
30988 as_dirs=
30989 while test ! -d "$as_dir"; do
30990 as_dirs="$as_dir $as_dirs"
30991 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30992$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030993 X"$as_dir" : 'X\(//\)[^/]' \| \
30994 X"$as_dir" : 'X\(//\)$' \| \
30995 X"$as_dir" : 'X\(/\)' \| \
30996 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000030997echo X"$as_dir" |
30998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30999 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31000 /^X\(\/\/\)$/{ s//\1/; q; }
31001 /^X\(\/\).*/{ s//\1/; q; }
31002 s/.*/./; q'`
31003 done
31004 test ! -n "$as_dirs" || mkdir $as_dirs
31005 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
31006echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
31007 { (exit 1); exit 1; }; }; }
31008
31009 ac_builddir=.
31010
31011if test "$ac_dest_dir" != .; then
31012 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
31013 # A "../" for each directory in $ac_dir_suffix.
31014 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31015else
31016 ac_dir_suffix= ac_top_builddir=
31017fi
31018
31019case $srcdir in
31020 .) # No --srcdir option. We are building in place.
31021 ac_srcdir=.
31022 if test -z "$ac_top_builddir"; then
31023 ac_top_srcdir=.
31024 else
31025 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31026 fi ;;
31027 [\\/]* | ?:[\\/]* ) # Absolute path.
31028 ac_srcdir=$srcdir$ac_dir_suffix;
31029 ac_top_srcdir=$srcdir ;;
31030 *) # Relative path.
31031 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31032 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31033esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031034
31035# Do not use `cd foo && pwd` to compute absolute paths, because
31036# the directories may not exist.
31037case `pwd` in
31038.) ac_abs_builddir="$ac_dest_dir";;
31039*)
31040 case "$ac_dest_dir" in
31041 .) ac_abs_builddir=`pwd`;;
31042 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
31043 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
31044 esac;;
31045esac
31046case $ac_abs_builddir in
31047.) ac_abs_top_builddir=${ac_top_builddir}.;;
31048*)
31049 case ${ac_top_builddir}. in
31050 .) ac_abs_top_builddir=$ac_abs_builddir;;
31051 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31052 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31053 esac;;
31054esac
31055case $ac_abs_builddir in
31056.) ac_abs_srcdir=$ac_srcdir;;
31057*)
31058 case $ac_srcdir in
31059 .) ac_abs_srcdir=$ac_abs_builddir;;
31060 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31061 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31062 esac;;
31063esac
31064case $ac_abs_builddir in
31065.) ac_abs_top_srcdir=$ac_top_srcdir;;
31066*)
31067 case $ac_top_srcdir in
31068 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31069 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31070 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31071 esac;;
31072esac
Reid Spencerde8c47f2004-08-29 19:35:28 +000031073
31074
31075 case $srcdir in
31076 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
31077 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
31078 esac
31079
31080 # Try a symlink, then a hard link, then a copy.
31081 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
31082 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
31083 cp -p $srcdir/$ac_source $ac_dest ||
31084 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
31085echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
31086 { (exit 1); exit 1; }; }
31087done
31088_ACEOF
31089cat >>$CONFIG_STATUS <<\_ACEOF
31090
31091#
John Criswellc764fbc2003-09-06 15:17:13 +000031092# CONFIG_COMMANDS section.
31093#
31094for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31095 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31096 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31097 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31098$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031099 X"$ac_dest" : 'X\(//\)[^/]' \| \
31100 X"$ac_dest" : 'X\(//\)$' \| \
31101 X"$ac_dest" : 'X\(/\)' \| \
31102 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000031103echo X"$ac_dest" |
31104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31105 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31106 /^X\(\/\/\)$/{ s//\1/; q; }
31107 /^X\(\/\).*/{ s//\1/; q; }
31108 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031109 { if $as_mkdir_p; then
31110 mkdir -p "$ac_dir"
31111 else
31112 as_dir="$ac_dir"
31113 as_dirs=
31114 while test ! -d "$as_dir"; do
31115 as_dirs="$as_dir $as_dirs"
31116 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31117$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31118 X"$as_dir" : 'X\(//\)[^/]' \| \
31119 X"$as_dir" : 'X\(//\)$' \| \
31120 X"$as_dir" : 'X\(/\)' \| \
31121 . : '\(.\)' 2>/dev/null ||
31122echo X"$as_dir" |
31123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31124 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31125 /^X\(\/\/\)$/{ s//\1/; q; }
31126 /^X\(\/\).*/{ s//\1/; q; }
31127 s/.*/./; q'`
31128 done
31129 test ! -n "$as_dirs" || mkdir $as_dirs
31130 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31131echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31132 { (exit 1); exit 1; }; }; }
31133
John Criswellc764fbc2003-09-06 15:17:13 +000031134 ac_builddir=.
31135
31136if test "$ac_dir" != .; then
31137 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31138 # A "../" for each directory in $ac_dir_suffix.
31139 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31140else
31141 ac_dir_suffix= ac_top_builddir=
31142fi
31143
31144case $srcdir in
31145 .) # No --srcdir option. We are building in place.
31146 ac_srcdir=.
31147 if test -z "$ac_top_builddir"; then
31148 ac_top_srcdir=.
31149 else
31150 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31151 fi ;;
31152 [\\/]* | ?:[\\/]* ) # Absolute path.
31153 ac_srcdir=$srcdir$ac_dir_suffix;
31154 ac_top_srcdir=$srcdir ;;
31155 *) # Relative path.
31156 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31157 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31158esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031159
31160# Do not use `cd foo && pwd` to compute absolute paths, because
31161# the directories may not exist.
31162case `pwd` in
31163.) ac_abs_builddir="$ac_dir";;
31164*)
31165 case "$ac_dir" in
31166 .) ac_abs_builddir=`pwd`;;
31167 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31168 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31169 esac;;
31170esac
31171case $ac_abs_builddir in
31172.) ac_abs_top_builddir=${ac_top_builddir}.;;
31173*)
31174 case ${ac_top_builddir}. in
31175 .) ac_abs_top_builddir=$ac_abs_builddir;;
31176 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31177 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31178 esac;;
31179esac
31180case $ac_abs_builddir in
31181.) ac_abs_srcdir=$ac_srcdir;;
31182*)
31183 case $ac_srcdir in
31184 .) ac_abs_srcdir=$ac_abs_builddir;;
31185 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31186 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31187 esac;;
31188esac
31189case $ac_abs_builddir in
31190.) ac_abs_top_srcdir=$ac_top_srcdir;;
31191*)
31192 case $ac_top_srcdir in
31193 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31194 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31195 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31196 esac;;
31197esac
John Criswellc764fbc2003-09-06 15:17:13 +000031198
31199
31200 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31201echo "$as_me: executing $ac_dest commands" >&6;}
31202 case $ac_dest in
31203 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31204 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000031205 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031206 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031207 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031208 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31209 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031210 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000031211 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031212 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031213 esac
31214done
31215_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031216
31217cat >>$CONFIG_STATUS <<\_ACEOF
31218
31219{ (exit 0); exit 0; }
31220_ACEOF
31221chmod +x $CONFIG_STATUS
31222ac_clean_files=$ac_clean_files_save
31223
31224
31225# configure is writing to config.log, and then calls config.status.
31226# config.status does its own redirection, appending to config.log.
31227# Unfortunately, on DOS this fails, as config.log is still kept open
31228# by configure, so config.status won't be able to write to it; its
31229# output is simply discarded. So we exec the FD to /dev/null,
31230# effectively closing config.log, so it can be properly (re)opened and
31231# appended to by config.status. When coming back to configure, we
31232# need to make the FD available again.
31233if test "$no_create" != yes; then
31234 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031235 ac_config_status_args=
31236 test "$silent" = yes &&
31237 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000031238 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000031239 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000031240 exec 5>>config.log
31241 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31242 # would make configure fail if this is the last instruction.
31243 $ac_cs_success || { (exit 1); exit 1; }
31244fi
31245
John Criswell12399a12003-09-30 15:55:44 +000031246#
31247# CONFIG_SUBDIRS section.
31248#
31249if test "$no_recursion" != yes; then
31250
31251 # Remove --cache-file and --srcdir arguments so they do not pile up.
31252 ac_sub_configure_args=
31253 ac_prev=
31254 for ac_arg in $ac_configure_args; do
31255 if test -n "$ac_prev"; then
31256 ac_prev=
31257 continue
31258 fi
31259 case $ac_arg in
31260 -cache-file | --cache-file | --cache-fil | --cache-fi \
31261 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31262 ac_prev=cache_file ;;
31263 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31264 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31265 | --c=*)
31266 ;;
31267 --config-cache | -C)
31268 ;;
31269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31270 ac_prev=srcdir ;;
31271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31272 ;;
31273 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31274 ac_prev=prefix ;;
31275 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31276 ;;
31277 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31278 esac
31279 done
31280
31281 # Always prepend --prefix to ensure using the same prefix
31282 # in subdir configurations.
31283 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31284
31285 ac_popdir=`pwd`
31286 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31287
31288 # Do not complain, so a configure script can configure whichever
31289 # parts of a large source tree are present.
31290 test -d $srcdir/$ac_dir || continue
31291
31292 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31293echo "$as_me: configuring in $ac_dir" >&6;}
31294 { if $as_mkdir_p; then
31295 mkdir -p "$ac_dir"
31296 else
31297 as_dir="$ac_dir"
31298 as_dirs=
31299 while test ! -d "$as_dir"; do
31300 as_dirs="$as_dir $as_dirs"
31301 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031303 X"$as_dir" : 'X\(//\)[^/]' \| \
31304 X"$as_dir" : 'X\(//\)$' \| \
31305 X"$as_dir" : 'X\(/\)' \| \
31306 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000031307echo X"$as_dir" |
31308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31309 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31310 /^X\(\/\/\)$/{ s//\1/; q; }
31311 /^X\(\/\).*/{ s//\1/; q; }
31312 s/.*/./; q'`
31313 done
31314 test ! -n "$as_dirs" || mkdir $as_dirs
31315 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31316echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31317 { (exit 1); exit 1; }; }; }
31318
31319 ac_builddir=.
31320
31321if test "$ac_dir" != .; then
31322 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31323 # A "../" for each directory in $ac_dir_suffix.
31324 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31325else
31326 ac_dir_suffix= ac_top_builddir=
31327fi
31328
31329case $srcdir in
31330 .) # No --srcdir option. We are building in place.
31331 ac_srcdir=.
31332 if test -z "$ac_top_builddir"; then
31333 ac_top_srcdir=.
31334 else
31335 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31336 fi ;;
31337 [\\/]* | ?:[\\/]* ) # Absolute path.
31338 ac_srcdir=$srcdir$ac_dir_suffix;
31339 ac_top_srcdir=$srcdir ;;
31340 *) # Relative path.
31341 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31342 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31343esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031344
31345# Do not use `cd foo && pwd` to compute absolute paths, because
31346# the directories may not exist.
31347case `pwd` in
31348.) ac_abs_builddir="$ac_dir";;
31349*)
31350 case "$ac_dir" in
31351 .) ac_abs_builddir=`pwd`;;
31352 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31353 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31354 esac;;
31355esac
31356case $ac_abs_builddir in
31357.) ac_abs_top_builddir=${ac_top_builddir}.;;
31358*)
31359 case ${ac_top_builddir}. in
31360 .) ac_abs_top_builddir=$ac_abs_builddir;;
31361 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31362 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31363 esac;;
31364esac
31365case $ac_abs_builddir in
31366.) ac_abs_srcdir=$ac_srcdir;;
31367*)
31368 case $ac_srcdir in
31369 .) ac_abs_srcdir=$ac_abs_builddir;;
31370 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31371 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31372 esac;;
31373esac
31374case $ac_abs_builddir in
31375.) ac_abs_top_srcdir=$ac_top_srcdir;;
31376*)
31377 case $ac_top_srcdir in
31378 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31379 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31380 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31381 esac;;
31382esac
John Criswell12399a12003-09-30 15:55:44 +000031383
31384
31385 cd $ac_dir
31386
31387 # Check for guested configure; otherwise get Cygnus style configure.
31388 if test -f $ac_srcdir/configure.gnu; then
31389 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31390 elif test -f $ac_srcdir/configure; then
31391 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31392 elif test -f $ac_srcdir/configure.in; then
31393 ac_sub_configure=$ac_configure
31394 else
31395 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31396echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31397 ac_sub_configure=
31398 fi
31399
31400 # The recursion is here.
31401 if test -n "$ac_sub_configure"; then
31402 # Make the cache file name correct relative to the subdirectory.
31403 case $cache_file in
31404 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31405 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031406 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000031407 esac
31408
31409 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31410echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31411 # The eval makes quoting arguments work.
31412 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031413 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31414 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000031415echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31416 { (exit 1); exit 1; }; }
31417 fi
31418
31419 cd $ac_popdir
31420 done
31421fi
31422
Brian Gaekef3b24102003-11-16 18:38:14 +000031423
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031424if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000031425 { echo "$as_me:$LINENO: WARNING: ***** llvmgcc/llvmg++ was not found, or does not appear to be " >&5
31426echo "$as_me: WARNING: ***** llvmgcc/llvmg++ was not found, or does not appear to be " >&2;}
31427 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31428echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31429 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31430echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31431 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31432echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31433 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31434echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000031435fi