blob: b335be56f8498f8a2530dc94c74844ca3445d169 [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
Reid Spencer95ed8432004-12-23 06:22:33 +00001745 i?86-*) llvm_cv_target_arch="x86" ;;
1746 amd64-*) llvm_cv_target_arch="amd64" ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001747 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1748 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1749 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001750esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001751fi
1752echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1753echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001754
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001755if test "$llvm_cv_target_arch" = "Unknown" ; then
1756 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1757echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1758fi
John Criswell76595452003-07-01 22:07:39 +00001759
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001760ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001761
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001762
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001763ac_ext=c
1764ac_cpp='$CPP $CPPFLAGS'
1765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1767ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001768if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001769 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1770set dummy ${ac_tool_prefix}gcc; ac_word=$2
1771echo "$as_me:$LINENO: checking for $ac_word" >&5
1772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773if test "${ac_cv_prog_CC+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1775else
1776 if test -n "$CC"; then
1777 ac_cv_prog_CC="$CC" # Let the user override the test.
1778else
1779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780for as_dir in $PATH
1781do
1782 IFS=$as_save_IFS
1783 test -z "$as_dir" && as_dir=.
1784 for ac_exec_ext in '' $ac_executable_extensions; do
1785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788 break 2
1789 fi
1790done
1791done
1792
1793fi
1794fi
1795CC=$ac_cv_prog_CC
1796if test -n "$CC"; then
1797 echo "$as_me:$LINENO: result: $CC" >&5
1798echo "${ECHO_T}$CC" >&6
1799else
1800 echo "$as_me:$LINENO: result: no" >&5
1801echo "${ECHO_T}no" >&6
1802fi
1803
1804fi
1805if test -z "$ac_cv_prog_CC"; then
1806 ac_ct_CC=$CC
1807 # Extract the first word of "gcc", so it can be a program name with args.
1808set dummy gcc; ac_word=$2
1809echo "$as_me:$LINENO: checking for $ac_word" >&5
1810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1813else
1814 if test -n "$ac_ct_CC"; then
1815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1816else
1817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818for as_dir in $PATH
1819do
1820 IFS=$as_save_IFS
1821 test -z "$as_dir" && as_dir=.
1822 for ac_exec_ext in '' $ac_executable_extensions; do
1823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824 ac_cv_prog_ac_ct_CC="gcc"
1825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826 break 2
1827 fi
1828done
1829done
1830
1831fi
1832fi
1833ac_ct_CC=$ac_cv_prog_ac_ct_CC
1834if test -n "$ac_ct_CC"; then
1835 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1836echo "${ECHO_T}$ac_ct_CC" >&6
1837else
1838 echo "$as_me:$LINENO: result: no" >&5
1839echo "${ECHO_T}no" >&6
1840fi
1841
1842 CC=$ac_ct_CC
1843else
1844 CC="$ac_cv_prog_CC"
1845fi
1846
1847if test -z "$CC"; then
1848 if test -n "$ac_tool_prefix"; then
1849 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1850set dummy ${ac_tool_prefix}cc; ac_word=$2
1851echo "$as_me:$LINENO: checking for $ac_word" >&5
1852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853if test "${ac_cv_prog_CC+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1855else
1856 if test -n "$CC"; then
1857 ac_cv_prog_CC="$CC" # Let the user override the test.
1858else
1859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860for as_dir in $PATH
1861do
1862 IFS=$as_save_IFS
1863 test -z "$as_dir" && as_dir=.
1864 for ac_exec_ext in '' $ac_executable_extensions; do
1865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866 ac_cv_prog_CC="${ac_tool_prefix}cc"
1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868 break 2
1869 fi
1870done
1871done
1872
1873fi
1874fi
1875CC=$ac_cv_prog_CC
1876if test -n "$CC"; then
1877 echo "$as_me:$LINENO: result: $CC" >&5
1878echo "${ECHO_T}$CC" >&6
1879else
1880 echo "$as_me:$LINENO: result: no" >&5
1881echo "${ECHO_T}no" >&6
1882fi
1883
1884fi
1885if test -z "$ac_cv_prog_CC"; then
1886 ac_ct_CC=$CC
1887 # Extract the first word of "cc", so it can be a program name with args.
1888set dummy cc; ac_word=$2
1889echo "$as_me:$LINENO: checking for $ac_word" >&5
1890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1893else
1894 if test -n "$ac_ct_CC"; then
1895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1896else
1897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898for as_dir in $PATH
1899do
1900 IFS=$as_save_IFS
1901 test -z "$as_dir" && as_dir=.
1902 for ac_exec_ext in '' $ac_executable_extensions; do
1903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904 ac_cv_prog_ac_ct_CC="cc"
1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 break 2
1907 fi
1908done
1909done
1910
1911fi
1912fi
1913ac_ct_CC=$ac_cv_prog_ac_ct_CC
1914if test -n "$ac_ct_CC"; then
1915 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1916echo "${ECHO_T}$ac_ct_CC" >&6
1917else
1918 echo "$as_me:$LINENO: result: no" >&5
1919echo "${ECHO_T}no" >&6
1920fi
1921
1922 CC=$ac_ct_CC
1923else
1924 CC="$ac_cv_prog_CC"
1925fi
1926
1927fi
1928if test -z "$CC"; then
1929 # Extract the first word of "cc", so it can be a program name with args.
1930set dummy cc; ac_word=$2
1931echo "$as_me:$LINENO: checking for $ac_word" >&5
1932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933if test "${ac_cv_prog_CC+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1935else
1936 if test -n "$CC"; then
1937 ac_cv_prog_CC="$CC" # Let the user override the test.
1938else
1939 ac_prog_rejected=no
1940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941for as_dir in $PATH
1942do
1943 IFS=$as_save_IFS
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1948 ac_prog_rejected=yes
1949 continue
1950 fi
1951 ac_cv_prog_CC="cc"
1952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953 break 2
1954 fi
1955done
1956done
1957
1958if test $ac_prog_rejected = yes; then
1959 # We found a bogon in the path, so make sure we never use it.
1960 set dummy $ac_cv_prog_CC
1961 shift
1962 if test $# != 0; then
1963 # We chose a different compiler from the bogus one.
1964 # However, it has the same basename, so the bogon will be chosen
1965 # first if we set CC to just the basename; use the full file name.
1966 shift
1967 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1968 fi
1969fi
1970fi
1971fi
1972CC=$ac_cv_prog_CC
1973if test -n "$CC"; then
1974 echo "$as_me:$LINENO: result: $CC" >&5
1975echo "${ECHO_T}$CC" >&6
1976else
1977 echo "$as_me:$LINENO: result: no" >&5
1978echo "${ECHO_T}no" >&6
1979fi
1980
1981fi
1982if test -z "$CC"; then
1983 if test -n "$ac_tool_prefix"; then
1984 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00001985 do
1986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1987set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1988echo "$as_me:$LINENO: checking for $ac_word" >&5
1989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001990if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00001991 echo $ECHO_N "(cached) $ECHO_C" >&6
1992else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001993 if test -n "$CC"; then
1994 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001995else
1996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997for as_dir in $PATH
1998do
1999 IFS=$as_save_IFS
2000 test -z "$as_dir" && as_dir=.
2001 for ac_exec_ext in '' $ac_executable_extensions; do
2002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002003 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 break 2
2006 fi
2007done
2008done
2009
2010fi
2011fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002012CC=$ac_cv_prog_CC
2013if test -n "$CC"; then
2014 echo "$as_me:$LINENO: result: $CC" >&5
2015echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002016else
2017 echo "$as_me:$LINENO: result: no" >&5
2018echo "${ECHO_T}no" >&6
2019fi
2020
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002021 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002022 done
2023fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002024if test -z "$CC"; then
2025 ac_ct_CC=$CC
2026 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002027do
2028 # Extract the first word of "$ac_prog", so it can be a program name with args.
2029set dummy $ac_prog; ac_word=$2
2030echo "$as_me:$LINENO: checking for $ac_word" >&5
2031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002032if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002033 echo $ECHO_N "(cached) $ECHO_C" >&6
2034else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002035 if test -n "$ac_ct_CC"; then
2036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002037else
2038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039for as_dir in $PATH
2040do
2041 IFS=$as_save_IFS
2042 test -z "$as_dir" && as_dir=.
2043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002045 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047 break 2
2048 fi
2049done
2050done
2051
2052fi
2053fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002054ac_ct_CC=$ac_cv_prog_ac_ct_CC
2055if test -n "$ac_ct_CC"; then
2056 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2057echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002058else
2059 echo "$as_me:$LINENO: result: no" >&5
2060echo "${ECHO_T}no" >&6
2061fi
2062
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002063 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002064done
John Criswell7a73b802003-06-30 21:59:07 +00002065
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002066 CC=$ac_ct_CC
2067fi
2068
John Criswell7a73b802003-06-30 21:59:07 +00002069fi
2070
2071
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002072test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2073See \`config.log' for more details." >&5
2074echo "$as_me: error: no acceptable C compiler found in \$PATH
2075See \`config.log' for more details." >&2;}
2076 { (exit 1); exit 1; }; }
2077
John Criswell7a73b802003-06-30 21:59:07 +00002078# Provide some information about the compiler.
2079echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002080 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002081ac_compiler=`set X $ac_compile; echo $2`
2082{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2083 (eval $ac_compiler --version </dev/null >&5) 2>&5
2084 ac_status=$?
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }
2087{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2088 (eval $ac_compiler -v </dev/null >&5) 2>&5
2089 ac_status=$?
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }
2092{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2093 (eval $ac_compiler -V </dev/null >&5) 2>&5
2094 ac_status=$?
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }
2097
2098cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002099/* confdefs.h. */
2100_ACEOF
2101cat confdefs.h >>conftest.$ac_ext
2102cat >>conftest.$ac_ext <<_ACEOF
2103/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002104
John Criswell7a73b802003-06-30 21:59:07 +00002105int
2106main ()
2107{
2108
2109 ;
2110 return 0;
2111}
2112_ACEOF
2113ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002114ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002115# Try to create an executable without -o first, disregard a.out.
2116# It will help us diagnose broken compilers, and finding out an intuition
2117# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002118echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2119echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002120ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2121if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2122 (eval $ac_link_default) 2>&5
2123 ac_status=$?
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }; then
2126 # Find the output, starting from the most likely. This scheme is
2127# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2128# resort.
2129
2130# Be careful to initialize this variable, since it used to be cached.
2131# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2132ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002133# b.out is created by i960 compilers.
2134for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2135do
2136 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002137 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002139 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002140 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002141 # This is the source file.
2142 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002143 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002144 # We found the default executable, but exeext='' is most
2145 # certainly right.
2146 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002147 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002148 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2149 # FIXME: I believe we export ac_cv_exeext for Libtool,
2150 # but it would be cool to find out if it's true. Does anybody
2151 # maintain Libtool? --akim.
2152 export ac_cv_exeext
2153 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002154 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002155 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002156 esac
2157done
2158else
2159 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002160sed 's/^/| /' conftest.$ac_ext >&5
2161
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002162{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002163See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002164echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002165See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002166 { (exit 77); exit 77; }; }
2167fi
2168
2169ac_exeext=$ac_cv_exeext
2170echo "$as_me:$LINENO: result: $ac_file" >&5
2171echo "${ECHO_T}$ac_file" >&6
2172
2173# Check the compiler produces executables we can run. If not, either
2174# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002175echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2176echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002177# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2178# If not cross compiling, check that we can run a simple program.
2179if test "$cross_compiling" != yes; then
2180 if { ac_try='./$ac_file'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 cross_compiling=no
2187 else
2188 if test "$cross_compiling" = maybe; then
2189 cross_compiling=yes
2190 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002191 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002192If you meant to cross compile, use \`--host'.
2193See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002194echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002195If you meant to cross compile, use \`--host'.
2196See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002197 { (exit 1); exit 1; }; }
2198 fi
2199 fi
2200fi
2201echo "$as_me:$LINENO: result: yes" >&5
2202echo "${ECHO_T}yes" >&6
2203
John Criswell0c38eaf2003-09-10 15:17:25 +00002204rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002205ac_clean_files=$ac_clean_files_save
2206# Check the compiler produces executables we can run. If not, either
2207# the compiler is broken, or we cross compile.
2208echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2209echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2210echo "$as_me:$LINENO: result: $cross_compiling" >&5
2211echo "${ECHO_T}$cross_compiling" >&6
2212
2213echo "$as_me:$LINENO: checking for suffix of executables" >&5
2214echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2216 (eval $ac_link) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; then
2220 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2221# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2222# work properly (i.e., refer to `conftest.exe'), while it won't with
2223# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002224for ac_file in conftest.exe conftest conftest.*; do
2225 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002226 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002229 export ac_cv_exeext
2230 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002231 * ) break;;
2232 esac
2233done
2234else
John Criswell0c38eaf2003-09-10 15:17:25 +00002235 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2236See \`config.log' for more details." >&5
2237echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2238See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002239 { (exit 1); exit 1; }; }
2240fi
2241
2242rm -f conftest$ac_cv_exeext
2243echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2244echo "${ECHO_T}$ac_cv_exeext" >&6
2245
2246rm -f conftest.$ac_ext
2247EXEEXT=$ac_cv_exeext
2248ac_exeext=$EXEEXT
2249echo "$as_me:$LINENO: checking for suffix of object files" >&5
2250echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2251if test "${ac_cv_objext+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2253else
2254 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002255/* confdefs.h. */
2256_ACEOF
2257cat confdefs.h >>conftest.$ac_ext
2258cat >>conftest.$ac_ext <<_ACEOF
2259/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002260
John Criswell7a73b802003-06-30 21:59:07 +00002261int
2262main ()
2263{
2264
2265 ;
2266 return 0;
2267}
2268_ACEOF
2269rm -f conftest.o conftest.obj
2270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 (eval $ac_compile) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; then
2275 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2276 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002278 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2279 break;;
2280 esac
2281done
2282else
2283 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002284sed 's/^/| /' conftest.$ac_ext >&5
2285
2286{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2287See \`config.log' for more details." >&5
2288echo "$as_me: error: cannot compute suffix of object files: cannot compile
2289See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002290 { (exit 1); exit 1; }; }
2291fi
2292
2293rm -f conftest.$ac_cv_objext conftest.$ac_ext
2294fi
2295echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2296echo "${ECHO_T}$ac_cv_objext" >&6
2297OBJEXT=$ac_cv_objext
2298ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002299echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2300echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2301if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002302 echo $ECHO_N "(cached) $ECHO_C" >&6
2303else
2304 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002305/* confdefs.h. */
2306_ACEOF
2307cat confdefs.h >>conftest.$ac_ext
2308cat >>conftest.$ac_ext <<_ACEOF
2309/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002310
John Criswell7a73b802003-06-30 21:59:07 +00002311int
2312main ()
2313{
2314#ifndef __GNUC__
2315 choke me
2316#endif
2317
2318 ;
2319 return 0;
2320}
2321_ACEOF
2322rm -f conftest.$ac_objext
2323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002324 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002325 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002326 grep -v '^ *+' conftest.er1 >conftest.err
2327 rm -f conftest.er1
2328 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002331 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002332 || test ! -s conftest.err'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 (eval $ac_try) 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; } &&
2338 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 (eval $ac_try) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; }; then
2344 ac_compiler_gnu=yes
2345else
2346 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002347sed 's/^/| /' conftest.$ac_ext >&5
2348
John Criswell7a73b802003-06-30 21:59:07 +00002349ac_compiler_gnu=no
2350fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002352ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002353
2354fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002355echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2356echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2357GCC=`test $ac_compiler_gnu = yes && echo yes`
2358ac_test_CFLAGS=${CFLAGS+set}
2359ac_save_CFLAGS=$CFLAGS
2360CFLAGS="-g"
2361echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2362echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2363if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365else
2366 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002367/* confdefs.h. */
2368_ACEOF
2369cat confdefs.h >>conftest.$ac_ext
2370cat >>conftest.$ac_ext <<_ACEOF
2371/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002372
John Criswell7a73b802003-06-30 21:59:07 +00002373int
2374main ()
2375{
2376
2377 ;
2378 return 0;
2379}
2380_ACEOF
2381rm -f conftest.$ac_objext
2382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002383 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002384 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002385 grep -v '^ *+' conftest.er1 >conftest.err
2386 rm -f conftest.er1
2387 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002390 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002391 || test ! -s conftest.err'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 (eval $ac_try) 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; } &&
2397 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 (eval $ac_try) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002403 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002404else
2405 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002406sed 's/^/| /' conftest.$ac_ext >&5
2407
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002408ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002409fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002411fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002412echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2413echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2414if test "$ac_test_CFLAGS" = set; then
2415 CFLAGS=$ac_save_CFLAGS
2416elif test $ac_cv_prog_cc_g = yes; then
2417 if test "$GCC" = yes; then
2418 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002419 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002420 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002421 fi
2422else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002423 if test "$GCC" = yes; then
2424 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002425 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002426 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002427 fi
2428fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002429echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2430echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2431if test "${ac_cv_prog_cc_stdc+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
2434 ac_cv_prog_cc_stdc=no
2435ac_save_CC=$CC
2436cat >conftest.$ac_ext <<_ACEOF
2437/* confdefs.h. */
2438_ACEOF
2439cat confdefs.h >>conftest.$ac_ext
2440cat >>conftest.$ac_ext <<_ACEOF
2441/* end confdefs.h. */
2442#include <stdarg.h>
2443#include <stdio.h>
2444#include <sys/types.h>
2445#include <sys/stat.h>
2446/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2447struct buf { int x; };
2448FILE * (*rcsopen) (struct buf *, struct stat *, int);
2449static char *e (p, i)
2450 char **p;
2451 int i;
2452{
2453 return p[i];
2454}
2455static char *f (char * (*g) (char **, int), char **p, ...)
2456{
2457 char *s;
2458 va_list v;
2459 va_start (v,p);
2460 s = g (p, va_arg (v,int));
2461 va_end (v);
2462 return s;
2463}
2464
2465/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2466 function prototypes and stuff, but not '\xHH' hex character constants.
2467 These don't provoke an error unfortunately, instead are silently treated
2468 as 'x'. The following induces an error, until -std1 is added to get
2469 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2470 array size at least. It's necessary to write '\x00'==0 to get something
2471 that's true only with -std1. */
2472int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2473
2474int test (int i, double x);
2475struct s1 {int (*f) (int a);};
2476struct s2 {int (*f) (double a);};
2477int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2478int argc;
2479char **argv;
2480int
2481main ()
2482{
2483return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2484 ;
2485 return 0;
2486}
2487_ACEOF
2488# Don't try gcc -ansi; that turns off useful extensions and
2489# breaks some systems' header files.
2490# AIX -qlanglvl=ansi
2491# Ultrix and OSF/1 -std1
2492# HP-UX 10.20 and later -Ae
2493# HP-UX older versions -Aa -D_HPUX_SOURCE
2494# SVR4 -Xc -D__EXTENSIONS__
2495for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2496do
2497 CC="$ac_save_CC $ac_arg"
2498 rm -f conftest.$ac_objext
2499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500 (eval $ac_compile) 2>conftest.er1
2501 ac_status=$?
2502 grep -v '^ *+' conftest.er1 >conftest.err
2503 rm -f conftest.er1
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -z "$ac_c_werror_flag"
2508 || test ! -s conftest.err'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 (eval $ac_try) 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; } &&
2514 { ac_try='test -s conftest.$ac_objext'
2515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516 (eval $ac_try) 2>&5
2517 ac_status=$?
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; }; then
2520 ac_cv_prog_cc_stdc=$ac_arg
2521break
2522else
2523 echo "$as_me: failed program was:" >&5
2524sed 's/^/| /' conftest.$ac_ext >&5
2525
2526fi
2527rm -f conftest.err conftest.$ac_objext
2528done
2529rm -f conftest.$ac_ext conftest.$ac_objext
2530CC=$ac_save_CC
2531
2532fi
2533
2534case "x$ac_cv_prog_cc_stdc" in
2535 x|xno)
2536 echo "$as_me:$LINENO: result: none needed" >&5
2537echo "${ECHO_T}none needed" >&6 ;;
2538 *)
2539 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2540echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2541 CC="$CC $ac_cv_prog_cc_stdc" ;;
2542esac
2543
2544# Some people use a C++ compiler to compile C. Since we use `exit',
2545# in C++ we need to declare it. In case someone uses the same compiler
2546# for both compiling C and C++ we need to have the C++ compiler decide
2547# the declaration of exit, since it's the most demanding environment.
2548cat >conftest.$ac_ext <<_ACEOF
2549#ifndef __cplusplus
2550 choke me
2551#endif
2552_ACEOF
2553rm -f conftest.$ac_objext
2554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555 (eval $ac_compile) 2>conftest.er1
2556 ac_status=$?
2557 grep -v '^ *+' conftest.er1 >conftest.err
2558 rm -f conftest.er1
2559 cat conftest.err >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
2562 { ac_try='test -z "$ac_c_werror_flag"
2563 || test ! -s conftest.err'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 (eval $ac_try) 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; } &&
2569 { ac_try='test -s conftest.$ac_objext'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 (eval $ac_try) 2>&5
2572 ac_status=$?
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; }; then
2575 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002576 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002577 'extern "C" void std::exit (int) throw (); using std::exit;' \
2578 'extern "C" void std::exit (int); using std::exit;' \
2579 'extern "C" void exit (int) throw ();' \
2580 'extern "C" void exit (int);' \
2581 'void exit (int);'
2582do
2583 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002584/* confdefs.h. */
2585_ACEOF
2586cat confdefs.h >>conftest.$ac_ext
2587cat >>conftest.$ac_ext <<_ACEOF
2588/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002589$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002590#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002591int
2592main ()
2593{
2594exit (42);
2595 ;
2596 return 0;
2597}
2598_ACEOF
2599rm -f conftest.$ac_objext
2600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002601 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002602 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002603 grep -v '^ *+' conftest.er1 >conftest.err
2604 rm -f conftest.er1
2605 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002608 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002609 || test ! -s conftest.err'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 (eval $ac_try) 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 (eval $ac_try) 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2621 :
2622else
2623 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002624sed 's/^/| /' conftest.$ac_ext >&5
2625
John Criswell7a73b802003-06-30 21:59:07 +00002626continue
2627fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002629 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002630/* confdefs.h. */
2631_ACEOF
2632cat confdefs.h >>conftest.$ac_ext
2633cat >>conftest.$ac_ext <<_ACEOF
2634/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002635$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002636int
2637main ()
2638{
2639exit (42);
2640 ;
2641 return 0;
2642}
2643_ACEOF
2644rm -f conftest.$ac_objext
2645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002646 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002647 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002648 grep -v '^ *+' conftest.er1 >conftest.err
2649 rm -f conftest.er1
2650 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002653 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002654 || test ! -s conftest.err'
2655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656 (eval $ac_try) 2>&5
2657 ac_status=$?
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; } &&
2660 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 (eval $ac_try) 2>&5
2663 ac_status=$?
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; }; then
2666 break
2667else
2668 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002669sed 's/^/| /' conftest.$ac_ext >&5
2670
John Criswell7a73b802003-06-30 21:59:07 +00002671fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002673done
2674rm -f conftest*
2675if test -n "$ac_declaration"; then
2676 echo '#ifdef __cplusplus' >>confdefs.h
2677 echo $ac_declaration >>confdefs.h
2678 echo '#endif' >>confdefs.h
2679fi
2680
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002681else
2682 echo "$as_me: failed program was:" >&5
2683sed 's/^/| /' conftest.$ac_ext >&5
2684
2685fi
2686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687ac_ext=c
2688ac_cpp='$CPP $CPPFLAGS'
2689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692
2693
2694echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2695echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2696if test "${ac_cv_c_bigendian+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698else
2699 # See if sys/param.h defines the BYTE_ORDER macro.
2700cat >conftest.$ac_ext <<_ACEOF
2701/* confdefs.h. */
2702_ACEOF
2703cat confdefs.h >>conftest.$ac_ext
2704cat >>conftest.$ac_ext <<_ACEOF
2705/* end confdefs.h. */
2706#include <sys/types.h>
2707#include <sys/param.h>
2708
2709int
2710main ()
2711{
2712#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2713 bogus endian macros
2714#endif
2715
2716 ;
2717 return 0;
2718}
2719_ACEOF
2720rm -f conftest.$ac_objext
2721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722 (eval $ac_compile) 2>conftest.er1
2723 ac_status=$?
2724 grep -v '^ *+' conftest.er1 >conftest.err
2725 rm -f conftest.er1
2726 cat conftest.err >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
2729 { ac_try='test -z "$ac_c_werror_flag"
2730 || test ! -s conftest.err'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 (eval $ac_try) 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; } &&
2736 { ac_try='test -s conftest.$ac_objext'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 (eval $ac_try) 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2742 # It does; now see whether it defined to BIG_ENDIAN or not.
2743cat >conftest.$ac_ext <<_ACEOF
2744/* confdefs.h. */
2745_ACEOF
2746cat confdefs.h >>conftest.$ac_ext
2747cat >>conftest.$ac_ext <<_ACEOF
2748/* end confdefs.h. */
2749#include <sys/types.h>
2750#include <sys/param.h>
2751
2752int
2753main ()
2754{
2755#if BYTE_ORDER != BIG_ENDIAN
2756 not big endian
2757#endif
2758
2759 ;
2760 return 0;
2761}
2762_ACEOF
2763rm -f conftest.$ac_objext
2764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765 (eval $ac_compile) 2>conftest.er1
2766 ac_status=$?
2767 grep -v '^ *+' conftest.er1 >conftest.err
2768 rm -f conftest.er1
2769 cat conftest.err >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 { ac_try='test -z "$ac_c_werror_flag"
2773 || test ! -s conftest.err'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 (eval $ac_try) 2>&5
2776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; } &&
2779 { ac_try='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 (eval $ac_try) 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2785 ac_cv_c_bigendian=yes
2786else
2787 echo "$as_me: failed program was:" >&5
2788sed 's/^/| /' conftest.$ac_ext >&5
2789
2790ac_cv_c_bigendian=no
2791fi
2792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793else
2794 echo "$as_me: failed program was:" >&5
2795sed 's/^/| /' conftest.$ac_ext >&5
2796
2797# It does not; compile a test program.
2798if test "$cross_compiling" = yes; then
2799 # try to guess the endianness by grepping values into an object file
2800 ac_cv_c_bigendian=unknown
2801 cat >conftest.$ac_ext <<_ACEOF
2802/* confdefs.h. */
2803_ACEOF
2804cat confdefs.h >>conftest.$ac_ext
2805cat >>conftest.$ac_ext <<_ACEOF
2806/* end confdefs.h. */
2807short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2808short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2809void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2810short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2811short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2812void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2813int
2814main ()
2815{
2816 _ascii (); _ebcdic ();
2817 ;
2818 return 0;
2819}
2820_ACEOF
2821rm -f conftest.$ac_objext
2822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2823 (eval $ac_compile) 2>conftest.er1
2824 ac_status=$?
2825 grep -v '^ *+' conftest.er1 >conftest.err
2826 rm -f conftest.er1
2827 cat conftest.err >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } &&
2830 { ac_try='test -z "$ac_c_werror_flag"
2831 || test ! -s conftest.err'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 (eval $ac_try) 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; } &&
2837 { ac_try='test -s conftest.$ac_objext'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 (eval $ac_try) 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; }; then
2843 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2844 ac_cv_c_bigendian=yes
2845fi
2846if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2847 if test "$ac_cv_c_bigendian" = unknown; then
2848 ac_cv_c_bigendian=no
2849 else
2850 # finding both strings is unlikely to happen, but who knows?
2851 ac_cv_c_bigendian=unknown
2852 fi
2853fi
2854else
2855 echo "$as_me: failed program was:" >&5
2856sed 's/^/| /' conftest.$ac_ext >&5
2857
2858fi
2859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2860else
2861 cat >conftest.$ac_ext <<_ACEOF
2862/* confdefs.h. */
2863_ACEOF
2864cat confdefs.h >>conftest.$ac_ext
2865cat >>conftest.$ac_ext <<_ACEOF
2866/* end confdefs.h. */
2867int
2868main ()
2869{
2870 /* Are we little or big endian? From Harbison&Steele. */
2871 union
2872 {
2873 long l;
2874 char c[sizeof (long)];
2875 } u;
2876 u.l = 1;
2877 exit (u.c[sizeof (long) - 1] == 1);
2878}
2879_ACEOF
2880rm -f conftest$ac_exeext
2881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2882 (eval $ac_link) 2>&5
2883 ac_status=$?
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 (eval $ac_try) 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2891 ac_cv_c_bigendian=no
2892else
2893 echo "$as_me: program exited with status $ac_status" >&5
2894echo "$as_me: failed program was:" >&5
2895sed 's/^/| /' conftest.$ac_ext >&5
2896
2897( exit $ac_status )
2898ac_cv_c_bigendian=yes
2899fi
2900rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2901fi
2902fi
2903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2904fi
2905echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2906echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2907case $ac_cv_c_bigendian in
2908 yes)
2909 ENDIAN=big
2910 ;;
2911 no)
2912 ENDIAN=little
2913 ;;
2914 *)
2915 { { echo "$as_me:$LINENO: error: unknown endianness
2916presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2917echo "$as_me: error: unknown endianness
2918presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2919 { (exit 1); exit 1; }; } ;;
2920esac
2921
2922
2923
2924# Check whether --enable-optimized or --disable-optimized was given.
2925if test "${enable_optimized+set}" = set; then
2926 enableval="$enable_optimized"
2927
2928else
2929 enableval=no
2930fi;
2931if test ${enableval} = "no" ; then
2932 ENABLE_OPTIMIZED=
2933
2934else
2935 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2936
2937fi
2938
2939# Check whether --enable-jit or --disable-jit was given.
2940if test "${enable_jit+set}" = set; then
2941 enableval="$enable_jit"
2942
2943else
2944 enableval=default
2945fi;
2946if test ${enableval} = "no"
2947then
2948 JIT=
2949
2950else
Reid Spencerefbe40a2004-11-25 07:28:19 +00002951 case "$llvm_cv_target_arch" in
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002952 x86) JIT=TARGET_HAS_JIT=1
2953 ;;
2954 Sparc) JIT=TARGET_HAS_JIT=1
2955 ;;
2956 PowerPC) JIT=TARGET_HAS_JIT=1
2957 ;;
Reid Spencer95ed8432004-12-23 06:22:33 +00002958 amd64) JIT=
2959 ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002960 *) JIT=
2961 ;;
2962 esac
2963fi
2964
Reid Spencer1f319422004-11-29 04:56:35 +00002965# Check whether --enable-doxygen or --disable-doxygen was given.
2966if test "${enable_doxygen+set}" = set; then
2967 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00002968
Reid Spencer1f319422004-11-29 04:56:35 +00002969else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00002970 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00002971fi;
2972case "$enableval" in
2973 yes) ENABLE_DOXYGEN=1
2974 ;;
2975 no) ENABLE_DOXYGEN=0
2976 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00002977 default) ENABLE_DOXYGEN=0
2978 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00002979 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
2980echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
2981 { (exit 1); exit 1; }; } ;;
2982esac
2983
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002984
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002985ac_ext=c
2986ac_cpp='$CPP $CPPFLAGS'
2987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2989ac_compiler_gnu=$ac_cv_c_compiler_gnu
2990echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2991echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2992# On Suns, sometimes $CPP names a directory.
2993if test -n "$CPP" && test -d "$CPP"; then
2994 CPP=
2995fi
2996if test -z "$CPP"; then
2997 if test "${ac_cv_prog_CPP+set}" = set; then
2998 echo $ECHO_N "(cached) $ECHO_C" >&6
2999else
3000 # Double quotes because CPP needs to be expanded
3001 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3002 do
3003 ac_preproc_ok=false
3004for ac_c_preproc_warn_flag in '' yes
3005do
3006 # Use a header file that comes with gcc, so configuring glibc
3007 # with a fresh cross-compiler works.
3008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3009 # <limits.h> exists even on freestanding compilers.
3010 # On the NeXT, cc -E runs the code through the compiler's parser,
3011 # not just through cpp. "Syntax error" is here to catch this case.
3012 cat >conftest.$ac_ext <<_ACEOF
3013/* confdefs.h. */
3014_ACEOF
3015cat confdefs.h >>conftest.$ac_ext
3016cat >>conftest.$ac_ext <<_ACEOF
3017/* end confdefs.h. */
3018#ifdef __STDC__
3019# include <limits.h>
3020#else
3021# include <assert.h>
3022#endif
3023 Syntax error
3024_ACEOF
3025if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3027 ac_status=$?
3028 grep -v '^ *+' conftest.er1 >conftest.err
3029 rm -f conftest.er1
3030 cat conftest.err >&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); } >/dev/null; then
3033 if test -s conftest.err; then
3034 ac_cpp_err=$ac_c_preproc_warn_flag
3035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3036 else
3037 ac_cpp_err=
3038 fi
3039else
3040 ac_cpp_err=yes
3041fi
3042if test -z "$ac_cpp_err"; then
3043 :
3044else
3045 echo "$as_me: failed program was:" >&5
3046sed 's/^/| /' conftest.$ac_ext >&5
3047
3048 # Broken: fails on valid input.
3049continue
3050fi
3051rm -f conftest.err conftest.$ac_ext
3052
3053 # OK, works on sane cases. Now check whether non-existent headers
3054 # can be detected and how.
3055 cat >conftest.$ac_ext <<_ACEOF
3056/* confdefs.h. */
3057_ACEOF
3058cat confdefs.h >>conftest.$ac_ext
3059cat >>conftest.$ac_ext <<_ACEOF
3060/* end confdefs.h. */
3061#include <ac_nonexistent.h>
3062_ACEOF
3063if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3065 ac_status=$?
3066 grep -v '^ *+' conftest.er1 >conftest.err
3067 rm -f conftest.er1
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } >/dev/null; then
3071 if test -s conftest.err; then
3072 ac_cpp_err=$ac_c_preproc_warn_flag
3073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3074 else
3075 ac_cpp_err=
3076 fi
3077else
3078 ac_cpp_err=yes
3079fi
3080if test -z "$ac_cpp_err"; then
3081 # Broken: success on invalid input.
3082continue
3083else
3084 echo "$as_me: failed program was:" >&5
3085sed 's/^/| /' conftest.$ac_ext >&5
3086
3087 # Passes both tests.
3088ac_preproc_ok=:
3089break
3090fi
3091rm -f conftest.err conftest.$ac_ext
3092
3093done
3094# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3095rm -f conftest.err conftest.$ac_ext
3096if $ac_preproc_ok; then
3097 break
3098fi
3099
3100 done
3101 ac_cv_prog_CPP=$CPP
3102
3103fi
3104 CPP=$ac_cv_prog_CPP
3105else
3106 ac_cv_prog_CPP=$CPP
3107fi
3108echo "$as_me:$LINENO: result: $CPP" >&5
3109echo "${ECHO_T}$CPP" >&6
3110ac_preproc_ok=false
3111for ac_c_preproc_warn_flag in '' yes
3112do
3113 # Use a header file that comes with gcc, so configuring glibc
3114 # with a fresh cross-compiler works.
3115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3116 # <limits.h> exists even on freestanding compilers.
3117 # On the NeXT, cc -E runs the code through the compiler's parser,
3118 # not just through cpp. "Syntax error" is here to catch this case.
3119 cat >conftest.$ac_ext <<_ACEOF
3120/* confdefs.h. */
3121_ACEOF
3122cat confdefs.h >>conftest.$ac_ext
3123cat >>conftest.$ac_ext <<_ACEOF
3124/* end confdefs.h. */
3125#ifdef __STDC__
3126# include <limits.h>
3127#else
3128# include <assert.h>
3129#endif
3130 Syntax error
3131_ACEOF
3132if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } >/dev/null; then
3140 if test -s conftest.err; then
3141 ac_cpp_err=$ac_c_preproc_warn_flag
3142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3143 else
3144 ac_cpp_err=
3145 fi
3146else
3147 ac_cpp_err=yes
3148fi
3149if test -z "$ac_cpp_err"; then
3150 :
3151else
3152 echo "$as_me: failed program was:" >&5
3153sed 's/^/| /' conftest.$ac_ext >&5
3154
3155 # Broken: fails on valid input.
3156continue
3157fi
3158rm -f conftest.err conftest.$ac_ext
3159
3160 # OK, works on sane cases. Now check whether non-existent headers
3161 # can be detected and how.
3162 cat >conftest.$ac_ext <<_ACEOF
3163/* confdefs.h. */
3164_ACEOF
3165cat confdefs.h >>conftest.$ac_ext
3166cat >>conftest.$ac_ext <<_ACEOF
3167/* end confdefs.h. */
3168#include <ac_nonexistent.h>
3169_ACEOF
3170if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3172 ac_status=$?
3173 grep -v '^ *+' conftest.er1 >conftest.err
3174 rm -f conftest.er1
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } >/dev/null; then
3178 if test -s conftest.err; then
3179 ac_cpp_err=$ac_c_preproc_warn_flag
3180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3181 else
3182 ac_cpp_err=
3183 fi
3184else
3185 ac_cpp_err=yes
3186fi
3187if test -z "$ac_cpp_err"; then
3188 # Broken: success on invalid input.
3189continue
3190else
3191 echo "$as_me: failed program was:" >&5
3192sed 's/^/| /' conftest.$ac_ext >&5
3193
3194 # Passes both tests.
3195ac_preproc_ok=:
3196break
3197fi
3198rm -f conftest.err conftest.$ac_ext
3199
3200done
3201# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3202rm -f conftest.err conftest.$ac_ext
3203if $ac_preproc_ok; then
3204 :
3205else
3206 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3207See \`config.log' for more details." >&5
3208echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3209See \`config.log' for more details." >&2;}
3210 { (exit 1); exit 1; }; }
3211fi
3212
John Criswell7a73b802003-06-30 21:59:07 +00003213ac_ext=c
3214ac_cpp='$CPP $CPPFLAGS'
3215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218
3219ac_ext=c
3220ac_cpp='$CPP $CPPFLAGS'
3221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3223ac_compiler_gnu=$ac_cv_c_compiler_gnu
3224if test -n "$ac_tool_prefix"; then
3225 for ac_prog in gcc
3226 do
3227 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3228set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3229echo "$as_me:$LINENO: checking for $ac_word" >&5
3230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3231if test "${ac_cv_prog_CC+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3233else
3234 if test -n "$CC"; then
3235 ac_cv_prog_CC="$CC" # Let the user override the test.
3236else
3237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238for as_dir in $PATH
3239do
3240 IFS=$as_save_IFS
3241 test -z "$as_dir" && as_dir=.
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3246 break 2
3247 fi
3248done
3249done
3250
3251fi
3252fi
3253CC=$ac_cv_prog_CC
3254if test -n "$CC"; then
3255 echo "$as_me:$LINENO: result: $CC" >&5
3256echo "${ECHO_T}$CC" >&6
3257else
3258 echo "$as_me:$LINENO: result: no" >&5
3259echo "${ECHO_T}no" >&6
3260fi
3261
3262 test -n "$CC" && break
3263 done
3264fi
3265if test -z "$CC"; then
3266 ac_ct_CC=$CC
3267 for ac_prog in gcc
3268do
3269 # Extract the first word of "$ac_prog", so it can be a program name with args.
3270set dummy $ac_prog; ac_word=$2
3271echo "$as_me:$LINENO: checking for $ac_word" >&5
3272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3273if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3275else
3276 if test -n "$ac_ct_CC"; then
3277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3278else
3279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280for as_dir in $PATH
3281do
3282 IFS=$as_save_IFS
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3286 ac_cv_prog_ac_ct_CC="$ac_prog"
3287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 break 2
3289 fi
3290done
3291done
3292
3293fi
3294fi
3295ac_ct_CC=$ac_cv_prog_ac_ct_CC
3296if test -n "$ac_ct_CC"; then
3297 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3298echo "${ECHO_T}$ac_ct_CC" >&6
3299else
3300 echo "$as_me:$LINENO: result: no" >&5
3301echo "${ECHO_T}no" >&6
3302fi
3303
3304 test -n "$ac_ct_CC" && break
3305done
3306
3307 CC=$ac_ct_CC
3308fi
3309
3310
John Criswell0c38eaf2003-09-10 15:17:25 +00003311test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3312See \`config.log' for more details." >&5
3313echo "$as_me: error: no acceptable C compiler found in \$PATH
3314See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003315 { (exit 1); exit 1; }; }
3316
3317# Provide some information about the compiler.
3318echo "$as_me:$LINENO:" \
3319 "checking for C compiler version" >&5
3320ac_compiler=`set X $ac_compile; echo $2`
3321{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3322 (eval $ac_compiler --version </dev/null >&5) 2>&5
3323 ac_status=$?
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }
3326{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3327 (eval $ac_compiler -v </dev/null >&5) 2>&5
3328 ac_status=$?
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }
3331{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3332 (eval $ac_compiler -V </dev/null >&5) 2>&5
3333 ac_status=$?
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); }
3336
3337echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3338echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3339if test "${ac_cv_c_compiler_gnu+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3341else
3342 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003343/* confdefs.h. */
3344_ACEOF
3345cat confdefs.h >>conftest.$ac_ext
3346cat >>conftest.$ac_ext <<_ACEOF
3347/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003348
John Criswell7a73b802003-06-30 21:59:07 +00003349int
3350main ()
3351{
3352#ifndef __GNUC__
3353 choke me
3354#endif
3355
3356 ;
3357 return 0;
3358}
3359_ACEOF
3360rm -f conftest.$ac_objext
3361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003362 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003363 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003364 grep -v '^ *+' conftest.er1 >conftest.err
3365 rm -f conftest.er1
3366 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003369 { ac_try='test -z "$ac_c_werror_flag"
3370 || test ! -s conftest.err'
3371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372 (eval $ac_try) 2>&5
3373 ac_status=$?
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); }; } &&
3376 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378 (eval $ac_try) 2>&5
3379 ac_status=$?
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }; }; then
3382 ac_compiler_gnu=yes
3383else
3384 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003385sed 's/^/| /' conftest.$ac_ext >&5
3386
John Criswell7a73b802003-06-30 21:59:07 +00003387ac_compiler_gnu=no
3388fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003390ac_cv_c_compiler_gnu=$ac_compiler_gnu
3391
3392fi
3393echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3394echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3395GCC=`test $ac_compiler_gnu = yes && echo yes`
3396ac_test_CFLAGS=${CFLAGS+set}
3397ac_save_CFLAGS=$CFLAGS
3398CFLAGS="-g"
3399echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3400echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3401if test "${ac_cv_prog_cc_g+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3403else
3404 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003405/* confdefs.h. */
3406_ACEOF
3407cat confdefs.h >>conftest.$ac_ext
3408cat >>conftest.$ac_ext <<_ACEOF
3409/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003410
John Criswell7a73b802003-06-30 21:59:07 +00003411int
3412main ()
3413{
3414
3415 ;
3416 return 0;
3417}
3418_ACEOF
3419rm -f conftest.$ac_objext
3420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003421 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003422 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003423 grep -v '^ *+' conftest.er1 >conftest.err
3424 rm -f conftest.er1
3425 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003428 { ac_try='test -z "$ac_c_werror_flag"
3429 || test ! -s conftest.err'
3430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3431 (eval $ac_try) 2>&5
3432 ac_status=$?
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); }; } &&
3435 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437 (eval $ac_try) 2>&5
3438 ac_status=$?
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); }; }; then
3441 ac_cv_prog_cc_g=yes
3442else
3443 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003444sed 's/^/| /' conftest.$ac_ext >&5
3445
John Criswell7a73b802003-06-30 21:59:07 +00003446ac_cv_prog_cc_g=no
3447fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003449fi
3450echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3451echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3452if test "$ac_test_CFLAGS" = set; then
3453 CFLAGS=$ac_save_CFLAGS
3454elif test $ac_cv_prog_cc_g = yes; then
3455 if test "$GCC" = yes; then
3456 CFLAGS="-g -O2"
3457 else
3458 CFLAGS="-g"
3459 fi
3460else
3461 if test "$GCC" = yes; then
3462 CFLAGS="-O2"
3463 else
3464 CFLAGS=
3465 fi
3466fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003467echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3468echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3469if test "${ac_cv_prog_cc_stdc+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3471else
3472 ac_cv_prog_cc_stdc=no
3473ac_save_CC=$CC
3474cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003475/* confdefs.h. */
3476_ACEOF
3477cat confdefs.h >>conftest.$ac_ext
3478cat >>conftest.$ac_ext <<_ACEOF
3479/* end confdefs.h. */
3480#include <stdarg.h>
3481#include <stdio.h>
3482#include <sys/types.h>
3483#include <sys/stat.h>
3484/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3485struct buf { int x; };
3486FILE * (*rcsopen) (struct buf *, struct stat *, int);
3487static char *e (p, i)
3488 char **p;
3489 int i;
3490{
3491 return p[i];
3492}
3493static char *f (char * (*g) (char **, int), char **p, ...)
3494{
3495 char *s;
3496 va_list v;
3497 va_start (v,p);
3498 s = g (p, va_arg (v,int));
3499 va_end (v);
3500 return s;
3501}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003502
3503/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3504 function prototypes and stuff, but not '\xHH' hex character constants.
3505 These don't provoke an error unfortunately, instead are silently treated
3506 as 'x'. The following induces an error, until -std1 is added to get
3507 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3508 array size at least. It's necessary to write '\x00'==0 to get something
3509 that's true only with -std1. */
3510int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3511
John Criswell0c38eaf2003-09-10 15:17:25 +00003512int test (int i, double x);
3513struct s1 {int (*f) (int a);};
3514struct s2 {int (*f) (double a);};
3515int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3516int argc;
3517char **argv;
3518int
3519main ()
3520{
3521return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3522 ;
3523 return 0;
3524}
3525_ACEOF
3526# Don't try gcc -ansi; that turns off useful extensions and
3527# breaks some systems' header files.
3528# AIX -qlanglvl=ansi
3529# Ultrix and OSF/1 -std1
3530# HP-UX 10.20 and later -Ae
3531# HP-UX older versions -Aa -D_HPUX_SOURCE
3532# SVR4 -Xc -D__EXTENSIONS__
3533for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3534do
3535 CC="$ac_save_CC $ac_arg"
3536 rm -f conftest.$ac_objext
3537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003538 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003539 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003540 grep -v '^ *+' conftest.er1 >conftest.err
3541 rm -f conftest.er1
3542 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003545 { ac_try='test -z "$ac_c_werror_flag"
3546 || test ! -s conftest.err'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 (eval $ac_try) 2>&5
3549 ac_status=$?
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; } &&
3552 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554 (eval $ac_try) 2>&5
3555 ac_status=$?
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }; }; then
3558 ac_cv_prog_cc_stdc=$ac_arg
3559break
3560else
3561 echo "$as_me: failed program was:" >&5
3562sed 's/^/| /' conftest.$ac_ext >&5
3563
3564fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003565rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003566done
3567rm -f conftest.$ac_ext conftest.$ac_objext
3568CC=$ac_save_CC
3569
3570fi
3571
3572case "x$ac_cv_prog_cc_stdc" in
3573 x|xno)
3574 echo "$as_me:$LINENO: result: none needed" >&5
3575echo "${ECHO_T}none needed" >&6 ;;
3576 *)
3577 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3578echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3579 CC="$CC $ac_cv_prog_cc_stdc" ;;
3580esac
3581
John Criswell7a73b802003-06-30 21:59:07 +00003582# Some people use a C++ compiler to compile C. Since we use `exit',
3583# in C++ we need to declare it. In case someone uses the same compiler
3584# for both compiling C and C++ we need to have the C++ compiler decide
3585# the declaration of exit, since it's the most demanding environment.
3586cat >conftest.$ac_ext <<_ACEOF
3587#ifndef __cplusplus
3588 choke me
3589#endif
3590_ACEOF
3591rm -f conftest.$ac_objext
3592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003593 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003594 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003595 grep -v '^ *+' conftest.er1 >conftest.err
3596 rm -f conftest.er1
3597 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003600 { ac_try='test -z "$ac_c_werror_flag"
3601 || test ! -s conftest.err'
3602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603 (eval $ac_try) 2>&5
3604 ac_status=$?
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }; } &&
3607 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 (eval $ac_try) 2>&5
3610 ac_status=$?
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; }; then
3613 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003614 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003615 'extern "C" void std::exit (int) throw (); using std::exit;' \
3616 'extern "C" void std::exit (int); using std::exit;' \
3617 'extern "C" void exit (int) throw ();' \
3618 'extern "C" void exit (int);' \
3619 'void exit (int);'
3620do
3621 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003622/* confdefs.h. */
3623_ACEOF
3624cat confdefs.h >>conftest.$ac_ext
3625cat >>conftest.$ac_ext <<_ACEOF
3626/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003627$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003628#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003629int
3630main ()
3631{
3632exit (42);
3633 ;
3634 return 0;
3635}
3636_ACEOF
3637rm -f conftest.$ac_objext
3638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003639 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003640 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003641 grep -v '^ *+' conftest.er1 >conftest.err
3642 rm -f conftest.er1
3643 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003646 { ac_try='test -z "$ac_c_werror_flag"
3647 || test ! -s conftest.err'
3648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649 (eval $ac_try) 2>&5
3650 ac_status=$?
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }; } &&
3653 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 (eval $ac_try) 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; }; then
3659 :
3660else
3661 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003662sed 's/^/| /' conftest.$ac_ext >&5
3663
John Criswell7a73b802003-06-30 21:59:07 +00003664continue
3665fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003667 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003668/* confdefs.h. */
3669_ACEOF
3670cat confdefs.h >>conftest.$ac_ext
3671cat >>conftest.$ac_ext <<_ACEOF
3672/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003673$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003674int
3675main ()
3676{
3677exit (42);
3678 ;
3679 return 0;
3680}
3681_ACEOF
3682rm -f conftest.$ac_objext
3683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003684 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003685 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003686 grep -v '^ *+' conftest.er1 >conftest.err
3687 rm -f conftest.er1
3688 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003691 { ac_try='test -z "$ac_c_werror_flag"
3692 || test ! -s conftest.err'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 (eval $ac_try) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; } &&
3698 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700 (eval $ac_try) 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3704 break
3705else
3706 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003707sed 's/^/| /' conftest.$ac_ext >&5
3708
John Criswell7a73b802003-06-30 21:59:07 +00003709fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003711done
3712rm -f conftest*
3713if test -n "$ac_declaration"; then
3714 echo '#ifdef __cplusplus' >>confdefs.h
3715 echo $ac_declaration >>confdefs.h
3716 echo '#endif' >>confdefs.h
3717fi
3718
3719else
3720 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003721sed 's/^/| /' conftest.$ac_ext >&5
3722
John Criswell7a73b802003-06-30 21:59:07 +00003723fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003725ac_ext=c
3726ac_cpp='$CPP $CPPFLAGS'
3727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3729ac_compiler_gnu=$ac_cv_c_compiler_gnu
3730
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003731ac_ext=cc
3732ac_cpp='$CXXCPP $CPPFLAGS'
3733ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3736if test -n "$ac_tool_prefix"; then
3737 for ac_prog in $CCC g++
3738 do
3739 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3740set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3741echo "$as_me:$LINENO: checking for $ac_word" >&5
3742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3743if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003744 echo $ECHO_N "(cached) $ECHO_C" >&6
3745else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003746 if test -n "$CXX"; then
3747 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3748else
3749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003751do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003752 IFS=$as_save_IFS
3753 test -z "$as_dir" && as_dir=.
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3756 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 break 2
3759 fi
3760done
3761done
3762
3763fi
3764fi
3765CXX=$ac_cv_prog_CXX
3766if test -n "$CXX"; then
3767 echo "$as_me:$LINENO: result: $CXX" >&5
3768echo "${ECHO_T}$CXX" >&6
3769else
3770 echo "$as_me:$LINENO: result: no" >&5
3771echo "${ECHO_T}no" >&6
3772fi
3773
3774 test -n "$CXX" && break
3775 done
3776fi
3777if test -z "$CXX"; then
3778 ac_ct_CXX=$CXX
3779 for ac_prog in $CCC g++
3780do
3781 # Extract the first word of "$ac_prog", so it can be a program name with args.
3782set dummy $ac_prog; ac_word=$2
3783echo "$as_me:$LINENO: checking for $ac_word" >&5
3784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3785if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3786 echo $ECHO_N "(cached) $ECHO_C" >&6
3787else
3788 if test -n "$ac_ct_CXX"; then
3789 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3790else
3791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792for as_dir in $PATH
3793do
3794 IFS=$as_save_IFS
3795 test -z "$as_dir" && as_dir=.
3796 for ac_exec_ext in '' $ac_executable_extensions; do
3797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3798 ac_cv_prog_ac_ct_CXX="$ac_prog"
3799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3800 break 2
3801 fi
3802done
3803done
3804
3805fi
3806fi
3807ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3808if test -n "$ac_ct_CXX"; then
3809 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3810echo "${ECHO_T}$ac_ct_CXX" >&6
3811else
3812 echo "$as_me:$LINENO: result: no" >&5
3813echo "${ECHO_T}no" >&6
3814fi
3815
3816 test -n "$ac_ct_CXX" && break
3817done
3818test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3819
3820 CXX=$ac_ct_CXX
3821fi
3822
3823
3824# Provide some information about the compiler.
3825echo "$as_me:$LINENO:" \
3826 "checking for C++ compiler version" >&5
3827ac_compiler=`set X $ac_compile; echo $2`
3828{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3829 (eval $ac_compiler --version </dev/null >&5) 2>&5
3830 ac_status=$?
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); }
3833{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3834 (eval $ac_compiler -v </dev/null >&5) 2>&5
3835 ac_status=$?
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); }
3838{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3839 (eval $ac_compiler -V </dev/null >&5) 2>&5
3840 ac_status=$?
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }
3843
3844echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3845echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3846if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848else
John Criswell7a73b802003-06-30 21:59:07 +00003849 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003850/* confdefs.h. */
3851_ACEOF
3852cat confdefs.h >>conftest.$ac_ext
3853cat >>conftest.$ac_ext <<_ACEOF
3854/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003855
3856int
3857main ()
3858{
3859#ifndef __GNUC__
3860 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00003861#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003862
3863 ;
3864 return 0;
3865}
John Criswell7a73b802003-06-30 21:59:07 +00003866_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003867rm -f conftest.$ac_objext
3868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3869 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003870 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003871 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003872 rm -f conftest.er1
3873 cat conftest.err >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003875 (exit $ac_status); } &&
3876 { ac_try='test -z "$ac_cxx_werror_flag"
3877 || test ! -s conftest.err'
3878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 (eval $ac_try) 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; } &&
3883 { ac_try='test -s conftest.$ac_objext'
3884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3885 (eval $ac_try) 2>&5
3886 ac_status=$?
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); }; }; then
3889 ac_compiler_gnu=yes
3890else
3891 echo "$as_me: failed program was:" >&5
3892sed 's/^/| /' conftest.$ac_ext >&5
3893
3894ac_compiler_gnu=no
3895fi
3896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3897ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3898
3899fi
3900echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3901echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3902GXX=`test $ac_compiler_gnu = yes && echo yes`
3903ac_test_CXXFLAGS=${CXXFLAGS+set}
3904ac_save_CXXFLAGS=$CXXFLAGS
3905CXXFLAGS="-g"
3906echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3907echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3908if test "${ac_cv_prog_cxx_g+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3910else
3911 cat >conftest.$ac_ext <<_ACEOF
3912/* confdefs.h. */
3913_ACEOF
3914cat confdefs.h >>conftest.$ac_ext
3915cat >>conftest.$ac_ext <<_ACEOF
3916/* end confdefs.h. */
3917
3918int
3919main ()
3920{
3921
3922 ;
3923 return 0;
3924}
3925_ACEOF
3926rm -f conftest.$ac_objext
3927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3928 (eval $ac_compile) 2>conftest.er1
3929 ac_status=$?
3930 grep -v '^ *+' conftest.er1 >conftest.err
3931 rm -f conftest.er1
3932 cat conftest.err >&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } &&
3935 { ac_try='test -z "$ac_cxx_werror_flag"
3936 || test ! -s conftest.err'
3937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938 (eval $ac_try) 2>&5
3939 ac_status=$?
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }; } &&
3942 { ac_try='test -s conftest.$ac_objext'
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944 (eval $ac_try) 2>&5
3945 ac_status=$?
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; }; then
3948 ac_cv_prog_cxx_g=yes
3949else
3950 echo "$as_me: failed program was:" >&5
3951sed 's/^/| /' conftest.$ac_ext >&5
3952
3953ac_cv_prog_cxx_g=no
3954fi
3955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3956fi
3957echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3958echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3959if test "$ac_test_CXXFLAGS" = set; then
3960 CXXFLAGS=$ac_save_CXXFLAGS
3961elif test $ac_cv_prog_cxx_g = yes; then
3962 if test "$GXX" = yes; then
3963 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003964 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003965 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003966 fi
3967else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003968 if test "$GXX" = yes; then
3969 CXXFLAGS="-O2"
3970 else
3971 CXXFLAGS=
3972 fi
John Criswell7a73b802003-06-30 21:59:07 +00003973fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003974for ac_declaration in \
3975 '' \
3976 'extern "C" void std::exit (int) throw (); using std::exit;' \
3977 'extern "C" void std::exit (int); using std::exit;' \
3978 'extern "C" void exit (int) throw ();' \
3979 'extern "C" void exit (int);' \
3980 'void exit (int);'
3981do
3982 cat >conftest.$ac_ext <<_ACEOF
3983/* confdefs.h. */
3984_ACEOF
3985cat confdefs.h >>conftest.$ac_ext
3986cat >>conftest.$ac_ext <<_ACEOF
3987/* end confdefs.h. */
3988$ac_declaration
3989#include <stdlib.h>
3990int
3991main ()
3992{
3993exit (42);
3994 ;
3995 return 0;
3996}
3997_ACEOF
3998rm -f conftest.$ac_objext
3999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4000 (eval $ac_compile) 2>conftest.er1
4001 ac_status=$?
4002 grep -v '^ *+' conftest.er1 >conftest.err
4003 rm -f conftest.er1
4004 cat conftest.err >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } &&
4007 { ac_try='test -z "$ac_cxx_werror_flag"
4008 || test ! -s conftest.err'
4009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4010 (eval $ac_try) 2>&5
4011 ac_status=$?
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; } &&
4014 { ac_try='test -s conftest.$ac_objext'
4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016 (eval $ac_try) 2>&5
4017 ac_status=$?
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004020 :
4021else
4022 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004023sed 's/^/| /' conftest.$ac_ext >&5
4024
John Criswell7a73b802003-06-30 21:59:07 +00004025continue
4026fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004028 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004029/* confdefs.h. */
4030_ACEOF
4031cat confdefs.h >>conftest.$ac_ext
4032cat >>conftest.$ac_ext <<_ACEOF
4033/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004034$ac_declaration
4035int
4036main ()
4037{
4038exit (42);
4039 ;
4040 return 0;
4041}
John Criswell7a73b802003-06-30 21:59:07 +00004042_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004043rm -f conftest.$ac_objext
4044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004046 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004047 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004048 rm -f conftest.er1
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004051 (exit $ac_status); } &&
4052 { ac_try='test -z "$ac_cxx_werror_flag"
4053 || test ! -s conftest.err'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055 (eval $ac_try) 2>&5
4056 ac_status=$?
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; } &&
4059 { ac_try='test -s conftest.$ac_objext'
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061 (eval $ac_try) 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004065 break
John Criswell7a73b802003-06-30 21:59:07 +00004066else
4067 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004068sed 's/^/| /' conftest.$ac_ext >&5
4069
John Criswell7a73b802003-06-30 21:59:07 +00004070fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004072done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004073rm -f conftest*
4074if test -n "$ac_declaration"; then
4075 echo '#ifdef __cplusplus' >>confdefs.h
4076 echo $ac_declaration >>confdefs.h
4077 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004078fi
4079
4080ac_ext=c
4081ac_cpp='$CPP $CPPFLAGS'
4082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084ac_compiler_gnu=$ac_cv_c_compiler_gnu
4085
John Criswell7a73b802003-06-30 21:59:07 +00004086echo "$as_me:$LINENO: checking " >&5
4087echo $ECHO_N "checking ... $ECHO_C" >&6
4088if test "${ac_cv_has_flex+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4090else
4091 for ac_prog in flex lex
4092do
4093 # Extract the first word of "$ac_prog", so it can be a program name with args.
4094set dummy $ac_prog; ac_word=$2
4095echo "$as_me:$LINENO: checking for $ac_word" >&5
4096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4097if test "${ac_cv_prog_LEX+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4099else
4100 if test -n "$LEX"; then
4101 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4102else
4103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104for as_dir in $PATH
4105do
4106 IFS=$as_save_IFS
4107 test -z "$as_dir" && as_dir=.
4108 for ac_exec_ext in '' $ac_executable_extensions; do
4109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4110 ac_cv_prog_LEX="$ac_prog"
4111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4112 break 2
4113 fi
4114done
4115done
4116
4117fi
4118fi
4119LEX=$ac_cv_prog_LEX
4120if test -n "$LEX"; then
4121 echo "$as_me:$LINENO: result: $LEX" >&5
4122echo "${ECHO_T}$LEX" >&6
4123else
4124 echo "$as_me:$LINENO: result: no" >&5
4125echo "${ECHO_T}no" >&6
4126fi
4127
4128 test -n "$LEX" && break
4129done
4130test -n "$LEX" || LEX=":"
4131
4132if test -z "$LEXLIB"
4133then
4134 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4135echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4136if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4138else
4139 ac_check_lib_save_LIBS=$LIBS
4140LIBS="-lfl $LIBS"
4141cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004142/* confdefs.h. */
4143_ACEOF
4144cat confdefs.h >>conftest.$ac_ext
4145cat >>conftest.$ac_ext <<_ACEOF
4146/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004147
4148/* Override any gcc2 internal prototype to avoid an error. */
4149#ifdef __cplusplus
4150extern "C"
4151#endif
4152/* We use char because int might match the return type of a gcc2
4153 builtin and then its argument prototype would still apply. */
4154char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004155int
4156main ()
4157{
4158yywrap ();
4159 ;
4160 return 0;
4161}
4162_ACEOF
4163rm -f conftest.$ac_objext conftest$ac_exeext
4164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004165 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004166 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004167 grep -v '^ *+' conftest.er1 >conftest.err
4168 rm -f conftest.er1
4169 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004172 { ac_try='test -z "$ac_c_werror_flag"
4173 || test ! -s conftest.err'
4174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175 (eval $ac_try) 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; } &&
4179 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 (eval $ac_try) 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; }; then
4185 ac_cv_lib_fl_yywrap=yes
4186else
4187 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004188sed 's/^/| /' conftest.$ac_ext >&5
4189
John Criswell7a73b802003-06-30 21:59:07 +00004190ac_cv_lib_fl_yywrap=no
4191fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004192rm -f conftest.err conftest.$ac_objext \
4193 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004194LIBS=$ac_check_lib_save_LIBS
4195fi
4196echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4197echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4198if test $ac_cv_lib_fl_yywrap = yes; then
4199 LEXLIB="-lfl"
4200else
4201 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4202echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4203if test "${ac_cv_lib_l_yywrap+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4205else
4206 ac_check_lib_save_LIBS=$LIBS
4207LIBS="-ll $LIBS"
4208cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004209/* confdefs.h. */
4210_ACEOF
4211cat confdefs.h >>conftest.$ac_ext
4212cat >>conftest.$ac_ext <<_ACEOF
4213/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004214
4215/* Override any gcc2 internal prototype to avoid an error. */
4216#ifdef __cplusplus
4217extern "C"
4218#endif
4219/* We use char because int might match the return type of a gcc2
4220 builtin and then its argument prototype would still apply. */
4221char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004222int
4223main ()
4224{
4225yywrap ();
4226 ;
4227 return 0;
4228}
4229_ACEOF
4230rm -f conftest.$ac_objext conftest$ac_exeext
4231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004232 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004233 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004234 grep -v '^ *+' conftest.er1 >conftest.err
4235 rm -f conftest.er1
4236 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004239 { ac_try='test -z "$ac_c_werror_flag"
4240 || test ! -s conftest.err'
4241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242 (eval $ac_try) 2>&5
4243 ac_status=$?
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; } &&
4246 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248 (eval $ac_try) 2>&5
4249 ac_status=$?
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }; }; then
4252 ac_cv_lib_l_yywrap=yes
4253else
4254 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004255sed 's/^/| /' conftest.$ac_ext >&5
4256
John Criswell7a73b802003-06-30 21:59:07 +00004257ac_cv_lib_l_yywrap=no
4258fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004259rm -f conftest.err conftest.$ac_objext \
4260 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004261LIBS=$ac_check_lib_save_LIBS
4262fi
4263echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4264echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4265if test $ac_cv_lib_l_yywrap = yes; then
4266 LEXLIB="-ll"
4267fi
4268
4269fi
4270
4271fi
4272
4273if test "x$LEX" != "x:"; then
4274 echo "$as_me:$LINENO: checking lex output file root" >&5
4275echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4276if test "${ac_cv_prog_lex_root+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4278else
4279 # The minimal lex program is just a single line: %%. But some broken lexes
4280# (Solaris, I think it was) want two %% lines, so accommodate them.
4281cat >conftest.l <<_ACEOF
4282%%
4283%%
4284_ACEOF
4285{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4286 (eval $LEX conftest.l) 2>&5
4287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }
4290if test -f lex.yy.c; then
4291 ac_cv_prog_lex_root=lex.yy
4292elif test -f lexyy.c; then
4293 ac_cv_prog_lex_root=lexyy
4294else
4295 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4296echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4297 { (exit 1); exit 1; }; }
4298fi
4299fi
4300echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4301echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4302rm -f conftest.l
4303LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4304
4305echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4306echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4307if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4309else
4310 # POSIX says lex can declare yytext either as a pointer or an array; the
4311# default is implementation-dependent. Figure out which it is, since
4312# not all implementations provide the %pointer and %array declarations.
4313ac_cv_prog_lex_yytext_pointer=no
4314echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4315ac_save_LIBS=$LIBS
4316LIBS="$LIBS $LEXLIB"
4317cat >conftest.$ac_ext <<_ACEOF
4318`cat $LEX_OUTPUT_ROOT.c`
4319_ACEOF
4320rm -f conftest.$ac_objext conftest$ac_exeext
4321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004322 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004323 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004324 grep -v '^ *+' conftest.er1 >conftest.err
4325 rm -f conftest.er1
4326 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004329 { ac_try='test -z "$ac_c_werror_flag"
4330 || test ! -s conftest.err'
4331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332 (eval $ac_try) 2>&5
4333 ac_status=$?
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; } &&
4336 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338 (eval $ac_try) 2>&5
4339 ac_status=$?
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; }; then
4342 ac_cv_prog_lex_yytext_pointer=yes
4343else
4344 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004345sed 's/^/| /' conftest.$ac_ext >&5
4346
John Criswell7a73b802003-06-30 21:59:07 +00004347fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004348rm -f conftest.err conftest.$ac_objext \
4349 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004350LIBS=$ac_save_LIBS
4351rm -f "${LEX_OUTPUT_ROOT}.c"
4352
4353fi
4354echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4355echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4356if test $ac_cv_prog_lex_yytext_pointer = yes; then
4357
4358cat >>confdefs.h <<\_ACEOF
4359#define YYTEXT_POINTER 1
4360_ACEOF
4361
4362fi
4363
4364fi
4365
4366fi
4367echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4368echo "${ECHO_T}$ac_cv_has_flex" >&6
4369if test "$LEX" != "flex"; then
4370 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4371echo "$as_me: error: flex not found but required" >&2;}
4372 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004373else
4374 FLEX=flex
4375
John Criswell7a73b802003-06-30 21:59:07 +00004376fi
4377
4378echo "$as_me:$LINENO: checking " >&5
4379echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004380if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004381 echo $ECHO_N "(cached) $ECHO_C" >&6
4382else
4383 for ac_prog in 'bison -y' byacc
4384do
4385 # Extract the first word of "$ac_prog", so it can be a program name with args.
4386set dummy $ac_prog; ac_word=$2
4387echo "$as_me:$LINENO: checking for $ac_word" >&5
4388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4389if test "${ac_cv_prog_YACC+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391else
4392 if test -n "$YACC"; then
4393 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4394else
4395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396for as_dir in $PATH
4397do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4402 ac_cv_prog_YACC="$ac_prog"
4403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 break 2
4405 fi
4406done
4407done
4408
4409fi
4410fi
4411YACC=$ac_cv_prog_YACC
4412if test -n "$YACC"; then
4413 echo "$as_me:$LINENO: result: $YACC" >&5
4414echo "${ECHO_T}$YACC" >&6
4415else
4416 echo "$as_me:$LINENO: result: no" >&5
4417echo "${ECHO_T}no" >&6
4418fi
4419
4420 test -n "$YACC" && break
4421done
4422test -n "$YACC" || YACC="yacc"
4423
John Criswell7a73b802003-06-30 21:59:07 +00004424fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004425echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4426echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004427if test "$YACC" != "bison -y"; then
4428 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4429echo "$as_me: error: bison not found but required" >&2;}
4430 { (exit 1); exit 1; }; }
4431else
Brian Gaeke12810632004-01-13 06:52:10 +00004432 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004433
4434fi
4435
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004436echo "$as_me:$LINENO: checking for GNU make" >&5
4437echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4438if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004441 llvm_cv_gnu_make_command=''
4442 for a in "$MAKE" make gmake gnumake ; do
4443 if test -z "$a" ; then continue ; fi ;
4444 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4445 then
4446 llvm_cv_gnu_make_command=$a ;
4447 break;
John Criswell47fdd832003-07-14 16:52:07 +00004448 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004449 done
John Criswell7a73b802003-06-30 21:59:07 +00004450fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004451echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4452echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4453 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4454 ifGNUmake='' ;
4455 else
4456 ifGNUmake='#' ;
4457 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4458echo "${ECHO_T}\"Not found\"" >&6;
4459 fi
John Criswell7a73b802003-06-30 21:59:07 +00004460
John Criswell7a73b802003-06-30 21:59:07 +00004461
4462echo "$as_me:$LINENO: checking whether ln -s works" >&5
4463echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4464LN_S=$as_ln_s
4465if test "$LN_S" = "ln -s"; then
4466 echo "$as_me:$LINENO: result: yes" >&5
4467echo "${ECHO_T}yes" >&6
4468else
4469 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4470echo "${ECHO_T}no, using $LN_S" >&6
4471fi
4472
Reid Spencer8a2d4712004-12-16 17:48:14 +00004473# Extract the first word of "cmp", so it can be a program name with args.
4474set dummy cmp; ac_word=$2
4475echo "$as_me:$LINENO: checking for $ac_word" >&5
4476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4477if test "${ac_cv_path_CMP+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4479else
4480 case $CMP in
4481 [\\/]* | ?:[\\/]*)
4482 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4483 ;;
4484 *)
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486for as_dir in $PATH
4487do
4488 IFS=$as_save_IFS
4489 test -z "$as_dir" && as_dir=.
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4492 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4494 break 2
4495 fi
4496done
4497done
4498
4499 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4500 ;;
4501esac
4502fi
4503CMP=$ac_cv_path_CMP
4504
4505if test -n "$CMP"; then
4506 echo "$as_me:$LINENO: result: $CMP" >&5
4507echo "${ECHO_T}$CMP" >&6
4508else
4509 echo "$as_me:$LINENO: result: no" >&5
4510echo "${ECHO_T}no" >&6
4511fi
4512
4513# Extract the first word of "cp", so it can be a program name with args.
4514set dummy cp; ac_word=$2
4515echo "$as_me:$LINENO: checking for $ac_word" >&5
4516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4517if test "${ac_cv_path_CP+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519else
4520 case $CP in
4521 [\\/]* | ?:[\\/]*)
4522 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4523 ;;
4524 *)
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526for as_dir in $PATH
4527do
4528 IFS=$as_save_IFS
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4532 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 break 2
4535 fi
4536done
4537done
4538
4539 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4540 ;;
4541esac
4542fi
4543CP=$ac_cv_path_CP
4544
4545if test -n "$CP"; then
4546 echo "$as_me:$LINENO: result: $CP" >&5
4547echo "${ECHO_T}$CP" >&6
4548else
4549 echo "$as_me:$LINENO: result: no" >&5
4550echo "${ECHO_T}no" >&6
4551fi
4552
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004553# Extract the first word of "date", so it can be a program name with args.
4554set dummy date; ac_word=$2
4555echo "$as_me:$LINENO: checking for $ac_word" >&5
4556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4557if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004558 echo $ECHO_N "(cached) $ECHO_C" >&6
4559else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004560 case $DATE in
4561 [\\/]* | ?:[\\/]*)
4562 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004563 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004564 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566for as_dir in $PATH
4567do
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4572 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004575 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004576done
4577done
John Criswell7a73b802003-06-30 21:59:07 +00004578
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004579 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004580 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004581esac
John Criswell7a73b802003-06-30 21:59:07 +00004582fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004583DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004584
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004585if test -n "$DATE"; then
4586 echo "$as_me:$LINENO: result: $DATE" >&5
4587echo "${ECHO_T}$DATE" >&6
4588else
4589 echo "$as_me:$LINENO: result: no" >&5
4590echo "${ECHO_T}no" >&6
4591fi
John Criswell7a73b802003-06-30 21:59:07 +00004592
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004593# Extract the first word of "find", so it can be a program name with args.
4594set dummy find; ac_word=$2
4595echo "$as_me:$LINENO: checking for $ac_word" >&5
4596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4597if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004598 echo $ECHO_N "(cached) $ECHO_C" >&6
4599else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004600 case $FIND in
4601 [\\/]* | ?:[\\/]*)
4602 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4603 ;;
4604 *)
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606for as_dir in $PATH
4607do
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4612 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 break 2
4615 fi
4616done
4617done
4618
4619 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4620 ;;
4621esac
4622fi
4623FIND=$ac_cv_path_FIND
4624
4625if test -n "$FIND"; then
4626 echo "$as_me:$LINENO: result: $FIND" >&5
4627echo "${ECHO_T}$FIND" >&6
4628else
4629 echo "$as_me:$LINENO: result: no" >&5
4630echo "${ECHO_T}no" >&6
4631fi
4632
4633# Extract the first word of "grep", so it can be a program name with args.
4634set dummy grep; ac_word=$2
4635echo "$as_me:$LINENO: checking for $ac_word" >&5
4636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4637if test "${ac_cv_path_GREP+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639else
4640 case $GREP in
4641 [\\/]* | ?:[\\/]*)
4642 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4643 ;;
4644 *)
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646for as_dir in $PATH
4647do
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4652 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 break 2
4655 fi
4656done
4657done
4658
4659 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4660 ;;
4661esac
4662fi
4663GREP=$ac_cv_path_GREP
4664
4665if test -n "$GREP"; then
4666 echo "$as_me:$LINENO: result: $GREP" >&5
4667echo "${ECHO_T}$GREP" >&6
4668else
4669 echo "$as_me:$LINENO: result: no" >&5
4670echo "${ECHO_T}no" >&6
4671fi
4672
Reid Spencer502935f2004-12-22 05:56:56 +00004673# Extract the first word of "llvm-gcc", so it can be a program name with args.
4674set dummy llvm-gcc; ac_word=$2
4675echo "$as_me:$LINENO: checking for $ac_word" >&5
4676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4677if test "${ac_cv_path_LLVMGCC+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4679else
4680 case $LLVMGCC in
4681 [\\/]* | ?:[\\/]*)
4682 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
4683 ;;
4684 *)
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686for as_dir in $PATH
4687do
4688 IFS=$as_save_IFS
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4692 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
4693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 break 2
4695 fi
4696done
4697done
4698
4699 test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
4700 ;;
4701esac
4702fi
4703LLVMGCC=$ac_cv_path_LLVMGCC
4704
4705if test -n "$LLVMGCC"; then
4706 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
4707echo "${ECHO_T}$LLVMGCC" >&6
4708else
4709 echo "$as_me:$LINENO: result: no" >&5
4710echo "${ECHO_T}no" >&6
4711fi
4712
4713# Extract the first word of "llvm-g++", so it can be a program name with args.
4714set dummy llvm-g++; ac_word=$2
4715echo "$as_me:$LINENO: checking for $ac_word" >&5
4716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4717if test "${ac_cv_path_LLVMGXX+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4719else
4720 case $LLVMGXX in
4721 [\\/]* | ?:[\\/]*)
4722 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
4723 ;;
4724 *)
4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726for as_dir in $PATH
4727do
4728 IFS=$as_save_IFS
4729 test -z "$as_dir" && as_dir=.
4730 for ac_exec_ext in '' $ac_executable_extensions; do
4731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4732 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
4733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4734 break 2
4735 fi
4736done
4737done
4738
4739 test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
4740 ;;
4741esac
4742fi
4743LLVMGXX=$ac_cv_path_LLVMGXX
4744
4745if test -n "$LLVMGXX"; then
4746 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
4747echo "${ECHO_T}$LLVMGXX" >&6
4748else
4749 echo "$as_me:$LINENO: result: no" >&5
4750echo "${ECHO_T}no" >&6
4751fi
4752
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004753# Extract the first word of "mkdir", so it can be a program name with args.
4754set dummy mkdir; ac_word=$2
4755echo "$as_me:$LINENO: checking for $ac_word" >&5
4756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4757if test "${ac_cv_path_MKDIR+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4759else
4760 case $MKDIR in
4761 [\\/]* | ?:[\\/]*)
4762 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4763 ;;
4764 *)
4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766for as_dir in $PATH
4767do
4768 IFS=$as_save_IFS
4769 test -z "$as_dir" && as_dir=.
4770 for ac_exec_ext in '' $ac_executable_extensions; do
4771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4772 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4774 break 2
4775 fi
4776done
4777done
4778
4779 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4780 ;;
4781esac
4782fi
4783MKDIR=$ac_cv_path_MKDIR
4784
4785if test -n "$MKDIR"; then
4786 echo "$as_me:$LINENO: result: $MKDIR" >&5
4787echo "${ECHO_T}$MKDIR" >&6
4788else
4789 echo "$as_me:$LINENO: result: no" >&5
4790echo "${ECHO_T}no" >&6
4791fi
4792
4793# Extract the first word of "mv", so it can be a program name with args.
4794set dummy mv; ac_word=$2
4795echo "$as_me:$LINENO: checking for $ac_word" >&5
4796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4797if test "${ac_cv_path_MV+set}" = set; then
4798 echo $ECHO_N "(cached) $ECHO_C" >&6
4799else
4800 case $MV in
4801 [\\/]* | ?:[\\/]*)
4802 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4803 ;;
4804 *)
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806for as_dir in $PATH
4807do
4808 IFS=$as_save_IFS
4809 test -z "$as_dir" && as_dir=.
4810 for ac_exec_ext in '' $ac_executable_extensions; do
4811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4812 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4814 break 2
4815 fi
4816done
4817done
4818
4819 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4820 ;;
4821esac
4822fi
4823MV=$ac_cv_path_MV
4824
4825if test -n "$MV"; then
4826 echo "$as_me:$LINENO: result: $MV" >&5
4827echo "${ECHO_T}$MV" >&6
4828else
4829 echo "$as_me:$LINENO: result: no" >&5
4830echo "${ECHO_T}no" >&6
4831fi
4832
4833# Extract the first word of "pax", so it can be a program name with args.
4834set dummy pax; ac_word=$2
4835echo "$as_me:$LINENO: checking for $ac_word" >&5
4836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4837if test "${ac_cv_path_PAX+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839else
4840 case $PAX in
4841 [\\/]* | ?:[\\/]*)
4842 ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4843 ;;
4844 *)
4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846for as_dir in $PATH
4847do
4848 IFS=$as_save_IFS
4849 test -z "$as_dir" && as_dir=.
4850 for ac_exec_ext in '' $ac_executable_extensions; do
4851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4852 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4854 break 2
4855 fi
4856done
4857done
4858
4859 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4860 ;;
4861esac
4862fi
4863PAX=$ac_cv_path_PAX
4864
4865if test -n "$PAX"; then
4866 echo "$as_me:$LINENO: result: $PAX" >&5
4867echo "${ECHO_T}$PAX" >&6
4868else
4869 echo "$as_me:$LINENO: result: no" >&5
4870echo "${ECHO_T}no" >&6
4871fi
4872
4873if test -n "$ac_tool_prefix"; then
4874 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4875set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4876echo "$as_me:$LINENO: checking for $ac_word" >&5
4877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4878if test "${ac_cv_prog_RANLIB+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4880else
4881 if test -n "$RANLIB"; then
4882 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4883else
4884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885for as_dir in $PATH
4886do
4887 IFS=$as_save_IFS
4888 test -z "$as_dir" && as_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4891 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 break 2
4894 fi
4895done
4896done
4897
4898fi
4899fi
4900RANLIB=$ac_cv_prog_RANLIB
4901if test -n "$RANLIB"; then
4902 echo "$as_me:$LINENO: result: $RANLIB" >&5
4903echo "${ECHO_T}$RANLIB" >&6
4904else
4905 echo "$as_me:$LINENO: result: no" >&5
4906echo "${ECHO_T}no" >&6
4907fi
4908
4909fi
4910if test -z "$ac_cv_prog_RANLIB"; then
4911 ac_ct_RANLIB=$RANLIB
4912 # Extract the first word of "ranlib", so it can be a program name with args.
4913set dummy ranlib; ac_word=$2
4914echo "$as_me:$LINENO: checking for $ac_word" >&5
4915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4916if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4918else
4919 if test -n "$ac_ct_RANLIB"; then
4920 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4921else
4922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923for as_dir in $PATH
4924do
4925 IFS=$as_save_IFS
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929 ac_cv_prog_ac_ct_RANLIB="ranlib"
4930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 break 2
4932 fi
4933done
4934done
4935
4936 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4937fi
4938fi
4939ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4940if test -n "$ac_ct_RANLIB"; then
4941 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4942echo "${ECHO_T}$ac_ct_RANLIB" >&6
4943else
4944 echo "$as_me:$LINENO: result: no" >&5
4945echo "${ECHO_T}no" >&6
4946fi
4947
4948 RANLIB=$ac_ct_RANLIB
4949else
4950 RANLIB="$ac_cv_prog_RANLIB"
4951fi
4952
4953# Extract the first word of "rm", so it can be a program name with args.
4954set dummy rm; ac_word=$2
4955echo "$as_me:$LINENO: checking for $ac_word" >&5
4956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4957if test "${ac_cv_path_RM+set}" = set; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
4959else
4960 case $RM in
4961 [\\/]* | ?:[\\/]*)
4962 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4963 ;;
4964 *)
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966for as_dir in $PATH
4967do
4968 IFS=$as_save_IFS
4969 test -z "$as_dir" && as_dir=.
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4972 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 break 2
4975 fi
4976done
4977done
4978
4979 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4980 ;;
4981esac
4982fi
4983RM=$ac_cv_path_RM
4984
4985if test -n "$RM"; then
4986 echo "$as_me:$LINENO: result: $RM" >&5
4987echo "${ECHO_T}$RM" >&6
4988else
4989 echo "$as_me:$LINENO: result: no" >&5
4990echo "${ECHO_T}no" >&6
4991fi
4992
4993# Extract the first word of "sed", so it can be a program name with args.
4994set dummy sed; ac_word=$2
4995echo "$as_me:$LINENO: checking for $ac_word" >&5
4996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4997if test "${ac_cv_path_SED+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
4999else
5000 case $SED in
5001 [\\/]* | ?:[\\/]*)
5002 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5003 ;;
5004 *)
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006for as_dir in $PATH
5007do
5008 IFS=$as_save_IFS
5009 test -z "$as_dir" && as_dir=.
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5012 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5014 break 2
5015 fi
5016done
5017done
5018
5019 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5020 ;;
5021esac
5022fi
5023SED=$ac_cv_path_SED
5024
5025if test -n "$SED"; then
5026 echo "$as_me:$LINENO: result: $SED" >&5
5027echo "${ECHO_T}$SED" >&6
5028else
5029 echo "$as_me:$LINENO: result: no" >&5
5030echo "${ECHO_T}no" >&6
5031fi
5032
5033# Extract the first word of "tar", so it can be a program name with args.
5034set dummy tar; ac_word=$2
5035echo "$as_me:$LINENO: checking for $ac_word" >&5
5036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5037if test "${ac_cv_path_TAR+set}" = set; then
5038 echo $ECHO_N "(cached) $ECHO_C" >&6
5039else
5040 case $TAR in
5041 [\\/]* | ?:[\\/]*)
5042 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5043 ;;
5044 *)
5045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046for as_dir in $PATH
5047do
5048 IFS=$as_save_IFS
5049 test -z "$as_dir" && as_dir=.
5050 for ac_exec_ext in '' $ac_executable_extensions; do
5051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5052 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5054 break 2
5055 fi
5056done
5057done
5058
5059 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5060 ;;
5061esac
5062fi
5063TAR=$ac_cv_path_TAR
5064
5065if test -n "$TAR"; then
5066 echo "$as_me:$LINENO: result: $TAR" >&5
5067echo "${ECHO_T}$TAR" >&6
5068else
5069 echo "$as_me:$LINENO: result: no" >&5
5070echo "${ECHO_T}no" >&6
5071fi
5072
5073
5074# Find a good install program. We prefer a C program (faster),
5075# so one script is as good as another. But avoid the broken or
5076# incompatible versions:
5077# SysV /etc/install, /usr/sbin/install
5078# SunOS /usr/etc/install
5079# IRIX /sbin/install
5080# AIX /bin/install
5081# AmigaOS /C/install, which installs bootblocks on floppy discs
5082# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5083# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5084# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5085# OS/2's system install, which has a completely different semantic
5086# ./install, which can be erroneously created by make from ./install.sh.
5087echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5088echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5089if test -z "$INSTALL"; then
5090if test "${ac_cv_path_install+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5092else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094for as_dir in $PATH
5095do
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 # Account for people who put trailing slashes in PATH elements.
5099case $as_dir/ in
5100 ./ | .// | /cC/* | \
5101 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5102 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5103 /usr/ucb/* ) ;;
5104 *)
5105 # OSF1 and SCO ODT 3.0 have their own names for install.
5106 # Don't use installbsd from OSF since it installs stuff as root
5107 # by default.
5108 for ac_prog in ginstall scoinst install; do
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5111 if test $ac_prog = install &&
5112 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5113 # AIX install. It has an incompatible calling convention.
5114 :
5115 elif test $ac_prog = install &&
5116 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5117 # program-specific install script used by HP pwplus--don't use.
5118 :
5119 else
5120 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5121 break 3
5122 fi
5123 fi
5124 done
5125 done
5126 ;;
5127esac
5128done
5129
5130
5131fi
5132 if test "${ac_cv_path_install+set}" = set; then
5133 INSTALL=$ac_cv_path_install
5134 else
5135 # As a last resort, use the slow shell script. We don't cache a
5136 # path for INSTALL within a source directory, because that will
5137 # break other packages using the cache if that directory is
5138 # removed, or if the path is relative.
5139 INSTALL=$ac_install_sh
5140 fi
5141fi
5142echo "$as_me:$LINENO: result: $INSTALL" >&5
5143echo "${ECHO_T}$INSTALL" >&6
5144
5145# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5146# It thinks the first close brace ends the variable substitution.
5147test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5148
5149test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5150
5151test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5152
5153
5154# Extract the first word of "bzip2", so it can be a program name with args.
5155set dummy bzip2; ac_word=$2
5156echo "$as_me:$LINENO: checking for $ac_word" >&5
5157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5158if test "${ac_cv_path_BZIP2+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5160else
5161 case $BZIP2 in
5162 [\\/]* | ?:[\\/]*)
5163 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5164 ;;
5165 *)
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167for as_dir in $PATH
5168do
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5173 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 break 2
5176 fi
5177done
5178done
5179
5180 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5181 ;;
5182esac
5183fi
5184BZIP2=$ac_cv_path_BZIP2
5185
5186if test -n "$BZIP2"; then
5187 echo "$as_me:$LINENO: result: $BZIP2" >&5
5188echo "${ECHO_T}$BZIP2" >&6
5189else
5190 echo "$as_me:$LINENO: result: no" >&5
5191echo "${ECHO_T}no" >&6
5192fi
5193
5194# Extract the first word of "dot", so it can be a program name with args.
5195set dummy dot; ac_word=$2
5196echo "$as_me:$LINENO: checking for $ac_word" >&5
5197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5198if test "${ac_cv_path_DOT+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5200else
5201 case $DOT in
5202 [\\/]* | ?:[\\/]*)
5203 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5204 ;;
5205 *)
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207for as_dir in $PATH
5208do
5209 IFS=$as_save_IFS
5210 test -z "$as_dir" && as_dir=.
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5215 break 2
5216 fi
5217done
5218done
5219
5220 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5221 ;;
5222esac
5223fi
5224DOT=$ac_cv_path_DOT
5225
5226if test -n "$DOT"; then
5227 echo "$as_me:$LINENO: result: $DOT" >&5
5228echo "${ECHO_T}$DOT" >&6
5229else
5230 echo "$as_me:$LINENO: result: no" >&5
5231echo "${ECHO_T}no" >&6
5232fi
5233
5234# Extract the first word of "doxygen", so it can be a program name with args.
5235set dummy doxygen; ac_word=$2
5236echo "$as_me:$LINENO: checking for $ac_word" >&5
5237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5238if test "${ac_cv_path_DOXYGEN+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5240else
5241 case $DOXYGEN in
5242 [\\/]* | ?:[\\/]*)
5243 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5244 ;;
5245 *)
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247for as_dir in $PATH
5248do
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 break 2
5256 fi
5257done
5258done
5259
5260 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5261 ;;
5262esac
5263fi
5264DOXYGEN=$ac_cv_path_DOXYGEN
5265
5266if test -n "$DOXYGEN"; then
5267 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5268echo "${ECHO_T}$DOXYGEN" >&6
5269else
5270 echo "$as_me:$LINENO: result: no" >&5
5271echo "${ECHO_T}no" >&6
5272fi
5273
5274# Extract the first word of "etags", so it can be a program name with args.
5275set dummy etags; ac_word=$2
5276echo "$as_me:$LINENO: checking for $ac_word" >&5
5277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5278if test "${ac_cv_path_ETAGS+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5280else
5281 case $ETAGS in
5282 [\\/]* | ?:[\\/]*)
5283 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5284 ;;
5285 *)
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287for as_dir in $PATH
5288do
5289 IFS=$as_save_IFS
5290 test -z "$as_dir" && as_dir=.
5291 for ac_exec_ext in '' $ac_executable_extensions; do
5292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5293 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 break 2
5296 fi
5297done
5298done
5299
5300 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5301 ;;
5302esac
5303fi
5304ETAGS=$ac_cv_path_ETAGS
5305
5306if test -n "$ETAGS"; then
5307 echo "$as_me:$LINENO: result: $ETAGS" >&5
5308echo "${ECHO_T}$ETAGS" >&6
5309else
5310 echo "$as_me:$LINENO: result: no" >&5
5311echo "${ECHO_T}no" >&6
5312fi
5313
5314# Extract the first word of "groff", so it can be a program name with args.
5315set dummy groff; ac_word=$2
5316echo "$as_me:$LINENO: checking for $ac_word" >&5
5317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5318if test "${ac_cv_path_GROFF+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5320else
5321 case $GROFF in
5322 [\\/]* | ?:[\\/]*)
5323 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5324 ;;
5325 *)
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327for as_dir in $PATH
5328do
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 break 2
5336 fi
5337done
5338done
5339
5340 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5341 ;;
5342esac
5343fi
5344GROFF=$ac_cv_path_GROFF
5345
5346if test -n "$GROFF"; then
5347 echo "$as_me:$LINENO: result: $GROFF" >&5
5348echo "${ECHO_T}$GROFF" >&6
5349else
5350 echo "$as_me:$LINENO: result: no" >&5
5351echo "${ECHO_T}no" >&6
5352fi
5353
5354# Extract the first word of "gzip", so it can be a program name with args.
5355set dummy gzip; ac_word=$2
5356echo "$as_me:$LINENO: checking for $ac_word" >&5
5357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5358if test "${ac_cv_path_GZIP+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5360else
5361 case $GZIP in
5362 [\\/]* | ?:[\\/]*)
5363 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5364 ;;
5365 *)
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367for as_dir in $PATH
5368do
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5373 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 break 2
5376 fi
5377done
5378done
5379
5380 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5381 ;;
5382esac
5383fi
5384GZIP=$ac_cv_path_GZIP
5385
5386if test -n "$GZIP"; then
5387 echo "$as_me:$LINENO: result: $GZIP" >&5
5388echo "${ECHO_T}$GZIP" >&6
5389else
5390 echo "$as_me:$LINENO: result: no" >&5
5391echo "${ECHO_T}no" >&6
5392fi
5393
5394# Extract the first word of "pod2html", so it can be a program name with args.
5395set dummy pod2html; ac_word=$2
5396echo "$as_me:$LINENO: checking for $ac_word" >&5
5397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5398if test "${ac_cv_path_POD2HTML+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5400else
5401 case $POD2HTML in
5402 [\\/]* | ?:[\\/]*)
5403 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5404 ;;
5405 *)
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407for as_dir in $PATH
5408do
5409 IFS=$as_save_IFS
5410 test -z "$as_dir" && as_dir=.
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5413 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5415 break 2
5416 fi
5417done
5418done
5419
5420 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5421 ;;
5422esac
5423fi
5424POD2HTML=$ac_cv_path_POD2HTML
5425
5426if test -n "$POD2HTML"; then
5427 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5428echo "${ECHO_T}$POD2HTML" >&6
5429else
5430 echo "$as_me:$LINENO: result: no" >&5
5431echo "${ECHO_T}no" >&6
5432fi
5433
5434# Extract the first word of "pod2man", so it can be a program name with args.
5435set dummy pod2man; ac_word=$2
5436echo "$as_me:$LINENO: checking for $ac_word" >&5
5437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5438if test "${ac_cv_path_POD2MAN+set}" = set; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5440else
5441 case $POD2MAN in
5442 [\\/]* | ?:[\\/]*)
5443 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5444 ;;
5445 *)
5446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447for as_dir in $PATH
5448do
5449 IFS=$as_save_IFS
5450 test -z "$as_dir" && as_dir=.
5451 for ac_exec_ext in '' $ac_executable_extensions; do
5452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5453 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5455 break 2
5456 fi
5457done
5458done
5459
5460 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5461 ;;
5462esac
5463fi
5464POD2MAN=$ac_cv_path_POD2MAN
5465
5466if test -n "$POD2MAN"; then
5467 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5468echo "${ECHO_T}$POD2MAN" >&6
5469else
5470 echo "$as_me:$LINENO: result: no" >&5
5471echo "${ECHO_T}no" >&6
5472fi
5473
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005474# Extract the first word of "runtest", so it can be a program name with args.
5475set dummy runtest; ac_word=$2
5476echo "$as_me:$LINENO: checking for $ac_word" >&5
5477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5478if test "${ac_cv_path_RUNTEST+set}" = set; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5480else
5481 case $RUNTEST in
5482 [\\/]* | ?:[\\/]*)
5483 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5484 ;;
5485 *)
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487for as_dir in $PATH
5488do
5489 IFS=$as_save_IFS
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5493 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5495 break 2
5496 fi
5497done
5498done
5499
5500 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5501 ;;
5502esac
5503fi
5504RUNTEST=$ac_cv_path_RUNTEST
5505
5506if test -n "$RUNTEST"; then
5507 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5508echo "${ECHO_T}$RUNTEST" >&6
5509else
5510 echo "$as_me:$LINENO: result: no" >&5
5511echo "${ECHO_T}no" >&6
5512fi
5513
Reid Spencer0fcb9412004-11-30 08:11:54 +00005514
Reid Spencer0fcb9412004-11-30 08:11:54 +00005515no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005516echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5517echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005518
5519# Check whether --with-tclinclude or --without-tclinclude was given.
5520if test "${with_tclinclude+set}" = set; then
5521 withval="$with_tclinclude"
5522 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005523else
5524 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005525fi;
5526if test "${ac_cv_path_tclsh+set}" = set; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
5528else
5529
5530if test x"${with_tclinclude}" != x ; then
5531 if test -f ${with_tclinclude}/tclsh ; then
5532 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5533 elif test -f ${with_tclinclude}/src/tclsh ; then
5534 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5535 else
5536 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5537echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5538 { (exit 1); exit 1; }; }
5539 fi
5540fi
5541
Reid Spencer0fcb9412004-11-30 08:11:54 +00005542if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005543 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005544echo "${ECHO_T}none" >&6
Reid Spencerfc757b52004-12-02 07:31:22 +00005545 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 +00005546do
5547 # Extract the first word of "$ac_prog", so it can be a program name with args.
5548set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005549echo "$as_me:$LINENO: checking for $ac_word" >&5
5550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005551if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005552 echo $ECHO_N "(cached) $ECHO_C" >&6
5553else
Reid Spencercda35f82004-12-02 04:17:20 +00005554 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005555 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005556 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005557 ;;
5558 *)
5559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560for as_dir in $PATH
5561do
5562 IFS=$as_save_IFS
5563 test -z "$as_dir" && as_dir=.
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005566 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5568 break 2
5569 fi
5570done
5571done
5572
5573 ;;
5574esac
5575fi
Reid Spencercda35f82004-12-02 04:17:20 +00005576TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005577
Reid Spencercda35f82004-12-02 04:17:20 +00005578if test -n "$TCLSH"; then
5579 echo "$as_me:$LINENO: result: $TCLSH" >&5
5580echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005581else
5582 echo "$as_me:$LINENO: result: no" >&5
5583echo "${ECHO_T}no" >&6
5584fi
5585
Reid Spencercda35f82004-12-02 04:17:20 +00005586 test -n "$TCLSH" && break
5587done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005588
Reid Spencercda35f82004-12-02 04:17:20 +00005589 if test x"${TCLSH}" = x ; then
5590 ac_cv_path_tclsh='';
5591 else
5592 ac_cv_path_tclsh="${TCLSH}";
5593 fi
5594else
5595 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5596echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5597 TCLSH="${ac_cv_path_tclsh}"
5598
5599fi
5600
5601fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005602
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005603# Extract the first word of "zip", so it can be a program name with args.
5604set dummy zip; ac_word=$2
5605echo "$as_me:$LINENO: checking for $ac_word" >&5
5606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5607if test "${ac_cv_path_ZIP+set}" = set; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5609else
5610 case $ZIP in
5611 [\\/]* | ?:[\\/]*)
5612 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5613 ;;
5614 *)
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616for as_dir in $PATH
5617do
5618 IFS=$as_save_IFS
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 break 2
5625 fi
5626done
5627done
5628
5629 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5630 ;;
5631esac
5632fi
5633ZIP=$ac_cv_path_ZIP
5634
5635if test -n "$ZIP"; then
5636 echo "$as_me:$LINENO: result: $ZIP" >&5
5637echo "${ECHO_T}$ZIP" >&6
5638else
5639 echo "$as_me:$LINENO: result: no" >&5
5640echo "${ECHO_T}no" >&6
5641fi
5642
5643
5644echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5645echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5646if test "${llvm_cv_link_use_r+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5648else
5649 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005650ac_cpp='$CPP $CPPFLAGS'
5651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5653ac_compiler_gnu=$ac_cv_c_compiler_gnu
5654
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005655 oldcflags="$CFLAGS"
5656 CFLAGS="$CFLAGS -Wl,-R."
5657 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005658/* confdefs.h. */
5659_ACEOF
5660cat confdefs.h >>conftest.$ac_ext
5661cat >>conftest.$ac_ext <<_ACEOF
5662/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005663
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005664int
5665main ()
5666{
5667int main() { return 0; }
5668 ;
5669 return 0;
5670}
John Criswell47fdd832003-07-14 16:52:07 +00005671_ACEOF
5672rm -f conftest.$ac_objext conftest$ac_exeext
5673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005674 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005675 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005676 grep -v '^ *+' conftest.er1 >conftest.err
5677 rm -f conftest.er1
5678 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005680 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005681 { ac_try='test -z "$ac_c_werror_flag"
5682 || test ! -s conftest.err'
5683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684 (eval $ac_try) 2>&5
5685 ac_status=$?
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); }; } &&
5688 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 (eval $ac_try) 2>&5
5691 ac_status=$?
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005694 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005695else
John Criswell47fdd832003-07-14 16:52:07 +00005696 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005697sed 's/^/| /' conftest.$ac_ext >&5
5698
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005699llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005700fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005701rm -f conftest.err conftest.$ac_objext \
5702 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005703 CFLAGS="$oldcflags"
5704 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005705ac_cpp='$CPP $CPPFLAGS'
5706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5708ac_compiler_gnu=$ac_cv_c_compiler_gnu
5709
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005710
John Criswell7a73b802003-06-30 21:59:07 +00005711fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005712echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5713echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5714if test "$llvm_cv_link_use_r" = yes ; then
5715
5716cat >>confdefs.h <<\_ACEOF
5717#define HAVE_LINK_R 1
5718_ACEOF
5719
John Criswell47fdd832003-07-14 16:52:07 +00005720 fi
John Criswell47fdd832003-07-14 16:52:07 +00005721
John Criswell47fdd832003-07-14 16:52:07 +00005722
John Criswell47fdd832003-07-14 16:52:07 +00005723
John Criswell7a73b802003-06-30 21:59:07 +00005724
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005725echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5726echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5727if test "${ac_cv_c_const+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5729else
5730 cat >conftest.$ac_ext <<_ACEOF
5731/* confdefs.h. */
5732_ACEOF
5733cat confdefs.h >>conftest.$ac_ext
5734cat >>conftest.$ac_ext <<_ACEOF
5735/* end confdefs.h. */
5736
5737int
5738main ()
5739{
5740/* FIXME: Include the comments suggested by Paul. */
5741#ifndef __cplusplus
5742 /* Ultrix mips cc rejects this. */
5743 typedef int charset[2];
5744 const charset x;
5745 /* SunOS 4.1.1 cc rejects this. */
5746 char const *const *ccp;
5747 char **p;
5748 /* NEC SVR4.0.2 mips cc rejects this. */
5749 struct point {int x, y;};
5750 static struct point const zero = {0,0};
5751 /* AIX XL C 1.02.0.0 rejects this.
5752 It does not let you subtract one const X* pointer from another in
5753 an arm of an if-expression whose if-part is not a constant
5754 expression */
5755 const char *g = "string";
5756 ccp = &g + (g ? g-g : 0);
5757 /* HPUX 7.0 cc rejects these. */
5758 ++ccp;
5759 p = (char**) ccp;
5760 ccp = (char const *const *) p;
5761 { /* SCO 3.2v4 cc rejects this. */
5762 char *t;
5763 char const *s = 0 ? (char *) 0 : (char const *) 0;
5764
5765 *t++ = 0;
5766 }
5767 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5768 int x[] = {25, 17};
5769 const int *foo = &x[0];
5770 ++foo;
5771 }
5772 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5773 typedef const int *iptr;
5774 iptr p = 0;
5775 ++p;
5776 }
5777 { /* AIX XL C 1.02.0.0 rejects this saying
5778 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5779 struct s { int j; const int *ap[3]; };
5780 struct s *b; b->j = 5;
5781 }
5782 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5783 const int foo = 10;
5784 }
5785#endif
5786
5787 ;
5788 return 0;
5789}
5790_ACEOF
5791rm -f conftest.$ac_objext
5792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5793 (eval $ac_compile) 2>conftest.er1
5794 ac_status=$?
5795 grep -v '^ *+' conftest.er1 >conftest.err
5796 rm -f conftest.er1
5797 cat conftest.err >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } &&
5800 { ac_try='test -z "$ac_c_werror_flag"
5801 || test ! -s conftest.err'
5802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803 (eval $ac_try) 2>&5
5804 ac_status=$?
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); }; } &&
5807 { ac_try='test -s conftest.$ac_objext'
5808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809 (eval $ac_try) 2>&5
5810 ac_status=$?
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; }; then
5813 ac_cv_c_const=yes
5814else
5815 echo "$as_me: failed program was:" >&5
5816sed 's/^/| /' conftest.$ac_ext >&5
5817
5818ac_cv_c_const=no
5819fi
5820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5821fi
5822echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5823echo "${ECHO_T}$ac_cv_c_const" >&6
5824if test $ac_cv_c_const = no; then
5825
5826cat >>confdefs.h <<\_ACEOF
5827#define const
5828_ACEOF
5829
5830fi
5831
5832
5833echo "$as_me:$LINENO: checking for egrep" >&5
5834echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5835if test "${ac_cv_prog_egrep+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5837else
5838 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5839 then ac_cv_prog_egrep='grep -E'
5840 else ac_cv_prog_egrep='egrep'
5841 fi
5842fi
5843echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5844echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5845 EGREP=$ac_cv_prog_egrep
5846
John Criswell7a73b802003-06-30 21:59:07 +00005847
5848echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5849echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5850if test "${ac_cv_header_stdc+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5852else
5853 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005854/* confdefs.h. */
5855_ACEOF
5856cat confdefs.h >>conftest.$ac_ext
5857cat >>conftest.$ac_ext <<_ACEOF
5858/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005859#include <stdlib.h>
5860#include <stdarg.h>
5861#include <string.h>
5862#include <float.h>
5863
John Criswell0c38eaf2003-09-10 15:17:25 +00005864int
5865main ()
5866{
5867
5868 ;
5869 return 0;
5870}
John Criswell7a73b802003-06-30 21:59:07 +00005871_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005872rm -f conftest.$ac_objext
5873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005874 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005875 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005876 grep -v '^ *+' conftest.er1 >conftest.err
5877 rm -f conftest.er1
5878 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005880 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005881 { ac_try='test -z "$ac_c_werror_flag"
5882 || test ! -s conftest.err'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 (eval $ac_try) 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; } &&
5888 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00005889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5890 (eval $ac_try) 2>&5
5891 ac_status=$?
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00005894 ac_cv_header_stdc=yes
5895else
5896 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005897sed 's/^/| /' conftest.$ac_ext >&5
5898
5899ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00005900fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005902
5903if test $ac_cv_header_stdc = yes; then
5904 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5905 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005906/* confdefs.h. */
5907_ACEOF
5908cat confdefs.h >>conftest.$ac_ext
5909cat >>conftest.$ac_ext <<_ACEOF
5910/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005911#include <string.h>
5912
5913_ACEOF
5914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005915 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005916 :
5917else
5918 ac_cv_header_stdc=no
5919fi
5920rm -f conftest*
5921
5922fi
5923
5924if test $ac_cv_header_stdc = yes; then
5925 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5926 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005927/* confdefs.h. */
5928_ACEOF
5929cat confdefs.h >>conftest.$ac_ext
5930cat >>conftest.$ac_ext <<_ACEOF
5931/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005932#include <stdlib.h>
5933
5934_ACEOF
5935if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005936 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005937 :
5938else
5939 ac_cv_header_stdc=no
5940fi
5941rm -f conftest*
5942
5943fi
5944
5945if test $ac_cv_header_stdc = yes; then
5946 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5947 if test "$cross_compiling" = yes; then
5948 :
5949else
5950 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005951/* confdefs.h. */
5952_ACEOF
5953cat confdefs.h >>conftest.$ac_ext
5954cat >>conftest.$ac_ext <<_ACEOF
5955/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005956#include <ctype.h>
5957#if ((' ' & 0x0FF) == 0x020)
5958# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5959# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5960#else
John Criswell0c38eaf2003-09-10 15:17:25 +00005961# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00005962 (('a' <= (c) && (c) <= 'i') \
5963 || ('j' <= (c) && (c) <= 'r') \
5964 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00005965# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5966#endif
5967
5968#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5969int
5970main ()
5971{
5972 int i;
5973 for (i = 0; i < 256; i++)
5974 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00005975 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00005976 exit(2);
5977 exit (0);
5978}
5979_ACEOF
5980rm -f conftest$ac_exeext
5981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5982 (eval $ac_link) 2>&5
5983 ac_status=$?
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5987 (eval $ac_try) 2>&5
5988 ac_status=$?
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); }; }; then
5991 :
5992else
5993 echo "$as_me: program exited with status $ac_status" >&5
5994echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005995sed 's/^/| /' conftest.$ac_ext >&5
5996
John Criswell7a73b802003-06-30 21:59:07 +00005997( exit $ac_status )
5998ac_cv_header_stdc=no
5999fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006000rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006001fi
6002fi
6003fi
6004echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6005echo "${ECHO_T}$ac_cv_header_stdc" >&6
6006if test $ac_cv_header_stdc = yes; then
6007
6008cat >>confdefs.h <<\_ACEOF
6009#define STDC_HEADERS 1
6010_ACEOF
6011
6012fi
6013
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006014
6015
6016
6017
6018
6019ac_header_dirent=no
6020for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6021 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6022echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6023echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6024if eval "test \"\${$as_ac_Header+set}\" = set"; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6026else
6027 cat >conftest.$ac_ext <<_ACEOF
6028/* confdefs.h. */
6029_ACEOF
6030cat confdefs.h >>conftest.$ac_ext
6031cat >>conftest.$ac_ext <<_ACEOF
6032/* end confdefs.h. */
6033#include <sys/types.h>
6034#include <$ac_hdr>
6035
6036int
6037main ()
6038{
6039if ((DIR *) 0)
6040return 0;
6041 ;
6042 return 0;
6043}
6044_ACEOF
6045rm -f conftest.$ac_objext
6046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6047 (eval $ac_compile) 2>conftest.er1
6048 ac_status=$?
6049 grep -v '^ *+' conftest.er1 >conftest.err
6050 rm -f conftest.er1
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } &&
6054 { ac_try='test -z "$ac_c_werror_flag"
6055 || test ! -s conftest.err'
6056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6057 (eval $ac_try) 2>&5
6058 ac_status=$?
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); }; } &&
6061 { ac_try='test -s conftest.$ac_objext'
6062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063 (eval $ac_try) 2>&5
6064 ac_status=$?
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; }; then
6067 eval "$as_ac_Header=yes"
6068else
6069 echo "$as_me: failed program was:" >&5
6070sed 's/^/| /' conftest.$ac_ext >&5
6071
6072eval "$as_ac_Header=no"
6073fi
6074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6075fi
6076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6077echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6078if test `eval echo '${'$as_ac_Header'}'` = yes; then
6079 cat >>confdefs.h <<_ACEOF
6080#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6081_ACEOF
6082
6083ac_header_dirent=$ac_hdr; break
6084fi
6085
6086done
6087# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6088if test $ac_header_dirent = dirent.h; then
6089 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6090echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6091if test "${ac_cv_search_opendir+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6093else
6094 ac_func_search_save_LIBS=$LIBS
6095ac_cv_search_opendir=no
6096cat >conftest.$ac_ext <<_ACEOF
6097/* confdefs.h. */
6098_ACEOF
6099cat confdefs.h >>conftest.$ac_ext
6100cat >>conftest.$ac_ext <<_ACEOF
6101/* end confdefs.h. */
6102
6103/* Override any gcc2 internal prototype to avoid an error. */
6104#ifdef __cplusplus
6105extern "C"
6106#endif
6107/* We use char because int might match the return type of a gcc2
6108 builtin and then its argument prototype would still apply. */
6109char opendir ();
6110int
6111main ()
6112{
6113opendir ();
6114 ;
6115 return 0;
6116}
6117_ACEOF
6118rm -f conftest.$ac_objext conftest$ac_exeext
6119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6120 (eval $ac_link) 2>conftest.er1
6121 ac_status=$?
6122 grep -v '^ *+' conftest.er1 >conftest.err
6123 rm -f conftest.er1
6124 cat conftest.err >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
6127 { ac_try='test -z "$ac_c_werror_flag"
6128 || test ! -s conftest.err'
6129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130 (eval $ac_try) 2>&5
6131 ac_status=$?
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; } &&
6134 { ac_try='test -s conftest$ac_exeext'
6135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136 (eval $ac_try) 2>&5
6137 ac_status=$?
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }; }; then
6140 ac_cv_search_opendir="none required"
6141else
6142 echo "$as_me: failed program was:" >&5
6143sed 's/^/| /' conftest.$ac_ext >&5
6144
6145fi
6146rm -f conftest.err conftest.$ac_objext \
6147 conftest$ac_exeext conftest.$ac_ext
6148if test "$ac_cv_search_opendir" = no; then
6149 for ac_lib in dir; do
6150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6151 cat >conftest.$ac_ext <<_ACEOF
6152/* confdefs.h. */
6153_ACEOF
6154cat confdefs.h >>conftest.$ac_ext
6155cat >>conftest.$ac_ext <<_ACEOF
6156/* end confdefs.h. */
6157
6158/* Override any gcc2 internal prototype to avoid an error. */
6159#ifdef __cplusplus
6160extern "C"
6161#endif
6162/* We use char because int might match the return type of a gcc2
6163 builtin and then its argument prototype would still apply. */
6164char opendir ();
6165int
6166main ()
6167{
6168opendir ();
6169 ;
6170 return 0;
6171}
6172_ACEOF
6173rm -f conftest.$ac_objext conftest$ac_exeext
6174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6175 (eval $ac_link) 2>conftest.er1
6176 ac_status=$?
6177 grep -v '^ *+' conftest.er1 >conftest.err
6178 rm -f conftest.er1
6179 cat conftest.err >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); } &&
6182 { ac_try='test -z "$ac_c_werror_flag"
6183 || test ! -s conftest.err'
6184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185 (eval $ac_try) 2>&5
6186 ac_status=$?
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; } &&
6189 { ac_try='test -s conftest$ac_exeext'
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 (eval $ac_try) 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; }; then
6195 ac_cv_search_opendir="-l$ac_lib"
6196break
6197else
6198 echo "$as_me: failed program was:" >&5
6199sed 's/^/| /' conftest.$ac_ext >&5
6200
6201fi
6202rm -f conftest.err conftest.$ac_objext \
6203 conftest$ac_exeext conftest.$ac_ext
6204 done
6205fi
6206LIBS=$ac_func_search_save_LIBS
6207fi
6208echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6209echo "${ECHO_T}$ac_cv_search_opendir" >&6
6210if test "$ac_cv_search_opendir" != no; then
6211 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6212
6213fi
6214
6215else
6216 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6217echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6218if test "${ac_cv_search_opendir+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6220else
6221 ac_func_search_save_LIBS=$LIBS
6222ac_cv_search_opendir=no
6223cat >conftest.$ac_ext <<_ACEOF
6224/* confdefs.h. */
6225_ACEOF
6226cat confdefs.h >>conftest.$ac_ext
6227cat >>conftest.$ac_ext <<_ACEOF
6228/* end confdefs.h. */
6229
6230/* Override any gcc2 internal prototype to avoid an error. */
6231#ifdef __cplusplus
6232extern "C"
6233#endif
6234/* We use char because int might match the return type of a gcc2
6235 builtin and then its argument prototype would still apply. */
6236char opendir ();
6237int
6238main ()
6239{
6240opendir ();
6241 ;
6242 return 0;
6243}
6244_ACEOF
6245rm -f conftest.$ac_objext conftest$ac_exeext
6246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6247 (eval $ac_link) 2>conftest.er1
6248 ac_status=$?
6249 grep -v '^ *+' conftest.er1 >conftest.err
6250 rm -f conftest.er1
6251 cat conftest.err >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } &&
6254 { ac_try='test -z "$ac_c_werror_flag"
6255 || test ! -s conftest.err'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257 (eval $ac_try) 2>&5
6258 ac_status=$?
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; } &&
6261 { ac_try='test -s conftest$ac_exeext'
6262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 (eval $ac_try) 2>&5
6264 ac_status=$?
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; }; then
6267 ac_cv_search_opendir="none required"
6268else
6269 echo "$as_me: failed program was:" >&5
6270sed 's/^/| /' conftest.$ac_ext >&5
6271
6272fi
6273rm -f conftest.err conftest.$ac_objext \
6274 conftest$ac_exeext conftest.$ac_ext
6275if test "$ac_cv_search_opendir" = no; then
6276 for ac_lib in x; do
6277 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6278 cat >conftest.$ac_ext <<_ACEOF
6279/* confdefs.h. */
6280_ACEOF
6281cat confdefs.h >>conftest.$ac_ext
6282cat >>conftest.$ac_ext <<_ACEOF
6283/* end confdefs.h. */
6284
6285/* Override any gcc2 internal prototype to avoid an error. */
6286#ifdef __cplusplus
6287extern "C"
6288#endif
6289/* We use char because int might match the return type of a gcc2
6290 builtin and then its argument prototype would still apply. */
6291char opendir ();
6292int
6293main ()
6294{
6295opendir ();
6296 ;
6297 return 0;
6298}
6299_ACEOF
6300rm -f conftest.$ac_objext conftest$ac_exeext
6301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6302 (eval $ac_link) 2>conftest.er1
6303 ac_status=$?
6304 grep -v '^ *+' conftest.er1 >conftest.err
6305 rm -f conftest.er1
6306 cat conftest.err >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } &&
6309 { ac_try='test -z "$ac_c_werror_flag"
6310 || test ! -s conftest.err'
6311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312 (eval $ac_try) 2>&5
6313 ac_status=$?
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }; } &&
6316 { ac_try='test -s conftest$ac_exeext'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318 (eval $ac_try) 2>&5
6319 ac_status=$?
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; }; then
6322 ac_cv_search_opendir="-l$ac_lib"
6323break
6324else
6325 echo "$as_me: failed program was:" >&5
6326sed 's/^/| /' conftest.$ac_ext >&5
6327
6328fi
6329rm -f conftest.err conftest.$ac_objext \
6330 conftest$ac_exeext conftest.$ac_ext
6331 done
6332fi
6333LIBS=$ac_func_search_save_LIBS
6334fi
6335echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6336echo "${ECHO_T}$ac_cv_search_opendir" >&6
6337if test "$ac_cv_search_opendir" != no; then
6338 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6339
6340fi
6341
6342fi
6343
John Criswell7a73b802003-06-30 21:59:07 +00006344# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006355 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006356do
6357as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6358echo "$as_me:$LINENO: checking for $ac_header" >&5
6359echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6360if eval "test \"\${$as_ac_Header+set}\" = set"; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6362else
6363 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006364/* confdefs.h. */
6365_ACEOF
6366cat confdefs.h >>conftest.$ac_ext
6367cat >>conftest.$ac_ext <<_ACEOF
6368/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006369$ac_includes_default
6370
6371#include <$ac_header>
6372_ACEOF
6373rm -f conftest.$ac_objext
6374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006375 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006376 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006377 grep -v '^ *+' conftest.er1 >conftest.err
6378 rm -f conftest.er1
6379 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006382 { ac_try='test -z "$ac_c_werror_flag"
6383 || test ! -s conftest.err'
6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385 (eval $ac_try) 2>&5
6386 ac_status=$?
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; } &&
6389 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391 (eval $ac_try) 2>&5
6392 ac_status=$?
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; }; then
6395 eval "$as_ac_Header=yes"
6396else
6397 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006398sed 's/^/| /' conftest.$ac_ext >&5
6399
John Criswell7a73b802003-06-30 21:59:07 +00006400eval "$as_ac_Header=no"
6401fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006403fi
6404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6405echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6406if test `eval echo '${'$as_ac_Header'}'` = yes; then
6407 cat >>confdefs.h <<_ACEOF
6408#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6409_ACEOF
6410
6411fi
6412
6413done
6414
6415
6416
6417for ac_header in dlfcn.h
6418do
6419as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006420if eval "test \"\${$as_ac_Header+set}\" = set"; then
6421 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006422echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6423if eval "test \"\${$as_ac_Header+set}\" = set"; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006425fi
6426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6427echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006428else
Brian Gaeke0a621332004-09-08 20:38:05 +00006429 # Is the header compilable?
6430echo "$as_me:$LINENO: checking $ac_header usability" >&5
6431echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6432cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006433/* confdefs.h. */
6434_ACEOF
6435cat confdefs.h >>conftest.$ac_ext
6436cat >>conftest.$ac_ext <<_ACEOF
6437/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006438$ac_includes_default
6439#include <$ac_header>
6440_ACEOF
6441rm -f conftest.$ac_objext
6442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006443 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006444 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006445 grep -v '^ *+' conftest.er1 >conftest.err
6446 rm -f conftest.er1
6447 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006450 { ac_try='test -z "$ac_c_werror_flag"
6451 || test ! -s conftest.err'
6452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453 (eval $ac_try) 2>&5
6454 ac_status=$?
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }; } &&
6457 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459 (eval $ac_try) 2>&5
6460 ac_status=$?
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006463 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006464else
6465 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006466sed 's/^/| /' conftest.$ac_ext >&5
6467
Brian Gaeke0a621332004-09-08 20:38:05 +00006468ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006469fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006471echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6472echo "${ECHO_T}$ac_header_compiler" >&6
6473
6474# Is the header present?
6475echo "$as_me:$LINENO: checking $ac_header presence" >&5
6476echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6477cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006478/* confdefs.h. */
6479_ACEOF
6480cat confdefs.h >>conftest.$ac_ext
6481cat >>conftest.$ac_ext <<_ACEOF
6482/* end confdefs.h. */
6483#include <$ac_header>
6484_ACEOF
6485if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6487 ac_status=$?
6488 grep -v '^ *+' conftest.er1 >conftest.err
6489 rm -f conftest.er1
6490 cat conftest.err >&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } >/dev/null; then
6493 if test -s conftest.err; then
6494 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006496 else
6497 ac_cpp_err=
6498 fi
6499else
6500 ac_cpp_err=yes
6501fi
6502if test -z "$ac_cpp_err"; then
6503 ac_header_preproc=yes
6504else
6505 echo "$as_me: failed program was:" >&5
6506sed 's/^/| /' conftest.$ac_ext >&5
6507
6508 ac_header_preproc=no
6509fi
6510rm -f conftest.err conftest.$ac_ext
6511echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6512echo "${ECHO_T}$ac_header_preproc" >&6
6513
6514# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006515case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6516 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6518echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6520echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6521 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006522 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006523 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6525echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6527echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6528 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6529echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6530 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6531echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6533echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006534 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6535echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006536 (
6537 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006538## ----------------------------------- ##
6539## Report this to llvmbugs@cs.uiuc.edu ##
6540## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006541_ASBOX
6542 ) |
6543 sed "s/^/$as_me: WARNING: /" >&2
6544 ;;
6545esac
6546echo "$as_me:$LINENO: checking for $ac_header" >&5
6547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6548if eval "test \"\${$as_ac_Header+set}\" = set"; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6550else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006551 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006552fi
6553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6554echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006555
6556fi
John Criswell7a73b802003-06-30 21:59:07 +00006557if test `eval echo '${'$as_ac_Header'}'` = yes; then
6558 cat >>confdefs.h <<_ACEOF
6559#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6560_ACEOF
6561
6562fi
6563
6564done
6565
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006566# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6567if test "${enable_ltdl_install+set}" = set; then
6568 enableval="$enable_ltdl_install"
6569
6570fi;
6571
6572
6573
6574if test x"${enable_ltdl_install-no}" != xno; then
6575 INSTALL_LTDL_TRUE=
6576 INSTALL_LTDL_FALSE='#'
6577else
6578 INSTALL_LTDL_TRUE='#'
6579 INSTALL_LTDL_FALSE=
6580fi
6581
6582
6583
6584if test x"${enable_ltdl_convenience-no}" != xno; then
6585 CONVENIENCE_LTDL_TRUE=
6586 CONVENIENCE_LTDL_FALSE='#'
6587else
6588 CONVENIENCE_LTDL_TRUE='#'
6589 CONVENIENCE_LTDL_FALSE=
6590fi
6591
6592
6593echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6594echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6595library_names_spec=
6596libname_spec='lib$name'
6597soname_spec=
6598shrext_cmds=".so"
6599postinstall_cmds=
6600postuninstall_cmds=
6601finish_cmds=
6602finish_eval=
6603shlibpath_var=
6604shlibpath_overrides_runpath=unknown
6605version_type=none
6606dynamic_linker="$host_os ld.so"
6607sys_lib_dlsearch_path_spec="/lib /usr/lib"
6608if test "$GCC" = yes; then
6609 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6610 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6611 # if the path contains ";" then we assume it to be the separator
6612 # otherwise default to the standard path separator (i.e. ":") - it is
6613 # assumed that no part of a normal pathname contains ";" but that should
6614 # okay in the real world where ";" in dirpaths is itself problematic.
6615 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6616 else
6617 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6618 fi
6619else
6620 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6621fi
6622need_lib_prefix=unknown
6623hardcode_into_libs=no
6624
6625# when you set need_version to no, make sure it does not cause -set_version
6626# flags to be left without arguments
6627need_version=unknown
6628
6629case $host_os in
6630aix3*)
6631 version_type=linux
6632 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6633 shlibpath_var=LIBPATH
6634
6635 # AIX 3 has no versioning support, so we append a major version to the name.
6636 soname_spec='${libname}${release}${shared_ext}$major'
6637 ;;
6638
6639aix4* | aix5*)
6640 version_type=linux
6641 need_lib_prefix=no
6642 need_version=no
6643 hardcode_into_libs=yes
6644 if test "$host_cpu" = ia64; then
6645 # AIX 5 supports IA64
6646 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6647 shlibpath_var=LD_LIBRARY_PATH
6648 else
6649 # With GCC up to 2.95.x, collect2 would create an import file
6650 # for dependence libraries. The import file would start with
6651 # the line `#! .'. This would cause the generated library to
6652 # depend on `.', always an invalid library. This was fixed in
6653 # development snapshots of GCC prior to 3.0.
6654 case $host_os in
6655 aix4 | aix4.[01] | aix4.[01].*)
6656 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6657 echo ' yes '
6658 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6659 :
6660 else
6661 can_build_shared=no
6662 fi
6663 ;;
6664 esac
6665 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6666 # soname into executable. Probably we can add versioning support to
6667 # collect2, so additional links can be useful in future.
6668 if test "$aix_use_runtimelinking" = yes; then
6669 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6670 # instead of lib<name>.a to let people know that these are not
6671 # typical AIX shared libraries.
6672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6673 else
6674 # We preserve .a as extension for shared libraries through AIX4.2
6675 # and later when we are not doing run time linking.
6676 library_names_spec='${libname}${release}.a $libname.a'
6677 soname_spec='${libname}${release}${shared_ext}$major'
6678 fi
6679 shlibpath_var=LIBPATH
6680 fi
6681 ;;
6682
6683amigaos*)
6684 library_names_spec='$libname.ixlibrary $libname.a'
6685 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6686 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'
6687 ;;
6688
6689beos*)
6690 library_names_spec='${libname}${shared_ext}'
6691 dynamic_linker="$host_os ld.so"
6692 shlibpath_var=LIBRARY_PATH
6693 ;;
6694
6695bsdi[45]*)
6696 version_type=linux
6697 need_version=no
6698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6699 soname_spec='${libname}${release}${shared_ext}$major'
6700 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6701 shlibpath_var=LD_LIBRARY_PATH
6702 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6703 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6704 # the default ld.so.conf also contains /usr/contrib/lib and
6705 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6706 # libtool to hard-code these into programs
6707 ;;
6708
6709cygwin* | mingw* | pw32*)
6710 version_type=windows
6711 shrext_cmds=".dll"
6712 need_version=no
6713 need_lib_prefix=no
6714
6715 case $GCC,$host_os in
6716 yes,cygwin* | yes,mingw* | yes,pw32*)
6717 library_names_spec='$libname.dll.a'
6718 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6719 postinstall_cmds='base_file=`basename \${file}`~
6720 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6721 dldir=$destdir/`dirname \$dlpath`~
6722 test -d \$dldir || mkdir -p \$dldir~
6723 $install_prog $dir/$dlname \$dldir/$dlname'
6724 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6725 dlpath=$dir/\$dldll~
6726 $rm \$dlpath'
6727 shlibpath_overrides_runpath=yes
6728
6729 case $host_os in
6730 cygwin*)
6731 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6732 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6733 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6734 ;;
6735 mingw*)
6736 # MinGW DLLs use traditional 'lib' prefix
6737 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6738 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6739 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6740 # It is most probably a Windows format PATH printed by
6741 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6742 # path with ; separators, and with drive letters. We can handle the
6743 # drive letters (cygwin fileutils understands them), so leave them,
6744 # especially as we might pass files found there to a mingw objdump,
6745 # which wouldn't understand a cygwinified path. Ahh.
6746 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6747 else
6748 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6749 fi
6750 ;;
6751 pw32*)
6752 # pw32 DLLs use 'pw' prefix rather than 'lib'
6753 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6754 ;;
6755 esac
6756 ;;
6757
6758 *)
6759 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6760 ;;
6761 esac
6762 dynamic_linker='Win32 ld.exe'
6763 # FIXME: first we should search . and the directory the executable is in
6764 shlibpath_var=PATH
6765 ;;
6766
6767darwin* | rhapsody*)
6768 dynamic_linker="$host_os dyld"
6769 version_type=darwin
6770 need_lib_prefix=no
6771 need_version=no
6772 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6773 soname_spec='${libname}${release}${major}$shared_ext'
6774 shlibpath_overrides_runpath=yes
6775 shlibpath_var=DYLD_LIBRARY_PATH
6776 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6777 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6778 if test "$GCC" = yes; then
6779 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"`
6780 else
6781 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6782 fi
6783 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6784 ;;
6785
6786dgux*)
6787 version_type=linux
6788 need_lib_prefix=no
6789 need_version=no
6790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6791 soname_spec='${libname}${release}${shared_ext}$major'
6792 shlibpath_var=LD_LIBRARY_PATH
6793 ;;
6794
6795freebsd1*)
6796 dynamic_linker=no
6797 ;;
6798
6799kfreebsd*-gnu)
6800 version_type=linux
6801 need_lib_prefix=no
6802 need_version=no
6803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6804 soname_spec='${libname}${release}${shared_ext}$major'
6805 shlibpath_var=LD_LIBRARY_PATH
6806 shlibpath_overrides_runpath=no
6807 hardcode_into_libs=yes
6808 dynamic_linker='GNU ld.so'
6809 ;;
6810
6811freebsd*)
6812 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6813 version_type=freebsd-$objformat
6814 case $version_type in
6815 freebsd-elf*)
6816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6817 need_version=no
6818 need_lib_prefix=no
6819 ;;
6820 freebsd-*)
6821 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6822 need_version=yes
6823 ;;
6824 esac
6825 shlibpath_var=LD_LIBRARY_PATH
6826 case $host_os in
6827 freebsd2*)
6828 shlibpath_overrides_runpath=yes
6829 ;;
6830 freebsd3.01* | freebsdelf3.01*)
6831 shlibpath_overrides_runpath=yes
6832 hardcode_into_libs=yes
6833 ;;
6834 *) # from 3.2 on
6835 shlibpath_overrides_runpath=no
6836 hardcode_into_libs=yes
6837 ;;
6838 esac
6839 ;;
6840
6841gnu*)
6842 version_type=linux
6843 need_lib_prefix=no
6844 need_version=no
6845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6846 soname_spec='${libname}${release}${shared_ext}$major'
6847 shlibpath_var=LD_LIBRARY_PATH
6848 hardcode_into_libs=yes
6849 ;;
6850
6851hpux9* | hpux10* | hpux11*)
6852 # Give a soname corresponding to the major version so that dld.sl refuses to
6853 # link against other versions.
6854 version_type=sunos
6855 need_lib_prefix=no
6856 need_version=no
6857 case "$host_cpu" in
6858 ia64*)
6859 shrext_cmds='.so'
6860 hardcode_into_libs=yes
6861 dynamic_linker="$host_os dld.so"
6862 shlibpath_var=LD_LIBRARY_PATH
6863 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6865 soname_spec='${libname}${release}${shared_ext}$major'
6866 if test "X$HPUX_IA64_MODE" = X32; then
6867 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6868 else
6869 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6870 fi
6871 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6872 ;;
6873 hppa*64*)
6874 shrext_cmds='.sl'
6875 hardcode_into_libs=yes
6876 dynamic_linker="$host_os dld.sl"
6877 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6878 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6880 soname_spec='${libname}${release}${shared_ext}$major'
6881 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6882 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6883 ;;
6884 *)
6885 shrext_cmds='.sl'
6886 dynamic_linker="$host_os dld.sl"
6887 shlibpath_var=SHLIB_PATH
6888 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6890 soname_spec='${libname}${release}${shared_ext}$major'
6891 ;;
6892 esac
6893 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6894 postinstall_cmds='chmod 555 $lib'
6895 ;;
6896
6897irix5* | irix6* | nonstopux*)
6898 case $host_os in
6899 nonstopux*) version_type=nonstopux ;;
6900 *)
6901 if test "$lt_cv_prog_gnu_ld" = yes; then
6902 version_type=linux
6903 else
6904 version_type=irix
6905 fi ;;
6906 esac
6907 need_lib_prefix=no
6908 need_version=no
6909 soname_spec='${libname}${release}${shared_ext}$major'
6910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6911 case $host_os in
6912 irix5* | nonstopux*)
6913 libsuff= shlibsuff=
6914 ;;
6915 *)
6916 case $LD in # libtool.m4 will add one of these switches to LD
6917 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6918 libsuff= shlibsuff= libmagic=32-bit;;
6919 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6920 libsuff=32 shlibsuff=N32 libmagic=N32;;
6921 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6922 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6923 *) libsuff= shlibsuff= libmagic=never-match;;
6924 esac
6925 ;;
6926 esac
6927 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6928 shlibpath_overrides_runpath=no
6929 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6930 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6931 hardcode_into_libs=yes
6932 ;;
6933
6934# No shared lib support for Linux oldld, aout, or coff.
6935linux*oldld* | linux*aout* | linux*coff*)
6936 dynamic_linker=no
6937 ;;
6938
6939# This must be Linux ELF.
6940linux*)
6941 version_type=linux
6942 need_lib_prefix=no
6943 need_version=no
6944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6945 soname_spec='${libname}${release}${shared_ext}$major'
6946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6947 shlibpath_var=LD_LIBRARY_PATH
6948 shlibpath_overrides_runpath=no
6949 # This implies no fast_install, which is unacceptable.
6950 # Some rework will be needed to allow for fast_install
6951 # before this can be enabled.
6952 hardcode_into_libs=yes
6953
6954 # Append ld.so.conf contents to the search path
6955 if test -f /etc/ld.so.conf; then
6956 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6957 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6958 fi
6959
6960 # We used to test for /lib/ld.so.1 and disable shared libraries on
6961 # powerpc, because MkLinux only supported shared libraries with the
6962 # GNU dynamic linker. Since this was broken with cross compilers,
6963 # most powerpc-linux boxes support dynamic linking these days and
6964 # people can always --disable-shared, the test was removed, and we
6965 # assume the GNU/Linux dynamic linker is in use.
6966 dynamic_linker='GNU/Linux ld.so'
6967 ;;
6968
6969knetbsd*-gnu)
6970 version_type=linux
6971 need_lib_prefix=no
6972 need_version=no
6973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6974 soname_spec='${libname}${release}${shared_ext}$major'
6975 shlibpath_var=LD_LIBRARY_PATH
6976 shlibpath_overrides_runpath=no
6977 hardcode_into_libs=yes
6978 dynamic_linker='GNU ld.so'
6979 ;;
6980
6981netbsd*)
6982 version_type=sunos
6983 need_lib_prefix=no
6984 need_version=no
6985 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6987 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6988 dynamic_linker='NetBSD (a.out) ld.so'
6989 else
6990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6991 soname_spec='${libname}${release}${shared_ext}$major'
6992 dynamic_linker='NetBSD ld.elf_so'
6993 fi
6994 shlibpath_var=LD_LIBRARY_PATH
6995 shlibpath_overrides_runpath=yes
6996 hardcode_into_libs=yes
6997 ;;
6998
6999newsos6)
7000 version_type=linux
7001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7002 shlibpath_var=LD_LIBRARY_PATH
7003 shlibpath_overrides_runpath=yes
7004 ;;
7005
7006nto-qnx*)
7007 version_type=linux
7008 need_lib_prefix=no
7009 need_version=no
7010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7011 soname_spec='${libname}${release}${shared_ext}$major'
7012 shlibpath_var=LD_LIBRARY_PATH
7013 shlibpath_overrides_runpath=yes
7014 ;;
7015
7016openbsd*)
7017 version_type=sunos
7018 need_lib_prefix=no
7019 need_version=no
7020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7022 shlibpath_var=LD_LIBRARY_PATH
7023 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7024 case $host_os in
7025 openbsd2.[89] | openbsd2.[89].*)
7026 shlibpath_overrides_runpath=no
7027 ;;
7028 *)
7029 shlibpath_overrides_runpath=yes
7030 ;;
7031 esac
7032 else
7033 shlibpath_overrides_runpath=yes
7034 fi
7035 ;;
7036
7037os2*)
7038 libname_spec='$name'
7039 shrext_cmds=".dll"
7040 need_lib_prefix=no
7041 library_names_spec='$libname${shared_ext} $libname.a'
7042 dynamic_linker='OS/2 ld.exe'
7043 shlibpath_var=LIBPATH
7044 ;;
7045
7046osf3* | osf4* | osf5*)
7047 version_type=osf
7048 need_lib_prefix=no
7049 need_version=no
7050 soname_spec='${libname}${release}${shared_ext}$major'
7051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7052 shlibpath_var=LD_LIBRARY_PATH
7053 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7054 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7055 ;;
7056
7057sco3.2v5*)
7058 version_type=osf
7059 soname_spec='${libname}${release}${shared_ext}$major'
7060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7061 shlibpath_var=LD_LIBRARY_PATH
7062 ;;
7063
7064solaris*)
7065 version_type=linux
7066 need_lib_prefix=no
7067 need_version=no
7068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7069 soname_spec='${libname}${release}${shared_ext}$major'
7070 shlibpath_var=LD_LIBRARY_PATH
7071 shlibpath_overrides_runpath=yes
7072 hardcode_into_libs=yes
7073 # ldd complains unless libraries are executable
7074 postinstall_cmds='chmod +x $lib'
7075 ;;
7076
7077sunos4*)
7078 version_type=sunos
7079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7080 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7081 shlibpath_var=LD_LIBRARY_PATH
7082 shlibpath_overrides_runpath=yes
7083 if test "$with_gnu_ld" = yes; then
7084 need_lib_prefix=no
7085 fi
7086 need_version=yes
7087 ;;
7088
7089sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7090 version_type=linux
7091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7092 soname_spec='${libname}${release}${shared_ext}$major'
7093 shlibpath_var=LD_LIBRARY_PATH
7094 case $host_vendor in
7095 sni)
7096 shlibpath_overrides_runpath=no
7097 need_lib_prefix=no
7098 export_dynamic_flag_spec='${wl}-Blargedynsym'
7099 runpath_var=LD_RUN_PATH
7100 ;;
7101 siemens)
7102 need_lib_prefix=no
7103 ;;
7104 motorola)
7105 need_lib_prefix=no
7106 need_version=no
7107 shlibpath_overrides_runpath=no
7108 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7109 ;;
7110 esac
7111 ;;
7112
7113sysv4*MP*)
7114 if test -d /usr/nec ;then
7115 version_type=linux
7116 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7117 soname_spec='$libname${shared_ext}.$major'
7118 shlibpath_var=LD_LIBRARY_PATH
7119 fi
7120 ;;
7121
7122uts4*)
7123 version_type=linux
7124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7125 soname_spec='${libname}${release}${shared_ext}$major'
7126 shlibpath_var=LD_LIBRARY_PATH
7127 ;;
7128
7129*)
7130 dynamic_linker=no
7131 ;;
7132esac
7133echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7134echo "${ECHO_T}$dynamic_linker" >&6
7135test "$dynamic_linker" = no && can_build_shared=no
7136
7137
7138echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7139echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7140if test "${libltdl_cv_shlibext+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7142else
7143
7144module=yes
7145eval libltdl_cv_shlibext=$shrext_cmds
7146
7147fi
7148echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7149echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7150if test -n "$libltdl_cv_shlibext"; then
7151
7152cat >>confdefs.h <<_ACEOF
7153#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7154_ACEOF
7155
7156fi
7157
7158
7159echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7160echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7161if test "${libltdl_cv_shlibpath_var+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7163else
7164 libltdl_cv_shlibpath_var="$shlibpath_var"
7165fi
7166echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7167echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7168if test -n "$libltdl_cv_shlibpath_var"; then
7169
7170cat >>confdefs.h <<_ACEOF
7171#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7172_ACEOF
7173
7174fi
7175
7176
7177echo "$as_me:$LINENO: checking for the default library search path" >&5
7178echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7179if test "${libltdl_cv_sys_search_path+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7181else
7182 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7183fi
7184echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7185echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7186if test -n "$libltdl_cv_sys_search_path"; then
7187 sys_search_path=
7188 for dir in $libltdl_cv_sys_search_path; do
7189 if test -z "$sys_search_path"; then
7190 sys_search_path="$dir"
7191 else
7192 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7193 fi
7194 done
7195
7196cat >>confdefs.h <<_ACEOF
7197#define LTDL_SYSSEARCHPATH "$sys_search_path"
7198_ACEOF
7199
7200fi
7201
7202echo "$as_me:$LINENO: checking for objdir" >&5
7203echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7204if test "${libltdl_cv_objdir+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7206else
7207 libltdl_cv_objdir="$objdir"
7208 if test -n "$objdir"; then
7209 :
7210 else
7211 rm -f .libs 2>/dev/null
7212 mkdir .libs 2>/dev/null
7213 if test -d .libs; then
7214 libltdl_cv_objdir=.libs
7215 else
7216 # MS-DOS does not allow filenames that begin with a dot.
7217 libltdl_cv_objdir=_libs
7218 fi
7219 rmdir .libs 2>/dev/null
7220 fi
7221
7222fi
7223echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7224echo "${ECHO_T}$libltdl_cv_objdir" >&6
7225
7226cat >>confdefs.h <<_ACEOF
7227#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7228_ACEOF
7229
7230
7231echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7232echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7233if test "${lt_cv_path_NM+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7235else
7236 if test -n "$NM"; then
7237 # Let the user override the test.
7238 lt_cv_path_NM="$NM"
7239else
7240 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7241 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7242 IFS="$lt_save_ifs"
7243 test -z "$ac_dir" && ac_dir=.
7244 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7245 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7246 # Check to see if the nm accepts a BSD-compat flag.
7247 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7248 # nm: unknown option "B" ignored
7249 # Tru64's nm complains that /dev/null is an invalid object file
7250 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7251 */dev/null* | *'Invalid file or object type'*)
7252 lt_cv_path_NM="$tmp_nm -B"
7253 break
7254 ;;
7255 *)
7256 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7257 */dev/null*)
7258 lt_cv_path_NM="$tmp_nm -p"
7259 break
7260 ;;
7261 *)
7262 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7263 continue # so that we can try to find one that supports BSD flags
7264 ;;
7265 esac
7266 esac
7267 fi
7268 done
7269 IFS="$lt_save_ifs"
7270 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7271fi
7272fi
7273echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7274echo "${ECHO_T}$lt_cv_path_NM" >&6
7275NM="$lt_cv_path_NM"
7276
7277
7278
7279
7280
7281# Check for command to grab the raw symbol name followed by C symbol from nm.
7282echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7283echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7284if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7286else
7287
7288# These are sane defaults that work on at least a few old systems.
7289# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7290
7291# Character class describing NM global symbol codes.
7292symcode='[BCDEGRST]'
7293
7294# Regexp to match symbols that can be accessed directly from C.
7295sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7296
7297# Transform the above into a raw symbol and a C symbol.
7298symxfrm='\1 \2\3 \3'
7299
7300# Transform an extracted symbol line into a proper C declaration
7301lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7302
7303# Transform an extracted symbol line into symbol name and symbol address
7304lt_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'"
7305
7306# Define system-specific variables.
7307case $host_os in
7308aix*)
7309 symcode='[BCDT]'
7310 ;;
7311cygwin* | mingw* | pw32*)
7312 symcode='[ABCDGISTW]'
7313 ;;
7314hpux*) # Its linker distinguishes data from code symbols
7315 if test "$host_cpu" = ia64; then
7316 symcode='[ABCDEGRST]'
7317 fi
7318 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7319 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'"
7320 ;;
7321linux*)
7322 if test "$host_cpu" = ia64; then
7323 symcode='[ABCDGIRSTW]'
7324 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7325 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'"
7326 fi
7327 ;;
7328irix* | nonstopux*)
7329 symcode='[BCDEGRST]'
7330 ;;
7331osf*)
7332 symcode='[BCDEGQRST]'
7333 ;;
7334solaris* | sysv5*)
7335 symcode='[BDRT]'
7336 ;;
7337sysv4)
7338 symcode='[DFNSTU]'
7339 ;;
7340esac
7341
7342# Handle CRLF in mingw tool chain
7343opt_cr=
7344case $build_os in
7345mingw*)
7346 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7347 ;;
7348esac
7349
7350# If we're using GNU nm, then use its standard symbol codes.
7351case `$NM -V 2>&1` in
7352*GNU* | *'with BFD'*)
7353 symcode='[ABCDGIRSTW]' ;;
7354esac
7355
7356# Try without a prefix undercore, then with it.
7357for ac_symprfx in "" "_"; do
7358
7359 # Write the raw and C identifiers.
7360 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7361
7362 # Check to see that the pipe works correctly.
7363 pipe_works=no
7364
7365 rm -f conftest*
7366 cat > conftest.$ac_ext <<EOF
7367#ifdef __cplusplus
7368extern "C" {
7369#endif
7370char nm_test_var;
7371void nm_test_func(){}
7372#ifdef __cplusplus
7373}
7374#endif
7375int main(){nm_test_var='a';nm_test_func();return(0);}
7376EOF
7377
7378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7379 (eval $ac_compile) 2>&5
7380 ac_status=$?
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); }; then
7383 # Now try to grab the symbols.
7384 nlist=conftest.nm
7385 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7386 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7387 ac_status=$?
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } && test -s "$nlist"; then
7390 # Try sorting and uniquifying the output.
7391 if sort "$nlist" | uniq > "$nlist"T; then
7392 mv -f "$nlist"T "$nlist"
7393 else
7394 rm -f "$nlist"T
7395 fi
7396
7397 # Make sure that we snagged all the symbols we need.
7398 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7399 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7400 cat <<EOF > conftest.$ac_ext
7401#ifdef __cplusplus
7402extern "C" {
7403#endif
7404
7405EOF
7406 # Now generate the symbol file.
7407 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7408
7409 cat <<EOF >> conftest.$ac_ext
7410#if defined (__STDC__) && __STDC__
7411# define lt_ptr_t void *
7412#else
7413# define lt_ptr_t char *
7414# define const
7415#endif
7416
7417/* The mapping between symbol names and symbols. */
7418const struct {
7419 const char *name;
7420 lt_ptr_t address;
7421}
7422lt_preloaded_symbols[] =
7423{
7424EOF
7425 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7426 cat <<\EOF >> conftest.$ac_ext
7427 {0, (lt_ptr_t) 0}
7428};
7429
7430#ifdef __cplusplus
7431}
7432#endif
7433EOF
7434 # Now try linking the two files.
7435 mv conftest.$ac_objext conftstm.$ac_objext
7436 lt_save_LIBS="$LIBS"
7437 lt_save_CFLAGS="$CFLAGS"
7438 LIBS="conftstm.$ac_objext"
7439 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7441 (eval $ac_link) 2>&5
7442 ac_status=$?
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7445 pipe_works=yes
7446 fi
7447 LIBS="$lt_save_LIBS"
7448 CFLAGS="$lt_save_CFLAGS"
7449 else
7450 echo "cannot find nm_test_func in $nlist" >&5
7451 fi
7452 else
7453 echo "cannot find nm_test_var in $nlist" >&5
7454 fi
7455 else
7456 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7457 fi
7458 else
7459 echo "$progname: failed program was:" >&5
7460 cat conftest.$ac_ext >&5
7461 fi
7462 rm -f conftest* conftst*
7463
7464 # Do not use the global_symbol_pipe unless it works.
7465 if test "$pipe_works" = yes; then
7466 break
7467 else
7468 lt_cv_sys_global_symbol_pipe=
7469 fi
7470done
7471
7472fi
7473
7474if test -z "$lt_cv_sys_global_symbol_pipe"; then
7475 lt_cv_sys_global_symbol_to_cdecl=
7476fi
7477if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7478 echo "$as_me:$LINENO: result: failed" >&5
7479echo "${ECHO_T}failed" >&6
7480else
7481 echo "$as_me:$LINENO: result: ok" >&5
7482echo "${ECHO_T}ok" >&6
7483fi
7484
7485
7486echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7487echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7488if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
7490else
7491 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7492 libltdl_cv_preloaded_symbols=yes
7493 else
7494 libltdl_cv_preloaded_symbols=no
7495 fi
7496
7497fi
7498echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7499echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7500if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7501
7502cat >>confdefs.h <<\_ACEOF
7503#define HAVE_PRELOADED_SYMBOLS 1
7504_ACEOF
7505
7506fi
7507
7508LIBADD_DL=
7509
7510ac_ext=c
7511ac_cpp='$CPP $CPPFLAGS'
7512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7514ac_compiler_gnu=$ac_cv_c_compiler_gnu
7515
7516
7517echo "$as_me:$LINENO: checking for shl_load" >&5
7518echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7519if test "${ac_cv_func_shl_load+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7521else
7522 cat >conftest.$ac_ext <<_ACEOF
7523/* confdefs.h. */
7524_ACEOF
7525cat confdefs.h >>conftest.$ac_ext
7526cat >>conftest.$ac_ext <<_ACEOF
7527/* end confdefs.h. */
7528/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7530#define shl_load innocuous_shl_load
7531
7532/* System header to define __stub macros and hopefully few prototypes,
7533 which can conflict with char shl_load (); below.
7534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7535 <limits.h> exists even on freestanding compilers. */
7536
7537#ifdef __STDC__
7538# include <limits.h>
7539#else
7540# include <assert.h>
7541#endif
7542
7543#undef shl_load
7544
7545/* Override any gcc2 internal prototype to avoid an error. */
7546#ifdef __cplusplus
7547extern "C"
7548{
7549#endif
7550/* We use char because int might match the return type of a gcc2
7551 builtin and then its argument prototype would still apply. */
7552char shl_load ();
7553/* The GNU C library defines this for functions which it implements
7554 to always fail with ENOSYS. Some functions are actually named
7555 something starting with __ and the normal name is an alias. */
7556#if defined (__stub_shl_load) || defined (__stub___shl_load)
7557choke me
7558#else
7559char (*f) () = shl_load;
7560#endif
7561#ifdef __cplusplus
7562}
7563#endif
7564
7565int
7566main ()
7567{
7568return f != shl_load;
7569 ;
7570 return 0;
7571}
7572_ACEOF
7573rm -f conftest.$ac_objext conftest$ac_exeext
7574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7575 (eval $ac_link) 2>conftest.er1
7576 ac_status=$?
7577 grep -v '^ *+' conftest.er1 >conftest.err
7578 rm -f conftest.er1
7579 cat conftest.err >&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); } &&
7582 { ac_try='test -z "$ac_c_werror_flag"
7583 || test ! -s conftest.err'
7584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7585 (eval $ac_try) 2>&5
7586 ac_status=$?
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); }; } &&
7589 { ac_try='test -s conftest$ac_exeext'
7590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7591 (eval $ac_try) 2>&5
7592 ac_status=$?
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); }; }; then
7595 ac_cv_func_shl_load=yes
7596else
7597 echo "$as_me: failed program was:" >&5
7598sed 's/^/| /' conftest.$ac_ext >&5
7599
7600ac_cv_func_shl_load=no
7601fi
7602rm -f conftest.err conftest.$ac_objext \
7603 conftest$ac_exeext conftest.$ac_ext
7604fi
7605echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7606echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7607if test $ac_cv_func_shl_load = yes; then
7608
7609cat >>confdefs.h <<\_ACEOF
7610#define HAVE_SHL_LOAD 1
7611_ACEOF
7612
7613else
7614 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7615echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7616if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7618else
7619 ac_check_lib_save_LIBS=$LIBS
7620LIBS="-ldld $LIBS"
7621cat >conftest.$ac_ext <<_ACEOF
7622/* confdefs.h. */
7623_ACEOF
7624cat confdefs.h >>conftest.$ac_ext
7625cat >>conftest.$ac_ext <<_ACEOF
7626/* end confdefs.h. */
7627
7628/* Override any gcc2 internal prototype to avoid an error. */
7629#ifdef __cplusplus
7630extern "C"
7631#endif
7632/* We use char because int might match the return type of a gcc2
7633 builtin and then its argument prototype would still apply. */
7634char shl_load ();
7635int
7636main ()
7637{
7638shl_load ();
7639 ;
7640 return 0;
7641}
7642_ACEOF
7643rm -f conftest.$ac_objext conftest$ac_exeext
7644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7645 (eval $ac_link) 2>conftest.er1
7646 ac_status=$?
7647 grep -v '^ *+' conftest.er1 >conftest.err
7648 rm -f conftest.er1
7649 cat conftest.err >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } &&
7652 { ac_try='test -z "$ac_c_werror_flag"
7653 || test ! -s conftest.err'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 (eval $ac_try) 2>&5
7656 ac_status=$?
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; } &&
7659 { ac_try='test -s conftest$ac_exeext'
7660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661 (eval $ac_try) 2>&5
7662 ac_status=$?
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); }; }; then
7665 ac_cv_lib_dld_shl_load=yes
7666else
7667 echo "$as_me: failed program was:" >&5
7668sed 's/^/| /' conftest.$ac_ext >&5
7669
7670ac_cv_lib_dld_shl_load=no
7671fi
7672rm -f conftest.err conftest.$ac_objext \
7673 conftest$ac_exeext conftest.$ac_ext
7674LIBS=$ac_check_lib_save_LIBS
7675fi
7676echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7677echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7678if test $ac_cv_lib_dld_shl_load = yes; then
7679
7680cat >>confdefs.h <<\_ACEOF
7681#define HAVE_SHL_LOAD 1
7682_ACEOF
7683
7684 LIBADD_DL="$LIBADD_DL -ldld"
7685else
7686 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7687echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7688if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
7690else
7691 ac_check_lib_save_LIBS=$LIBS
7692LIBS="-ldl $LIBS"
7693cat >conftest.$ac_ext <<_ACEOF
7694/* confdefs.h. */
7695_ACEOF
7696cat confdefs.h >>conftest.$ac_ext
7697cat >>conftest.$ac_ext <<_ACEOF
7698/* end confdefs.h. */
7699
7700/* Override any gcc2 internal prototype to avoid an error. */
7701#ifdef __cplusplus
7702extern "C"
7703#endif
7704/* We use char because int might match the return type of a gcc2
7705 builtin and then its argument prototype would still apply. */
7706char dlopen ();
7707int
7708main ()
7709{
7710dlopen ();
7711 ;
7712 return 0;
7713}
7714_ACEOF
7715rm -f conftest.$ac_objext conftest$ac_exeext
7716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7717 (eval $ac_link) 2>conftest.er1
7718 ac_status=$?
7719 grep -v '^ *+' conftest.er1 >conftest.err
7720 rm -f conftest.er1
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } &&
7724 { ac_try='test -z "$ac_c_werror_flag"
7725 || test ! -s conftest.err'
7726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727 (eval $ac_try) 2>&5
7728 ac_status=$?
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); }; } &&
7731 { ac_try='test -s conftest$ac_exeext'
7732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7733 (eval $ac_try) 2>&5
7734 ac_status=$?
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); }; }; then
7737 ac_cv_lib_dl_dlopen=yes
7738else
7739 echo "$as_me: failed program was:" >&5
7740sed 's/^/| /' conftest.$ac_ext >&5
7741
7742ac_cv_lib_dl_dlopen=no
7743fi
7744rm -f conftest.err conftest.$ac_objext \
7745 conftest$ac_exeext conftest.$ac_ext
7746LIBS=$ac_check_lib_save_LIBS
7747fi
7748echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7749echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7750if test $ac_cv_lib_dl_dlopen = yes; then
7751
7752cat >>confdefs.h <<\_ACEOF
7753#define HAVE_LIBDL 1
7754_ACEOF
7755
7756 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7757else
7758 cat >conftest.$ac_ext <<_ACEOF
7759/* confdefs.h. */
7760_ACEOF
7761cat confdefs.h >>conftest.$ac_ext
7762cat >>conftest.$ac_ext <<_ACEOF
7763/* end confdefs.h. */
7764#if HAVE_DLFCN_H
7765# include <dlfcn.h>
7766#endif
7767
7768int
7769main ()
7770{
7771dlopen(0, 0);
7772 ;
7773 return 0;
7774}
7775_ACEOF
7776rm -f conftest.$ac_objext conftest$ac_exeext
7777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7778 (eval $ac_link) 2>conftest.er1
7779 ac_status=$?
7780 grep -v '^ *+' conftest.er1 >conftest.err
7781 rm -f conftest.er1
7782 cat conftest.err >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } &&
7785 { ac_try='test -z "$ac_c_werror_flag"
7786 || test ! -s conftest.err'
7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788 (eval $ac_try) 2>&5
7789 ac_status=$?
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; } &&
7792 { ac_try='test -s conftest$ac_exeext'
7793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794 (eval $ac_try) 2>&5
7795 ac_status=$?
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; }; then
7798
7799cat >>confdefs.h <<\_ACEOF
7800#define HAVE_LIBDL 1
7801_ACEOF
7802 libltdl_cv_func_dlopen="yes"
7803else
7804 echo "$as_me: failed program was:" >&5
7805sed 's/^/| /' conftest.$ac_ext >&5
7806
7807echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7808echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7809if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7811else
7812 ac_check_lib_save_LIBS=$LIBS
7813LIBS="-lsvld $LIBS"
7814cat >conftest.$ac_ext <<_ACEOF
7815/* confdefs.h. */
7816_ACEOF
7817cat confdefs.h >>conftest.$ac_ext
7818cat >>conftest.$ac_ext <<_ACEOF
7819/* end confdefs.h. */
7820
7821/* Override any gcc2 internal prototype to avoid an error. */
7822#ifdef __cplusplus
7823extern "C"
7824#endif
7825/* We use char because int might match the return type of a gcc2
7826 builtin and then its argument prototype would still apply. */
7827char dlopen ();
7828int
7829main ()
7830{
7831dlopen ();
7832 ;
7833 return 0;
7834}
7835_ACEOF
7836rm -f conftest.$ac_objext conftest$ac_exeext
7837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7838 (eval $ac_link) 2>conftest.er1
7839 ac_status=$?
7840 grep -v '^ *+' conftest.er1 >conftest.err
7841 rm -f conftest.er1
7842 cat conftest.err >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } &&
7845 { ac_try='test -z "$ac_c_werror_flag"
7846 || test ! -s conftest.err'
7847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848 (eval $ac_try) 2>&5
7849 ac_status=$?
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; } &&
7852 { ac_try='test -s conftest$ac_exeext'
7853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7854 (eval $ac_try) 2>&5
7855 ac_status=$?
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); }; }; then
7858 ac_cv_lib_svld_dlopen=yes
7859else
7860 echo "$as_me: failed program was:" >&5
7861sed 's/^/| /' conftest.$ac_ext >&5
7862
7863ac_cv_lib_svld_dlopen=no
7864fi
7865rm -f conftest.err conftest.$ac_objext \
7866 conftest$ac_exeext conftest.$ac_ext
7867LIBS=$ac_check_lib_save_LIBS
7868fi
7869echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7870echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7871if test $ac_cv_lib_svld_dlopen = yes; then
7872
7873cat >>confdefs.h <<\_ACEOF
7874#define HAVE_LIBDL 1
7875_ACEOF
7876
7877 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7878else
7879 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7880echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7881if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7882 echo $ECHO_N "(cached) $ECHO_C" >&6
7883else
7884 ac_check_lib_save_LIBS=$LIBS
7885LIBS="-ldld $LIBS"
7886cat >conftest.$ac_ext <<_ACEOF
7887/* confdefs.h. */
7888_ACEOF
7889cat confdefs.h >>conftest.$ac_ext
7890cat >>conftest.$ac_ext <<_ACEOF
7891/* end confdefs.h. */
7892
7893/* Override any gcc2 internal prototype to avoid an error. */
7894#ifdef __cplusplus
7895extern "C"
7896#endif
7897/* We use char because int might match the return type of a gcc2
7898 builtin and then its argument prototype would still apply. */
7899char dld_link ();
7900int
7901main ()
7902{
7903dld_link ();
7904 ;
7905 return 0;
7906}
7907_ACEOF
7908rm -f conftest.$ac_objext conftest$ac_exeext
7909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7910 (eval $ac_link) 2>conftest.er1
7911 ac_status=$?
7912 grep -v '^ *+' conftest.er1 >conftest.err
7913 rm -f conftest.er1
7914 cat conftest.err >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); } &&
7917 { ac_try='test -z "$ac_c_werror_flag"
7918 || test ! -s conftest.err'
7919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920 (eval $ac_try) 2>&5
7921 ac_status=$?
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; } &&
7924 { ac_try='test -s conftest$ac_exeext'
7925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926 (eval $ac_try) 2>&5
7927 ac_status=$?
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; }; then
7930 ac_cv_lib_dld_dld_link=yes
7931else
7932 echo "$as_me: failed program was:" >&5
7933sed 's/^/| /' conftest.$ac_ext >&5
7934
7935ac_cv_lib_dld_dld_link=no
7936fi
7937rm -f conftest.err conftest.$ac_objext \
7938 conftest$ac_exeext conftest.$ac_ext
7939LIBS=$ac_check_lib_save_LIBS
7940fi
7941echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7942echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7943if test $ac_cv_lib_dld_dld_link = yes; then
7944
7945cat >>confdefs.h <<\_ACEOF
7946#define HAVE_DLD 1
7947_ACEOF
7948
7949 LIBADD_DL="$LIBADD_DL -ldld"
7950else
7951 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7952echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7953if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7955else
7956 cat >conftest.$ac_ext <<_ACEOF
7957/* confdefs.h. */
7958_ACEOF
7959cat confdefs.h >>conftest.$ac_ext
7960cat >>conftest.$ac_ext <<_ACEOF
7961/* end confdefs.h. */
7962/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7964#define _dyld_func_lookup innocuous__dyld_func_lookup
7965
7966/* System header to define __stub macros and hopefully few prototypes,
7967 which can conflict with char _dyld_func_lookup (); below.
7968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7969 <limits.h> exists even on freestanding compilers. */
7970
7971#ifdef __STDC__
7972# include <limits.h>
7973#else
7974# include <assert.h>
7975#endif
7976
7977#undef _dyld_func_lookup
7978
7979/* Override any gcc2 internal prototype to avoid an error. */
7980#ifdef __cplusplus
7981extern "C"
7982{
7983#endif
7984/* We use char because int might match the return type of a gcc2
7985 builtin and then its argument prototype would still apply. */
7986char _dyld_func_lookup ();
7987/* The GNU C library defines this for functions which it implements
7988 to always fail with ENOSYS. Some functions are actually named
7989 something starting with __ and the normal name is an alias. */
7990#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7991choke me
7992#else
7993char (*f) () = _dyld_func_lookup;
7994#endif
7995#ifdef __cplusplus
7996}
7997#endif
7998
7999int
8000main ()
8001{
8002return f != _dyld_func_lookup;
8003 ;
8004 return 0;
8005}
8006_ACEOF
8007rm -f conftest.$ac_objext conftest$ac_exeext
8008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8009 (eval $ac_link) 2>conftest.er1
8010 ac_status=$?
8011 grep -v '^ *+' conftest.er1 >conftest.err
8012 rm -f conftest.er1
8013 cat conftest.err >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } &&
8016 { ac_try='test -z "$ac_c_werror_flag"
8017 || test ! -s conftest.err'
8018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019 (eval $ac_try) 2>&5
8020 ac_status=$?
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); }; } &&
8023 { ac_try='test -s conftest$ac_exeext'
8024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8025 (eval $ac_try) 2>&5
8026 ac_status=$?
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); }; }; then
8029 ac_cv_func__dyld_func_lookup=yes
8030else
8031 echo "$as_me: failed program was:" >&5
8032sed 's/^/| /' conftest.$ac_ext >&5
8033
8034ac_cv_func__dyld_func_lookup=no
8035fi
8036rm -f conftest.err conftest.$ac_objext \
8037 conftest$ac_exeext conftest.$ac_ext
8038fi
8039echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8040echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8041if test $ac_cv_func__dyld_func_lookup = yes; then
8042
8043cat >>confdefs.h <<\_ACEOF
8044#define HAVE_DYLD 1
8045_ACEOF
8046
8047fi
8048
8049
8050fi
8051
8052
8053fi
8054
8055
8056fi
8057rm -f conftest.err conftest.$ac_objext \
8058 conftest$ac_exeext conftest.$ac_ext
8059
8060fi
8061
8062
8063fi
8064
8065
8066fi
8067
8068
8069if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8070then
8071 lt_save_LIBS="$LIBS"
8072 LIBS="$LIBS $LIBADD_DL"
8073
8074for ac_func in dlerror
8075do
8076as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8077echo "$as_me:$LINENO: checking for $ac_func" >&5
8078echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8079if eval "test \"\${$as_ac_var+set}\" = set"; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8081else
8082 cat >conftest.$ac_ext <<_ACEOF
8083/* confdefs.h. */
8084_ACEOF
8085cat confdefs.h >>conftest.$ac_ext
8086cat >>conftest.$ac_ext <<_ACEOF
8087/* end confdefs.h. */
8088/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8090#define $ac_func innocuous_$ac_func
8091
8092/* System header to define __stub macros and hopefully few prototypes,
8093 which can conflict with char $ac_func (); below.
8094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8095 <limits.h> exists even on freestanding compilers. */
8096
8097#ifdef __STDC__
8098# include <limits.h>
8099#else
8100# include <assert.h>
8101#endif
8102
8103#undef $ac_func
8104
8105/* Override any gcc2 internal prototype to avoid an error. */
8106#ifdef __cplusplus
8107extern "C"
8108{
8109#endif
8110/* We use char because int might match the return type of a gcc2
8111 builtin and then its argument prototype would still apply. */
8112char $ac_func ();
8113/* The GNU C library defines this for functions which it implements
8114 to always fail with ENOSYS. Some functions are actually named
8115 something starting with __ and the normal name is an alias. */
8116#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8117choke me
8118#else
8119char (*f) () = $ac_func;
8120#endif
8121#ifdef __cplusplus
8122}
8123#endif
8124
8125int
8126main ()
8127{
8128return f != $ac_func;
8129 ;
8130 return 0;
8131}
8132_ACEOF
8133rm -f conftest.$ac_objext conftest$ac_exeext
8134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8135 (eval $ac_link) 2>conftest.er1
8136 ac_status=$?
8137 grep -v '^ *+' conftest.er1 >conftest.err
8138 rm -f conftest.er1
8139 cat conftest.err >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } &&
8142 { ac_try='test -z "$ac_c_werror_flag"
8143 || test ! -s conftest.err'
8144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 (eval $ac_try) 2>&5
8146 ac_status=$?
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; } &&
8149 { ac_try='test -s conftest$ac_exeext'
8150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 (eval $ac_try) 2>&5
8152 ac_status=$?
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); }; }; then
8155 eval "$as_ac_var=yes"
8156else
8157 echo "$as_me: failed program was:" >&5
8158sed 's/^/| /' conftest.$ac_ext >&5
8159
8160eval "$as_ac_var=no"
8161fi
8162rm -f conftest.err conftest.$ac_objext \
8163 conftest$ac_exeext conftest.$ac_ext
8164fi
8165echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8166echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8167if test `eval echo '${'$as_ac_var'}'` = yes; then
8168 cat >>confdefs.h <<_ACEOF
8169#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8170_ACEOF
8171
8172fi
8173done
8174
8175 LIBS="$lt_save_LIBS"
8176fi
8177ac_ext=c
8178ac_cpp='$CPP $CPPFLAGS'
8179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8181ac_compiler_gnu=$ac_cv_c_compiler_gnu
8182
8183
8184
8185echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8186echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8187if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8189else
8190 ac_cv_sys_symbol_underscore=no
8191 cat > conftest.$ac_ext <<EOF
8192void nm_test_func(){}
8193int main(){nm_test_func;return 0;}
8194EOF
8195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8196 (eval $ac_compile) 2>&5
8197 ac_status=$?
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; then
8200 # Now try to grab the symbols.
8201 ac_nlist=conftest.nm
8202 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8203 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8204 ac_status=$?
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } && test -s "$ac_nlist"; then
8207 # See whether the symbols have a leading underscore.
8208 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8209 ac_cv_sys_symbol_underscore=yes
8210 else
8211 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8212 :
8213 else
8214 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8215 fi
8216 fi
8217 else
8218 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8219 fi
8220 else
8221 echo "configure: failed program was:" >&5
8222 cat conftest.c >&5
8223 fi
8224 rm -rf conftest*
8225
8226fi
8227echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8228echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8229
8230
8231if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8232 if test x"$libltdl_cv_func_dlopen" = xyes ||
8233 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8234 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8235echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8236if test "${libltdl_cv_need_uscore+set}" = set; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
8238else
8239 libltdl_cv_need_uscore=unknown
8240 save_LIBS="$LIBS"
8241 LIBS="$LIBS $LIBADD_DL"
8242 if test "$cross_compiling" = yes; then :
8243 libltdl_cv_need_uscore=cross
8244else
8245 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8246 lt_status=$lt_dlunknown
8247 cat > conftest.$ac_ext <<EOF
Reid Spencer95ed8432004-12-23 06:22:33 +00008248#line 8248 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008249#include "confdefs.h"
8250
8251#if HAVE_DLFCN_H
8252#include <dlfcn.h>
8253#endif
8254
8255#include <stdio.h>
8256
8257#ifdef RTLD_GLOBAL
8258# define LT_DLGLOBAL RTLD_GLOBAL
8259#else
8260# ifdef DL_GLOBAL
8261# define LT_DLGLOBAL DL_GLOBAL
8262# else
8263# define LT_DLGLOBAL 0
8264# endif
8265#endif
8266
8267/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8268 find out it does not work in some platform. */
8269#ifndef LT_DLLAZY_OR_NOW
8270# ifdef RTLD_LAZY
8271# define LT_DLLAZY_OR_NOW RTLD_LAZY
8272# else
8273# ifdef DL_LAZY
8274# define LT_DLLAZY_OR_NOW DL_LAZY
8275# else
8276# ifdef RTLD_NOW
8277# define LT_DLLAZY_OR_NOW RTLD_NOW
8278# else
8279# ifdef DL_NOW
8280# define LT_DLLAZY_OR_NOW DL_NOW
8281# else
8282# define LT_DLLAZY_OR_NOW 0
8283# endif
8284# endif
8285# endif
8286# endif
8287#endif
8288
8289#ifdef __cplusplus
8290extern "C" void exit (int);
8291#endif
8292
8293void fnord() { int i=42;}
8294int main ()
8295{
8296 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8297 int status = $lt_dlunknown;
8298
8299 if (self)
8300 {
8301 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8302 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8303 /* dlclose (self); */
8304 }
8305
8306 exit (status);
8307}
8308EOF
8309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8310 (eval $ac_link) 2>&5
8311 ac_status=$?
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8314 (./conftest; exit; ) 2>/dev/null
8315 lt_status=$?
8316 case x$lt_status in
8317 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8318 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8319 x$lt_unknown|x*) ;;
8320 esac
8321 else :
8322 # compilation failed
8323
8324 fi
8325fi
8326rm -fr conftest*
8327
8328 LIBS="$save_LIBS"
8329
8330fi
8331echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8332echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8333 fi
8334fi
8335
8336if test x"$libltdl_cv_need_uscore" = xyes; then
8337
8338cat >>confdefs.h <<\_ACEOF
8339#define NEED_USCORE 1
8340_ACEOF
8341
8342fi
8343
8344
8345echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8346echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8347if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8348 echo $ECHO_N "(cached) $ECHO_C" >&6
8349else
8350 # PORTME does your system automatically load deplibs for dlopen?
8351 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8352 # For now, we just catch OSes we know something about -- in the
8353 # future, we'll try test this programmatically.
8354 libltdl_cv_sys_dlopen_deplibs=unknown
8355 case "$host_os" in
8356 aix3*|aix4.1.*|aix4.2.*)
8357 # Unknown whether this is true for these versions of AIX, but
8358 # we want this `case' here to explicitly catch those versions.
8359 libltdl_cv_sys_dlopen_deplibs=unknown
8360 ;;
8361 aix[45]*)
8362 libltdl_cv_sys_dlopen_deplibs=yes
8363 ;;
8364 darwin*)
8365 # Assuming the user has installed a libdl from somewhere, this is true
8366 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8367 libltdl_cv_sys_dlopen_deplibs=yes
8368 ;;
8369 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8370 # GNU and its variants, using gnu ld.so (Glibc)
8371 libltdl_cv_sys_dlopen_deplibs=yes
8372 ;;
8373 hpux10*|hpux11*)
8374 libltdl_cv_sys_dlopen_deplibs=yes
8375 ;;
8376 irix[12345]*|irix6.[01]*)
8377 # Catch all versions of IRIX before 6.2, and indicate that we don't
8378 # know how it worked for any of those versions.
8379 libltdl_cv_sys_dlopen_deplibs=unknown
8380 ;;
8381 irix*)
8382 # The case above catches anything before 6.2, and it's known that
8383 # at 6.2 and later dlopen does load deplibs.
8384 libltdl_cv_sys_dlopen_deplibs=yes
8385 ;;
8386 netbsd*)
8387 libltdl_cv_sys_dlopen_deplibs=yes
8388 ;;
8389 openbsd*)
8390 libltdl_cv_sys_dlopen_deplibs=yes
8391 ;;
8392 osf[1234]*)
8393 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8394 # it did *not* use an RPATH in a shared library to find objects the
8395 # library depends on, so we explictly say `no'.
8396 libltdl_cv_sys_dlopen_deplibs=no
8397 ;;
8398 osf5.0|osf5.0a|osf5.1)
8399 # dlopen *does* load deplibs and with the right loader patch applied
8400 # it even uses RPATH in a shared library to search for shared objects
8401 # that the library depends on, but there's no easy way to know if that
8402 # patch is installed. Since this is the case, all we can really
8403 # say is unknown -- it depends on the patch being installed. If
8404 # it is, this changes to `yes'. Without it, it would be `no'.
8405 libltdl_cv_sys_dlopen_deplibs=unknown
8406 ;;
8407 osf*)
8408 # the two cases above should catch all versions of osf <= 5.1. Read
8409 # the comments above for what we know about them.
8410 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8411 # is used to find them so we can finally say `yes'.
8412 libltdl_cv_sys_dlopen_deplibs=yes
8413 ;;
8414 solaris*)
8415 libltdl_cv_sys_dlopen_deplibs=yes
8416 ;;
8417 esac
8418
8419fi
8420echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8421echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8422if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8423
8424cat >>confdefs.h <<\_ACEOF
8425#define LTDL_DLOPEN_DEPLIBS 1
8426_ACEOF
8427
8428fi
8429
8430
8431for ac_header in argz.h
8432do
8433as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8434if eval "test \"\${$as_ac_Header+set}\" = set"; then
8435 echo "$as_me:$LINENO: checking for $ac_header" >&5
8436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8437if eval "test \"\${$as_ac_Header+set}\" = set"; then
8438 echo $ECHO_N "(cached) $ECHO_C" >&6
8439fi
8440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8441echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8442else
8443 # Is the header compilable?
8444echo "$as_me:$LINENO: checking $ac_header usability" >&5
8445echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8446cat >conftest.$ac_ext <<_ACEOF
8447/* confdefs.h. */
8448_ACEOF
8449cat confdefs.h >>conftest.$ac_ext
8450cat >>conftest.$ac_ext <<_ACEOF
8451/* end confdefs.h. */
8452$ac_includes_default
8453#include <$ac_header>
8454_ACEOF
8455rm -f conftest.$ac_objext
8456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8457 (eval $ac_compile) 2>conftest.er1
8458 ac_status=$?
8459 grep -v '^ *+' conftest.er1 >conftest.err
8460 rm -f conftest.er1
8461 cat conftest.err >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); } &&
8464 { ac_try='test -z "$ac_c_werror_flag"
8465 || test ! -s conftest.err'
8466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467 (eval $ac_try) 2>&5
8468 ac_status=$?
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; } &&
8471 { ac_try='test -s conftest.$ac_objext'
8472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 (eval $ac_try) 2>&5
8474 ac_status=$?
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); }; }; then
8477 ac_header_compiler=yes
8478else
8479 echo "$as_me: failed program was:" >&5
8480sed 's/^/| /' conftest.$ac_ext >&5
8481
8482ac_header_compiler=no
8483fi
8484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8485echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8486echo "${ECHO_T}$ac_header_compiler" >&6
8487
8488# Is the header present?
8489echo "$as_me:$LINENO: checking $ac_header presence" >&5
8490echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8491cat >conftest.$ac_ext <<_ACEOF
8492/* confdefs.h. */
8493_ACEOF
8494cat confdefs.h >>conftest.$ac_ext
8495cat >>conftest.$ac_ext <<_ACEOF
8496/* end confdefs.h. */
8497#include <$ac_header>
8498_ACEOF
8499if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8501 ac_status=$?
8502 grep -v '^ *+' conftest.er1 >conftest.err
8503 rm -f conftest.er1
8504 cat conftest.err >&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } >/dev/null; then
8507 if test -s conftest.err; then
8508 ac_cpp_err=$ac_c_preproc_warn_flag
8509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8510 else
8511 ac_cpp_err=
8512 fi
8513else
8514 ac_cpp_err=yes
8515fi
8516if test -z "$ac_cpp_err"; then
8517 ac_header_preproc=yes
8518else
8519 echo "$as_me: failed program was:" >&5
8520sed 's/^/| /' conftest.$ac_ext >&5
8521
8522 ac_header_preproc=no
8523fi
8524rm -f conftest.err conftest.$ac_ext
8525echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8526echo "${ECHO_T}$ac_header_preproc" >&6
8527
8528# So? What about this header?
8529case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8530 yes:no: )
8531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8532echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8534echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8535 ac_header_preproc=yes
8536 ;;
8537 no:yes:* )
8538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8539echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8541echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8542 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8543echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8544 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8545echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8547echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8548 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8549echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8550 (
8551 cat <<\_ASBOX
8552## ----------------------------------- ##
8553## Report this to llvmbugs@cs.uiuc.edu ##
8554## ----------------------------------- ##
8555_ASBOX
8556 ) |
8557 sed "s/^/$as_me: WARNING: /" >&2
8558 ;;
8559esac
8560echo "$as_me:$LINENO: checking for $ac_header" >&5
8561echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8562if eval "test \"\${$as_ac_Header+set}\" = set"; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8564else
8565 eval "$as_ac_Header=\$ac_header_preproc"
8566fi
8567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8568echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8569
8570fi
8571if test `eval echo '${'$as_ac_Header'}'` = yes; then
8572 cat >>confdefs.h <<_ACEOF
8573#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8574_ACEOF
8575
8576fi
8577
8578done
8579
8580
8581echo "$as_me:$LINENO: checking for error_t" >&5
8582echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8583if test "${ac_cv_type_error_t+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8585else
8586 cat >conftest.$ac_ext <<_ACEOF
8587/* confdefs.h. */
8588_ACEOF
8589cat confdefs.h >>conftest.$ac_ext
8590cat >>conftest.$ac_ext <<_ACEOF
8591/* end confdefs.h. */
8592#if HAVE_ARGZ_H
8593# include <argz.h>
8594#endif
8595
8596int
8597main ()
8598{
8599if ((error_t *) 0)
8600 return 0;
8601if (sizeof (error_t))
8602 return 0;
8603 ;
8604 return 0;
8605}
8606_ACEOF
8607rm -f conftest.$ac_objext
8608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8609 (eval $ac_compile) 2>conftest.er1
8610 ac_status=$?
8611 grep -v '^ *+' conftest.er1 >conftest.err
8612 rm -f conftest.er1
8613 cat conftest.err >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } &&
8616 { ac_try='test -z "$ac_c_werror_flag"
8617 || test ! -s conftest.err'
8618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8619 (eval $ac_try) 2>&5
8620 ac_status=$?
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); }; } &&
8623 { ac_try='test -s conftest.$ac_objext'
8624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625 (eval $ac_try) 2>&5
8626 ac_status=$?
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; }; then
8629 ac_cv_type_error_t=yes
8630else
8631 echo "$as_me: failed program was:" >&5
8632sed 's/^/| /' conftest.$ac_ext >&5
8633
8634ac_cv_type_error_t=no
8635fi
8636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8637fi
8638echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8639echo "${ECHO_T}$ac_cv_type_error_t" >&6
8640if test $ac_cv_type_error_t = yes; then
8641
8642cat >>confdefs.h <<_ACEOF
8643#define HAVE_ERROR_T 1
8644_ACEOF
8645
8646
8647else
8648
8649cat >>confdefs.h <<\_ACEOF
8650#define error_t int
8651_ACEOF
8652
8653fi
8654
8655
8656
8657
8658
8659
8660
8661for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8662do
8663as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8664echo "$as_me:$LINENO: checking for $ac_func" >&5
8665echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8666if eval "test \"\${$as_ac_var+set}\" = set"; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
8668else
8669 cat >conftest.$ac_ext <<_ACEOF
8670/* confdefs.h. */
8671_ACEOF
8672cat confdefs.h >>conftest.$ac_ext
8673cat >>conftest.$ac_ext <<_ACEOF
8674/* end confdefs.h. */
8675/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8677#define $ac_func innocuous_$ac_func
8678
8679/* System header to define __stub macros and hopefully few prototypes,
8680 which can conflict with char $ac_func (); below.
8681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8682 <limits.h> exists even on freestanding compilers. */
8683
8684#ifdef __STDC__
8685# include <limits.h>
8686#else
8687# include <assert.h>
8688#endif
8689
8690#undef $ac_func
8691
8692/* Override any gcc2 internal prototype to avoid an error. */
8693#ifdef __cplusplus
8694extern "C"
8695{
8696#endif
8697/* We use char because int might match the return type of a gcc2
8698 builtin and then its argument prototype would still apply. */
8699char $ac_func ();
8700/* The GNU C library defines this for functions which it implements
8701 to always fail with ENOSYS. Some functions are actually named
8702 something starting with __ and the normal name is an alias. */
8703#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8704choke me
8705#else
8706char (*f) () = $ac_func;
8707#endif
8708#ifdef __cplusplus
8709}
8710#endif
8711
8712int
8713main ()
8714{
8715return f != $ac_func;
8716 ;
8717 return 0;
8718}
8719_ACEOF
8720rm -f conftest.$ac_objext conftest$ac_exeext
8721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8722 (eval $ac_link) 2>conftest.er1
8723 ac_status=$?
8724 grep -v '^ *+' conftest.er1 >conftest.err
8725 rm -f conftest.er1
8726 cat conftest.err >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } &&
8729 { ac_try='test -z "$ac_c_werror_flag"
8730 || test ! -s conftest.err'
8731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 (eval $ac_try) 2>&5
8733 ac_status=$?
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; } &&
8736 { ac_try='test -s conftest$ac_exeext'
8737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738 (eval $ac_try) 2>&5
8739 ac_status=$?
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); }; }; then
8742 eval "$as_ac_var=yes"
8743else
8744 echo "$as_me: failed program was:" >&5
8745sed 's/^/| /' conftest.$ac_ext >&5
8746
8747eval "$as_ac_var=no"
8748fi
8749rm -f conftest.err conftest.$ac_objext \
8750 conftest$ac_exeext conftest.$ac_ext
8751fi
8752echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8753echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8754if test `eval echo '${'$as_ac_var'}'` = yes; then
8755 cat >>confdefs.h <<_ACEOF
8756#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8757_ACEOF
8758
8759fi
8760done
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
8786
8787
8788
8789for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8790 stdio.h unistd.h
8791do
8792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8793if eval "test \"\${$as_ac_Header+set}\" = set"; then
8794 echo "$as_me:$LINENO: checking for $ac_header" >&5
8795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8796if eval "test \"\${$as_ac_Header+set}\" = set"; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8798fi
8799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8800echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8801else
8802 # Is the header compilable?
8803echo "$as_me:$LINENO: checking $ac_header usability" >&5
8804echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8805cat >conftest.$ac_ext <<_ACEOF
8806/* confdefs.h. */
8807_ACEOF
8808cat confdefs.h >>conftest.$ac_ext
8809cat >>conftest.$ac_ext <<_ACEOF
8810/* end confdefs.h. */
8811$ac_includes_default
8812#include <$ac_header>
8813_ACEOF
8814rm -f conftest.$ac_objext
8815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8816 (eval $ac_compile) 2>conftest.er1
8817 ac_status=$?
8818 grep -v '^ *+' conftest.er1 >conftest.err
8819 rm -f conftest.er1
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } &&
8823 { ac_try='test -z "$ac_c_werror_flag"
8824 || test ! -s conftest.err'
8825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826 (eval $ac_try) 2>&5
8827 ac_status=$?
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; } &&
8830 { ac_try='test -s conftest.$ac_objext'
8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 (eval $ac_try) 2>&5
8833 ac_status=$?
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; }; then
8836 ac_header_compiler=yes
8837else
8838 echo "$as_me: failed program was:" >&5
8839sed 's/^/| /' conftest.$ac_ext >&5
8840
8841ac_header_compiler=no
8842fi
8843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8844echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8845echo "${ECHO_T}$ac_header_compiler" >&6
8846
8847# Is the header present?
8848echo "$as_me:$LINENO: checking $ac_header presence" >&5
8849echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8850cat >conftest.$ac_ext <<_ACEOF
8851/* confdefs.h. */
8852_ACEOF
8853cat confdefs.h >>conftest.$ac_ext
8854cat >>conftest.$ac_ext <<_ACEOF
8855/* end confdefs.h. */
8856#include <$ac_header>
8857_ACEOF
8858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8860 ac_status=$?
8861 grep -v '^ *+' conftest.er1 >conftest.err
8862 rm -f conftest.er1
8863 cat conftest.err >&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); } >/dev/null; then
8866 if test -s conftest.err; then
8867 ac_cpp_err=$ac_c_preproc_warn_flag
8868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8869 else
8870 ac_cpp_err=
8871 fi
8872else
8873 ac_cpp_err=yes
8874fi
8875if test -z "$ac_cpp_err"; then
8876 ac_header_preproc=yes
8877else
8878 echo "$as_me: failed program was:" >&5
8879sed 's/^/| /' conftest.$ac_ext >&5
8880
8881 ac_header_preproc=no
8882fi
8883rm -f conftest.err conftest.$ac_ext
8884echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8885echo "${ECHO_T}$ac_header_preproc" >&6
8886
8887# So? What about this header?
8888case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8889 yes:no: )
8890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8891echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8893echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8894 ac_header_preproc=yes
8895 ;;
8896 no:yes:* )
8897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8898echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8900echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8902echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8904echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8906echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8908echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8909 (
8910 cat <<\_ASBOX
8911## ----------------------------------- ##
8912## Report this to llvmbugs@cs.uiuc.edu ##
8913## ----------------------------------- ##
8914_ASBOX
8915 ) |
8916 sed "s/^/$as_me: WARNING: /" >&2
8917 ;;
8918esac
8919echo "$as_me:$LINENO: checking for $ac_header" >&5
8920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8921if eval "test \"\${$as_ac_Header+set}\" = set"; then
8922 echo $ECHO_N "(cached) $ECHO_C" >&6
8923else
8924 eval "$as_ac_Header=\$ac_header_preproc"
8925fi
8926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8927echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8928
8929fi
8930if test `eval echo '${'$as_ac_Header'}'` = yes; then
8931 cat >>confdefs.h <<_ACEOF
8932#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8933_ACEOF
8934
8935fi
8936
8937done
8938
8939
8940
8941
8942
8943for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8944do
8945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8946if eval "test \"\${$as_ac_Header+set}\" = set"; then
8947 echo "$as_me:$LINENO: checking for $ac_header" >&5
8948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8949if eval "test \"\${$as_ac_Header+set}\" = set"; then
8950 echo $ECHO_N "(cached) $ECHO_C" >&6
8951fi
8952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8953echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8954else
8955 # Is the header compilable?
8956echo "$as_me:$LINENO: checking $ac_header usability" >&5
8957echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8958cat >conftest.$ac_ext <<_ACEOF
8959/* confdefs.h. */
8960_ACEOF
8961cat confdefs.h >>conftest.$ac_ext
8962cat >>conftest.$ac_ext <<_ACEOF
8963/* end confdefs.h. */
8964$ac_includes_default
8965#include <$ac_header>
8966_ACEOF
8967rm -f conftest.$ac_objext
8968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8969 (eval $ac_compile) 2>conftest.er1
8970 ac_status=$?
8971 grep -v '^ *+' conftest.er1 >conftest.err
8972 rm -f conftest.er1
8973 cat conftest.err >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } &&
8976 { ac_try='test -z "$ac_c_werror_flag"
8977 || test ! -s conftest.err'
8978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979 (eval $ac_try) 2>&5
8980 ac_status=$?
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; } &&
8983 { ac_try='test -s conftest.$ac_objext'
8984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985 (eval $ac_try) 2>&5
8986 ac_status=$?
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; }; then
8989 ac_header_compiler=yes
8990else
8991 echo "$as_me: failed program was:" >&5
8992sed 's/^/| /' conftest.$ac_ext >&5
8993
8994ac_header_compiler=no
8995fi
8996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8997echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8998echo "${ECHO_T}$ac_header_compiler" >&6
8999
9000# Is the header present?
9001echo "$as_me:$LINENO: checking $ac_header presence" >&5
9002echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9003cat >conftest.$ac_ext <<_ACEOF
9004/* confdefs.h. */
9005_ACEOF
9006cat confdefs.h >>conftest.$ac_ext
9007cat >>conftest.$ac_ext <<_ACEOF
9008/* end confdefs.h. */
9009#include <$ac_header>
9010_ACEOF
9011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9013 ac_status=$?
9014 grep -v '^ *+' conftest.er1 >conftest.err
9015 rm -f conftest.er1
9016 cat conftest.err >&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); } >/dev/null; then
9019 if test -s conftest.err; then
9020 ac_cpp_err=$ac_c_preproc_warn_flag
9021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9022 else
9023 ac_cpp_err=
9024 fi
9025else
9026 ac_cpp_err=yes
9027fi
9028if test -z "$ac_cpp_err"; then
9029 ac_header_preproc=yes
9030else
9031 echo "$as_me: failed program was:" >&5
9032sed 's/^/| /' conftest.$ac_ext >&5
9033
9034 ac_header_preproc=no
9035fi
9036rm -f conftest.err conftest.$ac_ext
9037echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9038echo "${ECHO_T}$ac_header_preproc" >&6
9039
9040# So? What about this header?
9041case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9042 yes:no: )
9043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9044echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9046echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9047 ac_header_preproc=yes
9048 ;;
9049 no:yes:* )
9050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9051echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9053echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9055echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9057echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9059echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9061echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9062 (
9063 cat <<\_ASBOX
9064## ----------------------------------- ##
9065## Report this to llvmbugs@cs.uiuc.edu ##
9066## ----------------------------------- ##
9067_ASBOX
9068 ) |
9069 sed "s/^/$as_me: WARNING: /" >&2
9070 ;;
9071esac
9072echo "$as_me:$LINENO: checking for $ac_header" >&5
9073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9074if eval "test \"\${$as_ac_Header+set}\" = set"; then
9075 echo $ECHO_N "(cached) $ECHO_C" >&6
9076else
9077 eval "$as_ac_Header=\$ac_header_preproc"
9078fi
9079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9080echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9081
9082fi
9083if test `eval echo '${'$as_ac_Header'}'` = yes; then
9084 cat >>confdefs.h <<_ACEOF
9085#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9086_ACEOF
9087
9088fi
9089
9090done
9091
9092
9093
9094for ac_header in string.h strings.h
9095do
9096as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9097if eval "test \"\${$as_ac_Header+set}\" = set"; then
9098 echo "$as_me:$LINENO: checking for $ac_header" >&5
9099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9100if eval "test \"\${$as_ac_Header+set}\" = set"; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9102fi
9103echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9104echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9105else
9106 # Is the header compilable?
9107echo "$as_me:$LINENO: checking $ac_header usability" >&5
9108echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9109cat >conftest.$ac_ext <<_ACEOF
9110/* confdefs.h. */
9111_ACEOF
9112cat confdefs.h >>conftest.$ac_ext
9113cat >>conftest.$ac_ext <<_ACEOF
9114/* end confdefs.h. */
9115$ac_includes_default
9116#include <$ac_header>
9117_ACEOF
9118rm -f conftest.$ac_objext
9119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9120 (eval $ac_compile) 2>conftest.er1
9121 ac_status=$?
9122 grep -v '^ *+' conftest.er1 >conftest.err
9123 rm -f conftest.er1
9124 cat conftest.err >&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); } &&
9127 { ac_try='test -z "$ac_c_werror_flag"
9128 || test ! -s conftest.err'
9129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130 (eval $ac_try) 2>&5
9131 ac_status=$?
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }; } &&
9134 { ac_try='test -s conftest.$ac_objext'
9135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136 (eval $ac_try) 2>&5
9137 ac_status=$?
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; }; then
9140 ac_header_compiler=yes
9141else
9142 echo "$as_me: failed program was:" >&5
9143sed 's/^/| /' conftest.$ac_ext >&5
9144
9145ac_header_compiler=no
9146fi
9147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9148echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9149echo "${ECHO_T}$ac_header_compiler" >&6
9150
9151# Is the header present?
9152echo "$as_me:$LINENO: checking $ac_header presence" >&5
9153echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9154cat >conftest.$ac_ext <<_ACEOF
9155/* confdefs.h. */
9156_ACEOF
9157cat confdefs.h >>conftest.$ac_ext
9158cat >>conftest.$ac_ext <<_ACEOF
9159/* end confdefs.h. */
9160#include <$ac_header>
9161_ACEOF
9162if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9164 ac_status=$?
9165 grep -v '^ *+' conftest.er1 >conftest.err
9166 rm -f conftest.er1
9167 cat conftest.err >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } >/dev/null; then
9170 if test -s conftest.err; then
9171 ac_cpp_err=$ac_c_preproc_warn_flag
9172 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9173 else
9174 ac_cpp_err=
9175 fi
9176else
9177 ac_cpp_err=yes
9178fi
9179if test -z "$ac_cpp_err"; then
9180 ac_header_preproc=yes
9181else
9182 echo "$as_me: failed program was:" >&5
9183sed 's/^/| /' conftest.$ac_ext >&5
9184
9185 ac_header_preproc=no
9186fi
9187rm -f conftest.err conftest.$ac_ext
9188echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9189echo "${ECHO_T}$ac_header_preproc" >&6
9190
9191# So? What about this header?
9192case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9193 yes:no: )
9194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9195echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9197echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9198 ac_header_preproc=yes
9199 ;;
9200 no:yes:* )
9201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9202echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9204echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9205 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9206echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9207 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9208echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9210echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9211 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9212echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9213 (
9214 cat <<\_ASBOX
9215## ----------------------------------- ##
9216## Report this to llvmbugs@cs.uiuc.edu ##
9217## ----------------------------------- ##
9218_ASBOX
9219 ) |
9220 sed "s/^/$as_me: WARNING: /" >&2
9221 ;;
9222esac
9223echo "$as_me:$LINENO: checking for $ac_header" >&5
9224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9225if eval "test \"\${$as_ac_Header+set}\" = set"; then
9226 echo $ECHO_N "(cached) $ECHO_C" >&6
9227else
9228 eval "$as_ac_Header=\$ac_header_preproc"
9229fi
9230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9231echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9232
9233fi
9234if test `eval echo '${'$as_ac_Header'}'` = yes; then
9235 cat >>confdefs.h <<_ACEOF
9236#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9237_ACEOF
9238 break
9239fi
9240
9241done
9242
9243
9244
9245
9246for ac_func in strchr index
9247do
9248as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9249echo "$as_me:$LINENO: checking for $ac_func" >&5
9250echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9251if eval "test \"\${$as_ac_var+set}\" = set"; then
9252 echo $ECHO_N "(cached) $ECHO_C" >&6
9253else
9254 cat >conftest.$ac_ext <<_ACEOF
9255/* confdefs.h. */
9256_ACEOF
9257cat confdefs.h >>conftest.$ac_ext
9258cat >>conftest.$ac_ext <<_ACEOF
9259/* end confdefs.h. */
9260/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9262#define $ac_func innocuous_$ac_func
9263
9264/* System header to define __stub macros and hopefully few prototypes,
9265 which can conflict with char $ac_func (); below.
9266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9267 <limits.h> exists even on freestanding compilers. */
9268
9269#ifdef __STDC__
9270# include <limits.h>
9271#else
9272# include <assert.h>
9273#endif
9274
9275#undef $ac_func
9276
9277/* Override any gcc2 internal prototype to avoid an error. */
9278#ifdef __cplusplus
9279extern "C"
9280{
9281#endif
9282/* We use char because int might match the return type of a gcc2
9283 builtin and then its argument prototype would still apply. */
9284char $ac_func ();
9285/* The GNU C library defines this for functions which it implements
9286 to always fail with ENOSYS. Some functions are actually named
9287 something starting with __ and the normal name is an alias. */
9288#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9289choke me
9290#else
9291char (*f) () = $ac_func;
9292#endif
9293#ifdef __cplusplus
9294}
9295#endif
9296
9297int
9298main ()
9299{
9300return f != $ac_func;
9301 ;
9302 return 0;
9303}
9304_ACEOF
9305rm -f conftest.$ac_objext conftest$ac_exeext
9306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9307 (eval $ac_link) 2>conftest.er1
9308 ac_status=$?
9309 grep -v '^ *+' conftest.er1 >conftest.err
9310 rm -f conftest.er1
9311 cat conftest.err >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); } &&
9314 { ac_try='test -z "$ac_c_werror_flag"
9315 || test ! -s conftest.err'
9316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9317 (eval $ac_try) 2>&5
9318 ac_status=$?
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); }; } &&
9321 { ac_try='test -s conftest$ac_exeext'
9322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9323 (eval $ac_try) 2>&5
9324 ac_status=$?
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); }; }; then
9327 eval "$as_ac_var=yes"
9328else
9329 echo "$as_me: failed program was:" >&5
9330sed 's/^/| /' conftest.$ac_ext >&5
9331
9332eval "$as_ac_var=no"
9333fi
9334rm -f conftest.err conftest.$ac_objext \
9335 conftest$ac_exeext conftest.$ac_ext
9336fi
9337echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9338echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9339if test `eval echo '${'$as_ac_var'}'` = yes; then
9340 cat >>confdefs.h <<_ACEOF
9341#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9342_ACEOF
9343 break
9344fi
9345done
9346
9347
9348
9349for ac_func in strrchr rindex
9350do
9351as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9352echo "$as_me:$LINENO: checking for $ac_func" >&5
9353echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9354if eval "test \"\${$as_ac_var+set}\" = set"; then
9355 echo $ECHO_N "(cached) $ECHO_C" >&6
9356else
9357 cat >conftest.$ac_ext <<_ACEOF
9358/* confdefs.h. */
9359_ACEOF
9360cat confdefs.h >>conftest.$ac_ext
9361cat >>conftest.$ac_ext <<_ACEOF
9362/* end confdefs.h. */
9363/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9365#define $ac_func innocuous_$ac_func
9366
9367/* System header to define __stub macros and hopefully few prototypes,
9368 which can conflict with char $ac_func (); below.
9369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9370 <limits.h> exists even on freestanding compilers. */
9371
9372#ifdef __STDC__
9373# include <limits.h>
9374#else
9375# include <assert.h>
9376#endif
9377
9378#undef $ac_func
9379
9380/* Override any gcc2 internal prototype to avoid an error. */
9381#ifdef __cplusplus
9382extern "C"
9383{
9384#endif
9385/* We use char because int might match the return type of a gcc2
9386 builtin and then its argument prototype would still apply. */
9387char $ac_func ();
9388/* The GNU C library defines this for functions which it implements
9389 to always fail with ENOSYS. Some functions are actually named
9390 something starting with __ and the normal name is an alias. */
9391#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9392choke me
9393#else
9394char (*f) () = $ac_func;
9395#endif
9396#ifdef __cplusplus
9397}
9398#endif
9399
9400int
9401main ()
9402{
9403return f != $ac_func;
9404 ;
9405 return 0;
9406}
9407_ACEOF
9408rm -f conftest.$ac_objext conftest$ac_exeext
9409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9410 (eval $ac_link) 2>conftest.er1
9411 ac_status=$?
9412 grep -v '^ *+' conftest.er1 >conftest.err
9413 rm -f conftest.er1
9414 cat conftest.err >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); } &&
9417 { ac_try='test -z "$ac_c_werror_flag"
9418 || test ! -s conftest.err'
9419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420 (eval $ac_try) 2>&5
9421 ac_status=$?
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); }; } &&
9424 { ac_try='test -s conftest$ac_exeext'
9425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9426 (eval $ac_try) 2>&5
9427 ac_status=$?
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); }; }; then
9430 eval "$as_ac_var=yes"
9431else
9432 echo "$as_me: failed program was:" >&5
9433sed 's/^/| /' conftest.$ac_ext >&5
9434
9435eval "$as_ac_var=no"
9436fi
9437rm -f conftest.err conftest.$ac_objext \
9438 conftest$ac_exeext conftest.$ac_ext
9439fi
9440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9441echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9442if test `eval echo '${'$as_ac_var'}'` = yes; then
9443 cat >>confdefs.h <<_ACEOF
9444#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9445_ACEOF
9446 break
9447fi
9448done
9449
9450
9451
9452for ac_func in memcpy bcopy
9453do
9454as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9455echo "$as_me:$LINENO: checking for $ac_func" >&5
9456echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9457if eval "test \"\${$as_ac_var+set}\" = set"; then
9458 echo $ECHO_N "(cached) $ECHO_C" >&6
9459else
9460 cat >conftest.$ac_ext <<_ACEOF
9461/* confdefs.h. */
9462_ACEOF
9463cat confdefs.h >>conftest.$ac_ext
9464cat >>conftest.$ac_ext <<_ACEOF
9465/* end confdefs.h. */
9466/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9468#define $ac_func innocuous_$ac_func
9469
9470/* System header to define __stub macros and hopefully few prototypes,
9471 which can conflict with char $ac_func (); below.
9472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9473 <limits.h> exists even on freestanding compilers. */
9474
9475#ifdef __STDC__
9476# include <limits.h>
9477#else
9478# include <assert.h>
9479#endif
9480
9481#undef $ac_func
9482
9483/* Override any gcc2 internal prototype to avoid an error. */
9484#ifdef __cplusplus
9485extern "C"
9486{
9487#endif
9488/* We use char because int might match the return type of a gcc2
9489 builtin and then its argument prototype would still apply. */
9490char $ac_func ();
9491/* The GNU C library defines this for functions which it implements
9492 to always fail with ENOSYS. Some functions are actually named
9493 something starting with __ and the normal name is an alias. */
9494#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9495choke me
9496#else
9497char (*f) () = $ac_func;
9498#endif
9499#ifdef __cplusplus
9500}
9501#endif
9502
9503int
9504main ()
9505{
9506return f != $ac_func;
9507 ;
9508 return 0;
9509}
9510_ACEOF
9511rm -f conftest.$ac_objext conftest$ac_exeext
9512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9513 (eval $ac_link) 2>conftest.er1
9514 ac_status=$?
9515 grep -v '^ *+' conftest.er1 >conftest.err
9516 rm -f conftest.er1
9517 cat conftest.err >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); } &&
9520 { ac_try='test -z "$ac_c_werror_flag"
9521 || test ! -s conftest.err'
9522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523 (eval $ac_try) 2>&5
9524 ac_status=$?
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; } &&
9527 { ac_try='test -s conftest$ac_exeext'
9528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 (eval $ac_try) 2>&5
9530 ac_status=$?
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); }; }; then
9533 eval "$as_ac_var=yes"
9534else
9535 echo "$as_me: failed program was:" >&5
9536sed 's/^/| /' conftest.$ac_ext >&5
9537
9538eval "$as_ac_var=no"
9539fi
9540rm -f conftest.err conftest.$ac_objext \
9541 conftest$ac_exeext conftest.$ac_ext
9542fi
9543echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9544echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9545if test `eval echo '${'$as_ac_var'}'` = yes; then
9546 cat >>confdefs.h <<_ACEOF
9547#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9548_ACEOF
9549 break
9550fi
9551done
9552
9553
9554
9555for ac_func in memmove strcmp
9556do
9557as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9558echo "$as_me:$LINENO: checking for $ac_func" >&5
9559echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9560if eval "test \"\${$as_ac_var+set}\" = set"; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9562else
9563 cat >conftest.$ac_ext <<_ACEOF
9564/* confdefs.h. */
9565_ACEOF
9566cat confdefs.h >>conftest.$ac_ext
9567cat >>conftest.$ac_ext <<_ACEOF
9568/* end confdefs.h. */
9569/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9571#define $ac_func innocuous_$ac_func
9572
9573/* System header to define __stub macros and hopefully few prototypes,
9574 which can conflict with char $ac_func (); below.
9575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9576 <limits.h> exists even on freestanding compilers. */
9577
9578#ifdef __STDC__
9579# include <limits.h>
9580#else
9581# include <assert.h>
9582#endif
9583
9584#undef $ac_func
9585
9586/* Override any gcc2 internal prototype to avoid an error. */
9587#ifdef __cplusplus
9588extern "C"
9589{
9590#endif
9591/* We use char because int might match the return type of a gcc2
9592 builtin and then its argument prototype would still apply. */
9593char $ac_func ();
9594/* The GNU C library defines this for functions which it implements
9595 to always fail with ENOSYS. Some functions are actually named
9596 something starting with __ and the normal name is an alias. */
9597#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9598choke me
9599#else
9600char (*f) () = $ac_func;
9601#endif
9602#ifdef __cplusplus
9603}
9604#endif
9605
9606int
9607main ()
9608{
9609return f != $ac_func;
9610 ;
9611 return 0;
9612}
9613_ACEOF
9614rm -f conftest.$ac_objext conftest$ac_exeext
9615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9616 (eval $ac_link) 2>conftest.er1
9617 ac_status=$?
9618 grep -v '^ *+' conftest.er1 >conftest.err
9619 rm -f conftest.er1
9620 cat conftest.err >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } &&
9623 { ac_try='test -z "$ac_c_werror_flag"
9624 || test ! -s conftest.err'
9625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626 (eval $ac_try) 2>&5
9627 ac_status=$?
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); }; } &&
9630 { ac_try='test -s conftest$ac_exeext'
9631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9632 (eval $ac_try) 2>&5
9633 ac_status=$?
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); }; }; then
9636 eval "$as_ac_var=yes"
9637else
9638 echo "$as_me: failed program was:" >&5
9639sed 's/^/| /' conftest.$ac_ext >&5
9640
9641eval "$as_ac_var=no"
9642fi
9643rm -f conftest.err conftest.$ac_objext \
9644 conftest$ac_exeext conftest.$ac_ext
9645fi
9646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9647echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9648if test `eval echo '${'$as_ac_var'}'` = yes; then
9649 cat >>confdefs.h <<_ACEOF
9650#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9651_ACEOF
9652
9653fi
9654done
9655
9656
9657
9658
9659for ac_func in closedir opendir readdir
9660do
9661as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9662echo "$as_me:$LINENO: checking for $ac_func" >&5
9663echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9664if eval "test \"\${$as_ac_var+set}\" = set"; then
9665 echo $ECHO_N "(cached) $ECHO_C" >&6
9666else
9667 cat >conftest.$ac_ext <<_ACEOF
9668/* confdefs.h. */
9669_ACEOF
9670cat confdefs.h >>conftest.$ac_ext
9671cat >>conftest.$ac_ext <<_ACEOF
9672/* end confdefs.h. */
9673/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9675#define $ac_func innocuous_$ac_func
9676
9677/* System header to define __stub macros and hopefully few prototypes,
9678 which can conflict with char $ac_func (); below.
9679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9680 <limits.h> exists even on freestanding compilers. */
9681
9682#ifdef __STDC__
9683# include <limits.h>
9684#else
9685# include <assert.h>
9686#endif
9687
9688#undef $ac_func
9689
9690/* Override any gcc2 internal prototype to avoid an error. */
9691#ifdef __cplusplus
9692extern "C"
9693{
9694#endif
9695/* We use char because int might match the return type of a gcc2
9696 builtin and then its argument prototype would still apply. */
9697char $ac_func ();
9698/* The GNU C library defines this for functions which it implements
9699 to always fail with ENOSYS. Some functions are actually named
9700 something starting with __ and the normal name is an alias. */
9701#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9702choke me
9703#else
9704char (*f) () = $ac_func;
9705#endif
9706#ifdef __cplusplus
9707}
9708#endif
9709
9710int
9711main ()
9712{
9713return f != $ac_func;
9714 ;
9715 return 0;
9716}
9717_ACEOF
9718rm -f conftest.$ac_objext conftest$ac_exeext
9719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9720 (eval $ac_link) 2>conftest.er1
9721 ac_status=$?
9722 grep -v '^ *+' conftest.er1 >conftest.err
9723 rm -f conftest.er1
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -z "$ac_c_werror_flag"
9728 || test ! -s conftest.err'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730 (eval $ac_try) 2>&5
9731 ac_status=$?
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; } &&
9734 { ac_try='test -s conftest$ac_exeext'
9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736 (eval $ac_try) 2>&5
9737 ac_status=$?
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; }; then
9740 eval "$as_ac_var=yes"
9741else
9742 echo "$as_me: failed program was:" >&5
9743sed 's/^/| /' conftest.$ac_ext >&5
9744
9745eval "$as_ac_var=no"
9746fi
9747rm -f conftest.err conftest.$ac_objext \
9748 conftest$ac_exeext conftest.$ac_ext
9749fi
9750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9751echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9752if test `eval echo '${'$as_ac_var'}'` = yes; then
9753 cat >>confdefs.h <<_ACEOF
9754#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9755_ACEOF
9756
9757fi
9758done
9759
9760
9761# Check whether --enable-shared or --disable-shared was given.
9762if test "${enable_shared+set}" = set; then
9763 enableval="$enable_shared"
9764 p=${PACKAGE-default}
9765 case $enableval in
9766 yes) enable_shared=yes ;;
9767 no) enable_shared=no ;;
9768 *)
9769 enable_shared=no
9770 # Look at the argument we got. We use all the common list separators.
9771 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9772 for pkg in $enableval; do
9773 IFS="$lt_save_ifs"
9774 if test "X$pkg" = "X$p"; then
9775 enable_shared=yes
9776 fi
9777 done
9778 IFS="$lt_save_ifs"
9779 ;;
9780 esac
9781else
9782 enable_shared=yes
9783fi;
9784
9785# Check whether --enable-static or --disable-static was given.
9786if test "${enable_static+set}" = set; then
9787 enableval="$enable_static"
9788 p=${PACKAGE-default}
9789 case $enableval in
9790 yes) enable_static=yes ;;
9791 no) enable_static=no ;;
9792 *)
9793 enable_static=no
9794 # Look at the argument we got. We use all the common list separators.
9795 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9796 for pkg in $enableval; do
9797 IFS="$lt_save_ifs"
9798 if test "X$pkg" = "X$p"; then
9799 enable_static=yes
9800 fi
9801 done
9802 IFS="$lt_save_ifs"
9803 ;;
9804 esac
9805else
9806 enable_static=yes
9807fi;
9808
9809# Check whether --enable-fast-install or --disable-fast-install was given.
9810if test "${enable_fast_install+set}" = set; then
9811 enableval="$enable_fast_install"
9812 p=${PACKAGE-default}
9813 case $enableval in
9814 yes) enable_fast_install=yes ;;
9815 no) enable_fast_install=no ;;
9816 *)
9817 enable_fast_install=no
9818 # Look at the argument we got. We use all the common list separators.
9819 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9820 for pkg in $enableval; do
9821 IFS="$lt_save_ifs"
9822 if test "X$pkg" = "X$p"; then
9823 enable_fast_install=yes
9824 fi
9825 done
9826 IFS="$lt_save_ifs"
9827 ;;
9828 esac
9829else
9830 enable_fast_install=yes
9831fi;
9832
9833echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9834echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9835if test "${lt_cv_path_SED+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9837else
9838 # Loop through the user's path and test for sed and gsed.
9839# Then use that list of sed's as ones to test for truncation.
9840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9841for as_dir in $PATH
9842do
9843 IFS=$as_save_IFS
9844 test -z "$as_dir" && as_dir=.
9845 for lt_ac_prog in sed gsed; do
9846 for ac_exec_ext in '' $ac_executable_extensions; do
9847 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9848 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9849 fi
9850 done
9851 done
9852done
9853lt_ac_max=0
9854lt_ac_count=0
9855# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9856# along with /bin/sed that truncates output.
9857for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9858 test ! -f $lt_ac_sed && break
9859 cat /dev/null > conftest.in
9860 lt_ac_count=0
9861 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9862 # Check for GNU sed and select it if it is found.
9863 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9864 lt_cv_path_SED=$lt_ac_sed
9865 break
9866 fi
9867 while true; do
9868 cat conftest.in conftest.in >conftest.tmp
9869 mv conftest.tmp conftest.in
9870 cp conftest.in conftest.nl
9871 echo >>conftest.nl
9872 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9873 cmp -s conftest.out conftest.nl || break
9874 # 10000 chars as input seems more than enough
9875 test $lt_ac_count -gt 10 && break
9876 lt_ac_count=`expr $lt_ac_count + 1`
9877 if test $lt_ac_count -gt $lt_ac_max; then
9878 lt_ac_max=$lt_ac_count
9879 lt_cv_path_SED=$lt_ac_sed
9880 fi
9881 done
9882done
9883
9884fi
9885
9886SED=$lt_cv_path_SED
9887echo "$as_me:$LINENO: result: $SED" >&5
9888echo "${ECHO_T}$SED" >&6
9889
9890
9891# Check whether --with-gnu-ld or --without-gnu-ld was given.
9892if test "${with_gnu_ld+set}" = set; then
9893 withval="$with_gnu_ld"
9894 test "$withval" = no || with_gnu_ld=yes
9895else
9896 with_gnu_ld=no
9897fi;
9898ac_prog=ld
9899if test "$GCC" = yes; then
9900 # Check if gcc -print-prog-name=ld gives a path.
9901 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9902echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9903 case $host in
9904 *-*-mingw*)
9905 # gcc leaves a trailing carriage return which upsets mingw
9906 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9907 *)
9908 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9909 esac
9910 case $ac_prog in
9911 # Accept absolute paths.
9912 [\\/]* | ?:[\\/]*)
9913 re_direlt='/[^/][^/]*/\.\./'
9914 # Canonicalize the pathname of ld
9915 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9916 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9917 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9918 done
9919 test -z "$LD" && LD="$ac_prog"
9920 ;;
9921 "")
9922 # If it fails, then pretend we aren't using GCC.
9923 ac_prog=ld
9924 ;;
9925 *)
9926 # If it is relative, then search for the first ld in PATH.
9927 with_gnu_ld=unknown
9928 ;;
9929 esac
9930elif test "$with_gnu_ld" = yes; then
9931 echo "$as_me:$LINENO: checking for GNU ld" >&5
9932echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9933else
9934 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9935echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9936fi
9937if test "${lt_cv_path_LD+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9939else
9940 if test -z "$LD"; then
9941 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9942 for ac_dir in $PATH; do
9943 IFS="$lt_save_ifs"
9944 test -z "$ac_dir" && ac_dir=.
9945 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9946 lt_cv_path_LD="$ac_dir/$ac_prog"
9947 # Check to see if the program is GNU ld. I'd rather use --version,
9948 # but apparently some GNU ld's only accept -v.
9949 # Break only if it was the GNU/non-GNU ld that we prefer.
9950 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9951 *GNU* | *'with BFD'*)
9952 test "$with_gnu_ld" != no && break
9953 ;;
9954 *)
9955 test "$with_gnu_ld" != yes && break
9956 ;;
9957 esac
9958 fi
9959 done
9960 IFS="$lt_save_ifs"
9961else
9962 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9963fi
9964fi
9965
9966LD="$lt_cv_path_LD"
9967if test -n "$LD"; then
9968 echo "$as_me:$LINENO: result: $LD" >&5
9969echo "${ECHO_T}$LD" >&6
9970else
9971 echo "$as_me:$LINENO: result: no" >&5
9972echo "${ECHO_T}no" >&6
9973fi
9974test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9975echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9976 { (exit 1); exit 1; }; }
9977echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9978echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9979if test "${lt_cv_prog_gnu_ld+set}" = set; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9981else
9982 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9983case `$LD -v 2>&1 </dev/null` in
9984*GNU* | *'with BFD'*)
9985 lt_cv_prog_gnu_ld=yes
9986 ;;
9987*)
9988 lt_cv_prog_gnu_ld=no
9989 ;;
9990esac
9991fi
9992echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9993echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9994with_gnu_ld=$lt_cv_prog_gnu_ld
9995
9996
9997echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9998echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9999if test "${lt_cv_ld_reload_flag+set}" = set; then
10000 echo $ECHO_N "(cached) $ECHO_C" >&6
10001else
10002 lt_cv_ld_reload_flag='-r'
10003fi
10004echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10005echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10006reload_flag=$lt_cv_ld_reload_flag
10007case $reload_flag in
10008"" | " "*) ;;
10009*) reload_flag=" $reload_flag" ;;
10010esac
10011reload_cmds='$LD$reload_flag -o $output$reload_objs'
10012case $host_os in
10013 darwin*)
10014 if test "$GCC" = yes; then
10015 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10016 else
10017 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10018 fi
10019 ;;
10020esac
10021
10022echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10023echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10024if test "${lt_cv_deplibs_check_method+set}" = set; then
10025 echo $ECHO_N "(cached) $ECHO_C" >&6
10026else
10027 lt_cv_file_magic_cmd='$MAGIC_CMD'
10028lt_cv_file_magic_test_file=
10029lt_cv_deplibs_check_method='unknown'
10030# Need to set the preceding variable on all platforms that support
10031# interlibrary dependencies.
10032# 'none' -- dependencies not supported.
10033# `unknown' -- same as none, but documents that we really don't know.
10034# 'pass_all' -- all dependencies passed with no checks.
10035# 'test_compile' -- check by making test program.
10036# 'file_magic [[regex]]' -- check by looking for files in library path
10037# which responds to the $file_magic_cmd with a given extended regex.
10038# If you have `file' or equivalent on your system and you're not sure
10039# whether `pass_all' will *always* work, you probably want this one.
10040
10041case $host_os in
10042aix4* | aix5*)
10043 lt_cv_deplibs_check_method=pass_all
10044 ;;
10045
10046beos*)
10047 lt_cv_deplibs_check_method=pass_all
10048 ;;
10049
10050bsdi[45]*)
10051 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10052 lt_cv_file_magic_cmd='/usr/bin/file -L'
10053 lt_cv_file_magic_test_file=/shlib/libc.so
10054 ;;
10055
10056cygwin*)
10057 # func_win32_libid is a shell function defined in ltmain.sh
10058 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10059 lt_cv_file_magic_cmd='func_win32_libid'
10060 ;;
10061
10062mingw* | pw32*)
10063 # Base MSYS/MinGW do not provide the 'file' command needed by
10064 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10065 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10066 lt_cv_file_magic_cmd='$OBJDUMP -f'
10067 ;;
10068
10069darwin* | rhapsody*)
10070 lt_cv_deplibs_check_method=pass_all
10071 ;;
10072
10073freebsd* | kfreebsd*-gnu)
10074 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10075 case $host_cpu in
10076 i*86 )
10077 # Not sure whether the presence of OpenBSD here was a mistake.
10078 # Let's accept both of them until this is cleared up.
10079 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10080 lt_cv_file_magic_cmd=/usr/bin/file
10081 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10082 ;;
10083 esac
10084 else
10085 lt_cv_deplibs_check_method=pass_all
10086 fi
10087 ;;
10088
10089gnu*)
10090 lt_cv_deplibs_check_method=pass_all
10091 ;;
10092
10093hpux10.20* | hpux11*)
10094 lt_cv_file_magic_cmd=/usr/bin/file
10095 case "$host_cpu" in
10096 ia64*)
10097 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10098 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10099 ;;
10100 hppa*64*)
10101 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]'
10102 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10103 ;;
10104 *)
10105 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10106 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10107 ;;
10108 esac
10109 ;;
10110
10111irix5* | irix6* | nonstopux*)
10112 case $LD in
10113 *-32|*"-32 ") libmagic=32-bit;;
10114 *-n32|*"-n32 ") libmagic=N32;;
10115 *-64|*"-64 ") libmagic=64-bit;;
10116 *) libmagic=never-match;;
10117 esac
10118 lt_cv_deplibs_check_method=pass_all
10119 ;;
10120
10121# This must be Linux ELF.
10122linux*)
10123 lt_cv_deplibs_check_method=pass_all
10124 ;;
10125
10126netbsd*)
10127 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10128 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10129 else
10130 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10131 fi
10132 ;;
10133
10134newos6*)
10135 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10136 lt_cv_file_magic_cmd=/usr/bin/file
10137 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10138 ;;
10139
10140nto-qnx*)
10141 lt_cv_deplibs_check_method=unknown
10142 ;;
10143
10144openbsd*)
10145 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10146 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10147 else
10148 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10149 fi
10150 ;;
10151
10152osf3* | osf4* | osf5*)
10153 lt_cv_deplibs_check_method=pass_all
10154 ;;
10155
10156sco3.2v5*)
10157 lt_cv_deplibs_check_method=pass_all
10158 ;;
10159
10160solaris*)
10161 lt_cv_deplibs_check_method=pass_all
10162 ;;
10163
10164sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10165 case $host_vendor in
10166 motorola)
10167 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]'
10168 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10169 ;;
10170 ncr)
10171 lt_cv_deplibs_check_method=pass_all
10172 ;;
10173 sequent)
10174 lt_cv_file_magic_cmd='/bin/file'
10175 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10176 ;;
10177 sni)
10178 lt_cv_file_magic_cmd='/bin/file'
10179 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10180 lt_cv_file_magic_test_file=/lib/libc.so
10181 ;;
10182 siemens)
10183 lt_cv_deplibs_check_method=pass_all
10184 ;;
10185 esac
10186 ;;
10187
10188sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10189 lt_cv_deplibs_check_method=pass_all
10190 ;;
10191esac
10192
10193fi
10194echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10195echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10196file_magic_cmd=$lt_cv_file_magic_cmd
10197deplibs_check_method=$lt_cv_deplibs_check_method
10198test -z "$deplibs_check_method" && deplibs_check_method=unknown
10199
10200
10201
10202# If no C compiler was specified, use CC.
10203LTCC=${LTCC-"$CC"}
10204
10205# Allow CC to be a program name with arguments.
10206compiler=$CC
10207
10208# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10209if test "${enable_libtool_lock+set}" = set; then
10210 enableval="$enable_libtool_lock"
10211
10212fi;
10213test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10214
10215# Some flags need to be propagated to the compiler or linker for good
10216# libtool support.
10217case $host in
10218ia64-*-hpux*)
10219 # Find out which ABI we are using.
10220 echo 'int i;' > conftest.$ac_ext
10221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10222 (eval $ac_compile) 2>&5
10223 ac_status=$?
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; then
10226 case `/usr/bin/file conftest.$ac_objext` in
10227 *ELF-32*)
10228 HPUX_IA64_MODE="32"
10229 ;;
10230 *ELF-64*)
10231 HPUX_IA64_MODE="64"
10232 ;;
10233 esac
10234 fi
10235 rm -rf conftest*
10236 ;;
10237*-*-irix6*)
10238 # Find out which ABI we are using.
Reid Spencer95ed8432004-12-23 06:22:33 +000010239 echo '#line 10239 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10241 (eval $ac_compile) 2>&5
10242 ac_status=$?
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); }; then
10245 if test "$lt_cv_prog_gnu_ld" = yes; then
10246 case `/usr/bin/file conftest.$ac_objext` in
10247 *32-bit*)
10248 LD="${LD-ld} -melf32bsmip"
10249 ;;
10250 *N32*)
10251 LD="${LD-ld} -melf32bmipn32"
10252 ;;
10253 *64-bit*)
10254 LD="${LD-ld} -melf64bmip"
10255 ;;
10256 esac
10257 else
10258 case `/usr/bin/file conftest.$ac_objext` in
10259 *32-bit*)
10260 LD="${LD-ld} -32"
10261 ;;
10262 *N32*)
10263 LD="${LD-ld} -n32"
10264 ;;
10265 *64-bit*)
10266 LD="${LD-ld} -64"
10267 ;;
10268 esac
10269 fi
10270 fi
10271 rm -rf conftest*
10272 ;;
10273
10274x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10275 # Find out which ABI we are using.
10276 echo 'int i;' > conftest.$ac_ext
10277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10278 (eval $ac_compile) 2>&5
10279 ac_status=$?
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; then
10282 case "`/usr/bin/file conftest.o`" in
10283 *32-bit*)
10284 case $host in
10285 x86_64-*linux*)
10286 LD="${LD-ld} -m elf_i386"
10287 ;;
10288 ppc64-*linux*|powerpc64-*linux*)
10289 LD="${LD-ld} -m elf32ppclinux"
10290 ;;
10291 s390x-*linux*)
10292 LD="${LD-ld} -m elf_s390"
10293 ;;
10294 sparc64-*linux*)
10295 LD="${LD-ld} -m elf32_sparc"
10296 ;;
10297 esac
10298 ;;
10299 *64-bit*)
10300 case $host in
10301 x86_64-*linux*)
10302 LD="${LD-ld} -m elf_x86_64"
10303 ;;
10304 ppc*-*linux*|powerpc*-*linux*)
10305 LD="${LD-ld} -m elf64ppc"
10306 ;;
10307 s390*-*linux*)
10308 LD="${LD-ld} -m elf64_s390"
10309 ;;
10310 sparc*-*linux*)
10311 LD="${LD-ld} -m elf64_sparc"
10312 ;;
10313 esac
10314 ;;
10315 esac
10316 fi
10317 rm -rf conftest*
10318 ;;
10319
10320*-*-sco3.2v5*)
10321 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10322 SAVE_CFLAGS="$CFLAGS"
10323 CFLAGS="$CFLAGS -belf"
10324 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10325echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10326if test "${lt_cv_cc_needs_belf+set}" = set; then
10327 echo $ECHO_N "(cached) $ECHO_C" >&6
10328else
10329 ac_ext=c
10330ac_cpp='$CPP $CPPFLAGS'
10331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10333ac_compiler_gnu=$ac_cv_c_compiler_gnu
10334
10335 cat >conftest.$ac_ext <<_ACEOF
10336/* confdefs.h. */
10337_ACEOF
10338cat confdefs.h >>conftest.$ac_ext
10339cat >>conftest.$ac_ext <<_ACEOF
10340/* end confdefs.h. */
10341
10342_ACEOF
10343rm -f conftest.$ac_objext conftest$ac_exeext
10344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10345 (eval $ac_link) 2>conftest.er1
10346 ac_status=$?
10347 grep -v '^ *+' conftest.er1 >conftest.err
10348 rm -f conftest.er1
10349 cat conftest.err >&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } &&
10352 { ac_try='test -z "$ac_c_werror_flag"
10353 || test ! -s conftest.err'
10354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10355 (eval $ac_try) 2>&5
10356 ac_status=$?
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); }; } &&
10359 { ac_try='test -s conftest$ac_exeext'
10360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361 (eval $ac_try) 2>&5
10362 ac_status=$?
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); }; }; then
10365 lt_cv_cc_needs_belf=yes
10366else
10367 echo "$as_me: failed program was:" >&5
10368sed 's/^/| /' conftest.$ac_ext >&5
10369
10370lt_cv_cc_needs_belf=no
10371fi
10372rm -f conftest.err conftest.$ac_objext \
10373 conftest$ac_exeext conftest.$ac_ext
10374 ac_ext=c
10375ac_cpp='$CPP $CPPFLAGS'
10376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10378ac_compiler_gnu=$ac_cv_c_compiler_gnu
10379
10380fi
10381echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10382echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10383 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10384 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10385 CFLAGS="$SAVE_CFLAGS"
10386 fi
10387 ;;
10388
10389esac
10390
10391need_locks="$enable_libtool_lock"
10392
10393
Reid Spencer2706f8c2004-09-19 23:53:36 +000010394
10395
10396if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10397 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10398 (test "X$CXX" != "Xg++"))) ; then
10399 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010400ac_cpp='$CXXCPP $CPPFLAGS'
10401ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10402ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10403ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10404echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10405echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10406if test -z "$CXXCPP"; then
10407 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010408 echo $ECHO_N "(cached) $ECHO_C" >&6
10409else
John Criswell47fdd832003-07-14 16:52:07 +000010410 # Double quotes because CXXCPP needs to be expanded
10411 for CXXCPP in "$CXX -E" "/lib/cpp"
10412 do
10413 ac_preproc_ok=false
10414for ac_cxx_preproc_warn_flag in '' yes
10415do
10416 # Use a header file that comes with gcc, so configuring glibc
10417 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010418 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10419 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010420 # On the NeXT, cc -E runs the code through the compiler's parser,
10421 # not just through cpp. "Syntax error" is here to catch this case.
10422 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010423/* confdefs.h. */
10424_ACEOF
10425cat confdefs.h >>conftest.$ac_ext
10426cat >>conftest.$ac_ext <<_ACEOF
10427/* end confdefs.h. */
10428#ifdef __STDC__
10429# include <limits.h>
10430#else
10431# include <assert.h>
10432#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010433 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010434_ACEOF
10435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10437 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010438 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010439 rm -f conftest.er1
10440 cat conftest.err >&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } >/dev/null; then
10443 if test -s conftest.err; then
10444 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010445 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010446 else
John Criswell47fdd832003-07-14 16:52:07 +000010447 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010448 fi
John Criswell47fdd832003-07-14 16:52:07 +000010449else
10450 ac_cpp_err=yes
10451fi
10452if test -z "$ac_cpp_err"; then
10453 :
10454else
10455 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010456sed 's/^/| /' conftest.$ac_ext >&5
10457
John Criswell47fdd832003-07-14 16:52:07 +000010458 # Broken: fails on valid input.
10459continue
10460fi
10461rm -f conftest.err conftest.$ac_ext
10462
10463 # OK, works on sane cases. Now check whether non-existent headers
10464 # can be detected and how.
10465 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010466/* confdefs.h. */
10467_ACEOF
10468cat confdefs.h >>conftest.$ac_ext
10469cat >>conftest.$ac_ext <<_ACEOF
10470/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010471#include <ac_nonexistent.h>
10472_ACEOF
10473if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10475 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010476 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010477 rm -f conftest.er1
10478 cat conftest.err >&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } >/dev/null; then
10481 if test -s conftest.err; then
10482 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010483 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010484 else
10485 ac_cpp_err=
10486 fi
10487else
10488 ac_cpp_err=yes
10489fi
10490if test -z "$ac_cpp_err"; then
10491 # Broken: success on invalid input.
10492continue
10493else
10494 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010495sed 's/^/| /' conftest.$ac_ext >&5
10496
John Criswell47fdd832003-07-14 16:52:07 +000010497 # Passes both tests.
10498ac_preproc_ok=:
10499break
10500fi
10501rm -f conftest.err conftest.$ac_ext
10502
10503done
10504# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10505rm -f conftest.err conftest.$ac_ext
10506if $ac_preproc_ok; then
10507 break
John Criswell7a73b802003-06-30 21:59:07 +000010508fi
10509
John Criswell47fdd832003-07-14 16:52:07 +000010510 done
10511 ac_cv_prog_CXXCPP=$CXXCPP
10512
10513fi
10514 CXXCPP=$ac_cv_prog_CXXCPP
10515else
10516 ac_cv_prog_CXXCPP=$CXXCPP
10517fi
10518echo "$as_me:$LINENO: result: $CXXCPP" >&5
10519echo "${ECHO_T}$CXXCPP" >&6
10520ac_preproc_ok=false
10521for ac_cxx_preproc_warn_flag in '' yes
10522do
10523 # Use a header file that comes with gcc, so configuring glibc
10524 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10526 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010527 # On the NeXT, cc -E runs the code through the compiler's parser,
10528 # not just through cpp. "Syntax error" is here to catch this case.
10529 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010530/* confdefs.h. */
10531_ACEOF
10532cat confdefs.h >>conftest.$ac_ext
10533cat >>conftest.$ac_ext <<_ACEOF
10534/* end confdefs.h. */
10535#ifdef __STDC__
10536# include <limits.h>
10537#else
10538# include <assert.h>
10539#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010540 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010541_ACEOF
10542if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10544 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010545 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010546 rm -f conftest.er1
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } >/dev/null; then
10550 if test -s conftest.err; then
10551 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010552 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010553 else
10554 ac_cpp_err=
10555 fi
10556else
10557 ac_cpp_err=yes
10558fi
10559if test -z "$ac_cpp_err"; then
10560 :
10561else
10562 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010563sed 's/^/| /' conftest.$ac_ext >&5
10564
John Criswell47fdd832003-07-14 16:52:07 +000010565 # Broken: fails on valid input.
10566continue
10567fi
10568rm -f conftest.err conftest.$ac_ext
10569
10570 # OK, works on sane cases. Now check whether non-existent headers
10571 # can be detected and how.
10572 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010573/* confdefs.h. */
10574_ACEOF
10575cat confdefs.h >>conftest.$ac_ext
10576cat >>conftest.$ac_ext <<_ACEOF
10577/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010578#include <ac_nonexistent.h>
10579_ACEOF
10580if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10582 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010583 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010584 rm -f conftest.er1
10585 cat conftest.err >&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } >/dev/null; then
10588 if test -s conftest.err; then
10589 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010590 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010591 else
10592 ac_cpp_err=
10593 fi
10594else
10595 ac_cpp_err=yes
10596fi
10597if test -z "$ac_cpp_err"; then
10598 # Broken: success on invalid input.
10599continue
10600else
10601 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010602sed 's/^/| /' conftest.$ac_ext >&5
10603
John Criswell47fdd832003-07-14 16:52:07 +000010604 # Passes both tests.
10605ac_preproc_ok=:
10606break
10607fi
10608rm -f conftest.err conftest.$ac_ext
10609
10610done
10611# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10612rm -f conftest.err conftest.$ac_ext
10613if $ac_preproc_ok; then
10614 :
10615else
John Criswell0c38eaf2003-09-10 15:17:25 +000010616 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10617See \`config.log' for more details." >&5
10618echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10619See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010620 { (exit 1); exit 1; }; }
10621fi
10622
10623ac_ext=cc
10624ac_cpp='$CXXCPP $CPPFLAGS'
10625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10628
Reid Spencer2706f8c2004-09-19 23:53:36 +000010629fi
10630
John Criswell47fdd832003-07-14 16:52:07 +000010631
10632ac_ext=f
10633ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10634ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10635ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10636if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010637 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 +000010638 do
10639 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10640set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10641echo "$as_me:$LINENO: checking for $ac_word" >&5
10642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10643if test "${ac_cv_prog_F77+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10645else
10646 if test -n "$F77"; then
10647 ac_cv_prog_F77="$F77" # Let the user override the test.
10648else
10649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10650for as_dir in $PATH
10651do
10652 IFS=$as_save_IFS
10653 test -z "$as_dir" && as_dir=.
10654 for ac_exec_ext in '' $ac_executable_extensions; do
10655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10656 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10658 break 2
10659 fi
10660done
10661done
10662
10663fi
10664fi
10665F77=$ac_cv_prog_F77
10666if test -n "$F77"; then
10667 echo "$as_me:$LINENO: result: $F77" >&5
10668echo "${ECHO_T}$F77" >&6
10669else
10670 echo "$as_me:$LINENO: result: no" >&5
10671echo "${ECHO_T}no" >&6
10672fi
10673
10674 test -n "$F77" && break
10675 done
10676fi
10677if test -z "$F77"; then
10678 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010679 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 +000010680do
10681 # Extract the first word of "$ac_prog", so it can be a program name with args.
10682set dummy $ac_prog; ac_word=$2
10683echo "$as_me:$LINENO: checking for $ac_word" >&5
10684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10685if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10687else
10688 if test -n "$ac_ct_F77"; then
10689 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10690else
10691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10692for as_dir in $PATH
10693do
10694 IFS=$as_save_IFS
10695 test -z "$as_dir" && as_dir=.
10696 for ac_exec_ext in '' $ac_executable_extensions; do
10697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10698 ac_cv_prog_ac_ct_F77="$ac_prog"
10699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10700 break 2
10701 fi
10702done
10703done
10704
10705fi
10706fi
10707ac_ct_F77=$ac_cv_prog_ac_ct_F77
10708if test -n "$ac_ct_F77"; then
10709 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10710echo "${ECHO_T}$ac_ct_F77" >&6
10711else
10712 echo "$as_me:$LINENO: result: no" >&5
10713echo "${ECHO_T}no" >&6
10714fi
10715
10716 test -n "$ac_ct_F77" && break
10717done
10718
10719 F77=$ac_ct_F77
10720fi
10721
10722
10723# Provide some information about the compiler.
Reid Spencer95ed8432004-12-23 06:22:33 +000010724echo "$as_me:10724:" \
John Criswell47fdd832003-07-14 16:52:07 +000010725 "checking for Fortran 77 compiler version" >&5
10726ac_compiler=`set X $ac_compile; echo $2`
10727{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10728 (eval $ac_compiler --version </dev/null >&5) 2>&5
10729 ac_status=$?
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }
10732{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10733 (eval $ac_compiler -v </dev/null >&5) 2>&5
10734 ac_status=$?
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }
10737{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10738 (eval $ac_compiler -V </dev/null >&5) 2>&5
10739 ac_status=$?
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010742rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010743
10744# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010745# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010746ac_save_ext=$ac_ext
10747ac_ext=F
10748echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10749echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10750if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10752else
10753 cat >conftest.$ac_ext <<_ACEOF
10754 program main
10755#ifndef __GNUC__
10756 choke me
10757#endif
10758
10759 end
10760_ACEOF
10761rm -f conftest.$ac_objext
10762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010763 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010764 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010765 grep -v '^ *+' conftest.er1 >conftest.err
10766 rm -f conftest.er1
10767 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010770 { ac_try='test -z "$ac_f77_werror_flag"
10771 || test ! -s conftest.err'
10772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773 (eval $ac_try) 2>&5
10774 ac_status=$?
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; } &&
10777 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10780 ac_status=$?
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10783 ac_compiler_gnu=yes
10784else
10785 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010786sed 's/^/| /' conftest.$ac_ext >&5
10787
John Criswell47fdd832003-07-14 16:52:07 +000010788ac_compiler_gnu=no
10789fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010791ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10792
10793fi
10794echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10795echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10796ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000010797ac_test_FFLAGS=${FFLAGS+set}
10798ac_save_FFLAGS=$FFLAGS
10799FFLAGS=
10800echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10801echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10802if test "${ac_cv_prog_f77_g+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10804else
10805 FFLAGS=-g
10806cat >conftest.$ac_ext <<_ACEOF
10807 program main
10808
10809 end
10810_ACEOF
10811rm -f conftest.$ac_objext
10812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010813 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010814 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010815 grep -v '^ *+' conftest.er1 >conftest.err
10816 rm -f conftest.er1
10817 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010820 { ac_try='test -z "$ac_f77_werror_flag"
10821 || test ! -s conftest.err'
10822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823 (eval $ac_try) 2>&5
10824 ac_status=$?
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; } &&
10827 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10829 (eval $ac_try) 2>&5
10830 ac_status=$?
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; }; then
10833 ac_cv_prog_f77_g=yes
10834else
10835 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010836sed 's/^/| /' conftest.$ac_ext >&5
10837
John Criswell47fdd832003-07-14 16:52:07 +000010838ac_cv_prog_f77_g=no
10839fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010841
10842fi
10843echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10844echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10845if test "$ac_test_FFLAGS" = set; then
10846 FFLAGS=$ac_save_FFLAGS
10847elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010848 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010849 FFLAGS="-g -O2"
10850 else
10851 FFLAGS="-g"
10852 fi
10853else
Reid Spencer2706f8c2004-09-19 23:53:36 +000010854 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010855 FFLAGS="-O2"
10856 else
10857 FFLAGS=
10858 fi
10859fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010860
10861G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000010862ac_ext=c
10863ac_cpp='$CPP $CPPFLAGS'
10864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10866ac_compiler_gnu=$ac_cv_c_compiler_gnu
10867
10868
10869
10870# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10871
10872# find the maximum length of command line arguments
10873echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10874echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10875if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
10877else
10878 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000010879 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000010880
10881 case $build_os in
10882 msdosdjgpp*)
10883 # On DJGPP, this test can blow up pretty badly due to problems in libc
10884 # (any single argument exceeding 2000 bytes causes a buffer overrun
10885 # during glob expansion). Even if it were fixed, the result of this
10886 # check would be larger than it should be.
10887 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10888 ;;
10889
10890 gnu*)
10891 # Under GNU Hurd, this test is not required because there is
10892 # no limit to the length of command line arguments.
10893 # Libtool will interpret -1 as no limit whatsoever
10894 lt_cv_sys_max_cmd_len=-1;
10895 ;;
10896
10897 cygwin* | mingw*)
10898 # On Win9x/ME, this test blows up -- it succeeds, but takes
10899 # about 5 minutes as the teststring grows exponentially.
10900 # Worse, since 9x/ME are not pre-emptively multitasking,
10901 # you end up with a "frozen" computer, even though with patience
10902 # the test eventually succeeds (with a max line length of 256k).
10903 # Instead, let's just punt: use the minimum linelength reported by
10904 # all of the supported platforms: 8192 (on NT/2K/XP).
10905 lt_cv_sys_max_cmd_len=8192;
10906 ;;
10907
Reid Spencer2706f8c2004-09-19 23:53:36 +000010908 amigaos*)
10909 # On AmigaOS with pdksh, this test takes hours, literally.
10910 # So we just punt and use a minimum line length of 8192.
10911 lt_cv_sys_max_cmd_len=8192;
10912 ;;
10913
10914 netbsd* | freebsd* | openbsd* | darwin* )
10915 # This has been around since 386BSD, at least. Likely further.
10916 if test -x /sbin/sysctl; then
10917 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10918 elif test -x /usr/sbin/sysctl; then
10919 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10920 else
10921 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10922 fi
10923 # And add a safety zone
10924 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10925 ;;
10926
John Criswell47fdd832003-07-14 16:52:07 +000010927 *)
10928 # If test is not a shell built-in, we'll probably end up computing a
10929 # maximum length that is only half of the actual maximum length, but
10930 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010931 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10932 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10933 = "XX$teststring") >/dev/null 2>&1 &&
10934 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000010935 lt_cv_sys_max_cmd_len=$new_result &&
10936 test $i != 17 # 1/2 MB should be enough
10937 do
10938 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000010939 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000010940 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000010941 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000010942 # Add a significant safety factor because C++ compilers can tack on massive
10943 # amounts of additional arguments before passing them to the linker.
10944 # It appears as though 1/2 is a usable value.
10945 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10946 ;;
10947 esac
10948
10949fi
10950
10951if test -n $lt_cv_sys_max_cmd_len ; then
10952 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10953echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10954else
10955 echo "$as_me:$LINENO: result: none" >&5
10956echo "${ECHO_T}none" >&6
10957fi
10958
10959
10960
10961
10962# Check for command to grab the raw symbol name followed by C symbol from nm.
10963echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10964echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10965if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10967else
10968
10969# These are sane defaults that work on at least a few old systems.
10970# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10971
10972# Character class describing NM global symbol codes.
10973symcode='[BCDEGRST]'
10974
10975# Regexp to match symbols that can be accessed directly from C.
10976sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10977
10978# Transform the above into a raw symbol and a C symbol.
10979symxfrm='\1 \2\3 \3'
10980
10981# Transform an extracted symbol line into a proper C declaration
10982lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10983
10984# Transform an extracted symbol line into symbol name and symbol address
10985lt_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'"
10986
10987# Define system-specific variables.
10988case $host_os in
10989aix*)
10990 symcode='[BCDT]'
10991 ;;
10992cygwin* | mingw* | pw32*)
10993 symcode='[ABCDGISTW]'
10994 ;;
10995hpux*) # Its linker distinguishes data from code symbols
10996 if test "$host_cpu" = ia64; then
10997 symcode='[ABCDEGRST]'
10998 fi
10999 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11000 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'"
11001 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011002linux*)
11003 if test "$host_cpu" = ia64; then
11004 symcode='[ABCDGIRSTW]'
11005 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11006 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'"
11007 fi
11008 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011009irix* | nonstopux*)
11010 symcode='[BCDEGRST]'
11011 ;;
11012osf*)
11013 symcode='[BCDEGQRST]'
11014 ;;
11015solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011016 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000011017 ;;
11018sysv4)
11019 symcode='[DFNSTU]'
11020 ;;
11021esac
11022
11023# Handle CRLF in mingw tool chain
11024opt_cr=
11025case $build_os in
11026mingw*)
11027 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11028 ;;
11029esac
11030
11031# If we're using GNU nm, then use its standard symbol codes.
11032case `$NM -V 2>&1` in
11033*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011034 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000011035esac
11036
11037# Try without a prefix undercore, then with it.
11038for ac_symprfx in "" "_"; do
11039
11040 # Write the raw and C identifiers.
11041 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11042
11043 # Check to see that the pipe works correctly.
11044 pipe_works=no
11045
11046 rm -f conftest*
11047 cat > conftest.$ac_ext <<EOF
11048#ifdef __cplusplus
11049extern "C" {
11050#endif
11051char nm_test_var;
11052void nm_test_func(){}
11053#ifdef __cplusplus
11054}
11055#endif
11056int main(){nm_test_var='a';nm_test_func();return(0);}
11057EOF
11058
11059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11060 (eval $ac_compile) 2>&5
11061 ac_status=$?
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; then
11064 # Now try to grab the symbols.
11065 nlist=conftest.nm
11066 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11067 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11068 ac_status=$?
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); } && test -s "$nlist"; then
11071 # Try sorting and uniquifying the output.
11072 if sort "$nlist" | uniq > "$nlist"T; then
11073 mv -f "$nlist"T "$nlist"
11074 else
11075 rm -f "$nlist"T
11076 fi
11077
11078 # Make sure that we snagged all the symbols we need.
11079 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11080 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11081 cat <<EOF > conftest.$ac_ext
11082#ifdef __cplusplus
11083extern "C" {
11084#endif
11085
11086EOF
11087 # Now generate the symbol file.
11088 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11089
11090 cat <<EOF >> conftest.$ac_ext
11091#if defined (__STDC__) && __STDC__
11092# define lt_ptr_t void *
11093#else
11094# define lt_ptr_t char *
11095# define const
11096#endif
11097
11098/* The mapping between symbol names and symbols. */
11099const struct {
11100 const char *name;
11101 lt_ptr_t address;
11102}
11103lt_preloaded_symbols[] =
11104{
11105EOF
11106 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11107 cat <<\EOF >> conftest.$ac_ext
11108 {0, (lt_ptr_t) 0}
11109};
11110
11111#ifdef __cplusplus
11112}
11113#endif
11114EOF
11115 # Now try linking the two files.
11116 mv conftest.$ac_objext conftstm.$ac_objext
11117 lt_save_LIBS="$LIBS"
11118 lt_save_CFLAGS="$CFLAGS"
11119 LIBS="conftstm.$ac_objext"
11120 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11122 (eval $ac_link) 2>&5
11123 ac_status=$?
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11126 pipe_works=yes
11127 fi
11128 LIBS="$lt_save_LIBS"
11129 CFLAGS="$lt_save_CFLAGS"
11130 else
11131 echo "cannot find nm_test_func in $nlist" >&5
11132 fi
11133 else
11134 echo "cannot find nm_test_var in $nlist" >&5
11135 fi
11136 else
11137 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11138 fi
11139 else
11140 echo "$progname: failed program was:" >&5
11141 cat conftest.$ac_ext >&5
11142 fi
11143 rm -f conftest* conftst*
11144
11145 # Do not use the global_symbol_pipe unless it works.
11146 if test "$pipe_works" = yes; then
11147 break
11148 else
11149 lt_cv_sys_global_symbol_pipe=
11150 fi
11151done
11152
11153fi
11154
11155if test -z "$lt_cv_sys_global_symbol_pipe"; then
11156 lt_cv_sys_global_symbol_to_cdecl=
11157fi
11158if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11159 echo "$as_me:$LINENO: result: failed" >&5
11160echo "${ECHO_T}failed" >&6
11161else
11162 echo "$as_me:$LINENO: result: ok" >&5
11163echo "${ECHO_T}ok" >&6
11164fi
11165
11166echo "$as_me:$LINENO: checking for objdir" >&5
11167echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11168if test "${lt_cv_objdir+set}" = set; then
11169 echo $ECHO_N "(cached) $ECHO_C" >&6
11170else
11171 rm -f .libs 2>/dev/null
11172mkdir .libs 2>/dev/null
11173if test -d .libs; then
11174 lt_cv_objdir=.libs
11175else
11176 # MS-DOS does not allow filenames that begin with a dot.
11177 lt_cv_objdir=_libs
11178fi
11179rmdir .libs 2>/dev/null
11180fi
11181echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11182echo "${ECHO_T}$lt_cv_objdir" >&6
11183objdir=$lt_cv_objdir
11184
11185
11186
11187
11188
11189case $host_os in
11190aix3*)
11191 # AIX sometimes has problems with the GCC collect2 program. For some
11192 # reason, if we set the COLLECT_NAMES environment variable, the problems
11193 # vanish in a puff of smoke.
11194 if test "X${COLLECT_NAMES+set}" != Xset; then
11195 COLLECT_NAMES=
11196 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011197 fi
11198 ;;
11199esac
11200
John Criswell47fdd832003-07-14 16:52:07 +000011201# Sed substitution that helps us do robust quoting. It backslashifies
11202# metacharacters that are still active within double-quoted strings.
11203Xsed='sed -e s/^X//'
11204sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11205
11206# Same as above, but do not quote variable references.
11207double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11208
11209# Sed substitution to delay expansion of an escaped shell variable in a
11210# double_quote_subst'ed string.
11211delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11212
11213# Sed substitution to avoid accidental globbing in evaled expressions
11214no_glob_subst='s/\*/\\\*/g'
11215
11216# Constants:
11217rm="rm -f"
11218
11219# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011220default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011221can_build_shared=yes
11222
11223# All known linkers require a `.a' archive for static linking (except M$VC,
11224# which needs '.lib').
11225libext=a
11226ltmain="$ac_aux_dir/ltmain.sh"
11227ofile="$default_ofile"
11228with_gnu_ld="$lt_cv_prog_gnu_ld"
11229
11230if test -n "$ac_tool_prefix"; then
11231 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11232set dummy ${ac_tool_prefix}ar; ac_word=$2
11233echo "$as_me:$LINENO: checking for $ac_word" >&5
11234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11235if test "${ac_cv_prog_AR+set}" = set; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
11237else
11238 if test -n "$AR"; then
11239 ac_cv_prog_AR="$AR" # Let the user override the test.
11240else
11241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11242for as_dir in $PATH
11243do
11244 IFS=$as_save_IFS
11245 test -z "$as_dir" && as_dir=.
11246 for ac_exec_ext in '' $ac_executable_extensions; do
11247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11248 ac_cv_prog_AR="${ac_tool_prefix}ar"
11249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11250 break 2
11251 fi
11252done
11253done
11254
11255fi
11256fi
11257AR=$ac_cv_prog_AR
11258if test -n "$AR"; then
11259 echo "$as_me:$LINENO: result: $AR" >&5
11260echo "${ECHO_T}$AR" >&6
11261else
11262 echo "$as_me:$LINENO: result: no" >&5
11263echo "${ECHO_T}no" >&6
11264fi
11265
11266fi
11267if test -z "$ac_cv_prog_AR"; then
11268 ac_ct_AR=$AR
11269 # Extract the first word of "ar", so it can be a program name with args.
11270set dummy ar; ac_word=$2
11271echo "$as_me:$LINENO: checking for $ac_word" >&5
11272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11273if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11275else
11276 if test -n "$ac_ct_AR"; then
11277 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11278else
11279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11280for as_dir in $PATH
11281do
11282 IFS=$as_save_IFS
11283 test -z "$as_dir" && as_dir=.
11284 for ac_exec_ext in '' $ac_executable_extensions; do
11285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11286 ac_cv_prog_ac_ct_AR="ar"
11287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11288 break 2
11289 fi
11290done
11291done
11292
11293 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11294fi
11295fi
11296ac_ct_AR=$ac_cv_prog_ac_ct_AR
11297if test -n "$ac_ct_AR"; then
11298 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11299echo "${ECHO_T}$ac_ct_AR" >&6
11300else
11301 echo "$as_me:$LINENO: result: no" >&5
11302echo "${ECHO_T}no" >&6
11303fi
11304
11305 AR=$ac_ct_AR
11306else
11307 AR="$ac_cv_prog_AR"
11308fi
11309
John Criswell7a73b802003-06-30 21:59:07 +000011310if test -n "$ac_tool_prefix"; then
11311 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11312set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11313echo "$as_me:$LINENO: checking for $ac_word" >&5
11314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11315if test "${ac_cv_prog_RANLIB+set}" = set; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11317else
11318 if test -n "$RANLIB"; then
11319 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11320else
11321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11322for as_dir in $PATH
11323do
11324 IFS=$as_save_IFS
11325 test -z "$as_dir" && as_dir=.
11326 for ac_exec_ext in '' $ac_executable_extensions; do
11327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11328 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11330 break 2
11331 fi
11332done
11333done
11334
11335fi
11336fi
11337RANLIB=$ac_cv_prog_RANLIB
11338if test -n "$RANLIB"; then
11339 echo "$as_me:$LINENO: result: $RANLIB" >&5
11340echo "${ECHO_T}$RANLIB" >&6
11341else
11342 echo "$as_me:$LINENO: result: no" >&5
11343echo "${ECHO_T}no" >&6
11344fi
11345
11346fi
11347if test -z "$ac_cv_prog_RANLIB"; then
11348 ac_ct_RANLIB=$RANLIB
11349 # Extract the first word of "ranlib", so it can be a program name with args.
11350set dummy ranlib; ac_word=$2
11351echo "$as_me:$LINENO: checking for $ac_word" >&5
11352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11353if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11354 echo $ECHO_N "(cached) $ECHO_C" >&6
11355else
11356 if test -n "$ac_ct_RANLIB"; then
11357 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11358else
11359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11360for as_dir in $PATH
11361do
11362 IFS=$as_save_IFS
11363 test -z "$as_dir" && as_dir=.
11364 for ac_exec_ext in '' $ac_executable_extensions; do
11365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11366 ac_cv_prog_ac_ct_RANLIB="ranlib"
11367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11368 break 2
11369 fi
11370done
11371done
11372
11373 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11374fi
11375fi
11376ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11377if test -n "$ac_ct_RANLIB"; then
11378 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11379echo "${ECHO_T}$ac_ct_RANLIB" >&6
11380else
11381 echo "$as_me:$LINENO: result: no" >&5
11382echo "${ECHO_T}no" >&6
11383fi
11384
11385 RANLIB=$ac_ct_RANLIB
11386else
11387 RANLIB="$ac_cv_prog_RANLIB"
11388fi
11389
11390if test -n "$ac_tool_prefix"; then
11391 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11392set dummy ${ac_tool_prefix}strip; ac_word=$2
11393echo "$as_me:$LINENO: checking for $ac_word" >&5
11394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11395if test "${ac_cv_prog_STRIP+set}" = set; then
11396 echo $ECHO_N "(cached) $ECHO_C" >&6
11397else
11398 if test -n "$STRIP"; then
11399 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11400else
11401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11402for as_dir in $PATH
11403do
11404 IFS=$as_save_IFS
11405 test -z "$as_dir" && as_dir=.
11406 for ac_exec_ext in '' $ac_executable_extensions; do
11407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11408 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11410 break 2
11411 fi
11412done
11413done
11414
11415fi
11416fi
11417STRIP=$ac_cv_prog_STRIP
11418if test -n "$STRIP"; then
11419 echo "$as_me:$LINENO: result: $STRIP" >&5
11420echo "${ECHO_T}$STRIP" >&6
11421else
11422 echo "$as_me:$LINENO: result: no" >&5
11423echo "${ECHO_T}no" >&6
11424fi
11425
11426fi
11427if test -z "$ac_cv_prog_STRIP"; then
11428 ac_ct_STRIP=$STRIP
11429 # Extract the first word of "strip", so it can be a program name with args.
11430set dummy strip; ac_word=$2
11431echo "$as_me:$LINENO: checking for $ac_word" >&5
11432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11433if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11435else
11436 if test -n "$ac_ct_STRIP"; then
11437 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11438else
11439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11440for as_dir in $PATH
11441do
11442 IFS=$as_save_IFS
11443 test -z "$as_dir" && as_dir=.
11444 for ac_exec_ext in '' $ac_executable_extensions; do
11445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11446 ac_cv_prog_ac_ct_STRIP="strip"
11447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11448 break 2
11449 fi
11450done
11451done
11452
11453 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11454fi
11455fi
11456ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11457if test -n "$ac_ct_STRIP"; then
11458 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11459echo "${ECHO_T}$ac_ct_STRIP" >&6
11460else
11461 echo "$as_me:$LINENO: result: no" >&5
11462echo "${ECHO_T}no" >&6
11463fi
11464
11465 STRIP=$ac_ct_STRIP
11466else
11467 STRIP="$ac_cv_prog_STRIP"
11468fi
11469
11470
John Criswell7a73b802003-06-30 21:59:07 +000011471old_CC="$CC"
11472old_CFLAGS="$CFLAGS"
11473
11474# Set sane defaults for various variables
11475test -z "$AR" && AR=ar
11476test -z "$AR_FLAGS" && AR_FLAGS=cru
11477test -z "$AS" && AS=as
11478test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011479test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011480test -z "$DLLTOOL" && DLLTOOL=dlltool
11481test -z "$LD" && LD=ld
11482test -z "$LN_S" && LN_S="ln -s"
11483test -z "$MAGIC_CMD" && MAGIC_CMD=file
11484test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011485test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011486test -z "$OBJDUMP" && OBJDUMP=objdump
11487test -z "$RANLIB" && RANLIB=:
11488test -z "$STRIP" && STRIP=:
11489test -z "$ac_objext" && ac_objext=o
11490
John Criswell7a73b802003-06-30 21:59:07 +000011491# Determine commands to create old-style static archives.
11492old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11493old_postinstall_cmds='chmod 644 $oldlib'
11494old_postuninstall_cmds=
11495
11496if test -n "$RANLIB"; then
11497 case $host_os in
11498 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011499 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011500 ;;
11501 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011502 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011503 ;;
11504 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011505 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011506fi
11507
Reid Spencer2706f8c2004-09-19 23:53:36 +000011508cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11509
John Criswell47fdd832003-07-14 16:52:07 +000011510# Only perform the check for file, if the check method requires it
11511case $deplibs_check_method in
11512file_magic*)
11513 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11514 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11515echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11516if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011518else
John Criswell47fdd832003-07-14 16:52:07 +000011519 case $MAGIC_CMD in
11520[\\/*] | ?:[\\/]*)
11521 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11522 ;;
11523*)
11524 lt_save_MAGIC_CMD="$MAGIC_CMD"
11525 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11526 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11527 for ac_dir in $ac_dummy; do
11528 IFS="$lt_save_ifs"
11529 test -z "$ac_dir" && ac_dir=.
11530 if test -f $ac_dir/${ac_tool_prefix}file; then
11531 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11532 if test -n "$file_magic_test_file"; then
11533 case $deplibs_check_method in
11534 "file_magic "*)
11535 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11536 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11537 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11538 $EGREP "$file_magic_regex" > /dev/null; then
11539 :
11540 else
11541 cat <<EOF 1>&2
11542
11543*** Warning: the command libtool uses to detect shared libraries,
11544*** $file_magic_cmd, produces output that libtool cannot recognize.
11545*** The result is that libtool may fail to recognize shared libraries
11546*** as such. This will affect the creation of libtool libraries that
11547*** depend on shared libraries, but programs linked with such libtool
11548*** libraries will work regardless of this problem. Nevertheless, you
11549*** may want to report the problem to your system manager and/or to
11550*** bug-libtool@gnu.org
11551
11552EOF
11553 fi ;;
11554 esac
11555 fi
11556 break
11557 fi
11558 done
11559 IFS="$lt_save_ifs"
11560 MAGIC_CMD="$lt_save_MAGIC_CMD"
11561 ;;
11562esac
John Criswell7a73b802003-06-30 21:59:07 +000011563fi
John Criswell7a73b802003-06-30 21:59:07 +000011564
John Criswell47fdd832003-07-14 16:52:07 +000011565MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11566if test -n "$MAGIC_CMD"; then
11567 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11568echo "${ECHO_T}$MAGIC_CMD" >&6
11569else
11570 echo "$as_me:$LINENO: result: no" >&5
11571echo "${ECHO_T}no" >&6
11572fi
John Criswell7a73b802003-06-30 21:59:07 +000011573
John Criswell47fdd832003-07-14 16:52:07 +000011574if test -z "$lt_cv_path_MAGIC_CMD"; then
11575 if test -n "$ac_tool_prefix"; then
11576 echo "$as_me:$LINENO: checking for file" >&5
11577echo $ECHO_N "checking for file... $ECHO_C" >&6
11578if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11580else
11581 case $MAGIC_CMD in
11582[\\/*] | ?:[\\/]*)
11583 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11584 ;;
11585*)
11586 lt_save_MAGIC_CMD="$MAGIC_CMD"
11587 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11588 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11589 for ac_dir in $ac_dummy; do
11590 IFS="$lt_save_ifs"
11591 test -z "$ac_dir" && ac_dir=.
11592 if test -f $ac_dir/file; then
11593 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11594 if test -n "$file_magic_test_file"; then
11595 case $deplibs_check_method in
11596 "file_magic "*)
11597 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11598 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11599 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11600 $EGREP "$file_magic_regex" > /dev/null; then
11601 :
11602 else
11603 cat <<EOF 1>&2
11604
11605*** Warning: the command libtool uses to detect shared libraries,
11606*** $file_magic_cmd, produces output that libtool cannot recognize.
11607*** The result is that libtool may fail to recognize shared libraries
11608*** as such. This will affect the creation of libtool libraries that
11609*** depend on shared libraries, but programs linked with such libtool
11610*** libraries will work regardless of this problem. Nevertheless, you
11611*** may want to report the problem to your system manager and/or to
11612*** bug-libtool@gnu.org
11613
11614EOF
11615 fi ;;
11616 esac
11617 fi
11618 break
11619 fi
11620 done
11621 IFS="$lt_save_ifs"
11622 MAGIC_CMD="$lt_save_MAGIC_CMD"
11623 ;;
11624esac
11625fi
11626
11627MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11628if test -n "$MAGIC_CMD"; then
11629 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11630echo "${ECHO_T}$MAGIC_CMD" >&6
11631else
11632 echo "$as_me:$LINENO: result: no" >&5
11633echo "${ECHO_T}no" >&6
11634fi
11635
11636 else
11637 MAGIC_CMD=:
11638 fi
11639fi
11640
11641 fi
11642 ;;
11643esac
11644
Reid Spencer17795972004-11-18 09:47:37 +000011645enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011646enable_win32_dll=no
11647
11648# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11649if test "${enable_libtool_lock+set}" = set; then
11650 enableval="$enable_libtool_lock"
11651
11652fi;
11653test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11654
John Criswell7a73b802003-06-30 21:59:07 +000011655
11656# Check whether --with-pic or --without-pic was given.
11657if test "${with_pic+set}" = set; then
11658 withval="$with_pic"
11659 pic_mode="$withval"
11660else
11661 pic_mode=default
11662fi;
11663test -z "$pic_mode" && pic_mode=default
11664
John Criswell47fdd832003-07-14 16:52:07 +000011665# Use C for the default configuration in the libtool script
11666tagname=
11667lt_save_CC="$CC"
11668ac_ext=c
11669ac_cpp='$CPP $CPPFLAGS'
11670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11672ac_compiler_gnu=$ac_cv_c_compiler_gnu
11673
11674
11675# Source file extension for C test sources.
11676ac_ext=c
11677
11678# Object file extension for compiled C test sources.
11679objext=o
11680objext=$objext
11681
11682# Code to be used in simple compile tests
11683lt_simple_compile_test_code="int some_variable = 0;\n"
11684
11685# Code to be used in simple link tests
11686lt_simple_link_test_code='int main(){return(0);}\n'
11687
11688
11689# If no C compiler was specified, use CC.
11690LTCC=${LTCC-"$CC"}
11691
11692# Allow CC to be a program name with arguments.
11693compiler=$CC
11694
11695
11696#
11697# Check for any special shared library compilation flags.
11698#
11699lt_prog_cc_shlib=
11700if test "$GCC" = no; then
11701 case $host_os in
11702 sco3.2v5*)
11703 lt_prog_cc_shlib='-belf'
11704 ;;
11705 esac
11706fi
11707if test -n "$lt_prog_cc_shlib"; then
11708 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11709echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11710 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11711 else
11712 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11713echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11714 lt_cv_prog_cc_can_build_shared=no
11715 fi
11716fi
11717
11718
11719#
11720# Check to make sure the static flag actually works.
11721#
11722echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11723echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11724if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011725 echo $ECHO_N "(cached) $ECHO_C" >&6
11726else
John Criswell47fdd832003-07-14 16:52:07 +000011727 lt_prog_compiler_static_works=no
11728 save_LDFLAGS="$LDFLAGS"
11729 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11730 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11731 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11732 # The compiler can only warn and ignore the option if not recognized
11733 # So say no if there are warnings
11734 if test -s conftest.err; then
11735 # Append any errors to the config.log.
11736 cat conftest.err 1>&5
11737 else
11738 lt_prog_compiler_static_works=yes
11739 fi
11740 fi
11741 $rm conftest*
11742 LDFLAGS="$save_LDFLAGS"
11743
11744fi
11745echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11746echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11747
11748if test x"$lt_prog_compiler_static_works" = xyes; then
11749 :
11750else
11751 lt_prog_compiler_static=
11752fi
11753
11754
11755
John Criswell47fdd832003-07-14 16:52:07 +000011756
11757lt_prog_compiler_no_builtin_flag=
11758
11759if test "$GCC" = yes; then
11760 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11761
Reid Spencer2706f8c2004-09-19 23:53:36 +000011762
11763echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011764echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11765if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11766 echo $ECHO_N "(cached) $ECHO_C" >&6
11767else
11768 lt_cv_prog_compiler_rtti_exceptions=no
11769 ac_outfile=conftest.$ac_objext
11770 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11771 lt_compiler_flag="-fno-rtti -fno-exceptions"
11772 # Insert the option either (1) after the last *FLAGS variable, or
11773 # (2) before a word containing "conftest.", or (3) at the end.
11774 # Note that $ac_compile itself does not contain backslashes and begins
11775 # with a dollar sign (not a hyphen), so the echo should work correctly.
11776 # The option is referenced via a variable to avoid confusing sed.
11777 lt_compile=`echo "$ac_compile" | $SED \
11778 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11779 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11780 -e 's:$: $lt_compiler_flag:'`
Reid Spencer95ed8432004-12-23 06:22:33 +000011781 (eval echo "\"\$as_me:11781: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011782 (eval "$lt_compile" 2>conftest.err)
11783 ac_status=$?
11784 cat conftest.err >&5
Reid Spencer95ed8432004-12-23 06:22:33 +000011785 echo "$as_me:11785: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011786 if (exit $ac_status) && test -s "$ac_outfile"; then
11787 # The compiler can only warn and ignore the option if not recognized
11788 # So say no if there are warnings
11789 if test ! -s conftest.err; then
11790 lt_cv_prog_compiler_rtti_exceptions=yes
11791 fi
11792 fi
11793 $rm conftest*
11794
11795fi
11796echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11797echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11798
11799if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11800 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11801else
11802 :
11803fi
11804
11805fi
11806
11807lt_prog_compiler_wl=
11808lt_prog_compiler_pic=
11809lt_prog_compiler_static=
11810
11811echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11812echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011813
11814 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000011815 lt_prog_compiler_wl='-Wl,'
11816 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000011817
11818 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011819 aix*)
11820 # All AIX code is PIC.
11821 if test "$host_cpu" = ia64; then
11822 # AIX 5 now supports IA64 processor
11823 lt_prog_compiler_static='-Bstatic'
11824 fi
John Criswell7a73b802003-06-30 21:59:07 +000011825 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011826
John Criswell7a73b802003-06-30 21:59:07 +000011827 amigaos*)
11828 # FIXME: we need at least 68020 code to build shared libraries, but
11829 # adding the `-m68020' flag to GCC prevents building anything better,
11830 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000011831 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000011832 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011833
11834 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000011835 # PIC is the default for these OSes.
11836 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011837
11838 mingw* | pw32* | os2*)
11839 # This hack is so that the source file can tell whether it is being
11840 # built for inclusion in a dll (and should export symbols for example).
11841 lt_prog_compiler_pic='-DDLL_EXPORT'
11842 ;;
11843
John Criswell7a73b802003-06-30 21:59:07 +000011844 darwin* | rhapsody*)
11845 # PIC is the default on this platform
11846 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000011847 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000011848 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011849
11850 msdosdjgpp*)
11851 # Just because we use GCC doesn't mean we suddenly get shared libraries
11852 # on systems that don't support them.
11853 lt_prog_compiler_can_build_shared=no
11854 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011855 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011856
John Criswell7a73b802003-06-30 21:59:07 +000011857 sysv4*MP*)
11858 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000011859 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000011860 fi
11861 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011862
11863 hpux*)
11864 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11865 # not for PA HP-UX.
11866 case "$host_cpu" in
11867 hppa*64*|ia64*)
11868 # +Z the default
11869 ;;
11870 *)
11871 lt_prog_compiler_pic='-fPIC'
11872 ;;
11873 esac
11874 ;;
11875
John Criswell7a73b802003-06-30 21:59:07 +000011876 *)
John Criswell47fdd832003-07-14 16:52:07 +000011877 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000011878 ;;
11879 esac
11880 else
John Criswell47fdd832003-07-14 16:52:07 +000011881 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000011882 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011883 aix*)
11884 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011885 if test "$host_cpu" = ia64; then
11886 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000011887 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011888 else
John Criswell47fdd832003-07-14 16:52:07 +000011889 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000011890 fi
11891 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011892 darwin*)
11893 # PIC is the default on this platform
11894 # Common symbols not allowed in MH_DYLIB files
11895 case "$cc_basename" in
11896 xlc*)
11897 lt_prog_compiler_pic='-qnocommon'
11898 lt_prog_compiler_wl='-Wl,'
11899 ;;
11900 esac
11901 ;;
John Criswell7a73b802003-06-30 21:59:07 +000011902
John Criswell47fdd832003-07-14 16:52:07 +000011903 mingw* | pw32* | os2*)
11904 # This hack is so that the source file can tell whether it is being
11905 # built for inclusion in a dll (and should export symbols for example).
11906 lt_prog_compiler_pic='-DDLL_EXPORT'
11907 ;;
11908
John Criswell7a73b802003-06-30 21:59:07 +000011909 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000011910 lt_prog_compiler_wl='-Wl,'
11911 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11912 # not for PA HP-UX.
11913 case "$host_cpu" in
11914 hppa*64*|ia64*)
11915 # +Z the default
11916 ;;
11917 *)
11918 lt_prog_compiler_pic='+Z'
11919 ;;
11920 esac
11921 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11922 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000011923 ;;
11924
John Criswell47fdd832003-07-14 16:52:07 +000011925 irix5* | irix6* | nonstopux*)
11926 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011927 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000011928 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011929 ;;
11930
11931 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000011932 lt_prog_compiler_pic='-KPIC'
11933 lt_prog_compiler_static='-Bstatic'
11934 ;;
11935
11936 linux*)
11937 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011938 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000011939 lt_prog_compiler_wl='-Wl,'
11940 lt_prog_compiler_pic='-KPIC'
11941 lt_prog_compiler_static='-static'
11942 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011943 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000011944 lt_prog_compiler_wl='-Wl,'
11945 # All Alpha code is PIC.
11946 lt_prog_compiler_static='-non_shared'
11947 ;;
11948 esac
John Criswell7a73b802003-06-30 21:59:07 +000011949 ;;
11950
11951 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000011952 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011953 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000011954 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011955 ;;
11956
11957 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000011958 lt_prog_compiler_pic='-Kpic'
11959 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000011960 ;;
11961
11962 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000011963 lt_prog_compiler_wl='-Wl,'
11964 lt_prog_compiler_pic='-KPIC'
11965 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011966 ;;
11967
11968 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000011969 lt_prog_compiler_wl='-Qoption ld '
11970 lt_prog_compiler_pic='-PIC'
11971 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011972 ;;
11973
11974 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000011975 lt_prog_compiler_wl='-Wl,'
11976 lt_prog_compiler_pic='-KPIC'
11977 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011978 ;;
11979
11980 sysv4*MP*)
11981 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000011982 lt_prog_compiler_pic='-Kconform_pic'
11983 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011984 fi
11985 ;;
11986
John Criswell47fdd832003-07-14 16:52:07 +000011987 uts4*)
11988 lt_prog_compiler_pic='-pic'
11989 lt_prog_compiler_static='-Bstatic'
11990 ;;
11991
John Criswell7a73b802003-06-30 21:59:07 +000011992 *)
John Criswell47fdd832003-07-14 16:52:07 +000011993 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011994 ;;
11995 esac
11996 fi
11997
John Criswell47fdd832003-07-14 16:52:07 +000011998echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11999echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012000
John Criswell47fdd832003-07-14 16:52:07 +000012001#
12002# Check to make sure the PIC flag actually works.
12003#
12004if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012005
12006echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012007echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12008if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012009 echo $ECHO_N "(cached) $ECHO_C" >&6
12010else
John Criswell47fdd832003-07-14 16:52:07 +000012011 lt_prog_compiler_pic_works=no
12012 ac_outfile=conftest.$ac_objext
12013 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12014 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12015 # Insert the option either (1) after the last *FLAGS variable, or
12016 # (2) before a word containing "conftest.", or (3) at the end.
12017 # Note that $ac_compile itself does not contain backslashes and begins
12018 # with a dollar sign (not a hyphen), so the echo should work correctly.
12019 # The option is referenced via a variable to avoid confusing sed.
12020 lt_compile=`echo "$ac_compile" | $SED \
12021 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12022 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12023 -e 's:$: $lt_compiler_flag:'`
Reid Spencer95ed8432004-12-23 06:22:33 +000012024 (eval echo "\"\$as_me:12024: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012025 (eval "$lt_compile" 2>conftest.err)
12026 ac_status=$?
12027 cat conftest.err >&5
Reid Spencer95ed8432004-12-23 06:22:33 +000012028 echo "$as_me:12028: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012029 if (exit $ac_status) && test -s "$ac_outfile"; then
12030 # The compiler can only warn and ignore the option if not recognized
12031 # So say no if there are warnings
12032 if test ! -s conftest.err; then
12033 lt_prog_compiler_pic_works=yes
12034 fi
12035 fi
12036 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012037
John Criswell47fdd832003-07-14 16:52:07 +000012038fi
12039echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12040echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012041
John Criswell47fdd832003-07-14 16:52:07 +000012042if test x"$lt_prog_compiler_pic_works" = xyes; then
12043 case $lt_prog_compiler_pic in
12044 "" | " "*) ;;
12045 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12046 esac
John Criswell7a73b802003-06-30 21:59:07 +000012047else
John Criswell47fdd832003-07-14 16:52:07 +000012048 lt_prog_compiler_pic=
12049 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012050fi
12051
John Criswell7a73b802003-06-30 21:59:07 +000012052fi
John Criswell47fdd832003-07-14 16:52:07 +000012053case "$host_os" in
12054 # For platforms which do not support PIC, -DPIC is meaningless:
12055 *djgpp*)
12056 lt_prog_compiler_pic=
12057 ;;
12058 *)
12059 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12060 ;;
12061esac
John Criswell7a73b802003-06-30 21:59:07 +000012062
John Criswell7a73b802003-06-30 21:59:07 +000012063echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12064echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012065if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012066 echo $ECHO_N "(cached) $ECHO_C" >&6
12067else
John Criswell47fdd832003-07-14 16:52:07 +000012068 lt_cv_prog_compiler_c_o=no
12069 $rm -r conftest 2>/dev/null
12070 mkdir conftest
12071 cd conftest
12072 mkdir out
12073 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012074
John Criswell47fdd832003-07-14 16:52:07 +000012075 lt_compiler_flag="-o out/conftest2.$ac_objext"
12076 # Insert the option either (1) after the last *FLAGS variable, or
12077 # (2) before a word containing "conftest.", or (3) at the end.
12078 # Note that $ac_compile itself does not contain backslashes and begins
12079 # with a dollar sign (not a hyphen), so the echo should work correctly.
12080 lt_compile=`echo "$ac_compile" | $SED \
12081 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12083 -e 's:$: $lt_compiler_flag:'`
Reid Spencer95ed8432004-12-23 06:22:33 +000012084 (eval echo "\"\$as_me:12084: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012085 (eval "$lt_compile" 2>out/conftest.err)
12086 ac_status=$?
12087 cat out/conftest.err >&5
Reid Spencer95ed8432004-12-23 06:22:33 +000012088 echo "$as_me:12088: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012089 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12090 then
12091 # The compiler can only warn and ignore the option if not recognized
12092 # So say no if there are warnings
12093 if test ! -s out/conftest.err; then
12094 lt_cv_prog_compiler_c_o=yes
12095 fi
12096 fi
12097 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012098 $rm conftest*
12099 # SGI C++ compiler will create directory out/ii_files/ for
12100 # template instantiation
12101 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12102 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012103 cd ..
12104 rmdir conftest
12105 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012106
12107fi
John Criswell47fdd832003-07-14 16:52:07 +000012108echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12109echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012110
John Criswell7a73b802003-06-30 21:59:07 +000012111
John Criswell7a73b802003-06-30 21:59:07 +000012112hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012113if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012114 # do not overwrite the value of need_locks provided by the user
12115 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12116echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12117 hard_links=yes
12118 $rm conftest*
12119 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12120 touch conftest.a
12121 ln conftest.a conftest.b 2>&5 || hard_links=no
12122 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12123 echo "$as_me:$LINENO: result: $hard_links" >&5
12124echo "${ECHO_T}$hard_links" >&6
12125 if test "$hard_links" = no; then
12126 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12127echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12128 need_locks=warn
12129 fi
12130else
12131 need_locks=no
12132fi
John Criswell7a73b802003-06-30 21:59:07 +000012133
John Criswell47fdd832003-07-14 16:52:07 +000012134echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12135echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12136
12137 runpath_var=
12138 allow_undefined_flag=
12139 enable_shared_with_static_runtimes=no
12140 archive_cmds=
12141 archive_expsym_cmds=
12142 old_archive_From_new_cmds=
12143 old_archive_from_expsyms_cmds=
12144 export_dynamic_flag_spec=
12145 whole_archive_flag_spec=
12146 thread_safe_flag_spec=
12147 hardcode_libdir_flag_spec=
12148 hardcode_libdir_flag_spec_ld=
12149 hardcode_libdir_separator=
12150 hardcode_direct=no
12151 hardcode_minus_L=no
12152 hardcode_shlibpath_var=unsupported
12153 link_all_deplibs=unknown
12154 hardcode_automatic=no
12155 module_cmds=
12156 module_expsym_cmds=
12157 always_export_symbols=no
12158 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12159 # include_expsyms should be a list of space-separated symbols to be *always*
12160 # included in the symbol list
12161 include_expsyms=
12162 # exclude_expsyms can be an extended regexp of symbols to exclude
12163 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12164 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12165 # as well as any symbol that contains `d'.
12166 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12167 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12168 # platforms (ab)use it in PIC code, but their linkers get confused if
12169 # the symbol is explicitly referenced. Since portable code cannot
12170 # rely on this symbol name, it's probably fine to never include it in
12171 # preloaded symbol tables.
12172 extract_expsyms_cmds=
12173
12174 case $host_os in
12175 cygwin* | mingw* | pw32*)
12176 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12177 # When not using gcc, we currently assume that we are using
12178 # Microsoft Visual C++.
12179 if test "$GCC" != yes; then
12180 with_gnu_ld=no
12181 fi
12182 ;;
12183 openbsd*)
12184 with_gnu_ld=no
12185 ;;
12186 esac
12187
12188 ld_shlibs=yes
12189 if test "$with_gnu_ld" = yes; then
12190 # If archive_cmds runs LD, not CC, wlarc should be empty
12191 wlarc='${wl}'
12192
12193 # See if GNU ld supports shared libraries.
12194 case $host_os in
12195 aix3* | aix4* | aix5*)
12196 # On AIX/PPC, the GNU linker is very broken
12197 if test "$host_cpu" != ia64; then
12198 ld_shlibs=no
12199 cat <<EOF 1>&2
12200
12201*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12202*** to be unable to reliably create shared libraries on AIX.
12203*** Therefore, libtool is disabling shared libraries support. If you
12204*** really care for shared libraries, you may want to modify your PATH
12205*** so that a non-GNU linker is found, and then restart.
12206
12207EOF
12208 fi
12209 ;;
12210
12211 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012212 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 +000012213 hardcode_libdir_flag_spec='-L$libdir'
12214 hardcode_minus_L=yes
12215
12216 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12217 # that the semantics of dynamic libraries on AmigaOS, at least up
12218 # to version 4, is to share data among multiple programs linked
12219 # with the same dynamic library. Since this doesn't match the
12220 # behavior of shared libraries on other platforms, we can't use
12221 # them.
12222 ld_shlibs=no
12223 ;;
12224
12225 beos*)
12226 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12227 allow_undefined_flag=unsupported
12228 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12229 # support --undefined. This deserves some investigation. FIXME
12230 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12231 else
12232 ld_shlibs=no
12233 fi
12234 ;;
12235
12236 cygwin* | mingw* | pw32*)
12237 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12238 # as there is no search path for DLLs.
12239 hardcode_libdir_flag_spec='-L$libdir'
12240 allow_undefined_flag=unsupported
12241 always_export_symbols=no
12242 enable_shared_with_static_runtimes=yes
12243 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12244
12245 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12246 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12247 # If the export-symbols file already is a .def file (1st line
12248 # is EXPORTS), use it as is; otherwise, prepend...
12249 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12250 cp $export_symbols $output_objdir/$soname.def;
12251 else
12252 echo EXPORTS > $output_objdir/$soname.def;
12253 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012254 fi~
12255 $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 +000012256 else
12257 ld_shlibs=no
12258 fi
12259 ;;
12260
12261 netbsd*)
12262 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12263 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12264 wlarc=
12265 else
12266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12267 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12268 fi
12269 ;;
12270
12271 solaris* | sysv5*)
12272 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12273 ld_shlibs=no
12274 cat <<EOF 1>&2
12275
12276*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12277*** create shared libraries on Solaris systems. Therefore, libtool
12278*** is disabling shared libraries support. We urge you to upgrade GNU
12279*** binutils to release 2.9.1 or newer. Another option is to modify
12280*** your PATH or compiler configuration so that the native linker is
12281*** used, and then restart.
12282
12283EOF
12284 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12286 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12287 else
12288 ld_shlibs=no
12289 fi
12290 ;;
12291
12292 sunos4*)
12293 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12294 wlarc=
12295 hardcode_direct=yes
12296 hardcode_shlibpath_var=no
12297 ;;
12298
Reid Spencer2706f8c2004-09-19 23:53:36 +000012299 linux*)
12300 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12301 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12302 archive_cmds="$tmp_archive_cmds"
12303 supports_anon_versioning=no
12304 case `$LD -v 2>/dev/null` in
12305 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12306 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12307 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12308 *\ 2.11.*) ;; # other 2.11 versions
12309 *) supports_anon_versioning=yes ;;
12310 esac
12311 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012312 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12313cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12314$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012315 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12316 else
12317 archive_expsym_cmds="$tmp_archive_cmds"
12318 fi
12319 else
12320 ld_shlibs=no
12321 fi
12322 ;;
12323
John Criswell47fdd832003-07-14 16:52:07 +000012324 *)
12325 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12326 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12327 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12328 else
12329 ld_shlibs=no
12330 fi
12331 ;;
12332 esac
12333
12334 if test "$ld_shlibs" = yes; then
12335 runpath_var=LD_RUN_PATH
12336 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12337 export_dynamic_flag_spec='${wl}--export-dynamic'
12338 # ancient GNU ld didn't support --whole-archive et. al.
12339 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12340 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12341 else
12342 whole_archive_flag_spec=
12343 fi
12344 fi
12345 else
12346 # PORTME fill in a description of your system's linker (not GNU ld)
12347 case $host_os in
12348 aix3*)
12349 allow_undefined_flag=unsupported
12350 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012351 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 +000012352 # Note: this linker hardcodes the directories in LIBPATH if there
12353 # are no directories specified by -L.
12354 hardcode_minus_L=yes
12355 if test "$GCC" = yes && test -z "$link_static_flag"; then
12356 # Neither direct hardcoding nor static linking is supported with a
12357 # broken collect2.
12358 hardcode_direct=unsupported
12359 fi
12360 ;;
12361
12362 aix4* | aix5*)
12363 if test "$host_cpu" = ia64; then
12364 # On IA64, the linker does run time linking by default, so we don't
12365 # have to do anything special.
12366 aix_use_runtimelinking=no
12367 exp_sym_flag='-Bexport'
12368 no_entry_flag=""
12369 else
12370 # If we're using GNU nm, then we don't want the "-C" option.
12371 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12372 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12373 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'
12374 else
12375 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'
12376 fi
12377 aix_use_runtimelinking=no
12378
12379 # Test if we are trying to use run time linking or normal
12380 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12381 # need to do runtime linking.
12382 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12383 for ld_flag in $LDFLAGS; do
12384 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12385 aix_use_runtimelinking=yes
12386 break
12387 fi
12388 done
12389 esac
12390
12391 exp_sym_flag='-bexport'
12392 no_entry_flag='-bnoentry'
12393 fi
12394
12395 # When large executables or shared objects are built, AIX ld can
12396 # have problems creating the table of contents. If linking a library
12397 # or program results in "error TOC overflow" add -mminimal-toc to
12398 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12399 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12400
12401 archive_cmds=''
12402 hardcode_direct=yes
12403 hardcode_libdir_separator=':'
12404 link_all_deplibs=yes
12405
12406 if test "$GCC" = yes; then
12407 case $host_os in aix4.012|aix4.012.*)
12408 # We only want to do this on AIX 4.2 and lower, the check
12409 # below for broken collect2 doesn't work under 4.3+
12410 collect2name=`${CC} -print-prog-name=collect2`
12411 if test -f "$collect2name" && \
12412 strings "$collect2name" | grep resolve_lib_name >/dev/null
12413 then
12414 # We have reworked collect2
12415 hardcode_direct=yes
12416 else
12417 # We have old collect2
12418 hardcode_direct=unsupported
12419 # It fails to find uninstalled libraries when the uninstalled
12420 # path is not listed in the libpath. Setting hardcode_minus_L
12421 # to unsupported forces relinking
12422 hardcode_minus_L=yes
12423 hardcode_libdir_flag_spec='-L$libdir'
12424 hardcode_libdir_separator=
12425 fi
12426 esac
12427 shared_flag='-shared'
12428 else
12429 # not using gcc
12430 if test "$host_cpu" = ia64; then
12431 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12432 # chokes on -Wl,-G. The following line is correct:
12433 shared_flag='-G'
12434 else
12435 if test "$aix_use_runtimelinking" = yes; then
12436 shared_flag='${wl}-G'
12437 else
12438 shared_flag='${wl}-bM:SRE'
12439 fi
12440 fi
12441 fi
12442
12443 # It seems that -bexpall does not export symbols beginning with
12444 # underscore (_), so it is better to generate a list of symbols to export.
12445 always_export_symbols=yes
12446 if test "$aix_use_runtimelinking" = yes; then
12447 # Warning - without using the other runtime loading flags (-brtl),
12448 # -berok will link without error, but may produce a broken library.
12449 allow_undefined_flag='-berok'
12450 # Determine the default libpath from the value encoded in an empty executable.
12451 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012452/* confdefs.h. */
12453_ACEOF
12454cat confdefs.h >>conftest.$ac_ext
12455cat >>conftest.$ac_ext <<_ACEOF
12456/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012457
John Criswell7a73b802003-06-30 21:59:07 +000012458int
12459main ()
12460{
John Criswell47fdd832003-07-14 16:52:07 +000012461
John Criswell7a73b802003-06-30 21:59:07 +000012462 ;
12463 return 0;
12464}
12465_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012466rm -f conftest.$ac_objext conftest$ac_exeext
12467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012468 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012469 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012470 grep -v '^ *+' conftest.er1 >conftest.err
12471 rm -f conftest.er1
12472 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012475 { ac_try='test -z "$ac_c_werror_flag"
12476 || test ! -s conftest.err'
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; } &&
12482 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012488
John Criswell47fdd832003-07-14 16:52:07 +000012489aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12490}'`
12491# Check for a 64-bit object if we didn't find anything.
12492if 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; }
12493}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012494else
12495 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012496sed 's/^/| /' conftest.$ac_ext >&5
12497
John Criswell7a73b802003-06-30 21:59:07 +000012498fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012499rm -f conftest.err conftest.$ac_objext \
12500 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012501if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012502
John Criswell47fdd832003-07-14 16:52:07 +000012503 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12504 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"
12505 else
12506 if test "$host_cpu" = ia64; then
12507 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12508 allow_undefined_flag="-z nodefs"
12509 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"
12510 else
12511 # Determine the default libpath from the value encoded in an empty executable.
12512 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012513/* confdefs.h. */
12514_ACEOF
12515cat confdefs.h >>conftest.$ac_ext
12516cat >>conftest.$ac_ext <<_ACEOF
12517/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012518
John Criswell47fdd832003-07-14 16:52:07 +000012519int
12520main ()
12521{
John Criswell7a73b802003-06-30 21:59:07 +000012522
John Criswell47fdd832003-07-14 16:52:07 +000012523 ;
12524 return 0;
12525}
12526_ACEOF
12527rm -f conftest.$ac_objext conftest$ac_exeext
12528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012529 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012530 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012531 grep -v '^ *+' conftest.er1 >conftest.err
12532 rm -f conftest.er1
12533 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012536 { ac_try='test -z "$ac_c_werror_flag"
12537 || test ! -s conftest.err'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12540 ac_status=$?
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; } &&
12543 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545 (eval $ac_try) 2>&5
12546 ac_status=$?
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012549
John Criswell47fdd832003-07-14 16:52:07 +000012550aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12551}'`
12552# Check for a 64-bit object if we didn't find anything.
12553if 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; }
12554}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012555else
John Criswell47fdd832003-07-14 16:52:07 +000012556 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012557sed 's/^/| /' conftest.$ac_ext >&5
12558
John Criswell47fdd832003-07-14 16:52:07 +000012559fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012560rm -f conftest.err conftest.$ac_objext \
12561 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012562if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012563
John Criswell47fdd832003-07-14 16:52:07 +000012564 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12565 # Warning - without using the other run time loading flags,
12566 # -berok will link without error, but may produce a broken library.
12567 no_undefined_flag=' ${wl}-bernotok'
12568 allow_undefined_flag=' ${wl}-berok'
12569 # -bexpall does not export symbols beginning with underscore (_)
12570 always_export_symbols=yes
12571 # Exported symbols can be pulled into shared objects from archives
12572 whole_archive_flag_spec=' '
12573 archive_cmds_need_lc=yes
12574 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012575 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 +000012576 fi
12577 fi
John Criswell7a73b802003-06-30 21:59:07 +000012578 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012579
12580 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012581 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 +000012582 hardcode_libdir_flag_spec='-L$libdir'
12583 hardcode_minus_L=yes
12584 # see comment about different semantics on the GNU ld section
12585 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012586 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012587
Reid Spencer2706f8c2004-09-19 23:53:36 +000012588 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012589 export_dynamic_flag_spec=-rdynamic
12590 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012591
John Criswell47fdd832003-07-14 16:52:07 +000012592 cygwin* | mingw* | pw32*)
12593 # When not using gcc, we currently assume that we are using
12594 # Microsoft Visual C++.
12595 # hardcode_libdir_flag_spec is actually meaningless, as there is
12596 # no search path for DLLs.
12597 hardcode_libdir_flag_spec=' '
12598 allow_undefined_flag=unsupported
12599 # Tell ltmain to make .lib files, not .a files.
12600 libext=lib
12601 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012602 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012603 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012604 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012605 # The linker will automatically build a .lib file if we build a DLL.
12606 old_archive_From_new_cmds='true'
12607 # FIXME: Should let the user specify the lib program.
12608 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12609 fix_srcfile_path='`cygpath -w "$srcfile"`'
12610 enable_shared_with_static_runtimes=yes
12611 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012612
John Criswell47fdd832003-07-14 16:52:07 +000012613 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012614 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012615 rhapsody* | darwin1.[012])
12616 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12617 ;;
12618 *) # Darwin 1.3 on
12619 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12620 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12621 else
12622 case ${MACOSX_DEPLOYMENT_TARGET} in
12623 10.[012])
12624 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12625 ;;
12626 10.*)
12627 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12628 ;;
12629 esac
12630 fi
12631 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012632 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012633 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012634 hardcode_direct=no
12635 hardcode_automatic=yes
12636 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012637 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012638 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012639 if test "$GCC" = yes ; then
12640 output_verbose_link_cmd='echo'
12641 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12642 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12643 # 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 +000012644 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}'
12645 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 +000012646 else
12647 case "$cc_basename" in
12648 xlc*)
12649 output_verbose_link_cmd='echo'
12650 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12651 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12652 # 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 +000012653 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}'
12654 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 +000012655 ;;
12656 *)
12657 ld_shlibs=no
12658 ;;
12659 esac
John Criswell7a73b802003-06-30 21:59:07 +000012660 fi
John Criswell47fdd832003-07-14 16:52:07 +000012661 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012662
John Criswell47fdd832003-07-14 16:52:07 +000012663 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012665 hardcode_libdir_flag_spec='-L$libdir'
12666 hardcode_shlibpath_var=no
12667 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012668
John Criswell47fdd832003-07-14 16:52:07 +000012669 freebsd1*)
12670 ld_shlibs=no
12671 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012672
John Criswell47fdd832003-07-14 16:52:07 +000012673 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12674 # support. Future versions do this automatically, but an explicit c++rt0.o
12675 # does not break anything, and helps significantly (at the cost of a little
12676 # extra space).
12677 freebsd2.2*)
12678 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12679 hardcode_libdir_flag_spec='-R$libdir'
12680 hardcode_direct=yes
12681 hardcode_shlibpath_var=no
12682 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012683
John Criswell47fdd832003-07-14 16:52:07 +000012684 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12685 freebsd2*)
12686 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12687 hardcode_direct=yes
12688 hardcode_minus_L=yes
12689 hardcode_shlibpath_var=no
12690 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012691
John Criswell47fdd832003-07-14 16:52:07 +000012692 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012693 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012694 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12695 hardcode_libdir_flag_spec='-R$libdir'
12696 hardcode_direct=yes
12697 hardcode_shlibpath_var=no
12698 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012699
John Criswell47fdd832003-07-14 16:52:07 +000012700 hpux9*)
12701 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012702 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 +000012703 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012704 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 +000012705 fi
12706 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12707 hardcode_libdir_separator=:
12708 hardcode_direct=yes
12709
12710 # hardcode_minus_L: Not really in the search PATH,
12711 # but as the default location of the library.
12712 hardcode_minus_L=yes
12713 export_dynamic_flag_spec='${wl}-E'
12714 ;;
12715
12716 hpux10* | hpux11*)
12717 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12718 case "$host_cpu" in
12719 hppa*64*|ia64*)
12720 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12721 ;;
12722 *)
12723 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12724 ;;
12725 esac
12726 else
12727 case "$host_cpu" in
12728 hppa*64*|ia64*)
12729 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12730 ;;
12731 *)
12732 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12733 ;;
12734 esac
12735 fi
12736 if test "$with_gnu_ld" = no; then
12737 case "$host_cpu" in
12738 hppa*64*)
12739 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12740 hardcode_libdir_flag_spec_ld='+b $libdir'
12741 hardcode_libdir_separator=:
12742 hardcode_direct=no
12743 hardcode_shlibpath_var=no
12744 ;;
12745 ia64*)
12746 hardcode_libdir_flag_spec='-L$libdir'
12747 hardcode_direct=no
12748 hardcode_shlibpath_var=no
12749
12750 # hardcode_minus_L: Not really in the search PATH,
12751 # but as the default location of the library.
12752 hardcode_minus_L=yes
12753 ;;
12754 *)
12755 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12756 hardcode_libdir_separator=:
12757 hardcode_direct=yes
12758 export_dynamic_flag_spec='${wl}-E'
12759
12760 # hardcode_minus_L: Not really in the search PATH,
12761 # but as the default location of the library.
12762 hardcode_minus_L=yes
12763 ;;
12764 esac
12765 fi
12766 ;;
12767
12768 irix5* | irix6* | nonstopux*)
12769 if test "$GCC" = yes; then
12770 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'
12771 else
12772 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'
12773 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12774 fi
12775 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12776 hardcode_libdir_separator=:
12777 link_all_deplibs=yes
12778 ;;
12779
12780 netbsd*)
12781 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12782 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12783 else
12784 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12785 fi
12786 hardcode_libdir_flag_spec='-R$libdir'
12787 hardcode_direct=yes
12788 hardcode_shlibpath_var=no
12789 ;;
12790
12791 newsos6)
12792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12793 hardcode_direct=yes
12794 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12795 hardcode_libdir_separator=:
12796 hardcode_shlibpath_var=no
12797 ;;
12798
12799 openbsd*)
12800 hardcode_direct=yes
12801 hardcode_shlibpath_var=no
12802 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12803 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012804 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 +000012805 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12806 export_dynamic_flag_spec='${wl}-E'
12807 else
12808 case $host_os in
12809 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12810 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12811 hardcode_libdir_flag_spec='-R$libdir'
12812 ;;
12813 *)
12814 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12815 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12816 ;;
12817 esac
12818 fi
12819 ;;
12820
12821 os2*)
12822 hardcode_libdir_flag_spec='-L$libdir'
12823 hardcode_minus_L=yes
12824 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000012825 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 +000012826 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12827 ;;
12828
12829 osf3*)
12830 if test "$GCC" = yes; then
12831 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12832 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'
12833 else
12834 allow_undefined_flag=' -expect_unresolved \*'
12835 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'
12836 fi
12837 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12838 hardcode_libdir_separator=:
12839 ;;
12840
12841 osf4* | osf5*) # as osf3* with the addition of -msym flag
12842 if test "$GCC" = yes; then
12843 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12844 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'
12845 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12846 else
12847 allow_undefined_flag=' -expect_unresolved \*'
12848 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 +000012849 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12850 $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'
12851
John Criswell47fdd832003-07-14 16:52:07 +000012852 # Both c and cxx compiler support -rpath directly
12853 hardcode_libdir_flag_spec='-rpath $libdir'
12854 fi
12855 hardcode_libdir_separator=:
12856 ;;
12857
12858 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000012859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12860 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000012861 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000012862 runpath_var=LD_RUN_PATH
12863 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000012864 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012865
John Criswell47fdd832003-07-14 16:52:07 +000012866 solaris*)
12867 no_undefined_flag=' -z text'
12868 if test "$GCC" = yes; then
12869 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012870 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12871 $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 +000012872 else
12873 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012874 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12875 $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 +000012876 fi
12877 hardcode_libdir_flag_spec='-R$libdir'
12878 hardcode_shlibpath_var=no
12879 case $host_os in
12880 solaris2.[0-5] | solaris2.[0-5].*) ;;
12881 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12882 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12883 esac
12884 link_all_deplibs=yes
12885 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012886
John Criswell47fdd832003-07-14 16:52:07 +000012887 sunos4*)
12888 if test "x$host_vendor" = xsequent; then
12889 # Use $CC to link under sequent, because it throws in some extra .o
12890 # files that make .init and .fini sections work.
12891 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12892 else
12893 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12894 fi
12895 hardcode_libdir_flag_spec='-L$libdir'
12896 hardcode_direct=yes
12897 hardcode_minus_L=yes
12898 hardcode_shlibpath_var=no
12899 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012900
John Criswell47fdd832003-07-14 16:52:07 +000012901 sysv4)
12902 case $host_vendor in
12903 sni)
12904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12905 hardcode_direct=yes # is this really true???
12906 ;;
12907 siemens)
12908 ## LD is ld it makes a PLAMLIB
12909 ## CC just makes a GrossModule.
12910 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12911 reload_cmds='$CC -r -o $output$reload_objs'
12912 hardcode_direct=no
12913 ;;
12914 motorola)
12915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12916 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12917 ;;
12918 esac
12919 runpath_var='LD_RUN_PATH'
12920 hardcode_shlibpath_var=no
12921 ;;
12922
12923 sysv4.3*)
12924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12925 hardcode_shlibpath_var=no
12926 export_dynamic_flag_spec='-Bexport'
12927 ;;
12928
12929 sysv4*MP*)
12930 if test -d /usr/nec; then
12931 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12932 hardcode_shlibpath_var=no
12933 runpath_var=LD_RUN_PATH
12934 hardcode_runpath_var=yes
12935 ld_shlibs=yes
12936 fi
12937 ;;
12938
12939 sysv4.2uw2*)
12940 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12941 hardcode_direct=yes
12942 hardcode_minus_L=no
12943 hardcode_shlibpath_var=no
12944 hardcode_runpath_var=yes
12945 runpath_var=LD_RUN_PATH
12946 ;;
12947
12948 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12949 no_undefined_flag='${wl}-z ${wl}text'
12950 if test "$GCC" = yes; then
12951 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12952 else
12953 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12954 fi
12955 runpath_var='LD_RUN_PATH'
12956 hardcode_shlibpath_var=no
12957 ;;
12958
12959 sysv5*)
12960 no_undefined_flag=' -z text'
12961 # $CC -shared without GNU ld will not create a library from C++
12962 # object files and a static libstdc++, better avoid it by now
12963 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012964 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12965 $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 +000012966 hardcode_libdir_flag_spec=
12967 hardcode_shlibpath_var=no
12968 runpath_var='LD_RUN_PATH'
12969 ;;
12970
12971 uts4*)
12972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12973 hardcode_libdir_flag_spec='-L$libdir'
12974 hardcode_shlibpath_var=no
12975 ;;
12976
12977 *)
12978 ld_shlibs=no
12979 ;;
12980 esac
12981 fi
12982
John Criswell7a73b802003-06-30 21:59:07 +000012983echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12984echo "${ECHO_T}$ld_shlibs" >&6
12985test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012986
John Criswell47fdd832003-07-14 16:52:07 +000012987variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12988if test "$GCC" = yes; then
12989 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12990fi
12991
12992#
12993# Do we need to explicitly link libc?
12994#
12995case "x$archive_cmds_need_lc" in
12996x|xyes)
12997 # Assume -lc should be added
12998 archive_cmds_need_lc=yes
12999
13000 if test "$enable_shared" = yes && test "$GCC" = yes; then
13001 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013002 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000013003 # FIXME: we may have to deal with multi-command sequences.
13004 ;;
13005 '$CC '*)
13006 # Test whether the compiler implicitly links with -lc since on some
13007 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13008 # to ld, don't add -lc before -lgcc.
13009 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13010echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13011 $rm conftest*
13012 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13013
13014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13015 (eval $ac_compile) 2>&5
13016 ac_status=$?
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } 2>conftest.err; then
13019 soname=conftest
13020 lib=conftest
13021 libobjs=conftest.$ac_objext
13022 deplibs=
13023 wl=$lt_prog_compiler_wl
13024 compiler_flags=-v
13025 linker_flags=-v
13026 verstring=
13027 output_objdir=.
13028 libname=conftest
13029 lt_save_allow_undefined_flag=$allow_undefined_flag
13030 allow_undefined_flag=
13031 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13032 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13033 ac_status=$?
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }
13036 then
13037 archive_cmds_need_lc=no
13038 else
13039 archive_cmds_need_lc=yes
13040 fi
13041 allow_undefined_flag=$lt_save_allow_undefined_flag
13042 else
13043 cat conftest.err 1>&5
13044 fi
13045 $rm conftest*
13046 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13047echo "${ECHO_T}$archive_cmds_need_lc" >&6
13048 ;;
13049 esac
13050 fi
13051 ;;
13052esac
13053
John Criswell7a73b802003-06-30 21:59:07 +000013054echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13055echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13056library_names_spec=
13057libname_spec='lib$name'
13058soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013059shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013060postinstall_cmds=
13061postuninstall_cmds=
13062finish_cmds=
13063finish_eval=
13064shlibpath_var=
13065shlibpath_overrides_runpath=unknown
13066version_type=none
13067dynamic_linker="$host_os ld.so"
13068sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013069if test "$GCC" = yes; then
13070 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13071 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13072 # if the path contains ";" then we assume it to be the separator
13073 # otherwise default to the standard path separator (i.e. ":") - it is
13074 # assumed that no part of a normal pathname contains ";" but that should
13075 # okay in the real world where ";" in dirpaths is itself problematic.
13076 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13077 else
13078 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13079 fi
13080else
13081 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13082fi
13083need_lib_prefix=unknown
13084hardcode_into_libs=no
13085
13086# when you set need_version to no, make sure it does not cause -set_version
13087# flags to be left without arguments
13088need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013089
13090case $host_os in
13091aix3*)
13092 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013093 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013094 shlibpath_var=LIBPATH
13095
John Criswell47fdd832003-07-14 16:52:07 +000013096 # AIX 3 has no versioning support, so we append a major version to the name.
13097 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013098 ;;
13099
13100aix4* | aix5*)
13101 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013102 need_lib_prefix=no
13103 need_version=no
13104 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013105 if test "$host_cpu" = ia64; then
13106 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013107 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013108 shlibpath_var=LD_LIBRARY_PATH
13109 else
13110 # With GCC up to 2.95.x, collect2 would create an import file
13111 # for dependence libraries. The import file would start with
13112 # the line `#! .'. This would cause the generated library to
13113 # depend on `.', always an invalid library. This was fixed in
13114 # development snapshots of GCC prior to 3.0.
13115 case $host_os in
13116 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013117 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13118 echo ' yes '
13119 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13120 :
13121 else
13122 can_build_shared=no
13123 fi
13124 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013125 esac
John Criswell47fdd832003-07-14 16:52:07 +000013126 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13127 # soname into executable. Probably we can add versioning support to
13128 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013129 if test "$aix_use_runtimelinking" = yes; then
13130 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13131 # instead of lib<name>.a to let people know that these are not
13132 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013134 else
13135 # We preserve .a as extension for shared libraries through AIX4.2
13136 # and later when we are not doing run time linking.
13137 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013138 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013139 fi
13140 shlibpath_var=LIBPATH
13141 fi
13142 ;;
13143
13144amigaos*)
13145 library_names_spec='$libname.ixlibrary $libname.a'
13146 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013147 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 +000013148 ;;
13149
13150beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013151 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013152 dynamic_linker="$host_os ld.so"
13153 shlibpath_var=LIBRARY_PATH
13154 ;;
13155
Reid Spencer2706f8c2004-09-19 23:53:36 +000013156bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013157 version_type=linux
13158 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13160 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013161 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13162 shlibpath_var=LD_LIBRARY_PATH
13163 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13164 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013165 # the default ld.so.conf also contains /usr/contrib/lib and
13166 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13167 # libtool to hard-code these into programs
13168 ;;
13169
13170cygwin* | mingw* | pw32*)
13171 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013172 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013173 need_version=no
13174 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013175
John Criswell7a73b802003-06-30 21:59:07 +000013176 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013177 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013178 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013179 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013180 postinstall_cmds='base_file=`basename \${file}`~
13181 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13182 dldir=$destdir/`dirname \$dlpath`~
13183 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013184 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013185 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13186 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013187 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013188 shlibpath_overrides_runpath=yes
13189
13190 case $host_os in
13191 cygwin*)
13192 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13193 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 +000013194 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013195 ;;
13196 mingw*)
13197 # MinGW DLLs use traditional 'lib' prefix
13198 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13199 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13200 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13201 # It is most probably a Windows format PATH printed by
13202 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13203 # path with ; separators, and with drive letters. We can handle the
13204 # drive letters (cygwin fileutils understands them), so leave them,
13205 # especially as we might pass files found there to a mingw objdump,
13206 # which wouldn't understand a cygwinified path. Ahh.
13207 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13208 else
13209 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13210 fi
13211 ;;
13212 pw32*)
13213 # pw32 DLLs use 'pw' prefix rather than 'lib'
13214 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13215 ;;
13216 esac
John Criswell7a73b802003-06-30 21:59:07 +000013217 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013218
John Criswell7a73b802003-06-30 21:59:07 +000013219 *)
John Criswell47fdd832003-07-14 16:52:07 +000013220 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013221 ;;
13222 esac
13223 dynamic_linker='Win32 ld.exe'
13224 # FIXME: first we should search . and the directory the executable is in
13225 shlibpath_var=PATH
13226 ;;
13227
13228darwin* | rhapsody*)
13229 dynamic_linker="$host_os dyld"
13230 version_type=darwin
13231 need_lib_prefix=no
13232 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013233 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013234 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013235 shlibpath_overrides_runpath=yes
13236 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013237 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013238 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013239 if test "$GCC" = yes; then
13240 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"`
13241 else
13242 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013243 fi
13244 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13245 ;;
13246
13247dgux*)
13248 version_type=linux
13249 need_lib_prefix=no
13250 need_version=no
13251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13252 soname_spec='${libname}${release}${shared_ext}$major'
13253 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013254 ;;
13255
13256freebsd1*)
13257 dynamic_linker=no
13258 ;;
13259
Reid Spencer2706f8c2004-09-19 23:53:36 +000013260kfreebsd*-gnu)
13261 version_type=linux
13262 need_lib_prefix=no
13263 need_version=no
13264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13265 soname_spec='${libname}${release}${shared_ext}$major'
13266 shlibpath_var=LD_LIBRARY_PATH
13267 shlibpath_overrides_runpath=no
13268 hardcode_into_libs=yes
13269 dynamic_linker='GNU ld.so'
13270 ;;
13271
John Criswell7a73b802003-06-30 21:59:07 +000013272freebsd*)
13273 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13274 version_type=freebsd-$objformat
13275 case $version_type in
13276 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013278 need_version=no
13279 need_lib_prefix=no
13280 ;;
13281 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013282 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013283 need_version=yes
13284 ;;
13285 esac
13286 shlibpath_var=LD_LIBRARY_PATH
13287 case $host_os in
13288 freebsd2*)
13289 shlibpath_overrides_runpath=yes
13290 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013291 freebsd3.01* | freebsdelf3.01*)
13292 shlibpath_overrides_runpath=yes
13293 hardcode_into_libs=yes
13294 ;;
13295 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013296 shlibpath_overrides_runpath=no
13297 hardcode_into_libs=yes
13298 ;;
13299 esac
13300 ;;
13301
13302gnu*)
13303 version_type=linux
13304 need_lib_prefix=no
13305 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13307 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013308 shlibpath_var=LD_LIBRARY_PATH
13309 hardcode_into_libs=yes
13310 ;;
13311
13312hpux9* | hpux10* | hpux11*)
13313 # Give a soname corresponding to the major version so that dld.sl refuses to
13314 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013315 version_type=sunos
13316 need_lib_prefix=no
13317 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013318 case "$host_cpu" in
13319 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013320 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013321 hardcode_into_libs=yes
13322 dynamic_linker="$host_os dld.so"
13323 shlibpath_var=LD_LIBRARY_PATH
13324 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13326 soname_spec='${libname}${release}${shared_ext}$major'
13327 if test "X$HPUX_IA64_MODE" = X32; then
13328 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13329 else
13330 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13331 fi
13332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13333 ;;
13334 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013335 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013336 hardcode_into_libs=yes
13337 dynamic_linker="$host_os dld.sl"
13338 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13339 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13341 soname_spec='${libname}${release}${shared_ext}$major'
13342 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13344 ;;
13345 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013346 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013347 dynamic_linker="$host_os dld.sl"
13348 shlibpath_var=SHLIB_PATH
13349 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13351 soname_spec='${libname}${release}${shared_ext}$major'
13352 ;;
13353 esac
John Criswell7a73b802003-06-30 21:59:07 +000013354 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13355 postinstall_cmds='chmod 555 $lib'
13356 ;;
13357
John Criswell47fdd832003-07-14 16:52:07 +000013358irix5* | irix6* | nonstopux*)
13359 case $host_os in
13360 nonstopux*) version_type=nonstopux ;;
13361 *)
13362 if test "$lt_cv_prog_gnu_ld" = yes; then
13363 version_type=linux
13364 else
13365 version_type=irix
13366 fi ;;
13367 esac
John Criswell7a73b802003-06-30 21:59:07 +000013368 need_lib_prefix=no
13369 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013370 soname_spec='${libname}${release}${shared_ext}$major'
13371 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 +000013372 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013373 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013374 libsuff= shlibsuff=
13375 ;;
13376 *)
13377 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013378 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13379 libsuff= shlibsuff= libmagic=32-bit;;
13380 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13381 libsuff=32 shlibsuff=N32 libmagic=N32;;
13382 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13383 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013384 *) libsuff= shlibsuff= libmagic=never-match;;
13385 esac
13386 ;;
13387 esac
13388 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13389 shlibpath_overrides_runpath=no
13390 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13391 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013392 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013393 ;;
13394
13395# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013396linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013397 dynamic_linker=no
13398 ;;
13399
13400# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013401linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013402 version_type=linux
13403 need_lib_prefix=no
13404 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13406 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13408 shlibpath_var=LD_LIBRARY_PATH
13409 shlibpath_overrides_runpath=no
13410 # This implies no fast_install, which is unacceptable.
13411 # Some rework will be needed to allow for fast_install
13412 # before this can be enabled.
13413 hardcode_into_libs=yes
13414
Reid Spencer2706f8c2004-09-19 23:53:36 +000013415 # Append ld.so.conf contents to the search path
13416 if test -f /etc/ld.so.conf; then
13417 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13418 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13419 fi
13420
John Criswell7a73b802003-06-30 21:59:07 +000013421 # We used to test for /lib/ld.so.1 and disable shared libraries on
13422 # powerpc, because MkLinux only supported shared libraries with the
13423 # GNU dynamic linker. Since this was broken with cross compilers,
13424 # most powerpc-linux boxes support dynamic linking these days and
13425 # people can always --disable-shared, the test was removed, and we
13426 # assume the GNU/Linux dynamic linker is in use.
13427 dynamic_linker='GNU/Linux ld.so'
13428 ;;
13429
Reid Spencer2706f8c2004-09-19 23:53:36 +000013430knetbsd*-gnu)
13431 version_type=linux
13432 need_lib_prefix=no
13433 need_version=no
13434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13435 soname_spec='${libname}${release}${shared_ext}$major'
13436 shlibpath_var=LD_LIBRARY_PATH
13437 shlibpath_overrides_runpath=no
13438 hardcode_into_libs=yes
13439 dynamic_linker='GNU ld.so'
13440 ;;
13441
John Criswell7a73b802003-06-30 21:59:07 +000013442netbsd*)
13443 version_type=sunos
13444 need_lib_prefix=no
13445 need_version=no
13446 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13449 dynamic_linker='NetBSD (a.out) ld.so'
13450 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013452 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013453 dynamic_linker='NetBSD ld.elf_so'
13454 fi
13455 shlibpath_var=LD_LIBRARY_PATH
13456 shlibpath_overrides_runpath=yes
13457 hardcode_into_libs=yes
13458 ;;
13459
13460newsos6)
13461 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13463 shlibpath_var=LD_LIBRARY_PATH
13464 shlibpath_overrides_runpath=yes
13465 ;;
13466
Reid Spencer2706f8c2004-09-19 23:53:36 +000013467nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013468 version_type=linux
13469 need_lib_prefix=no
13470 need_version=no
13471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13472 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013473 shlibpath_var=LD_LIBRARY_PATH
13474 shlibpath_overrides_runpath=yes
13475 ;;
13476
13477openbsd*)
13478 version_type=sunos
13479 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013480 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13482 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13483 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013484 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 +000013485 case $host_os in
13486 openbsd2.[89] | openbsd2.[89].*)
13487 shlibpath_overrides_runpath=no
13488 ;;
13489 *)
13490 shlibpath_overrides_runpath=yes
13491 ;;
13492 esac
John Criswell7a73b802003-06-30 21:59:07 +000013493 else
13494 shlibpath_overrides_runpath=yes
13495 fi
John Criswell7a73b802003-06-30 21:59:07 +000013496 ;;
13497
13498os2*)
13499 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013500 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013501 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013502 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013503 dynamic_linker='OS/2 ld.exe'
13504 shlibpath_var=LIBPATH
13505 ;;
13506
13507osf3* | osf4* | osf5*)
13508 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013509 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013510 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013511 soname_spec='${libname}${release}${shared_ext}$major'
13512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013513 shlibpath_var=LD_LIBRARY_PATH
13514 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13515 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13516 ;;
13517
13518sco3.2v5*)
13519 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013520 soname_spec='${libname}${release}${shared_ext}$major'
13521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013522 shlibpath_var=LD_LIBRARY_PATH
13523 ;;
13524
13525solaris*)
13526 version_type=linux
13527 need_lib_prefix=no
13528 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13530 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013531 shlibpath_var=LD_LIBRARY_PATH
13532 shlibpath_overrides_runpath=yes
13533 hardcode_into_libs=yes
13534 # ldd complains unless libraries are executable
13535 postinstall_cmds='chmod +x $lib'
13536 ;;
13537
13538sunos4*)
13539 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013541 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13542 shlibpath_var=LD_LIBRARY_PATH
13543 shlibpath_overrides_runpath=yes
13544 if test "$with_gnu_ld" = yes; then
13545 need_lib_prefix=no
13546 fi
13547 need_version=yes
13548 ;;
13549
13550sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13551 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13553 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013554 shlibpath_var=LD_LIBRARY_PATH
13555 case $host_vendor in
13556 sni)
13557 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013558 need_lib_prefix=no
13559 export_dynamic_flag_spec='${wl}-Blargedynsym'
13560 runpath_var=LD_RUN_PATH
13561 ;;
13562 siemens)
13563 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013564 ;;
13565 motorola)
13566 need_lib_prefix=no
13567 need_version=no
13568 shlibpath_overrides_runpath=no
13569 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13570 ;;
13571 esac
13572 ;;
13573
John Criswell7a73b802003-06-30 21:59:07 +000013574sysv4*MP*)
13575 if test -d /usr/nec ;then
13576 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013577 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13578 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013579 shlibpath_var=LD_LIBRARY_PATH
13580 fi
13581 ;;
13582
John Criswell47fdd832003-07-14 16:52:07 +000013583uts4*)
13584 version_type=linux
13585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13586 soname_spec='${libname}${release}${shared_ext}$major'
13587 shlibpath_var=LD_LIBRARY_PATH
13588 ;;
13589
John Criswell7a73b802003-06-30 21:59:07 +000013590*)
13591 dynamic_linker=no
13592 ;;
13593esac
13594echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13595echo "${ECHO_T}$dynamic_linker" >&6
13596test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013597
Reid Spencer2706f8c2004-09-19 23:53:36 +000013598echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13599echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13600hardcode_action=
13601if test -n "$hardcode_libdir_flag_spec" || \
13602 test -n "$runpath_var" || \
13603 test "X$hardcode_automatic" = "Xyes" ; then
13604
13605 # We can hardcode non-existant directories.
13606 if test "$hardcode_direct" != no &&
13607 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13608 # have to relink, otherwise we might link with an installed library
13609 # when we should be linking with a yet-to-be-installed one
13610 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13611 test "$hardcode_minus_L" != no; then
13612 # Linking always hardcodes the temporary library directory.
13613 hardcode_action=relink
13614 else
13615 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13616 hardcode_action=immediate
13617 fi
13618else
13619 # We cannot hardcode anything, or else we can only hardcode existing
13620 # directories.
13621 hardcode_action=unsupported
13622fi
13623echo "$as_me:$LINENO: result: $hardcode_action" >&5
13624echo "${ECHO_T}$hardcode_action" >&6
13625
13626if test "$hardcode_action" = relink; then
13627 # Fast installation is not supported
13628 enable_fast_install=no
13629elif test "$shlibpath_overrides_runpath" = yes ||
13630 test "$enable_shared" = no; then
13631 # Fast installation is not necessary
13632 enable_fast_install=needless
13633fi
13634
13635striplib=
13636old_striplib=
13637echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13638echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13639if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13640 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13641 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13642 echo "$as_me:$LINENO: result: yes" >&5
13643echo "${ECHO_T}yes" >&6
13644else
13645# FIXME - insert some real tests, host_os isn't really good enough
13646 case $host_os in
13647 darwin*)
13648 if test -n "$STRIP" ; then
13649 striplib="$STRIP -x"
13650 echo "$as_me:$LINENO: result: yes" >&5
13651echo "${ECHO_T}yes" >&6
13652 else
13653 echo "$as_me:$LINENO: result: no" >&5
13654echo "${ECHO_T}no" >&6
13655fi
13656 ;;
13657 *)
13658 echo "$as_me:$LINENO: result: no" >&5
13659echo "${ECHO_T}no" >&6
13660 ;;
13661 esac
13662fi
13663
John Criswell7a73b802003-06-30 21:59:07 +000013664if test "x$enable_dlopen" != xyes; then
13665 enable_dlopen=unknown
13666 enable_dlopen_self=unknown
13667 enable_dlopen_self_static=unknown
13668else
13669 lt_cv_dlopen=no
13670 lt_cv_dlopen_libs=
13671
13672 case $host_os in
13673 beos*)
13674 lt_cv_dlopen="load_add_on"
13675 lt_cv_dlopen_libs=
13676 lt_cv_dlopen_self=yes
13677 ;;
13678
John Criswell47fdd832003-07-14 16:52:07 +000013679 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013680 lt_cv_dlopen="LoadLibrary"
13681 lt_cv_dlopen_libs=
13682 ;;
13683
John Criswell47fdd832003-07-14 16:52:07 +000013684 cygwin*)
13685 lt_cv_dlopen="dlopen"
13686 lt_cv_dlopen_libs=
13687 ;;
13688
13689 darwin*)
13690 # if libdl is installed we need to link against it
13691 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13692echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13693if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13694 echo $ECHO_N "(cached) $ECHO_C" >&6
13695else
13696 ac_check_lib_save_LIBS=$LIBS
13697LIBS="-ldl $LIBS"
13698cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013699/* confdefs.h. */
13700_ACEOF
13701cat confdefs.h >>conftest.$ac_ext
13702cat >>conftest.$ac_ext <<_ACEOF
13703/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013704
13705/* Override any gcc2 internal prototype to avoid an error. */
13706#ifdef __cplusplus
13707extern "C"
13708#endif
13709/* We use char because int might match the return type of a gcc2
13710 builtin and then its argument prototype would still apply. */
13711char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013712int
13713main ()
13714{
13715dlopen ();
13716 ;
13717 return 0;
13718}
13719_ACEOF
13720rm -f conftest.$ac_objext conftest$ac_exeext
13721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013722 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013723 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013724 grep -v '^ *+' conftest.er1 >conftest.err
13725 rm -f conftest.er1
13726 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013729 { ac_try='test -z "$ac_c_werror_flag"
13730 || test ! -s conftest.err'
13731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732 (eval $ac_try) 2>&5
13733 ac_status=$?
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; } &&
13736 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738 (eval $ac_try) 2>&5
13739 ac_status=$?
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; }; then
13742 ac_cv_lib_dl_dlopen=yes
13743else
13744 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013745sed 's/^/| /' conftest.$ac_ext >&5
13746
John Criswell47fdd832003-07-14 16:52:07 +000013747ac_cv_lib_dl_dlopen=no
13748fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013749rm -f conftest.err conftest.$ac_objext \
13750 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013751LIBS=$ac_check_lib_save_LIBS
13752fi
13753echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13754echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13755if test $ac_cv_lib_dl_dlopen = yes; then
13756 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13757else
13758
13759 lt_cv_dlopen="dyld"
13760 lt_cv_dlopen_libs=
13761 lt_cv_dlopen_self=yes
13762
13763fi
13764
13765 ;;
13766
John Criswell7a73b802003-06-30 21:59:07 +000013767 *)
13768 echo "$as_me:$LINENO: checking for shl_load" >&5
13769echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13770if test "${ac_cv_func_shl_load+set}" = set; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13772else
13773 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013774/* confdefs.h. */
13775_ACEOF
13776cat confdefs.h >>conftest.$ac_ext
13777cat >>conftest.$ac_ext <<_ACEOF
13778/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013779/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13781#define shl_load innocuous_shl_load
13782
John Criswell7a73b802003-06-30 21:59:07 +000013783/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013784 which can conflict with char shl_load (); below.
13785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13786 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013787
John Criswell0c38eaf2003-09-10 15:17:25 +000013788#ifdef __STDC__
13789# include <limits.h>
13790#else
13791# include <assert.h>
13792#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013793
13794#undef shl_load
13795
John Criswell7a73b802003-06-30 21:59:07 +000013796/* Override any gcc2 internal prototype to avoid an error. */
13797#ifdef __cplusplus
13798extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013799{
John Criswell7a73b802003-06-30 21:59:07 +000013800#endif
13801/* We use char because int might match the return type of a gcc2
13802 builtin and then its argument prototype would still apply. */
13803char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013804/* The GNU C library defines this for functions which it implements
13805 to always fail with ENOSYS. Some functions are actually named
13806 something starting with __ and the normal name is an alias. */
13807#if defined (__stub_shl_load) || defined (__stub___shl_load)
13808choke me
13809#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013810char (*f) () = shl_load;
13811#endif
13812#ifdef __cplusplus
13813}
John Criswell7a73b802003-06-30 21:59:07 +000013814#endif
13815
John Criswell0c38eaf2003-09-10 15:17:25 +000013816int
13817main ()
13818{
13819return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000013820 ;
13821 return 0;
13822}
13823_ACEOF
13824rm -f conftest.$ac_objext conftest$ac_exeext
13825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013826 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013827 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013828 grep -v '^ *+' conftest.er1 >conftest.err
13829 rm -f conftest.er1
13830 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013833 { ac_try='test -z "$ac_c_werror_flag"
13834 || test ! -s conftest.err'
13835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836 (eval $ac_try) 2>&5
13837 ac_status=$?
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; } &&
13840 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13842 (eval $ac_try) 2>&5
13843 ac_status=$?
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; }; then
13846 ac_cv_func_shl_load=yes
13847else
13848 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013849sed 's/^/| /' conftest.$ac_ext >&5
13850
John Criswell7a73b802003-06-30 21:59:07 +000013851ac_cv_func_shl_load=no
13852fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013853rm -f conftest.err conftest.$ac_objext \
13854 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013855fi
13856echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13857echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13858if test $ac_cv_func_shl_load = yes; then
13859 lt_cv_dlopen="shl_load"
13860else
13861 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13862echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13863if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13865else
13866 ac_check_lib_save_LIBS=$LIBS
13867LIBS="-ldld $LIBS"
13868cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013869/* confdefs.h. */
13870_ACEOF
13871cat confdefs.h >>conftest.$ac_ext
13872cat >>conftest.$ac_ext <<_ACEOF
13873/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013874
13875/* Override any gcc2 internal prototype to avoid an error. */
13876#ifdef __cplusplus
13877extern "C"
13878#endif
13879/* We use char because int might match the return type of a gcc2
13880 builtin and then its argument prototype would still apply. */
13881char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013882int
13883main ()
13884{
13885shl_load ();
13886 ;
13887 return 0;
13888}
13889_ACEOF
13890rm -f conftest.$ac_objext conftest$ac_exeext
13891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013892 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013893 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013894 grep -v '^ *+' conftest.er1 >conftest.err
13895 rm -f conftest.er1
13896 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013899 { ac_try='test -z "$ac_c_werror_flag"
13900 || test ! -s conftest.err'
13901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13902 (eval $ac_try) 2>&5
13903 ac_status=$?
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); }; } &&
13906 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13908 (eval $ac_try) 2>&5
13909 ac_status=$?
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; }; then
13912 ac_cv_lib_dld_shl_load=yes
13913else
13914 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013915sed 's/^/| /' conftest.$ac_ext >&5
13916
John Criswell7a73b802003-06-30 21:59:07 +000013917ac_cv_lib_dld_shl_load=no
13918fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013919rm -f conftest.err conftest.$ac_objext \
13920 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013921LIBS=$ac_check_lib_save_LIBS
13922fi
13923echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13924echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13925if test $ac_cv_lib_dld_shl_load = yes; then
13926 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13927else
13928 echo "$as_me:$LINENO: checking for dlopen" >&5
13929echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13930if test "${ac_cv_func_dlopen+set}" = set; then
13931 echo $ECHO_N "(cached) $ECHO_C" >&6
13932else
13933 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013934/* confdefs.h. */
13935_ACEOF
13936cat confdefs.h >>conftest.$ac_ext
13937cat >>conftest.$ac_ext <<_ACEOF
13938/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013939/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13941#define dlopen innocuous_dlopen
13942
John Criswell7a73b802003-06-30 21:59:07 +000013943/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013944 which can conflict with char dlopen (); below.
13945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13946 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013947
John Criswell0c38eaf2003-09-10 15:17:25 +000013948#ifdef __STDC__
13949# include <limits.h>
13950#else
13951# include <assert.h>
13952#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013953
13954#undef dlopen
13955
John Criswell7a73b802003-06-30 21:59:07 +000013956/* Override any gcc2 internal prototype to avoid an error. */
13957#ifdef __cplusplus
13958extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013959{
John Criswell7a73b802003-06-30 21:59:07 +000013960#endif
13961/* We use char because int might match the return type of a gcc2
13962 builtin and then its argument prototype would still apply. */
13963char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013964/* The GNU C library defines this for functions which it implements
13965 to always fail with ENOSYS. Some functions are actually named
13966 something starting with __ and the normal name is an alias. */
13967#if defined (__stub_dlopen) || defined (__stub___dlopen)
13968choke me
13969#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013970char (*f) () = dlopen;
13971#endif
13972#ifdef __cplusplus
13973}
John Criswell7a73b802003-06-30 21:59:07 +000013974#endif
13975
John Criswell0c38eaf2003-09-10 15:17:25 +000013976int
13977main ()
13978{
13979return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000013980 ;
13981 return 0;
13982}
13983_ACEOF
13984rm -f conftest.$ac_objext conftest$ac_exeext
13985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013986 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013987 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013988 grep -v '^ *+' conftest.er1 >conftest.err
13989 rm -f conftest.er1
13990 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013993 { ac_try='test -z "$ac_c_werror_flag"
13994 || test ! -s conftest.err'
13995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13996 (eval $ac_try) 2>&5
13997 ac_status=$?
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); }; } &&
14000 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14002 (eval $ac_try) 2>&5
14003 ac_status=$?
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); }; }; then
14006 ac_cv_func_dlopen=yes
14007else
14008 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014009sed 's/^/| /' conftest.$ac_ext >&5
14010
John Criswell7a73b802003-06-30 21:59:07 +000014011ac_cv_func_dlopen=no
14012fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014013rm -f conftest.err conftest.$ac_objext \
14014 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014015fi
14016echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14017echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14018if test $ac_cv_func_dlopen = yes; then
14019 lt_cv_dlopen="dlopen"
14020else
14021 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14022echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14023if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14024 echo $ECHO_N "(cached) $ECHO_C" >&6
14025else
14026 ac_check_lib_save_LIBS=$LIBS
14027LIBS="-ldl $LIBS"
14028cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014029/* confdefs.h. */
14030_ACEOF
14031cat confdefs.h >>conftest.$ac_ext
14032cat >>conftest.$ac_ext <<_ACEOF
14033/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014034
14035/* Override any gcc2 internal prototype to avoid an error. */
14036#ifdef __cplusplus
14037extern "C"
14038#endif
14039/* We use char because int might match the return type of a gcc2
14040 builtin and then its argument prototype would still apply. */
14041char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014042int
14043main ()
14044{
14045dlopen ();
14046 ;
14047 return 0;
14048}
14049_ACEOF
14050rm -f conftest.$ac_objext conftest$ac_exeext
14051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014052 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014053 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014054 grep -v '^ *+' conftest.er1 >conftest.err
14055 rm -f conftest.er1
14056 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014059 { ac_try='test -z "$ac_c_werror_flag"
14060 || test ! -s conftest.err'
14061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062 (eval $ac_try) 2>&5
14063 ac_status=$?
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; } &&
14066 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14069 ac_status=$?
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; }; then
14072 ac_cv_lib_dl_dlopen=yes
14073else
14074 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014075sed 's/^/| /' conftest.$ac_ext >&5
14076
John Criswell7a73b802003-06-30 21:59:07 +000014077ac_cv_lib_dl_dlopen=no
14078fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014079rm -f conftest.err conftest.$ac_objext \
14080 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014081LIBS=$ac_check_lib_save_LIBS
14082fi
14083echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14084echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14085if test $ac_cv_lib_dl_dlopen = yes; then
14086 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14087else
14088 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14089echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14090if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14091 echo $ECHO_N "(cached) $ECHO_C" >&6
14092else
14093 ac_check_lib_save_LIBS=$LIBS
14094LIBS="-lsvld $LIBS"
14095cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014096/* confdefs.h. */
14097_ACEOF
14098cat confdefs.h >>conftest.$ac_ext
14099cat >>conftest.$ac_ext <<_ACEOF
14100/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014101
14102/* Override any gcc2 internal prototype to avoid an error. */
14103#ifdef __cplusplus
14104extern "C"
14105#endif
14106/* We use char because int might match the return type of a gcc2
14107 builtin and then its argument prototype would still apply. */
14108char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014109int
14110main ()
14111{
14112dlopen ();
14113 ;
14114 return 0;
14115}
14116_ACEOF
14117rm -f conftest.$ac_objext conftest$ac_exeext
14118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014119 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014120 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014121 grep -v '^ *+' conftest.er1 >conftest.err
14122 rm -f conftest.er1
14123 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014126 { ac_try='test -z "$ac_c_werror_flag"
14127 || test ! -s conftest.err'
14128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14129 (eval $ac_try) 2>&5
14130 ac_status=$?
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); }; } &&
14133 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14135 (eval $ac_try) 2>&5
14136 ac_status=$?
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); }; }; then
14139 ac_cv_lib_svld_dlopen=yes
14140else
14141 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014142sed 's/^/| /' conftest.$ac_ext >&5
14143
John Criswell7a73b802003-06-30 21:59:07 +000014144ac_cv_lib_svld_dlopen=no
14145fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014146rm -f conftest.err conftest.$ac_objext \
14147 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014148LIBS=$ac_check_lib_save_LIBS
14149fi
14150echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14151echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14152if test $ac_cv_lib_svld_dlopen = yes; then
14153 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14154else
14155 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14156echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14157if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14158 echo $ECHO_N "(cached) $ECHO_C" >&6
14159else
14160 ac_check_lib_save_LIBS=$LIBS
14161LIBS="-ldld $LIBS"
14162cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014163/* confdefs.h. */
14164_ACEOF
14165cat confdefs.h >>conftest.$ac_ext
14166cat >>conftest.$ac_ext <<_ACEOF
14167/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014168
14169/* Override any gcc2 internal prototype to avoid an error. */
14170#ifdef __cplusplus
14171extern "C"
14172#endif
14173/* We use char because int might match the return type of a gcc2
14174 builtin and then its argument prototype would still apply. */
14175char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014176int
14177main ()
14178{
14179dld_link ();
14180 ;
14181 return 0;
14182}
14183_ACEOF
14184rm -f conftest.$ac_objext conftest$ac_exeext
14185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014186 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014187 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014188 grep -v '^ *+' conftest.er1 >conftest.err
14189 rm -f conftest.er1
14190 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014193 { ac_try='test -z "$ac_c_werror_flag"
14194 || test ! -s conftest.err'
14195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196 (eval $ac_try) 2>&5
14197 ac_status=$?
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); }; } &&
14200 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202 (eval $ac_try) 2>&5
14203 ac_status=$?
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; }; then
14206 ac_cv_lib_dld_dld_link=yes
14207else
14208 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014209sed 's/^/| /' conftest.$ac_ext >&5
14210
John Criswell7a73b802003-06-30 21:59:07 +000014211ac_cv_lib_dld_dld_link=no
14212fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014213rm -f conftest.err conftest.$ac_objext \
14214 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014215LIBS=$ac_check_lib_save_LIBS
14216fi
14217echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14218echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14219if test $ac_cv_lib_dld_dld_link = yes; then
14220 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14221fi
14222
14223
14224fi
14225
14226
14227fi
14228
14229
14230fi
14231
14232
14233fi
14234
14235
14236fi
14237
14238 ;;
14239 esac
14240
14241 if test "x$lt_cv_dlopen" != xno; then
14242 enable_dlopen=yes
14243 else
14244 enable_dlopen=no
14245 fi
14246
14247 case $lt_cv_dlopen in
14248 dlopen)
14249 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014250 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014251
14252 save_LDFLAGS="$LDFLAGS"
14253 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14254
14255 save_LIBS="$LIBS"
14256 LIBS="$lt_cv_dlopen_libs $LIBS"
14257
14258 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14259echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14260if test "${lt_cv_dlopen_self+set}" = set; then
14261 echo $ECHO_N "(cached) $ECHO_C" >&6
14262else
14263 if test "$cross_compiling" = yes; then :
14264 lt_cv_dlopen_self=cross
14265else
John Criswell47fdd832003-07-14 16:52:07 +000014266 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014267 lt_status=$lt_dlunknown
14268 cat > conftest.$ac_ext <<EOF
Reid Spencer95ed8432004-12-23 06:22:33 +000014269#line 14269 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014270#include "confdefs.h"
14271
14272#if HAVE_DLFCN_H
14273#include <dlfcn.h>
14274#endif
14275
14276#include <stdio.h>
14277
14278#ifdef RTLD_GLOBAL
14279# define LT_DLGLOBAL RTLD_GLOBAL
14280#else
14281# ifdef DL_GLOBAL
14282# define LT_DLGLOBAL DL_GLOBAL
14283# else
14284# define LT_DLGLOBAL 0
14285# endif
14286#endif
14287
14288/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14289 find out it does not work in some platform. */
14290#ifndef LT_DLLAZY_OR_NOW
14291# ifdef RTLD_LAZY
14292# define LT_DLLAZY_OR_NOW RTLD_LAZY
14293# else
14294# ifdef DL_LAZY
14295# define LT_DLLAZY_OR_NOW DL_LAZY
14296# else
14297# ifdef RTLD_NOW
14298# define LT_DLLAZY_OR_NOW RTLD_NOW
14299# else
14300# ifdef DL_NOW
14301# define LT_DLLAZY_OR_NOW DL_NOW
14302# else
14303# define LT_DLLAZY_OR_NOW 0
14304# endif
14305# endif
14306# endif
14307# endif
14308#endif
14309
14310#ifdef __cplusplus
14311extern "C" void exit (int);
14312#endif
14313
14314void fnord() { int i=42;}
14315int main ()
14316{
14317 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14318 int status = $lt_dlunknown;
14319
14320 if (self)
14321 {
14322 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14323 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14324 /* dlclose (self); */
14325 }
14326
14327 exit (status);
14328}
14329EOF
14330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14331 (eval $ac_link) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14335 (./conftest; exit; ) 2>/dev/null
14336 lt_status=$?
14337 case x$lt_status in
14338 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14339 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14340 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14341 esac
14342 else :
14343 # compilation failed
14344 lt_cv_dlopen_self=no
14345 fi
14346fi
14347rm -fr conftest*
14348
14349
14350fi
14351echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14352echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14353
14354 if test "x$lt_cv_dlopen_self" = xyes; then
14355 LDFLAGS="$LDFLAGS $link_static_flag"
14356 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14357echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14358if test "${lt_cv_dlopen_self_static+set}" = set; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14360else
14361 if test "$cross_compiling" = yes; then :
14362 lt_cv_dlopen_self_static=cross
14363else
John Criswell47fdd832003-07-14 16:52:07 +000014364 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014365 lt_status=$lt_dlunknown
14366 cat > conftest.$ac_ext <<EOF
Reid Spencer95ed8432004-12-23 06:22:33 +000014367#line 14367 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014368#include "confdefs.h"
14369
14370#if HAVE_DLFCN_H
14371#include <dlfcn.h>
14372#endif
14373
14374#include <stdio.h>
14375
14376#ifdef RTLD_GLOBAL
14377# define LT_DLGLOBAL RTLD_GLOBAL
14378#else
14379# ifdef DL_GLOBAL
14380# define LT_DLGLOBAL DL_GLOBAL
14381# else
14382# define LT_DLGLOBAL 0
14383# endif
14384#endif
14385
14386/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14387 find out it does not work in some platform. */
14388#ifndef LT_DLLAZY_OR_NOW
14389# ifdef RTLD_LAZY
14390# define LT_DLLAZY_OR_NOW RTLD_LAZY
14391# else
14392# ifdef DL_LAZY
14393# define LT_DLLAZY_OR_NOW DL_LAZY
14394# else
14395# ifdef RTLD_NOW
14396# define LT_DLLAZY_OR_NOW RTLD_NOW
14397# else
14398# ifdef DL_NOW
14399# define LT_DLLAZY_OR_NOW DL_NOW
14400# else
14401# define LT_DLLAZY_OR_NOW 0
14402# endif
14403# endif
14404# endif
14405# endif
14406#endif
14407
14408#ifdef __cplusplus
14409extern "C" void exit (int);
14410#endif
14411
14412void fnord() { int i=42;}
14413int main ()
14414{
14415 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14416 int status = $lt_dlunknown;
14417
14418 if (self)
14419 {
14420 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14421 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14422 /* dlclose (self); */
14423 }
14424
14425 exit (status);
14426}
14427EOF
14428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14429 (eval $ac_link) 2>&5
14430 ac_status=$?
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14433 (./conftest; exit; ) 2>/dev/null
14434 lt_status=$?
14435 case x$lt_status in
14436 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14437 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14438 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14439 esac
14440 else :
14441 # compilation failed
14442 lt_cv_dlopen_self_static=no
14443 fi
14444fi
14445rm -fr conftest*
14446
14447
14448fi
14449echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14450echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14451 fi
14452
14453 CPPFLAGS="$save_CPPFLAGS"
14454 LDFLAGS="$save_LDFLAGS"
14455 LIBS="$save_LIBS"
14456 ;;
14457 esac
14458
14459 case $lt_cv_dlopen_self in
14460 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14461 *) enable_dlopen_self=unknown ;;
14462 esac
14463
14464 case $lt_cv_dlopen_self_static in
14465 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14466 *) enable_dlopen_self_static=unknown ;;
14467 esac
14468fi
14469
14470
John Criswell47fdd832003-07-14 16:52:07 +000014471# Report which librarie types wil actually be built
14472echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14473echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14474echo "$as_me:$LINENO: result: $can_build_shared" >&5
14475echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014476
John Criswell47fdd832003-07-14 16:52:07 +000014477echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14478echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14479test "$can_build_shared" = "no" && enable_shared=no
14480
14481# On AIX, shared libraries and static libraries use the same namespace, and
14482# are all built from PIC.
14483case "$host_os" in
14484aix3*)
14485 test "$enable_shared" = yes && enable_static=no
14486 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014487 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014488 postinstall_cmds='$RANLIB $lib'
14489 fi
14490 ;;
14491
Reid Spencer2706f8c2004-09-19 23:53:36 +000014492aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014493 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14494 test "$enable_shared" = yes && enable_static=no
14495 fi
John Criswell7a73b802003-06-30 21:59:07 +000014496 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014497esac
14498echo "$as_me:$LINENO: result: $enable_shared" >&5
14499echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014500
John Criswell47fdd832003-07-14 16:52:07 +000014501echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14502echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14503# Make sure either enable_shared or enable_static is yes.
14504test "$enable_shared" = yes || enable_static=yes
14505echo "$as_me:$LINENO: result: $enable_static" >&5
14506echo "${ECHO_T}$enable_static" >&6
14507
14508# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014509# libtool distribution, otherwise you forgot to ship ltmain.sh
14510# with your package, and you will get complaints that there are
14511# no rules to generate ltmain.sh.
14512if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014513 # See if we are running on zsh, and set the options which allow our commands through
14514 # without removal of \ escapes.
14515 if test -n "${ZSH_VERSION+set}" ; then
14516 setopt NO_GLOB_SUBST
14517 fi
John Criswell7a73b802003-06-30 21:59:07 +000014518 # Now quote all the things that may contain metacharacters while being
14519 # careful not to overquote the AC_SUBSTed values. We take copies of the
14520 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014521 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14522 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014523 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14524 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14525 deplibs_check_method reload_flag reload_cmds need_locks \
14526 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14527 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014528 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014529 old_postinstall_cmds old_postuninstall_cmds \
14530 compiler \
14531 CC \
14532 LD \
14533 lt_prog_compiler_wl \
14534 lt_prog_compiler_pic \
14535 lt_prog_compiler_static \
14536 lt_prog_compiler_no_builtin_flag \
14537 export_dynamic_flag_spec \
14538 thread_safe_flag_spec \
14539 whole_archive_flag_spec \
14540 enable_shared_with_static_runtimes \
14541 old_archive_cmds \
14542 old_archive_from_new_cmds \
14543 predep_objects \
14544 postdep_objects \
14545 predeps \
14546 postdeps \
14547 compiler_lib_search_path \
14548 archive_cmds \
14549 archive_expsym_cmds \
14550 postinstall_cmds \
14551 postuninstall_cmds \
14552 old_archive_from_expsyms_cmds \
14553 allow_undefined_flag \
14554 no_undefined_flag \
14555 export_symbols_cmds \
14556 hardcode_libdir_flag_spec \
14557 hardcode_libdir_flag_spec_ld \
14558 hardcode_libdir_separator \
14559 hardcode_automatic \
14560 module_cmds \
14561 module_expsym_cmds \
14562 lt_cv_prog_compiler_c_o \
14563 exclude_expsyms \
14564 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014565
14566 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014567 old_archive_cmds | \
14568 old_archive_from_new_cmds | \
14569 archive_cmds | \
14570 archive_expsym_cmds | \
14571 module_cmds | \
14572 module_expsym_cmds | \
14573 old_archive_from_expsyms_cmds | \
14574 export_symbols_cmds | \
14575 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014576 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014577 old_postinstall_cmds | old_postuninstall_cmds | \
14578 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014579 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014580 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 +000014581 ;;
14582 *)
14583 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14584 ;;
14585 esac
14586 done
14587
John Criswell47fdd832003-07-14 16:52:07 +000014588 case $lt_echo in
14589 *'\$0 --fallback-echo"')
14590 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14591 ;;
14592 esac
14593
14594cfgfile="${ofile}T"
14595 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14596 $rm -f "$cfgfile"
14597 { echo "$as_me:$LINENO: creating $ofile" >&5
14598echo "$as_me: creating $ofile" >&6;}
14599
14600 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014601#! $SHELL
14602
John Criswell47fdd832003-07-14 16:52:07 +000014603# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014604# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14605# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14606#
John Criswell47fdd832003-07-14 16:52:07 +000014607# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14608# Free Software Foundation, Inc.
14609#
14610# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014611# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14612#
14613# This program is free software; you can redistribute it and/or modify
14614# it under the terms of the GNU General Public License as published by
14615# the Free Software Foundation; either version 2 of the License, or
14616# (at your option) any later version.
14617#
14618# This program is distributed in the hope that it will be useful, but
14619# WITHOUT ANY WARRANTY; without even the implied warranty of
14620# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14621# General Public License for more details.
14622#
14623# You should have received a copy of the GNU General Public License
14624# along with this program; if not, write to the Free Software
14625# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14626#
14627# As a special exception to the GNU General Public License, if you
14628# distribute this file as part of a program that contains a
14629# configuration script generated by Autoconf, you may include it under
14630# the same distribution terms that you use for the rest of that program.
14631
John Criswell47fdd832003-07-14 16:52:07 +000014632# A sed program that does not truncate output.
14633SED=$lt_SED
14634
John Criswell7a73b802003-06-30 21:59:07 +000014635# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014636Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014637
14638# The HP-UX ksh and POSIX shell print the target directory to stdout
14639# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014640(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014641
John Criswell47fdd832003-07-14 16:52:07 +000014642# The names of the tagged configurations supported by this script.
14643available_tags=
14644
John Criswell7a73b802003-06-30 21:59:07 +000014645# ### BEGIN LIBTOOL CONFIG
14646
14647# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14648
14649# Shell to use when invoking shell scripts.
14650SHELL=$lt_SHELL
14651
14652# Whether or not to build shared libraries.
14653build_libtool_libs=$enable_shared
14654
14655# Whether or not to build static libraries.
14656build_old_libs=$enable_static
14657
14658# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014659build_libtool_need_lc=$archive_cmds_need_lc
14660
14661# Whether or not to disallow shared libs when runtime libs are static
14662allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014663
14664# Whether or not to optimize for fast installation.
14665fast_install=$enable_fast_install
14666
14667# The host system.
14668host_alias=$host_alias
14669host=$host
14670
14671# An echo program that does not interpret backslashes.
14672echo=$lt_echo
14673
14674# The archiver.
14675AR=$lt_AR
14676AR_FLAGS=$lt_AR_FLAGS
14677
John Criswell47fdd832003-07-14 16:52:07 +000014678# A C compiler.
14679LTCC=$lt_LTCC
14680
14681# A language-specific compiler.
14682CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014683
14684# Is the compiler the GNU C compiler?
14685with_gcc=$GCC
14686
John Criswell47fdd832003-07-14 16:52:07 +000014687# An ERE matcher.
14688EGREP=$lt_EGREP
14689
John Criswell7a73b802003-06-30 21:59:07 +000014690# The linker used to build libraries.
14691LD=$lt_LD
14692
14693# Whether we need hard or soft links.
14694LN_S=$lt_LN_S
14695
14696# A BSD-compatible nm program.
14697NM=$lt_NM
14698
14699# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014700STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014701
14702# Used to examine libraries when file_magic_cmd begins "file"
14703MAGIC_CMD=$MAGIC_CMD
14704
14705# Used on cygwin: DLL creation program.
14706DLLTOOL="$DLLTOOL"
14707
14708# Used on cygwin: object dumper.
14709OBJDUMP="$OBJDUMP"
14710
14711# Used on cygwin: assembler.
14712AS="$AS"
14713
14714# The name of the directory that contains temporary libtool files.
14715objdir=$objdir
14716
14717# How to create reloadable object files.
14718reload_flag=$lt_reload_flag
14719reload_cmds=$lt_reload_cmds
14720
14721# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014722wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014723
14724# Object file suffix (normally "o").
14725objext="$ac_objext"
14726
14727# Old archive suffix (normally "a").
14728libext="$libext"
14729
John Criswell47fdd832003-07-14 16:52:07 +000014730# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014731shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014732
John Criswell7a73b802003-06-30 21:59:07 +000014733# Executable file suffix (normally "").
14734exeext="$exeext"
14735
14736# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014737pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014738pic_mode=$pic_mode
14739
John Criswell47fdd832003-07-14 16:52:07 +000014740# What is the maximum length of a command?
14741max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014742
John Criswell47fdd832003-07-14 16:52:07 +000014743# Does compiler simultaneously support -c and -o options?
14744compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014745
14746# Must we lock files when doing compilation ?
14747need_locks=$lt_need_locks
14748
14749# Do we need the lib prefix for modules?
14750need_lib_prefix=$need_lib_prefix
14751
14752# Do we need a version for libraries?
14753need_version=$need_version
14754
14755# Whether dlopen is supported.
14756dlopen_support=$enable_dlopen
14757
14758# Whether dlopen of programs is supported.
14759dlopen_self=$enable_dlopen_self
14760
14761# Whether dlopen of statically linked programs is supported.
14762dlopen_self_static=$enable_dlopen_self_static
14763
14764# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014765link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014766
14767# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014768no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014769
14770# Compiler flag to allow reflexive dlopens.
14771export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14772
14773# Compiler flag to generate shared objects directly from archives.
14774whole_archive_flag_spec=$lt_whole_archive_flag_spec
14775
14776# Compiler flag to generate thread-safe objects.
14777thread_safe_flag_spec=$lt_thread_safe_flag_spec
14778
14779# Library versioning type.
14780version_type=$version_type
14781
14782# Format of library name prefix.
14783libname_spec=$lt_libname_spec
14784
14785# List of archive names. First name is the real one, the rest are links.
14786# The last name is the one that the linker finds with -lNAME.
14787library_names_spec=$lt_library_names_spec
14788
14789# The coded name of the library, if different from the real name.
14790soname_spec=$lt_soname_spec
14791
14792# Commands used to build and install an old-style archive.
14793RANLIB=$lt_RANLIB
14794old_archive_cmds=$lt_old_archive_cmds
14795old_postinstall_cmds=$lt_old_postinstall_cmds
14796old_postuninstall_cmds=$lt_old_postuninstall_cmds
14797
14798# Create an old-style archive from a shared archive.
14799old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14800
14801# Create a temporary old-style archive to link instead of a shared archive.
14802old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14803
14804# Commands used to build and install a shared archive.
14805archive_cmds=$lt_archive_cmds
14806archive_expsym_cmds=$lt_archive_expsym_cmds
14807postinstall_cmds=$lt_postinstall_cmds
14808postuninstall_cmds=$lt_postuninstall_cmds
14809
John Criswell47fdd832003-07-14 16:52:07 +000014810# Commands used to build a loadable module (assumed same as above if empty)
14811module_cmds=$lt_module_cmds
14812module_expsym_cmds=$lt_module_expsym_cmds
14813
John Criswell7a73b802003-06-30 21:59:07 +000014814# Commands to strip libraries.
14815old_striplib=$lt_old_striplib
14816striplib=$lt_striplib
14817
John Criswell47fdd832003-07-14 16:52:07 +000014818# Dependencies to place before the objects being linked to create a
14819# shared library.
14820predep_objects=$lt_predep_objects
14821
14822# Dependencies to place after the objects being linked to create a
14823# shared library.
14824postdep_objects=$lt_postdep_objects
14825
14826# Dependencies to place before the objects being linked to create a
14827# shared library.
14828predeps=$lt_predeps
14829
14830# Dependencies to place after the objects being linked to create a
14831# shared library.
14832postdeps=$lt_postdeps
14833
14834# The library search path used internally by the compiler when linking
14835# a shared library.
14836compiler_lib_search_path=$lt_compiler_lib_search_path
14837
John Criswell7a73b802003-06-30 21:59:07 +000014838# Method to check whether dependent libraries are shared objects.
14839deplibs_check_method=$lt_deplibs_check_method
14840
14841# Command to use when deplibs_check_method == file_magic.
14842file_magic_cmd=$lt_file_magic_cmd
14843
14844# Flag that allows shared libraries with undefined symbols to be built.
14845allow_undefined_flag=$lt_allow_undefined_flag
14846
14847# Flag that forces no undefined symbols.
14848no_undefined_flag=$lt_no_undefined_flag
14849
14850# Commands used to finish a libtool library installation in a directory.
14851finish_cmds=$lt_finish_cmds
14852
14853# Same as above, but a single script fragment to be evaled but not shown.
14854finish_eval=$lt_finish_eval
14855
14856# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000014857global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000014858
14859# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000014860global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000014861
14862# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000014863global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000014864
14865# This is the shared library runtime path variable.
14866runpath_var=$runpath_var
14867
14868# This is the shared library path variable.
14869shlibpath_var=$shlibpath_var
14870
14871# Is shlibpath searched before the hard-coded library search path?
14872shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14873
14874# How to hardcode a shared library path into an executable.
14875hardcode_action=$hardcode_action
14876
14877# Whether we should hardcode library paths into libraries.
14878hardcode_into_libs=$hardcode_into_libs
14879
14880# Flag to hardcode \$libdir into a binary during linking.
14881# This must work even if \$libdir does not exist.
14882hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14883
John Criswell47fdd832003-07-14 16:52:07 +000014884# If ld is used when linking, flag to hardcode \$libdir into
14885# a binary during linking. This must work even if \$libdir does
14886# not exist.
14887hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14888
John Criswell7a73b802003-06-30 21:59:07 +000014889# Whether we need a single -rpath flag with a separated argument.
14890hardcode_libdir_separator=$lt_hardcode_libdir_separator
14891
John Criswell47fdd832003-07-14 16:52:07 +000014892# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000014893# resulting binary.
14894hardcode_direct=$hardcode_direct
14895
14896# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14897# resulting binary.
14898hardcode_minus_L=$hardcode_minus_L
14899
14900# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14901# the resulting binary.
14902hardcode_shlibpath_var=$hardcode_shlibpath_var
14903
John Criswell47fdd832003-07-14 16:52:07 +000014904# Set to yes if building a shared library automatically hardcodes DIR into the library
14905# and all subsequent libraries and executables linked against it.
14906hardcode_automatic=$hardcode_automatic
14907
John Criswell7a73b802003-06-30 21:59:07 +000014908# Variables whose values should be saved in libtool wrapper scripts and
14909# restored at relink time.
14910variables_saved_for_relink="$variables_saved_for_relink"
14911
14912# Whether libtool must link a program against all its dependency libraries.
14913link_all_deplibs=$link_all_deplibs
14914
14915# Compile-time system search path for libraries
14916sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14917
14918# Run-time system search path for libraries
14919sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14920
14921# Fix the shell variable \$srcfile for the compiler.
14922fix_srcfile_path="$fix_srcfile_path"
14923
14924# Set to yes if exported symbols are required.
14925always_export_symbols=$always_export_symbols
14926
14927# The commands to list exported symbols.
14928export_symbols_cmds=$lt_export_symbols_cmds
14929
14930# The commands to extract the exported symbol list from a shared archive.
14931extract_expsyms_cmds=$lt_extract_expsyms_cmds
14932
14933# Symbols that should not be listed in the preloaded symbols.
14934exclude_expsyms=$lt_exclude_expsyms
14935
14936# Symbols that must always be exported.
14937include_expsyms=$lt_include_expsyms
14938
14939# ### END LIBTOOL CONFIG
14940
14941__EOF__
14942
John Criswell47fdd832003-07-14 16:52:07 +000014943
John Criswell7a73b802003-06-30 21:59:07 +000014944 case $host_os in
14945 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000014946 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014947
14948# AIX sometimes has problems with the GCC collect2 program. For some
14949# reason, if we set the COLLECT_NAMES environment variable, the problems
14950# vanish in a puff of smoke.
14951if test "X${COLLECT_NAMES+set}" != Xset; then
14952 COLLECT_NAMES=
14953 export COLLECT_NAMES
14954fi
14955EOF
14956 ;;
14957 esac
14958
John Criswell7a73b802003-06-30 21:59:07 +000014959 # We use sed instead of cat because bash on DJGPP gets confused if
14960 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14961 # text mode, it properly converts lines to CR/LF. This bash problem
14962 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000014963 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000014964
John Criswell47fdd832003-07-14 16:52:07 +000014965 mv -f "$cfgfile" "$ofile" || \
14966 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000014967 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000014968
14969else
14970 # If there is no Makefile yet, we rely on a make rule to execute
14971 # `config.status --recheck' to rerun these tests and create the
14972 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014973 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14974 if test -f "$ltmain_in"; then
14975 test -f Makefile && make "$ltmain"
14976 fi
John Criswell7a73b802003-06-30 21:59:07 +000014977fi
John Criswell7a73b802003-06-30 21:59:07 +000014978
14979
John Criswell47fdd832003-07-14 16:52:07 +000014980ac_ext=c
14981ac_cpp='$CPP $CPPFLAGS'
14982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14984ac_compiler_gnu=$ac_cv_c_compiler_gnu
14985
14986CC="$lt_save_CC"
14987
14988
14989# Check whether --with-tags or --without-tags was given.
14990if test "${with_tags+set}" = set; then
14991 withval="$with_tags"
14992 tagnames="$withval"
14993fi;
14994
14995if test -f "$ltmain" && test -n "$tagnames"; then
14996 if test ! -f "${ofile}"; then
14997 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14998echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14999 fi
15000
15001 if test -z "$LTCC"; then
15002 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15003 if test -z "$LTCC"; then
15004 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15005echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15006 else
15007 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15008echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15009 fi
15010 fi
15011
15012 # Extract list of available tagged configurations in $ofile.
15013 # Note that this assumes the entire list is on one line.
15014 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15015
15016 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15017 for tagname in $tagnames; do
15018 IFS="$lt_save_ifs"
15019 # Check whether tagname contains only valid characters
15020 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15021 "") ;;
15022 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15023echo "$as_me: error: invalid tag name: $tagname" >&2;}
15024 { (exit 1); exit 1; }; }
15025 ;;
15026 esac
15027
15028 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15029 then
15030 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15031echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15032 { (exit 1); exit 1; }; }
15033 fi
15034
15035 # Update the list of available tags.
15036 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015037 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000015038
15039 case $tagname in
15040 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015041 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15042 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15043 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000015044 ac_ext=cc
15045ac_cpp='$CXXCPP $CPPFLAGS'
15046ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15047ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15048ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15049
15050
15051
15052
15053archive_cmds_need_lc_CXX=no
15054allow_undefined_flag_CXX=
15055always_export_symbols_CXX=no
15056archive_expsym_cmds_CXX=
15057export_dynamic_flag_spec_CXX=
15058hardcode_direct_CXX=no
15059hardcode_libdir_flag_spec_CXX=
15060hardcode_libdir_flag_spec_ld_CXX=
15061hardcode_libdir_separator_CXX=
15062hardcode_minus_L_CXX=no
15063hardcode_automatic_CXX=no
15064module_cmds_CXX=
15065module_expsym_cmds_CXX=
15066link_all_deplibs_CXX=unknown
15067old_archive_cmds_CXX=$old_archive_cmds
15068no_undefined_flag_CXX=
15069whole_archive_flag_spec_CXX=
15070enable_shared_with_static_runtimes_CXX=no
15071
15072# Dependencies to place before and after the object being linked:
15073predep_objects_CXX=
15074postdep_objects_CXX=
15075predeps_CXX=
15076postdeps_CXX=
15077compiler_lib_search_path_CXX=
15078
15079# Source file extension for C++ test sources.
15080ac_ext=cc
15081
15082# Object file extension for compiled C++ test sources.
15083objext=o
15084objext_CXX=$objext
15085
15086# Code to be used in simple compile tests
15087lt_simple_compile_test_code="int some_variable = 0;\n"
15088
15089# Code to be used in simple link tests
15090lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15091
15092# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15093
15094# If no C compiler was specified, use CC.
15095LTCC=${LTCC-"$CC"}
15096
15097# Allow CC to be a program name with arguments.
15098compiler=$CC
15099
15100
15101# Allow CC to be a program name with arguments.
15102lt_save_CC=$CC
15103lt_save_LD=$LD
15104lt_save_GCC=$GCC
15105GCC=$GXX
15106lt_save_with_gnu_ld=$with_gnu_ld
15107lt_save_path_LD=$lt_cv_path_LD
15108if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15109 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15110else
15111 unset lt_cv_prog_gnu_ld
15112fi
15113if test -n "${lt_cv_path_LDCXX+set}"; then
15114 lt_cv_path_LD=$lt_cv_path_LDCXX
15115else
15116 unset lt_cv_path_LD
15117fi
15118test -z "${LDCXX+set}" || LD=$LDCXX
15119CC=${CXX-"c++"}
15120compiler=$CC
15121compiler_CXX=$CC
15122cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15123
15124# We don't want -fno-exception wen compiling C++ code, so set the
15125# no_builtin_flag separately
15126if test "$GXX" = yes; then
15127 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15128else
15129 lt_prog_compiler_no_builtin_flag_CXX=
15130fi
15131
15132if test "$GXX" = yes; then
15133 # Set up default GNU C++ configuration
15134
15135
15136# Check whether --with-gnu-ld or --without-gnu-ld was given.
15137if test "${with_gnu_ld+set}" = set; then
15138 withval="$with_gnu_ld"
15139 test "$withval" = no || with_gnu_ld=yes
15140else
15141 with_gnu_ld=no
15142fi;
15143ac_prog=ld
15144if test "$GCC" = yes; then
15145 # Check if gcc -print-prog-name=ld gives a path.
15146 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15147echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15148 case $host in
15149 *-*-mingw*)
15150 # gcc leaves a trailing carriage return which upsets mingw
15151 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15152 *)
15153 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15154 esac
15155 case $ac_prog in
15156 # Accept absolute paths.
15157 [\\/]* | ?:[\\/]*)
15158 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015159 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015160 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15161 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15162 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15163 done
15164 test -z "$LD" && LD="$ac_prog"
15165 ;;
15166 "")
15167 # If it fails, then pretend we aren't using GCC.
15168 ac_prog=ld
15169 ;;
15170 *)
15171 # If it is relative, then search for the first ld in PATH.
15172 with_gnu_ld=unknown
15173 ;;
15174 esac
15175elif test "$with_gnu_ld" = yes; then
15176 echo "$as_me:$LINENO: checking for GNU ld" >&5
15177echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15178else
15179 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15180echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15181fi
15182if test "${lt_cv_path_LD+set}" = set; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15184else
15185 if test -z "$LD"; then
15186 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15187 for ac_dir in $PATH; do
15188 IFS="$lt_save_ifs"
15189 test -z "$ac_dir" && ac_dir=.
15190 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15191 lt_cv_path_LD="$ac_dir/$ac_prog"
15192 # Check to see if the program is GNU ld. I'd rather use --version,
15193 # but apparently some GNU ld's only accept -v.
15194 # Break only if it was the GNU/non-GNU ld that we prefer.
15195 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15196 *GNU* | *'with BFD'*)
15197 test "$with_gnu_ld" != no && break
15198 ;;
15199 *)
15200 test "$with_gnu_ld" != yes && break
15201 ;;
15202 esac
15203 fi
15204 done
15205 IFS="$lt_save_ifs"
15206else
15207 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15208fi
15209fi
15210
15211LD="$lt_cv_path_LD"
15212if test -n "$LD"; then
15213 echo "$as_me:$LINENO: result: $LD" >&5
15214echo "${ECHO_T}$LD" >&6
15215else
15216 echo "$as_me:$LINENO: result: no" >&5
15217echo "${ECHO_T}no" >&6
15218fi
15219test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15220echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15221 { (exit 1); exit 1; }; }
15222echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15223echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15224if test "${lt_cv_prog_gnu_ld+set}" = set; then
15225 echo $ECHO_N "(cached) $ECHO_C" >&6
15226else
15227 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015228case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015229*GNU* | *'with BFD'*)
15230 lt_cv_prog_gnu_ld=yes
15231 ;;
15232*)
15233 lt_cv_prog_gnu_ld=no
15234 ;;
15235esac
15236fi
15237echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15238echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15239with_gnu_ld=$lt_cv_prog_gnu_ld
15240
15241
15242
15243 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15244 # archiving commands below assume that GNU ld is being used.
15245 if test "$with_gnu_ld" = yes; then
15246 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15247 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'
15248
15249 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15250 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15251
15252 # If archive_cmds runs LD, not CC, wlarc should be empty
15253 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15254 # investigate it a little bit more. (MM)
15255 wlarc='${wl}'
15256
15257 # ancient GNU ld didn't support --whole-archive et. al.
15258 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15259 grep 'no-whole-archive' > /dev/null; then
15260 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15261 else
15262 whole_archive_flag_spec_CXX=
15263 fi
15264 else
15265 with_gnu_ld=no
15266 wlarc=
15267
15268 # A generic and very simple default shared library creation
15269 # command for GNU C++ for the case where it uses the native
15270 # linker, instead of GNU ld. If possible, this setting should
15271 # overridden to take advantage of the native linker features on
15272 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015273 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015274 fi
15275
15276 # Commands to make compiler produce verbose output that lists
15277 # what "hidden" libraries, object files and flags are used when
15278 # linking a shared library.
15279 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15280
15281else
15282 GXX=no
15283 with_gnu_ld=no
15284 wlarc=
15285fi
15286
15287# PORTME: fill in a description of your system's C++ link characteristics
15288echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15289echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15290ld_shlibs_CXX=yes
15291case $host_os in
15292 aix3*)
15293 # FIXME: insert proper C++ library support
15294 ld_shlibs_CXX=no
15295 ;;
15296 aix4* | aix5*)
15297 if test "$host_cpu" = ia64; then
15298 # On IA64, the linker does run time linking by default, so we don't
15299 # have to do anything special.
15300 aix_use_runtimelinking=no
15301 exp_sym_flag='-Bexport'
15302 no_entry_flag=""
15303 else
15304 aix_use_runtimelinking=no
15305
15306 # Test if we are trying to use run time linking or normal
15307 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15308 # need to do runtime linking.
15309 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15310 for ld_flag in $LDFLAGS; do
15311 case $ld_flag in
15312 *-brtl*)
15313 aix_use_runtimelinking=yes
15314 break
15315 ;;
15316 esac
15317 done
15318 esac
15319
15320 exp_sym_flag='-bexport'
15321 no_entry_flag='-bnoentry'
15322 fi
15323
15324 # When large executables or shared objects are built, AIX ld can
15325 # have problems creating the table of contents. If linking a library
15326 # or program results in "error TOC overflow" add -mminimal-toc to
15327 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15328 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15329
15330 archive_cmds_CXX=''
15331 hardcode_direct_CXX=yes
15332 hardcode_libdir_separator_CXX=':'
15333 link_all_deplibs_CXX=yes
15334
15335 if test "$GXX" = yes; then
15336 case $host_os in aix4.012|aix4.012.*)
15337 # We only want to do this on AIX 4.2 and lower, the check
15338 # below for broken collect2 doesn't work under 4.3+
15339 collect2name=`${CC} -print-prog-name=collect2`
15340 if test -f "$collect2name" && \
15341 strings "$collect2name" | grep resolve_lib_name >/dev/null
15342 then
15343 # We have reworked collect2
15344 hardcode_direct_CXX=yes
15345 else
15346 # We have old collect2
15347 hardcode_direct_CXX=unsupported
15348 # It fails to find uninstalled libraries when the uninstalled
15349 # path is not listed in the libpath. Setting hardcode_minus_L
15350 # to unsupported forces relinking
15351 hardcode_minus_L_CXX=yes
15352 hardcode_libdir_flag_spec_CXX='-L$libdir'
15353 hardcode_libdir_separator_CXX=
15354 fi
15355 esac
15356 shared_flag='-shared'
15357 else
15358 # not using gcc
15359 if test "$host_cpu" = ia64; then
15360 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15361 # chokes on -Wl,-G. The following line is correct:
15362 shared_flag='-G'
15363 else
15364 if test "$aix_use_runtimelinking" = yes; then
15365 shared_flag='${wl}-G'
15366 else
15367 shared_flag='${wl}-bM:SRE'
15368 fi
15369 fi
15370 fi
15371
15372 # It seems that -bexpall does not export symbols beginning with
15373 # underscore (_), so it is better to generate a list of symbols to export.
15374 always_export_symbols_CXX=yes
15375 if test "$aix_use_runtimelinking" = yes; then
15376 # Warning - without using the other runtime loading flags (-brtl),
15377 # -berok will link without error, but may produce a broken library.
15378 allow_undefined_flag_CXX='-berok'
15379 # Determine the default libpath from the value encoded in an empty executable.
15380 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015381/* confdefs.h. */
15382_ACEOF
15383cat confdefs.h >>conftest.$ac_ext
15384cat >>conftest.$ac_ext <<_ACEOF
15385/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015386
John Criswell47fdd832003-07-14 16:52:07 +000015387int
15388main ()
15389{
15390
15391 ;
15392 return 0;
15393}
15394_ACEOF
15395rm -f conftest.$ac_objext conftest$ac_exeext
15396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015397 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015398 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015399 grep -v '^ *+' conftest.er1 >conftest.err
15400 rm -f conftest.er1
15401 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015404 { ac_try='test -z "$ac_cxx_werror_flag"
15405 || test ! -s conftest.err'
15406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15407 (eval $ac_try) 2>&5
15408 ac_status=$?
15409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); }; } &&
15411 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15413 (eval $ac_try) 2>&5
15414 ac_status=$?
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); }; }; then
15417
15418aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15419}'`
15420# Check for a 64-bit object if we didn't find anything.
15421if 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; }
15422}'`; fi
15423else
15424 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015425sed 's/^/| /' conftest.$ac_ext >&5
15426
John Criswell47fdd832003-07-14 16:52:07 +000015427fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015428rm -f conftest.err conftest.$ac_objext \
15429 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015430if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15431
15432 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15433
15434 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"
15435 else
15436 if test "$host_cpu" = ia64; then
15437 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15438 allow_undefined_flag_CXX="-z nodefs"
15439 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"
15440 else
15441 # Determine the default libpath from the value encoded in an empty executable.
15442 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015443/* confdefs.h. */
15444_ACEOF
15445cat confdefs.h >>conftest.$ac_ext
15446cat >>conftest.$ac_ext <<_ACEOF
15447/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015448
John Criswell47fdd832003-07-14 16:52:07 +000015449int
15450main ()
15451{
15452
15453 ;
15454 return 0;
15455}
15456_ACEOF
15457rm -f conftest.$ac_objext conftest$ac_exeext
15458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015459 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015460 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015461 grep -v '^ *+' conftest.er1 >conftest.err
15462 rm -f conftest.er1
15463 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015466 { ac_try='test -z "$ac_cxx_werror_flag"
15467 || test ! -s conftest.err'
15468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469 (eval $ac_try) 2>&5
15470 ac_status=$?
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; } &&
15473 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475 (eval $ac_try) 2>&5
15476 ac_status=$?
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); }; }; then
15479
15480aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15481}'`
15482# Check for a 64-bit object if we didn't find anything.
15483if 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; }
15484}'`; fi
15485else
15486 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015487sed 's/^/| /' conftest.$ac_ext >&5
15488
John Criswell47fdd832003-07-14 16:52:07 +000015489fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015490rm -f conftest.err conftest.$ac_objext \
15491 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015492if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15493
15494 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15495 # Warning - without using the other run time loading flags,
15496 # -berok will link without error, but may produce a broken library.
15497 no_undefined_flag_CXX=' ${wl}-bernotok'
15498 allow_undefined_flag_CXX=' ${wl}-berok'
15499 # -bexpall does not export symbols beginning with underscore (_)
15500 always_export_symbols_CXX=yes
15501 # Exported symbols can be pulled into shared objects from archives
15502 whole_archive_flag_spec_CXX=' '
15503 archive_cmds_need_lc_CXX=yes
15504 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015505 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 +000015506 fi
15507 fi
15508 ;;
15509 chorus*)
15510 case $cc_basename in
15511 *)
15512 # FIXME: insert proper C++ library support
15513 ld_shlibs_CXX=no
15514 ;;
15515 esac
15516 ;;
15517
Reid Spencer2706f8c2004-09-19 23:53:36 +000015518
John Criswell47fdd832003-07-14 16:52:07 +000015519 cygwin* | mingw* | pw32*)
15520 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15521 # as there is no search path for DLLs.
15522 hardcode_libdir_flag_spec_CXX='-L$libdir'
15523 allow_undefined_flag_CXX=unsupported
15524 always_export_symbols_CXX=no
15525 enable_shared_with_static_runtimes_CXX=yes
15526
15527 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15528 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'
15529 # If the export-symbols file already is a .def file (1st line
15530 # is EXPORTS), use it as is; otherwise, prepend...
15531 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15532 cp $export_symbols $output_objdir/$soname.def;
15533 else
15534 echo EXPORTS > $output_objdir/$soname.def;
15535 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015536 fi~
15537 $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 +000015538 else
15539 ld_shlibs_CXX=no
15540 fi
15541 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015542 darwin* | rhapsody*)
15543 case "$host_os" in
15544 rhapsody* | darwin1.[012])
15545 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15546 ;;
15547 *) # Darwin 1.3 on
15548 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15549 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15550 else
15551 case ${MACOSX_DEPLOYMENT_TARGET} in
15552 10.[012])
15553 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15554 ;;
15555 10.*)
15556 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15557 ;;
15558 esac
15559 fi
15560 ;;
15561 esac
15562 archive_cmds_need_lc_CXX=no
15563 hardcode_direct_CXX=no
15564 hardcode_automatic_CXX=yes
15565 hardcode_shlibpath_var_CXX=unsupported
15566 whole_archive_flag_spec_CXX=''
15567 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015568
Reid Spencer2706f8c2004-09-19 23:53:36 +000015569 if test "$GXX" = yes ; then
15570 lt_int_apple_cc_single_mod=no
15571 output_verbose_link_cmd='echo'
15572 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15573 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015574 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015575 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015576 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 +000015577 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015578 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 +000015579 fi
15580 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15581 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15582 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015583 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 +000015584 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015585 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 +000015586 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015587 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 +000015588 else
15589 case "$cc_basename" in
15590 xlc*)
15591 output_verbose_link_cmd='echo'
15592 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'
15593 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15594 # 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 +000015595 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}'
15596 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 +000015597 ;;
15598 *)
15599 ld_shlibs_CXX=no
15600 ;;
15601 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015602 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015603 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015604
15605 dgux*)
15606 case $cc_basename in
15607 ec++)
15608 # FIXME: insert proper C++ library support
15609 ld_shlibs_CXX=no
15610 ;;
15611 ghcx)
15612 # Green Hills C++ Compiler
15613 # FIXME: insert proper C++ library support
15614 ld_shlibs_CXX=no
15615 ;;
15616 *)
15617 # FIXME: insert proper C++ library support
15618 ld_shlibs_CXX=no
15619 ;;
15620 esac
15621 ;;
15622 freebsd12*)
15623 # C++ shared libraries reported to be fairly broken before switch to ELF
15624 ld_shlibs_CXX=no
15625 ;;
15626 freebsd-elf*)
15627 archive_cmds_need_lc_CXX=no
15628 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015629 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015630 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15631 # conventions
15632 ld_shlibs_CXX=yes
15633 ;;
15634 gnu*)
15635 ;;
15636 hpux9*)
15637 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15638 hardcode_libdir_separator_CXX=:
15639 export_dynamic_flag_spec_CXX='${wl}-E'
15640 hardcode_direct_CXX=yes
15641 hardcode_minus_L_CXX=yes # Not in the search PATH,
15642 # but as the default
15643 # location of the library.
15644
15645 case $cc_basename in
15646 CC)
15647 # FIXME: insert proper C++ library support
15648 ld_shlibs_CXX=no
15649 ;;
15650 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015651 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 +000015652 # Commands to make compiler produce verbose output that lists
15653 # what "hidden" libraries, object files and flags are used when
15654 # linking a shared library.
15655 #
15656 # There doesn't appear to be a way to prevent this compiler from
15657 # explicitly linking system object files so we need to strip them
15658 # from the output so that they don't get included in the library
15659 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015660 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 +000015661 ;;
15662 *)
15663 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015664 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 +000015665 else
15666 # FIXME: insert proper C++ library support
15667 ld_shlibs_CXX=no
15668 fi
15669 ;;
15670 esac
15671 ;;
15672 hpux10*|hpux11*)
15673 if test $with_gnu_ld = no; then
15674 case "$host_cpu" in
15675 hppa*64*)
15676 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15677 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15678 hardcode_libdir_separator_CXX=:
15679 ;;
15680 ia64*)
15681 hardcode_libdir_flag_spec_CXX='-L$libdir'
15682 ;;
15683 *)
15684 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15685 hardcode_libdir_separator_CXX=:
15686 export_dynamic_flag_spec_CXX='${wl}-E'
15687 ;;
15688 esac
15689 fi
15690 case "$host_cpu" in
15691 hppa*64*)
15692 hardcode_direct_CXX=no
15693 hardcode_shlibpath_var_CXX=no
15694 ;;
15695 ia64*)
15696 hardcode_direct_CXX=no
15697 hardcode_shlibpath_var_CXX=no
15698 hardcode_minus_L_CXX=yes # Not in the search PATH,
15699 # but as the default
15700 # location of the library.
15701 ;;
15702 *)
15703 hardcode_direct_CXX=yes
15704 hardcode_minus_L_CXX=yes # Not in the search PATH,
15705 # but as the default
15706 # location of the library.
15707 ;;
15708 esac
15709
15710 case $cc_basename in
15711 CC)
15712 # FIXME: insert proper C++ library support
15713 ld_shlibs_CXX=no
15714 ;;
15715 aCC)
15716 case "$host_cpu" in
15717 hppa*64*|ia64*)
15718 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15719 ;;
15720 *)
15721 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15722 ;;
15723 esac
15724 # Commands to make compiler produce verbose output that lists
15725 # what "hidden" libraries, object files and flags are used when
15726 # linking a shared library.
15727 #
15728 # There doesn't appear to be a way to prevent this compiler from
15729 # explicitly linking system object files so we need to strip them
15730 # from the output so that they don't get included in the library
15731 # dependencies.
15732 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'
15733 ;;
15734 *)
15735 if test "$GXX" = yes; then
15736 if test $with_gnu_ld = no; then
15737 case "$host_cpu" in
15738 ia64*|hppa*64*)
15739 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15740 ;;
15741 *)
15742 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'
15743 ;;
15744 esac
15745 fi
15746 else
15747 # FIXME: insert proper C++ library support
15748 ld_shlibs_CXX=no
15749 fi
15750 ;;
15751 esac
15752 ;;
15753 irix5* | irix6*)
15754 case $cc_basename in
15755 CC)
15756 # SGI C++
15757 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'
15758
15759 # Archives containing C++ object files must be created using
15760 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15761 # necessary to make sure instantiated templates are included
15762 # in the archive.
15763 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15764 ;;
15765 *)
15766 if test "$GXX" = yes; then
15767 if test "$with_gnu_ld" = no; then
15768 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'
15769 else
15770 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'
15771 fi
15772 fi
15773 link_all_deplibs_CXX=yes
15774 ;;
15775 esac
15776 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15777 hardcode_libdir_separator_CXX=:
15778 ;;
15779 linux*)
15780 case $cc_basename in
15781 KCC)
15782 # Kuck and Associates, Inc. (KAI) C++ Compiler
15783
15784 # KCC will only create a shared library if the output file
15785 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15786 # to its proper name (with version) after linking.
15787 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'
15788 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'
15789 # Commands to make compiler produce verbose output that lists
15790 # what "hidden" libraries, object files and flags are used when
15791 # linking a shared library.
15792 #
15793 # There doesn't appear to be a way to prevent this compiler from
15794 # explicitly linking system object files so we need to strip them
15795 # from the output so that they don't get included in the library
15796 # dependencies.
15797 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'
15798
15799 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15800 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15801
15802 # Archives containing C++ object files must be created using
15803 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15804 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15805 ;;
15806 icpc)
15807 # Intel C++
15808 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015809 # version 8.0 and above of icpc choke on multiply defined symbols
15810 # if we add $predep_objects and $postdep_objects, however 7.1 and
15811 # earlier do not add the objects themselves.
15812 case `$CC -V 2>&1` in
15813 *"Version 7."*)
15814 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15815 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'
15816 ;;
15817 *) # Version 8.0 or newer
15818 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15819 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15820 ;;
15821 esac
John Criswell47fdd832003-07-14 16:52:07 +000015822 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000015823 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15824 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15825 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15826 ;;
15827 cxx)
15828 # Compaq C++
15829 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15830 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'
15831
15832 runpath_var=LD_RUN_PATH
15833 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15834 hardcode_libdir_separator_CXX=:
15835
15836 # Commands to make compiler produce verbose output that lists
15837 # what "hidden" libraries, object files and flags are used when
15838 # linking a shared library.
15839 #
15840 # There doesn't appear to be a way to prevent this compiler from
15841 # explicitly linking system object files so we need to strip them
15842 # from the output so that they don't get included in the library
15843 # dependencies.
15844 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'
15845 ;;
15846 esac
15847 ;;
15848 lynxos*)
15849 # FIXME: insert proper C++ library support
15850 ld_shlibs_CXX=no
15851 ;;
15852 m88k*)
15853 # FIXME: insert proper C++ library support
15854 ld_shlibs_CXX=no
15855 ;;
15856 mvs*)
15857 case $cc_basename in
15858 cxx)
15859 # FIXME: insert proper C++ library support
15860 ld_shlibs_CXX=no
15861 ;;
15862 *)
15863 # FIXME: insert proper C++ library support
15864 ld_shlibs_CXX=no
15865 ;;
15866 esac
15867 ;;
15868 netbsd*)
15869 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15870 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15871 wlarc=
15872 hardcode_libdir_flag_spec_CXX='-R$libdir'
15873 hardcode_direct_CXX=yes
15874 hardcode_shlibpath_var_CXX=no
15875 fi
15876 # Workaround some broken pre-1.5 toolchains
15877 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15878 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015879 openbsd2*)
15880 # C++ shared libraries are fairly broken
15881 ld_shlibs_CXX=no
15882 ;;
15883 openbsd*)
15884 hardcode_direct_CXX=yes
15885 hardcode_shlibpath_var_CXX=no
15886 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15887 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15888 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15889 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15890 export_dynamic_flag_spec_CXX='${wl}-E'
15891 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15892 fi
15893 output_verbose_link_cmd='echo'
15894 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015895 osf3*)
15896 case $cc_basename in
15897 KCC)
15898 # Kuck and Associates, Inc. (KAI) C++ Compiler
15899
15900 # KCC will only create a shared library if the output file
15901 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15902 # to its proper name (with version) after linking.
15903 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'
15904
15905 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15906 hardcode_libdir_separator_CXX=:
15907
15908 # Archives containing C++ object files must be created using
15909 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15910 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15911
15912 ;;
15913 RCC)
15914 # Rational C++ 2.4.1
15915 # FIXME: insert proper C++ library support
15916 ld_shlibs_CXX=no
15917 ;;
15918 cxx)
15919 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15920 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'
15921
15922 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15923 hardcode_libdir_separator_CXX=:
15924
15925 # Commands to make compiler produce verbose output that lists
15926 # what "hidden" libraries, object files and flags are used when
15927 # linking a shared library.
15928 #
15929 # There doesn't appear to be a way to prevent this compiler from
15930 # explicitly linking system object files so we need to strip them
15931 # from the output so that they don't get included in the library
15932 # dependencies.
15933 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'
15934 ;;
15935 *)
15936 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15937 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15938 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'
15939
15940 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15941 hardcode_libdir_separator_CXX=:
15942
15943 # Commands to make compiler produce verbose output that lists
15944 # what "hidden" libraries, object files and flags are used when
15945 # linking a shared library.
15946 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15947
15948 else
15949 # FIXME: insert proper C++ library support
15950 ld_shlibs_CXX=no
15951 fi
15952 ;;
15953 esac
15954 ;;
15955 osf4* | osf5*)
15956 case $cc_basename in
15957 KCC)
15958 # Kuck and Associates, Inc. (KAI) C++ Compiler
15959
15960 # KCC will only create a shared library if the output file
15961 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15962 # to its proper name (with version) after linking.
15963 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'
15964
15965 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15966 hardcode_libdir_separator_CXX=:
15967
15968 # Archives containing C++ object files must be created using
15969 # the KAI C++ compiler.
15970 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15971 ;;
15972 RCC)
15973 # Rational C++ 2.4.1
15974 # FIXME: insert proper C++ library support
15975 ld_shlibs_CXX=no
15976 ;;
15977 cxx)
15978 allow_undefined_flag_CXX=' -expect_unresolved \*'
15979 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 +000015980 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15981 echo "-hidden">> $lib.exp~
15982 $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~
15983 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000015984
15985 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15986 hardcode_libdir_separator_CXX=:
15987
15988 # Commands to make compiler produce verbose output that lists
15989 # what "hidden" libraries, object files and flags are used when
15990 # linking a shared library.
15991 #
15992 # There doesn't appear to be a way to prevent this compiler from
15993 # explicitly linking system object files so we need to strip them
15994 # from the output so that they don't get included in the library
15995 # dependencies.
15996 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'
15997 ;;
15998 *)
15999 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16000 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16001 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'
16002
16003 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16004 hardcode_libdir_separator_CXX=:
16005
16006 # Commands to make compiler produce verbose output that lists
16007 # what "hidden" libraries, object files and flags are used when
16008 # linking a shared library.
16009 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16010
16011 else
16012 # FIXME: insert proper C++ library support
16013 ld_shlibs_CXX=no
16014 fi
16015 ;;
16016 esac
16017 ;;
16018 psos*)
16019 # FIXME: insert proper C++ library support
16020 ld_shlibs_CXX=no
16021 ;;
16022 sco*)
16023 archive_cmds_need_lc_CXX=no
16024 case $cc_basename in
16025 CC)
16026 # FIXME: insert proper C++ library support
16027 ld_shlibs_CXX=no
16028 ;;
16029 *)
16030 # FIXME: insert proper C++ library support
16031 ld_shlibs_CXX=no
16032 ;;
16033 esac
16034 ;;
16035 sunos4*)
16036 case $cc_basename in
16037 CC)
16038 # Sun C++ 4.x
16039 # FIXME: insert proper C++ library support
16040 ld_shlibs_CXX=no
16041 ;;
16042 lcc)
16043 # Lucid
16044 # FIXME: insert proper C++ library support
16045 ld_shlibs_CXX=no
16046 ;;
16047 *)
16048 # FIXME: insert proper C++ library support
16049 ld_shlibs_CXX=no
16050 ;;
16051 esac
16052 ;;
16053 solaris*)
16054 case $cc_basename in
16055 CC)
16056 # Sun C++ 4.2, 5.x and Centerline C++
16057 no_undefined_flag_CXX=' -zdefs'
16058 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 +000016059 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16060 $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 +000016061
16062 hardcode_libdir_flag_spec_CXX='-R$libdir'
16063 hardcode_shlibpath_var_CXX=no
16064 case $host_os in
16065 solaris2.0-5 | solaris2.0-5.*) ;;
16066 *)
16067 # The C++ compiler is used as linker so we must use $wl
16068 # flag to pass the commands to the underlying system
16069 # linker.
16070 # Supported since Solaris 2.6 (maybe 2.5.1?)
16071 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16072 ;;
16073 esac
16074 link_all_deplibs_CXX=yes
16075
16076 # Commands to make compiler produce verbose output that lists
16077 # what "hidden" libraries, object files and flags are used when
16078 # linking a shared library.
16079 #
16080 # There doesn't appear to be a way to prevent this compiler from
16081 # explicitly linking system object files so we need to strip them
16082 # from the output so that they don't get included in the library
16083 # dependencies.
16084 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'
16085
16086 # Archives containing C++ object files must be created using
16087 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16088 # necessary to make sure instantiated templates are included
16089 # in the archive.
16090 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16091 ;;
16092 gcx)
16093 # Green Hills C++ Compiler
16094 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16095
16096 # The C++ compiler must be used to create the archive.
16097 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16098 ;;
16099 *)
16100 # GNU C++ compiler with Solaris linker
16101 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16102 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16103 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016104 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 +000016105 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16106 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16107
John Criswell47fdd832003-07-14 16:52:07 +000016108 # Commands to make compiler produce verbose output that lists
16109 # what "hidden" libraries, object files and flags are used when
16110 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016111 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016112 else
16113 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16114 # platform.
16115 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 +000016116 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16117 $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 +000016118
16119 # Commands to make compiler produce verbose output that lists
16120 # what "hidden" libraries, object files and flags are used when
16121 # linking a shared library.
16122 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16123 fi
16124
16125 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16126 fi
16127 ;;
16128 esac
16129 ;;
16130 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16131 archive_cmds_need_lc_CXX=no
16132 ;;
16133 tandem*)
16134 case $cc_basename in
16135 NCC)
16136 # NonStop-UX NCC 3.20
16137 # FIXME: insert proper C++ library support
16138 ld_shlibs_CXX=no
16139 ;;
16140 *)
16141 # FIXME: insert proper C++ library support
16142 ld_shlibs_CXX=no
16143 ;;
16144 esac
16145 ;;
16146 vxworks*)
16147 # FIXME: insert proper C++ library support
16148 ld_shlibs_CXX=no
16149 ;;
16150 *)
16151 # FIXME: insert proper C++ library support
16152 ld_shlibs_CXX=no
16153 ;;
16154esac
16155echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16156echo "${ECHO_T}$ld_shlibs_CXX" >&6
16157test "$ld_shlibs_CXX" = no && can_build_shared=no
16158
16159GCC_CXX="$GXX"
16160LD_CXX="$LD"
16161
John Criswell47fdd832003-07-14 16:52:07 +000016162
16163cat > conftest.$ac_ext <<EOF
16164class Foo
16165{
16166public:
16167 Foo (void) { a = 0; }
16168private:
16169 int a;
16170};
16171EOF
16172
16173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16174 (eval $ac_compile) 2>&5
16175 ac_status=$?
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); }; then
16178 # Parse the compiler output and extract the necessary
16179 # objects, libraries and library flags.
16180
16181 # Sentinel used to keep track of whether or not we are before
16182 # the conftest object file.
16183 pre_test_object_deps_done=no
16184
16185 # The `*' in the case matches for architectures that use `case' in
16186 # $output_verbose_cmd can trigger glob expansion during the loop
16187 # eval without this substitution.
16188 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16189
16190 for p in `eval $output_verbose_link_cmd`; do
16191 case $p in
16192
16193 -L* | -R* | -l*)
16194 # Some compilers place space between "-{L,R}" and the path.
16195 # Remove the space.
16196 if test $p = "-L" \
16197 || test $p = "-R"; then
16198 prev=$p
16199 continue
16200 else
16201 prev=
16202 fi
16203
16204 if test "$pre_test_object_deps_done" = no; then
16205 case $p in
16206 -L* | -R*)
16207 # Internal compiler library paths should come after those
16208 # provided the user. The postdeps already come after the
16209 # user supplied libs so there is no need to process them.
16210 if test -z "$compiler_lib_search_path_CXX"; then
16211 compiler_lib_search_path_CXX="${prev}${p}"
16212 else
16213 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16214 fi
16215 ;;
16216 # The "-l" case would never come before the object being
16217 # linked, so don't bother handling this case.
16218 esac
16219 else
16220 if test -z "$postdeps_CXX"; then
16221 postdeps_CXX="${prev}${p}"
16222 else
16223 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16224 fi
16225 fi
16226 ;;
16227
16228 *.$objext)
16229 # This assumes that the test object file only shows up
16230 # once in the compiler output.
16231 if test "$p" = "conftest.$objext"; then
16232 pre_test_object_deps_done=yes
16233 continue
16234 fi
16235
16236 if test "$pre_test_object_deps_done" = no; then
16237 if test -z "$predep_objects_CXX"; then
16238 predep_objects_CXX="$p"
16239 else
16240 predep_objects_CXX="$predep_objects_CXX $p"
16241 fi
16242 else
16243 if test -z "$postdep_objects_CXX"; then
16244 postdep_objects_CXX="$p"
16245 else
16246 postdep_objects_CXX="$postdep_objects_CXX $p"
16247 fi
16248 fi
16249 ;;
16250
16251 *) ;; # Ignore the rest.
16252
16253 esac
16254 done
16255
16256 # Clean up.
16257 rm -f a.out a.exe
16258else
16259 echo "libtool.m4: error: problem compiling CXX test program"
16260fi
16261
16262$rm -f confest.$objext
16263
16264case " $postdeps_CXX " in
16265*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16266esac
16267
16268lt_prog_compiler_wl_CXX=
16269lt_prog_compiler_pic_CXX=
16270lt_prog_compiler_static_CXX=
16271
16272echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16273echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16274
16275 # C++ specific cases for pic, static, wl, etc.
16276 if test "$GXX" = yes; then
16277 lt_prog_compiler_wl_CXX='-Wl,'
16278 lt_prog_compiler_static_CXX='-static'
16279
16280 case $host_os in
16281 aix*)
16282 # All AIX code is PIC.
16283 if test "$host_cpu" = ia64; then
16284 # AIX 5 now supports IA64 processor
16285 lt_prog_compiler_static_CXX='-Bstatic'
16286 fi
16287 ;;
16288 amigaos*)
16289 # FIXME: we need at least 68020 code to build shared libraries, but
16290 # adding the `-m68020' flag to GCC prevents building anything better,
16291 # like `-m68040'.
16292 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16293 ;;
16294 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16295 # PIC is the default for these OSes.
16296 ;;
16297 mingw* | os2* | pw32*)
16298 # This hack is so that the source file can tell whether it is being
16299 # built for inclusion in a dll (and should export symbols for example).
16300 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16301 ;;
16302 darwin* | rhapsody*)
16303 # PIC is the default on this platform
16304 # Common symbols not allowed in MH_DYLIB files
16305 lt_prog_compiler_pic_CXX='-fno-common'
16306 ;;
16307 *djgpp*)
16308 # DJGPP does not support shared libraries at all
16309 lt_prog_compiler_pic_CXX=
16310 ;;
16311 sysv4*MP*)
16312 if test -d /usr/nec; then
16313 lt_prog_compiler_pic_CXX=-Kconform_pic
16314 fi
16315 ;;
16316 hpux*)
16317 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16318 # not for PA HP-UX.
16319 case "$host_cpu" in
16320 hppa*64*|ia64*)
16321 ;;
16322 *)
16323 lt_prog_compiler_pic_CXX='-fPIC'
16324 ;;
16325 esac
16326 ;;
16327 *)
16328 lt_prog_compiler_pic_CXX='-fPIC'
16329 ;;
16330 esac
16331 else
16332 case $host_os in
16333 aix4* | aix5*)
16334 # All AIX code is PIC.
16335 if test "$host_cpu" = ia64; then
16336 # AIX 5 now supports IA64 processor
16337 lt_prog_compiler_static_CXX='-Bstatic'
16338 else
16339 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16340 fi
16341 ;;
16342 chorus*)
16343 case $cc_basename in
16344 cxch68)
16345 # Green Hills C++ Compiler
16346 # _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"
16347 ;;
16348 esac
16349 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016350 darwin*)
16351 # PIC is the default on this platform
16352 # Common symbols not allowed in MH_DYLIB files
16353 case "$cc_basename" in
16354 xlc*)
16355 lt_prog_compiler_pic_CXX='-qnocommon'
16356 lt_prog_compiler_wl_CXX='-Wl,'
16357 ;;
16358 esac
16359 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016360 dgux*)
16361 case $cc_basename in
16362 ec++)
16363 lt_prog_compiler_pic_CXX='-KPIC'
16364 ;;
16365 ghcx)
16366 # Green Hills C++ Compiler
16367 lt_prog_compiler_pic_CXX='-pic'
16368 ;;
16369 *)
16370 ;;
16371 esac
16372 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016373 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016374 # FreeBSD uses GNU C++
16375 ;;
16376 hpux9* | hpux10* | hpux11*)
16377 case $cc_basename in
16378 CC)
16379 lt_prog_compiler_wl_CXX='-Wl,'
16380 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16381 if test "$host_cpu" != ia64; then
16382 lt_prog_compiler_pic_CXX='+Z'
16383 fi
16384 ;;
16385 aCC)
16386 lt_prog_compiler_wl_CXX='-Wl,'
16387 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16388 case "$host_cpu" in
16389 hppa*64*|ia64*)
16390 # +Z the default
16391 ;;
16392 *)
16393 lt_prog_compiler_pic_CXX='+Z'
16394 ;;
16395 esac
16396 ;;
16397 *)
16398 ;;
16399 esac
16400 ;;
16401 irix5* | irix6* | nonstopux*)
16402 case $cc_basename in
16403 CC)
16404 lt_prog_compiler_wl_CXX='-Wl,'
16405 lt_prog_compiler_static_CXX='-non_shared'
16406 # CC pic flag -KPIC is the default.
16407 ;;
16408 *)
16409 ;;
16410 esac
16411 ;;
16412 linux*)
16413 case $cc_basename in
16414 KCC)
16415 # KAI C++ Compiler
16416 lt_prog_compiler_wl_CXX='--backend -Wl,'
16417 lt_prog_compiler_pic_CXX='-fPIC'
16418 ;;
16419 icpc)
16420 # Intel C++
16421 lt_prog_compiler_wl_CXX='-Wl,'
16422 lt_prog_compiler_pic_CXX='-KPIC'
16423 lt_prog_compiler_static_CXX='-static'
16424 ;;
16425 cxx)
16426 # Compaq C++
16427 # Make sure the PIC flag is empty. It appears that all Alpha
16428 # Linux and Compaq Tru64 Unix objects are PIC.
16429 lt_prog_compiler_pic_CXX=
16430 lt_prog_compiler_static_CXX='-non_shared'
16431 ;;
16432 *)
16433 ;;
16434 esac
16435 ;;
16436 lynxos*)
16437 ;;
16438 m88k*)
16439 ;;
16440 mvs*)
16441 case $cc_basename in
16442 cxx)
16443 lt_prog_compiler_pic_CXX='-W c,exportall'
16444 ;;
16445 *)
16446 ;;
16447 esac
16448 ;;
16449 netbsd*)
16450 ;;
16451 osf3* | osf4* | osf5*)
16452 case $cc_basename in
16453 KCC)
16454 lt_prog_compiler_wl_CXX='--backend -Wl,'
16455 ;;
16456 RCC)
16457 # Rational C++ 2.4.1
16458 lt_prog_compiler_pic_CXX='-pic'
16459 ;;
16460 cxx)
16461 # Digital/Compaq C++
16462 lt_prog_compiler_wl_CXX='-Wl,'
16463 # Make sure the PIC flag is empty. It appears that all Alpha
16464 # Linux and Compaq Tru64 Unix objects are PIC.
16465 lt_prog_compiler_pic_CXX=
16466 lt_prog_compiler_static_CXX='-non_shared'
16467 ;;
16468 *)
16469 ;;
16470 esac
16471 ;;
16472 psos*)
16473 ;;
16474 sco*)
16475 case $cc_basename in
16476 CC)
16477 lt_prog_compiler_pic_CXX='-fPIC'
16478 ;;
16479 *)
16480 ;;
16481 esac
16482 ;;
16483 solaris*)
16484 case $cc_basename in
16485 CC)
16486 # Sun C++ 4.2, 5.x and Centerline C++
16487 lt_prog_compiler_pic_CXX='-KPIC'
16488 lt_prog_compiler_static_CXX='-Bstatic'
16489 lt_prog_compiler_wl_CXX='-Qoption ld '
16490 ;;
16491 gcx)
16492 # Green Hills C++ Compiler
16493 lt_prog_compiler_pic_CXX='-PIC'
16494 ;;
16495 *)
16496 ;;
16497 esac
16498 ;;
16499 sunos4*)
16500 case $cc_basename in
16501 CC)
16502 # Sun C++ 4.x
16503 lt_prog_compiler_pic_CXX='-pic'
16504 lt_prog_compiler_static_CXX='-Bstatic'
16505 ;;
16506 lcc)
16507 # Lucid
16508 lt_prog_compiler_pic_CXX='-pic'
16509 ;;
16510 *)
16511 ;;
16512 esac
16513 ;;
16514 tandem*)
16515 case $cc_basename in
16516 NCC)
16517 # NonStop-UX NCC 3.20
16518 lt_prog_compiler_pic_CXX='-KPIC'
16519 ;;
16520 *)
16521 ;;
16522 esac
16523 ;;
16524 unixware*)
16525 ;;
16526 vxworks*)
16527 ;;
16528 *)
16529 lt_prog_compiler_can_build_shared_CXX=no
16530 ;;
16531 esac
16532 fi
16533
16534echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16535echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16536
16537#
16538# Check to make sure the PIC flag actually works.
16539#
16540if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016541
16542echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016543echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16544if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16545 echo $ECHO_N "(cached) $ECHO_C" >&6
16546else
16547 lt_prog_compiler_pic_works_CXX=no
16548 ac_outfile=conftest.$ac_objext
16549 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16550 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16551 # Insert the option either (1) after the last *FLAGS variable, or
16552 # (2) before a word containing "conftest.", or (3) at the end.
16553 # Note that $ac_compile itself does not contain backslashes and begins
16554 # with a dollar sign (not a hyphen), so the echo should work correctly.
16555 # The option is referenced via a variable to avoid confusing sed.
16556 lt_compile=`echo "$ac_compile" | $SED \
16557 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16559 -e 's:$: $lt_compiler_flag:'`
Reid Spencer95ed8432004-12-23 06:22:33 +000016560 (eval echo "\"\$as_me:16560: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016561 (eval "$lt_compile" 2>conftest.err)
16562 ac_status=$?
16563 cat conftest.err >&5
Reid Spencer95ed8432004-12-23 06:22:33 +000016564 echo "$as_me:16564: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016565 if (exit $ac_status) && test -s "$ac_outfile"; then
16566 # The compiler can only warn and ignore the option if not recognized
16567 # So say no if there are warnings
16568 if test ! -s conftest.err; then
16569 lt_prog_compiler_pic_works_CXX=yes
16570 fi
16571 fi
16572 $rm conftest*
16573
16574fi
16575echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16576echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16577
16578if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16579 case $lt_prog_compiler_pic_CXX in
16580 "" | " "*) ;;
16581 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16582 esac
16583else
16584 lt_prog_compiler_pic_CXX=
16585 lt_prog_compiler_can_build_shared_CXX=no
16586fi
16587
16588fi
16589case "$host_os" in
16590 # For platforms which do not support PIC, -DPIC is meaningless:
16591 *djgpp*)
16592 lt_prog_compiler_pic_CXX=
16593 ;;
16594 *)
16595 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16596 ;;
16597esac
16598
16599echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16600echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16601if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16602 echo $ECHO_N "(cached) $ECHO_C" >&6
16603else
16604 lt_cv_prog_compiler_c_o_CXX=no
16605 $rm -r conftest 2>/dev/null
16606 mkdir conftest
16607 cd conftest
16608 mkdir out
16609 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16610
John Criswell47fdd832003-07-14 16:52:07 +000016611 lt_compiler_flag="-o out/conftest2.$ac_objext"
16612 # Insert the option either (1) after the last *FLAGS variable, or
16613 # (2) before a word containing "conftest.", or (3) at the end.
16614 # Note that $ac_compile itself does not contain backslashes and begins
16615 # with a dollar sign (not a hyphen), so the echo should work correctly.
16616 lt_compile=`echo "$ac_compile" | $SED \
16617 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16618 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16619 -e 's:$: $lt_compiler_flag:'`
Reid Spencer95ed8432004-12-23 06:22:33 +000016620 (eval echo "\"\$as_me:16620: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016621 (eval "$lt_compile" 2>out/conftest.err)
16622 ac_status=$?
16623 cat out/conftest.err >&5
Reid Spencer95ed8432004-12-23 06:22:33 +000016624 echo "$as_me:16624: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016625 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16626 then
16627 # The compiler can only warn and ignore the option if not recognized
16628 # So say no if there are warnings
16629 if test ! -s out/conftest.err; then
16630 lt_cv_prog_compiler_c_o_CXX=yes
16631 fi
16632 fi
16633 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016634 $rm conftest*
16635 # SGI C++ compiler will create directory out/ii_files/ for
16636 # template instantiation
16637 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16638 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016639 cd ..
16640 rmdir conftest
16641 $rm conftest*
16642
16643fi
16644echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16645echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16646
16647
16648hard_links="nottested"
16649if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16650 # do not overwrite the value of need_locks provided by the user
16651 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16652echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16653 hard_links=yes
16654 $rm conftest*
16655 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16656 touch conftest.a
16657 ln conftest.a conftest.b 2>&5 || hard_links=no
16658 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16659 echo "$as_me:$LINENO: result: $hard_links" >&5
16660echo "${ECHO_T}$hard_links" >&6
16661 if test "$hard_links" = no; then
16662 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16663echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16664 need_locks=warn
16665 fi
16666else
16667 need_locks=no
16668fi
16669
16670echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16671echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16672
16673 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16674 case $host_os in
16675 aix4* | aix5*)
16676 # If we're using GNU nm, then we don't want the "-C" option.
16677 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16678 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16679 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'
16680 else
16681 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'
16682 fi
16683 ;;
16684 pw32*)
16685 export_symbols_cmds_CXX="$ltdll_cmds"
16686 ;;
16687 cygwin* | mingw*)
16688 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16689 ;;
16690 *)
16691 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16692 ;;
16693 esac
16694
16695echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16696echo "${ECHO_T}$ld_shlibs_CXX" >&6
16697test "$ld_shlibs_CXX" = no && can_build_shared=no
16698
16699variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16700if test "$GCC" = yes; then
16701 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16702fi
16703
16704#
16705# Do we need to explicitly link libc?
16706#
16707case "x$archive_cmds_need_lc_CXX" in
16708x|xyes)
16709 # Assume -lc should be added
16710 archive_cmds_need_lc_CXX=yes
16711
16712 if test "$enable_shared" = yes && test "$GCC" = yes; then
16713 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016714 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016715 # FIXME: we may have to deal with multi-command sequences.
16716 ;;
16717 '$CC '*)
16718 # Test whether the compiler implicitly links with -lc since on some
16719 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16720 # to ld, don't add -lc before -lgcc.
16721 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16722echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16723 $rm conftest*
16724 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16725
16726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16727 (eval $ac_compile) 2>&5
16728 ac_status=$?
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); } 2>conftest.err; then
16731 soname=conftest
16732 lib=conftest
16733 libobjs=conftest.$ac_objext
16734 deplibs=
16735 wl=$lt_prog_compiler_wl_CXX
16736 compiler_flags=-v
16737 linker_flags=-v
16738 verstring=
16739 output_objdir=.
16740 libname=conftest
16741 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16742 allow_undefined_flag_CXX=
16743 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16744 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16745 ac_status=$?
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }
16748 then
16749 archive_cmds_need_lc_CXX=no
16750 else
16751 archive_cmds_need_lc_CXX=yes
16752 fi
16753 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16754 else
16755 cat conftest.err 1>&5
16756 fi
16757 $rm conftest*
16758 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16759echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16760 ;;
16761 esac
16762 fi
16763 ;;
16764esac
16765
John Criswell47fdd832003-07-14 16:52:07 +000016766echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16767echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16768library_names_spec=
16769libname_spec='lib$name'
16770soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016771shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016772postinstall_cmds=
16773postuninstall_cmds=
16774finish_cmds=
16775finish_eval=
16776shlibpath_var=
16777shlibpath_overrides_runpath=unknown
16778version_type=none
16779dynamic_linker="$host_os ld.so"
16780sys_lib_dlsearch_path_spec="/lib /usr/lib"
16781if test "$GCC" = yes; then
16782 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16783 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16784 # if the path contains ";" then we assume it to be the separator
16785 # otherwise default to the standard path separator (i.e. ":") - it is
16786 # assumed that no part of a normal pathname contains ";" but that should
16787 # okay in the real world where ";" in dirpaths is itself problematic.
16788 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16789 else
16790 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16791 fi
16792else
16793 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16794fi
16795need_lib_prefix=unknown
16796hardcode_into_libs=no
16797
16798# when you set need_version to no, make sure it does not cause -set_version
16799# flags to be left without arguments
16800need_version=unknown
16801
16802case $host_os in
16803aix3*)
16804 version_type=linux
16805 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16806 shlibpath_var=LIBPATH
16807
16808 # AIX 3 has no versioning support, so we append a major version to the name.
16809 soname_spec='${libname}${release}${shared_ext}$major'
16810 ;;
16811
16812aix4* | aix5*)
16813 version_type=linux
16814 need_lib_prefix=no
16815 need_version=no
16816 hardcode_into_libs=yes
16817 if test "$host_cpu" = ia64; then
16818 # AIX 5 supports IA64
16819 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16820 shlibpath_var=LD_LIBRARY_PATH
16821 else
16822 # With GCC up to 2.95.x, collect2 would create an import file
16823 # for dependence libraries. The import file would start with
16824 # the line `#! .'. This would cause the generated library to
16825 # depend on `.', always an invalid library. This was fixed in
16826 # development snapshots of GCC prior to 3.0.
16827 case $host_os in
16828 aix4 | aix4.[01] | aix4.[01].*)
16829 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16830 echo ' yes '
16831 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16832 :
16833 else
16834 can_build_shared=no
16835 fi
16836 ;;
16837 esac
16838 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16839 # soname into executable. Probably we can add versioning support to
16840 # collect2, so additional links can be useful in future.
16841 if test "$aix_use_runtimelinking" = yes; then
16842 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16843 # instead of lib<name>.a to let people know that these are not
16844 # typical AIX shared libraries.
16845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16846 else
16847 # We preserve .a as extension for shared libraries through AIX4.2
16848 # and later when we are not doing run time linking.
16849 library_names_spec='${libname}${release}.a $libname.a'
16850 soname_spec='${libname}${release}${shared_ext}$major'
16851 fi
16852 shlibpath_var=LIBPATH
16853 fi
16854 ;;
16855
16856amigaos*)
16857 library_names_spec='$libname.ixlibrary $libname.a'
16858 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016859 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 +000016860 ;;
16861
16862beos*)
16863 library_names_spec='${libname}${shared_ext}'
16864 dynamic_linker="$host_os ld.so"
16865 shlibpath_var=LIBRARY_PATH
16866 ;;
16867
Reid Spencer2706f8c2004-09-19 23:53:36 +000016868bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016869 version_type=linux
16870 need_version=no
16871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16872 soname_spec='${libname}${release}${shared_ext}$major'
16873 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16874 shlibpath_var=LD_LIBRARY_PATH
16875 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16876 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16877 # the default ld.so.conf also contains /usr/contrib/lib and
16878 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16879 # libtool to hard-code these into programs
16880 ;;
16881
16882cygwin* | mingw* | pw32*)
16883 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016884 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016885 need_version=no
16886 need_lib_prefix=no
16887
16888 case $GCC,$host_os in
16889 yes,cygwin* | yes,mingw* | yes,pw32*)
16890 library_names_spec='$libname.dll.a'
16891 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016892 postinstall_cmds='base_file=`basename \${file}`~
16893 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16894 dldir=$destdir/`dirname \$dlpath`~
16895 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000016896 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016897 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16898 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000016899 $rm \$dlpath'
16900 shlibpath_overrides_runpath=yes
16901
16902 case $host_os in
16903 cygwin*)
16904 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16905 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 +000016906 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016907 ;;
16908 mingw*)
16909 # MinGW DLLs use traditional 'lib' prefix
16910 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16911 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16912 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16913 # It is most probably a Windows format PATH printed by
16914 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16915 # path with ; separators, and with drive letters. We can handle the
16916 # drive letters (cygwin fileutils understands them), so leave them,
16917 # especially as we might pass files found there to a mingw objdump,
16918 # which wouldn't understand a cygwinified path. Ahh.
16919 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16920 else
16921 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16922 fi
16923 ;;
16924 pw32*)
16925 # pw32 DLLs use 'pw' prefix rather than 'lib'
16926 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16927 ;;
16928 esac
16929 ;;
16930
16931 *)
16932 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16933 ;;
16934 esac
16935 dynamic_linker='Win32 ld.exe'
16936 # FIXME: first we should search . and the directory the executable is in
16937 shlibpath_var=PATH
16938 ;;
16939
16940darwin* | rhapsody*)
16941 dynamic_linker="$host_os dyld"
16942 version_type=darwin
16943 need_lib_prefix=no
16944 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016945 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016946 soname_spec='${libname}${release}${major}$shared_ext'
16947 shlibpath_overrides_runpath=yes
16948 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000016949 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000016950 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016951 if test "$GCC" = yes; then
16952 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"`
16953 else
16954 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016955 fi
16956 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16957 ;;
16958
16959dgux*)
16960 version_type=linux
16961 need_lib_prefix=no
16962 need_version=no
16963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16964 soname_spec='${libname}${release}${shared_ext}$major'
16965 shlibpath_var=LD_LIBRARY_PATH
16966 ;;
16967
16968freebsd1*)
16969 dynamic_linker=no
16970 ;;
16971
Reid Spencer2706f8c2004-09-19 23:53:36 +000016972kfreebsd*-gnu)
16973 version_type=linux
16974 need_lib_prefix=no
16975 need_version=no
16976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16977 soname_spec='${libname}${release}${shared_ext}$major'
16978 shlibpath_var=LD_LIBRARY_PATH
16979 shlibpath_overrides_runpath=no
16980 hardcode_into_libs=yes
16981 dynamic_linker='GNU ld.so'
16982 ;;
16983
John Criswell47fdd832003-07-14 16:52:07 +000016984freebsd*)
16985 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16986 version_type=freebsd-$objformat
16987 case $version_type in
16988 freebsd-elf*)
16989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16990 need_version=no
16991 need_lib_prefix=no
16992 ;;
16993 freebsd-*)
16994 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16995 need_version=yes
16996 ;;
16997 esac
16998 shlibpath_var=LD_LIBRARY_PATH
16999 case $host_os in
17000 freebsd2*)
17001 shlibpath_overrides_runpath=yes
17002 ;;
17003 freebsd3.01* | freebsdelf3.01*)
17004 shlibpath_overrides_runpath=yes
17005 hardcode_into_libs=yes
17006 ;;
17007 *) # from 3.2 on
17008 shlibpath_overrides_runpath=no
17009 hardcode_into_libs=yes
17010 ;;
17011 esac
17012 ;;
17013
17014gnu*)
17015 version_type=linux
17016 need_lib_prefix=no
17017 need_version=no
17018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17019 soname_spec='${libname}${release}${shared_ext}$major'
17020 shlibpath_var=LD_LIBRARY_PATH
17021 hardcode_into_libs=yes
17022 ;;
17023
17024hpux9* | hpux10* | hpux11*)
17025 # Give a soname corresponding to the major version so that dld.sl refuses to
17026 # link against other versions.
17027 version_type=sunos
17028 need_lib_prefix=no
17029 need_version=no
17030 case "$host_cpu" in
17031 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017032 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017033 hardcode_into_libs=yes
17034 dynamic_linker="$host_os dld.so"
17035 shlibpath_var=LD_LIBRARY_PATH
17036 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17038 soname_spec='${libname}${release}${shared_ext}$major'
17039 if test "X$HPUX_IA64_MODE" = X32; then
17040 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17041 else
17042 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17043 fi
17044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17045 ;;
17046 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017047 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017048 hardcode_into_libs=yes
17049 dynamic_linker="$host_os dld.sl"
17050 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17051 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17053 soname_spec='${libname}${release}${shared_ext}$major'
17054 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17055 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17056 ;;
17057 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017058 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017059 dynamic_linker="$host_os dld.sl"
17060 shlibpath_var=SHLIB_PATH
17061 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17063 soname_spec='${libname}${release}${shared_ext}$major'
17064 ;;
17065 esac
17066 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17067 postinstall_cmds='chmod 555 $lib'
17068 ;;
17069
17070irix5* | irix6* | nonstopux*)
17071 case $host_os in
17072 nonstopux*) version_type=nonstopux ;;
17073 *)
17074 if test "$lt_cv_prog_gnu_ld" = yes; then
17075 version_type=linux
17076 else
17077 version_type=irix
17078 fi ;;
17079 esac
17080 need_lib_prefix=no
17081 need_version=no
17082 soname_spec='${libname}${release}${shared_ext}$major'
17083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17084 case $host_os in
17085 irix5* | nonstopux*)
17086 libsuff= shlibsuff=
17087 ;;
17088 *)
17089 case $LD in # libtool.m4 will add one of these switches to LD
17090 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17091 libsuff= shlibsuff= libmagic=32-bit;;
17092 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17093 libsuff=32 shlibsuff=N32 libmagic=N32;;
17094 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17095 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17096 *) libsuff= shlibsuff= libmagic=never-match;;
17097 esac
17098 ;;
17099 esac
17100 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17101 shlibpath_overrides_runpath=no
17102 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17103 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17104 hardcode_into_libs=yes
17105 ;;
17106
17107# No shared lib support for Linux oldld, aout, or coff.
17108linux*oldld* | linux*aout* | linux*coff*)
17109 dynamic_linker=no
17110 ;;
17111
17112# This must be Linux ELF.
17113linux*)
17114 version_type=linux
17115 need_lib_prefix=no
17116 need_version=no
17117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17118 soname_spec='${libname}${release}${shared_ext}$major'
17119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17120 shlibpath_var=LD_LIBRARY_PATH
17121 shlibpath_overrides_runpath=no
17122 # This implies no fast_install, which is unacceptable.
17123 # Some rework will be needed to allow for fast_install
17124 # before this can be enabled.
17125 hardcode_into_libs=yes
17126
Reid Spencer2706f8c2004-09-19 23:53:36 +000017127 # Append ld.so.conf contents to the search path
17128 if test -f /etc/ld.so.conf; then
17129 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17130 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17131 fi
17132
John Criswell47fdd832003-07-14 16:52:07 +000017133 # We used to test for /lib/ld.so.1 and disable shared libraries on
17134 # powerpc, because MkLinux only supported shared libraries with the
17135 # GNU dynamic linker. Since this was broken with cross compilers,
17136 # most powerpc-linux boxes support dynamic linking these days and
17137 # people can always --disable-shared, the test was removed, and we
17138 # assume the GNU/Linux dynamic linker is in use.
17139 dynamic_linker='GNU/Linux ld.so'
17140 ;;
17141
Reid Spencer2706f8c2004-09-19 23:53:36 +000017142knetbsd*-gnu)
17143 version_type=linux
17144 need_lib_prefix=no
17145 need_version=no
17146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17147 soname_spec='${libname}${release}${shared_ext}$major'
17148 shlibpath_var=LD_LIBRARY_PATH
17149 shlibpath_overrides_runpath=no
17150 hardcode_into_libs=yes
17151 dynamic_linker='GNU ld.so'
17152 ;;
17153
John Criswell47fdd832003-07-14 16:52:07 +000017154netbsd*)
17155 version_type=sunos
17156 need_lib_prefix=no
17157 need_version=no
17158 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17160 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17161 dynamic_linker='NetBSD (a.out) ld.so'
17162 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017164 soname_spec='${libname}${release}${shared_ext}$major'
17165 dynamic_linker='NetBSD ld.elf_so'
17166 fi
17167 shlibpath_var=LD_LIBRARY_PATH
17168 shlibpath_overrides_runpath=yes
17169 hardcode_into_libs=yes
17170 ;;
17171
17172newsos6)
17173 version_type=linux
17174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17175 shlibpath_var=LD_LIBRARY_PATH
17176 shlibpath_overrides_runpath=yes
17177 ;;
17178
Reid Spencer2706f8c2004-09-19 23:53:36 +000017179nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017180 version_type=linux
17181 need_lib_prefix=no
17182 need_version=no
17183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17184 soname_spec='${libname}${release}${shared_ext}$major'
17185 shlibpath_var=LD_LIBRARY_PATH
17186 shlibpath_overrides_runpath=yes
17187 ;;
17188
17189openbsd*)
17190 version_type=sunos
17191 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017192 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17195 shlibpath_var=LD_LIBRARY_PATH
17196 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17197 case $host_os in
17198 openbsd2.[89] | openbsd2.[89].*)
17199 shlibpath_overrides_runpath=no
17200 ;;
17201 *)
17202 shlibpath_overrides_runpath=yes
17203 ;;
17204 esac
17205 else
17206 shlibpath_overrides_runpath=yes
17207 fi
17208 ;;
17209
17210os2*)
17211 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017212 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017213 need_lib_prefix=no
17214 library_names_spec='$libname${shared_ext} $libname.a'
17215 dynamic_linker='OS/2 ld.exe'
17216 shlibpath_var=LIBPATH
17217 ;;
17218
17219osf3* | osf4* | osf5*)
17220 version_type=osf
17221 need_lib_prefix=no
17222 need_version=no
17223 soname_spec='${libname}${release}${shared_ext}$major'
17224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17225 shlibpath_var=LD_LIBRARY_PATH
17226 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17227 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17228 ;;
17229
17230sco3.2v5*)
17231 version_type=osf
17232 soname_spec='${libname}${release}${shared_ext}$major'
17233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17234 shlibpath_var=LD_LIBRARY_PATH
17235 ;;
17236
17237solaris*)
17238 version_type=linux
17239 need_lib_prefix=no
17240 need_version=no
17241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17242 soname_spec='${libname}${release}${shared_ext}$major'
17243 shlibpath_var=LD_LIBRARY_PATH
17244 shlibpath_overrides_runpath=yes
17245 hardcode_into_libs=yes
17246 # ldd complains unless libraries are executable
17247 postinstall_cmds='chmod +x $lib'
17248 ;;
17249
17250sunos4*)
17251 version_type=sunos
17252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17253 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17254 shlibpath_var=LD_LIBRARY_PATH
17255 shlibpath_overrides_runpath=yes
17256 if test "$with_gnu_ld" = yes; then
17257 need_lib_prefix=no
17258 fi
17259 need_version=yes
17260 ;;
17261
17262sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17263 version_type=linux
17264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17265 soname_spec='${libname}${release}${shared_ext}$major'
17266 shlibpath_var=LD_LIBRARY_PATH
17267 case $host_vendor in
17268 sni)
17269 shlibpath_overrides_runpath=no
17270 need_lib_prefix=no
17271 export_dynamic_flag_spec='${wl}-Blargedynsym'
17272 runpath_var=LD_RUN_PATH
17273 ;;
17274 siemens)
17275 need_lib_prefix=no
17276 ;;
17277 motorola)
17278 need_lib_prefix=no
17279 need_version=no
17280 shlibpath_overrides_runpath=no
17281 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17282 ;;
17283 esac
17284 ;;
17285
17286sysv4*MP*)
17287 if test -d /usr/nec ;then
17288 version_type=linux
17289 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17290 soname_spec='$libname${shared_ext}.$major'
17291 shlibpath_var=LD_LIBRARY_PATH
17292 fi
17293 ;;
17294
17295uts4*)
17296 version_type=linux
17297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17298 soname_spec='${libname}${release}${shared_ext}$major'
17299 shlibpath_var=LD_LIBRARY_PATH
17300 ;;
17301
17302*)
17303 dynamic_linker=no
17304 ;;
17305esac
17306echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17307echo "${ECHO_T}$dynamic_linker" >&6
17308test "$dynamic_linker" = no && can_build_shared=no
17309
Reid Spencer2706f8c2004-09-19 23:53:36 +000017310echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17311echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17312hardcode_action_CXX=
17313if test -n "$hardcode_libdir_flag_spec_CXX" || \
17314 test -n "$runpath_var_CXX" || \
17315 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17316
17317 # We can hardcode non-existant directories.
17318 if test "$hardcode_direct_CXX" != no &&
17319 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17320 # have to relink, otherwise we might link with an installed library
17321 # when we should be linking with a yet-to-be-installed one
17322 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17323 test "$hardcode_minus_L_CXX" != no; then
17324 # Linking always hardcodes the temporary library directory.
17325 hardcode_action_CXX=relink
17326 else
17327 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17328 hardcode_action_CXX=immediate
17329 fi
17330else
17331 # We cannot hardcode anything, or else we can only hardcode existing
17332 # directories.
17333 hardcode_action_CXX=unsupported
17334fi
17335echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17336echo "${ECHO_T}$hardcode_action_CXX" >&6
17337
17338if test "$hardcode_action_CXX" = relink; then
17339 # Fast installation is not supported
17340 enable_fast_install=no
17341elif test "$shlibpath_overrides_runpath" = yes ||
17342 test "$enable_shared" = no; then
17343 # Fast installation is not necessary
17344 enable_fast_install=needless
17345fi
17346
17347striplib=
17348old_striplib=
17349echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17350echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17351if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17352 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17353 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17354 echo "$as_me:$LINENO: result: yes" >&5
17355echo "${ECHO_T}yes" >&6
17356else
17357# FIXME - insert some real tests, host_os isn't really good enough
17358 case $host_os in
17359 darwin*)
17360 if test -n "$STRIP" ; then
17361 striplib="$STRIP -x"
17362 echo "$as_me:$LINENO: result: yes" >&5
17363echo "${ECHO_T}yes" >&6
17364 else
17365 echo "$as_me:$LINENO: result: no" >&5
17366echo "${ECHO_T}no" >&6
17367fi
17368 ;;
17369 *)
17370 echo "$as_me:$LINENO: result: no" >&5
17371echo "${ECHO_T}no" >&6
17372 ;;
17373 esac
17374fi
17375
John Criswell47fdd832003-07-14 16:52:07 +000017376if test "x$enable_dlopen" != xyes; then
17377 enable_dlopen=unknown
17378 enable_dlopen_self=unknown
17379 enable_dlopen_self_static=unknown
17380else
17381 lt_cv_dlopen=no
17382 lt_cv_dlopen_libs=
17383
17384 case $host_os in
17385 beos*)
17386 lt_cv_dlopen="load_add_on"
17387 lt_cv_dlopen_libs=
17388 lt_cv_dlopen_self=yes
17389 ;;
17390
17391 mingw* | pw32*)
17392 lt_cv_dlopen="LoadLibrary"
17393 lt_cv_dlopen_libs=
17394 ;;
17395
17396 cygwin*)
17397 lt_cv_dlopen="dlopen"
17398 lt_cv_dlopen_libs=
17399 ;;
17400
17401 darwin*)
17402 # if libdl is installed we need to link against it
17403 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17404echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17405if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17406 echo $ECHO_N "(cached) $ECHO_C" >&6
17407else
17408 ac_check_lib_save_LIBS=$LIBS
17409LIBS="-ldl $LIBS"
17410cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017411/* confdefs.h. */
17412_ACEOF
17413cat confdefs.h >>conftest.$ac_ext
17414cat >>conftest.$ac_ext <<_ACEOF
17415/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017416
17417/* Override any gcc2 internal prototype to avoid an error. */
17418#ifdef __cplusplus
17419extern "C"
17420#endif
17421/* We use char because int might match the return type of a gcc2
17422 builtin and then its argument prototype would still apply. */
17423char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017424int
17425main ()
17426{
17427dlopen ();
17428 ;
17429 return 0;
17430}
17431_ACEOF
17432rm -f conftest.$ac_objext conftest$ac_exeext
17433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017434 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017435 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017436 grep -v '^ *+' conftest.er1 >conftest.err
17437 rm -f conftest.er1
17438 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017441 { ac_try='test -z "$ac_cxx_werror_flag"
17442 || test ! -s conftest.err'
17443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17444 (eval $ac_try) 2>&5
17445 ac_status=$?
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); }; } &&
17448 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17450 (eval $ac_try) 2>&5
17451 ac_status=$?
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; }; then
17454 ac_cv_lib_dl_dlopen=yes
17455else
17456 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017457sed 's/^/| /' conftest.$ac_ext >&5
17458
John Criswell47fdd832003-07-14 16:52:07 +000017459ac_cv_lib_dl_dlopen=no
17460fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017461rm -f conftest.err conftest.$ac_objext \
17462 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017463LIBS=$ac_check_lib_save_LIBS
17464fi
17465echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17466echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17467if test $ac_cv_lib_dl_dlopen = yes; then
17468 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17469else
17470
17471 lt_cv_dlopen="dyld"
17472 lt_cv_dlopen_libs=
17473 lt_cv_dlopen_self=yes
17474
17475fi
17476
17477 ;;
17478
17479 *)
17480 echo "$as_me:$LINENO: checking for shl_load" >&5
17481echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17482if test "${ac_cv_func_shl_load+set}" = set; then
17483 echo $ECHO_N "(cached) $ECHO_C" >&6
17484else
17485 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017486/* confdefs.h. */
17487_ACEOF
17488cat confdefs.h >>conftest.$ac_ext
17489cat >>conftest.$ac_ext <<_ACEOF
17490/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017491/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17493#define shl_load innocuous_shl_load
17494
John Criswell47fdd832003-07-14 16:52:07 +000017495/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017496 which can conflict with char shl_load (); below.
17497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17498 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017499
John Criswell0c38eaf2003-09-10 15:17:25 +000017500#ifdef __STDC__
17501# include <limits.h>
17502#else
17503# include <assert.h>
17504#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017505
17506#undef shl_load
17507
John Criswell47fdd832003-07-14 16:52:07 +000017508/* Override any gcc2 internal prototype to avoid an error. */
17509#ifdef __cplusplus
17510extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017511{
John Criswell47fdd832003-07-14 16:52:07 +000017512#endif
17513/* We use char because int might match the return type of a gcc2
17514 builtin and then its argument prototype would still apply. */
17515char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017516/* The GNU C library defines this for functions which it implements
17517 to always fail with ENOSYS. Some functions are actually named
17518 something starting with __ and the normal name is an alias. */
17519#if defined (__stub_shl_load) || defined (__stub___shl_load)
17520choke me
17521#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017522char (*f) () = shl_load;
17523#endif
17524#ifdef __cplusplus
17525}
John Criswell47fdd832003-07-14 16:52:07 +000017526#endif
17527
John Criswell0c38eaf2003-09-10 15:17:25 +000017528int
17529main ()
17530{
17531return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017532 ;
17533 return 0;
17534}
17535_ACEOF
17536rm -f conftest.$ac_objext conftest$ac_exeext
17537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017538 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017539 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017540 grep -v '^ *+' conftest.er1 >conftest.err
17541 rm -f conftest.er1
17542 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017545 { ac_try='test -z "$ac_cxx_werror_flag"
17546 || test ! -s conftest.err'
17547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548 (eval $ac_try) 2>&5
17549 ac_status=$?
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); }; } &&
17552 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17554 (eval $ac_try) 2>&5
17555 ac_status=$?
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; }; then
17558 ac_cv_func_shl_load=yes
17559else
17560 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017561sed 's/^/| /' conftest.$ac_ext >&5
17562
John Criswell47fdd832003-07-14 16:52:07 +000017563ac_cv_func_shl_load=no
17564fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017565rm -f conftest.err conftest.$ac_objext \
17566 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017567fi
17568echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17569echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17570if test $ac_cv_func_shl_load = yes; then
17571 lt_cv_dlopen="shl_load"
17572else
17573 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17574echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17575if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17576 echo $ECHO_N "(cached) $ECHO_C" >&6
17577else
17578 ac_check_lib_save_LIBS=$LIBS
17579LIBS="-ldld $LIBS"
17580cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017581/* confdefs.h. */
17582_ACEOF
17583cat confdefs.h >>conftest.$ac_ext
17584cat >>conftest.$ac_ext <<_ACEOF
17585/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017586
17587/* Override any gcc2 internal prototype to avoid an error. */
17588#ifdef __cplusplus
17589extern "C"
17590#endif
17591/* We use char because int might match the return type of a gcc2
17592 builtin and then its argument prototype would still apply. */
17593char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017594int
17595main ()
17596{
17597shl_load ();
17598 ;
17599 return 0;
17600}
17601_ACEOF
17602rm -f conftest.$ac_objext conftest$ac_exeext
17603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017604 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017605 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017606 grep -v '^ *+' conftest.er1 >conftest.err
17607 rm -f conftest.er1
17608 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017611 { ac_try='test -z "$ac_cxx_werror_flag"
17612 || test ! -s conftest.err'
17613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614 (eval $ac_try) 2>&5
17615 ac_status=$?
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; } &&
17618 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620 (eval $ac_try) 2>&5
17621 ac_status=$?
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); }; }; then
17624 ac_cv_lib_dld_shl_load=yes
17625else
17626 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017627sed 's/^/| /' conftest.$ac_ext >&5
17628
John Criswell47fdd832003-07-14 16:52:07 +000017629ac_cv_lib_dld_shl_load=no
17630fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017631rm -f conftest.err conftest.$ac_objext \
17632 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017633LIBS=$ac_check_lib_save_LIBS
17634fi
17635echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17636echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17637if test $ac_cv_lib_dld_shl_load = yes; then
17638 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17639else
17640 echo "$as_me:$LINENO: checking for dlopen" >&5
17641echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17642if test "${ac_cv_func_dlopen+set}" = set; then
17643 echo $ECHO_N "(cached) $ECHO_C" >&6
17644else
17645 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017646/* confdefs.h. */
17647_ACEOF
17648cat confdefs.h >>conftest.$ac_ext
17649cat >>conftest.$ac_ext <<_ACEOF
17650/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017651/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17653#define dlopen innocuous_dlopen
17654
John Criswell47fdd832003-07-14 16:52:07 +000017655/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017656 which can conflict with char dlopen (); below.
17657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17658 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017659
John Criswell0c38eaf2003-09-10 15:17:25 +000017660#ifdef __STDC__
17661# include <limits.h>
17662#else
17663# include <assert.h>
17664#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017665
17666#undef dlopen
17667
John Criswell47fdd832003-07-14 16:52:07 +000017668/* Override any gcc2 internal prototype to avoid an error. */
17669#ifdef __cplusplus
17670extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017671{
John Criswell47fdd832003-07-14 16:52:07 +000017672#endif
17673/* We use char because int might match the return type of a gcc2
17674 builtin and then its argument prototype would still apply. */
17675char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017676/* The GNU C library defines this for functions which it implements
17677 to always fail with ENOSYS. Some functions are actually named
17678 something starting with __ and the normal name is an alias. */
17679#if defined (__stub_dlopen) || defined (__stub___dlopen)
17680choke me
17681#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017682char (*f) () = dlopen;
17683#endif
17684#ifdef __cplusplus
17685}
John Criswell47fdd832003-07-14 16:52:07 +000017686#endif
17687
John Criswell0c38eaf2003-09-10 15:17:25 +000017688int
17689main ()
17690{
17691return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017692 ;
17693 return 0;
17694}
17695_ACEOF
17696rm -f conftest.$ac_objext conftest$ac_exeext
17697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017698 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017699 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017700 grep -v '^ *+' conftest.er1 >conftest.err
17701 rm -f conftest.er1
17702 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017705 { ac_try='test -z "$ac_cxx_werror_flag"
17706 || test ! -s conftest.err'
17707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708 (eval $ac_try) 2>&5
17709 ac_status=$?
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; } &&
17712 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17714 (eval $ac_try) 2>&5
17715 ac_status=$?
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); }; }; then
17718 ac_cv_func_dlopen=yes
17719else
17720 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017721sed 's/^/| /' conftest.$ac_ext >&5
17722
John Criswell47fdd832003-07-14 16:52:07 +000017723ac_cv_func_dlopen=no
17724fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017725rm -f conftest.err conftest.$ac_objext \
17726 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017727fi
17728echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17729echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17730if test $ac_cv_func_dlopen = yes; then
17731 lt_cv_dlopen="dlopen"
17732else
17733 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17734echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17735if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17736 echo $ECHO_N "(cached) $ECHO_C" >&6
17737else
17738 ac_check_lib_save_LIBS=$LIBS
17739LIBS="-ldl $LIBS"
17740cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017741/* confdefs.h. */
17742_ACEOF
17743cat confdefs.h >>conftest.$ac_ext
17744cat >>conftest.$ac_ext <<_ACEOF
17745/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017746
17747/* Override any gcc2 internal prototype to avoid an error. */
17748#ifdef __cplusplus
17749extern "C"
17750#endif
17751/* We use char because int might match the return type of a gcc2
17752 builtin and then its argument prototype would still apply. */
17753char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017754int
17755main ()
17756{
17757dlopen ();
17758 ;
17759 return 0;
17760}
17761_ACEOF
17762rm -f conftest.$ac_objext conftest$ac_exeext
17763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017764 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017765 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017766 grep -v '^ *+' conftest.er1 >conftest.err
17767 rm -f conftest.er1
17768 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017771 { ac_try='test -z "$ac_cxx_werror_flag"
17772 || test ! -s conftest.err'
17773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774 (eval $ac_try) 2>&5
17775 ac_status=$?
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; } &&
17778 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17780 (eval $ac_try) 2>&5
17781 ac_status=$?
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; }; then
17784 ac_cv_lib_dl_dlopen=yes
17785else
17786 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017787sed 's/^/| /' conftest.$ac_ext >&5
17788
John Criswell47fdd832003-07-14 16:52:07 +000017789ac_cv_lib_dl_dlopen=no
17790fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017791rm -f conftest.err conftest.$ac_objext \
17792 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017793LIBS=$ac_check_lib_save_LIBS
17794fi
17795echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17796echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17797if test $ac_cv_lib_dl_dlopen = yes; then
17798 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17799else
17800 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17801echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17802if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17803 echo $ECHO_N "(cached) $ECHO_C" >&6
17804else
17805 ac_check_lib_save_LIBS=$LIBS
17806LIBS="-lsvld $LIBS"
17807cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017808/* confdefs.h. */
17809_ACEOF
17810cat confdefs.h >>conftest.$ac_ext
17811cat >>conftest.$ac_ext <<_ACEOF
17812/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017813
17814/* Override any gcc2 internal prototype to avoid an error. */
17815#ifdef __cplusplus
17816extern "C"
17817#endif
17818/* We use char because int might match the return type of a gcc2
17819 builtin and then its argument prototype would still apply. */
17820char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017821int
17822main ()
17823{
17824dlopen ();
17825 ;
17826 return 0;
17827}
17828_ACEOF
17829rm -f conftest.$ac_objext conftest$ac_exeext
17830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017831 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017832 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017833 grep -v '^ *+' conftest.er1 >conftest.err
17834 rm -f conftest.er1
17835 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017838 { ac_try='test -z "$ac_cxx_werror_flag"
17839 || test ! -s conftest.err'
17840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17841 (eval $ac_try) 2>&5
17842 ac_status=$?
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); }; } &&
17845 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17847 (eval $ac_try) 2>&5
17848 ac_status=$?
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; }; then
17851 ac_cv_lib_svld_dlopen=yes
17852else
17853 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017854sed 's/^/| /' conftest.$ac_ext >&5
17855
John Criswell47fdd832003-07-14 16:52:07 +000017856ac_cv_lib_svld_dlopen=no
17857fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017858rm -f conftest.err conftest.$ac_objext \
17859 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017860LIBS=$ac_check_lib_save_LIBS
17861fi
17862echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17863echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17864if test $ac_cv_lib_svld_dlopen = yes; then
17865 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17866else
17867 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17868echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17869if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17870 echo $ECHO_N "(cached) $ECHO_C" >&6
17871else
17872 ac_check_lib_save_LIBS=$LIBS
17873LIBS="-ldld $LIBS"
17874cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017875/* confdefs.h. */
17876_ACEOF
17877cat confdefs.h >>conftest.$ac_ext
17878cat >>conftest.$ac_ext <<_ACEOF
17879/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017880
17881/* Override any gcc2 internal prototype to avoid an error. */
17882#ifdef __cplusplus
17883extern "C"
17884#endif
17885/* We use char because int might match the return type of a gcc2
17886 builtin and then its argument prototype would still apply. */
17887char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017888int
17889main ()
17890{
17891dld_link ();
17892 ;
17893 return 0;
17894}
17895_ACEOF
17896rm -f conftest.$ac_objext conftest$ac_exeext
17897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017898 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017899 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017900 grep -v '^ *+' conftest.er1 >conftest.err
17901 rm -f conftest.er1
17902 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017905 { ac_try='test -z "$ac_cxx_werror_flag"
17906 || test ! -s conftest.err'
17907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17908 (eval $ac_try) 2>&5
17909 ac_status=$?
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; } &&
17912 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914 (eval $ac_try) 2>&5
17915 ac_status=$?
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; }; then
17918 ac_cv_lib_dld_dld_link=yes
17919else
17920 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017921sed 's/^/| /' conftest.$ac_ext >&5
17922
John Criswell47fdd832003-07-14 16:52:07 +000017923ac_cv_lib_dld_dld_link=no
17924fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017925rm -f conftest.err conftest.$ac_objext \
17926 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017927LIBS=$ac_check_lib_save_LIBS
17928fi
17929echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17930echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17931if test $ac_cv_lib_dld_dld_link = yes; then
17932 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17933fi
17934
17935
17936fi
17937
17938
17939fi
17940
17941
17942fi
17943
17944
17945fi
17946
17947
17948fi
17949
17950 ;;
17951 esac
17952
17953 if test "x$lt_cv_dlopen" != xno; then
17954 enable_dlopen=yes
17955 else
17956 enable_dlopen=no
17957 fi
17958
17959 case $lt_cv_dlopen in
17960 dlopen)
17961 save_CPPFLAGS="$CPPFLAGS"
17962 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17963
17964 save_LDFLAGS="$LDFLAGS"
17965 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17966
17967 save_LIBS="$LIBS"
17968 LIBS="$lt_cv_dlopen_libs $LIBS"
17969
17970 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17971echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17972if test "${lt_cv_dlopen_self+set}" = set; then
17973 echo $ECHO_N "(cached) $ECHO_C" >&6
17974else
17975 if test "$cross_compiling" = yes; then :
17976 lt_cv_dlopen_self=cross
17977else
17978 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17979 lt_status=$lt_dlunknown
17980 cat > conftest.$ac_ext <<EOF
Reid Spencer95ed8432004-12-23 06:22:33 +000017981#line 17981 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017982#include "confdefs.h"
17983
17984#if HAVE_DLFCN_H
17985#include <dlfcn.h>
17986#endif
17987
17988#include <stdio.h>
17989
17990#ifdef RTLD_GLOBAL
17991# define LT_DLGLOBAL RTLD_GLOBAL
17992#else
17993# ifdef DL_GLOBAL
17994# define LT_DLGLOBAL DL_GLOBAL
17995# else
17996# define LT_DLGLOBAL 0
17997# endif
17998#endif
17999
18000/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18001 find out it does not work in some platform. */
18002#ifndef LT_DLLAZY_OR_NOW
18003# ifdef RTLD_LAZY
18004# define LT_DLLAZY_OR_NOW RTLD_LAZY
18005# else
18006# ifdef DL_LAZY
18007# define LT_DLLAZY_OR_NOW DL_LAZY
18008# else
18009# ifdef RTLD_NOW
18010# define LT_DLLAZY_OR_NOW RTLD_NOW
18011# else
18012# ifdef DL_NOW
18013# define LT_DLLAZY_OR_NOW DL_NOW
18014# else
18015# define LT_DLLAZY_OR_NOW 0
18016# endif
18017# endif
18018# endif
18019# endif
18020#endif
18021
18022#ifdef __cplusplus
18023extern "C" void exit (int);
18024#endif
18025
18026void fnord() { int i=42;}
18027int main ()
18028{
18029 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18030 int status = $lt_dlunknown;
18031
18032 if (self)
18033 {
18034 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18035 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18036 /* dlclose (self); */
18037 }
18038
18039 exit (status);
18040}
18041EOF
18042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18043 (eval $ac_link) 2>&5
18044 ac_status=$?
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18047 (./conftest; exit; ) 2>/dev/null
18048 lt_status=$?
18049 case x$lt_status in
18050 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18051 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18052 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18053 esac
18054 else :
18055 # compilation failed
18056 lt_cv_dlopen_self=no
18057 fi
18058fi
18059rm -fr conftest*
18060
18061
18062fi
18063echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18064echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18065
18066 if test "x$lt_cv_dlopen_self" = xyes; then
18067 LDFLAGS="$LDFLAGS $link_static_flag"
18068 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18069echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18070if test "${lt_cv_dlopen_self_static+set}" = set; then
18071 echo $ECHO_N "(cached) $ECHO_C" >&6
18072else
18073 if test "$cross_compiling" = yes; then :
18074 lt_cv_dlopen_self_static=cross
18075else
18076 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18077 lt_status=$lt_dlunknown
18078 cat > conftest.$ac_ext <<EOF
Reid Spencer95ed8432004-12-23 06:22:33 +000018079#line 18079 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018080#include "confdefs.h"
18081
18082#if HAVE_DLFCN_H
18083#include <dlfcn.h>
18084#endif
18085
18086#include <stdio.h>
18087
18088#ifdef RTLD_GLOBAL
18089# define LT_DLGLOBAL RTLD_GLOBAL
18090#else
18091# ifdef DL_GLOBAL
18092# define LT_DLGLOBAL DL_GLOBAL
18093# else
18094# define LT_DLGLOBAL 0
18095# endif
18096#endif
18097
18098/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18099 find out it does not work in some platform. */
18100#ifndef LT_DLLAZY_OR_NOW
18101# ifdef RTLD_LAZY
18102# define LT_DLLAZY_OR_NOW RTLD_LAZY
18103# else
18104# ifdef DL_LAZY
18105# define LT_DLLAZY_OR_NOW DL_LAZY
18106# else
18107# ifdef RTLD_NOW
18108# define LT_DLLAZY_OR_NOW RTLD_NOW
18109# else
18110# ifdef DL_NOW
18111# define LT_DLLAZY_OR_NOW DL_NOW
18112# else
18113# define LT_DLLAZY_OR_NOW 0
18114# endif
18115# endif
18116# endif
18117# endif
18118#endif
18119
18120#ifdef __cplusplus
18121extern "C" void exit (int);
18122#endif
18123
18124void fnord() { int i=42;}
18125int main ()
18126{
18127 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18128 int status = $lt_dlunknown;
18129
18130 if (self)
18131 {
18132 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18133 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18134 /* dlclose (self); */
18135 }
18136
18137 exit (status);
18138}
18139EOF
18140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18141 (eval $ac_link) 2>&5
18142 ac_status=$?
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18145 (./conftest; exit; ) 2>/dev/null
18146 lt_status=$?
18147 case x$lt_status in
18148 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18149 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18150 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18151 esac
18152 else :
18153 # compilation failed
18154 lt_cv_dlopen_self_static=no
18155 fi
18156fi
18157rm -fr conftest*
18158
18159
18160fi
18161echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18162echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18163 fi
18164
18165 CPPFLAGS="$save_CPPFLAGS"
18166 LDFLAGS="$save_LDFLAGS"
18167 LIBS="$save_LIBS"
18168 ;;
18169 esac
18170
18171 case $lt_cv_dlopen_self in
18172 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18173 *) enable_dlopen_self=unknown ;;
18174 esac
18175
18176 case $lt_cv_dlopen_self_static in
18177 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18178 *) enable_dlopen_self_static=unknown ;;
18179 esac
18180fi
18181
18182
18183# The else clause should only fire when bootstrapping the
18184# libtool distribution, otherwise you forgot to ship ltmain.sh
18185# with your package, and you will get complaints that there are
18186# no rules to generate ltmain.sh.
18187if test -f "$ltmain"; then
18188 # See if we are running on zsh, and set the options which allow our commands through
18189 # without removal of \ escapes.
18190 if test -n "${ZSH_VERSION+set}" ; then
18191 setopt NO_GLOB_SUBST
18192 fi
18193 # Now quote all the things that may contain metacharacters while being
18194 # careful not to overquote the AC_SUBSTed values. We take copies of the
18195 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018196 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18197 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018198 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18199 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18200 deplibs_check_method reload_flag reload_cmds need_locks \
18201 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18202 lt_cv_sys_global_symbol_to_c_name_address \
18203 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18204 old_postinstall_cmds old_postuninstall_cmds \
18205 compiler_CXX \
18206 CC_CXX \
18207 LD_CXX \
18208 lt_prog_compiler_wl_CXX \
18209 lt_prog_compiler_pic_CXX \
18210 lt_prog_compiler_static_CXX \
18211 lt_prog_compiler_no_builtin_flag_CXX \
18212 export_dynamic_flag_spec_CXX \
18213 thread_safe_flag_spec_CXX \
18214 whole_archive_flag_spec_CXX \
18215 enable_shared_with_static_runtimes_CXX \
18216 old_archive_cmds_CXX \
18217 old_archive_from_new_cmds_CXX \
18218 predep_objects_CXX \
18219 postdep_objects_CXX \
18220 predeps_CXX \
18221 postdeps_CXX \
18222 compiler_lib_search_path_CXX \
18223 archive_cmds_CXX \
18224 archive_expsym_cmds_CXX \
18225 postinstall_cmds_CXX \
18226 postuninstall_cmds_CXX \
18227 old_archive_from_expsyms_cmds_CXX \
18228 allow_undefined_flag_CXX \
18229 no_undefined_flag_CXX \
18230 export_symbols_cmds_CXX \
18231 hardcode_libdir_flag_spec_CXX \
18232 hardcode_libdir_flag_spec_ld_CXX \
18233 hardcode_libdir_separator_CXX \
18234 hardcode_automatic_CXX \
18235 module_cmds_CXX \
18236 module_expsym_cmds_CXX \
18237 lt_cv_prog_compiler_c_o_CXX \
18238 exclude_expsyms_CXX \
18239 include_expsyms_CXX; do
18240
18241 case $var in
18242 old_archive_cmds_CXX | \
18243 old_archive_from_new_cmds_CXX | \
18244 archive_cmds_CXX | \
18245 archive_expsym_cmds_CXX | \
18246 module_cmds_CXX | \
18247 module_expsym_cmds_CXX | \
18248 old_archive_from_expsyms_cmds_CXX | \
18249 export_symbols_cmds_CXX | \
18250 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18251 postinstall_cmds | postuninstall_cmds | \
18252 old_postinstall_cmds | old_postuninstall_cmds | \
18253 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18254 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018255 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 +000018256 ;;
18257 *)
18258 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18259 ;;
18260 esac
18261 done
18262
18263 case $lt_echo in
18264 *'\$0 --fallback-echo"')
18265 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18266 ;;
18267 esac
18268
18269cfgfile="$ofile"
18270
18271 cat <<__EOF__ >> "$cfgfile"
18272# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18273
18274# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18275
18276# Shell to use when invoking shell scripts.
18277SHELL=$lt_SHELL
18278
18279# Whether or not to build shared libraries.
18280build_libtool_libs=$enable_shared
18281
18282# Whether or not to build static libraries.
18283build_old_libs=$enable_static
18284
18285# Whether or not to add -lc for building shared libraries.
18286build_libtool_need_lc=$archive_cmds_need_lc_CXX
18287
18288# Whether or not to disallow shared libs when runtime libs are static
18289allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18290
18291# Whether or not to optimize for fast installation.
18292fast_install=$enable_fast_install
18293
18294# The host system.
18295host_alias=$host_alias
18296host=$host
18297
18298# An echo program that does not interpret backslashes.
18299echo=$lt_echo
18300
18301# The archiver.
18302AR=$lt_AR
18303AR_FLAGS=$lt_AR_FLAGS
18304
18305# A C compiler.
18306LTCC=$lt_LTCC
18307
18308# A language-specific compiler.
18309CC=$lt_compiler_CXX
18310
18311# Is the compiler the GNU C compiler?
18312with_gcc=$GCC_CXX
18313
18314# An ERE matcher.
18315EGREP=$lt_EGREP
18316
18317# The linker used to build libraries.
18318LD=$lt_LD_CXX
18319
18320# Whether we need hard or soft links.
18321LN_S=$lt_LN_S
18322
18323# A BSD-compatible nm program.
18324NM=$lt_NM
18325
18326# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018327STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018328
18329# Used to examine libraries when file_magic_cmd begins "file"
18330MAGIC_CMD=$MAGIC_CMD
18331
18332# Used on cygwin: DLL creation program.
18333DLLTOOL="$DLLTOOL"
18334
18335# Used on cygwin: object dumper.
18336OBJDUMP="$OBJDUMP"
18337
18338# Used on cygwin: assembler.
18339AS="$AS"
18340
18341# The name of the directory that contains temporary libtool files.
18342objdir=$objdir
18343
18344# How to create reloadable object files.
18345reload_flag=$lt_reload_flag
18346reload_cmds=$lt_reload_cmds
18347
18348# How to pass a linker flag through the compiler.
18349wl=$lt_lt_prog_compiler_wl_CXX
18350
18351# Object file suffix (normally "o").
18352objext="$ac_objext"
18353
18354# Old archive suffix (normally "a").
18355libext="$libext"
18356
18357# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018358shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018359
18360# Executable file suffix (normally "").
18361exeext="$exeext"
18362
18363# Additional compiler flags for building library objects.
18364pic_flag=$lt_lt_prog_compiler_pic_CXX
18365pic_mode=$pic_mode
18366
18367# What is the maximum length of a command?
18368max_cmd_len=$lt_cv_sys_max_cmd_len
18369
18370# Does compiler simultaneously support -c and -o options?
18371compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18372
18373# Must we lock files when doing compilation ?
18374need_locks=$lt_need_locks
18375
18376# Do we need the lib prefix for modules?
18377need_lib_prefix=$need_lib_prefix
18378
18379# Do we need a version for libraries?
18380need_version=$need_version
18381
18382# Whether dlopen is supported.
18383dlopen_support=$enable_dlopen
18384
18385# Whether dlopen of programs is supported.
18386dlopen_self=$enable_dlopen_self
18387
18388# Whether dlopen of statically linked programs is supported.
18389dlopen_self_static=$enable_dlopen_self_static
18390
18391# Compiler flag to prevent dynamic linking.
18392link_static_flag=$lt_lt_prog_compiler_static_CXX
18393
18394# Compiler flag to turn off builtin functions.
18395no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18396
18397# Compiler flag to allow reflexive dlopens.
18398export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18399
18400# Compiler flag to generate shared objects directly from archives.
18401whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18402
18403# Compiler flag to generate thread-safe objects.
18404thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18405
18406# Library versioning type.
18407version_type=$version_type
18408
18409# Format of library name prefix.
18410libname_spec=$lt_libname_spec
18411
18412# List of archive names. First name is the real one, the rest are links.
18413# The last name is the one that the linker finds with -lNAME.
18414library_names_spec=$lt_library_names_spec
18415
18416# The coded name of the library, if different from the real name.
18417soname_spec=$lt_soname_spec
18418
18419# Commands used to build and install an old-style archive.
18420RANLIB=$lt_RANLIB
18421old_archive_cmds=$lt_old_archive_cmds_CXX
18422old_postinstall_cmds=$lt_old_postinstall_cmds
18423old_postuninstall_cmds=$lt_old_postuninstall_cmds
18424
18425# Create an old-style archive from a shared archive.
18426old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18427
18428# Create a temporary old-style archive to link instead of a shared archive.
18429old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18430
18431# Commands used to build and install a shared archive.
18432archive_cmds=$lt_archive_cmds_CXX
18433archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18434postinstall_cmds=$lt_postinstall_cmds
18435postuninstall_cmds=$lt_postuninstall_cmds
18436
18437# Commands used to build a loadable module (assumed same as above if empty)
18438module_cmds=$lt_module_cmds_CXX
18439module_expsym_cmds=$lt_module_expsym_cmds_CXX
18440
18441# Commands to strip libraries.
18442old_striplib=$lt_old_striplib
18443striplib=$lt_striplib
18444
18445# Dependencies to place before the objects being linked to create a
18446# shared library.
18447predep_objects=$lt_predep_objects_CXX
18448
18449# Dependencies to place after the objects being linked to create a
18450# shared library.
18451postdep_objects=$lt_postdep_objects_CXX
18452
18453# Dependencies to place before the objects being linked to create a
18454# shared library.
18455predeps=$lt_predeps_CXX
18456
18457# Dependencies to place after the objects being linked to create a
18458# shared library.
18459postdeps=$lt_postdeps_CXX
18460
18461# The library search path used internally by the compiler when linking
18462# a shared library.
18463compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18464
18465# Method to check whether dependent libraries are shared objects.
18466deplibs_check_method=$lt_deplibs_check_method
18467
18468# Command to use when deplibs_check_method == file_magic.
18469file_magic_cmd=$lt_file_magic_cmd
18470
18471# Flag that allows shared libraries with undefined symbols to be built.
18472allow_undefined_flag=$lt_allow_undefined_flag_CXX
18473
18474# Flag that forces no undefined symbols.
18475no_undefined_flag=$lt_no_undefined_flag_CXX
18476
18477# Commands used to finish a libtool library installation in a directory.
18478finish_cmds=$lt_finish_cmds
18479
18480# Same as above, but a single script fragment to be evaled but not shown.
18481finish_eval=$lt_finish_eval
18482
18483# Take the output of nm and produce a listing of raw symbols and C names.
18484global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18485
18486# Transform the output of nm in a proper C declaration
18487global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18488
18489# Transform the output of nm in a C name address pair
18490global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18491
18492# This is the shared library runtime path variable.
18493runpath_var=$runpath_var
18494
18495# This is the shared library path variable.
18496shlibpath_var=$shlibpath_var
18497
18498# Is shlibpath searched before the hard-coded library search path?
18499shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18500
18501# How to hardcode a shared library path into an executable.
18502hardcode_action=$hardcode_action_CXX
18503
18504# Whether we should hardcode library paths into libraries.
18505hardcode_into_libs=$hardcode_into_libs
18506
18507# Flag to hardcode \$libdir into a binary during linking.
18508# This must work even if \$libdir does not exist.
18509hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18510
18511# If ld is used when linking, flag to hardcode \$libdir into
18512# a binary during linking. This must work even if \$libdir does
18513# not exist.
18514hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18515
18516# Whether we need a single -rpath flag with a separated argument.
18517hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18518
18519# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18520# resulting binary.
18521hardcode_direct=$hardcode_direct_CXX
18522
18523# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18524# resulting binary.
18525hardcode_minus_L=$hardcode_minus_L_CXX
18526
18527# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18528# the resulting binary.
18529hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18530
18531# Set to yes if building a shared library automatically hardcodes DIR into the library
18532# and all subsequent libraries and executables linked against it.
18533hardcode_automatic=$hardcode_automatic_CXX
18534
18535# Variables whose values should be saved in libtool wrapper scripts and
18536# restored at relink time.
18537variables_saved_for_relink="$variables_saved_for_relink"
18538
18539# Whether libtool must link a program against all its dependency libraries.
18540link_all_deplibs=$link_all_deplibs_CXX
18541
18542# Compile-time system search path for libraries
18543sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18544
18545# Run-time system search path for libraries
18546sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18547
18548# Fix the shell variable \$srcfile for the compiler.
18549fix_srcfile_path="$fix_srcfile_path_CXX"
18550
18551# Set to yes if exported symbols are required.
18552always_export_symbols=$always_export_symbols_CXX
18553
18554# The commands to list exported symbols.
18555export_symbols_cmds=$lt_export_symbols_cmds_CXX
18556
18557# The commands to extract the exported symbol list from a shared archive.
18558extract_expsyms_cmds=$lt_extract_expsyms_cmds
18559
18560# Symbols that should not be listed in the preloaded symbols.
18561exclude_expsyms=$lt_exclude_expsyms_CXX
18562
18563# Symbols that must always be exported.
18564include_expsyms=$lt_include_expsyms_CXX
18565
18566# ### END LIBTOOL TAG CONFIG: $tagname
18567
18568__EOF__
18569
18570
18571else
18572 # If there is no Makefile yet, we rely on a make rule to execute
18573 # `config.status --recheck' to rerun these tests and create the
18574 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018575 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18576 if test -f "$ltmain_in"; then
18577 test -f Makefile && make "$ltmain"
18578 fi
John Criswell47fdd832003-07-14 16:52:07 +000018579fi
18580
18581
18582ac_ext=c
18583ac_cpp='$CPP $CPPFLAGS'
18584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18586ac_compiler_gnu=$ac_cv_c_compiler_gnu
18587
18588CC=$lt_save_CC
18589LDCXX=$LD
18590LD=$lt_save_LD
18591GCC=$lt_save_GCC
18592with_gnu_ldcxx=$with_gnu_ld
18593with_gnu_ld=$lt_save_with_gnu_ld
18594lt_cv_path_LDCXX=$lt_cv_path_LD
18595lt_cv_path_LD=$lt_save_path_LD
18596lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18597lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18598
18599 else
18600 tagname=""
18601 fi
18602 ;;
18603
18604 F77)
18605 if test -n "$F77" && test "X$F77" != "Xno"; then
18606
18607ac_ext=f
18608ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18609ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18610ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18611
18612
18613archive_cmds_need_lc_F77=no
18614allow_undefined_flag_F77=
18615always_export_symbols_F77=no
18616archive_expsym_cmds_F77=
18617export_dynamic_flag_spec_F77=
18618hardcode_direct_F77=no
18619hardcode_libdir_flag_spec_F77=
18620hardcode_libdir_flag_spec_ld_F77=
18621hardcode_libdir_separator_F77=
18622hardcode_minus_L_F77=no
18623hardcode_automatic_F77=no
18624module_cmds_F77=
18625module_expsym_cmds_F77=
18626link_all_deplibs_F77=unknown
18627old_archive_cmds_F77=$old_archive_cmds
18628no_undefined_flag_F77=
18629whole_archive_flag_spec_F77=
18630enable_shared_with_static_runtimes_F77=no
18631
18632# Source file extension for f77 test sources.
18633ac_ext=f
18634
18635# Object file extension for compiled f77 test sources.
18636objext=o
18637objext_F77=$objext
18638
18639# Code to be used in simple compile tests
18640lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18641
18642# Code to be used in simple link tests
18643lt_simple_link_test_code=" program t\n end\n"
18644
18645# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18646
18647# If no C compiler was specified, use CC.
18648LTCC=${LTCC-"$CC"}
18649
18650# Allow CC to be a program name with arguments.
18651compiler=$CC
18652
18653
18654# Allow CC to be a program name with arguments.
18655lt_save_CC="$CC"
18656CC=${F77-"f77"}
18657compiler=$CC
18658compiler_F77=$CC
18659cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18660
18661echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18662echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18663echo "$as_me:$LINENO: result: $can_build_shared" >&5
18664echo "${ECHO_T}$can_build_shared" >&6
18665
18666echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18667echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18668test "$can_build_shared" = "no" && enable_shared=no
18669
18670# On AIX, shared libraries and static libraries use the same namespace, and
18671# are all built from PIC.
18672case "$host_os" in
18673aix3*)
18674 test "$enable_shared" = yes && enable_static=no
18675 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018676 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018677 postinstall_cmds='$RANLIB $lib'
18678 fi
18679 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018680aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018681 test "$enable_shared" = yes && enable_static=no
18682 ;;
18683esac
18684echo "$as_me:$LINENO: result: $enable_shared" >&5
18685echo "${ECHO_T}$enable_shared" >&6
18686
18687echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18688echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18689# Make sure either enable_shared or enable_static is yes.
18690test "$enable_shared" = yes || enable_static=yes
18691echo "$as_me:$LINENO: result: $enable_static" >&5
18692echo "${ECHO_T}$enable_static" >&6
18693
18694test "$ld_shlibs_F77" = no && can_build_shared=no
18695
18696GCC_F77="$G77"
18697LD_F77="$LD"
18698
18699lt_prog_compiler_wl_F77=
18700lt_prog_compiler_pic_F77=
18701lt_prog_compiler_static_F77=
18702
18703echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18704echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18705
18706 if test "$GCC" = yes; then
18707 lt_prog_compiler_wl_F77='-Wl,'
18708 lt_prog_compiler_static_F77='-static'
18709
18710 case $host_os in
18711 aix*)
18712 # All AIX code is PIC.
18713 if test "$host_cpu" = ia64; then
18714 # AIX 5 now supports IA64 processor
18715 lt_prog_compiler_static_F77='-Bstatic'
18716 fi
18717 ;;
18718
18719 amigaos*)
18720 # FIXME: we need at least 68020 code to build shared libraries, but
18721 # adding the `-m68020' flag to GCC prevents building anything better,
18722 # like `-m68040'.
18723 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18724 ;;
18725
18726 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18727 # PIC is the default for these OSes.
18728 ;;
18729
18730 mingw* | pw32* | os2*)
18731 # This hack is so that the source file can tell whether it is being
18732 # built for inclusion in a dll (and should export symbols for example).
18733 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18734 ;;
18735
18736 darwin* | rhapsody*)
18737 # PIC is the default on this platform
18738 # Common symbols not allowed in MH_DYLIB files
18739 lt_prog_compiler_pic_F77='-fno-common'
18740 ;;
18741
18742 msdosdjgpp*)
18743 # Just because we use GCC doesn't mean we suddenly get shared libraries
18744 # on systems that don't support them.
18745 lt_prog_compiler_can_build_shared_F77=no
18746 enable_shared=no
18747 ;;
18748
18749 sysv4*MP*)
18750 if test -d /usr/nec; then
18751 lt_prog_compiler_pic_F77=-Kconform_pic
18752 fi
18753 ;;
18754
18755 hpux*)
18756 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18757 # not for PA HP-UX.
18758 case "$host_cpu" in
18759 hppa*64*|ia64*)
18760 # +Z the default
18761 ;;
18762 *)
18763 lt_prog_compiler_pic_F77='-fPIC'
18764 ;;
18765 esac
18766 ;;
18767
18768 *)
18769 lt_prog_compiler_pic_F77='-fPIC'
18770 ;;
18771 esac
18772 else
18773 # PORTME Check for flag to pass linker flags through the system compiler.
18774 case $host_os in
18775 aix*)
18776 lt_prog_compiler_wl_F77='-Wl,'
18777 if test "$host_cpu" = ia64; then
18778 # AIX 5 now supports IA64 processor
18779 lt_prog_compiler_static_F77='-Bstatic'
18780 else
18781 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18782 fi
18783 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018784 darwin*)
18785 # PIC is the default on this platform
18786 # Common symbols not allowed in MH_DYLIB files
18787 case "$cc_basename" in
18788 xlc*)
18789 lt_prog_compiler_pic_F77='-qnocommon'
18790 lt_prog_compiler_wl_F77='-Wl,'
18791 ;;
18792 esac
18793 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018794
18795 mingw* | pw32* | os2*)
18796 # This hack is so that the source file can tell whether it is being
18797 # built for inclusion in a dll (and should export symbols for example).
18798 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18799 ;;
18800
18801 hpux9* | hpux10* | hpux11*)
18802 lt_prog_compiler_wl_F77='-Wl,'
18803 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18804 # not for PA HP-UX.
18805 case "$host_cpu" in
18806 hppa*64*|ia64*)
18807 # +Z the default
18808 ;;
18809 *)
18810 lt_prog_compiler_pic_F77='+Z'
18811 ;;
18812 esac
18813 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18814 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18815 ;;
18816
18817 irix5* | irix6* | nonstopux*)
18818 lt_prog_compiler_wl_F77='-Wl,'
18819 # PIC (with -KPIC) is the default.
18820 lt_prog_compiler_static_F77='-non_shared'
18821 ;;
18822
18823 newsos6)
18824 lt_prog_compiler_pic_F77='-KPIC'
18825 lt_prog_compiler_static_F77='-Bstatic'
18826 ;;
18827
18828 linux*)
18829 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018830 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000018831 lt_prog_compiler_wl_F77='-Wl,'
18832 lt_prog_compiler_pic_F77='-KPIC'
18833 lt_prog_compiler_static_F77='-static'
18834 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018835 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000018836 lt_prog_compiler_wl_F77='-Wl,'
18837 # All Alpha code is PIC.
18838 lt_prog_compiler_static_F77='-non_shared'
18839 ;;
18840 esac
18841 ;;
18842
18843 osf3* | osf4* | osf5*)
18844 lt_prog_compiler_wl_F77='-Wl,'
18845 # All OSF/1 code is PIC.
18846 lt_prog_compiler_static_F77='-non_shared'
18847 ;;
18848
18849 sco3.2v5*)
18850 lt_prog_compiler_pic_F77='-Kpic'
18851 lt_prog_compiler_static_F77='-dn'
18852 ;;
18853
18854 solaris*)
18855 lt_prog_compiler_wl_F77='-Wl,'
18856 lt_prog_compiler_pic_F77='-KPIC'
18857 lt_prog_compiler_static_F77='-Bstatic'
18858 ;;
18859
18860 sunos4*)
18861 lt_prog_compiler_wl_F77='-Qoption ld '
18862 lt_prog_compiler_pic_F77='-PIC'
18863 lt_prog_compiler_static_F77='-Bstatic'
18864 ;;
18865
18866 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18867 lt_prog_compiler_wl_F77='-Wl,'
18868 lt_prog_compiler_pic_F77='-KPIC'
18869 lt_prog_compiler_static_F77='-Bstatic'
18870 ;;
18871
18872 sysv4*MP*)
18873 if test -d /usr/nec ;then
18874 lt_prog_compiler_pic_F77='-Kconform_pic'
18875 lt_prog_compiler_static_F77='-Bstatic'
18876 fi
18877 ;;
18878
18879 uts4*)
18880 lt_prog_compiler_pic_F77='-pic'
18881 lt_prog_compiler_static_F77='-Bstatic'
18882 ;;
18883
18884 *)
18885 lt_prog_compiler_can_build_shared_F77=no
18886 ;;
18887 esac
18888 fi
18889
18890echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18891echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18892
18893#
18894# Check to make sure the PIC flag actually works.
18895#
18896if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018897
18898echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018899echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18900if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18901 echo $ECHO_N "(cached) $ECHO_C" >&6
18902else
18903 lt_prog_compiler_pic_works_F77=no
18904 ac_outfile=conftest.$ac_objext
18905 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18906 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18907 # Insert the option either (1) after the last *FLAGS variable, or
18908 # (2) before a word containing "conftest.", or (3) at the end.
18909 # Note that $ac_compile itself does not contain backslashes and begins
18910 # with a dollar sign (not a hyphen), so the echo should work correctly.
18911 # The option is referenced via a variable to avoid confusing sed.
18912 lt_compile=`echo "$ac_compile" | $SED \
18913 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18915 -e 's:$: $lt_compiler_flag:'`
Reid Spencer95ed8432004-12-23 06:22:33 +000018916 (eval echo "\"\$as_me:18916: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018917 (eval "$lt_compile" 2>conftest.err)
18918 ac_status=$?
18919 cat conftest.err >&5
Reid Spencer95ed8432004-12-23 06:22:33 +000018920 echo "$as_me:18920: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018921 if (exit $ac_status) && test -s "$ac_outfile"; then
18922 # The compiler can only warn and ignore the option if not recognized
18923 # So say no if there are warnings
18924 if test ! -s conftest.err; then
18925 lt_prog_compiler_pic_works_F77=yes
18926 fi
18927 fi
18928 $rm conftest*
18929
18930fi
18931echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18932echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18933
18934if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18935 case $lt_prog_compiler_pic_F77 in
18936 "" | " "*) ;;
18937 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18938 esac
18939else
18940 lt_prog_compiler_pic_F77=
18941 lt_prog_compiler_can_build_shared_F77=no
18942fi
18943
18944fi
18945case "$host_os" in
18946 # For platforms which do not support PIC, -DPIC is meaningless:
18947 *djgpp*)
18948 lt_prog_compiler_pic_F77=
18949 ;;
18950 *)
18951 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18952 ;;
18953esac
18954
18955echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18956echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18957if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18958 echo $ECHO_N "(cached) $ECHO_C" >&6
18959else
18960 lt_cv_prog_compiler_c_o_F77=no
18961 $rm -r conftest 2>/dev/null
18962 mkdir conftest
18963 cd conftest
18964 mkdir out
18965 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18966
John Criswell47fdd832003-07-14 16:52:07 +000018967 lt_compiler_flag="-o out/conftest2.$ac_objext"
18968 # Insert the option either (1) after the last *FLAGS variable, or
18969 # (2) before a word containing "conftest.", or (3) at the end.
18970 # Note that $ac_compile itself does not contain backslashes and begins
18971 # with a dollar sign (not a hyphen), so the echo should work correctly.
18972 lt_compile=`echo "$ac_compile" | $SED \
18973 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18975 -e 's:$: $lt_compiler_flag:'`
Reid Spencer95ed8432004-12-23 06:22:33 +000018976 (eval echo "\"\$as_me:18976: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018977 (eval "$lt_compile" 2>out/conftest.err)
18978 ac_status=$?
18979 cat out/conftest.err >&5
Reid Spencer95ed8432004-12-23 06:22:33 +000018980 echo "$as_me:18980: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018981 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18982 then
18983 # The compiler can only warn and ignore the option if not recognized
18984 # So say no if there are warnings
18985 if test ! -s out/conftest.err; then
18986 lt_cv_prog_compiler_c_o_F77=yes
18987 fi
18988 fi
18989 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000018990 $rm conftest*
18991 # SGI C++ compiler will create directory out/ii_files/ for
18992 # template instantiation
18993 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18994 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000018995 cd ..
18996 rmdir conftest
18997 $rm conftest*
18998
18999fi
19000echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19001echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19002
19003
19004hard_links="nottested"
19005if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19006 # do not overwrite the value of need_locks provided by the user
19007 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19008echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19009 hard_links=yes
19010 $rm conftest*
19011 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19012 touch conftest.a
19013 ln conftest.a conftest.b 2>&5 || hard_links=no
19014 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19015 echo "$as_me:$LINENO: result: $hard_links" >&5
19016echo "${ECHO_T}$hard_links" >&6
19017 if test "$hard_links" = no; then
19018 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19019echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19020 need_locks=warn
19021 fi
19022else
19023 need_locks=no
19024fi
19025
19026echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19027echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19028
19029 runpath_var=
19030 allow_undefined_flag_F77=
19031 enable_shared_with_static_runtimes_F77=no
19032 archive_cmds_F77=
19033 archive_expsym_cmds_F77=
19034 old_archive_From_new_cmds_F77=
19035 old_archive_from_expsyms_cmds_F77=
19036 export_dynamic_flag_spec_F77=
19037 whole_archive_flag_spec_F77=
19038 thread_safe_flag_spec_F77=
19039 hardcode_libdir_flag_spec_F77=
19040 hardcode_libdir_flag_spec_ld_F77=
19041 hardcode_libdir_separator_F77=
19042 hardcode_direct_F77=no
19043 hardcode_minus_L_F77=no
19044 hardcode_shlibpath_var_F77=unsupported
19045 link_all_deplibs_F77=unknown
19046 hardcode_automatic_F77=no
19047 module_cmds_F77=
19048 module_expsym_cmds_F77=
19049 always_export_symbols_F77=no
19050 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19051 # include_expsyms should be a list of space-separated symbols to be *always*
19052 # included in the symbol list
19053 include_expsyms_F77=
19054 # exclude_expsyms can be an extended regexp of symbols to exclude
19055 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19056 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19057 # as well as any symbol that contains `d'.
19058 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19059 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19060 # platforms (ab)use it in PIC code, but their linkers get confused if
19061 # the symbol is explicitly referenced. Since portable code cannot
19062 # rely on this symbol name, it's probably fine to never include it in
19063 # preloaded symbol tables.
19064 extract_expsyms_cmds=
19065
19066 case $host_os in
19067 cygwin* | mingw* | pw32*)
19068 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19069 # When not using gcc, we currently assume that we are using
19070 # Microsoft Visual C++.
19071 if test "$GCC" != yes; then
19072 with_gnu_ld=no
19073 fi
19074 ;;
19075 openbsd*)
19076 with_gnu_ld=no
19077 ;;
19078 esac
19079
19080 ld_shlibs_F77=yes
19081 if test "$with_gnu_ld" = yes; then
19082 # If archive_cmds runs LD, not CC, wlarc should be empty
19083 wlarc='${wl}'
19084
19085 # See if GNU ld supports shared libraries.
19086 case $host_os in
19087 aix3* | aix4* | aix5*)
19088 # On AIX/PPC, the GNU linker is very broken
19089 if test "$host_cpu" != ia64; then
19090 ld_shlibs_F77=no
19091 cat <<EOF 1>&2
19092
19093*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19094*** to be unable to reliably create shared libraries on AIX.
19095*** Therefore, libtool is disabling shared libraries support. If you
19096*** really care for shared libraries, you may want to modify your PATH
19097*** so that a non-GNU linker is found, and then restart.
19098
19099EOF
19100 fi
19101 ;;
19102
19103 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019104 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 +000019105 hardcode_libdir_flag_spec_F77='-L$libdir'
19106 hardcode_minus_L_F77=yes
19107
19108 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19109 # that the semantics of dynamic libraries on AmigaOS, at least up
19110 # to version 4, is to share data among multiple programs linked
19111 # with the same dynamic library. Since this doesn't match the
19112 # behavior of shared libraries on other platforms, we can't use
19113 # them.
19114 ld_shlibs_F77=no
19115 ;;
19116
19117 beos*)
19118 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19119 allow_undefined_flag_F77=unsupported
19120 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19121 # support --undefined. This deserves some investigation. FIXME
19122 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19123 else
19124 ld_shlibs_F77=no
19125 fi
19126 ;;
19127
19128 cygwin* | mingw* | pw32*)
19129 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19130 # as there is no search path for DLLs.
19131 hardcode_libdir_flag_spec_F77='-L$libdir'
19132 allow_undefined_flag_F77=unsupported
19133 always_export_symbols_F77=no
19134 enable_shared_with_static_runtimes_F77=yes
19135 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19136
19137 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19138 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19139 # If the export-symbols file already is a .def file (1st line
19140 # is EXPORTS), use it as is; otherwise, prepend...
19141 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19142 cp $export_symbols $output_objdir/$soname.def;
19143 else
19144 echo EXPORTS > $output_objdir/$soname.def;
19145 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019146 fi~
19147 $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 +000019148 else
19149 ld_shlibs=no
19150 fi
19151 ;;
19152
19153 netbsd*)
19154 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19155 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19156 wlarc=
19157 else
19158 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19159 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19160 fi
19161 ;;
19162
19163 solaris* | sysv5*)
19164 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19165 ld_shlibs_F77=no
19166 cat <<EOF 1>&2
19167
19168*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19169*** create shared libraries on Solaris systems. Therefore, libtool
19170*** is disabling shared libraries support. We urge you to upgrade GNU
19171*** binutils to release 2.9.1 or newer. Another option is to modify
19172*** your PATH or compiler configuration so that the native linker is
19173*** used, and then restart.
19174
19175EOF
19176 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19177 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19178 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19179 else
19180 ld_shlibs_F77=no
19181 fi
19182 ;;
19183
19184 sunos4*)
19185 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19186 wlarc=
19187 hardcode_direct_F77=yes
19188 hardcode_shlibpath_var_F77=no
19189 ;;
19190
Reid Spencer2706f8c2004-09-19 23:53:36 +000019191 linux*)
19192 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19193 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19194 archive_cmds_F77="$tmp_archive_cmds"
19195 supports_anon_versioning=no
19196 case `$LD -v 2>/dev/null` in
19197 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19198 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19199 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19200 *\ 2.11.*) ;; # other 2.11 versions
19201 *) supports_anon_versioning=yes ;;
19202 esac
19203 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019204 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19205cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19206$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019207 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19208 else
19209 archive_expsym_cmds_F77="$tmp_archive_cmds"
19210 fi
19211 else
19212 ld_shlibs_F77=no
19213 fi
19214 ;;
19215
John Criswell47fdd832003-07-14 16:52:07 +000019216 *)
19217 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19218 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19219 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19220 else
19221 ld_shlibs_F77=no
19222 fi
19223 ;;
19224 esac
19225
19226 if test "$ld_shlibs_F77" = yes; then
19227 runpath_var=LD_RUN_PATH
19228 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19229 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19230 # ancient GNU ld didn't support --whole-archive et. al.
19231 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19232 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19233 else
19234 whole_archive_flag_spec_F77=
19235 fi
19236 fi
19237 else
19238 # PORTME fill in a description of your system's linker (not GNU ld)
19239 case $host_os in
19240 aix3*)
19241 allow_undefined_flag_F77=unsupported
19242 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019243 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 +000019244 # Note: this linker hardcodes the directories in LIBPATH if there
19245 # are no directories specified by -L.
19246 hardcode_minus_L_F77=yes
19247 if test "$GCC" = yes && test -z "$link_static_flag"; then
19248 # Neither direct hardcoding nor static linking is supported with a
19249 # broken collect2.
19250 hardcode_direct_F77=unsupported
19251 fi
19252 ;;
19253
19254 aix4* | aix5*)
19255 if test "$host_cpu" = ia64; then
19256 # On IA64, the linker does run time linking by default, so we don't
19257 # have to do anything special.
19258 aix_use_runtimelinking=no
19259 exp_sym_flag='-Bexport'
19260 no_entry_flag=""
19261 else
19262 # If we're using GNU nm, then we don't want the "-C" option.
19263 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19264 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19265 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'
19266 else
19267 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'
19268 fi
19269 aix_use_runtimelinking=no
19270
19271 # Test if we are trying to use run time linking or normal
19272 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19273 # need to do runtime linking.
19274 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19275 for ld_flag in $LDFLAGS; do
19276 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19277 aix_use_runtimelinking=yes
19278 break
19279 fi
19280 done
19281 esac
19282
19283 exp_sym_flag='-bexport'
19284 no_entry_flag='-bnoentry'
19285 fi
19286
19287 # When large executables or shared objects are built, AIX ld can
19288 # have problems creating the table of contents. If linking a library
19289 # or program results in "error TOC overflow" add -mminimal-toc to
19290 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19291 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19292
19293 archive_cmds_F77=''
19294 hardcode_direct_F77=yes
19295 hardcode_libdir_separator_F77=':'
19296 link_all_deplibs_F77=yes
19297
19298 if test "$GCC" = yes; then
19299 case $host_os in aix4.012|aix4.012.*)
19300 # We only want to do this on AIX 4.2 and lower, the check
19301 # below for broken collect2 doesn't work under 4.3+
19302 collect2name=`${CC} -print-prog-name=collect2`
19303 if test -f "$collect2name" && \
19304 strings "$collect2name" | grep resolve_lib_name >/dev/null
19305 then
19306 # We have reworked collect2
19307 hardcode_direct_F77=yes
19308 else
19309 # We have old collect2
19310 hardcode_direct_F77=unsupported
19311 # It fails to find uninstalled libraries when the uninstalled
19312 # path is not listed in the libpath. Setting hardcode_minus_L
19313 # to unsupported forces relinking
19314 hardcode_minus_L_F77=yes
19315 hardcode_libdir_flag_spec_F77='-L$libdir'
19316 hardcode_libdir_separator_F77=
19317 fi
19318 esac
19319 shared_flag='-shared'
19320 else
19321 # not using gcc
19322 if test "$host_cpu" = ia64; then
19323 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19324 # chokes on -Wl,-G. The following line is correct:
19325 shared_flag='-G'
19326 else
19327 if test "$aix_use_runtimelinking" = yes; then
19328 shared_flag='${wl}-G'
19329 else
19330 shared_flag='${wl}-bM:SRE'
19331 fi
19332 fi
19333 fi
19334
19335 # It seems that -bexpall does not export symbols beginning with
19336 # underscore (_), so it is better to generate a list of symbols to export.
19337 always_export_symbols_F77=yes
19338 if test "$aix_use_runtimelinking" = yes; then
19339 # Warning - without using the other runtime loading flags (-brtl),
19340 # -berok will link without error, but may produce a broken library.
19341 allow_undefined_flag_F77='-berok'
19342 # Determine the default libpath from the value encoded in an empty executable.
19343 cat >conftest.$ac_ext <<_ACEOF
19344 program main
19345
19346 end
19347_ACEOF
19348rm -f conftest.$ac_objext conftest$ac_exeext
19349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019350 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019351 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019352 grep -v '^ *+' conftest.er1 >conftest.err
19353 rm -f conftest.er1
19354 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019357 { ac_try='test -z "$ac_f77_werror_flag"
19358 || test ! -s conftest.err'
19359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360 (eval $ac_try) 2>&5
19361 ac_status=$?
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; } &&
19364 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19366 (eval $ac_try) 2>&5
19367 ac_status=$?
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }; }; then
19370
19371aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19372}'`
19373# Check for a 64-bit object if we didn't find anything.
19374if 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; }
19375}'`; fi
19376else
19377 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019378sed 's/^/| /' conftest.$ac_ext >&5
19379
John Criswell47fdd832003-07-14 16:52:07 +000019380fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019381rm -f conftest.err conftest.$ac_objext \
19382 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019383if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19384
19385 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19386 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"
19387 else
19388 if test "$host_cpu" = ia64; then
19389 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19390 allow_undefined_flag_F77="-z nodefs"
19391 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"
19392 else
19393 # Determine the default libpath from the value encoded in an empty executable.
19394 cat >conftest.$ac_ext <<_ACEOF
19395 program main
19396
19397 end
19398_ACEOF
19399rm -f conftest.$ac_objext conftest$ac_exeext
19400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019401 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019402 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019403 grep -v '^ *+' conftest.er1 >conftest.err
19404 rm -f conftest.er1
19405 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019408 { ac_try='test -z "$ac_f77_werror_flag"
19409 || test ! -s conftest.err'
19410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19411 (eval $ac_try) 2>&5
19412 ac_status=$?
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); }; } &&
19415 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19417 (eval $ac_try) 2>&5
19418 ac_status=$?
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); }; }; then
19421
19422aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19423}'`
19424# Check for a 64-bit object if we didn't find anything.
19425if 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; }
19426}'`; fi
19427else
19428 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019429sed 's/^/| /' conftest.$ac_ext >&5
19430
John Criswell47fdd832003-07-14 16:52:07 +000019431fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019432rm -f conftest.err conftest.$ac_objext \
19433 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019434if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19435
19436 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19437 # Warning - without using the other run time loading flags,
19438 # -berok will link without error, but may produce a broken library.
19439 no_undefined_flag_F77=' ${wl}-bernotok'
19440 allow_undefined_flag_F77=' ${wl}-berok'
19441 # -bexpall does not export symbols beginning with underscore (_)
19442 always_export_symbols_F77=yes
19443 # Exported symbols can be pulled into shared objects from archives
19444 whole_archive_flag_spec_F77=' '
19445 archive_cmds_need_lc_F77=yes
19446 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019447 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 +000019448 fi
19449 fi
19450 ;;
19451
19452 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019453 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 +000019454 hardcode_libdir_flag_spec_F77='-L$libdir'
19455 hardcode_minus_L_F77=yes
19456 # see comment about different semantics on the GNU ld section
19457 ld_shlibs_F77=no
19458 ;;
19459
Reid Spencer2706f8c2004-09-19 23:53:36 +000019460 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019461 export_dynamic_flag_spec_F77=-rdynamic
19462 ;;
19463
19464 cygwin* | mingw* | pw32*)
19465 # When not using gcc, we currently assume that we are using
19466 # Microsoft Visual C++.
19467 # hardcode_libdir_flag_spec is actually meaningless, as there is
19468 # no search path for DLLs.
19469 hardcode_libdir_flag_spec_F77=' '
19470 allow_undefined_flag_F77=unsupported
19471 # Tell ltmain to make .lib files, not .a files.
19472 libext=lib
19473 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019474 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019475 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019476 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 +000019477 # The linker will automatically build a .lib file if we build a DLL.
19478 old_archive_From_new_cmds_F77='true'
19479 # FIXME: Should let the user specify the lib program.
19480 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19481 fix_srcfile_path='`cygpath -w "$srcfile"`'
19482 enable_shared_with_static_runtimes_F77=yes
19483 ;;
19484
19485 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019486 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019487 rhapsody* | darwin1.[012])
19488 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19489 ;;
19490 *) # Darwin 1.3 on
19491 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19492 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19493 else
19494 case ${MACOSX_DEPLOYMENT_TARGET} in
19495 10.[012])
19496 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19497 ;;
19498 10.*)
19499 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19500 ;;
19501 esac
19502 fi
19503 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019504 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019505 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019506 hardcode_direct_F77=no
19507 hardcode_automatic_F77=yes
19508 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019509 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019510 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019511 if test "$GCC" = yes ; then
19512 output_verbose_link_cmd='echo'
19513 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19514 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19515 # 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 +000019516 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}'
19517 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 +000019518 else
19519 case "$cc_basename" in
19520 xlc*)
19521 output_verbose_link_cmd='echo'
19522 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19523 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19524 # 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 +000019525 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}'
19526 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 +000019527 ;;
19528 *)
19529 ld_shlibs_F77=no
19530 ;;
19531 esac
John Criswell47fdd832003-07-14 16:52:07 +000019532 fi
19533 ;;
19534
19535 dgux*)
19536 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19537 hardcode_libdir_flag_spec_F77='-L$libdir'
19538 hardcode_shlibpath_var_F77=no
19539 ;;
19540
19541 freebsd1*)
19542 ld_shlibs_F77=no
19543 ;;
19544
19545 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19546 # support. Future versions do this automatically, but an explicit c++rt0.o
19547 # does not break anything, and helps significantly (at the cost of a little
19548 # extra space).
19549 freebsd2.2*)
19550 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19551 hardcode_libdir_flag_spec_F77='-R$libdir'
19552 hardcode_direct_F77=yes
19553 hardcode_shlibpath_var_F77=no
19554 ;;
19555
19556 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19557 freebsd2*)
19558 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19559 hardcode_direct_F77=yes
19560 hardcode_minus_L_F77=yes
19561 hardcode_shlibpath_var_F77=no
19562 ;;
19563
19564 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019565 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019566 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19567 hardcode_libdir_flag_spec_F77='-R$libdir'
19568 hardcode_direct_F77=yes
19569 hardcode_shlibpath_var_F77=no
19570 ;;
19571
19572 hpux9*)
19573 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019574 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 +000019575 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019576 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 +000019577 fi
19578 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19579 hardcode_libdir_separator_F77=:
19580 hardcode_direct_F77=yes
19581
19582 # hardcode_minus_L: Not really in the search PATH,
19583 # but as the default location of the library.
19584 hardcode_minus_L_F77=yes
19585 export_dynamic_flag_spec_F77='${wl}-E'
19586 ;;
19587
19588 hpux10* | hpux11*)
19589 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19590 case "$host_cpu" in
19591 hppa*64*|ia64*)
19592 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19593 ;;
19594 *)
19595 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19596 ;;
19597 esac
19598 else
19599 case "$host_cpu" in
19600 hppa*64*|ia64*)
19601 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19602 ;;
19603 *)
19604 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19605 ;;
19606 esac
19607 fi
19608 if test "$with_gnu_ld" = no; then
19609 case "$host_cpu" in
19610 hppa*64*)
19611 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19612 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19613 hardcode_libdir_separator_F77=:
19614 hardcode_direct_F77=no
19615 hardcode_shlibpath_var_F77=no
19616 ;;
19617 ia64*)
19618 hardcode_libdir_flag_spec_F77='-L$libdir'
19619 hardcode_direct_F77=no
19620 hardcode_shlibpath_var_F77=no
19621
19622 # hardcode_minus_L: Not really in the search PATH,
19623 # but as the default location of the library.
19624 hardcode_minus_L_F77=yes
19625 ;;
19626 *)
19627 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19628 hardcode_libdir_separator_F77=:
19629 hardcode_direct_F77=yes
19630 export_dynamic_flag_spec_F77='${wl}-E'
19631
19632 # hardcode_minus_L: Not really in the search PATH,
19633 # but as the default location of the library.
19634 hardcode_minus_L_F77=yes
19635 ;;
19636 esac
19637 fi
19638 ;;
19639
19640 irix5* | irix6* | nonstopux*)
19641 if test "$GCC" = yes; then
19642 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'
19643 else
19644 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'
19645 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19646 fi
19647 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19648 hardcode_libdir_separator_F77=:
19649 link_all_deplibs_F77=yes
19650 ;;
19651
19652 netbsd*)
19653 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19654 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19655 else
19656 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19657 fi
19658 hardcode_libdir_flag_spec_F77='-R$libdir'
19659 hardcode_direct_F77=yes
19660 hardcode_shlibpath_var_F77=no
19661 ;;
19662
19663 newsos6)
19664 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19665 hardcode_direct_F77=yes
19666 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19667 hardcode_libdir_separator_F77=:
19668 hardcode_shlibpath_var_F77=no
19669 ;;
19670
19671 openbsd*)
19672 hardcode_direct_F77=yes
19673 hardcode_shlibpath_var_F77=no
19674 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19675 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019676 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 +000019677 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19678 export_dynamic_flag_spec_F77='${wl}-E'
19679 else
19680 case $host_os in
19681 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19682 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19683 hardcode_libdir_flag_spec_F77='-R$libdir'
19684 ;;
19685 *)
19686 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19687 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19688 ;;
19689 esac
19690 fi
19691 ;;
19692
19693 os2*)
19694 hardcode_libdir_flag_spec_F77='-L$libdir'
19695 hardcode_minus_L_F77=yes
19696 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019697 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 +000019698 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19699 ;;
19700
19701 osf3*)
19702 if test "$GCC" = yes; then
19703 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19704 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'
19705 else
19706 allow_undefined_flag_F77=' -expect_unresolved \*'
19707 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'
19708 fi
19709 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19710 hardcode_libdir_separator_F77=:
19711 ;;
19712
19713 osf4* | osf5*) # as osf3* with the addition of -msym flag
19714 if test "$GCC" = yes; then
19715 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19716 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'
19717 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19718 else
19719 allow_undefined_flag_F77=' -expect_unresolved \*'
19720 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 +000019721 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~
19722 $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'
19723
John Criswell47fdd832003-07-14 16:52:07 +000019724 # Both c and cxx compiler support -rpath directly
19725 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19726 fi
19727 hardcode_libdir_separator_F77=:
19728 ;;
19729
19730 sco3.2v5*)
19731 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19732 hardcode_shlibpath_var_F77=no
19733 export_dynamic_flag_spec_F77='${wl}-Bexport'
19734 runpath_var=LD_RUN_PATH
19735 hardcode_runpath_var=yes
19736 ;;
19737
19738 solaris*)
19739 no_undefined_flag_F77=' -z text'
19740 if test "$GCC" = yes; then
19741 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019742 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19743 $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 +000019744 else
19745 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019746 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19747 $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 +000019748 fi
19749 hardcode_libdir_flag_spec_F77='-R$libdir'
19750 hardcode_shlibpath_var_F77=no
19751 case $host_os in
19752 solaris2.[0-5] | solaris2.[0-5].*) ;;
19753 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19754 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19755 esac
19756 link_all_deplibs_F77=yes
19757 ;;
19758
19759 sunos4*)
19760 if test "x$host_vendor" = xsequent; then
19761 # Use $CC to link under sequent, because it throws in some extra .o
19762 # files that make .init and .fini sections work.
19763 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19764 else
19765 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19766 fi
19767 hardcode_libdir_flag_spec_F77='-L$libdir'
19768 hardcode_direct_F77=yes
19769 hardcode_minus_L_F77=yes
19770 hardcode_shlibpath_var_F77=no
19771 ;;
19772
19773 sysv4)
19774 case $host_vendor in
19775 sni)
19776 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19777 hardcode_direct_F77=yes # is this really true???
19778 ;;
19779 siemens)
19780 ## LD is ld it makes a PLAMLIB
19781 ## CC just makes a GrossModule.
19782 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19783 reload_cmds_F77='$CC -r -o $output$reload_objs'
19784 hardcode_direct_F77=no
19785 ;;
19786 motorola)
19787 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19788 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19789 ;;
19790 esac
19791 runpath_var='LD_RUN_PATH'
19792 hardcode_shlibpath_var_F77=no
19793 ;;
19794
19795 sysv4.3*)
19796 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19797 hardcode_shlibpath_var_F77=no
19798 export_dynamic_flag_spec_F77='-Bexport'
19799 ;;
19800
19801 sysv4*MP*)
19802 if test -d /usr/nec; then
19803 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19804 hardcode_shlibpath_var_F77=no
19805 runpath_var=LD_RUN_PATH
19806 hardcode_runpath_var=yes
19807 ld_shlibs_F77=yes
19808 fi
19809 ;;
19810
19811 sysv4.2uw2*)
19812 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19813 hardcode_direct_F77=yes
19814 hardcode_minus_L_F77=no
19815 hardcode_shlibpath_var_F77=no
19816 hardcode_runpath_var=yes
19817 runpath_var=LD_RUN_PATH
19818 ;;
19819
19820 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19821 no_undefined_flag_F77='${wl}-z ${wl}text'
19822 if test "$GCC" = yes; then
19823 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19824 else
19825 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19826 fi
19827 runpath_var='LD_RUN_PATH'
19828 hardcode_shlibpath_var_F77=no
19829 ;;
19830
19831 sysv5*)
19832 no_undefined_flag_F77=' -z text'
19833 # $CC -shared without GNU ld will not create a library from C++
19834 # object files and a static libstdc++, better avoid it by now
19835 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019836 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19837 $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 +000019838 hardcode_libdir_flag_spec_F77=
19839 hardcode_shlibpath_var_F77=no
19840 runpath_var='LD_RUN_PATH'
19841 ;;
19842
19843 uts4*)
19844 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19845 hardcode_libdir_flag_spec_F77='-L$libdir'
19846 hardcode_shlibpath_var_F77=no
19847 ;;
19848
19849 *)
19850 ld_shlibs_F77=no
19851 ;;
19852 esac
19853 fi
19854
19855echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19856echo "${ECHO_T}$ld_shlibs_F77" >&6
19857test "$ld_shlibs_F77" = no && can_build_shared=no
19858
19859variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19860if test "$GCC" = yes; then
19861 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19862fi
19863
19864#
19865# Do we need to explicitly link libc?
19866#
19867case "x$archive_cmds_need_lc_F77" in
19868x|xyes)
19869 # Assume -lc should be added
19870 archive_cmds_need_lc_F77=yes
19871
19872 if test "$enable_shared" = yes && test "$GCC" = yes; then
19873 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019874 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019875 # FIXME: we may have to deal with multi-command sequences.
19876 ;;
19877 '$CC '*)
19878 # Test whether the compiler implicitly links with -lc since on some
19879 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19880 # to ld, don't add -lc before -lgcc.
19881 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19882echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19883 $rm conftest*
19884 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19885
19886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19887 (eval $ac_compile) 2>&5
19888 ac_status=$?
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); } 2>conftest.err; then
19891 soname=conftest
19892 lib=conftest
19893 libobjs=conftest.$ac_objext
19894 deplibs=
19895 wl=$lt_prog_compiler_wl_F77
19896 compiler_flags=-v
19897 linker_flags=-v
19898 verstring=
19899 output_objdir=.
19900 libname=conftest
19901 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19902 allow_undefined_flag_F77=
19903 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19904 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19905 ac_status=$?
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); }
19908 then
19909 archive_cmds_need_lc_F77=no
19910 else
19911 archive_cmds_need_lc_F77=yes
19912 fi
19913 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19914 else
19915 cat conftest.err 1>&5
19916 fi
19917 $rm conftest*
19918 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19919echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19920 ;;
19921 esac
19922 fi
19923 ;;
19924esac
19925
John Criswell47fdd832003-07-14 16:52:07 +000019926echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19927echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19928library_names_spec=
19929libname_spec='lib$name'
19930soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019931shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019932postinstall_cmds=
19933postuninstall_cmds=
19934finish_cmds=
19935finish_eval=
19936shlibpath_var=
19937shlibpath_overrides_runpath=unknown
19938version_type=none
19939dynamic_linker="$host_os ld.so"
19940sys_lib_dlsearch_path_spec="/lib /usr/lib"
19941if test "$GCC" = yes; then
19942 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19943 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19944 # if the path contains ";" then we assume it to be the separator
19945 # otherwise default to the standard path separator (i.e. ":") - it is
19946 # assumed that no part of a normal pathname contains ";" but that should
19947 # okay in the real world where ";" in dirpaths is itself problematic.
19948 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19949 else
19950 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19951 fi
19952else
19953 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19954fi
19955need_lib_prefix=unknown
19956hardcode_into_libs=no
19957
19958# when you set need_version to no, make sure it does not cause -set_version
19959# flags to be left without arguments
19960need_version=unknown
19961
19962case $host_os in
19963aix3*)
19964 version_type=linux
19965 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19966 shlibpath_var=LIBPATH
19967
19968 # AIX 3 has no versioning support, so we append a major version to the name.
19969 soname_spec='${libname}${release}${shared_ext}$major'
19970 ;;
19971
19972aix4* | aix5*)
19973 version_type=linux
19974 need_lib_prefix=no
19975 need_version=no
19976 hardcode_into_libs=yes
19977 if test "$host_cpu" = ia64; then
19978 # AIX 5 supports IA64
19979 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19980 shlibpath_var=LD_LIBRARY_PATH
19981 else
19982 # With GCC up to 2.95.x, collect2 would create an import file
19983 # for dependence libraries. The import file would start with
19984 # the line `#! .'. This would cause the generated library to
19985 # depend on `.', always an invalid library. This was fixed in
19986 # development snapshots of GCC prior to 3.0.
19987 case $host_os in
19988 aix4 | aix4.[01] | aix4.[01].*)
19989 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19990 echo ' yes '
19991 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19992 :
19993 else
19994 can_build_shared=no
19995 fi
19996 ;;
19997 esac
19998 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19999 # soname into executable. Probably we can add versioning support to
20000 # collect2, so additional links can be useful in future.
20001 if test "$aix_use_runtimelinking" = yes; then
20002 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20003 # instead of lib<name>.a to let people know that these are not
20004 # typical AIX shared libraries.
20005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20006 else
20007 # We preserve .a as extension for shared libraries through AIX4.2
20008 # and later when we are not doing run time linking.
20009 library_names_spec='${libname}${release}.a $libname.a'
20010 soname_spec='${libname}${release}${shared_ext}$major'
20011 fi
20012 shlibpath_var=LIBPATH
20013 fi
20014 ;;
20015
20016amigaos*)
20017 library_names_spec='$libname.ixlibrary $libname.a'
20018 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020019 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 +000020020 ;;
20021
20022beos*)
20023 library_names_spec='${libname}${shared_ext}'
20024 dynamic_linker="$host_os ld.so"
20025 shlibpath_var=LIBRARY_PATH
20026 ;;
20027
Reid Spencer2706f8c2004-09-19 23:53:36 +000020028bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020029 version_type=linux
20030 need_version=no
20031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20032 soname_spec='${libname}${release}${shared_ext}$major'
20033 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20034 shlibpath_var=LD_LIBRARY_PATH
20035 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20036 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20037 # the default ld.so.conf also contains /usr/contrib/lib and
20038 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20039 # libtool to hard-code these into programs
20040 ;;
20041
20042cygwin* | mingw* | pw32*)
20043 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020044 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020045 need_version=no
20046 need_lib_prefix=no
20047
20048 case $GCC,$host_os in
20049 yes,cygwin* | yes,mingw* | yes,pw32*)
20050 library_names_spec='$libname.dll.a'
20051 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020052 postinstall_cmds='base_file=`basename \${file}`~
20053 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20054 dldir=$destdir/`dirname \$dlpath`~
20055 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020056 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020057 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20058 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020059 $rm \$dlpath'
20060 shlibpath_overrides_runpath=yes
20061
20062 case $host_os in
20063 cygwin*)
20064 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20065 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 +000020066 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020067 ;;
20068 mingw*)
20069 # MinGW DLLs use traditional 'lib' prefix
20070 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20071 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20072 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20073 # It is most probably a Windows format PATH printed by
20074 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20075 # path with ; separators, and with drive letters. We can handle the
20076 # drive letters (cygwin fileutils understands them), so leave them,
20077 # especially as we might pass files found there to a mingw objdump,
20078 # which wouldn't understand a cygwinified path. Ahh.
20079 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20080 else
20081 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20082 fi
20083 ;;
20084 pw32*)
20085 # pw32 DLLs use 'pw' prefix rather than 'lib'
20086 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20087 ;;
20088 esac
20089 ;;
20090
20091 *)
20092 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20093 ;;
20094 esac
20095 dynamic_linker='Win32 ld.exe'
20096 # FIXME: first we should search . and the directory the executable is in
20097 shlibpath_var=PATH
20098 ;;
20099
20100darwin* | rhapsody*)
20101 dynamic_linker="$host_os dyld"
20102 version_type=darwin
20103 need_lib_prefix=no
20104 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020105 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020106 soname_spec='${libname}${release}${major}$shared_ext'
20107 shlibpath_overrides_runpath=yes
20108 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020109 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020110 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020111 if test "$GCC" = yes; then
20112 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"`
20113 else
20114 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020115 fi
20116 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20117 ;;
20118
20119dgux*)
20120 version_type=linux
20121 need_lib_prefix=no
20122 need_version=no
20123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20124 soname_spec='${libname}${release}${shared_ext}$major'
20125 shlibpath_var=LD_LIBRARY_PATH
20126 ;;
20127
20128freebsd1*)
20129 dynamic_linker=no
20130 ;;
20131
Reid Spencer2706f8c2004-09-19 23:53:36 +000020132kfreebsd*-gnu)
20133 version_type=linux
20134 need_lib_prefix=no
20135 need_version=no
20136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20137 soname_spec='${libname}${release}${shared_ext}$major'
20138 shlibpath_var=LD_LIBRARY_PATH
20139 shlibpath_overrides_runpath=no
20140 hardcode_into_libs=yes
20141 dynamic_linker='GNU ld.so'
20142 ;;
20143
John Criswell47fdd832003-07-14 16:52:07 +000020144freebsd*)
20145 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20146 version_type=freebsd-$objformat
20147 case $version_type in
20148 freebsd-elf*)
20149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20150 need_version=no
20151 need_lib_prefix=no
20152 ;;
20153 freebsd-*)
20154 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20155 need_version=yes
20156 ;;
20157 esac
20158 shlibpath_var=LD_LIBRARY_PATH
20159 case $host_os in
20160 freebsd2*)
20161 shlibpath_overrides_runpath=yes
20162 ;;
20163 freebsd3.01* | freebsdelf3.01*)
20164 shlibpath_overrides_runpath=yes
20165 hardcode_into_libs=yes
20166 ;;
20167 *) # from 3.2 on
20168 shlibpath_overrides_runpath=no
20169 hardcode_into_libs=yes
20170 ;;
20171 esac
20172 ;;
20173
20174gnu*)
20175 version_type=linux
20176 need_lib_prefix=no
20177 need_version=no
20178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20179 soname_spec='${libname}${release}${shared_ext}$major'
20180 shlibpath_var=LD_LIBRARY_PATH
20181 hardcode_into_libs=yes
20182 ;;
20183
20184hpux9* | hpux10* | hpux11*)
20185 # Give a soname corresponding to the major version so that dld.sl refuses to
20186 # link against other versions.
20187 version_type=sunos
20188 need_lib_prefix=no
20189 need_version=no
20190 case "$host_cpu" in
20191 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020192 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020193 hardcode_into_libs=yes
20194 dynamic_linker="$host_os dld.so"
20195 shlibpath_var=LD_LIBRARY_PATH
20196 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20198 soname_spec='${libname}${release}${shared_ext}$major'
20199 if test "X$HPUX_IA64_MODE" = X32; then
20200 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20201 else
20202 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20203 fi
20204 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20205 ;;
20206 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020207 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020208 hardcode_into_libs=yes
20209 dynamic_linker="$host_os dld.sl"
20210 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20213 soname_spec='${libname}${release}${shared_ext}$major'
20214 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20215 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20216 ;;
20217 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020218 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020219 dynamic_linker="$host_os dld.sl"
20220 shlibpath_var=SHLIB_PATH
20221 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20223 soname_spec='${libname}${release}${shared_ext}$major'
20224 ;;
20225 esac
20226 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20227 postinstall_cmds='chmod 555 $lib'
20228 ;;
20229
20230irix5* | irix6* | nonstopux*)
20231 case $host_os in
20232 nonstopux*) version_type=nonstopux ;;
20233 *)
20234 if test "$lt_cv_prog_gnu_ld" = yes; then
20235 version_type=linux
20236 else
20237 version_type=irix
20238 fi ;;
20239 esac
20240 need_lib_prefix=no
20241 need_version=no
20242 soname_spec='${libname}${release}${shared_ext}$major'
20243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20244 case $host_os in
20245 irix5* | nonstopux*)
20246 libsuff= shlibsuff=
20247 ;;
20248 *)
20249 case $LD in # libtool.m4 will add one of these switches to LD
20250 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20251 libsuff= shlibsuff= libmagic=32-bit;;
20252 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20253 libsuff=32 shlibsuff=N32 libmagic=N32;;
20254 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20255 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20256 *) libsuff= shlibsuff= libmagic=never-match;;
20257 esac
20258 ;;
20259 esac
20260 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20261 shlibpath_overrides_runpath=no
20262 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20263 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20264 hardcode_into_libs=yes
20265 ;;
20266
20267# No shared lib support for Linux oldld, aout, or coff.
20268linux*oldld* | linux*aout* | linux*coff*)
20269 dynamic_linker=no
20270 ;;
20271
20272# This must be Linux ELF.
20273linux*)
20274 version_type=linux
20275 need_lib_prefix=no
20276 need_version=no
20277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20278 soname_spec='${libname}${release}${shared_ext}$major'
20279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20280 shlibpath_var=LD_LIBRARY_PATH
20281 shlibpath_overrides_runpath=no
20282 # This implies no fast_install, which is unacceptable.
20283 # Some rework will be needed to allow for fast_install
20284 # before this can be enabled.
20285 hardcode_into_libs=yes
20286
Reid Spencer2706f8c2004-09-19 23:53:36 +000020287 # Append ld.so.conf contents to the search path
20288 if test -f /etc/ld.so.conf; then
20289 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20290 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20291 fi
20292
John Criswell47fdd832003-07-14 16:52:07 +000020293 # We used to test for /lib/ld.so.1 and disable shared libraries on
20294 # powerpc, because MkLinux only supported shared libraries with the
20295 # GNU dynamic linker. Since this was broken with cross compilers,
20296 # most powerpc-linux boxes support dynamic linking these days and
20297 # people can always --disable-shared, the test was removed, and we
20298 # assume the GNU/Linux dynamic linker is in use.
20299 dynamic_linker='GNU/Linux ld.so'
20300 ;;
20301
Reid Spencer2706f8c2004-09-19 23:53:36 +000020302knetbsd*-gnu)
20303 version_type=linux
20304 need_lib_prefix=no
20305 need_version=no
20306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20307 soname_spec='${libname}${release}${shared_ext}$major'
20308 shlibpath_var=LD_LIBRARY_PATH
20309 shlibpath_overrides_runpath=no
20310 hardcode_into_libs=yes
20311 dynamic_linker='GNU ld.so'
20312 ;;
20313
John Criswell47fdd832003-07-14 16:52:07 +000020314netbsd*)
20315 version_type=sunos
20316 need_lib_prefix=no
20317 need_version=no
20318 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20321 dynamic_linker='NetBSD (a.out) ld.so'
20322 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020324 soname_spec='${libname}${release}${shared_ext}$major'
20325 dynamic_linker='NetBSD ld.elf_so'
20326 fi
20327 shlibpath_var=LD_LIBRARY_PATH
20328 shlibpath_overrides_runpath=yes
20329 hardcode_into_libs=yes
20330 ;;
20331
20332newsos6)
20333 version_type=linux
20334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20335 shlibpath_var=LD_LIBRARY_PATH
20336 shlibpath_overrides_runpath=yes
20337 ;;
20338
Reid Spencer2706f8c2004-09-19 23:53:36 +000020339nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020340 version_type=linux
20341 need_lib_prefix=no
20342 need_version=no
20343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20344 soname_spec='${libname}${release}${shared_ext}$major'
20345 shlibpath_var=LD_LIBRARY_PATH
20346 shlibpath_overrides_runpath=yes
20347 ;;
20348
20349openbsd*)
20350 version_type=sunos
20351 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020352 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20355 shlibpath_var=LD_LIBRARY_PATH
20356 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20357 case $host_os in
20358 openbsd2.[89] | openbsd2.[89].*)
20359 shlibpath_overrides_runpath=no
20360 ;;
20361 *)
20362 shlibpath_overrides_runpath=yes
20363 ;;
20364 esac
20365 else
20366 shlibpath_overrides_runpath=yes
20367 fi
20368 ;;
20369
20370os2*)
20371 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020372 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020373 need_lib_prefix=no
20374 library_names_spec='$libname${shared_ext} $libname.a'
20375 dynamic_linker='OS/2 ld.exe'
20376 shlibpath_var=LIBPATH
20377 ;;
20378
20379osf3* | osf4* | osf5*)
20380 version_type=osf
20381 need_lib_prefix=no
20382 need_version=no
20383 soname_spec='${libname}${release}${shared_ext}$major'
20384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20385 shlibpath_var=LD_LIBRARY_PATH
20386 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20387 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20388 ;;
20389
20390sco3.2v5*)
20391 version_type=osf
20392 soname_spec='${libname}${release}${shared_ext}$major'
20393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20394 shlibpath_var=LD_LIBRARY_PATH
20395 ;;
20396
20397solaris*)
20398 version_type=linux
20399 need_lib_prefix=no
20400 need_version=no
20401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20402 soname_spec='${libname}${release}${shared_ext}$major'
20403 shlibpath_var=LD_LIBRARY_PATH
20404 shlibpath_overrides_runpath=yes
20405 hardcode_into_libs=yes
20406 # ldd complains unless libraries are executable
20407 postinstall_cmds='chmod +x $lib'
20408 ;;
20409
20410sunos4*)
20411 version_type=sunos
20412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20413 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20414 shlibpath_var=LD_LIBRARY_PATH
20415 shlibpath_overrides_runpath=yes
20416 if test "$with_gnu_ld" = yes; then
20417 need_lib_prefix=no
20418 fi
20419 need_version=yes
20420 ;;
20421
20422sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20423 version_type=linux
20424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20425 soname_spec='${libname}${release}${shared_ext}$major'
20426 shlibpath_var=LD_LIBRARY_PATH
20427 case $host_vendor in
20428 sni)
20429 shlibpath_overrides_runpath=no
20430 need_lib_prefix=no
20431 export_dynamic_flag_spec='${wl}-Blargedynsym'
20432 runpath_var=LD_RUN_PATH
20433 ;;
20434 siemens)
20435 need_lib_prefix=no
20436 ;;
20437 motorola)
20438 need_lib_prefix=no
20439 need_version=no
20440 shlibpath_overrides_runpath=no
20441 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20442 ;;
20443 esac
20444 ;;
20445
20446sysv4*MP*)
20447 if test -d /usr/nec ;then
20448 version_type=linux
20449 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20450 soname_spec='$libname${shared_ext}.$major'
20451 shlibpath_var=LD_LIBRARY_PATH
20452 fi
20453 ;;
20454
20455uts4*)
20456 version_type=linux
20457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20458 soname_spec='${libname}${release}${shared_ext}$major'
20459 shlibpath_var=LD_LIBRARY_PATH
20460 ;;
20461
20462*)
20463 dynamic_linker=no
20464 ;;
20465esac
20466echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20467echo "${ECHO_T}$dynamic_linker" >&6
20468test "$dynamic_linker" = no && can_build_shared=no
20469
Reid Spencer2706f8c2004-09-19 23:53:36 +000020470echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20471echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20472hardcode_action_F77=
20473if test -n "$hardcode_libdir_flag_spec_F77" || \
20474 test -n "$runpath_var_F77" || \
20475 test "X$hardcode_automatic_F77" = "Xyes" ; then
20476
20477 # We can hardcode non-existant directories.
20478 if test "$hardcode_direct_F77" != no &&
20479 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20480 # have to relink, otherwise we might link with an installed library
20481 # when we should be linking with a yet-to-be-installed one
20482 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20483 test "$hardcode_minus_L_F77" != no; then
20484 # Linking always hardcodes the temporary library directory.
20485 hardcode_action_F77=relink
20486 else
20487 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20488 hardcode_action_F77=immediate
20489 fi
20490else
20491 # We cannot hardcode anything, or else we can only hardcode existing
20492 # directories.
20493 hardcode_action_F77=unsupported
20494fi
20495echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20496echo "${ECHO_T}$hardcode_action_F77" >&6
20497
20498if test "$hardcode_action_F77" = relink; then
20499 # Fast installation is not supported
20500 enable_fast_install=no
20501elif test "$shlibpath_overrides_runpath" = yes ||
20502 test "$enable_shared" = no; then
20503 # Fast installation is not necessary
20504 enable_fast_install=needless
20505fi
20506
20507striplib=
20508old_striplib=
20509echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20510echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20511if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20512 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20513 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20514 echo "$as_me:$LINENO: result: yes" >&5
20515echo "${ECHO_T}yes" >&6
20516else
20517# FIXME - insert some real tests, host_os isn't really good enough
20518 case $host_os in
20519 darwin*)
20520 if test -n "$STRIP" ; then
20521 striplib="$STRIP -x"
20522 echo "$as_me:$LINENO: result: yes" >&5
20523echo "${ECHO_T}yes" >&6
20524 else
20525 echo "$as_me:$LINENO: result: no" >&5
20526echo "${ECHO_T}no" >&6
20527fi
20528 ;;
20529 *)
20530 echo "$as_me:$LINENO: result: no" >&5
20531echo "${ECHO_T}no" >&6
20532 ;;
20533 esac
20534fi
20535
20536
John Criswell47fdd832003-07-14 16:52:07 +000020537
20538# The else clause should only fire when bootstrapping the
20539# libtool distribution, otherwise you forgot to ship ltmain.sh
20540# with your package, and you will get complaints that there are
20541# no rules to generate ltmain.sh.
20542if test -f "$ltmain"; then
20543 # See if we are running on zsh, and set the options which allow our commands through
20544 # without removal of \ escapes.
20545 if test -n "${ZSH_VERSION+set}" ; then
20546 setopt NO_GLOB_SUBST
20547 fi
20548 # Now quote all the things that may contain metacharacters while being
20549 # careful not to overquote the AC_SUBSTed values. We take copies of the
20550 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020551 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20552 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020553 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20554 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20555 deplibs_check_method reload_flag reload_cmds need_locks \
20556 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20557 lt_cv_sys_global_symbol_to_c_name_address \
20558 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20559 old_postinstall_cmds old_postuninstall_cmds \
20560 compiler_F77 \
20561 CC_F77 \
20562 LD_F77 \
20563 lt_prog_compiler_wl_F77 \
20564 lt_prog_compiler_pic_F77 \
20565 lt_prog_compiler_static_F77 \
20566 lt_prog_compiler_no_builtin_flag_F77 \
20567 export_dynamic_flag_spec_F77 \
20568 thread_safe_flag_spec_F77 \
20569 whole_archive_flag_spec_F77 \
20570 enable_shared_with_static_runtimes_F77 \
20571 old_archive_cmds_F77 \
20572 old_archive_from_new_cmds_F77 \
20573 predep_objects_F77 \
20574 postdep_objects_F77 \
20575 predeps_F77 \
20576 postdeps_F77 \
20577 compiler_lib_search_path_F77 \
20578 archive_cmds_F77 \
20579 archive_expsym_cmds_F77 \
20580 postinstall_cmds_F77 \
20581 postuninstall_cmds_F77 \
20582 old_archive_from_expsyms_cmds_F77 \
20583 allow_undefined_flag_F77 \
20584 no_undefined_flag_F77 \
20585 export_symbols_cmds_F77 \
20586 hardcode_libdir_flag_spec_F77 \
20587 hardcode_libdir_flag_spec_ld_F77 \
20588 hardcode_libdir_separator_F77 \
20589 hardcode_automatic_F77 \
20590 module_cmds_F77 \
20591 module_expsym_cmds_F77 \
20592 lt_cv_prog_compiler_c_o_F77 \
20593 exclude_expsyms_F77 \
20594 include_expsyms_F77; do
20595
20596 case $var in
20597 old_archive_cmds_F77 | \
20598 old_archive_from_new_cmds_F77 | \
20599 archive_cmds_F77 | \
20600 archive_expsym_cmds_F77 | \
20601 module_cmds_F77 | \
20602 module_expsym_cmds_F77 | \
20603 old_archive_from_expsyms_cmds_F77 | \
20604 export_symbols_cmds_F77 | \
20605 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20606 postinstall_cmds | postuninstall_cmds | \
20607 old_postinstall_cmds | old_postuninstall_cmds | \
20608 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20609 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020610 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 +000020611 ;;
20612 *)
20613 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20614 ;;
20615 esac
20616 done
20617
20618 case $lt_echo in
20619 *'\$0 --fallback-echo"')
20620 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20621 ;;
20622 esac
20623
20624cfgfile="$ofile"
20625
20626 cat <<__EOF__ >> "$cfgfile"
20627# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20628
20629# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20630
20631# Shell to use when invoking shell scripts.
20632SHELL=$lt_SHELL
20633
20634# Whether or not to build shared libraries.
20635build_libtool_libs=$enable_shared
20636
20637# Whether or not to build static libraries.
20638build_old_libs=$enable_static
20639
20640# Whether or not to add -lc for building shared libraries.
20641build_libtool_need_lc=$archive_cmds_need_lc_F77
20642
20643# Whether or not to disallow shared libs when runtime libs are static
20644allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20645
20646# Whether or not to optimize for fast installation.
20647fast_install=$enable_fast_install
20648
20649# The host system.
20650host_alias=$host_alias
20651host=$host
20652
20653# An echo program that does not interpret backslashes.
20654echo=$lt_echo
20655
20656# The archiver.
20657AR=$lt_AR
20658AR_FLAGS=$lt_AR_FLAGS
20659
20660# A C compiler.
20661LTCC=$lt_LTCC
20662
20663# A language-specific compiler.
20664CC=$lt_compiler_F77
20665
20666# Is the compiler the GNU C compiler?
20667with_gcc=$GCC_F77
20668
20669# An ERE matcher.
20670EGREP=$lt_EGREP
20671
20672# The linker used to build libraries.
20673LD=$lt_LD_F77
20674
20675# Whether we need hard or soft links.
20676LN_S=$lt_LN_S
20677
20678# A BSD-compatible nm program.
20679NM=$lt_NM
20680
20681# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020682STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020683
20684# Used to examine libraries when file_magic_cmd begins "file"
20685MAGIC_CMD=$MAGIC_CMD
20686
20687# Used on cygwin: DLL creation program.
20688DLLTOOL="$DLLTOOL"
20689
20690# Used on cygwin: object dumper.
20691OBJDUMP="$OBJDUMP"
20692
20693# Used on cygwin: assembler.
20694AS="$AS"
20695
20696# The name of the directory that contains temporary libtool files.
20697objdir=$objdir
20698
20699# How to create reloadable object files.
20700reload_flag=$lt_reload_flag
20701reload_cmds=$lt_reload_cmds
20702
20703# How to pass a linker flag through the compiler.
20704wl=$lt_lt_prog_compiler_wl_F77
20705
20706# Object file suffix (normally "o").
20707objext="$ac_objext"
20708
20709# Old archive suffix (normally "a").
20710libext="$libext"
20711
20712# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020713shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020714
20715# Executable file suffix (normally "").
20716exeext="$exeext"
20717
20718# Additional compiler flags for building library objects.
20719pic_flag=$lt_lt_prog_compiler_pic_F77
20720pic_mode=$pic_mode
20721
20722# What is the maximum length of a command?
20723max_cmd_len=$lt_cv_sys_max_cmd_len
20724
20725# Does compiler simultaneously support -c and -o options?
20726compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20727
20728# Must we lock files when doing compilation ?
20729need_locks=$lt_need_locks
20730
20731# Do we need the lib prefix for modules?
20732need_lib_prefix=$need_lib_prefix
20733
20734# Do we need a version for libraries?
20735need_version=$need_version
20736
20737# Whether dlopen is supported.
20738dlopen_support=$enable_dlopen
20739
20740# Whether dlopen of programs is supported.
20741dlopen_self=$enable_dlopen_self
20742
20743# Whether dlopen of statically linked programs is supported.
20744dlopen_self_static=$enable_dlopen_self_static
20745
20746# Compiler flag to prevent dynamic linking.
20747link_static_flag=$lt_lt_prog_compiler_static_F77
20748
20749# Compiler flag to turn off builtin functions.
20750no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20751
20752# Compiler flag to allow reflexive dlopens.
20753export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20754
20755# Compiler flag to generate shared objects directly from archives.
20756whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20757
20758# Compiler flag to generate thread-safe objects.
20759thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20760
20761# Library versioning type.
20762version_type=$version_type
20763
20764# Format of library name prefix.
20765libname_spec=$lt_libname_spec
20766
20767# List of archive names. First name is the real one, the rest are links.
20768# The last name is the one that the linker finds with -lNAME.
20769library_names_spec=$lt_library_names_spec
20770
20771# The coded name of the library, if different from the real name.
20772soname_spec=$lt_soname_spec
20773
20774# Commands used to build and install an old-style archive.
20775RANLIB=$lt_RANLIB
20776old_archive_cmds=$lt_old_archive_cmds_F77
20777old_postinstall_cmds=$lt_old_postinstall_cmds
20778old_postuninstall_cmds=$lt_old_postuninstall_cmds
20779
20780# Create an old-style archive from a shared archive.
20781old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20782
20783# Create a temporary old-style archive to link instead of a shared archive.
20784old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20785
20786# Commands used to build and install a shared archive.
20787archive_cmds=$lt_archive_cmds_F77
20788archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20789postinstall_cmds=$lt_postinstall_cmds
20790postuninstall_cmds=$lt_postuninstall_cmds
20791
20792# Commands used to build a loadable module (assumed same as above if empty)
20793module_cmds=$lt_module_cmds_F77
20794module_expsym_cmds=$lt_module_expsym_cmds_F77
20795
20796# Commands to strip libraries.
20797old_striplib=$lt_old_striplib
20798striplib=$lt_striplib
20799
20800# Dependencies to place before the objects being linked to create a
20801# shared library.
20802predep_objects=$lt_predep_objects_F77
20803
20804# Dependencies to place after the objects being linked to create a
20805# shared library.
20806postdep_objects=$lt_postdep_objects_F77
20807
20808# Dependencies to place before the objects being linked to create a
20809# shared library.
20810predeps=$lt_predeps_F77
20811
20812# Dependencies to place after the objects being linked to create a
20813# shared library.
20814postdeps=$lt_postdeps_F77
20815
20816# The library search path used internally by the compiler when linking
20817# a shared library.
20818compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20819
20820# Method to check whether dependent libraries are shared objects.
20821deplibs_check_method=$lt_deplibs_check_method
20822
20823# Command to use when deplibs_check_method == file_magic.
20824file_magic_cmd=$lt_file_magic_cmd
20825
20826# Flag that allows shared libraries with undefined symbols to be built.
20827allow_undefined_flag=$lt_allow_undefined_flag_F77
20828
20829# Flag that forces no undefined symbols.
20830no_undefined_flag=$lt_no_undefined_flag_F77
20831
20832# Commands used to finish a libtool library installation in a directory.
20833finish_cmds=$lt_finish_cmds
20834
20835# Same as above, but a single script fragment to be evaled but not shown.
20836finish_eval=$lt_finish_eval
20837
20838# Take the output of nm and produce a listing of raw symbols and C names.
20839global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20840
20841# Transform the output of nm in a proper C declaration
20842global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20843
20844# Transform the output of nm in a C name address pair
20845global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20846
20847# This is the shared library runtime path variable.
20848runpath_var=$runpath_var
20849
20850# This is the shared library path variable.
20851shlibpath_var=$shlibpath_var
20852
20853# Is shlibpath searched before the hard-coded library search path?
20854shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20855
20856# How to hardcode a shared library path into an executable.
20857hardcode_action=$hardcode_action_F77
20858
20859# Whether we should hardcode library paths into libraries.
20860hardcode_into_libs=$hardcode_into_libs
20861
20862# Flag to hardcode \$libdir into a binary during linking.
20863# This must work even if \$libdir does not exist.
20864hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20865
20866# If ld is used when linking, flag to hardcode \$libdir into
20867# a binary during linking. This must work even if \$libdir does
20868# not exist.
20869hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20870
20871# Whether we need a single -rpath flag with a separated argument.
20872hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20873
20874# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20875# resulting binary.
20876hardcode_direct=$hardcode_direct_F77
20877
20878# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20879# resulting binary.
20880hardcode_minus_L=$hardcode_minus_L_F77
20881
20882# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20883# the resulting binary.
20884hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20885
20886# Set to yes if building a shared library automatically hardcodes DIR into the library
20887# and all subsequent libraries and executables linked against it.
20888hardcode_automatic=$hardcode_automatic_F77
20889
20890# Variables whose values should be saved in libtool wrapper scripts and
20891# restored at relink time.
20892variables_saved_for_relink="$variables_saved_for_relink"
20893
20894# Whether libtool must link a program against all its dependency libraries.
20895link_all_deplibs=$link_all_deplibs_F77
20896
20897# Compile-time system search path for libraries
20898sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20899
20900# Run-time system search path for libraries
20901sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20902
20903# Fix the shell variable \$srcfile for the compiler.
20904fix_srcfile_path="$fix_srcfile_path_F77"
20905
20906# Set to yes if exported symbols are required.
20907always_export_symbols=$always_export_symbols_F77
20908
20909# The commands to list exported symbols.
20910export_symbols_cmds=$lt_export_symbols_cmds_F77
20911
20912# The commands to extract the exported symbol list from a shared archive.
20913extract_expsyms_cmds=$lt_extract_expsyms_cmds
20914
20915# Symbols that should not be listed in the preloaded symbols.
20916exclude_expsyms=$lt_exclude_expsyms_F77
20917
20918# Symbols that must always be exported.
20919include_expsyms=$lt_include_expsyms_F77
20920
20921# ### END LIBTOOL TAG CONFIG: $tagname
20922
20923__EOF__
20924
20925
20926else
20927 # If there is no Makefile yet, we rely on a make rule to execute
20928 # `config.status --recheck' to rerun these tests and create the
20929 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020930 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20931 if test -f "$ltmain_in"; then
20932 test -f Makefile && make "$ltmain"
20933 fi
John Criswell47fdd832003-07-14 16:52:07 +000020934fi
20935
20936
20937ac_ext=c
20938ac_cpp='$CPP $CPPFLAGS'
20939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20941ac_compiler_gnu=$ac_cv_c_compiler_gnu
20942
20943CC="$lt_save_CC"
20944
20945 else
20946 tagname=""
20947 fi
20948 ;;
20949
20950 GCJ)
20951 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020952 ac_ext=c
20953ac_cpp='$CPP $CPPFLAGS'
20954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20956ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000020957
20958
20959# Source file extension for Java test sources.
20960ac_ext=java
20961
20962# Object file extension for compiled Java test sources.
20963objext=o
20964objext_GCJ=$objext
20965
20966# Code to be used in simple compile tests
20967lt_simple_compile_test_code="class foo {}\n"
20968
20969# Code to be used in simple link tests
20970lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20971
20972# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20973
20974# If no C compiler was specified, use CC.
20975LTCC=${LTCC-"$CC"}
20976
20977# Allow CC to be a program name with arguments.
20978compiler=$CC
20979
20980
20981# Allow CC to be a program name with arguments.
20982lt_save_CC="$CC"
20983CC=${GCJ-"gcj"}
20984compiler=$CC
20985compiler_GCJ=$CC
20986
20987# GCJ did not exist at the time GCC didn't implicitly link libc in.
20988archive_cmds_need_lc_GCJ=no
20989
John Criswell47fdd832003-07-14 16:52:07 +000020990
20991lt_prog_compiler_no_builtin_flag_GCJ=
20992
20993if test "$GCC" = yes; then
20994 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20995
Reid Spencer2706f8c2004-09-19 23:53:36 +000020996
20997echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020998echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20999if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21000 echo $ECHO_N "(cached) $ECHO_C" >&6
21001else
21002 lt_cv_prog_compiler_rtti_exceptions=no
21003 ac_outfile=conftest.$ac_objext
21004 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21005 lt_compiler_flag="-fno-rtti -fno-exceptions"
21006 # Insert the option either (1) after the last *FLAGS variable, or
21007 # (2) before a word containing "conftest.", or (3) at the end.
21008 # Note that $ac_compile itself does not contain backslashes and begins
21009 # with a dollar sign (not a hyphen), so the echo should work correctly.
21010 # The option is referenced via a variable to avoid confusing sed.
21011 lt_compile=`echo "$ac_compile" | $SED \
21012 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21014 -e 's:$: $lt_compiler_flag:'`
Reid Spencer95ed8432004-12-23 06:22:33 +000021015 (eval echo "\"\$as_me:21015: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021016 (eval "$lt_compile" 2>conftest.err)
21017 ac_status=$?
21018 cat conftest.err >&5
Reid Spencer95ed8432004-12-23 06:22:33 +000021019 echo "$as_me:21019: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021020 if (exit $ac_status) && test -s "$ac_outfile"; then
21021 # The compiler can only warn and ignore the option if not recognized
21022 # So say no if there are warnings
21023 if test ! -s conftest.err; then
21024 lt_cv_prog_compiler_rtti_exceptions=yes
21025 fi
21026 fi
21027 $rm conftest*
21028
21029fi
21030echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21031echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21032
21033if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21034 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21035else
21036 :
21037fi
21038
21039fi
21040
21041lt_prog_compiler_wl_GCJ=
21042lt_prog_compiler_pic_GCJ=
21043lt_prog_compiler_static_GCJ=
21044
21045echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21046echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21047
21048 if test "$GCC" = yes; then
21049 lt_prog_compiler_wl_GCJ='-Wl,'
21050 lt_prog_compiler_static_GCJ='-static'
21051
21052 case $host_os in
21053 aix*)
21054 # All AIX code is PIC.
21055 if test "$host_cpu" = ia64; then
21056 # AIX 5 now supports IA64 processor
21057 lt_prog_compiler_static_GCJ='-Bstatic'
21058 fi
21059 ;;
21060
21061 amigaos*)
21062 # FIXME: we need at least 68020 code to build shared libraries, but
21063 # adding the `-m68020' flag to GCC prevents building anything better,
21064 # like `-m68040'.
21065 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21066 ;;
21067
21068 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21069 # PIC is the default for these OSes.
21070 ;;
21071
21072 mingw* | pw32* | os2*)
21073 # This hack is so that the source file can tell whether it is being
21074 # built for inclusion in a dll (and should export symbols for example).
21075 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21076 ;;
21077
21078 darwin* | rhapsody*)
21079 # PIC is the default on this platform
21080 # Common symbols not allowed in MH_DYLIB files
21081 lt_prog_compiler_pic_GCJ='-fno-common'
21082 ;;
21083
21084 msdosdjgpp*)
21085 # Just because we use GCC doesn't mean we suddenly get shared libraries
21086 # on systems that don't support them.
21087 lt_prog_compiler_can_build_shared_GCJ=no
21088 enable_shared=no
21089 ;;
21090
21091 sysv4*MP*)
21092 if test -d /usr/nec; then
21093 lt_prog_compiler_pic_GCJ=-Kconform_pic
21094 fi
21095 ;;
21096
21097 hpux*)
21098 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21099 # not for PA HP-UX.
21100 case "$host_cpu" in
21101 hppa*64*|ia64*)
21102 # +Z the default
21103 ;;
21104 *)
21105 lt_prog_compiler_pic_GCJ='-fPIC'
21106 ;;
21107 esac
21108 ;;
21109
21110 *)
21111 lt_prog_compiler_pic_GCJ='-fPIC'
21112 ;;
21113 esac
21114 else
21115 # PORTME Check for flag to pass linker flags through the system compiler.
21116 case $host_os in
21117 aix*)
21118 lt_prog_compiler_wl_GCJ='-Wl,'
21119 if test "$host_cpu" = ia64; then
21120 # AIX 5 now supports IA64 processor
21121 lt_prog_compiler_static_GCJ='-Bstatic'
21122 else
21123 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21124 fi
21125 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021126 darwin*)
21127 # PIC is the default on this platform
21128 # Common symbols not allowed in MH_DYLIB files
21129 case "$cc_basename" in
21130 xlc*)
21131 lt_prog_compiler_pic_GCJ='-qnocommon'
21132 lt_prog_compiler_wl_GCJ='-Wl,'
21133 ;;
21134 esac
21135 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021136
21137 mingw* | pw32* | os2*)
21138 # This hack is so that the source file can tell whether it is being
21139 # built for inclusion in a dll (and should export symbols for example).
21140 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21141 ;;
21142
21143 hpux9* | hpux10* | hpux11*)
21144 lt_prog_compiler_wl_GCJ='-Wl,'
21145 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21146 # not for PA HP-UX.
21147 case "$host_cpu" in
21148 hppa*64*|ia64*)
21149 # +Z the default
21150 ;;
21151 *)
21152 lt_prog_compiler_pic_GCJ='+Z'
21153 ;;
21154 esac
21155 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21156 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21157 ;;
21158
21159 irix5* | irix6* | nonstopux*)
21160 lt_prog_compiler_wl_GCJ='-Wl,'
21161 # PIC (with -KPIC) is the default.
21162 lt_prog_compiler_static_GCJ='-non_shared'
21163 ;;
21164
21165 newsos6)
21166 lt_prog_compiler_pic_GCJ='-KPIC'
21167 lt_prog_compiler_static_GCJ='-Bstatic'
21168 ;;
21169
21170 linux*)
21171 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021172 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021173 lt_prog_compiler_wl_GCJ='-Wl,'
21174 lt_prog_compiler_pic_GCJ='-KPIC'
21175 lt_prog_compiler_static_GCJ='-static'
21176 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021177 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021178 lt_prog_compiler_wl_GCJ='-Wl,'
21179 # All Alpha code is PIC.
21180 lt_prog_compiler_static_GCJ='-non_shared'
21181 ;;
21182 esac
21183 ;;
21184
21185 osf3* | osf4* | osf5*)
21186 lt_prog_compiler_wl_GCJ='-Wl,'
21187 # All OSF/1 code is PIC.
21188 lt_prog_compiler_static_GCJ='-non_shared'
21189 ;;
21190
21191 sco3.2v5*)
21192 lt_prog_compiler_pic_GCJ='-Kpic'
21193 lt_prog_compiler_static_GCJ='-dn'
21194 ;;
21195
21196 solaris*)
21197 lt_prog_compiler_wl_GCJ='-Wl,'
21198 lt_prog_compiler_pic_GCJ='-KPIC'
21199 lt_prog_compiler_static_GCJ='-Bstatic'
21200 ;;
21201
21202 sunos4*)
21203 lt_prog_compiler_wl_GCJ='-Qoption ld '
21204 lt_prog_compiler_pic_GCJ='-PIC'
21205 lt_prog_compiler_static_GCJ='-Bstatic'
21206 ;;
21207
21208 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21209 lt_prog_compiler_wl_GCJ='-Wl,'
21210 lt_prog_compiler_pic_GCJ='-KPIC'
21211 lt_prog_compiler_static_GCJ='-Bstatic'
21212 ;;
21213
21214 sysv4*MP*)
21215 if test -d /usr/nec ;then
21216 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21217 lt_prog_compiler_static_GCJ='-Bstatic'
21218 fi
21219 ;;
21220
21221 uts4*)
21222 lt_prog_compiler_pic_GCJ='-pic'
21223 lt_prog_compiler_static_GCJ='-Bstatic'
21224 ;;
21225
21226 *)
21227 lt_prog_compiler_can_build_shared_GCJ=no
21228 ;;
21229 esac
21230 fi
21231
21232echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21233echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21234
21235#
21236# Check to make sure the PIC flag actually works.
21237#
21238if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021239
21240echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021241echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21242if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21243 echo $ECHO_N "(cached) $ECHO_C" >&6
21244else
21245 lt_prog_compiler_pic_works_GCJ=no
21246 ac_outfile=conftest.$ac_objext
21247 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21248 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21249 # Insert the option either (1) after the last *FLAGS variable, or
21250 # (2) before a word containing "conftest.", or (3) at the end.
21251 # Note that $ac_compile itself does not contain backslashes and begins
21252 # with a dollar sign (not a hyphen), so the echo should work correctly.
21253 # The option is referenced via a variable to avoid confusing sed.
21254 lt_compile=`echo "$ac_compile" | $SED \
21255 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21257 -e 's:$: $lt_compiler_flag:'`
Reid Spencer95ed8432004-12-23 06:22:33 +000021258 (eval echo "\"\$as_me:21258: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021259 (eval "$lt_compile" 2>conftest.err)
21260 ac_status=$?
21261 cat conftest.err >&5
Reid Spencer95ed8432004-12-23 06:22:33 +000021262 echo "$as_me:21262: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021263 if (exit $ac_status) && test -s "$ac_outfile"; then
21264 # The compiler can only warn and ignore the option if not recognized
21265 # So say no if there are warnings
21266 if test ! -s conftest.err; then
21267 lt_prog_compiler_pic_works_GCJ=yes
21268 fi
21269 fi
21270 $rm conftest*
21271
21272fi
21273echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21274echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21275
21276if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21277 case $lt_prog_compiler_pic_GCJ in
21278 "" | " "*) ;;
21279 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21280 esac
21281else
21282 lt_prog_compiler_pic_GCJ=
21283 lt_prog_compiler_can_build_shared_GCJ=no
21284fi
21285
21286fi
21287case "$host_os" in
21288 # For platforms which do not support PIC, -DPIC is meaningless:
21289 *djgpp*)
21290 lt_prog_compiler_pic_GCJ=
21291 ;;
21292 *)
21293 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21294 ;;
21295esac
21296
21297echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21298echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21299if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21300 echo $ECHO_N "(cached) $ECHO_C" >&6
21301else
21302 lt_cv_prog_compiler_c_o_GCJ=no
21303 $rm -r conftest 2>/dev/null
21304 mkdir conftest
21305 cd conftest
21306 mkdir out
21307 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21308
John Criswell47fdd832003-07-14 16:52:07 +000021309 lt_compiler_flag="-o out/conftest2.$ac_objext"
21310 # Insert the option either (1) after the last *FLAGS variable, or
21311 # (2) before a word containing "conftest.", or (3) at the end.
21312 # Note that $ac_compile itself does not contain backslashes and begins
21313 # with a dollar sign (not a hyphen), so the echo should work correctly.
21314 lt_compile=`echo "$ac_compile" | $SED \
21315 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21316 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21317 -e 's:$: $lt_compiler_flag:'`
Reid Spencer95ed8432004-12-23 06:22:33 +000021318 (eval echo "\"\$as_me:21318: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021319 (eval "$lt_compile" 2>out/conftest.err)
21320 ac_status=$?
21321 cat out/conftest.err >&5
Reid Spencer95ed8432004-12-23 06:22:33 +000021322 echo "$as_me:21322: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021323 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21324 then
21325 # The compiler can only warn and ignore the option if not recognized
21326 # So say no if there are warnings
21327 if test ! -s out/conftest.err; then
21328 lt_cv_prog_compiler_c_o_GCJ=yes
21329 fi
21330 fi
21331 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021332 $rm conftest*
21333 # SGI C++ compiler will create directory out/ii_files/ for
21334 # template instantiation
21335 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21336 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021337 cd ..
21338 rmdir conftest
21339 $rm conftest*
21340
21341fi
21342echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21343echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21344
21345
21346hard_links="nottested"
21347if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21348 # do not overwrite the value of need_locks provided by the user
21349 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21350echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21351 hard_links=yes
21352 $rm conftest*
21353 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21354 touch conftest.a
21355 ln conftest.a conftest.b 2>&5 || hard_links=no
21356 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21357 echo "$as_me:$LINENO: result: $hard_links" >&5
21358echo "${ECHO_T}$hard_links" >&6
21359 if test "$hard_links" = no; then
21360 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21361echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21362 need_locks=warn
21363 fi
21364else
21365 need_locks=no
21366fi
21367
21368echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21369echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21370
21371 runpath_var=
21372 allow_undefined_flag_GCJ=
21373 enable_shared_with_static_runtimes_GCJ=no
21374 archive_cmds_GCJ=
21375 archive_expsym_cmds_GCJ=
21376 old_archive_From_new_cmds_GCJ=
21377 old_archive_from_expsyms_cmds_GCJ=
21378 export_dynamic_flag_spec_GCJ=
21379 whole_archive_flag_spec_GCJ=
21380 thread_safe_flag_spec_GCJ=
21381 hardcode_libdir_flag_spec_GCJ=
21382 hardcode_libdir_flag_spec_ld_GCJ=
21383 hardcode_libdir_separator_GCJ=
21384 hardcode_direct_GCJ=no
21385 hardcode_minus_L_GCJ=no
21386 hardcode_shlibpath_var_GCJ=unsupported
21387 link_all_deplibs_GCJ=unknown
21388 hardcode_automatic_GCJ=no
21389 module_cmds_GCJ=
21390 module_expsym_cmds_GCJ=
21391 always_export_symbols_GCJ=no
21392 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21393 # include_expsyms should be a list of space-separated symbols to be *always*
21394 # included in the symbol list
21395 include_expsyms_GCJ=
21396 # exclude_expsyms can be an extended regexp of symbols to exclude
21397 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21398 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21399 # as well as any symbol that contains `d'.
21400 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21401 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21402 # platforms (ab)use it in PIC code, but their linkers get confused if
21403 # the symbol is explicitly referenced. Since portable code cannot
21404 # rely on this symbol name, it's probably fine to never include it in
21405 # preloaded symbol tables.
21406 extract_expsyms_cmds=
21407
21408 case $host_os in
21409 cygwin* | mingw* | pw32*)
21410 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21411 # When not using gcc, we currently assume that we are using
21412 # Microsoft Visual C++.
21413 if test "$GCC" != yes; then
21414 with_gnu_ld=no
21415 fi
21416 ;;
21417 openbsd*)
21418 with_gnu_ld=no
21419 ;;
21420 esac
21421
21422 ld_shlibs_GCJ=yes
21423 if test "$with_gnu_ld" = yes; then
21424 # If archive_cmds runs LD, not CC, wlarc should be empty
21425 wlarc='${wl}'
21426
21427 # See if GNU ld supports shared libraries.
21428 case $host_os in
21429 aix3* | aix4* | aix5*)
21430 # On AIX/PPC, the GNU linker is very broken
21431 if test "$host_cpu" != ia64; then
21432 ld_shlibs_GCJ=no
21433 cat <<EOF 1>&2
21434
21435*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21436*** to be unable to reliably create shared libraries on AIX.
21437*** Therefore, libtool is disabling shared libraries support. If you
21438*** really care for shared libraries, you may want to modify your PATH
21439*** so that a non-GNU linker is found, and then restart.
21440
21441EOF
21442 fi
21443 ;;
21444
21445 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021446 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 +000021447 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21448 hardcode_minus_L_GCJ=yes
21449
21450 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21451 # that the semantics of dynamic libraries on AmigaOS, at least up
21452 # to version 4, is to share data among multiple programs linked
21453 # with the same dynamic library. Since this doesn't match the
21454 # behavior of shared libraries on other platforms, we can't use
21455 # them.
21456 ld_shlibs_GCJ=no
21457 ;;
21458
21459 beos*)
21460 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21461 allow_undefined_flag_GCJ=unsupported
21462 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21463 # support --undefined. This deserves some investigation. FIXME
21464 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21465 else
21466 ld_shlibs_GCJ=no
21467 fi
21468 ;;
21469
21470 cygwin* | mingw* | pw32*)
21471 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21472 # as there is no search path for DLLs.
21473 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21474 allow_undefined_flag_GCJ=unsupported
21475 always_export_symbols_GCJ=no
21476 enable_shared_with_static_runtimes_GCJ=yes
21477 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21478
21479 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21480 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21481 # If the export-symbols file already is a .def file (1st line
21482 # is EXPORTS), use it as is; otherwise, prepend...
21483 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21484 cp $export_symbols $output_objdir/$soname.def;
21485 else
21486 echo EXPORTS > $output_objdir/$soname.def;
21487 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021488 fi~
21489 $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 +000021490 else
21491 ld_shlibs=no
21492 fi
21493 ;;
21494
21495 netbsd*)
21496 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21497 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21498 wlarc=
21499 else
21500 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21501 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21502 fi
21503 ;;
21504
21505 solaris* | sysv5*)
21506 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21507 ld_shlibs_GCJ=no
21508 cat <<EOF 1>&2
21509
21510*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21511*** create shared libraries on Solaris systems. Therefore, libtool
21512*** is disabling shared libraries support. We urge you to upgrade GNU
21513*** binutils to release 2.9.1 or newer. Another option is to modify
21514*** your PATH or compiler configuration so that the native linker is
21515*** used, and then restart.
21516
21517EOF
21518 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21519 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21520 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21521 else
21522 ld_shlibs_GCJ=no
21523 fi
21524 ;;
21525
21526 sunos4*)
21527 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21528 wlarc=
21529 hardcode_direct_GCJ=yes
21530 hardcode_shlibpath_var_GCJ=no
21531 ;;
21532
Reid Spencer2706f8c2004-09-19 23:53:36 +000021533 linux*)
21534 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21535 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21536 archive_cmds_GCJ="$tmp_archive_cmds"
21537 supports_anon_versioning=no
21538 case `$LD -v 2>/dev/null` in
21539 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21540 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21541 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21542 *\ 2.11.*) ;; # other 2.11 versions
21543 *) supports_anon_versioning=yes ;;
21544 esac
21545 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021546 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21547cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21548$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021549 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21550 else
21551 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21552 fi
21553 else
21554 ld_shlibs_GCJ=no
21555 fi
21556 ;;
21557
John Criswell47fdd832003-07-14 16:52:07 +000021558 *)
21559 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21560 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21561 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21562 else
21563 ld_shlibs_GCJ=no
21564 fi
21565 ;;
21566 esac
21567
21568 if test "$ld_shlibs_GCJ" = yes; then
21569 runpath_var=LD_RUN_PATH
21570 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21571 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21572 # ancient GNU ld didn't support --whole-archive et. al.
21573 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21574 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21575 else
21576 whole_archive_flag_spec_GCJ=
21577 fi
21578 fi
21579 else
21580 # PORTME fill in a description of your system's linker (not GNU ld)
21581 case $host_os in
21582 aix3*)
21583 allow_undefined_flag_GCJ=unsupported
21584 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021585 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 +000021586 # Note: this linker hardcodes the directories in LIBPATH if there
21587 # are no directories specified by -L.
21588 hardcode_minus_L_GCJ=yes
21589 if test "$GCC" = yes && test -z "$link_static_flag"; then
21590 # Neither direct hardcoding nor static linking is supported with a
21591 # broken collect2.
21592 hardcode_direct_GCJ=unsupported
21593 fi
21594 ;;
21595
21596 aix4* | aix5*)
21597 if test "$host_cpu" = ia64; then
21598 # On IA64, the linker does run time linking by default, so we don't
21599 # have to do anything special.
21600 aix_use_runtimelinking=no
21601 exp_sym_flag='-Bexport'
21602 no_entry_flag=""
21603 else
21604 # If we're using GNU nm, then we don't want the "-C" option.
21605 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21606 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21607 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'
21608 else
21609 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'
21610 fi
21611 aix_use_runtimelinking=no
21612
21613 # Test if we are trying to use run time linking or normal
21614 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21615 # need to do runtime linking.
21616 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21617 for ld_flag in $LDFLAGS; do
21618 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21619 aix_use_runtimelinking=yes
21620 break
21621 fi
21622 done
21623 esac
21624
21625 exp_sym_flag='-bexport'
21626 no_entry_flag='-bnoentry'
21627 fi
21628
21629 # When large executables or shared objects are built, AIX ld can
21630 # have problems creating the table of contents. If linking a library
21631 # or program results in "error TOC overflow" add -mminimal-toc to
21632 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21633 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21634
21635 archive_cmds_GCJ=''
21636 hardcode_direct_GCJ=yes
21637 hardcode_libdir_separator_GCJ=':'
21638 link_all_deplibs_GCJ=yes
21639
21640 if test "$GCC" = yes; then
21641 case $host_os in aix4.012|aix4.012.*)
21642 # We only want to do this on AIX 4.2 and lower, the check
21643 # below for broken collect2 doesn't work under 4.3+
21644 collect2name=`${CC} -print-prog-name=collect2`
21645 if test -f "$collect2name" && \
21646 strings "$collect2name" | grep resolve_lib_name >/dev/null
21647 then
21648 # We have reworked collect2
21649 hardcode_direct_GCJ=yes
21650 else
21651 # We have old collect2
21652 hardcode_direct_GCJ=unsupported
21653 # It fails to find uninstalled libraries when the uninstalled
21654 # path is not listed in the libpath. Setting hardcode_minus_L
21655 # to unsupported forces relinking
21656 hardcode_minus_L_GCJ=yes
21657 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21658 hardcode_libdir_separator_GCJ=
21659 fi
21660 esac
21661 shared_flag='-shared'
21662 else
21663 # not using gcc
21664 if test "$host_cpu" = ia64; then
21665 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21666 # chokes on -Wl,-G. The following line is correct:
21667 shared_flag='-G'
21668 else
21669 if test "$aix_use_runtimelinking" = yes; then
21670 shared_flag='${wl}-G'
21671 else
21672 shared_flag='${wl}-bM:SRE'
21673 fi
21674 fi
21675 fi
21676
21677 # It seems that -bexpall does not export symbols beginning with
21678 # underscore (_), so it is better to generate a list of symbols to export.
21679 always_export_symbols_GCJ=yes
21680 if test "$aix_use_runtimelinking" = yes; then
21681 # Warning - without using the other runtime loading flags (-brtl),
21682 # -berok will link without error, but may produce a broken library.
21683 allow_undefined_flag_GCJ='-berok'
21684 # Determine the default libpath from the value encoded in an empty executable.
21685 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021686/* confdefs.h. */
21687_ACEOF
21688cat confdefs.h >>conftest.$ac_ext
21689cat >>conftest.$ac_ext <<_ACEOF
21690/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021691
John Criswell47fdd832003-07-14 16:52:07 +000021692int
21693main ()
21694{
21695
21696 ;
21697 return 0;
21698}
21699_ACEOF
21700rm -f conftest.$ac_objext conftest$ac_exeext
21701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021702 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021703 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021704 grep -v '^ *+' conftest.er1 >conftest.err
21705 rm -f conftest.er1
21706 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021709 { ac_try='test -z "$ac_c_werror_flag"
21710 || test ! -s conftest.err'
21711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21712 (eval $ac_try) 2>&5
21713 ac_status=$?
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); }; } &&
21716 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21718 (eval $ac_try) 2>&5
21719 ac_status=$?
21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721 (exit $ac_status); }; }; then
21722
21723aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21724}'`
21725# Check for a 64-bit object if we didn't find anything.
21726if 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; }
21727}'`; fi
21728else
21729 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021730sed 's/^/| /' conftest.$ac_ext >&5
21731
John Criswell47fdd832003-07-14 16:52:07 +000021732fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021733rm -f conftest.err conftest.$ac_objext \
21734 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021735if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21736
21737 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21738 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"
21739 else
21740 if test "$host_cpu" = ia64; then
21741 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21742 allow_undefined_flag_GCJ="-z nodefs"
21743 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"
21744 else
21745 # Determine the default libpath from the value encoded in an empty executable.
21746 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021747/* confdefs.h. */
21748_ACEOF
21749cat confdefs.h >>conftest.$ac_ext
21750cat >>conftest.$ac_ext <<_ACEOF
21751/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021752
John Criswell47fdd832003-07-14 16:52:07 +000021753int
21754main ()
21755{
21756
21757 ;
21758 return 0;
21759}
21760_ACEOF
21761rm -f conftest.$ac_objext conftest$ac_exeext
21762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021763 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021764 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021765 grep -v '^ *+' conftest.er1 >conftest.err
21766 rm -f conftest.er1
21767 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021770 { ac_try='test -z "$ac_c_werror_flag"
21771 || test ! -s conftest.err'
21772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21773 (eval $ac_try) 2>&5
21774 ac_status=$?
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); }; } &&
21777 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21779 (eval $ac_try) 2>&5
21780 ac_status=$?
21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); }; }; then
21783
21784aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21785}'`
21786# Check for a 64-bit object if we didn't find anything.
21787if 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; }
21788}'`; fi
21789else
21790 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021791sed 's/^/| /' conftest.$ac_ext >&5
21792
John Criswell47fdd832003-07-14 16:52:07 +000021793fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021794rm -f conftest.err conftest.$ac_objext \
21795 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021796if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21797
21798 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21799 # Warning - without using the other run time loading flags,
21800 # -berok will link without error, but may produce a broken library.
21801 no_undefined_flag_GCJ=' ${wl}-bernotok'
21802 allow_undefined_flag_GCJ=' ${wl}-berok'
21803 # -bexpall does not export symbols beginning with underscore (_)
21804 always_export_symbols_GCJ=yes
21805 # Exported symbols can be pulled into shared objects from archives
21806 whole_archive_flag_spec_GCJ=' '
21807 archive_cmds_need_lc_GCJ=yes
21808 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000021809 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 +000021810 fi
21811 fi
21812 ;;
21813
21814 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021815 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 +000021816 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21817 hardcode_minus_L_GCJ=yes
21818 # see comment about different semantics on the GNU ld section
21819 ld_shlibs_GCJ=no
21820 ;;
21821
Reid Spencer2706f8c2004-09-19 23:53:36 +000021822 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021823 export_dynamic_flag_spec_GCJ=-rdynamic
21824 ;;
21825
21826 cygwin* | mingw* | pw32*)
21827 # When not using gcc, we currently assume that we are using
21828 # Microsoft Visual C++.
21829 # hardcode_libdir_flag_spec is actually meaningless, as there is
21830 # no search path for DLLs.
21831 hardcode_libdir_flag_spec_GCJ=' '
21832 allow_undefined_flag_GCJ=unsupported
21833 # Tell ltmain to make .lib files, not .a files.
21834 libext=lib
21835 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021836 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021837 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021838 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 +000021839 # The linker will automatically build a .lib file if we build a DLL.
21840 old_archive_From_new_cmds_GCJ='true'
21841 # FIXME: Should let the user specify the lib program.
21842 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21843 fix_srcfile_path='`cygpath -w "$srcfile"`'
21844 enable_shared_with_static_runtimes_GCJ=yes
21845 ;;
21846
21847 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000021848 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021849 rhapsody* | darwin1.[012])
21850 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21851 ;;
21852 *) # Darwin 1.3 on
21853 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21854 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21855 else
21856 case ${MACOSX_DEPLOYMENT_TARGET} in
21857 10.[012])
21858 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21859 ;;
21860 10.*)
21861 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21862 ;;
21863 esac
21864 fi
21865 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021866 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021867 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000021868 hardcode_direct_GCJ=no
21869 hardcode_automatic_GCJ=yes
21870 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021871 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000021872 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021873 if test "$GCC" = yes ; then
21874 output_verbose_link_cmd='echo'
21875 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21876 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21877 # 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 +000021878 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}'
21879 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 +000021880 else
21881 case "$cc_basename" in
21882 xlc*)
21883 output_verbose_link_cmd='echo'
21884 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21885 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21886 # 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 +000021887 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}'
21888 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 +000021889 ;;
21890 *)
21891 ld_shlibs_GCJ=no
21892 ;;
21893 esac
John Criswell47fdd832003-07-14 16:52:07 +000021894 fi
21895 ;;
21896
21897 dgux*)
21898 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21899 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21900 hardcode_shlibpath_var_GCJ=no
21901 ;;
21902
21903 freebsd1*)
21904 ld_shlibs_GCJ=no
21905 ;;
21906
21907 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21908 # support. Future versions do this automatically, but an explicit c++rt0.o
21909 # does not break anything, and helps significantly (at the cost of a little
21910 # extra space).
21911 freebsd2.2*)
21912 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21913 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21914 hardcode_direct_GCJ=yes
21915 hardcode_shlibpath_var_GCJ=no
21916 ;;
21917
21918 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21919 freebsd2*)
21920 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21921 hardcode_direct_GCJ=yes
21922 hardcode_minus_L_GCJ=yes
21923 hardcode_shlibpath_var_GCJ=no
21924 ;;
21925
21926 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021927 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000021928 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21929 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21930 hardcode_direct_GCJ=yes
21931 hardcode_shlibpath_var_GCJ=no
21932 ;;
21933
21934 hpux9*)
21935 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021936 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 +000021937 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021938 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 +000021939 fi
21940 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21941 hardcode_libdir_separator_GCJ=:
21942 hardcode_direct_GCJ=yes
21943
21944 # hardcode_minus_L: Not really in the search PATH,
21945 # but as the default location of the library.
21946 hardcode_minus_L_GCJ=yes
21947 export_dynamic_flag_spec_GCJ='${wl}-E'
21948 ;;
21949
21950 hpux10* | hpux11*)
21951 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21952 case "$host_cpu" in
21953 hppa*64*|ia64*)
21954 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21955 ;;
21956 *)
21957 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21958 ;;
21959 esac
21960 else
21961 case "$host_cpu" in
21962 hppa*64*|ia64*)
21963 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21964 ;;
21965 *)
21966 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21967 ;;
21968 esac
21969 fi
21970 if test "$with_gnu_ld" = no; then
21971 case "$host_cpu" in
21972 hppa*64*)
21973 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21974 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21975 hardcode_libdir_separator_GCJ=:
21976 hardcode_direct_GCJ=no
21977 hardcode_shlibpath_var_GCJ=no
21978 ;;
21979 ia64*)
21980 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21981 hardcode_direct_GCJ=no
21982 hardcode_shlibpath_var_GCJ=no
21983
21984 # hardcode_minus_L: Not really in the search PATH,
21985 # but as the default location of the library.
21986 hardcode_minus_L_GCJ=yes
21987 ;;
21988 *)
21989 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21990 hardcode_libdir_separator_GCJ=:
21991 hardcode_direct_GCJ=yes
21992 export_dynamic_flag_spec_GCJ='${wl}-E'
21993
21994 # hardcode_minus_L: Not really in the search PATH,
21995 # but as the default location of the library.
21996 hardcode_minus_L_GCJ=yes
21997 ;;
21998 esac
21999 fi
22000 ;;
22001
22002 irix5* | irix6* | nonstopux*)
22003 if test "$GCC" = yes; then
22004 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'
22005 else
22006 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'
22007 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22008 fi
22009 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22010 hardcode_libdir_separator_GCJ=:
22011 link_all_deplibs_GCJ=yes
22012 ;;
22013
22014 netbsd*)
22015 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22016 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22017 else
22018 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22019 fi
22020 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22021 hardcode_direct_GCJ=yes
22022 hardcode_shlibpath_var_GCJ=no
22023 ;;
22024
22025 newsos6)
22026 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22027 hardcode_direct_GCJ=yes
22028 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22029 hardcode_libdir_separator_GCJ=:
22030 hardcode_shlibpath_var_GCJ=no
22031 ;;
22032
22033 openbsd*)
22034 hardcode_direct_GCJ=yes
22035 hardcode_shlibpath_var_GCJ=no
22036 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22037 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022038 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 +000022039 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22040 export_dynamic_flag_spec_GCJ='${wl}-E'
22041 else
22042 case $host_os in
22043 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22044 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22045 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22046 ;;
22047 *)
22048 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22049 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22050 ;;
22051 esac
22052 fi
22053 ;;
22054
22055 os2*)
22056 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22057 hardcode_minus_L_GCJ=yes
22058 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022059 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 +000022060 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22061 ;;
22062
22063 osf3*)
22064 if test "$GCC" = yes; then
22065 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22066 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'
22067 else
22068 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22069 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'
22070 fi
22071 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22072 hardcode_libdir_separator_GCJ=:
22073 ;;
22074
22075 osf4* | osf5*) # as osf3* with the addition of -msym flag
22076 if test "$GCC" = yes; then
22077 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22078 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'
22079 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22080 else
22081 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22082 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 +000022083 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~
22084 $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'
22085
John Criswell47fdd832003-07-14 16:52:07 +000022086 # Both c and cxx compiler support -rpath directly
22087 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22088 fi
22089 hardcode_libdir_separator_GCJ=:
22090 ;;
22091
22092 sco3.2v5*)
22093 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22094 hardcode_shlibpath_var_GCJ=no
22095 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22096 runpath_var=LD_RUN_PATH
22097 hardcode_runpath_var=yes
22098 ;;
22099
22100 solaris*)
22101 no_undefined_flag_GCJ=' -z text'
22102 if test "$GCC" = yes; then
22103 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022104 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22105 $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 +000022106 else
22107 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022108 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22109 $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 +000022110 fi
22111 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22112 hardcode_shlibpath_var_GCJ=no
22113 case $host_os in
22114 solaris2.[0-5] | solaris2.[0-5].*) ;;
22115 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22116 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22117 esac
22118 link_all_deplibs_GCJ=yes
22119 ;;
22120
22121 sunos4*)
22122 if test "x$host_vendor" = xsequent; then
22123 # Use $CC to link under sequent, because it throws in some extra .o
22124 # files that make .init and .fini sections work.
22125 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22126 else
22127 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22128 fi
22129 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22130 hardcode_direct_GCJ=yes
22131 hardcode_minus_L_GCJ=yes
22132 hardcode_shlibpath_var_GCJ=no
22133 ;;
22134
22135 sysv4)
22136 case $host_vendor in
22137 sni)
22138 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22139 hardcode_direct_GCJ=yes # is this really true???
22140 ;;
22141 siemens)
22142 ## LD is ld it makes a PLAMLIB
22143 ## CC just makes a GrossModule.
22144 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22145 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22146 hardcode_direct_GCJ=no
22147 ;;
22148 motorola)
22149 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22150 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22151 ;;
22152 esac
22153 runpath_var='LD_RUN_PATH'
22154 hardcode_shlibpath_var_GCJ=no
22155 ;;
22156
22157 sysv4.3*)
22158 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22159 hardcode_shlibpath_var_GCJ=no
22160 export_dynamic_flag_spec_GCJ='-Bexport'
22161 ;;
22162
22163 sysv4*MP*)
22164 if test -d /usr/nec; then
22165 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22166 hardcode_shlibpath_var_GCJ=no
22167 runpath_var=LD_RUN_PATH
22168 hardcode_runpath_var=yes
22169 ld_shlibs_GCJ=yes
22170 fi
22171 ;;
22172
22173 sysv4.2uw2*)
22174 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22175 hardcode_direct_GCJ=yes
22176 hardcode_minus_L_GCJ=no
22177 hardcode_shlibpath_var_GCJ=no
22178 hardcode_runpath_var=yes
22179 runpath_var=LD_RUN_PATH
22180 ;;
22181
22182 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22183 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22184 if test "$GCC" = yes; then
22185 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22186 else
22187 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22188 fi
22189 runpath_var='LD_RUN_PATH'
22190 hardcode_shlibpath_var_GCJ=no
22191 ;;
22192
22193 sysv5*)
22194 no_undefined_flag_GCJ=' -z text'
22195 # $CC -shared without GNU ld will not create a library from C++
22196 # object files and a static libstdc++, better avoid it by now
22197 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022198 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22199 $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 +000022200 hardcode_libdir_flag_spec_GCJ=
22201 hardcode_shlibpath_var_GCJ=no
22202 runpath_var='LD_RUN_PATH'
22203 ;;
22204
22205 uts4*)
22206 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22207 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22208 hardcode_shlibpath_var_GCJ=no
22209 ;;
22210
22211 *)
22212 ld_shlibs_GCJ=no
22213 ;;
22214 esac
22215 fi
22216
22217echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22218echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22219test "$ld_shlibs_GCJ" = no && can_build_shared=no
22220
22221variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22222if test "$GCC" = yes; then
22223 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22224fi
22225
22226#
22227# Do we need to explicitly link libc?
22228#
22229case "x$archive_cmds_need_lc_GCJ" in
22230x|xyes)
22231 # Assume -lc should be added
22232 archive_cmds_need_lc_GCJ=yes
22233
22234 if test "$enable_shared" = yes && test "$GCC" = yes; then
22235 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022236 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022237 # FIXME: we may have to deal with multi-command sequences.
22238 ;;
22239 '$CC '*)
22240 # Test whether the compiler implicitly links with -lc since on some
22241 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22242 # to ld, don't add -lc before -lgcc.
22243 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22244echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22245 $rm conftest*
22246 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22247
22248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22249 (eval $ac_compile) 2>&5
22250 ac_status=$?
22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); } 2>conftest.err; then
22253 soname=conftest
22254 lib=conftest
22255 libobjs=conftest.$ac_objext
22256 deplibs=
22257 wl=$lt_prog_compiler_wl_GCJ
22258 compiler_flags=-v
22259 linker_flags=-v
22260 verstring=
22261 output_objdir=.
22262 libname=conftest
22263 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22264 allow_undefined_flag_GCJ=
22265 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22266 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22267 ac_status=$?
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); }
22270 then
22271 archive_cmds_need_lc_GCJ=no
22272 else
22273 archive_cmds_need_lc_GCJ=yes
22274 fi
22275 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22276 else
22277 cat conftest.err 1>&5
22278 fi
22279 $rm conftest*
22280 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22281echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22282 ;;
22283 esac
22284 fi
22285 ;;
22286esac
22287
John Criswell47fdd832003-07-14 16:52:07 +000022288echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22289echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22290library_names_spec=
22291libname_spec='lib$name'
22292soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022293shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022294postinstall_cmds=
22295postuninstall_cmds=
22296finish_cmds=
22297finish_eval=
22298shlibpath_var=
22299shlibpath_overrides_runpath=unknown
22300version_type=none
22301dynamic_linker="$host_os ld.so"
22302sys_lib_dlsearch_path_spec="/lib /usr/lib"
22303if test "$GCC" = yes; then
22304 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22305 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22306 # if the path contains ";" then we assume it to be the separator
22307 # otherwise default to the standard path separator (i.e. ":") - it is
22308 # assumed that no part of a normal pathname contains ";" but that should
22309 # okay in the real world where ";" in dirpaths is itself problematic.
22310 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22311 else
22312 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22313 fi
22314else
22315 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22316fi
22317need_lib_prefix=unknown
22318hardcode_into_libs=no
22319
22320# when you set need_version to no, make sure it does not cause -set_version
22321# flags to be left without arguments
22322need_version=unknown
22323
22324case $host_os in
22325aix3*)
22326 version_type=linux
22327 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22328 shlibpath_var=LIBPATH
22329
22330 # AIX 3 has no versioning support, so we append a major version to the name.
22331 soname_spec='${libname}${release}${shared_ext}$major'
22332 ;;
22333
22334aix4* | aix5*)
22335 version_type=linux
22336 need_lib_prefix=no
22337 need_version=no
22338 hardcode_into_libs=yes
22339 if test "$host_cpu" = ia64; then
22340 # AIX 5 supports IA64
22341 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22342 shlibpath_var=LD_LIBRARY_PATH
22343 else
22344 # With GCC up to 2.95.x, collect2 would create an import file
22345 # for dependence libraries. The import file would start with
22346 # the line `#! .'. This would cause the generated library to
22347 # depend on `.', always an invalid library. This was fixed in
22348 # development snapshots of GCC prior to 3.0.
22349 case $host_os in
22350 aix4 | aix4.[01] | aix4.[01].*)
22351 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22352 echo ' yes '
22353 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22354 :
22355 else
22356 can_build_shared=no
22357 fi
22358 ;;
22359 esac
22360 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22361 # soname into executable. Probably we can add versioning support to
22362 # collect2, so additional links can be useful in future.
22363 if test "$aix_use_runtimelinking" = yes; then
22364 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22365 # instead of lib<name>.a to let people know that these are not
22366 # typical AIX shared libraries.
22367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22368 else
22369 # We preserve .a as extension for shared libraries through AIX4.2
22370 # and later when we are not doing run time linking.
22371 library_names_spec='${libname}${release}.a $libname.a'
22372 soname_spec='${libname}${release}${shared_ext}$major'
22373 fi
22374 shlibpath_var=LIBPATH
22375 fi
22376 ;;
22377
22378amigaos*)
22379 library_names_spec='$libname.ixlibrary $libname.a'
22380 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022381 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 +000022382 ;;
22383
22384beos*)
22385 library_names_spec='${libname}${shared_ext}'
22386 dynamic_linker="$host_os ld.so"
22387 shlibpath_var=LIBRARY_PATH
22388 ;;
22389
Reid Spencer2706f8c2004-09-19 23:53:36 +000022390bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022391 version_type=linux
22392 need_version=no
22393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22394 soname_spec='${libname}${release}${shared_ext}$major'
22395 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22396 shlibpath_var=LD_LIBRARY_PATH
22397 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22398 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22399 # the default ld.so.conf also contains /usr/contrib/lib and
22400 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22401 # libtool to hard-code these into programs
22402 ;;
22403
22404cygwin* | mingw* | pw32*)
22405 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022406 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022407 need_version=no
22408 need_lib_prefix=no
22409
22410 case $GCC,$host_os in
22411 yes,cygwin* | yes,mingw* | yes,pw32*)
22412 library_names_spec='$libname.dll.a'
22413 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022414 postinstall_cmds='base_file=`basename \${file}`~
22415 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22416 dldir=$destdir/`dirname \$dlpath`~
22417 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022418 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022419 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22420 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022421 $rm \$dlpath'
22422 shlibpath_overrides_runpath=yes
22423
22424 case $host_os in
22425 cygwin*)
22426 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22427 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 +000022428 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022429 ;;
22430 mingw*)
22431 # MinGW DLLs use traditional 'lib' prefix
22432 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22433 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22434 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22435 # It is most probably a Windows format PATH printed by
22436 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22437 # path with ; separators, and with drive letters. We can handle the
22438 # drive letters (cygwin fileutils understands them), so leave them,
22439 # especially as we might pass files found there to a mingw objdump,
22440 # which wouldn't understand a cygwinified path. Ahh.
22441 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22442 else
22443 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22444 fi
22445 ;;
22446 pw32*)
22447 # pw32 DLLs use 'pw' prefix rather than 'lib'
22448 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22449 ;;
22450 esac
22451 ;;
22452
22453 *)
22454 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22455 ;;
22456 esac
22457 dynamic_linker='Win32 ld.exe'
22458 # FIXME: first we should search . and the directory the executable is in
22459 shlibpath_var=PATH
22460 ;;
22461
22462darwin* | rhapsody*)
22463 dynamic_linker="$host_os dyld"
22464 version_type=darwin
22465 need_lib_prefix=no
22466 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022467 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022468 soname_spec='${libname}${release}${major}$shared_ext'
22469 shlibpath_overrides_runpath=yes
22470 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022471 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022472 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022473 if test "$GCC" = yes; then
22474 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"`
22475 else
22476 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022477 fi
22478 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22479 ;;
22480
22481dgux*)
22482 version_type=linux
22483 need_lib_prefix=no
22484 need_version=no
22485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22486 soname_spec='${libname}${release}${shared_ext}$major'
22487 shlibpath_var=LD_LIBRARY_PATH
22488 ;;
22489
22490freebsd1*)
22491 dynamic_linker=no
22492 ;;
22493
Reid Spencer2706f8c2004-09-19 23:53:36 +000022494kfreebsd*-gnu)
22495 version_type=linux
22496 need_lib_prefix=no
22497 need_version=no
22498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22499 soname_spec='${libname}${release}${shared_ext}$major'
22500 shlibpath_var=LD_LIBRARY_PATH
22501 shlibpath_overrides_runpath=no
22502 hardcode_into_libs=yes
22503 dynamic_linker='GNU ld.so'
22504 ;;
22505
John Criswell47fdd832003-07-14 16:52:07 +000022506freebsd*)
22507 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22508 version_type=freebsd-$objformat
22509 case $version_type in
22510 freebsd-elf*)
22511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22512 need_version=no
22513 need_lib_prefix=no
22514 ;;
22515 freebsd-*)
22516 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22517 need_version=yes
22518 ;;
22519 esac
22520 shlibpath_var=LD_LIBRARY_PATH
22521 case $host_os in
22522 freebsd2*)
22523 shlibpath_overrides_runpath=yes
22524 ;;
22525 freebsd3.01* | freebsdelf3.01*)
22526 shlibpath_overrides_runpath=yes
22527 hardcode_into_libs=yes
22528 ;;
22529 *) # from 3.2 on
22530 shlibpath_overrides_runpath=no
22531 hardcode_into_libs=yes
22532 ;;
22533 esac
22534 ;;
22535
22536gnu*)
22537 version_type=linux
22538 need_lib_prefix=no
22539 need_version=no
22540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22541 soname_spec='${libname}${release}${shared_ext}$major'
22542 shlibpath_var=LD_LIBRARY_PATH
22543 hardcode_into_libs=yes
22544 ;;
22545
22546hpux9* | hpux10* | hpux11*)
22547 # Give a soname corresponding to the major version so that dld.sl refuses to
22548 # link against other versions.
22549 version_type=sunos
22550 need_lib_prefix=no
22551 need_version=no
22552 case "$host_cpu" in
22553 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022554 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022555 hardcode_into_libs=yes
22556 dynamic_linker="$host_os dld.so"
22557 shlibpath_var=LD_LIBRARY_PATH
22558 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22560 soname_spec='${libname}${release}${shared_ext}$major'
22561 if test "X$HPUX_IA64_MODE" = X32; then
22562 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22563 else
22564 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22565 fi
22566 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22567 ;;
22568 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022569 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022570 hardcode_into_libs=yes
22571 dynamic_linker="$host_os dld.sl"
22572 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22573 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22575 soname_spec='${libname}${release}${shared_ext}$major'
22576 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22577 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22578 ;;
22579 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022580 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022581 dynamic_linker="$host_os dld.sl"
22582 shlibpath_var=SHLIB_PATH
22583 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22585 soname_spec='${libname}${release}${shared_ext}$major'
22586 ;;
22587 esac
22588 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22589 postinstall_cmds='chmod 555 $lib'
22590 ;;
22591
22592irix5* | irix6* | nonstopux*)
22593 case $host_os in
22594 nonstopux*) version_type=nonstopux ;;
22595 *)
22596 if test "$lt_cv_prog_gnu_ld" = yes; then
22597 version_type=linux
22598 else
22599 version_type=irix
22600 fi ;;
22601 esac
22602 need_lib_prefix=no
22603 need_version=no
22604 soname_spec='${libname}${release}${shared_ext}$major'
22605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22606 case $host_os in
22607 irix5* | nonstopux*)
22608 libsuff= shlibsuff=
22609 ;;
22610 *)
22611 case $LD in # libtool.m4 will add one of these switches to LD
22612 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22613 libsuff= shlibsuff= libmagic=32-bit;;
22614 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22615 libsuff=32 shlibsuff=N32 libmagic=N32;;
22616 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22617 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22618 *) libsuff= shlibsuff= libmagic=never-match;;
22619 esac
22620 ;;
22621 esac
22622 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22623 shlibpath_overrides_runpath=no
22624 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22625 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22626 hardcode_into_libs=yes
22627 ;;
22628
22629# No shared lib support for Linux oldld, aout, or coff.
22630linux*oldld* | linux*aout* | linux*coff*)
22631 dynamic_linker=no
22632 ;;
22633
22634# This must be Linux ELF.
22635linux*)
22636 version_type=linux
22637 need_lib_prefix=no
22638 need_version=no
22639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22640 soname_spec='${libname}${release}${shared_ext}$major'
22641 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22642 shlibpath_var=LD_LIBRARY_PATH
22643 shlibpath_overrides_runpath=no
22644 # This implies no fast_install, which is unacceptable.
22645 # Some rework will be needed to allow for fast_install
22646 # before this can be enabled.
22647 hardcode_into_libs=yes
22648
Reid Spencer2706f8c2004-09-19 23:53:36 +000022649 # Append ld.so.conf contents to the search path
22650 if test -f /etc/ld.so.conf; then
22651 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22652 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22653 fi
22654
John Criswell47fdd832003-07-14 16:52:07 +000022655 # We used to test for /lib/ld.so.1 and disable shared libraries on
22656 # powerpc, because MkLinux only supported shared libraries with the
22657 # GNU dynamic linker. Since this was broken with cross compilers,
22658 # most powerpc-linux boxes support dynamic linking these days and
22659 # people can always --disable-shared, the test was removed, and we
22660 # assume the GNU/Linux dynamic linker is in use.
22661 dynamic_linker='GNU/Linux ld.so'
22662 ;;
22663
Reid Spencer2706f8c2004-09-19 23:53:36 +000022664knetbsd*-gnu)
22665 version_type=linux
22666 need_lib_prefix=no
22667 need_version=no
22668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22669 soname_spec='${libname}${release}${shared_ext}$major'
22670 shlibpath_var=LD_LIBRARY_PATH
22671 shlibpath_overrides_runpath=no
22672 hardcode_into_libs=yes
22673 dynamic_linker='GNU ld.so'
22674 ;;
22675
John Criswell47fdd832003-07-14 16:52:07 +000022676netbsd*)
22677 version_type=sunos
22678 need_lib_prefix=no
22679 need_version=no
22680 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22682 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22683 dynamic_linker='NetBSD (a.out) ld.so'
22684 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022686 soname_spec='${libname}${release}${shared_ext}$major'
22687 dynamic_linker='NetBSD ld.elf_so'
22688 fi
22689 shlibpath_var=LD_LIBRARY_PATH
22690 shlibpath_overrides_runpath=yes
22691 hardcode_into_libs=yes
22692 ;;
22693
22694newsos6)
22695 version_type=linux
22696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22697 shlibpath_var=LD_LIBRARY_PATH
22698 shlibpath_overrides_runpath=yes
22699 ;;
22700
Reid Spencer2706f8c2004-09-19 23:53:36 +000022701nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022702 version_type=linux
22703 need_lib_prefix=no
22704 need_version=no
22705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22706 soname_spec='${libname}${release}${shared_ext}$major'
22707 shlibpath_var=LD_LIBRARY_PATH
22708 shlibpath_overrides_runpath=yes
22709 ;;
22710
22711openbsd*)
22712 version_type=sunos
22713 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022714 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22717 shlibpath_var=LD_LIBRARY_PATH
22718 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22719 case $host_os in
22720 openbsd2.[89] | openbsd2.[89].*)
22721 shlibpath_overrides_runpath=no
22722 ;;
22723 *)
22724 shlibpath_overrides_runpath=yes
22725 ;;
22726 esac
22727 else
22728 shlibpath_overrides_runpath=yes
22729 fi
22730 ;;
22731
22732os2*)
22733 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022734 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022735 need_lib_prefix=no
22736 library_names_spec='$libname${shared_ext} $libname.a'
22737 dynamic_linker='OS/2 ld.exe'
22738 shlibpath_var=LIBPATH
22739 ;;
22740
22741osf3* | osf4* | osf5*)
22742 version_type=osf
22743 need_lib_prefix=no
22744 need_version=no
22745 soname_spec='${libname}${release}${shared_ext}$major'
22746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22747 shlibpath_var=LD_LIBRARY_PATH
22748 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22749 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22750 ;;
22751
22752sco3.2v5*)
22753 version_type=osf
22754 soname_spec='${libname}${release}${shared_ext}$major'
22755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22756 shlibpath_var=LD_LIBRARY_PATH
22757 ;;
22758
22759solaris*)
22760 version_type=linux
22761 need_lib_prefix=no
22762 need_version=no
22763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22764 soname_spec='${libname}${release}${shared_ext}$major'
22765 shlibpath_var=LD_LIBRARY_PATH
22766 shlibpath_overrides_runpath=yes
22767 hardcode_into_libs=yes
22768 # ldd complains unless libraries are executable
22769 postinstall_cmds='chmod +x $lib'
22770 ;;
22771
22772sunos4*)
22773 version_type=sunos
22774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22775 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22776 shlibpath_var=LD_LIBRARY_PATH
22777 shlibpath_overrides_runpath=yes
22778 if test "$with_gnu_ld" = yes; then
22779 need_lib_prefix=no
22780 fi
22781 need_version=yes
22782 ;;
22783
22784sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22785 version_type=linux
22786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22787 soname_spec='${libname}${release}${shared_ext}$major'
22788 shlibpath_var=LD_LIBRARY_PATH
22789 case $host_vendor in
22790 sni)
22791 shlibpath_overrides_runpath=no
22792 need_lib_prefix=no
22793 export_dynamic_flag_spec='${wl}-Blargedynsym'
22794 runpath_var=LD_RUN_PATH
22795 ;;
22796 siemens)
22797 need_lib_prefix=no
22798 ;;
22799 motorola)
22800 need_lib_prefix=no
22801 need_version=no
22802 shlibpath_overrides_runpath=no
22803 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22804 ;;
22805 esac
22806 ;;
22807
22808sysv4*MP*)
22809 if test -d /usr/nec ;then
22810 version_type=linux
22811 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22812 soname_spec='$libname${shared_ext}.$major'
22813 shlibpath_var=LD_LIBRARY_PATH
22814 fi
22815 ;;
22816
22817uts4*)
22818 version_type=linux
22819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22820 soname_spec='${libname}${release}${shared_ext}$major'
22821 shlibpath_var=LD_LIBRARY_PATH
22822 ;;
22823
22824*)
22825 dynamic_linker=no
22826 ;;
22827esac
22828echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22829echo "${ECHO_T}$dynamic_linker" >&6
22830test "$dynamic_linker" = no && can_build_shared=no
22831
Reid Spencer2706f8c2004-09-19 23:53:36 +000022832echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22833echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22834hardcode_action_GCJ=
22835if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22836 test -n "$runpath_var_GCJ" || \
22837 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22838
22839 # We can hardcode non-existant directories.
22840 if test "$hardcode_direct_GCJ" != no &&
22841 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22842 # have to relink, otherwise we might link with an installed library
22843 # when we should be linking with a yet-to-be-installed one
22844 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22845 test "$hardcode_minus_L_GCJ" != no; then
22846 # Linking always hardcodes the temporary library directory.
22847 hardcode_action_GCJ=relink
22848 else
22849 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22850 hardcode_action_GCJ=immediate
22851 fi
22852else
22853 # We cannot hardcode anything, or else we can only hardcode existing
22854 # directories.
22855 hardcode_action_GCJ=unsupported
22856fi
22857echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22858echo "${ECHO_T}$hardcode_action_GCJ" >&6
22859
22860if test "$hardcode_action_GCJ" = relink; then
22861 # Fast installation is not supported
22862 enable_fast_install=no
22863elif test "$shlibpath_overrides_runpath" = yes ||
22864 test "$enable_shared" = no; then
22865 # Fast installation is not necessary
22866 enable_fast_install=needless
22867fi
22868
22869striplib=
22870old_striplib=
22871echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22872echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22873if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22874 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22875 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22876 echo "$as_me:$LINENO: result: yes" >&5
22877echo "${ECHO_T}yes" >&6
22878else
22879# FIXME - insert some real tests, host_os isn't really good enough
22880 case $host_os in
22881 darwin*)
22882 if test -n "$STRIP" ; then
22883 striplib="$STRIP -x"
22884 echo "$as_me:$LINENO: result: yes" >&5
22885echo "${ECHO_T}yes" >&6
22886 else
22887 echo "$as_me:$LINENO: result: no" >&5
22888echo "${ECHO_T}no" >&6
22889fi
22890 ;;
22891 *)
22892 echo "$as_me:$LINENO: result: no" >&5
22893echo "${ECHO_T}no" >&6
22894 ;;
22895 esac
22896fi
22897
John Criswell47fdd832003-07-14 16:52:07 +000022898if test "x$enable_dlopen" != xyes; then
22899 enable_dlopen=unknown
22900 enable_dlopen_self=unknown
22901 enable_dlopen_self_static=unknown
22902else
22903 lt_cv_dlopen=no
22904 lt_cv_dlopen_libs=
22905
22906 case $host_os in
22907 beos*)
22908 lt_cv_dlopen="load_add_on"
22909 lt_cv_dlopen_libs=
22910 lt_cv_dlopen_self=yes
22911 ;;
22912
22913 mingw* | pw32*)
22914 lt_cv_dlopen="LoadLibrary"
22915 lt_cv_dlopen_libs=
22916 ;;
22917
22918 cygwin*)
22919 lt_cv_dlopen="dlopen"
22920 lt_cv_dlopen_libs=
22921 ;;
22922
22923 darwin*)
22924 # if libdl is installed we need to link against it
22925 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22926echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22927if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22928 echo $ECHO_N "(cached) $ECHO_C" >&6
22929else
22930 ac_check_lib_save_LIBS=$LIBS
22931LIBS="-ldl $LIBS"
22932cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022933/* confdefs.h. */
22934_ACEOF
22935cat confdefs.h >>conftest.$ac_ext
22936cat >>conftest.$ac_ext <<_ACEOF
22937/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022938
22939/* Override any gcc2 internal prototype to avoid an error. */
22940#ifdef __cplusplus
22941extern "C"
22942#endif
22943/* We use char because int might match the return type of a gcc2
22944 builtin and then its argument prototype would still apply. */
22945char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000022946int
22947main ()
22948{
22949dlopen ();
22950 ;
22951 return 0;
22952}
22953_ACEOF
22954rm -f conftest.$ac_objext conftest$ac_exeext
22955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022956 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022957 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022958 grep -v '^ *+' conftest.er1 >conftest.err
22959 rm -f conftest.er1
22960 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022963 { ac_try='test -z "$ac_c_werror_flag"
22964 || test ! -s conftest.err'
22965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22966 (eval $ac_try) 2>&5
22967 ac_status=$?
22968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969 (exit $ac_status); }; } &&
22970 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22972 (eval $ac_try) 2>&5
22973 ac_status=$?
22974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975 (exit $ac_status); }; }; then
22976 ac_cv_lib_dl_dlopen=yes
22977else
22978 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022979sed 's/^/| /' conftest.$ac_ext >&5
22980
John Criswell47fdd832003-07-14 16:52:07 +000022981ac_cv_lib_dl_dlopen=no
22982fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022983rm -f conftest.err conftest.$ac_objext \
22984 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022985LIBS=$ac_check_lib_save_LIBS
22986fi
22987echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22988echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22989if test $ac_cv_lib_dl_dlopen = yes; then
22990 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22991else
22992
22993 lt_cv_dlopen="dyld"
22994 lt_cv_dlopen_libs=
22995 lt_cv_dlopen_self=yes
22996
22997fi
22998
22999 ;;
23000
23001 *)
23002 echo "$as_me:$LINENO: checking for shl_load" >&5
23003echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23004if test "${ac_cv_func_shl_load+set}" = set; then
23005 echo $ECHO_N "(cached) $ECHO_C" >&6
23006else
23007 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023008/* confdefs.h. */
23009_ACEOF
23010cat confdefs.h >>conftest.$ac_ext
23011cat >>conftest.$ac_ext <<_ACEOF
23012/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023013/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23015#define shl_load innocuous_shl_load
23016
John Criswell47fdd832003-07-14 16:52:07 +000023017/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023018 which can conflict with char shl_load (); below.
23019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23020 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023021
John Criswell0c38eaf2003-09-10 15:17:25 +000023022#ifdef __STDC__
23023# include <limits.h>
23024#else
23025# include <assert.h>
23026#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023027
23028#undef shl_load
23029
John Criswell47fdd832003-07-14 16:52:07 +000023030/* Override any gcc2 internal prototype to avoid an error. */
23031#ifdef __cplusplus
23032extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023033{
John Criswell47fdd832003-07-14 16:52:07 +000023034#endif
23035/* We use char because int might match the return type of a gcc2
23036 builtin and then its argument prototype would still apply. */
23037char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023038/* The GNU C library defines this for functions which it implements
23039 to always fail with ENOSYS. Some functions are actually named
23040 something starting with __ and the normal name is an alias. */
23041#if defined (__stub_shl_load) || defined (__stub___shl_load)
23042choke me
23043#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023044char (*f) () = shl_load;
23045#endif
23046#ifdef __cplusplus
23047}
John Criswell47fdd832003-07-14 16:52:07 +000023048#endif
23049
John Criswell0c38eaf2003-09-10 15:17:25 +000023050int
23051main ()
23052{
23053return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000023054 ;
23055 return 0;
23056}
23057_ACEOF
23058rm -f conftest.$ac_objext conftest$ac_exeext
23059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023060 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023061 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023062 grep -v '^ *+' conftest.er1 >conftest.err
23063 rm -f conftest.er1
23064 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023067 { ac_try='test -z "$ac_c_werror_flag"
23068 || test ! -s conftest.err'
23069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23070 (eval $ac_try) 2>&5
23071 ac_status=$?
23072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073 (exit $ac_status); }; } &&
23074 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23076 (eval $ac_try) 2>&5
23077 ac_status=$?
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); }; }; then
23080 ac_cv_func_shl_load=yes
23081else
23082 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023083sed 's/^/| /' conftest.$ac_ext >&5
23084
John Criswell47fdd832003-07-14 16:52:07 +000023085ac_cv_func_shl_load=no
23086fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023087rm -f conftest.err conftest.$ac_objext \
23088 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023089fi
23090echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23091echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23092if test $ac_cv_func_shl_load = yes; then
23093 lt_cv_dlopen="shl_load"
23094else
23095 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23096echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23097if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23098 echo $ECHO_N "(cached) $ECHO_C" >&6
23099else
23100 ac_check_lib_save_LIBS=$LIBS
23101LIBS="-ldld $LIBS"
23102cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023103/* confdefs.h. */
23104_ACEOF
23105cat confdefs.h >>conftest.$ac_ext
23106cat >>conftest.$ac_ext <<_ACEOF
23107/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023108
23109/* Override any gcc2 internal prototype to avoid an error. */
23110#ifdef __cplusplus
23111extern "C"
23112#endif
23113/* We use char because int might match the return type of a gcc2
23114 builtin and then its argument prototype would still apply. */
23115char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023116int
23117main ()
23118{
23119shl_load ();
23120 ;
23121 return 0;
23122}
23123_ACEOF
23124rm -f conftest.$ac_objext conftest$ac_exeext
23125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023126 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023127 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023128 grep -v '^ *+' conftest.er1 >conftest.err
23129 rm -f conftest.er1
23130 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023133 { ac_try='test -z "$ac_c_werror_flag"
23134 || test ! -s conftest.err'
23135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23136 (eval $ac_try) 2>&5
23137 ac_status=$?
23138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139 (exit $ac_status); }; } &&
23140 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23142 (eval $ac_try) 2>&5
23143 ac_status=$?
23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); }; }; then
23146 ac_cv_lib_dld_shl_load=yes
23147else
23148 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023149sed 's/^/| /' conftest.$ac_ext >&5
23150
John Criswell47fdd832003-07-14 16:52:07 +000023151ac_cv_lib_dld_shl_load=no
23152fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023153rm -f conftest.err conftest.$ac_objext \
23154 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023155LIBS=$ac_check_lib_save_LIBS
23156fi
23157echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23158echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23159if test $ac_cv_lib_dld_shl_load = yes; then
23160 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23161else
23162 echo "$as_me:$LINENO: checking for dlopen" >&5
23163echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23164if test "${ac_cv_func_dlopen+set}" = set; then
23165 echo $ECHO_N "(cached) $ECHO_C" >&6
23166else
23167 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023168/* confdefs.h. */
23169_ACEOF
23170cat confdefs.h >>conftest.$ac_ext
23171cat >>conftest.$ac_ext <<_ACEOF
23172/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023173/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23175#define dlopen innocuous_dlopen
23176
John Criswell47fdd832003-07-14 16:52:07 +000023177/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023178 which can conflict with char dlopen (); below.
23179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23180 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023181
John Criswell0c38eaf2003-09-10 15:17:25 +000023182#ifdef __STDC__
23183# include <limits.h>
23184#else
23185# include <assert.h>
23186#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023187
23188#undef dlopen
23189
John Criswell47fdd832003-07-14 16:52:07 +000023190/* Override any gcc2 internal prototype to avoid an error. */
23191#ifdef __cplusplus
23192extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023193{
John Criswell47fdd832003-07-14 16:52:07 +000023194#endif
23195/* We use char because int might match the return type of a gcc2
23196 builtin and then its argument prototype would still apply. */
23197char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023198/* The GNU C library defines this for functions which it implements
23199 to always fail with ENOSYS. Some functions are actually named
23200 something starting with __ and the normal name is an alias. */
23201#if defined (__stub_dlopen) || defined (__stub___dlopen)
23202choke me
23203#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023204char (*f) () = dlopen;
23205#endif
23206#ifdef __cplusplus
23207}
John Criswell47fdd832003-07-14 16:52:07 +000023208#endif
23209
John Criswell0c38eaf2003-09-10 15:17:25 +000023210int
23211main ()
23212{
23213return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023214 ;
23215 return 0;
23216}
23217_ACEOF
23218rm -f conftest.$ac_objext conftest$ac_exeext
23219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023220 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023221 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023222 grep -v '^ *+' conftest.er1 >conftest.err
23223 rm -f conftest.er1
23224 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023227 { ac_try='test -z "$ac_c_werror_flag"
23228 || test ! -s conftest.err'
23229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23230 (eval $ac_try) 2>&5
23231 ac_status=$?
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); }; } &&
23234 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23236 (eval $ac_try) 2>&5
23237 ac_status=$?
23238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23239 (exit $ac_status); }; }; then
23240 ac_cv_func_dlopen=yes
23241else
23242 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023243sed 's/^/| /' conftest.$ac_ext >&5
23244
John Criswell47fdd832003-07-14 16:52:07 +000023245ac_cv_func_dlopen=no
23246fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023247rm -f conftest.err conftest.$ac_objext \
23248 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023249fi
23250echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23251echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23252if test $ac_cv_func_dlopen = yes; then
23253 lt_cv_dlopen="dlopen"
23254else
23255 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23256echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23257if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23258 echo $ECHO_N "(cached) $ECHO_C" >&6
23259else
23260 ac_check_lib_save_LIBS=$LIBS
23261LIBS="-ldl $LIBS"
23262cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023263/* confdefs.h. */
23264_ACEOF
23265cat confdefs.h >>conftest.$ac_ext
23266cat >>conftest.$ac_ext <<_ACEOF
23267/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023268
23269/* Override any gcc2 internal prototype to avoid an error. */
23270#ifdef __cplusplus
23271extern "C"
23272#endif
23273/* We use char because int might match the return type of a gcc2
23274 builtin and then its argument prototype would still apply. */
23275char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023276int
23277main ()
23278{
23279dlopen ();
23280 ;
23281 return 0;
23282}
23283_ACEOF
23284rm -f conftest.$ac_objext conftest$ac_exeext
23285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023286 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023287 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023288 grep -v '^ *+' conftest.er1 >conftest.err
23289 rm -f conftest.er1
23290 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023293 { ac_try='test -z "$ac_c_werror_flag"
23294 || test ! -s conftest.err'
23295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23296 (eval $ac_try) 2>&5
23297 ac_status=$?
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); }; } &&
23300 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23302 (eval $ac_try) 2>&5
23303 ac_status=$?
23304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305 (exit $ac_status); }; }; then
23306 ac_cv_lib_dl_dlopen=yes
23307else
23308 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023309sed 's/^/| /' conftest.$ac_ext >&5
23310
John Criswell47fdd832003-07-14 16:52:07 +000023311ac_cv_lib_dl_dlopen=no
23312fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023313rm -f conftest.err conftest.$ac_objext \
23314 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023315LIBS=$ac_check_lib_save_LIBS
23316fi
23317echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23318echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23319if test $ac_cv_lib_dl_dlopen = yes; then
23320 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23321else
23322 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23323echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23324if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23325 echo $ECHO_N "(cached) $ECHO_C" >&6
23326else
23327 ac_check_lib_save_LIBS=$LIBS
23328LIBS="-lsvld $LIBS"
23329cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023330/* confdefs.h. */
23331_ACEOF
23332cat confdefs.h >>conftest.$ac_ext
23333cat >>conftest.$ac_ext <<_ACEOF
23334/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023335
23336/* Override any gcc2 internal prototype to avoid an error. */
23337#ifdef __cplusplus
23338extern "C"
23339#endif
23340/* We use char because int might match the return type of a gcc2
23341 builtin and then its argument prototype would still apply. */
23342char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023343int
23344main ()
23345{
23346dlopen ();
23347 ;
23348 return 0;
23349}
23350_ACEOF
23351rm -f conftest.$ac_objext conftest$ac_exeext
23352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023353 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023354 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023355 grep -v '^ *+' conftest.er1 >conftest.err
23356 rm -f conftest.er1
23357 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023360 { ac_try='test -z "$ac_c_werror_flag"
23361 || test ! -s conftest.err'
23362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23363 (eval $ac_try) 2>&5
23364 ac_status=$?
23365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366 (exit $ac_status); }; } &&
23367 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23369 (eval $ac_try) 2>&5
23370 ac_status=$?
23371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372 (exit $ac_status); }; }; then
23373 ac_cv_lib_svld_dlopen=yes
23374else
23375 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023376sed 's/^/| /' conftest.$ac_ext >&5
23377
John Criswell47fdd832003-07-14 16:52:07 +000023378ac_cv_lib_svld_dlopen=no
23379fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023380rm -f conftest.err conftest.$ac_objext \
23381 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023382LIBS=$ac_check_lib_save_LIBS
23383fi
23384echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23385echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23386if test $ac_cv_lib_svld_dlopen = yes; then
23387 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23388else
23389 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23390echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23391if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23392 echo $ECHO_N "(cached) $ECHO_C" >&6
23393else
23394 ac_check_lib_save_LIBS=$LIBS
23395LIBS="-ldld $LIBS"
23396cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023397/* confdefs.h. */
23398_ACEOF
23399cat confdefs.h >>conftest.$ac_ext
23400cat >>conftest.$ac_ext <<_ACEOF
23401/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023402
23403/* Override any gcc2 internal prototype to avoid an error. */
23404#ifdef __cplusplus
23405extern "C"
23406#endif
23407/* We use char because int might match the return type of a gcc2
23408 builtin and then its argument prototype would still apply. */
23409char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023410int
23411main ()
23412{
23413dld_link ();
23414 ;
23415 return 0;
23416}
23417_ACEOF
23418rm -f conftest.$ac_objext conftest$ac_exeext
23419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023420 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023421 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023422 grep -v '^ *+' conftest.er1 >conftest.err
23423 rm -f conftest.er1
23424 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023427 { ac_try='test -z "$ac_c_werror_flag"
23428 || test ! -s conftest.err'
23429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23430 (eval $ac_try) 2>&5
23431 ac_status=$?
23432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433 (exit $ac_status); }; } &&
23434 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23436 (eval $ac_try) 2>&5
23437 ac_status=$?
23438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439 (exit $ac_status); }; }; then
23440 ac_cv_lib_dld_dld_link=yes
23441else
23442 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023443sed 's/^/| /' conftest.$ac_ext >&5
23444
John Criswell47fdd832003-07-14 16:52:07 +000023445ac_cv_lib_dld_dld_link=no
23446fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023447rm -f conftest.err conftest.$ac_objext \
23448 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023449LIBS=$ac_check_lib_save_LIBS
23450fi
23451echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23452echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23453if test $ac_cv_lib_dld_dld_link = yes; then
23454 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23455fi
23456
23457
23458fi
23459
23460
23461fi
23462
23463
23464fi
23465
23466
23467fi
23468
23469
23470fi
23471
23472 ;;
23473 esac
23474
23475 if test "x$lt_cv_dlopen" != xno; then
23476 enable_dlopen=yes
23477 else
23478 enable_dlopen=no
23479 fi
23480
23481 case $lt_cv_dlopen in
23482 dlopen)
23483 save_CPPFLAGS="$CPPFLAGS"
23484 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23485
23486 save_LDFLAGS="$LDFLAGS"
23487 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23488
23489 save_LIBS="$LIBS"
23490 LIBS="$lt_cv_dlopen_libs $LIBS"
23491
23492 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23493echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23494if test "${lt_cv_dlopen_self+set}" = set; then
23495 echo $ECHO_N "(cached) $ECHO_C" >&6
23496else
23497 if test "$cross_compiling" = yes; then :
23498 lt_cv_dlopen_self=cross
23499else
23500 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23501 lt_status=$lt_dlunknown
23502 cat > conftest.$ac_ext <<EOF
Reid Spencer95ed8432004-12-23 06:22:33 +000023503#line 23503 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023504#include "confdefs.h"
23505
23506#if HAVE_DLFCN_H
23507#include <dlfcn.h>
23508#endif
23509
23510#include <stdio.h>
23511
23512#ifdef RTLD_GLOBAL
23513# define LT_DLGLOBAL RTLD_GLOBAL
23514#else
23515# ifdef DL_GLOBAL
23516# define LT_DLGLOBAL DL_GLOBAL
23517# else
23518# define LT_DLGLOBAL 0
23519# endif
23520#endif
23521
23522/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23523 find out it does not work in some platform. */
23524#ifndef LT_DLLAZY_OR_NOW
23525# ifdef RTLD_LAZY
23526# define LT_DLLAZY_OR_NOW RTLD_LAZY
23527# else
23528# ifdef DL_LAZY
23529# define LT_DLLAZY_OR_NOW DL_LAZY
23530# else
23531# ifdef RTLD_NOW
23532# define LT_DLLAZY_OR_NOW RTLD_NOW
23533# else
23534# ifdef DL_NOW
23535# define LT_DLLAZY_OR_NOW DL_NOW
23536# else
23537# define LT_DLLAZY_OR_NOW 0
23538# endif
23539# endif
23540# endif
23541# endif
23542#endif
23543
23544#ifdef __cplusplus
23545extern "C" void exit (int);
23546#endif
23547
23548void fnord() { int i=42;}
23549int main ()
23550{
23551 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23552 int status = $lt_dlunknown;
23553
23554 if (self)
23555 {
23556 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23557 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23558 /* dlclose (self); */
23559 }
23560
23561 exit (status);
23562}
23563EOF
23564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23565 (eval $ac_link) 2>&5
23566 ac_status=$?
23567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23569 (./conftest; exit; ) 2>/dev/null
23570 lt_status=$?
23571 case x$lt_status in
23572 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23573 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23574 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23575 esac
23576 else :
23577 # compilation failed
23578 lt_cv_dlopen_self=no
23579 fi
23580fi
23581rm -fr conftest*
23582
23583
23584fi
23585echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23586echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23587
23588 if test "x$lt_cv_dlopen_self" = xyes; then
23589 LDFLAGS="$LDFLAGS $link_static_flag"
23590 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23591echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23592if test "${lt_cv_dlopen_self_static+set}" = set; then
23593 echo $ECHO_N "(cached) $ECHO_C" >&6
23594else
23595 if test "$cross_compiling" = yes; then :
23596 lt_cv_dlopen_self_static=cross
23597else
23598 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23599 lt_status=$lt_dlunknown
23600 cat > conftest.$ac_ext <<EOF
Reid Spencer95ed8432004-12-23 06:22:33 +000023601#line 23601 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023602#include "confdefs.h"
23603
23604#if HAVE_DLFCN_H
23605#include <dlfcn.h>
23606#endif
23607
23608#include <stdio.h>
23609
23610#ifdef RTLD_GLOBAL
23611# define LT_DLGLOBAL RTLD_GLOBAL
23612#else
23613# ifdef DL_GLOBAL
23614# define LT_DLGLOBAL DL_GLOBAL
23615# else
23616# define LT_DLGLOBAL 0
23617# endif
23618#endif
23619
23620/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23621 find out it does not work in some platform. */
23622#ifndef LT_DLLAZY_OR_NOW
23623# ifdef RTLD_LAZY
23624# define LT_DLLAZY_OR_NOW RTLD_LAZY
23625# else
23626# ifdef DL_LAZY
23627# define LT_DLLAZY_OR_NOW DL_LAZY
23628# else
23629# ifdef RTLD_NOW
23630# define LT_DLLAZY_OR_NOW RTLD_NOW
23631# else
23632# ifdef DL_NOW
23633# define LT_DLLAZY_OR_NOW DL_NOW
23634# else
23635# define LT_DLLAZY_OR_NOW 0
23636# endif
23637# endif
23638# endif
23639# endif
23640#endif
23641
23642#ifdef __cplusplus
23643extern "C" void exit (int);
23644#endif
23645
23646void fnord() { int i=42;}
23647int main ()
23648{
23649 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23650 int status = $lt_dlunknown;
23651
23652 if (self)
23653 {
23654 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23655 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23656 /* dlclose (self); */
23657 }
23658
23659 exit (status);
23660}
23661EOF
23662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23663 (eval $ac_link) 2>&5
23664 ac_status=$?
23665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23667 (./conftest; exit; ) 2>/dev/null
23668 lt_status=$?
23669 case x$lt_status in
23670 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23671 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23672 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23673 esac
23674 else :
23675 # compilation failed
23676 lt_cv_dlopen_self_static=no
23677 fi
23678fi
23679rm -fr conftest*
23680
23681
23682fi
23683echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23684echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23685 fi
23686
23687 CPPFLAGS="$save_CPPFLAGS"
23688 LDFLAGS="$save_LDFLAGS"
23689 LIBS="$save_LIBS"
23690 ;;
23691 esac
23692
23693 case $lt_cv_dlopen_self in
23694 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23695 *) enable_dlopen_self=unknown ;;
23696 esac
23697
23698 case $lt_cv_dlopen_self_static in
23699 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23700 *) enable_dlopen_self_static=unknown ;;
23701 esac
23702fi
23703
23704
23705# The else clause should only fire when bootstrapping the
23706# libtool distribution, otherwise you forgot to ship ltmain.sh
23707# with your package, and you will get complaints that there are
23708# no rules to generate ltmain.sh.
23709if test -f "$ltmain"; then
23710 # See if we are running on zsh, and set the options which allow our commands through
23711 # without removal of \ escapes.
23712 if test -n "${ZSH_VERSION+set}" ; then
23713 setopt NO_GLOB_SUBST
23714 fi
23715 # Now quote all the things that may contain metacharacters while being
23716 # careful not to overquote the AC_SUBSTed values. We take copies of the
23717 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023718 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23719 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023720 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23721 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23722 deplibs_check_method reload_flag reload_cmds need_locks \
23723 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23724 lt_cv_sys_global_symbol_to_c_name_address \
23725 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23726 old_postinstall_cmds old_postuninstall_cmds \
23727 compiler_GCJ \
23728 CC_GCJ \
23729 LD_GCJ \
23730 lt_prog_compiler_wl_GCJ \
23731 lt_prog_compiler_pic_GCJ \
23732 lt_prog_compiler_static_GCJ \
23733 lt_prog_compiler_no_builtin_flag_GCJ \
23734 export_dynamic_flag_spec_GCJ \
23735 thread_safe_flag_spec_GCJ \
23736 whole_archive_flag_spec_GCJ \
23737 enable_shared_with_static_runtimes_GCJ \
23738 old_archive_cmds_GCJ \
23739 old_archive_from_new_cmds_GCJ \
23740 predep_objects_GCJ \
23741 postdep_objects_GCJ \
23742 predeps_GCJ \
23743 postdeps_GCJ \
23744 compiler_lib_search_path_GCJ \
23745 archive_cmds_GCJ \
23746 archive_expsym_cmds_GCJ \
23747 postinstall_cmds_GCJ \
23748 postuninstall_cmds_GCJ \
23749 old_archive_from_expsyms_cmds_GCJ \
23750 allow_undefined_flag_GCJ \
23751 no_undefined_flag_GCJ \
23752 export_symbols_cmds_GCJ \
23753 hardcode_libdir_flag_spec_GCJ \
23754 hardcode_libdir_flag_spec_ld_GCJ \
23755 hardcode_libdir_separator_GCJ \
23756 hardcode_automatic_GCJ \
23757 module_cmds_GCJ \
23758 module_expsym_cmds_GCJ \
23759 lt_cv_prog_compiler_c_o_GCJ \
23760 exclude_expsyms_GCJ \
23761 include_expsyms_GCJ; do
23762
23763 case $var in
23764 old_archive_cmds_GCJ | \
23765 old_archive_from_new_cmds_GCJ | \
23766 archive_cmds_GCJ | \
23767 archive_expsym_cmds_GCJ | \
23768 module_cmds_GCJ | \
23769 module_expsym_cmds_GCJ | \
23770 old_archive_from_expsyms_cmds_GCJ | \
23771 export_symbols_cmds_GCJ | \
23772 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23773 postinstall_cmds | postuninstall_cmds | \
23774 old_postinstall_cmds | old_postuninstall_cmds | \
23775 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23776 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023777 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 +000023778 ;;
23779 *)
23780 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23781 ;;
23782 esac
23783 done
23784
23785 case $lt_echo in
23786 *'\$0 --fallback-echo"')
23787 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23788 ;;
23789 esac
23790
23791cfgfile="$ofile"
23792
23793 cat <<__EOF__ >> "$cfgfile"
23794# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23795
23796# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23797
23798# Shell to use when invoking shell scripts.
23799SHELL=$lt_SHELL
23800
23801# Whether or not to build shared libraries.
23802build_libtool_libs=$enable_shared
23803
23804# Whether or not to build static libraries.
23805build_old_libs=$enable_static
23806
23807# Whether or not to add -lc for building shared libraries.
23808build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23809
23810# Whether or not to disallow shared libs when runtime libs are static
23811allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23812
23813# Whether or not to optimize for fast installation.
23814fast_install=$enable_fast_install
23815
23816# The host system.
23817host_alias=$host_alias
23818host=$host
23819
23820# An echo program that does not interpret backslashes.
23821echo=$lt_echo
23822
23823# The archiver.
23824AR=$lt_AR
23825AR_FLAGS=$lt_AR_FLAGS
23826
23827# A C compiler.
23828LTCC=$lt_LTCC
23829
23830# A language-specific compiler.
23831CC=$lt_compiler_GCJ
23832
23833# Is the compiler the GNU C compiler?
23834with_gcc=$GCC_GCJ
23835
23836# An ERE matcher.
23837EGREP=$lt_EGREP
23838
23839# The linker used to build libraries.
23840LD=$lt_LD_GCJ
23841
23842# Whether we need hard or soft links.
23843LN_S=$lt_LN_S
23844
23845# A BSD-compatible nm program.
23846NM=$lt_NM
23847
23848# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023849STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023850
23851# Used to examine libraries when file_magic_cmd begins "file"
23852MAGIC_CMD=$MAGIC_CMD
23853
23854# Used on cygwin: DLL creation program.
23855DLLTOOL="$DLLTOOL"
23856
23857# Used on cygwin: object dumper.
23858OBJDUMP="$OBJDUMP"
23859
23860# Used on cygwin: assembler.
23861AS="$AS"
23862
23863# The name of the directory that contains temporary libtool files.
23864objdir=$objdir
23865
23866# How to create reloadable object files.
23867reload_flag=$lt_reload_flag
23868reload_cmds=$lt_reload_cmds
23869
23870# How to pass a linker flag through the compiler.
23871wl=$lt_lt_prog_compiler_wl_GCJ
23872
23873# Object file suffix (normally "o").
23874objext="$ac_objext"
23875
23876# Old archive suffix (normally "a").
23877libext="$libext"
23878
23879# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023880shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023881
23882# Executable file suffix (normally "").
23883exeext="$exeext"
23884
23885# Additional compiler flags for building library objects.
23886pic_flag=$lt_lt_prog_compiler_pic_GCJ
23887pic_mode=$pic_mode
23888
23889# What is the maximum length of a command?
23890max_cmd_len=$lt_cv_sys_max_cmd_len
23891
23892# Does compiler simultaneously support -c and -o options?
23893compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23894
23895# Must we lock files when doing compilation ?
23896need_locks=$lt_need_locks
23897
23898# Do we need the lib prefix for modules?
23899need_lib_prefix=$need_lib_prefix
23900
23901# Do we need a version for libraries?
23902need_version=$need_version
23903
23904# Whether dlopen is supported.
23905dlopen_support=$enable_dlopen
23906
23907# Whether dlopen of programs is supported.
23908dlopen_self=$enable_dlopen_self
23909
23910# Whether dlopen of statically linked programs is supported.
23911dlopen_self_static=$enable_dlopen_self_static
23912
23913# Compiler flag to prevent dynamic linking.
23914link_static_flag=$lt_lt_prog_compiler_static_GCJ
23915
23916# Compiler flag to turn off builtin functions.
23917no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23918
23919# Compiler flag to allow reflexive dlopens.
23920export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23921
23922# Compiler flag to generate shared objects directly from archives.
23923whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23924
23925# Compiler flag to generate thread-safe objects.
23926thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23927
23928# Library versioning type.
23929version_type=$version_type
23930
23931# Format of library name prefix.
23932libname_spec=$lt_libname_spec
23933
23934# List of archive names. First name is the real one, the rest are links.
23935# The last name is the one that the linker finds with -lNAME.
23936library_names_spec=$lt_library_names_spec
23937
23938# The coded name of the library, if different from the real name.
23939soname_spec=$lt_soname_spec
23940
23941# Commands used to build and install an old-style archive.
23942RANLIB=$lt_RANLIB
23943old_archive_cmds=$lt_old_archive_cmds_GCJ
23944old_postinstall_cmds=$lt_old_postinstall_cmds
23945old_postuninstall_cmds=$lt_old_postuninstall_cmds
23946
23947# Create an old-style archive from a shared archive.
23948old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23949
23950# Create a temporary old-style archive to link instead of a shared archive.
23951old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23952
23953# Commands used to build and install a shared archive.
23954archive_cmds=$lt_archive_cmds_GCJ
23955archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23956postinstall_cmds=$lt_postinstall_cmds
23957postuninstall_cmds=$lt_postuninstall_cmds
23958
23959# Commands used to build a loadable module (assumed same as above if empty)
23960module_cmds=$lt_module_cmds_GCJ
23961module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23962
23963# Commands to strip libraries.
23964old_striplib=$lt_old_striplib
23965striplib=$lt_striplib
23966
23967# Dependencies to place before the objects being linked to create a
23968# shared library.
23969predep_objects=$lt_predep_objects_GCJ
23970
23971# Dependencies to place after the objects being linked to create a
23972# shared library.
23973postdep_objects=$lt_postdep_objects_GCJ
23974
23975# Dependencies to place before the objects being linked to create a
23976# shared library.
23977predeps=$lt_predeps_GCJ
23978
23979# Dependencies to place after the objects being linked to create a
23980# shared library.
23981postdeps=$lt_postdeps_GCJ
23982
23983# The library search path used internally by the compiler when linking
23984# a shared library.
23985compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23986
23987# Method to check whether dependent libraries are shared objects.
23988deplibs_check_method=$lt_deplibs_check_method
23989
23990# Command to use when deplibs_check_method == file_magic.
23991file_magic_cmd=$lt_file_magic_cmd
23992
23993# Flag that allows shared libraries with undefined symbols to be built.
23994allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23995
23996# Flag that forces no undefined symbols.
23997no_undefined_flag=$lt_no_undefined_flag_GCJ
23998
23999# Commands used to finish a libtool library installation in a directory.
24000finish_cmds=$lt_finish_cmds
24001
24002# Same as above, but a single script fragment to be evaled but not shown.
24003finish_eval=$lt_finish_eval
24004
24005# Take the output of nm and produce a listing of raw symbols and C names.
24006global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24007
24008# Transform the output of nm in a proper C declaration
24009global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24010
24011# Transform the output of nm in a C name address pair
24012global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24013
24014# This is the shared library runtime path variable.
24015runpath_var=$runpath_var
24016
24017# This is the shared library path variable.
24018shlibpath_var=$shlibpath_var
24019
24020# Is shlibpath searched before the hard-coded library search path?
24021shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24022
24023# How to hardcode a shared library path into an executable.
24024hardcode_action=$hardcode_action_GCJ
24025
24026# Whether we should hardcode library paths into libraries.
24027hardcode_into_libs=$hardcode_into_libs
24028
24029# Flag to hardcode \$libdir into a binary during linking.
24030# This must work even if \$libdir does not exist.
24031hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24032
24033# If ld is used when linking, flag to hardcode \$libdir into
24034# a binary during linking. This must work even if \$libdir does
24035# not exist.
24036hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24037
24038# Whether we need a single -rpath flag with a separated argument.
24039hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24040
24041# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24042# resulting binary.
24043hardcode_direct=$hardcode_direct_GCJ
24044
24045# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24046# resulting binary.
24047hardcode_minus_L=$hardcode_minus_L_GCJ
24048
24049# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24050# the resulting binary.
24051hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24052
24053# Set to yes if building a shared library automatically hardcodes DIR into the library
24054# and all subsequent libraries and executables linked against it.
24055hardcode_automatic=$hardcode_automatic_GCJ
24056
24057# Variables whose values should be saved in libtool wrapper scripts and
24058# restored at relink time.
24059variables_saved_for_relink="$variables_saved_for_relink"
24060
24061# Whether libtool must link a program against all its dependency libraries.
24062link_all_deplibs=$link_all_deplibs_GCJ
24063
24064# Compile-time system search path for libraries
24065sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24066
24067# Run-time system search path for libraries
24068sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24069
24070# Fix the shell variable \$srcfile for the compiler.
24071fix_srcfile_path="$fix_srcfile_path_GCJ"
24072
24073# Set to yes if exported symbols are required.
24074always_export_symbols=$always_export_symbols_GCJ
24075
24076# The commands to list exported symbols.
24077export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24078
24079# The commands to extract the exported symbol list from a shared archive.
24080extract_expsyms_cmds=$lt_extract_expsyms_cmds
24081
24082# Symbols that should not be listed in the preloaded symbols.
24083exclude_expsyms=$lt_exclude_expsyms_GCJ
24084
24085# Symbols that must always be exported.
24086include_expsyms=$lt_include_expsyms_GCJ
24087
24088# ### END LIBTOOL TAG CONFIG: $tagname
24089
24090__EOF__
24091
24092
24093else
24094 # If there is no Makefile yet, we rely on a make rule to execute
24095 # `config.status --recheck' to rerun these tests and create the
24096 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024097 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24098 if test -f "$ltmain_in"; then
24099 test -f Makefile && make "$ltmain"
24100 fi
John Criswell47fdd832003-07-14 16:52:07 +000024101fi
24102
24103
24104ac_ext=c
24105ac_cpp='$CPP $CPPFLAGS'
24106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24108ac_compiler_gnu=$ac_cv_c_compiler_gnu
24109
24110CC="$lt_save_CC"
24111
24112 else
24113 tagname=""
24114 fi
24115 ;;
24116
24117 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024118 ac_ext=c
24119ac_cpp='$CPP $CPPFLAGS'
24120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24122ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024123
24124
24125# Source file extension for RC test sources.
24126ac_ext=rc
24127
24128# Object file extension for compiled RC test sources.
24129objext=o
24130objext_RC=$objext
24131
24132# Code to be used in simple compile tests
24133lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24134
24135# Code to be used in simple link tests
24136lt_simple_link_test_code="$lt_simple_compile_test_code"
24137
24138# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24139
24140# If no C compiler was specified, use CC.
24141LTCC=${LTCC-"$CC"}
24142
24143# Allow CC to be a program name with arguments.
24144compiler=$CC
24145
24146
24147# Allow CC to be a program name with arguments.
24148lt_save_CC="$CC"
24149CC=${RC-"windres"}
24150compiler=$CC
24151compiler_RC=$CC
24152lt_cv_prog_compiler_c_o_RC=yes
24153
24154# The else clause should only fire when bootstrapping the
24155# libtool distribution, otherwise you forgot to ship ltmain.sh
24156# with your package, and you will get complaints that there are
24157# no rules to generate ltmain.sh.
24158if test -f "$ltmain"; then
24159 # See if we are running on zsh, and set the options which allow our commands through
24160 # without removal of \ escapes.
24161 if test -n "${ZSH_VERSION+set}" ; then
24162 setopt NO_GLOB_SUBST
24163 fi
24164 # Now quote all the things that may contain metacharacters while being
24165 # careful not to overquote the AC_SUBSTed values. We take copies of the
24166 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024167 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24168 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024169 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24170 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24171 deplibs_check_method reload_flag reload_cmds need_locks \
24172 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24173 lt_cv_sys_global_symbol_to_c_name_address \
24174 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24175 old_postinstall_cmds old_postuninstall_cmds \
24176 compiler_RC \
24177 CC_RC \
24178 LD_RC \
24179 lt_prog_compiler_wl_RC \
24180 lt_prog_compiler_pic_RC \
24181 lt_prog_compiler_static_RC \
24182 lt_prog_compiler_no_builtin_flag_RC \
24183 export_dynamic_flag_spec_RC \
24184 thread_safe_flag_spec_RC \
24185 whole_archive_flag_spec_RC \
24186 enable_shared_with_static_runtimes_RC \
24187 old_archive_cmds_RC \
24188 old_archive_from_new_cmds_RC \
24189 predep_objects_RC \
24190 postdep_objects_RC \
24191 predeps_RC \
24192 postdeps_RC \
24193 compiler_lib_search_path_RC \
24194 archive_cmds_RC \
24195 archive_expsym_cmds_RC \
24196 postinstall_cmds_RC \
24197 postuninstall_cmds_RC \
24198 old_archive_from_expsyms_cmds_RC \
24199 allow_undefined_flag_RC \
24200 no_undefined_flag_RC \
24201 export_symbols_cmds_RC \
24202 hardcode_libdir_flag_spec_RC \
24203 hardcode_libdir_flag_spec_ld_RC \
24204 hardcode_libdir_separator_RC \
24205 hardcode_automatic_RC \
24206 module_cmds_RC \
24207 module_expsym_cmds_RC \
24208 lt_cv_prog_compiler_c_o_RC \
24209 exclude_expsyms_RC \
24210 include_expsyms_RC; do
24211
24212 case $var in
24213 old_archive_cmds_RC | \
24214 old_archive_from_new_cmds_RC | \
24215 archive_cmds_RC | \
24216 archive_expsym_cmds_RC | \
24217 module_cmds_RC | \
24218 module_expsym_cmds_RC | \
24219 old_archive_from_expsyms_cmds_RC | \
24220 export_symbols_cmds_RC | \
24221 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24222 postinstall_cmds | postuninstall_cmds | \
24223 old_postinstall_cmds | old_postuninstall_cmds | \
24224 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24225 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024226 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 +000024227 ;;
24228 *)
24229 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24230 ;;
24231 esac
24232 done
24233
24234 case $lt_echo in
24235 *'\$0 --fallback-echo"')
24236 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24237 ;;
24238 esac
24239
24240cfgfile="$ofile"
24241
24242 cat <<__EOF__ >> "$cfgfile"
24243# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24244
24245# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24246
24247# Shell to use when invoking shell scripts.
24248SHELL=$lt_SHELL
24249
24250# Whether or not to build shared libraries.
24251build_libtool_libs=$enable_shared
24252
24253# Whether or not to build static libraries.
24254build_old_libs=$enable_static
24255
24256# Whether or not to add -lc for building shared libraries.
24257build_libtool_need_lc=$archive_cmds_need_lc_RC
24258
24259# Whether or not to disallow shared libs when runtime libs are static
24260allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24261
24262# Whether or not to optimize for fast installation.
24263fast_install=$enable_fast_install
24264
24265# The host system.
24266host_alias=$host_alias
24267host=$host
24268
24269# An echo program that does not interpret backslashes.
24270echo=$lt_echo
24271
24272# The archiver.
24273AR=$lt_AR
24274AR_FLAGS=$lt_AR_FLAGS
24275
24276# A C compiler.
24277LTCC=$lt_LTCC
24278
24279# A language-specific compiler.
24280CC=$lt_compiler_RC
24281
24282# Is the compiler the GNU C compiler?
24283with_gcc=$GCC_RC
24284
24285# An ERE matcher.
24286EGREP=$lt_EGREP
24287
24288# The linker used to build libraries.
24289LD=$lt_LD_RC
24290
24291# Whether we need hard or soft links.
24292LN_S=$lt_LN_S
24293
24294# A BSD-compatible nm program.
24295NM=$lt_NM
24296
24297# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024298STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024299
24300# Used to examine libraries when file_magic_cmd begins "file"
24301MAGIC_CMD=$MAGIC_CMD
24302
24303# Used on cygwin: DLL creation program.
24304DLLTOOL="$DLLTOOL"
24305
24306# Used on cygwin: object dumper.
24307OBJDUMP="$OBJDUMP"
24308
24309# Used on cygwin: assembler.
24310AS="$AS"
24311
24312# The name of the directory that contains temporary libtool files.
24313objdir=$objdir
24314
24315# How to create reloadable object files.
24316reload_flag=$lt_reload_flag
24317reload_cmds=$lt_reload_cmds
24318
24319# How to pass a linker flag through the compiler.
24320wl=$lt_lt_prog_compiler_wl_RC
24321
24322# Object file suffix (normally "o").
24323objext="$ac_objext"
24324
24325# Old archive suffix (normally "a").
24326libext="$libext"
24327
24328# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024329shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024330
24331# Executable file suffix (normally "").
24332exeext="$exeext"
24333
24334# Additional compiler flags for building library objects.
24335pic_flag=$lt_lt_prog_compiler_pic_RC
24336pic_mode=$pic_mode
24337
24338# What is the maximum length of a command?
24339max_cmd_len=$lt_cv_sys_max_cmd_len
24340
24341# Does compiler simultaneously support -c and -o options?
24342compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24343
24344# Must we lock files when doing compilation ?
24345need_locks=$lt_need_locks
24346
24347# Do we need the lib prefix for modules?
24348need_lib_prefix=$need_lib_prefix
24349
24350# Do we need a version for libraries?
24351need_version=$need_version
24352
24353# Whether dlopen is supported.
24354dlopen_support=$enable_dlopen
24355
24356# Whether dlopen of programs is supported.
24357dlopen_self=$enable_dlopen_self
24358
24359# Whether dlopen of statically linked programs is supported.
24360dlopen_self_static=$enable_dlopen_self_static
24361
24362# Compiler flag to prevent dynamic linking.
24363link_static_flag=$lt_lt_prog_compiler_static_RC
24364
24365# Compiler flag to turn off builtin functions.
24366no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24367
24368# Compiler flag to allow reflexive dlopens.
24369export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24370
24371# Compiler flag to generate shared objects directly from archives.
24372whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24373
24374# Compiler flag to generate thread-safe objects.
24375thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24376
24377# Library versioning type.
24378version_type=$version_type
24379
24380# Format of library name prefix.
24381libname_spec=$lt_libname_spec
24382
24383# List of archive names. First name is the real one, the rest are links.
24384# The last name is the one that the linker finds with -lNAME.
24385library_names_spec=$lt_library_names_spec
24386
24387# The coded name of the library, if different from the real name.
24388soname_spec=$lt_soname_spec
24389
24390# Commands used to build and install an old-style archive.
24391RANLIB=$lt_RANLIB
24392old_archive_cmds=$lt_old_archive_cmds_RC
24393old_postinstall_cmds=$lt_old_postinstall_cmds
24394old_postuninstall_cmds=$lt_old_postuninstall_cmds
24395
24396# Create an old-style archive from a shared archive.
24397old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24398
24399# Create a temporary old-style archive to link instead of a shared archive.
24400old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24401
24402# Commands used to build and install a shared archive.
24403archive_cmds=$lt_archive_cmds_RC
24404archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24405postinstall_cmds=$lt_postinstall_cmds
24406postuninstall_cmds=$lt_postuninstall_cmds
24407
24408# Commands used to build a loadable module (assumed same as above if empty)
24409module_cmds=$lt_module_cmds_RC
24410module_expsym_cmds=$lt_module_expsym_cmds_RC
24411
24412# Commands to strip libraries.
24413old_striplib=$lt_old_striplib
24414striplib=$lt_striplib
24415
24416# Dependencies to place before the objects being linked to create a
24417# shared library.
24418predep_objects=$lt_predep_objects_RC
24419
24420# Dependencies to place after the objects being linked to create a
24421# shared library.
24422postdep_objects=$lt_postdep_objects_RC
24423
24424# Dependencies to place before the objects being linked to create a
24425# shared library.
24426predeps=$lt_predeps_RC
24427
24428# Dependencies to place after the objects being linked to create a
24429# shared library.
24430postdeps=$lt_postdeps_RC
24431
24432# The library search path used internally by the compiler when linking
24433# a shared library.
24434compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24435
24436# Method to check whether dependent libraries are shared objects.
24437deplibs_check_method=$lt_deplibs_check_method
24438
24439# Command to use when deplibs_check_method == file_magic.
24440file_magic_cmd=$lt_file_magic_cmd
24441
24442# Flag that allows shared libraries with undefined symbols to be built.
24443allow_undefined_flag=$lt_allow_undefined_flag_RC
24444
24445# Flag that forces no undefined symbols.
24446no_undefined_flag=$lt_no_undefined_flag_RC
24447
24448# Commands used to finish a libtool library installation in a directory.
24449finish_cmds=$lt_finish_cmds
24450
24451# Same as above, but a single script fragment to be evaled but not shown.
24452finish_eval=$lt_finish_eval
24453
24454# Take the output of nm and produce a listing of raw symbols and C names.
24455global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24456
24457# Transform the output of nm in a proper C declaration
24458global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24459
24460# Transform the output of nm in a C name address pair
24461global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24462
24463# This is the shared library runtime path variable.
24464runpath_var=$runpath_var
24465
24466# This is the shared library path variable.
24467shlibpath_var=$shlibpath_var
24468
24469# Is shlibpath searched before the hard-coded library search path?
24470shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24471
24472# How to hardcode a shared library path into an executable.
24473hardcode_action=$hardcode_action_RC
24474
24475# Whether we should hardcode library paths into libraries.
24476hardcode_into_libs=$hardcode_into_libs
24477
24478# Flag to hardcode \$libdir into a binary during linking.
24479# This must work even if \$libdir does not exist.
24480hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24481
24482# If ld is used when linking, flag to hardcode \$libdir into
24483# a binary during linking. This must work even if \$libdir does
24484# not exist.
24485hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24486
24487# Whether we need a single -rpath flag with a separated argument.
24488hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24489
24490# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24491# resulting binary.
24492hardcode_direct=$hardcode_direct_RC
24493
24494# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24495# resulting binary.
24496hardcode_minus_L=$hardcode_minus_L_RC
24497
24498# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24499# the resulting binary.
24500hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24501
24502# Set to yes if building a shared library automatically hardcodes DIR into the library
24503# and all subsequent libraries and executables linked against it.
24504hardcode_automatic=$hardcode_automatic_RC
24505
24506# Variables whose values should be saved in libtool wrapper scripts and
24507# restored at relink time.
24508variables_saved_for_relink="$variables_saved_for_relink"
24509
24510# Whether libtool must link a program against all its dependency libraries.
24511link_all_deplibs=$link_all_deplibs_RC
24512
24513# Compile-time system search path for libraries
24514sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24515
24516# Run-time system search path for libraries
24517sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24518
24519# Fix the shell variable \$srcfile for the compiler.
24520fix_srcfile_path="$fix_srcfile_path_RC"
24521
24522# Set to yes if exported symbols are required.
24523always_export_symbols=$always_export_symbols_RC
24524
24525# The commands to list exported symbols.
24526export_symbols_cmds=$lt_export_symbols_cmds_RC
24527
24528# The commands to extract the exported symbol list from a shared archive.
24529extract_expsyms_cmds=$lt_extract_expsyms_cmds
24530
24531# Symbols that should not be listed in the preloaded symbols.
24532exclude_expsyms=$lt_exclude_expsyms_RC
24533
24534# Symbols that must always be exported.
24535include_expsyms=$lt_include_expsyms_RC
24536
24537# ### END LIBTOOL TAG CONFIG: $tagname
24538
24539__EOF__
24540
24541
24542else
24543 # If there is no Makefile yet, we rely on a make rule to execute
24544 # `config.status --recheck' to rerun these tests and create the
24545 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024546 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24547 if test -f "$ltmain_in"; then
24548 test -f Makefile && make "$ltmain"
24549 fi
John Criswell47fdd832003-07-14 16:52:07 +000024550fi
24551
24552
24553ac_ext=c
24554ac_cpp='$CPP $CPPFLAGS'
24555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24557ac_compiler_gnu=$ac_cv_c_compiler_gnu
24558
24559CC="$lt_save_CC"
24560
24561 ;;
24562
24563 *)
24564 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24565echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24566 { (exit 1); exit 1; }; }
24567 ;;
24568 esac
24569
24570 # Append the new tag name to the list of available tags.
24571 if test -n "$tagname" ; then
24572 available_tags="$available_tags $tagname"
24573 fi
24574 fi
24575 done
24576 IFS="$lt_save_ifs"
24577
24578 # Now substitute the updated list of available tags.
24579 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24580 mv "${ofile}T" "$ofile"
24581 chmod +x "$ofile"
24582 else
24583 rm -f "${ofile}T"
24584 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24585echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24586 { (exit 1); exit 1; }; }
24587 fi
24588fi
John Criswell7a73b802003-06-30 21:59:07 +000024589
24590
24591
24592# This can be used to rebuild libtool when needed
24593LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24594
24595# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024596LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024597
24598# Prevent multiple expansion
24599
24600
24601
John Criswell47fdd832003-07-14 16:52:07 +000024602
24603
24604
24605
24606
24607
24608
24609
24610
24611
24612
24613
24614
24615
24616
24617
24618
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024619
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024620etags_version=`$ETAGS --version 2>&1`
24621case "$etags_version" in
24622 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24623 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24624 *) ETAGSFLAGS="" ;;
24625esac
24626ETAGSFLAGS=$ETAGSFLAGS
24627
24628
24629echo "$as_me:$LINENO: checking tool compatibility" >&5
24630echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24631
Reid Spencer86901802004-12-08 23:07:27 +000024632ICC=no
24633IXX=no
24634case $CC in
24635 icc*|icpc*)
24636 ICC=yes
24637 IXX=yes
24638 ;;
24639 *)
24640 ;;
24641esac
24642
24643if test "$GCC" != "yes" && test "$ICC" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024644then
Reid Spencer86901802004-12-08 23:07:27 +000024645 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24646echo "$as_me: error: gcc|icc required but not found" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024647 { (exit 1); exit 1; }; }
24648fi
24649
Reid Spencer86901802004-12-08 23:07:27 +000024650if test "$GXX" != "yes" && test "$IXX" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024651then
Reid Spencer86901802004-12-08 23:07:27 +000024652 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24653echo "$as_me: error: g++|icc required but not found" >&2;}
24654 { (exit 1); exit 1; }; }
24655fi
24656
24657if test "$GCC" = "yes"
24658then
24659 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24660 if test "$gccmajor" -lt "3"
24661 then
24662 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024663echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24664 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000024665 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024666fi
24667
24668if test -z "$llvm_cv_gnu_make_command"
24669then
24670 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24671echo "$as_me: error: GNU Make required but not found" >&2;}
24672 { (exit 1); exit 1; }; }
24673fi
24674
24675echo "$as_me:$LINENO: result: ok" >&5
24676echo "${ECHO_T}ok" >&6
24677
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024678
John Criswell7a73b802003-06-30 21:59:07 +000024679
John Criswell7a73b802003-06-30 21:59:07 +000024680echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24681echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24682if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24683 echo $ECHO_N "(cached) $ECHO_C" >&6
24684else
24685 ac_check_lib_save_LIBS=$LIBS
24686LIBS="-lelf $LIBS"
24687cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024688/* confdefs.h. */
24689_ACEOF
24690cat confdefs.h >>conftest.$ac_ext
24691cat >>conftest.$ac_ext <<_ACEOF
24692/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024693
24694/* Override any gcc2 internal prototype to avoid an error. */
24695#ifdef __cplusplus
24696extern "C"
24697#endif
24698/* We use char because int might match the return type of a gcc2
24699 builtin and then its argument prototype would still apply. */
24700char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000024701int
24702main ()
24703{
24704elf_begin ();
24705 ;
24706 return 0;
24707}
24708_ACEOF
24709rm -f conftest.$ac_objext conftest$ac_exeext
24710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024711 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024712 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024713 grep -v '^ *+' conftest.er1 >conftest.err
24714 rm -f conftest.er1
24715 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24717 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024718 { ac_try='test -z "$ac_c_werror_flag"
24719 || test ! -s conftest.err'
24720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24721 (eval $ac_try) 2>&5
24722 ac_status=$?
24723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724 (exit $ac_status); }; } &&
24725 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24727 (eval $ac_try) 2>&5
24728 ac_status=$?
24729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730 (exit $ac_status); }; }; then
24731 ac_cv_lib_elf_elf_begin=yes
24732else
24733 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024734sed 's/^/| /' conftest.$ac_ext >&5
24735
John Criswell7a73b802003-06-30 21:59:07 +000024736ac_cv_lib_elf_elf_begin=no
24737fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024738rm -f conftest.err conftest.$ac_objext \
24739 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024740LIBS=$ac_check_lib_save_LIBS
24741fi
24742echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24743echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24744if test $ac_cv_lib_elf_elf_begin = yes; then
24745 cat >>confdefs.h <<_ACEOF
24746#define HAVE_LIBELF 1
24747_ACEOF
24748
24749 LIBS="-lelf $LIBS"
24750
24751fi
24752
24753
Reid Spencer17795972004-11-18 09:47:37 +000024754echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24755echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24756if test "${ac_cv_search_lt_dlopen+set}" = set; then
24757 echo $ECHO_N "(cached) $ECHO_C" >&6
24758else
24759 ac_func_search_save_LIBS=$LIBS
24760ac_cv_search_lt_dlopen=no
24761cat >conftest.$ac_ext <<_ACEOF
24762/* confdefs.h. */
24763_ACEOF
24764cat confdefs.h >>conftest.$ac_ext
24765cat >>conftest.$ac_ext <<_ACEOF
24766/* end confdefs.h. */
24767
24768/* Override any gcc2 internal prototype to avoid an error. */
24769#ifdef __cplusplus
24770extern "C"
24771#endif
24772/* We use char because int might match the return type of a gcc2
24773 builtin and then its argument prototype would still apply. */
24774char lt_dlopen ();
24775int
24776main ()
24777{
24778lt_dlopen ();
24779 ;
24780 return 0;
24781}
24782_ACEOF
24783rm -f conftest.$ac_objext conftest$ac_exeext
24784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24785 (eval $ac_link) 2>conftest.er1
24786 ac_status=$?
24787 grep -v '^ *+' conftest.er1 >conftest.err
24788 rm -f conftest.er1
24789 cat conftest.err >&5
24790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791 (exit $ac_status); } &&
24792 { ac_try='test -z "$ac_c_werror_flag"
24793 || test ! -s conftest.err'
24794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24795 (eval $ac_try) 2>&5
24796 ac_status=$?
24797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798 (exit $ac_status); }; } &&
24799 { ac_try='test -s conftest$ac_exeext'
24800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24801 (eval $ac_try) 2>&5
24802 ac_status=$?
24803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804 (exit $ac_status); }; }; then
24805 ac_cv_search_lt_dlopen="none required"
24806else
24807 echo "$as_me: failed program was:" >&5
24808sed 's/^/| /' conftest.$ac_ext >&5
24809
24810fi
24811rm -f conftest.err conftest.$ac_objext \
24812 conftest$ac_exeext conftest.$ac_ext
24813if test "$ac_cv_search_lt_dlopen" = no; then
24814 for ac_lib in ltdl; do
24815 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24816 cat >conftest.$ac_ext <<_ACEOF
24817/* confdefs.h. */
24818_ACEOF
24819cat confdefs.h >>conftest.$ac_ext
24820cat >>conftest.$ac_ext <<_ACEOF
24821/* end confdefs.h. */
24822
24823/* Override any gcc2 internal prototype to avoid an error. */
24824#ifdef __cplusplus
24825extern "C"
24826#endif
24827/* We use char because int might match the return type of a gcc2
24828 builtin and then its argument prototype would still apply. */
24829char lt_dlopen ();
24830int
24831main ()
24832{
24833lt_dlopen ();
24834 ;
24835 return 0;
24836}
24837_ACEOF
24838rm -f conftest.$ac_objext conftest$ac_exeext
24839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24840 (eval $ac_link) 2>conftest.er1
24841 ac_status=$?
24842 grep -v '^ *+' conftest.er1 >conftest.err
24843 rm -f conftest.er1
24844 cat conftest.err >&5
24845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); } &&
24847 { ac_try='test -z "$ac_c_werror_flag"
24848 || test ! -s conftest.err'
24849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24850 (eval $ac_try) 2>&5
24851 ac_status=$?
24852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853 (exit $ac_status); }; } &&
24854 { ac_try='test -s conftest$ac_exeext'
24855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24856 (eval $ac_try) 2>&5
24857 ac_status=$?
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); }; }; then
24860 ac_cv_search_lt_dlopen="-l$ac_lib"
24861break
24862else
24863 echo "$as_me: failed program was:" >&5
24864sed 's/^/| /' conftest.$ac_ext >&5
24865
24866fi
24867rm -f conftest.err conftest.$ac_objext \
24868 conftest$ac_exeext conftest.$ac_ext
24869 done
24870fi
24871LIBS=$ac_func_search_save_LIBS
24872fi
24873echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24874echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24875if test "$ac_cv_search_lt_dlopen" != no; then
24876 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24877
24878cat >>confdefs.h <<\_ACEOF
24879#define HAVE_LT_DLOPEN 1
24880_ACEOF
24881
24882else
24883 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24884 not be available" >&5
24885echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24886 not be available" >&2;}
24887fi
24888
24889
John Criswell7a73b802003-06-30 21:59:07 +000024890echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24891echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24892if test "${ac_cv_search_dlopen+set}" = set; then
24893 echo $ECHO_N "(cached) $ECHO_C" >&6
24894else
24895 ac_func_search_save_LIBS=$LIBS
24896ac_cv_search_dlopen=no
24897cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024898/* confdefs.h. */
24899_ACEOF
24900cat confdefs.h >>conftest.$ac_ext
24901cat >>conftest.$ac_ext <<_ACEOF
24902/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024903
24904/* Override any gcc2 internal prototype to avoid an error. */
24905#ifdef __cplusplus
24906extern "C"
24907#endif
24908/* We use char because int might match the return type of a gcc2
24909 builtin and then its argument prototype would still apply. */
24910char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000024911int
24912main ()
24913{
24914dlopen ();
24915 ;
24916 return 0;
24917}
24918_ACEOF
24919rm -f conftest.$ac_objext conftest$ac_exeext
24920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024921 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024922 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024923 grep -v '^ *+' conftest.er1 >conftest.err
24924 rm -f conftest.er1
24925 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024928 { ac_try='test -z "$ac_c_werror_flag"
24929 || test ! -s conftest.err'
24930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24931 (eval $ac_try) 2>&5
24932 ac_status=$?
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); }; } &&
24935 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24937 (eval $ac_try) 2>&5
24938 ac_status=$?
24939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940 (exit $ac_status); }; }; then
24941 ac_cv_search_dlopen="none required"
24942else
24943 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024944sed 's/^/| /' conftest.$ac_ext >&5
24945
John Criswell7a73b802003-06-30 21:59:07 +000024946fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024947rm -f conftest.err conftest.$ac_objext \
24948 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024949if test "$ac_cv_search_dlopen" = no; then
24950 for ac_lib in dl; do
24951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24952 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024953/* confdefs.h. */
24954_ACEOF
24955cat confdefs.h >>conftest.$ac_ext
24956cat >>conftest.$ac_ext <<_ACEOF
24957/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024958
24959/* Override any gcc2 internal prototype to avoid an error. */
24960#ifdef __cplusplus
24961extern "C"
24962#endif
24963/* We use char because int might match the return type of a gcc2
24964 builtin and then its argument prototype would still apply. */
24965char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000024966int
24967main ()
24968{
24969dlopen ();
24970 ;
24971 return 0;
24972}
24973_ACEOF
24974rm -f conftest.$ac_objext conftest$ac_exeext
24975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024976 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024977 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024978 grep -v '^ *+' conftest.er1 >conftest.err
24979 rm -f conftest.er1
24980 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024983 { ac_try='test -z "$ac_c_werror_flag"
24984 || test ! -s conftest.err'
24985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24986 (eval $ac_try) 2>&5
24987 ac_status=$?
24988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989 (exit $ac_status); }; } &&
24990 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24992 (eval $ac_try) 2>&5
24993 ac_status=$?
24994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24995 (exit $ac_status); }; }; then
24996 ac_cv_search_dlopen="-l$ac_lib"
24997break
24998else
24999 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025000sed 's/^/| /' conftest.$ac_ext >&5
25001
John Criswell7a73b802003-06-30 21:59:07 +000025002fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025003rm -f conftest.err conftest.$ac_objext \
25004 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025005 done
25006fi
25007LIBS=$ac_func_search_save_LIBS
25008fi
25009echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25010echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25011if test "$ac_cv_search_dlopen" != no; then
25012 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025013
25014cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025015#define HAVE_DLOPEN 1
25016_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025017
25018else
Brian Gaekec45be042003-10-07 06:01:34 +000025019 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25020echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025021fi
25022
25023
25024echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25025echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25026if test "${ac_cv_search_mallinfo+set}" = set; then
25027 echo $ECHO_N "(cached) $ECHO_C" >&6
25028else
25029 ac_func_search_save_LIBS=$LIBS
25030ac_cv_search_mallinfo=no
25031cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025032/* confdefs.h. */
25033_ACEOF
25034cat confdefs.h >>conftest.$ac_ext
25035cat >>conftest.$ac_ext <<_ACEOF
25036/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025037
25038/* Override any gcc2 internal prototype to avoid an error. */
25039#ifdef __cplusplus
25040extern "C"
25041#endif
25042/* We use char because int might match the return type of a gcc2
25043 builtin and then its argument prototype would still apply. */
25044char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025045int
25046main ()
25047{
25048mallinfo ();
25049 ;
25050 return 0;
25051}
25052_ACEOF
25053rm -f conftest.$ac_objext conftest$ac_exeext
25054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025055 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025056 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025057 grep -v '^ *+' conftest.er1 >conftest.err
25058 rm -f conftest.er1
25059 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025062 { ac_try='test -z "$ac_c_werror_flag"
25063 || test ! -s conftest.err'
25064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25065 (eval $ac_try) 2>&5
25066 ac_status=$?
25067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068 (exit $ac_status); }; } &&
25069 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25071 (eval $ac_try) 2>&5
25072 ac_status=$?
25073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074 (exit $ac_status); }; }; then
25075 ac_cv_search_mallinfo="none required"
25076else
25077 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025078sed 's/^/| /' conftest.$ac_ext >&5
25079
John Criswell7a73b802003-06-30 21:59:07 +000025080fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025081rm -f conftest.err conftest.$ac_objext \
25082 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025083if test "$ac_cv_search_mallinfo" = no; then
25084 for ac_lib in malloc; do
25085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25086 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025087/* confdefs.h. */
25088_ACEOF
25089cat confdefs.h >>conftest.$ac_ext
25090cat >>conftest.$ac_ext <<_ACEOF
25091/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025092
25093/* Override any gcc2 internal prototype to avoid an error. */
25094#ifdef __cplusplus
25095extern "C"
25096#endif
25097/* We use char because int might match the return type of a gcc2
25098 builtin and then its argument prototype would still apply. */
25099char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025100int
25101main ()
25102{
25103mallinfo ();
25104 ;
25105 return 0;
25106}
25107_ACEOF
25108rm -f conftest.$ac_objext conftest$ac_exeext
25109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025110 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025111 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025112 grep -v '^ *+' conftest.er1 >conftest.err
25113 rm -f conftest.er1
25114 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025117 { ac_try='test -z "$ac_c_werror_flag"
25118 || test ! -s conftest.err'
25119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25120 (eval $ac_try) 2>&5
25121 ac_status=$?
25122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25123 (exit $ac_status); }; } &&
25124 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25126 (eval $ac_try) 2>&5
25127 ac_status=$?
25128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129 (exit $ac_status); }; }; then
25130 ac_cv_search_mallinfo="-l$ac_lib"
25131break
25132else
25133 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025134sed 's/^/| /' conftest.$ac_ext >&5
25135
John Criswell7a73b802003-06-30 21:59:07 +000025136fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025137rm -f conftest.err conftest.$ac_objext \
25138 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025139 done
25140fi
25141LIBS=$ac_func_search_save_LIBS
25142fi
25143echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25144echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25145if test "$ac_cv_search_mallinfo" != no; then
25146 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025147
25148cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025149#define HAVE_MALLINFO 1
25150_ACEOF
25151
25152fi
25153
25154
Brian Gaeke5f268f72003-12-05 19:29:01 +000025155echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25156echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25157if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25158 echo $ECHO_N "(cached) $ECHO_C" >&6
25159else
25160 ac_func_search_save_LIBS=$LIBS
25161ac_cv_search_pthread_mutex_lock=no
25162cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025163/* confdefs.h. */
25164_ACEOF
25165cat confdefs.h >>conftest.$ac_ext
25166cat >>conftest.$ac_ext <<_ACEOF
25167/* end confdefs.h. */
25168
25169/* Override any gcc2 internal prototype to avoid an error. */
25170#ifdef __cplusplus
25171extern "C"
25172#endif
25173/* We use char because int might match the return type of a gcc2
25174 builtin and then its argument prototype would still apply. */
25175char pthread_mutex_lock ();
25176int
25177main ()
25178{
25179pthread_mutex_lock ();
25180 ;
25181 return 0;
25182}
25183_ACEOF
25184rm -f conftest.$ac_objext conftest$ac_exeext
25185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025186 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025187 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025188 grep -v '^ *+' conftest.er1 >conftest.err
25189 rm -f conftest.er1
25190 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025193 { ac_try='test -z "$ac_c_werror_flag"
25194 || test ! -s conftest.err'
25195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25196 (eval $ac_try) 2>&5
25197 ac_status=$?
25198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); }; } &&
25200 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25202 (eval $ac_try) 2>&5
25203 ac_status=$?
25204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205 (exit $ac_status); }; }; then
25206 ac_cv_search_pthread_mutex_lock="none required"
25207else
25208 echo "$as_me: failed program was:" >&5
25209sed 's/^/| /' conftest.$ac_ext >&5
25210
25211fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025212rm -f conftest.err conftest.$ac_objext \
25213 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025214if test "$ac_cv_search_pthread_mutex_lock" = no; then
25215 for ac_lib in pthread; do
25216 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25217 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025218/* confdefs.h. */
25219_ACEOF
25220cat confdefs.h >>conftest.$ac_ext
25221cat >>conftest.$ac_ext <<_ACEOF
25222/* end confdefs.h. */
25223
25224/* Override any gcc2 internal prototype to avoid an error. */
25225#ifdef __cplusplus
25226extern "C"
25227#endif
25228/* We use char because int might match the return type of a gcc2
25229 builtin and then its argument prototype would still apply. */
25230char pthread_mutex_lock ();
25231int
25232main ()
25233{
25234pthread_mutex_lock ();
25235 ;
25236 return 0;
25237}
25238_ACEOF
25239rm -f conftest.$ac_objext conftest$ac_exeext
25240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025241 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025242 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025243 grep -v '^ *+' conftest.er1 >conftest.err
25244 rm -f conftest.er1
25245 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025248 { ac_try='test -z "$ac_c_werror_flag"
25249 || test ! -s conftest.err'
25250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25251 (eval $ac_try) 2>&5
25252 ac_status=$?
25253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254 (exit $ac_status); }; } &&
25255 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25257 (eval $ac_try) 2>&5
25258 ac_status=$?
25259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260 (exit $ac_status); }; }; then
25261 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25262break
25263else
25264 echo "$as_me: failed program was:" >&5
25265sed 's/^/| /' conftest.$ac_ext >&5
25266
25267fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025268rm -f conftest.err conftest.$ac_objext \
25269 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025270 done
25271fi
25272LIBS=$ac_func_search_save_LIBS
25273fi
25274echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25275echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25276if test "$ac_cv_search_pthread_mutex_lock" != no; then
25277 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025278
John Criswell40468462004-09-24 21:19:06 +000025279cat >>confdefs.h <<\_ACEOF
25280#define HAVE_PTHREAD_MUTEX_LOCK 1
25281_ACEOF
25282
25283fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025284
Brian Gaekec9a410c2004-02-23 21:30:37 +000025285
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025286
John Criswell7a73b802003-06-30 21:59:07 +000025287echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25288echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25289if test "${ac_cv_header_stdc+set}" = set; then
25290 echo $ECHO_N "(cached) $ECHO_C" >&6
25291else
25292 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025293/* confdefs.h. */
25294_ACEOF
25295cat confdefs.h >>conftest.$ac_ext
25296cat >>conftest.$ac_ext <<_ACEOF
25297/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025298#include <stdlib.h>
25299#include <stdarg.h>
25300#include <string.h>
25301#include <float.h>
25302
John Criswell0c38eaf2003-09-10 15:17:25 +000025303int
25304main ()
25305{
25306
25307 ;
25308 return 0;
25309}
John Criswell7a73b802003-06-30 21:59:07 +000025310_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025311rm -f conftest.$ac_objext
25312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025313 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025314 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025315 grep -v '^ *+' conftest.er1 >conftest.err
25316 rm -f conftest.er1
25317 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025319 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025320 { ac_try='test -z "$ac_c_werror_flag"
25321 || test ! -s conftest.err'
25322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25323 (eval $ac_try) 2>&5
25324 ac_status=$?
25325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326 (exit $ac_status); }; } &&
25327 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000025328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25329 (eval $ac_try) 2>&5
25330 ac_status=$?
25331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000025333 ac_cv_header_stdc=yes
25334else
25335 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025336sed 's/^/| /' conftest.$ac_ext >&5
25337
25338ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000025339fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025341
25342if test $ac_cv_header_stdc = yes; then
25343 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25344 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025345/* confdefs.h. */
25346_ACEOF
25347cat confdefs.h >>conftest.$ac_ext
25348cat >>conftest.$ac_ext <<_ACEOF
25349/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025350#include <string.h>
25351
25352_ACEOF
25353if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025354 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025355 :
25356else
25357 ac_cv_header_stdc=no
25358fi
25359rm -f conftest*
25360
25361fi
25362
25363if test $ac_cv_header_stdc = yes; then
25364 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25365 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025366/* confdefs.h. */
25367_ACEOF
25368cat confdefs.h >>conftest.$ac_ext
25369cat >>conftest.$ac_ext <<_ACEOF
25370/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025371#include <stdlib.h>
25372
25373_ACEOF
25374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025375 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025376 :
25377else
25378 ac_cv_header_stdc=no
25379fi
25380rm -f conftest*
25381
25382fi
25383
25384if test $ac_cv_header_stdc = yes; then
25385 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25386 if test "$cross_compiling" = yes; then
25387 :
25388else
25389 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025390/* confdefs.h. */
25391_ACEOF
25392cat confdefs.h >>conftest.$ac_ext
25393cat >>conftest.$ac_ext <<_ACEOF
25394/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025395#include <ctype.h>
25396#if ((' ' & 0x0FF) == 0x020)
25397# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25398# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25399#else
John Criswell0c38eaf2003-09-10 15:17:25 +000025400# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025401 (('a' <= (c) && (c) <= 'i') \
25402 || ('j' <= (c) && (c) <= 'r') \
25403 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000025404# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25405#endif
25406
25407#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25408int
25409main ()
25410{
25411 int i;
25412 for (i = 0; i < 256; i++)
25413 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000025414 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000025415 exit(2);
25416 exit (0);
25417}
25418_ACEOF
25419rm -f conftest$ac_exeext
25420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25421 (eval $ac_link) 2>&5
25422 ac_status=$?
25423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25426 (eval $ac_try) 2>&5
25427 ac_status=$?
25428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25429 (exit $ac_status); }; }; then
25430 :
25431else
25432 echo "$as_me: program exited with status $ac_status" >&5
25433echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025434sed 's/^/| /' conftest.$ac_ext >&5
25435
John Criswell7a73b802003-06-30 21:59:07 +000025436( exit $ac_status )
25437ac_cv_header_stdc=no
25438fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025439rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025440fi
25441fi
25442fi
25443echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25444echo "${ECHO_T}$ac_cv_header_stdc" >&6
25445if test $ac_cv_header_stdc = yes; then
25446
25447cat >>confdefs.h <<\_ACEOF
25448#define STDC_HEADERS 1
25449_ACEOF
25450
25451fi
25452
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025453
John Criswell7a73b802003-06-30 21:59:07 +000025454echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25455echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25456if test "${ac_cv_header_sys_wait_h+set}" = set; then
25457 echo $ECHO_N "(cached) $ECHO_C" >&6
25458else
25459 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025460/* confdefs.h. */
25461_ACEOF
25462cat confdefs.h >>conftest.$ac_ext
25463cat >>conftest.$ac_ext <<_ACEOF
25464/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025465#include <sys/types.h>
25466#include <sys/wait.h>
25467#ifndef WEXITSTATUS
25468# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25469#endif
25470#ifndef WIFEXITED
25471# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25472#endif
25473
John Criswell7a73b802003-06-30 21:59:07 +000025474int
25475main ()
25476{
25477 int s;
25478 wait (&s);
25479 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25480 ;
25481 return 0;
25482}
25483_ACEOF
25484rm -f conftest.$ac_objext
25485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025486 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025487 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025488 grep -v '^ *+' conftest.er1 >conftest.err
25489 rm -f conftest.er1
25490 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025493 { ac_try='test -z "$ac_c_werror_flag"
25494 || test ! -s conftest.err'
25495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25496 (eval $ac_try) 2>&5
25497 ac_status=$?
25498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25499 (exit $ac_status); }; } &&
25500 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000025501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25502 (eval $ac_try) 2>&5
25503 ac_status=$?
25504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25505 (exit $ac_status); }; }; then
25506 ac_cv_header_sys_wait_h=yes
25507else
25508 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025509sed 's/^/| /' conftest.$ac_ext >&5
25510
John Criswell7a73b802003-06-30 21:59:07 +000025511ac_cv_header_sys_wait_h=no
25512fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025514fi
25515echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25516echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
25517if test $ac_cv_header_sys_wait_h = yes; then
25518
25519cat >>confdefs.h <<\_ACEOF
25520#define HAVE_SYS_WAIT_H 1
25521_ACEOF
25522
25523fi
25524
25525
25526
25527
25528
25529
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025530for 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 +000025531do
25532as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25533if eval "test \"\${$as_ac_Header+set}\" = set"; then
25534 echo "$as_me:$LINENO: checking for $ac_header" >&5
25535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25536if eval "test \"\${$as_ac_Header+set}\" = set"; then
25537 echo $ECHO_N "(cached) $ECHO_C" >&6
25538fi
25539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25541else
25542 # Is the header compilable?
25543echo "$as_me:$LINENO: checking $ac_header usability" >&5
25544echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25545cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025546/* confdefs.h. */
25547_ACEOF
25548cat confdefs.h >>conftest.$ac_ext
25549cat >>conftest.$ac_ext <<_ACEOF
25550/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025551$ac_includes_default
25552#include <$ac_header>
25553_ACEOF
25554rm -f conftest.$ac_objext
25555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025556 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025557 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025558 grep -v '^ *+' conftest.er1 >conftest.err
25559 rm -f conftest.er1
25560 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25562 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025563 { ac_try='test -z "$ac_c_werror_flag"
25564 || test ! -s conftest.err'
25565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25566 (eval $ac_try) 2>&5
25567 ac_status=$?
25568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25569 (exit $ac_status); }; } &&
25570 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000025571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25572 (eval $ac_try) 2>&5
25573 ac_status=$?
25574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25575 (exit $ac_status); }; }; then
25576 ac_header_compiler=yes
25577else
25578 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025579sed 's/^/| /' conftest.$ac_ext >&5
25580
John Criswell7a73b802003-06-30 21:59:07 +000025581ac_header_compiler=no
25582fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025584echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25585echo "${ECHO_T}$ac_header_compiler" >&6
25586
25587# Is the header present?
25588echo "$as_me:$LINENO: checking $ac_header presence" >&5
25589echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25590cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025591/* confdefs.h. */
25592_ACEOF
25593cat confdefs.h >>conftest.$ac_ext
25594cat >>conftest.$ac_ext <<_ACEOF
25595/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025596#include <$ac_header>
25597_ACEOF
25598if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25600 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000025601 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000025602 rm -f conftest.er1
25603 cat conftest.err >&5
25604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605 (exit $ac_status); } >/dev/null; then
25606 if test -s conftest.err; then
25607 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000025608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000025609 else
25610 ac_cpp_err=
25611 fi
25612else
25613 ac_cpp_err=yes
25614fi
25615if test -z "$ac_cpp_err"; then
25616 ac_header_preproc=yes
25617else
25618 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025619sed 's/^/| /' conftest.$ac_ext >&5
25620
John Criswell7a73b802003-06-30 21:59:07 +000025621 ac_header_preproc=no
25622fi
25623rm -f conftest.err conftest.$ac_ext
25624echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25625echo "${ECHO_T}$ac_header_preproc" >&6
25626
25627# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025628case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25629 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000025630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25631echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25633echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25634 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000025635 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000025636 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000025637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25638echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25640echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25641 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25642echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25643 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25644echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000025645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25646echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025647 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25648echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000025649 (
25650 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000025651## ----------------------------------- ##
25652## Report this to llvmbugs@cs.uiuc.edu ##
25653## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000025654_ASBOX
25655 ) |
25656 sed "s/^/$as_me: WARNING: /" >&2
25657 ;;
John Criswell7a73b802003-06-30 21:59:07 +000025658esac
25659echo "$as_me:$LINENO: checking for $ac_header" >&5
25660echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25661if eval "test \"\${$as_ac_Header+set}\" = set"; then
25662 echo $ECHO_N "(cached) $ECHO_C" >&6
25663else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025664 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000025665fi
25666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25667echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25668
25669fi
25670if test `eval echo '${'$as_ac_Header'}'` = yes; then
25671 cat >>confdefs.h <<_ACEOF
25672#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25673_ACEOF
25674
25675fi
25676
25677done
25678
25679
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025680
25681
25682
25683
Reid Spencer2bc7bd52004-11-29 12:29:58 +000025684for ac_header in dlfcn.h execinfo.h fcntl.h limits.h link.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025685do
25686as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25687if eval "test \"\${$as_ac_Header+set}\" = set"; then
25688 echo "$as_me:$LINENO: checking for $ac_header" >&5
25689echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25690if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025691 echo $ECHO_N "(cached) $ECHO_C" >&6
25692fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025693echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25694echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025695else
25696 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025697echo "$as_me:$LINENO: checking $ac_header usability" >&5
25698echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025699cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025700/* confdefs.h. */
25701_ACEOF
25702cat confdefs.h >>conftest.$ac_ext
25703cat >>conftest.$ac_ext <<_ACEOF
25704/* end confdefs.h. */
25705$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025706#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025707_ACEOF
25708rm -f conftest.$ac_objext
25709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025710 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025711 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025712 grep -v '^ *+' conftest.er1 >conftest.err
25713 rm -f conftest.er1
25714 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25716 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025717 { ac_try='test -z "$ac_c_werror_flag"
25718 || test ! -s conftest.err'
25719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25720 (eval $ac_try) 2>&5
25721 ac_status=$?
25722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25723 (exit $ac_status); }; } &&
25724 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25726 (eval $ac_try) 2>&5
25727 ac_status=$?
25728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25729 (exit $ac_status); }; }; then
25730 ac_header_compiler=yes
25731else
25732 echo "$as_me: failed program was:" >&5
25733sed 's/^/| /' conftest.$ac_ext >&5
25734
25735ac_header_compiler=no
25736fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025738echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25739echo "${ECHO_T}$ac_header_compiler" >&6
25740
25741# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025742echo "$as_me:$LINENO: checking $ac_header presence" >&5
25743echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025744cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025745/* confdefs.h. */
25746_ACEOF
25747cat confdefs.h >>conftest.$ac_ext
25748cat >>conftest.$ac_ext <<_ACEOF
25749/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025750#include <$ac_header>
25751_ACEOF
25752if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25754 ac_status=$?
25755 grep -v '^ *+' conftest.er1 >conftest.err
25756 rm -f conftest.er1
25757 cat conftest.err >&5
25758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759 (exit $ac_status); } >/dev/null; then
25760 if test -s conftest.err; then
25761 ac_cpp_err=$ac_c_preproc_warn_flag
25762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25763 else
25764 ac_cpp_err=
25765 fi
25766else
25767 ac_cpp_err=yes
25768fi
25769if test -z "$ac_cpp_err"; then
25770 ac_header_preproc=yes
25771else
25772 echo "$as_me: failed program was:" >&5
25773sed 's/^/| /' conftest.$ac_ext >&5
25774
25775 ac_header_preproc=no
25776fi
25777rm -f conftest.err conftest.$ac_ext
25778echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25779echo "${ECHO_T}$ac_header_preproc" >&6
25780
25781# So? What about this header?
25782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25783 yes:no: )
25784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25785echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25787echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25788 ac_header_preproc=yes
25789 ;;
25790 no:yes:* )
25791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25792echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25794echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25796echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25798echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25802echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25803 (
25804 cat <<\_ASBOX
25805## ----------------------------------- ##
25806## Report this to llvmbugs@cs.uiuc.edu ##
25807## ----------------------------------- ##
25808_ASBOX
25809 ) |
25810 sed "s/^/$as_me: WARNING: /" >&2
25811 ;;
25812esac
25813echo "$as_me:$LINENO: checking for $ac_header" >&5
25814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25815if eval "test \"\${$as_ac_Header+set}\" = set"; then
25816 echo $ECHO_N "(cached) $ECHO_C" >&6
25817else
25818 eval "$as_ac_Header=\$ac_header_preproc"
25819fi
25820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25821echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25822
25823fi
25824if test `eval echo '${'$as_ac_Header'}'` = yes; then
25825 cat >>confdefs.h <<_ACEOF
25826#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25827_ACEOF
25828
25829fi
25830
25831done
25832
25833
25834
25835
Reid Spencer2bc7bd52004-11-29 12:29:58 +000025836for ac_header in malloc.h unistd.h windows.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025837do
25838as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25839if eval "test \"\${$as_ac_Header+set}\" = set"; then
25840 echo "$as_me:$LINENO: checking for $ac_header" >&5
25841echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25842if eval "test \"\${$as_ac_Header+set}\" = set"; then
25843 echo $ECHO_N "(cached) $ECHO_C" >&6
25844fi
25845echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25846echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25847else
25848 # Is the header compilable?
25849echo "$as_me:$LINENO: checking $ac_header usability" >&5
25850echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25851cat >conftest.$ac_ext <<_ACEOF
25852/* confdefs.h. */
25853_ACEOF
25854cat confdefs.h >>conftest.$ac_ext
25855cat >>conftest.$ac_ext <<_ACEOF
25856/* end confdefs.h. */
25857$ac_includes_default
25858#include <$ac_header>
25859_ACEOF
25860rm -f conftest.$ac_objext
25861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25862 (eval $ac_compile) 2>conftest.er1
25863 ac_status=$?
25864 grep -v '^ *+' conftest.er1 >conftest.err
25865 rm -f conftest.er1
25866 cat conftest.err >&5
25867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868 (exit $ac_status); } &&
25869 { ac_try='test -z "$ac_c_werror_flag"
25870 || test ! -s conftest.err'
25871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25872 (eval $ac_try) 2>&5
25873 ac_status=$?
25874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875 (exit $ac_status); }; } &&
25876 { ac_try='test -s conftest.$ac_objext'
25877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25878 (eval $ac_try) 2>&5
25879 ac_status=$?
25880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881 (exit $ac_status); }; }; then
25882 ac_header_compiler=yes
25883else
25884 echo "$as_me: failed program was:" >&5
25885sed 's/^/| /' conftest.$ac_ext >&5
25886
25887ac_header_compiler=no
25888fi
25889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25890echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25891echo "${ECHO_T}$ac_header_compiler" >&6
25892
25893# Is the header present?
25894echo "$as_me:$LINENO: checking $ac_header presence" >&5
25895echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25896cat >conftest.$ac_ext <<_ACEOF
25897/* confdefs.h. */
25898_ACEOF
25899cat confdefs.h >>conftest.$ac_ext
25900cat >>conftest.$ac_ext <<_ACEOF
25901/* end confdefs.h. */
25902#include <$ac_header>
25903_ACEOF
25904if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25906 ac_status=$?
25907 grep -v '^ *+' conftest.er1 >conftest.err
25908 rm -f conftest.er1
25909 cat conftest.err >&5
25910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25911 (exit $ac_status); } >/dev/null; then
25912 if test -s conftest.err; then
25913 ac_cpp_err=$ac_c_preproc_warn_flag
25914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25915 else
25916 ac_cpp_err=
25917 fi
25918else
25919 ac_cpp_err=yes
25920fi
25921if test -z "$ac_cpp_err"; then
25922 ac_header_preproc=yes
25923else
25924 echo "$as_me: failed program was:" >&5
25925sed 's/^/| /' conftest.$ac_ext >&5
25926
25927 ac_header_preproc=no
25928fi
25929rm -f conftest.err conftest.$ac_ext
25930echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25931echo "${ECHO_T}$ac_header_preproc" >&6
25932
25933# So? What about this header?
25934case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25935 yes:no: )
25936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25937echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25939echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25940 ac_header_preproc=yes
25941 ;;
25942 no:yes:* )
25943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25944echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25946echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25948echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25950echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25952echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25954echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25955 (
25956 cat <<\_ASBOX
25957## ----------------------------------- ##
25958## Report this to llvmbugs@cs.uiuc.edu ##
25959## ----------------------------------- ##
25960_ASBOX
25961 ) |
25962 sed "s/^/$as_me: WARNING: /" >&2
25963 ;;
25964esac
25965echo "$as_me:$LINENO: checking for $ac_header" >&5
25966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25967if eval "test \"\${$as_ac_Header+set}\" = set"; then
25968 echo $ECHO_N "(cached) $ECHO_C" >&6
25969else
25970 eval "$as_ac_Header=\$ac_header_preproc"
25971fi
25972echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25973echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25974
25975fi
25976if test `eval echo '${'$as_ac_Header'}'` = yes; then
25977 cat >>confdefs.h <<_ACEOF
25978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25979_ACEOF
25980
25981fi
25982
25983done
25984
25985echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25986echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
25987if test "${ac_cv_header_time+set}" = set; then
25988 echo $ECHO_N "(cached) $ECHO_C" >&6
25989else
25990 cat >conftest.$ac_ext <<_ACEOF
25991/* confdefs.h. */
25992_ACEOF
25993cat confdefs.h >>conftest.$ac_ext
25994cat >>conftest.$ac_ext <<_ACEOF
25995/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025996#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025997#include <sys/time.h>
25998#include <time.h>
25999
26000int
26001main ()
26002{
26003if ((struct tm *) 0)
26004return 0;
26005 ;
26006 return 0;
26007}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026008_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026009rm -f conftest.$ac_objext
26010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26011 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026012 ac_status=$?
26013 grep -v '^ *+' conftest.er1 >conftest.err
26014 rm -f conftest.er1
26015 cat conftest.err >&5
26016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026017 (exit $ac_status); } &&
26018 { ac_try='test -z "$ac_c_werror_flag"
26019 || test ! -s conftest.err'
26020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26021 (eval $ac_try) 2>&5
26022 ac_status=$?
26023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024 (exit $ac_status); }; } &&
26025 { ac_try='test -s conftest.$ac_objext'
26026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26027 (eval $ac_try) 2>&5
26028 ac_status=$?
26029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030 (exit $ac_status); }; }; then
26031 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026032else
26033 echo "$as_me: failed program was:" >&5
26034sed 's/^/| /' conftest.$ac_ext >&5
26035
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026036ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026037fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26039fi
26040echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26041echo "${ECHO_T}$ac_cv_header_time" >&6
26042if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026043
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026044cat >>confdefs.h <<\_ACEOF
26045#define TIME_WITH_SYS_TIME 1
26046_ACEOF
26047
26048fi
26049
26050echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26051echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26052if test "${ac_cv_header_mmap_anon+set}" = set; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026053 echo $ECHO_N "(cached) $ECHO_C" >&6
26054else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026055 ac_ext=c
26056ac_cpp='$CPP $CPPFLAGS'
26057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26059ac_compiler_gnu=$ac_cv_c_compiler_gnu
26060
26061 cat >conftest.$ac_ext <<_ACEOF
26062/* confdefs.h. */
26063_ACEOF
26064cat confdefs.h >>conftest.$ac_ext
26065cat >>conftest.$ac_ext <<_ACEOF
26066/* end confdefs.h. */
26067#include <sys/mman.h>
26068#include <unistd.h>
26069#include <fcntl.h>
26070int
26071main ()
26072{
26073mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26074 ;
26075 return 0;
26076}
26077_ACEOF
26078rm -f conftest.$ac_objext
26079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26080 (eval $ac_compile) 2>conftest.er1
26081 ac_status=$?
26082 grep -v '^ *+' conftest.er1 >conftest.err
26083 rm -f conftest.er1
26084 cat conftest.err >&5
26085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26086 (exit $ac_status); } &&
26087 { ac_try='test -z "$ac_c_werror_flag"
26088 || test ! -s conftest.err'
26089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26090 (eval $ac_try) 2>&5
26091 ac_status=$?
26092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26093 (exit $ac_status); }; } &&
26094 { ac_try='test -s conftest.$ac_objext'
26095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26096 (eval $ac_try) 2>&5
26097 ac_status=$?
26098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099 (exit $ac_status); }; }; then
26100 ac_cv_header_mmap_anon=yes
26101else
26102 echo "$as_me: failed program was:" >&5
26103sed 's/^/| /' conftest.$ac_ext >&5
26104
26105ac_cv_header_mmap_anon=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026106fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26108 ac_ext=c
26109ac_cpp='$CPP $CPPFLAGS'
26110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26112ac_compiler_gnu=$ac_cv_c_compiler_gnu
26113
26114
26115fi
26116echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26117echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26118if test "$ac_cv_header_mmap_anon" = yes; then
26119
26120cat >>confdefs.h <<\_ACEOF
26121#define HAVE_MMAP_ANONYMOUS
26122_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026123
26124fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026125
26126
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026127
26128
26129for ac_header in inttypes.h stdint.h
26130do
26131as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26132if eval "test \"\${$as_ac_Header+set}\" = set"; then
26133 echo "$as_me:$LINENO: checking for $ac_header" >&5
26134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26135if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026136 echo $ECHO_N "(cached) $ECHO_C" >&6
26137fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026138echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26139echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026140else
26141 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026142echo "$as_me:$LINENO: checking $ac_header usability" >&5
26143echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026144cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026145/* confdefs.h. */
26146_ACEOF
26147cat confdefs.h >>conftest.$ac_ext
26148cat >>conftest.$ac_ext <<_ACEOF
26149/* end confdefs.h. */
26150$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026151#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026152_ACEOF
26153rm -f conftest.$ac_objext
26154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026155 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026156 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026157 grep -v '^ *+' conftest.er1 >conftest.err
26158 rm -f conftest.er1
26159 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26161 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026162 { ac_try='test -z "$ac_c_werror_flag"
26163 || test ! -s conftest.err'
26164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26165 (eval $ac_try) 2>&5
26166 ac_status=$?
26167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26168 (exit $ac_status); }; } &&
26169 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26171 (eval $ac_try) 2>&5
26172 ac_status=$?
26173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26174 (exit $ac_status); }; }; then
26175 ac_header_compiler=yes
26176else
26177 echo "$as_me: failed program was:" >&5
26178sed 's/^/| /' conftest.$ac_ext >&5
26179
26180ac_header_compiler=no
26181fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026183echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26184echo "${ECHO_T}$ac_header_compiler" >&6
26185
26186# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026187echo "$as_me:$LINENO: checking $ac_header presence" >&5
26188echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026189cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026190/* confdefs.h. */
26191_ACEOF
26192cat confdefs.h >>conftest.$ac_ext
26193cat >>conftest.$ac_ext <<_ACEOF
26194/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026195#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026196_ACEOF
26197if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26199 ac_status=$?
26200 grep -v '^ *+' conftest.er1 >conftest.err
26201 rm -f conftest.er1
26202 cat conftest.err >&5
26203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26204 (exit $ac_status); } >/dev/null; then
26205 if test -s conftest.err; then
26206 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026208 else
26209 ac_cpp_err=
26210 fi
26211else
26212 ac_cpp_err=yes
26213fi
26214if test -z "$ac_cpp_err"; then
26215 ac_header_preproc=yes
26216else
26217 echo "$as_me: failed program was:" >&5
26218sed 's/^/| /' conftest.$ac_ext >&5
26219
26220 ac_header_preproc=no
26221fi
26222rm -f conftest.err conftest.$ac_ext
26223echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26224echo "${ECHO_T}$ac_header_preproc" >&6
26225
26226# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026227case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26228 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26230echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26232echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026233 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026234 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026235 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26237echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26239echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26241echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26243echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26245echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26247echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026248 (
26249 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026250## ----------------------------------- ##
26251## Report this to llvmbugs@cs.uiuc.edu ##
26252## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026253_ASBOX
26254 ) |
26255 sed "s/^/$as_me: WARNING: /" >&2
26256 ;;
26257esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026258echo "$as_me:$LINENO: checking for $ac_header" >&5
26259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26260if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026261 echo $ECHO_N "(cached) $ECHO_C" >&6
26262else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026263 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026264fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26266echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026267
26268fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026269if test `eval echo '${'$as_ac_Header'}'` = yes; then
26270 cat >>confdefs.h <<_ACEOF
26271#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026272_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026273
26274fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026275
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026276done
26277
John Criswell7ed43ad2004-07-19 16:12:29 +000026278
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026279
John Criswell7a73b802003-06-30 21:59:07 +000026280echo "$as_me:$LINENO: checking for pid_t" >&5
26281echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26282if test "${ac_cv_type_pid_t+set}" = set; then
26283 echo $ECHO_N "(cached) $ECHO_C" >&6
26284else
26285 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026286/* confdefs.h. */
26287_ACEOF
26288cat confdefs.h >>conftest.$ac_ext
26289cat >>conftest.$ac_ext <<_ACEOF
26290/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026291$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026292int
26293main ()
26294{
26295if ((pid_t *) 0)
26296 return 0;
26297if (sizeof (pid_t))
26298 return 0;
26299 ;
26300 return 0;
26301}
26302_ACEOF
26303rm -f conftest.$ac_objext
26304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026305 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026306 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026307 grep -v '^ *+' conftest.er1 >conftest.err
26308 rm -f conftest.er1
26309 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026312 { ac_try='test -z "$ac_c_werror_flag"
26313 || test ! -s conftest.err'
26314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26315 (eval $ac_try) 2>&5
26316 ac_status=$?
26317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26318 (exit $ac_status); }; } &&
26319 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26321 (eval $ac_try) 2>&5
26322 ac_status=$?
26323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324 (exit $ac_status); }; }; then
26325 ac_cv_type_pid_t=yes
26326else
26327 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026328sed 's/^/| /' conftest.$ac_ext >&5
26329
John Criswell7a73b802003-06-30 21:59:07 +000026330ac_cv_type_pid_t=no
26331fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026333fi
26334echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26335echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26336if test $ac_cv_type_pid_t = yes; then
26337 :
26338else
26339
26340cat >>confdefs.h <<_ACEOF
26341#define pid_t int
26342_ACEOF
26343
26344fi
26345
26346echo "$as_me:$LINENO: checking for size_t" >&5
26347echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26348if test "${ac_cv_type_size_t+set}" = set; then
26349 echo $ECHO_N "(cached) $ECHO_C" >&6
26350else
26351 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026352/* confdefs.h. */
26353_ACEOF
26354cat confdefs.h >>conftest.$ac_ext
26355cat >>conftest.$ac_ext <<_ACEOF
26356/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026357$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026358int
26359main ()
26360{
26361if ((size_t *) 0)
26362 return 0;
26363if (sizeof (size_t))
26364 return 0;
26365 ;
26366 return 0;
26367}
26368_ACEOF
26369rm -f conftest.$ac_objext
26370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026371 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026372 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026373 grep -v '^ *+' conftest.er1 >conftest.err
26374 rm -f conftest.er1
26375 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26377 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026378 { ac_try='test -z "$ac_c_werror_flag"
26379 || test ! -s conftest.err'
26380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26381 (eval $ac_try) 2>&5
26382 ac_status=$?
26383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26384 (exit $ac_status); }; } &&
26385 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26387 (eval $ac_try) 2>&5
26388 ac_status=$?
26389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390 (exit $ac_status); }; }; then
26391 ac_cv_type_size_t=yes
26392else
26393 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026394sed 's/^/| /' conftest.$ac_ext >&5
26395
John Criswell7a73b802003-06-30 21:59:07 +000026396ac_cv_type_size_t=no
26397fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026399fi
26400echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26401echo "${ECHO_T}$ac_cv_type_size_t" >&6
26402if test $ac_cv_type_size_t = yes; then
26403 :
26404else
26405
26406cat >>confdefs.h <<_ACEOF
26407#define size_t unsigned
26408_ACEOF
26409
26410fi
26411
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026412echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26413echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26414if test "${ac_cv_type_signal+set}" = set; then
26415 echo $ECHO_N "(cached) $ECHO_C" >&6
26416else
26417 cat >conftest.$ac_ext <<_ACEOF
26418/* confdefs.h. */
26419_ACEOF
26420cat confdefs.h >>conftest.$ac_ext
26421cat >>conftest.$ac_ext <<_ACEOF
26422/* end confdefs.h. */
26423#include <sys/types.h>
26424#include <signal.h>
26425#ifdef signal
26426# undef signal
26427#endif
26428#ifdef __cplusplus
26429extern "C" void (*signal (int, void (*)(int)))(int);
26430#else
26431void (*signal ()) ();
26432#endif
26433
26434int
26435main ()
26436{
26437int i;
26438 ;
26439 return 0;
26440}
26441_ACEOF
26442rm -f conftest.$ac_objext
26443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26444 (eval $ac_compile) 2>conftest.er1
26445 ac_status=$?
26446 grep -v '^ *+' conftest.er1 >conftest.err
26447 rm -f conftest.er1
26448 cat conftest.err >&5
26449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26450 (exit $ac_status); } &&
26451 { ac_try='test -z "$ac_c_werror_flag"
26452 || test ! -s conftest.err'
26453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26454 (eval $ac_try) 2>&5
26455 ac_status=$?
26456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26457 (exit $ac_status); }; } &&
26458 { ac_try='test -s conftest.$ac_objext'
26459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26460 (eval $ac_try) 2>&5
26461 ac_status=$?
26462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463 (exit $ac_status); }; }; then
26464 ac_cv_type_signal=void
26465else
26466 echo "$as_me: failed program was:" >&5
26467sed 's/^/| /' conftest.$ac_ext >&5
26468
26469ac_cv_type_signal=int
26470fi
26471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26472fi
26473echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26474echo "${ECHO_T}$ac_cv_type_signal" >&6
26475
26476cat >>confdefs.h <<_ACEOF
26477#define RETSIGTYPE $ac_cv_type_signal
26478_ACEOF
26479
26480
26481echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26482echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26483if test "${ac_cv_struct_tm+set}" = set; then
26484 echo $ECHO_N "(cached) $ECHO_C" >&6
26485else
26486 cat >conftest.$ac_ext <<_ACEOF
26487/* confdefs.h. */
26488_ACEOF
26489cat confdefs.h >>conftest.$ac_ext
26490cat >>conftest.$ac_ext <<_ACEOF
26491/* end confdefs.h. */
26492#include <sys/types.h>
26493#include <time.h>
26494
26495int
26496main ()
26497{
26498struct tm *tp; tp->tm_sec;
26499 ;
26500 return 0;
26501}
26502_ACEOF
26503rm -f conftest.$ac_objext
26504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26505 (eval $ac_compile) 2>conftest.er1
26506 ac_status=$?
26507 grep -v '^ *+' conftest.er1 >conftest.err
26508 rm -f conftest.er1
26509 cat conftest.err >&5
26510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26511 (exit $ac_status); } &&
26512 { ac_try='test -z "$ac_c_werror_flag"
26513 || test ! -s conftest.err'
26514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26515 (eval $ac_try) 2>&5
26516 ac_status=$?
26517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26518 (exit $ac_status); }; } &&
26519 { ac_try='test -s conftest.$ac_objext'
26520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26521 (eval $ac_try) 2>&5
26522 ac_status=$?
26523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26524 (exit $ac_status); }; }; then
26525 ac_cv_struct_tm=time.h
26526else
26527 echo "$as_me: failed program was:" >&5
26528sed 's/^/| /' conftest.$ac_ext >&5
26529
26530ac_cv_struct_tm=sys/time.h
26531fi
26532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26533fi
26534echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26535echo "${ECHO_T}$ac_cv_struct_tm" >&6
26536if test $ac_cv_struct_tm = sys/time.h; then
26537
26538cat >>confdefs.h <<\_ACEOF
26539#define TM_IN_SYS_TIME 1
26540_ACEOF
26541
26542fi
26543
John Criswell7a73b802003-06-30 21:59:07 +000026544echo "$as_me:$LINENO: checking for int64_t" >&5
26545echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26546if test "${ac_cv_type_int64_t+set}" = set; then
26547 echo $ECHO_N "(cached) $ECHO_C" >&6
26548else
26549 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026550/* confdefs.h. */
26551_ACEOF
26552cat confdefs.h >>conftest.$ac_ext
26553cat >>conftest.$ac_ext <<_ACEOF
26554/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026555$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026556int
26557main ()
26558{
26559if ((int64_t *) 0)
26560 return 0;
26561if (sizeof (int64_t))
26562 return 0;
26563 ;
26564 return 0;
26565}
26566_ACEOF
26567rm -f conftest.$ac_objext
26568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026569 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026570 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026571 grep -v '^ *+' conftest.er1 >conftest.err
26572 rm -f conftest.er1
26573 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026576 { ac_try='test -z "$ac_c_werror_flag"
26577 || test ! -s conftest.err'
26578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26579 (eval $ac_try) 2>&5
26580 ac_status=$?
26581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26582 (exit $ac_status); }; } &&
26583 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26585 (eval $ac_try) 2>&5
26586 ac_status=$?
26587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26588 (exit $ac_status); }; }; then
26589 ac_cv_type_int64_t=yes
26590else
26591 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026592sed 's/^/| /' conftest.$ac_ext >&5
26593
John Criswell7a73b802003-06-30 21:59:07 +000026594ac_cv_type_int64_t=no
26595fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026597fi
26598echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26599echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26600if test $ac_cv_type_int64_t = yes; then
26601
26602cat >>confdefs.h <<_ACEOF
26603#define HAVE_INT64_T 1
26604_ACEOF
26605
26606
26607else
26608 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26609echo "$as_me: error: Type int64_t required but not found" >&2;}
26610 { (exit 1); exit 1; }; }
26611fi
26612
26613echo "$as_me:$LINENO: checking for uint64_t" >&5
26614echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26615if test "${ac_cv_type_uint64_t+set}" = set; then
26616 echo $ECHO_N "(cached) $ECHO_C" >&6
26617else
26618 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026619/* confdefs.h. */
26620_ACEOF
26621cat confdefs.h >>conftest.$ac_ext
26622cat >>conftest.$ac_ext <<_ACEOF
26623/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026624$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026625int
26626main ()
26627{
26628if ((uint64_t *) 0)
26629 return 0;
26630if (sizeof (uint64_t))
26631 return 0;
26632 ;
26633 return 0;
26634}
26635_ACEOF
26636rm -f conftest.$ac_objext
26637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026638 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026639 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026640 grep -v '^ *+' conftest.er1 >conftest.err
26641 rm -f conftest.er1
26642 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026645 { ac_try='test -z "$ac_c_werror_flag"
26646 || test ! -s conftest.err'
26647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26648 (eval $ac_try) 2>&5
26649 ac_status=$?
26650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651 (exit $ac_status); }; } &&
26652 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26654 (eval $ac_try) 2>&5
26655 ac_status=$?
26656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26657 (exit $ac_status); }; }; then
26658 ac_cv_type_uint64_t=yes
26659else
26660 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026661sed 's/^/| /' conftest.$ac_ext >&5
26662
John Criswell7a73b802003-06-30 21:59:07 +000026663ac_cv_type_uint64_t=no
26664fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026666fi
26667echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26668echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26669if test $ac_cv_type_uint64_t = yes; then
26670
26671cat >>confdefs.h <<_ACEOF
26672#define HAVE_UINT64_T 1
26673_ACEOF
26674
26675
26676else
Misha Brukmanceca9042004-09-02 23:02:30 +000026677 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000026678echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26679if test "${ac_cv_type_u_int64_t+set}" = set; then
26680 echo $ECHO_N "(cached) $ECHO_C" >&6
26681else
26682 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000026683/* confdefs.h. */
26684_ACEOF
26685cat confdefs.h >>conftest.$ac_ext
26686cat >>conftest.$ac_ext <<_ACEOF
26687/* end confdefs.h. */
26688$ac_includes_default
26689int
26690main ()
26691{
26692if ((u_int64_t *) 0)
26693 return 0;
26694if (sizeof (u_int64_t))
26695 return 0;
26696 ;
26697 return 0;
26698}
26699_ACEOF
26700rm -f conftest.$ac_objext
26701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026702 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000026703 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026704 grep -v '^ *+' conftest.er1 >conftest.err
26705 rm -f conftest.er1
26706 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000026707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26708 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026709 { ac_try='test -z "$ac_c_werror_flag"
26710 || test ! -s conftest.err'
26711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26712 (eval $ac_try) 2>&5
26713 ac_status=$?
26714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715 (exit $ac_status); }; } &&
26716 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000026717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26718 (eval $ac_try) 2>&5
26719 ac_status=$?
26720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26721 (exit $ac_status); }; }; then
26722 ac_cv_type_u_int64_t=yes
26723else
26724 echo "$as_me: failed program was:" >&5
26725sed 's/^/| /' conftest.$ac_ext >&5
26726
26727ac_cv_type_u_int64_t=no
26728fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000026730fi
26731echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
26732echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
26733if test $ac_cv_type_u_int64_t = yes; then
26734
26735cat >>confdefs.h <<_ACEOF
26736#define HAVE_U_INT64_T 1
26737_ACEOF
26738
26739
Misha Brukmanceca9042004-09-02 23:02:30 +000026740else
26741 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
26742echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
26743 { (exit 1); exit 1; }; }
26744fi
26745
John Criswell679ff312004-09-02 18:44:44 +000026746fi
26747
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026748
26749
26750
26751
26752
26753
26754
26755
Reid Spencerab5eaea2004-12-20 00:59:04 +000026756for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
26757do
26758as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26759echo "$as_me:$LINENO: checking for $ac_func" >&5
26760echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26761if eval "test \"\${$as_ac_var+set}\" = set"; then
26762 echo $ECHO_N "(cached) $ECHO_C" >&6
26763else
26764 cat >conftest.$ac_ext <<_ACEOF
26765/* confdefs.h. */
26766_ACEOF
26767cat confdefs.h >>conftest.$ac_ext
26768cat >>conftest.$ac_ext <<_ACEOF
26769/* end confdefs.h. */
26770/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26772#define $ac_func innocuous_$ac_func
Reid Spencerf9960f72004-12-15 01:41:56 +000026773
Reid Spencerab5eaea2004-12-20 00:59:04 +000026774/* System header to define __stub macros and hopefully few prototypes,
26775 which can conflict with char $ac_func (); below.
26776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26777 <limits.h> exists even on freestanding compilers. */
26778
26779#ifdef __STDC__
26780# include <limits.h>
26781#else
26782# include <assert.h>
26783#endif
26784
26785#undef $ac_func
26786
26787/* Override any gcc2 internal prototype to avoid an error. */
26788#ifdef __cplusplus
26789extern "C"
26790{
26791#endif
26792/* We use char because int might match the return type of a gcc2
26793 builtin and then its argument prototype would still apply. */
26794char $ac_func ();
26795/* The GNU C library defines this for functions which it implements
26796 to always fail with ENOSYS. Some functions are actually named
26797 something starting with __ and the normal name is an alias. */
26798#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26799choke me
26800#else
26801char (*f) () = $ac_func;
26802#endif
26803#ifdef __cplusplus
26804}
26805#endif
26806
26807int
26808main ()
26809{
26810return f != $ac_func;
26811 ;
26812 return 0;
26813}
26814_ACEOF
26815rm -f conftest.$ac_objext conftest$ac_exeext
26816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26817 (eval $ac_link) 2>conftest.er1
26818 ac_status=$?
26819 grep -v '^ *+' conftest.er1 >conftest.err
26820 rm -f conftest.er1
26821 cat conftest.err >&5
26822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); } &&
26824 { ac_try='test -z "$ac_c_werror_flag"
26825 || test ! -s conftest.err'
26826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26827 (eval $ac_try) 2>&5
26828 ac_status=$?
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); }; } &&
26831 { ac_try='test -s conftest$ac_exeext'
26832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26833 (eval $ac_try) 2>&5
26834 ac_status=$?
26835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836 (exit $ac_status); }; }; then
26837 eval "$as_ac_var=yes"
26838else
26839 echo "$as_me: failed program was:" >&5
26840sed 's/^/| /' conftest.$ac_ext >&5
26841
26842eval "$as_ac_var=no"
26843fi
26844rm -f conftest.err conftest.$ac_objext \
26845 conftest$ac_exeext conftest.$ac_ext
26846fi
26847echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26848echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26849if test `eval echo '${'$as_ac_var'}'` = yes; then
26850 cat >>confdefs.h <<_ACEOF
26851#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26852_ACEOF
26853
26854fi
26855done
26856
26857
26858
26859
26860for ac_func in mkdtemp mkstemp mktemp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026861do
26862as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26863echo "$as_me:$LINENO: checking for $ac_func" >&5
26864echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26865if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000026866 echo $ECHO_N "(cached) $ECHO_C" >&6
26867else
26868 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026869/* confdefs.h. */
26870_ACEOF
26871cat confdefs.h >>conftest.$ac_ext
26872cat >>conftest.$ac_ext <<_ACEOF
26873/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026874/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26876#define $ac_func innocuous_$ac_func
26877
26878/* System header to define __stub macros and hopefully few prototypes,
26879 which can conflict with char $ac_func (); below.
26880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26881 <limits.h> exists even on freestanding compilers. */
26882
26883#ifdef __STDC__
26884# include <limits.h>
26885#else
26886# include <assert.h>
26887#endif
26888
26889#undef $ac_func
26890
26891/* Override any gcc2 internal prototype to avoid an error. */
26892#ifdef __cplusplus
26893extern "C"
26894{
26895#endif
26896/* We use char because int might match the return type of a gcc2
26897 builtin and then its argument prototype would still apply. */
26898char $ac_func ();
26899/* The GNU C library defines this for functions which it implements
26900 to always fail with ENOSYS. Some functions are actually named
26901 something starting with __ and the normal name is an alias. */
26902#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26903choke me
26904#else
26905char (*f) () = $ac_func;
26906#endif
26907#ifdef __cplusplus
26908}
26909#endif
John Criswell7a73b802003-06-30 21:59:07 +000026910
John Criswell7a73b802003-06-30 21:59:07 +000026911int
26912main ()
26913{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026914return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000026915 ;
26916 return 0;
26917}
26918_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026919rm -f conftest.$ac_objext conftest$ac_exeext
26920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26921 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026922 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026923 grep -v '^ *+' conftest.er1 >conftest.err
26924 rm -f conftest.er1
26925 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026928 { ac_try='test -z "$ac_c_werror_flag"
26929 || test ! -s conftest.err'
26930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26931 (eval $ac_try) 2>&5
26932 ac_status=$?
26933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026935 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000026936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26937 (eval $ac_try) 2>&5
26938 ac_status=$?
26939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026941 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000026942else
26943 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026944sed 's/^/| /' conftest.$ac_ext >&5
26945
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026946eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000026947fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026948rm -f conftest.err conftest.$ac_objext \
26949 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026950fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026951echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26952echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26953if test `eval echo '${'$as_ac_var'}'` = yes; then
26954 cat >>confdefs.h <<_ACEOF
26955#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000026956_ACEOF
26957
26958fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026959done
John Criswell7a73b802003-06-30 21:59:07 +000026960
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026961
26962
26963
Reid Spencer6af3d262004-12-15 04:01:48 +000026964
26965
Reid Spencerab5eaea2004-12-20 00:59:04 +000026966for ac_func in realpath strdup strtoq strtoll sysconf
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026967do
26968as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26969echo "$as_me:$LINENO: checking for $ac_func" >&5
26970echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26971if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000026972 echo $ECHO_N "(cached) $ECHO_C" >&6
26973else
26974 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026975/* confdefs.h. */
26976_ACEOF
26977cat confdefs.h >>conftest.$ac_ext
26978cat >>conftest.$ac_ext <<_ACEOF
26979/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026980/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26982#define $ac_func innocuous_$ac_func
26983
26984/* System header to define __stub macros and hopefully few prototypes,
26985 which can conflict with char $ac_func (); below.
26986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26987 <limits.h> exists even on freestanding compilers. */
26988
26989#ifdef __STDC__
26990# include <limits.h>
26991#else
26992# include <assert.h>
26993#endif
26994
26995#undef $ac_func
26996
26997/* Override any gcc2 internal prototype to avoid an error. */
26998#ifdef __cplusplus
26999extern "C"
27000{
27001#endif
27002/* We use char because int might match the return type of a gcc2
27003 builtin and then its argument prototype would still apply. */
27004char $ac_func ();
27005/* The GNU C library defines this for functions which it implements
27006 to always fail with ENOSYS. Some functions are actually named
27007 something starting with __ and the normal name is an alias. */
27008#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27009choke me
27010#else
27011char (*f) () = $ac_func;
27012#endif
27013#ifdef __cplusplus
27014}
27015#endif
John Criswell7a73b802003-06-30 21:59:07 +000027016
John Criswell7a73b802003-06-30 21:59:07 +000027017int
27018main ()
27019{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027020return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027021 ;
27022 return 0;
27023}
27024_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027025rm -f conftest.$ac_objext conftest$ac_exeext
27026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27027 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027028 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027029 grep -v '^ *+' conftest.er1 >conftest.err
27030 rm -f conftest.er1
27031 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027034 { ac_try='test -z "$ac_c_werror_flag"
27035 || test ! -s conftest.err'
27036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27037 (eval $ac_try) 2>&5
27038 ac_status=$?
27039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027041 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27043 (eval $ac_try) 2>&5
27044 ac_status=$?
27045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027047 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027048else
27049 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027050sed 's/^/| /' conftest.$ac_ext >&5
27051
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027052eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027053fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027054rm -f conftest.err conftest.$ac_objext \
27055 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027056fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27058echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27059if test `eval echo '${'$as_ac_var'}'` = yes; then
27060 cat >>confdefs.h <<_ACEOF
27061#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027062_ACEOF
27063
27064fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027065done
John Criswell7a73b802003-06-30 21:59:07 +000027066
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027067echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27068echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000027069if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027070 echo $ECHO_N "(cached) $ECHO_C" >&6
27071else
Reid Spencer2706f8c2004-09-19 23:53:36 +000027072 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027073ac_cpp='$CPP $CPPFLAGS'
27074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27076ac_compiler_gnu=$ac_cv_c_compiler_gnu
27077
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027078 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027079 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027080else
27081 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000027082
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027083 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000027084_ACEOF
27085cat confdefs.h >>conftest.$ac_ext
27086cat >>conftest.$ac_ext <<_ACEOF
27087/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000027088
John Criswella0137d32003-10-13 16:22:01 +000027089#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000027090#include <stdlib.h>
27091
John Criswella0137d32003-10-13 16:22:01 +000027092int
27093main ()
27094{
27095
Reid Spencer2706f8c2004-09-19 23:53:36 +000027096volatile double A, B;
27097char Buffer[100];
27098A = 1;
27099A /= 10.0;
27100sprintf(Buffer, "%a", A);
27101B = atof(Buffer);
27102if (A != B)
27103 return (1);
27104if (A != 0x1.999999999999ap-4)
27105 return (1);
27106return (0);
John Criswella0137d32003-10-13 16:22:01 +000027107 ;
27108 return 0;
27109}
27110_ACEOF
27111rm -f conftest$ac_exeext
27112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27113 (eval $ac_link) 2>&5
27114 ac_status=$?
27115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27118 (eval $ac_try) 2>&5
27119 ac_status=$?
27120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27121 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027122 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000027123else
27124 echo "$as_me: program exited with status $ac_status" >&5
27125echo "$as_me: failed program was:" >&5
27126sed 's/^/| /' conftest.$ac_ext >&5
27127
27128( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000027129llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027130fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027131rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000027132fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027133 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027134ac_cpp='$CPP $CPPFLAGS'
27135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27137ac_compiler_gnu=$ac_cv_c_compiler_gnu
27138
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027139fi
Reid Spencer3be58f92004-11-27 22:01:43 +000027140echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27141echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27142 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000027143
27144cat >>confdefs.h <<\_ACEOF
27145#define HAVE_PRINTF_A 1
27146_ACEOF
27147
Reid Spencer2706f8c2004-09-19 23:53:36 +000027148 fi
John Criswella0137d32003-10-13 16:22:01 +000027149
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027150# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27151# for constant arguments. Useless!
27152echo "$as_me:$LINENO: checking for working alloca.h" >&5
27153echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27154if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000027155 echo $ECHO_N "(cached) $ECHO_C" >&6
27156else
John Criswell0021c312004-02-13 21:57:29 +000027157 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000027158/* confdefs.h. */
27159_ACEOF
27160cat confdefs.h >>conftest.$ac_ext
27161cat >>conftest.$ac_ext <<_ACEOF
27162/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027163#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000027164int
27165main ()
27166{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027167char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000027168 ;
27169 return 0;
27170}
27171_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027172rm -f conftest.$ac_objext conftest$ac_exeext
27173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27174 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000027175 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027176 grep -v '^ *+' conftest.er1 >conftest.err
27177 rm -f conftest.er1
27178 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000027179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27180 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027181 { ac_try='test -z "$ac_c_werror_flag"
27182 || test ! -s conftest.err'
27183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27184 (eval $ac_try) 2>&5
27185 ac_status=$?
27186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27187 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027188 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000027189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27190 (eval $ac_try) 2>&5
27191 ac_status=$?
27192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027194 ac_cv_working_alloca_h=yes
27195else
27196 echo "$as_me: failed program was:" >&5
27197sed 's/^/| /' conftest.$ac_ext >&5
27198
27199ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000027200fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027201rm -f conftest.err conftest.$ac_objext \
27202 conftest$ac_exeext conftest.$ac_ext
27203fi
27204echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27205echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27206if test $ac_cv_working_alloca_h = yes; then
27207
27208cat >>confdefs.h <<\_ACEOF
27209#define HAVE_ALLOCA_H 1
27210_ACEOF
27211
27212fi
27213
27214echo "$as_me:$LINENO: checking for alloca" >&5
27215echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27216if test "${ac_cv_func_alloca_works+set}" = set; then
27217 echo $ECHO_N "(cached) $ECHO_C" >&6
27218else
27219 cat >conftest.$ac_ext <<_ACEOF
27220/* confdefs.h. */
27221_ACEOF
27222cat confdefs.h >>conftest.$ac_ext
27223cat >>conftest.$ac_ext <<_ACEOF
27224/* end confdefs.h. */
27225#ifdef __GNUC__
27226# define alloca __builtin_alloca
27227#else
27228# ifdef _MSC_VER
27229# include <malloc.h>
27230# define alloca _alloca
27231# else
27232# if HAVE_ALLOCA_H
27233# include <alloca.h>
27234# else
27235# ifdef _AIX
27236 #pragma alloca
27237# else
27238# ifndef alloca /* predefined by HP cc +Olibcalls */
27239char *alloca ();
27240# endif
27241# endif
27242# endif
27243# endif
27244#endif
27245
27246int
27247main ()
27248{
27249char *p = (char *) alloca (1);
27250 ;
27251 return 0;
27252}
27253_ACEOF
27254rm -f conftest.$ac_objext conftest$ac_exeext
27255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27256 (eval $ac_link) 2>conftest.er1
27257 ac_status=$?
27258 grep -v '^ *+' conftest.er1 >conftest.err
27259 rm -f conftest.er1
27260 cat conftest.err >&5
27261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27262 (exit $ac_status); } &&
27263 { ac_try='test -z "$ac_c_werror_flag"
27264 || test ! -s conftest.err'
27265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27266 (eval $ac_try) 2>&5
27267 ac_status=$?
27268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269 (exit $ac_status); }; } &&
27270 { ac_try='test -s conftest$ac_exeext'
27271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27272 (eval $ac_try) 2>&5
27273 ac_status=$?
27274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275 (exit $ac_status); }; }; then
27276 ac_cv_func_alloca_works=yes
27277else
27278 echo "$as_me: failed program was:" >&5
27279sed 's/^/| /' conftest.$ac_ext >&5
27280
27281ac_cv_func_alloca_works=no
27282fi
27283rm -f conftest.err conftest.$ac_objext \
27284 conftest$ac_exeext conftest.$ac_ext
27285fi
27286echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27287echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27288
27289if test $ac_cv_func_alloca_works = yes; then
27290
27291cat >>confdefs.h <<\_ACEOF
27292#define HAVE_ALLOCA 1
27293_ACEOF
27294
27295else
27296 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27297# that cause trouble. Some versions do not even contain alloca or
27298# contain a buggy version. If you still want to use their alloca,
27299# use ar to extract alloca.o from them instead of compiling alloca.c.
27300
27301ALLOCA=alloca.$ac_objext
27302
27303cat >>confdefs.h <<\_ACEOF
27304#define C_ALLOCA 1
27305_ACEOF
27306
27307
27308echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27309echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27310if test "${ac_cv_os_cray+set}" = set; then
27311 echo $ECHO_N "(cached) $ECHO_C" >&6
27312else
27313 cat >conftest.$ac_ext <<_ACEOF
27314/* confdefs.h. */
27315_ACEOF
27316cat confdefs.h >>conftest.$ac_ext
27317cat >>conftest.$ac_ext <<_ACEOF
27318/* end confdefs.h. */
27319#if defined(CRAY) && ! defined(CRAY2)
27320webecray
27321#else
27322wenotbecray
27323#endif
27324
27325_ACEOF
27326if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27327 $EGREP "webecray" >/dev/null 2>&1; then
27328 ac_cv_os_cray=yes
27329else
27330 ac_cv_os_cray=no
27331fi
27332rm -f conftest*
27333
27334fi
27335echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27336echo "${ECHO_T}$ac_cv_os_cray" >&6
27337if test $ac_cv_os_cray = yes; then
27338 for ac_func in _getb67 GETB67 getb67; do
27339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27340echo "$as_me:$LINENO: checking for $ac_func" >&5
27341echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27342if eval "test \"\${$as_ac_var+set}\" = set"; then
27343 echo $ECHO_N "(cached) $ECHO_C" >&6
27344else
27345 cat >conftest.$ac_ext <<_ACEOF
27346/* confdefs.h. */
27347_ACEOF
27348cat confdefs.h >>conftest.$ac_ext
27349cat >>conftest.$ac_ext <<_ACEOF
27350/* end confdefs.h. */
27351/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27353#define $ac_func innocuous_$ac_func
27354
27355/* System header to define __stub macros and hopefully few prototypes,
27356 which can conflict with char $ac_func (); below.
27357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27358 <limits.h> exists even on freestanding compilers. */
27359
27360#ifdef __STDC__
27361# include <limits.h>
27362#else
27363# include <assert.h>
27364#endif
27365
27366#undef $ac_func
27367
27368/* Override any gcc2 internal prototype to avoid an error. */
27369#ifdef __cplusplus
27370extern "C"
27371{
27372#endif
27373/* We use char because int might match the return type of a gcc2
27374 builtin and then its argument prototype would still apply. */
27375char $ac_func ();
27376/* The GNU C library defines this for functions which it implements
27377 to always fail with ENOSYS. Some functions are actually named
27378 something starting with __ and the normal name is an alias. */
27379#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27380choke me
27381#else
27382char (*f) () = $ac_func;
27383#endif
27384#ifdef __cplusplus
27385}
27386#endif
27387
27388int
27389main ()
27390{
27391return f != $ac_func;
27392 ;
27393 return 0;
27394}
27395_ACEOF
27396rm -f conftest.$ac_objext conftest$ac_exeext
27397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27398 (eval $ac_link) 2>conftest.er1
27399 ac_status=$?
27400 grep -v '^ *+' conftest.er1 >conftest.err
27401 rm -f conftest.er1
27402 cat conftest.err >&5
27403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404 (exit $ac_status); } &&
27405 { ac_try='test -z "$ac_c_werror_flag"
27406 || test ! -s conftest.err'
27407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27408 (eval $ac_try) 2>&5
27409 ac_status=$?
27410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27411 (exit $ac_status); }; } &&
27412 { ac_try='test -s conftest$ac_exeext'
27413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27414 (eval $ac_try) 2>&5
27415 ac_status=$?
27416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417 (exit $ac_status); }; }; then
27418 eval "$as_ac_var=yes"
27419else
27420 echo "$as_me: failed program was:" >&5
27421sed 's/^/| /' conftest.$ac_ext >&5
27422
27423eval "$as_ac_var=no"
27424fi
27425rm -f conftest.err conftest.$ac_objext \
27426 conftest$ac_exeext conftest.$ac_ext
27427fi
27428echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27429echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27430if test `eval echo '${'$as_ac_var'}'` = yes; then
27431
27432cat >>confdefs.h <<_ACEOF
27433#define CRAY_STACKSEG_END $ac_func
27434_ACEOF
27435
27436 break
27437fi
27438
27439 done
27440fi
27441
27442echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27443echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27444if test "${ac_cv_c_stack_direction+set}" = set; then
27445 echo $ECHO_N "(cached) $ECHO_C" >&6
27446else
27447 if test "$cross_compiling" = yes; then
27448 ac_cv_c_stack_direction=0
27449else
27450 cat >conftest.$ac_ext <<_ACEOF
27451/* confdefs.h. */
27452_ACEOF
27453cat confdefs.h >>conftest.$ac_ext
27454cat >>conftest.$ac_ext <<_ACEOF
27455/* end confdefs.h. */
27456int
27457find_stack_direction ()
27458{
27459 static char *addr = 0;
27460 auto char dummy;
27461 if (addr == 0)
27462 {
27463 addr = &dummy;
27464 return find_stack_direction ();
27465 }
John Criswell0021c312004-02-13 21:57:29 +000027466 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027467 return (&dummy > addr) ? 1 : -1;
27468}
John Criswell0021c312004-02-13 21:57:29 +000027469
John Criswell0021c312004-02-13 21:57:29 +000027470int
27471main ()
27472{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027473 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000027474}
27475_ACEOF
27476rm -f conftest$ac_exeext
27477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27478 (eval $ac_link) 2>&5
27479 ac_status=$?
27480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27483 (eval $ac_try) 2>&5
27484 ac_status=$?
27485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27486 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027487 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000027488else
27489 echo "$as_me: program exited with status $ac_status" >&5
27490echo "$as_me: failed program was:" >&5
27491sed 's/^/| /' conftest.$ac_ext >&5
27492
27493( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027494ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000027495fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027496rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000027497fi
27498fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027499echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27500echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27501
27502cat >>confdefs.h <<_ACEOF
27503#define STACK_DIRECTION $ac_cv_c_stack_direction
27504_ACEOF
27505
27506
John Criswell0021c312004-02-13 21:57:29 +000027507fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027508
27509
27510echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27511echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27512if test "${ac_cv_func_rand48+set}" = set; then
27513 echo $ECHO_N "(cached) $ECHO_C" >&6
27514else
27515 ac_ext=cc
27516ac_cpp='$CXXCPP $CPPFLAGS'
27517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27520
27521 cat >conftest.$ac_ext <<_ACEOF
27522/* confdefs.h. */
27523_ACEOF
27524cat confdefs.h >>conftest.$ac_ext
27525cat >>conftest.$ac_ext <<_ACEOF
27526/* end confdefs.h. */
27527#include <stdlib.h>
27528int
27529main ()
27530{
27531srand48(0);lrand48();drand48();
27532 ;
27533 return 0;
27534}
27535_ACEOF
27536rm -f conftest.$ac_objext
27537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27538 (eval $ac_compile) 2>conftest.er1
27539 ac_status=$?
27540 grep -v '^ *+' conftest.er1 >conftest.err
27541 rm -f conftest.er1
27542 cat conftest.err >&5
27543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544 (exit $ac_status); } &&
27545 { ac_try='test -z "$ac_cxx_werror_flag"
27546 || test ! -s conftest.err'
27547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27548 (eval $ac_try) 2>&5
27549 ac_status=$?
27550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551 (exit $ac_status); }; } &&
27552 { ac_try='test -s conftest.$ac_objext'
27553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27554 (eval $ac_try) 2>&5
27555 ac_status=$?
27556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27557 (exit $ac_status); }; }; then
27558 ac_cv_func_rand48=yes
27559else
27560 echo "$as_me: failed program was:" >&5
27561sed 's/^/| /' conftest.$ac_ext >&5
27562
27563ac_cv_func_rand48=no
27564fi
27565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27566 ac_ext=c
27567ac_cpp='$CPP $CPPFLAGS'
27568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27570ac_compiler_gnu=$ac_cv_c_compiler_gnu
27571
27572fi
27573echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27574echo "${ECHO_T}$ac_cv_func_rand48" >&6
27575
27576if test "$ac_cv_func_rand48" = "yes" ; then
27577
27578cat >>confdefs.h <<\_ACEOF
27579#define HAVE_RAND48 1
27580_ACEOF
27581
27582fi
John Criswell0021c312004-02-13 21:57:29 +000027583
27584
John Criswell7a73b802003-06-30 21:59:07 +000027585echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27586echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27587if test "${ac_cv_cxx_namespaces+set}" = set; then
27588 echo $ECHO_N "(cached) $ECHO_C" >&6
27589else
Reid Spencer2706f8c2004-09-19 23:53:36 +000027590 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000027591ac_cpp='$CXXCPP $CPPFLAGS'
27592ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27593ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27594ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27595
27596 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027597/* confdefs.h. */
27598_ACEOF
27599cat confdefs.h >>conftest.$ac_ext
27600cat >>conftest.$ac_ext <<_ACEOF
27601/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027602namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000027603int
27604main ()
27605{
27606using namespace Outer::Inner; return i;
27607 ;
27608 return 0;
27609}
27610_ACEOF
27611rm -f conftest.$ac_objext
27612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027613 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027614 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027615 grep -v '^ *+' conftest.er1 >conftest.err
27616 rm -f conftest.er1
27617 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27619 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027620 { ac_try='test -z "$ac_cxx_werror_flag"
27621 || test ! -s conftest.err'
27622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27623 (eval $ac_try) 2>&5
27624 ac_status=$?
27625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626 (exit $ac_status); }; } &&
27627 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27629 (eval $ac_try) 2>&5
27630 ac_status=$?
27631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632 (exit $ac_status); }; }; then
27633 ac_cv_cxx_namespaces=yes
27634else
27635 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027636sed 's/^/| /' conftest.$ac_ext >&5
27637
John Criswell7a73b802003-06-30 21:59:07 +000027638ac_cv_cxx_namespaces=no
27639fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027641 ac_ext=c
27642ac_cpp='$CPP $CPPFLAGS'
27643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27645ac_compiler_gnu=$ac_cv_c_compiler_gnu
27646
27647
27648fi
27649echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
27650echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
27651if test "$ac_cv_cxx_namespaces" = yes; then
27652
27653cat >>confdefs.h <<\_ACEOF
27654#define HAVE_NAMESPACES
27655_ACEOF
27656
27657fi
27658
Brian Gaeke90583492003-11-10 03:06:28 +000027659echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
27660echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
27661if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000027662 echo $ECHO_N "(cached) $ECHO_C" >&6
27663else
27664
John Criswell7a73b802003-06-30 21:59:07 +000027665 ac_ext=cc
27666ac_cpp='$CXXCPP $CPPFLAGS'
27667ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27668ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27669ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27670
27671 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027672/* confdefs.h. */
27673_ACEOF
27674cat confdefs.h >>conftest.$ac_ext
27675cat >>conftest.$ac_ext <<_ACEOF
27676/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027677#include <ext/hash_map>
27678#ifdef HAVE_NAMESPACES
27679using namespace std;
27680#endif
John Criswell7a73b802003-06-30 21:59:07 +000027681int
27682main ()
27683{
Brian Gaeke90583492003-11-10 03:06:28 +000027684hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000027685 ;
27686 return 0;
27687}
27688_ACEOF
27689rm -f conftest.$ac_objext
27690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027691 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027692 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027693 grep -v '^ *+' conftest.er1 >conftest.err
27694 rm -f conftest.er1
27695 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27697 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027698 { ac_try='test -z "$ac_cxx_werror_flag"
27699 || test ! -s conftest.err'
27700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27701 (eval $ac_try) 2>&5
27702 ac_status=$?
27703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27704 (exit $ac_status); }; } &&
27705 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27707 (eval $ac_try) 2>&5
27708 ac_status=$?
27709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27710 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000027711 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000027712else
27713 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027714sed 's/^/| /' conftest.$ac_ext >&5
27715
Brian Gaeke90583492003-11-10 03:06:28 +000027716ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000027717fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027719 ac_ext=c
27720ac_cpp='$CPP $CPPFLAGS'
27721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27723ac_compiler_gnu=$ac_cv_c_compiler_gnu
27724
John Criswell7a73b802003-06-30 21:59:07 +000027725fi
Brian Gaeke90583492003-11-10 03:06:28 +000027726echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
27727echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027728 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
27729 then
John Criswell9f011862004-09-24 18:28:00 +000027730
27731cat >>confdefs.h <<\_ACEOF
27732#define HAVE_STD_EXT_HASH_MAP 1
27733_ACEOF
27734
27735 else
27736
27737cat >>confdefs.h <<\_ACEOF
27738#define HAVE_STD_EXT_HASH_MAP 0
27739_ACEOF
27740
Brian Gaeke90583492003-11-10 03:06:28 +000027741 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027742
Brian Gaeke90583492003-11-10 03:06:28 +000027743 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
27744echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
27745if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
27746 echo $ECHO_N "(cached) $ECHO_C" >&6
27747else
27748
Brian Gaeke90583492003-11-10 03:06:28 +000027749 ac_ext=cc
27750ac_cpp='$CXXCPP $CPPFLAGS'
27751ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27752ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27753ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27754
27755 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000027756/* confdefs.h. */
27757_ACEOF
27758cat confdefs.h >>conftest.$ac_ext
27759cat >>conftest.$ac_ext <<_ACEOF
27760/* end confdefs.h. */
27761#include <ext/hash_map>
27762#ifdef HAVE_NAMESPACES
27763using namespace __gnu_cxx;
27764#endif
27765int
27766main ()
27767{
27768hash_map<int,int> t;
27769 ;
27770 return 0;
27771}
27772_ACEOF
27773rm -f conftest.$ac_objext
27774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027775 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000027776 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027777 grep -v '^ *+' conftest.er1 >conftest.err
27778 rm -f conftest.er1
27779 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000027780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027782 { ac_try='test -z "$ac_cxx_werror_flag"
27783 || test ! -s conftest.err'
27784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27785 (eval $ac_try) 2>&5
27786 ac_status=$?
27787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788 (exit $ac_status); }; } &&
27789 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000027790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27791 (eval $ac_try) 2>&5
27792 ac_status=$?
27793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794 (exit $ac_status); }; }; then
27795 ac_cv_cxx_have_gnu_ext_hash_map=yes
27796else
27797 echo "$as_me: failed program was:" >&5
27798sed 's/^/| /' conftest.$ac_ext >&5
27799
27800ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000027801fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027803 ac_ext=c
27804ac_cpp='$CPP $CPPFLAGS'
27805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27807ac_compiler_gnu=$ac_cv_c_compiler_gnu
27808
27809fi
27810echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
27811echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027812 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
27813 then
John Criswell9f011862004-09-24 18:28:00 +000027814
27815cat >>confdefs.h <<\_ACEOF
27816#define HAVE_GNU_EXT_HASH_MAP 1
27817_ACEOF
27818
27819 else
27820
27821cat >>confdefs.h <<\_ACEOF
27822#define HAVE_GNU_EXT_HASH_MAP 0
27823_ACEOF
27824
Brian Gaeke90583492003-11-10 03:06:28 +000027825 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027826
Brian Gaeke90583492003-11-10 03:06:28 +000027827 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
27828echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
27829if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
27830 echo $ECHO_N "(cached) $ECHO_C" >&6
27831else
John Criswell7a73b802003-06-30 21:59:07 +000027832
Brian Gaeke90583492003-11-10 03:06:28 +000027833 ac_ext=cc
27834ac_cpp='$CXXCPP $CPPFLAGS'
27835ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27836ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27837ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27838
27839 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000027840/* confdefs.h. */
27841_ACEOF
27842cat confdefs.h >>conftest.$ac_ext
27843cat >>conftest.$ac_ext <<_ACEOF
27844/* end confdefs.h. */
27845#include <hash_map>
27846int
27847main ()
27848{
27849hash_map<int,int> t;
27850 ;
27851 return 0;
27852}
27853_ACEOF
27854rm -f conftest.$ac_objext
27855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027856 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000027857 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027858 grep -v '^ *+' conftest.er1 >conftest.err
27859 rm -f conftest.er1
27860 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000027861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27862 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027863 { ac_try='test -z "$ac_cxx_werror_flag"
27864 || test ! -s conftest.err'
27865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27866 (eval $ac_try) 2>&5
27867 ac_status=$?
27868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27869 (exit $ac_status); }; } &&
27870 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000027871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27872 (eval $ac_try) 2>&5
27873 ac_status=$?
27874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875 (exit $ac_status); }; }; then
27876 ac_cv_cxx_have_global_hash_map=yes
27877else
27878 echo "$as_me: failed program was:" >&5
27879sed 's/^/| /' conftest.$ac_ext >&5
27880
27881ac_cv_cxx_have_global_hash_map=no
27882fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027884 ac_ext=c
27885ac_cpp='$CPP $CPPFLAGS'
27886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27888ac_compiler_gnu=$ac_cv_c_compiler_gnu
27889
27890fi
27891echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
27892echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027893 if test "$ac_cv_cxx_have_global_hash_map" = yes
27894 then
John Criswell9f011862004-09-24 18:28:00 +000027895
27896cat >>confdefs.h <<\_ACEOF
27897#define HAVE_GLOBAL_HASH_MAP 1
27898_ACEOF
27899
27900 else
27901
27902cat >>confdefs.h <<\_ACEOF
27903#define HAVE_GLOBAL_HASH_MAP 0
27904_ACEOF
27905
Brian Gaeke90583492003-11-10 03:06:28 +000027906 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027907
Brian Gaeke90583492003-11-10 03:06:28 +000027908echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
27909echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
27910if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000027911 echo $ECHO_N "(cached) $ECHO_C" >&6
27912else
27913
John Criswell7a73b802003-06-30 21:59:07 +000027914 ac_ext=cc
27915ac_cpp='$CXXCPP $CPPFLAGS'
27916ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27917ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27918ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27919
27920 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027921/* confdefs.h. */
27922_ACEOF
27923cat confdefs.h >>conftest.$ac_ext
27924cat >>conftest.$ac_ext <<_ACEOF
27925/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027926#include <ext/hash_set>
27927#ifdef HAVE_NAMESPACES
27928using namespace std;
27929#endif
John Criswell7a73b802003-06-30 21:59:07 +000027930int
27931main ()
27932{
Brian Gaeke90583492003-11-10 03:06:28 +000027933hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000027934 ;
27935 return 0;
27936}
27937_ACEOF
27938rm -f conftest.$ac_objext
27939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027940 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027941 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027942 grep -v '^ *+' conftest.er1 >conftest.err
27943 rm -f conftest.er1
27944 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027947 { ac_try='test -z "$ac_cxx_werror_flag"
27948 || test ! -s conftest.err'
27949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27950 (eval $ac_try) 2>&5
27951 ac_status=$?
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); }; } &&
27954 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27956 (eval $ac_try) 2>&5
27957 ac_status=$?
27958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000027960 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000027961else
27962 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027963sed 's/^/| /' conftest.$ac_ext >&5
27964
Brian Gaeke90583492003-11-10 03:06:28 +000027965ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000027966fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027968 ac_ext=c
27969ac_cpp='$CPP $CPPFLAGS'
27970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27972ac_compiler_gnu=$ac_cv_c_compiler_gnu
27973
27974fi
27975echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
27976echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027977 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
27978 then
John Criswell9f011862004-09-24 18:28:00 +000027979
27980cat >>confdefs.h <<\_ACEOF
27981#define HAVE_STD_EXT_HASH_SET 1
27982_ACEOF
27983
27984 else
27985
27986cat >>confdefs.h <<\_ACEOF
27987#define HAVE_STD_EXT_HASH_SET 0
27988_ACEOF
27989
Brian Gaeke90583492003-11-10 03:06:28 +000027990 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027991
Brian Gaeke90583492003-11-10 03:06:28 +000027992 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
27993echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
27994if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
27995 echo $ECHO_N "(cached) $ECHO_C" >&6
27996else
27997
Brian Gaeke90583492003-11-10 03:06:28 +000027998 ac_ext=cc
27999ac_cpp='$CXXCPP $CPPFLAGS'
28000ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28001ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28002ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28003
John Criswell7a73b802003-06-30 21:59:07 +000028004 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028005/* confdefs.h. */
28006_ACEOF
28007cat confdefs.h >>conftest.$ac_ext
28008cat >>conftest.$ac_ext <<_ACEOF
28009/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028010#include <ext/hash_set>
28011#ifdef HAVE_NAMESPACES
28012using namespace __gnu_cxx;
28013#endif
John Criswell7a73b802003-06-30 21:59:07 +000028014int
28015main ()
28016{
Brian Gaeke90583492003-11-10 03:06:28 +000028017hash_set<int> t;
28018 ;
28019 return 0;
28020}
28021_ACEOF
28022rm -f conftest.$ac_objext
28023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028024 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028025 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028026 grep -v '^ *+' conftest.er1 >conftest.err
28027 rm -f conftest.er1
28028 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028031 { ac_try='test -z "$ac_cxx_werror_flag"
28032 || test ! -s conftest.err'
28033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28034 (eval $ac_try) 2>&5
28035 ac_status=$?
28036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28037 (exit $ac_status); }; } &&
28038 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28040 (eval $ac_try) 2>&5
28041 ac_status=$?
28042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28043 (exit $ac_status); }; }; then
28044 ac_cv_cxx_have_gnu_ext_hash_set=yes
28045else
28046 echo "$as_me: failed program was:" >&5
28047sed 's/^/| /' conftest.$ac_ext >&5
28048
28049ac_cv_cxx_have_gnu_ext_hash_set=no
28050fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028052 ac_ext=c
28053ac_cpp='$CPP $CPPFLAGS'
28054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28056ac_compiler_gnu=$ac_cv_c_compiler_gnu
28057
28058fi
28059echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28060echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028061 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28062 then
John Criswell9f011862004-09-24 18:28:00 +000028063
28064cat >>confdefs.h <<\_ACEOF
28065#define HAVE_GNU_EXT_HASH_SET 1
28066_ACEOF
28067
28068 else
28069
28070cat >>confdefs.h <<\_ACEOF
28071#define HAVE_GNU_EXT_HASH_SET 0
28072_ACEOF
28073
Brian Gaeke90583492003-11-10 03:06:28 +000028074 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028075
Brian Gaeke90583492003-11-10 03:06:28 +000028076 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28077echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28078if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28079 echo $ECHO_N "(cached) $ECHO_C" >&6
28080else
28081
Brian Gaeke90583492003-11-10 03:06:28 +000028082 ac_ext=cc
28083ac_cpp='$CXXCPP $CPPFLAGS'
28084ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28085ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28086ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28087
28088 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028089/* confdefs.h. */
28090_ACEOF
28091cat confdefs.h >>conftest.$ac_ext
28092cat >>conftest.$ac_ext <<_ACEOF
28093/* end confdefs.h. */
28094#include <hash_set>
28095int
28096main ()
28097{
John Criswell7a73b802003-06-30 21:59:07 +000028098hash_set<int> t; return 0;
28099 ;
28100 return 0;
28101}
28102_ACEOF
28103rm -f conftest.$ac_objext
28104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028105 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028106 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028107 grep -v '^ *+' conftest.er1 >conftest.err
28108 rm -f conftest.er1
28109 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28111 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028112 { ac_try='test -z "$ac_cxx_werror_flag"
28113 || test ! -s conftest.err'
28114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28115 (eval $ac_try) 2>&5
28116 ac_status=$?
28117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28118 (exit $ac_status); }; } &&
28119 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28121 (eval $ac_try) 2>&5
28122 ac_status=$?
28123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028125 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028126else
28127 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028128sed 's/^/| /' conftest.$ac_ext >&5
28129
Brian Gaeke90583492003-11-10 03:06:28 +000028130ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028131fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028133 ac_ext=c
28134ac_cpp='$CPP $CPPFLAGS'
28135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28137ac_compiler_gnu=$ac_cv_c_compiler_gnu
28138
John Criswell7a73b802003-06-30 21:59:07 +000028139fi
Brian Gaeke90583492003-11-10 03:06:28 +000028140echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28141echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028142 if test "$ac_cv_cxx_have_global_hash_set" = yes
28143 then
John Criswell9f011862004-09-24 18:28:00 +000028144
28145cat >>confdefs.h <<\_ACEOF
28146#define HAVE_GLOBAL_HASH_SET 1
28147_ACEOF
28148
28149 else
28150
28151cat >>confdefs.h <<\_ACEOF
28152#define HAVE_GLOBAL_HASH_SET 0
28153_ACEOF
28154
Brian Gaeke90583492003-11-10 03:06:28 +000028155 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028156
John Criswell7a73b802003-06-30 21:59:07 +000028157echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28158echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28159if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28160 echo $ECHO_N "(cached) $ECHO_C" >&6
28161else
28162
John Criswell7a73b802003-06-30 21:59:07 +000028163 ac_ext=cc
28164ac_cpp='$CXXCPP $CPPFLAGS'
28165ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28166ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28167ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28168
28169 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028170/* confdefs.h. */
28171_ACEOF
28172cat confdefs.h >>conftest.$ac_ext
28173cat >>conftest.$ac_ext <<_ACEOF
28174/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028175#include <iterator>
28176#ifdef HAVE_NAMESPACES
28177using namespace std;
28178#endif
John Criswell7a73b802003-06-30 21:59:07 +000028179int
28180main ()
28181{
28182iterator<int,int,int> t; return 0;
28183 ;
28184 return 0;
28185}
28186_ACEOF
28187rm -f conftest.$ac_objext
28188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028189 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028190 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028191 grep -v '^ *+' conftest.er1 >conftest.err
28192 rm -f conftest.er1
28193 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028196 { ac_try='test -z "$ac_cxx_werror_flag"
28197 || test ! -s conftest.err'
28198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28199 (eval $ac_try) 2>&5
28200 ac_status=$?
28201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202 (exit $ac_status); }; } &&
28203 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28205 (eval $ac_try) 2>&5
28206 ac_status=$?
28207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28208 (exit $ac_status); }; }; then
28209 ac_cv_cxx_have_std_iterator=yes
28210else
28211 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028212sed 's/^/| /' conftest.$ac_ext >&5
28213
John Criswell7a73b802003-06-30 21:59:07 +000028214ac_cv_cxx_have_std_iterator=no
28215fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028217 ac_ext=c
28218ac_cpp='$CPP $CPPFLAGS'
28219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28221ac_compiler_gnu=$ac_cv_c_compiler_gnu
28222
28223
28224fi
28225echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28226echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028227if test "$ac_cv_cxx_have_std_iterator" = yes
28228then
John Criswell40468462004-09-24 21:19:06 +000028229
28230cat >>confdefs.h <<\_ACEOF
28231#define HAVE_STD_ITERATOR 1
28232_ACEOF
28233
28234else
28235
28236cat >>confdefs.h <<\_ACEOF
28237#define HAVE_STD_ITERATOR 0
28238_ACEOF
28239
John Criswell7a73b802003-06-30 21:59:07 +000028240fi
28241
28242echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28243echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28244if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28245 echo $ECHO_N "(cached) $ECHO_C" >&6
28246else
28247
John Criswell7a73b802003-06-30 21:59:07 +000028248 ac_ext=cc
28249ac_cpp='$CXXCPP $CPPFLAGS'
28250ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28251ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28252ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28253
28254 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028255/* confdefs.h. */
28256_ACEOF
28257cat confdefs.h >>conftest.$ac_ext
28258cat >>conftest.$ac_ext <<_ACEOF
28259/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028260#include <iterator>
28261#ifdef HAVE_NAMESPACES
28262using namespace std;
28263#endif
John Criswell7a73b802003-06-30 21:59:07 +000028264int
28265main ()
28266{
John Criswellc78022e2003-07-29 19:11:58 +000028267bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028268 ;
28269 return 0;
28270}
28271_ACEOF
28272rm -f conftest.$ac_objext
28273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028274 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028275 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028276 grep -v '^ *+' conftest.er1 >conftest.err
28277 rm -f conftest.er1
28278 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028281 { ac_try='test -z "$ac_cxx_werror_flag"
28282 || test ! -s conftest.err'
28283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28284 (eval $ac_try) 2>&5
28285 ac_status=$?
28286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287 (exit $ac_status); }; } &&
28288 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28290 (eval $ac_try) 2>&5
28291 ac_status=$?
28292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28293 (exit $ac_status); }; }; then
28294 ac_cv_cxx_have_bi_iterator=yes
28295else
28296 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028297sed 's/^/| /' conftest.$ac_ext >&5
28298
John Criswell7a73b802003-06-30 21:59:07 +000028299ac_cv_cxx_have_bi_iterator=no
28300fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028302 ac_ext=c
28303ac_cpp='$CPP $CPPFLAGS'
28304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28306ac_compiler_gnu=$ac_cv_c_compiler_gnu
28307
28308
28309fi
28310echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28311echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028312if test "$ac_cv_cxx_have_bi_iterator" = yes
28313then
John Criswell40468462004-09-24 21:19:06 +000028314
28315cat >>confdefs.h <<\_ACEOF
28316#define HAVE_BI_ITERATOR 1
28317_ACEOF
28318
28319else
28320
28321cat >>confdefs.h <<\_ACEOF
28322#define HAVE_BI_ITERATOR 0
28323_ACEOF
28324
John Criswell7a73b802003-06-30 21:59:07 +000028325fi
28326
28327echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28328echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28329if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28330 echo $ECHO_N "(cached) $ECHO_C" >&6
28331else
28332
John Criswell7a73b802003-06-30 21:59:07 +000028333 ac_ext=cc
28334ac_cpp='$CXXCPP $CPPFLAGS'
28335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28338
28339 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028340/* confdefs.h. */
28341_ACEOF
28342cat confdefs.h >>conftest.$ac_ext
28343cat >>conftest.$ac_ext <<_ACEOF
28344/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028345#include <iterator>
28346#ifdef HAVE_NAMESPACES
28347using namespace std;
28348#endif
John Criswell7a73b802003-06-30 21:59:07 +000028349int
28350main ()
28351{
John Criswellc78022e2003-07-29 19:11:58 +000028352forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028353 ;
28354 return 0;
28355}
28356_ACEOF
28357rm -f conftest.$ac_objext
28358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028359 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028360 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028361 grep -v '^ *+' conftest.er1 >conftest.err
28362 rm -f conftest.er1
28363 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28365 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028366 { ac_try='test -z "$ac_cxx_werror_flag"
28367 || test ! -s conftest.err'
28368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28369 (eval $ac_try) 2>&5
28370 ac_status=$?
28371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28372 (exit $ac_status); }; } &&
28373 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28375 (eval $ac_try) 2>&5
28376 ac_status=$?
28377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28378 (exit $ac_status); }; }; then
28379 ac_cv_cxx_have_fwd_iterator=yes
28380else
28381 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028382sed 's/^/| /' conftest.$ac_ext >&5
28383
John Criswell7a73b802003-06-30 21:59:07 +000028384ac_cv_cxx_have_fwd_iterator=no
28385fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028387 ac_ext=c
28388ac_cpp='$CPP $CPPFLAGS'
28389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28391ac_compiler_gnu=$ac_cv_c_compiler_gnu
28392
28393
28394fi
28395echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28396echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028397if test "$ac_cv_cxx_have_fwd_iterator" = yes
28398then
John Criswell40468462004-09-24 21:19:06 +000028399
28400cat >>confdefs.h <<\_ACEOF
28401#define HAVE_FWD_ITERATOR 1
28402_ACEOF
28403
28404else
28405
28406cat >>confdefs.h <<\_ACEOF
28407#define HAVE_FWD_ITERATOR 0
28408_ACEOF
28409
John Criswell7a73b802003-06-30 21:59:07 +000028410fi
28411
28412
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028413echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28414echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28415if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28416 echo $ECHO_N "(cached) $ECHO_C" >&6
28417else
28418 ac_ext=cc
28419ac_cpp='$CXXCPP $CPPFLAGS'
28420ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28421ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28422ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28423
Reid Spencerabec8f92004-10-27 23:03:44 +000028424 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028425/* confdefs.h. */
28426_ACEOF
28427cat confdefs.h >>conftest.$ac_ext
28428cat >>conftest.$ac_ext <<_ACEOF
28429/* end confdefs.h. */
28430#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028431int
28432main ()
28433{
28434float f; isnan(f);
28435 ;
28436 return 0;
28437}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028438_ACEOF
28439rm -f conftest.$ac_objext
28440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028441 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028442 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028443 grep -v '^ *+' conftest.er1 >conftest.err
28444 rm -f conftest.er1
28445 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28447 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028448 { ac_try='test -z "$ac_cxx_werror_flag"
28449 || test ! -s conftest.err'
28450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28451 (eval $ac_try) 2>&5
28452 ac_status=$?
28453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454 (exit $ac_status); }; } &&
28455 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28457 (eval $ac_try) 2>&5
28458 ac_status=$?
28459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460 (exit $ac_status); }; }; then
28461 ac_cv_func_isnan_in_math_h=yes
28462else
28463 echo "$as_me: failed program was:" >&5
28464sed 's/^/| /' conftest.$ac_ext >&5
28465
28466ac_cv_func_isnan_in_math_h=no
28467fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028469 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028470ac_cpp='$CPP $CPPFLAGS'
28471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28473ac_compiler_gnu=$ac_cv_c_compiler_gnu
28474
28475fi
28476echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28477echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028478
28479
28480if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028481
28482cat >>confdefs.h <<\_ACEOF
28483#define HAVE_ISNAN_IN_MATH_H 1
28484_ACEOF
28485
Reid Spencerabec8f92004-10-27 23:03:44 +000028486fi
28487
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028488echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28489echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28490if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28491 echo $ECHO_N "(cached) $ECHO_C" >&6
28492else
28493 ac_ext=cc
28494ac_cpp='$CXXCPP $CPPFLAGS'
28495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28498
Reid Spencerabec8f92004-10-27 23:03:44 +000028499 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028500/* confdefs.h. */
28501_ACEOF
28502cat confdefs.h >>conftest.$ac_ext
28503cat >>conftest.$ac_ext <<_ACEOF
28504/* end confdefs.h. */
28505#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028506int
28507main ()
28508{
28509float f; isnan(f);
28510 ;
28511 return 0;
28512}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028513_ACEOF
28514rm -f conftest.$ac_objext
28515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028516 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028517 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028518 grep -v '^ *+' conftest.er1 >conftest.err
28519 rm -f conftest.er1
28520 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28522 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028523 { ac_try='test -z "$ac_cxx_werror_flag"
28524 || test ! -s conftest.err'
28525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28526 (eval $ac_try) 2>&5
28527 ac_status=$?
28528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529 (exit $ac_status); }; } &&
28530 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28532 (eval $ac_try) 2>&5
28533 ac_status=$?
28534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28535 (exit $ac_status); }; }; then
28536 ac_cv_func_isnan_in_cmath=yes
28537else
28538 echo "$as_me: failed program was:" >&5
28539sed 's/^/| /' conftest.$ac_ext >&5
28540
28541ac_cv_func_isnan_in_cmath=no
28542fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028544 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028545ac_cpp='$CPP $CPPFLAGS'
28546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28548ac_compiler_gnu=$ac_cv_c_compiler_gnu
28549
28550fi
28551echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28552echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028553
28554if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028555
28556cat >>confdefs.h <<\_ACEOF
28557#define HAVE_ISNAN_IN_CMATH 1
28558_ACEOF
28559
Reid Spencerabec8f92004-10-27 23:03:44 +000028560fi
28561
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028562echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28563echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28564if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28565 echo $ECHO_N "(cached) $ECHO_C" >&6
28566else
28567 ac_ext=cc
28568ac_cpp='$CXXCPP $CPPFLAGS'
28569ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28570ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28571ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28572
Reid Spencerabec8f92004-10-27 23:03:44 +000028573 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028574/* confdefs.h. */
28575_ACEOF
28576cat confdefs.h >>conftest.$ac_ext
28577cat >>conftest.$ac_ext <<_ACEOF
28578/* end confdefs.h. */
28579#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028580int
28581main ()
28582{
28583float f; std::isnan(f);
28584 ;
28585 return 0;
28586}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028587_ACEOF
28588rm -f conftest.$ac_objext
28589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028590 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028591 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028592 grep -v '^ *+' conftest.er1 >conftest.err
28593 rm -f conftest.er1
28594 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028597 { ac_try='test -z "$ac_cxx_werror_flag"
28598 || test ! -s conftest.err'
28599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28600 (eval $ac_try) 2>&5
28601 ac_status=$?
28602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603 (exit $ac_status); }; } &&
28604 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28606 (eval $ac_try) 2>&5
28607 ac_status=$?
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); }; }; then
28610 ac_cv_func_std_isnan_in_cmath=yes
28611else
28612 echo "$as_me: failed program was:" >&5
28613sed 's/^/| /' conftest.$ac_ext >&5
28614
28615ac_cv_func_std_isnan_in_cmath=no
28616fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028618 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028619ac_cpp='$CPP $CPPFLAGS'
28620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28622ac_compiler_gnu=$ac_cv_c_compiler_gnu
28623
28624fi
28625echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
28626echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028627
28628if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028629
28630cat >>confdefs.h <<\_ACEOF
28631#define HAVE_STD_ISNAN_IN_CMATH 1
28632_ACEOF
28633
Reid Spencerabec8f92004-10-27 23:03:44 +000028634fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028635
28636
Brian Gaeke52a551d2004-07-21 03:14:12 +000028637echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
28638echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
28639if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
28640 echo $ECHO_N "(cached) $ECHO_C" >&6
28641else
28642 ac_ext=cc
28643ac_cpp='$CXXCPP $CPPFLAGS'
28644ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28645ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28646ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28647
Reid Spencerabec8f92004-10-27 23:03:44 +000028648 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028649/* confdefs.h. */
28650_ACEOF
28651cat confdefs.h >>conftest.$ac_ext
28652cat >>conftest.$ac_ext <<_ACEOF
28653/* end confdefs.h. */
28654#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028655int
28656main ()
28657{
28658float f; isinf(f);
28659 ;
28660 return 0;
28661}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028662_ACEOF
28663rm -f conftest.$ac_objext
28664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028665 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028666 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028667 grep -v '^ *+' conftest.er1 >conftest.err
28668 rm -f conftest.er1
28669 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028672 { ac_try='test -z "$ac_cxx_werror_flag"
28673 || test ! -s conftest.err'
28674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28675 (eval $ac_try) 2>&5
28676 ac_status=$?
28677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678 (exit $ac_status); }; } &&
28679 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28681 (eval $ac_try) 2>&5
28682 ac_status=$?
28683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684 (exit $ac_status); }; }; then
28685 ac_cv_func_isinf_in_math_h=yes
28686else
28687 echo "$as_me: failed program was:" >&5
28688sed 's/^/| /' conftest.$ac_ext >&5
28689
28690ac_cv_func_isinf_in_math_h=no
28691fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028693 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000028694ac_cpp='$CPP $CPPFLAGS'
28695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28697ac_compiler_gnu=$ac_cv_c_compiler_gnu
28698
28699fi
28700echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
28701echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028702
28703if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000028704
28705cat >>confdefs.h <<\_ACEOF
28706#define HAVE_ISINF_IN_MATH_H 1
28707_ACEOF
28708
Reid Spencerabec8f92004-10-27 23:03:44 +000028709fi
28710
Brian Gaeke52a551d2004-07-21 03:14:12 +000028711echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
28712echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
28713if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
28714 echo $ECHO_N "(cached) $ECHO_C" >&6
28715else
28716 ac_ext=cc
28717ac_cpp='$CXXCPP $CPPFLAGS'
28718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28721
Reid Spencerabec8f92004-10-27 23:03:44 +000028722 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028723/* confdefs.h. */
28724_ACEOF
28725cat confdefs.h >>conftest.$ac_ext
28726cat >>conftest.$ac_ext <<_ACEOF
28727/* end confdefs.h. */
28728#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028729int
28730main ()
28731{
28732float f; isinf(f);
28733 ;
28734 return 0;
28735}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028736_ACEOF
28737rm -f conftest.$ac_objext
28738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028739 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028740 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028741 grep -v '^ *+' conftest.er1 >conftest.err
28742 rm -f conftest.er1
28743 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028746 { ac_try='test -z "$ac_cxx_werror_flag"
28747 || test ! -s conftest.err'
28748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28749 (eval $ac_try) 2>&5
28750 ac_status=$?
28751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28752 (exit $ac_status); }; } &&
28753 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28755 (eval $ac_try) 2>&5
28756 ac_status=$?
28757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28758 (exit $ac_status); }; }; then
28759 ac_cv_func_isinf_in_cmath=yes
28760else
28761 echo "$as_me: failed program was:" >&5
28762sed 's/^/| /' conftest.$ac_ext >&5
28763
28764ac_cv_func_isinf_in_cmath=no
28765fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028767 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000028768ac_cpp='$CPP $CPPFLAGS'
28769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28771ac_compiler_gnu=$ac_cv_c_compiler_gnu
28772
28773fi
28774echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
28775echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028776
28777if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000028778
28779cat >>confdefs.h <<\_ACEOF
28780#define HAVE_ISINF_IN_CMATH 1
28781_ACEOF
28782
Reid Spencerabec8f92004-10-27 23:03:44 +000028783fi
28784
Brian Gaeke52a551d2004-07-21 03:14:12 +000028785echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
28786echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
28787if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
28788 echo $ECHO_N "(cached) $ECHO_C" >&6
28789else
28790 ac_ext=cc
28791ac_cpp='$CXXCPP $CPPFLAGS'
28792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28795
Reid Spencerabec8f92004-10-27 23:03:44 +000028796 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028797/* confdefs.h. */
28798_ACEOF
28799cat confdefs.h >>conftest.$ac_ext
28800cat >>conftest.$ac_ext <<_ACEOF
28801/* end confdefs.h. */
28802#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028803int
28804main ()
28805{
28806float f; std::isinf(f)}
28807 ;
28808 return 0;
28809}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028810_ACEOF
28811rm -f conftest.$ac_objext
28812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028813 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028814 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028815 grep -v '^ *+' conftest.er1 >conftest.err
28816 rm -f conftest.er1
28817 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28819 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028820 { ac_try='test -z "$ac_cxx_werror_flag"
28821 || test ! -s conftest.err'
28822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28823 (eval $ac_try) 2>&5
28824 ac_status=$?
28825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28826 (exit $ac_status); }; } &&
28827 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28829 (eval $ac_try) 2>&5
28830 ac_status=$?
28831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28832 (exit $ac_status); }; }; then
28833 ac_cv_func_std_isinf_in_cmath=yes
28834else
28835 echo "$as_me: failed program was:" >&5
28836sed 's/^/| /' conftest.$ac_ext >&5
28837
28838ac_cv_func_std_isinf_in_cmath=no
28839fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028841 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000028842ac_cpp='$CPP $CPPFLAGS'
28843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28845ac_compiler_gnu=$ac_cv_c_compiler_gnu
28846
28847fi
28848echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
28849echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028850
28851if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000028852
28853cat >>confdefs.h <<\_ACEOF
28854#define HAVE_STD_ISINF_IN_CMATH 1
28855_ACEOF
28856
Reid Spencerabec8f92004-10-27 23:03:44 +000028857fi
28858
Brian Gaeked59a6472004-07-21 03:33:58 +000028859echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
28860echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
28861if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
28862 echo $ECHO_N "(cached) $ECHO_C" >&6
28863else
28864 ac_ext=cc
28865ac_cpp='$CXXCPP $CPPFLAGS'
28866ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28867ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28868ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28869
Reid Spencerabec8f92004-10-27 23:03:44 +000028870 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000028871/* confdefs.h. */
28872_ACEOF
28873cat confdefs.h >>conftest.$ac_ext
28874cat >>conftest.$ac_ext <<_ACEOF
28875/* end confdefs.h. */
28876#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028877int
28878main ()
28879{
28880float f; finite(f);
28881 ;
28882 return 0;
28883}
Brian Gaeked59a6472004-07-21 03:33:58 +000028884_ACEOF
28885rm -f conftest.$ac_objext
28886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028887 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000028888 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028889 grep -v '^ *+' conftest.er1 >conftest.err
28890 rm -f conftest.er1
28891 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000028892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28893 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028894 { ac_try='test -z "$ac_cxx_werror_flag"
28895 || test ! -s conftest.err'
28896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28897 (eval $ac_try) 2>&5
28898 ac_status=$?
28899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900 (exit $ac_status); }; } &&
28901 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000028902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28903 (eval $ac_try) 2>&5
28904 ac_status=$?
28905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28906 (exit $ac_status); }; }; then
28907 ac_cv_func_finite_in_ieeefp_h=yes
28908else
28909 echo "$as_me: failed program was:" >&5
28910sed 's/^/| /' conftest.$ac_ext >&5
28911
28912ac_cv_func_finite_in_ieeefp_h=no
28913fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028915 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000028916ac_cpp='$CPP $CPPFLAGS'
28917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28919ac_compiler_gnu=$ac_cv_c_compiler_gnu
28920
28921fi
28922echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
28923echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028924
Brian Gaeke6802b552004-10-28 05:06:45 +000028925if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000028926
28927cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000028928#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000028929_ACEOF
28930
Reid Spencerabec8f92004-10-27 23:03:44 +000028931fi
28932
28933
28934
John Criswell7a73b802003-06-30 21:59:07 +000028935
28936
28937for ac_header in stdlib.h unistd.h
28938do
28939as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28940if eval "test \"\${$as_ac_Header+set}\" = set"; then
28941 echo "$as_me:$LINENO: checking for $ac_header" >&5
28942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28943if eval "test \"\${$as_ac_Header+set}\" = set"; then
28944 echo $ECHO_N "(cached) $ECHO_C" >&6
28945fi
28946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28948else
28949 # Is the header compilable?
28950echo "$as_me:$LINENO: checking $ac_header usability" >&5
28951echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28952cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028953/* confdefs.h. */
28954_ACEOF
28955cat confdefs.h >>conftest.$ac_ext
28956cat >>conftest.$ac_ext <<_ACEOF
28957/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028958$ac_includes_default
28959#include <$ac_header>
28960_ACEOF
28961rm -f conftest.$ac_objext
28962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028963 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028964 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028965 grep -v '^ *+' conftest.er1 >conftest.err
28966 rm -f conftest.er1
28967 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028970 { ac_try='test -z "$ac_c_werror_flag"
28971 || test ! -s conftest.err'
28972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28973 (eval $ac_try) 2>&5
28974 ac_status=$?
28975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28976 (exit $ac_status); }; } &&
28977 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28979 (eval $ac_try) 2>&5
28980 ac_status=$?
28981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28982 (exit $ac_status); }; }; then
28983 ac_header_compiler=yes
28984else
28985 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028986sed 's/^/| /' conftest.$ac_ext >&5
28987
John Criswell7a73b802003-06-30 21:59:07 +000028988ac_header_compiler=no
28989fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028991echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28992echo "${ECHO_T}$ac_header_compiler" >&6
28993
28994# Is the header present?
28995echo "$as_me:$LINENO: checking $ac_header presence" >&5
28996echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28997cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028998/* confdefs.h. */
28999_ACEOF
29000cat confdefs.h >>conftest.$ac_ext
29001cat >>conftest.$ac_ext <<_ACEOF
29002/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029003#include <$ac_header>
29004_ACEOF
29005if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29007 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000029008 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000029009 rm -f conftest.er1
29010 cat conftest.err >&5
29011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012 (exit $ac_status); } >/dev/null; then
29013 if test -s conftest.err; then
29014 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000029015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000029016 else
29017 ac_cpp_err=
29018 fi
29019else
29020 ac_cpp_err=yes
29021fi
29022if test -z "$ac_cpp_err"; then
29023 ac_header_preproc=yes
29024else
29025 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029026sed 's/^/| /' conftest.$ac_ext >&5
29027
John Criswell7a73b802003-06-30 21:59:07 +000029028 ac_header_preproc=no
29029fi
29030rm -f conftest.err conftest.$ac_ext
29031echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29032echo "${ECHO_T}$ac_header_preproc" >&6
29033
29034# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029035case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29036 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000029037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29038echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29040echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29041 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029042 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029043 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000029044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29045echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29047echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29049echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29051echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29053echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29055echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029056 (
29057 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029058## ----------------------------------- ##
29059## Report this to llvmbugs@cs.uiuc.edu ##
29060## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000029061_ASBOX
29062 ) |
29063 sed "s/^/$as_me: WARNING: /" >&2
29064 ;;
John Criswell7a73b802003-06-30 21:59:07 +000029065esac
29066echo "$as_me:$LINENO: checking for $ac_header" >&5
29067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29068if eval "test \"\${$as_ac_Header+set}\" = set"; then
29069 echo $ECHO_N "(cached) $ECHO_C" >&6
29070else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029071 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000029072fi
29073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29074echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29075
29076fi
29077if test `eval echo '${'$as_ac_Header'}'` = yes; then
29078 cat >>confdefs.h <<_ACEOF
29079#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29080_ACEOF
29081
29082fi
29083
29084done
29085
29086
29087for ac_func in getpagesize
29088do
29089as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29090echo "$as_me:$LINENO: checking for $ac_func" >&5
29091echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29092if eval "test \"\${$as_ac_var+set}\" = set"; then
29093 echo $ECHO_N "(cached) $ECHO_C" >&6
29094else
29095 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029096/* confdefs.h. */
29097_ACEOF
29098cat confdefs.h >>conftest.$ac_ext
29099cat >>conftest.$ac_ext <<_ACEOF
29100/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029101/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29103#define $ac_func innocuous_$ac_func
29104
John Criswell7a73b802003-06-30 21:59:07 +000029105/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000029106 which can conflict with char $ac_func (); below.
29107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29108 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029109
John Criswell0c38eaf2003-09-10 15:17:25 +000029110#ifdef __STDC__
29111# include <limits.h>
29112#else
29113# include <assert.h>
29114#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000029115
29116#undef $ac_func
29117
John Criswell7a73b802003-06-30 21:59:07 +000029118/* Override any gcc2 internal prototype to avoid an error. */
29119#ifdef __cplusplus
29120extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000029121{
John Criswell7a73b802003-06-30 21:59:07 +000029122#endif
29123/* We use char because int might match the return type of a gcc2
29124 builtin and then its argument prototype would still apply. */
29125char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029126/* The GNU C library defines this for functions which it implements
29127 to always fail with ENOSYS. Some functions are actually named
29128 something starting with __ and the normal name is an alias. */
29129#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29130choke me
29131#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029132char (*f) () = $ac_func;
29133#endif
29134#ifdef __cplusplus
29135}
John Criswell7a73b802003-06-30 21:59:07 +000029136#endif
29137
John Criswell0c38eaf2003-09-10 15:17:25 +000029138int
29139main ()
29140{
29141return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000029142 ;
29143 return 0;
29144}
29145_ACEOF
29146rm -f conftest.$ac_objext conftest$ac_exeext
29147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029148 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029149 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029150 grep -v '^ *+' conftest.er1 >conftest.err
29151 rm -f conftest.er1
29152 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029155 { ac_try='test -z "$ac_c_werror_flag"
29156 || test ! -s conftest.err'
29157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29158 (eval $ac_try) 2>&5
29159 ac_status=$?
29160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29161 (exit $ac_status); }; } &&
29162 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29164 (eval $ac_try) 2>&5
29165 ac_status=$?
29166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167 (exit $ac_status); }; }; then
29168 eval "$as_ac_var=yes"
29169else
29170 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029171sed 's/^/| /' conftest.$ac_ext >&5
29172
John Criswell7a73b802003-06-30 21:59:07 +000029173eval "$as_ac_var=no"
29174fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029175rm -f conftest.err conftest.$ac_objext \
29176 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029177fi
29178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29179echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29180if test `eval echo '${'$as_ac_var'}'` = yes; then
29181 cat >>confdefs.h <<_ACEOF
29182#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29183_ACEOF
29184
29185fi
29186done
29187
29188echo "$as_me:$LINENO: checking for working mmap" >&5
29189echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29190if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29191 echo $ECHO_N "(cached) $ECHO_C" >&6
29192else
29193 if test "$cross_compiling" = yes; then
29194 ac_cv_func_mmap_fixed_mapped=no
29195else
29196 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029197/* confdefs.h. */
29198_ACEOF
29199cat confdefs.h >>conftest.$ac_ext
29200cat >>conftest.$ac_ext <<_ACEOF
29201/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029202$ac_includes_default
29203/* malloc might have been renamed as rpl_malloc. */
29204#undef malloc
29205
29206/* Thanks to Mike Haertel and Jim Avera for this test.
29207 Here is a matrix of mmap possibilities:
29208 mmap private not fixed
29209 mmap private fixed at somewhere currently unmapped
29210 mmap private fixed at somewhere already mapped
29211 mmap shared not fixed
29212 mmap shared fixed at somewhere currently unmapped
29213 mmap shared fixed at somewhere already mapped
29214 For private mappings, we should verify that changes cannot be read()
29215 back from the file, nor mmap's back from the file at a different
29216 address. (There have been systems where private was not correctly
29217 implemented like the infamous i386 svr4.0, and systems where the
29218 VM page cache was not coherent with the file system buffer cache
29219 like early versions of FreeBSD and possibly contemporary NetBSD.)
29220 For shared mappings, we should conversely verify that changes get
29221 propagated back to all the places they're supposed to be.
29222
29223 Grep wants private fixed already mapped.
29224 The main things grep needs to know about mmap are:
29225 * does it exist and is it safe to write into the mmap'd area
29226 * how to use it (BSD variants) */
29227
29228#include <fcntl.h>
29229#include <sys/mman.h>
29230
29231#if !STDC_HEADERS && !HAVE_STDLIB_H
29232char *malloc ();
29233#endif
29234
29235/* This mess was copied from the GNU getpagesize.h. */
29236#if !HAVE_GETPAGESIZE
29237/* Assume that all systems that can run configure have sys/param.h. */
29238# if !HAVE_SYS_PARAM_H
29239# define HAVE_SYS_PARAM_H 1
29240# endif
29241
29242# ifdef _SC_PAGESIZE
29243# define getpagesize() sysconf(_SC_PAGESIZE)
29244# else /* no _SC_PAGESIZE */
29245# if HAVE_SYS_PARAM_H
29246# include <sys/param.h>
29247# ifdef EXEC_PAGESIZE
29248# define getpagesize() EXEC_PAGESIZE
29249# else /* no EXEC_PAGESIZE */
29250# ifdef NBPG
29251# define getpagesize() NBPG * CLSIZE
29252# ifndef CLSIZE
29253# define CLSIZE 1
29254# endif /* no CLSIZE */
29255# else /* no NBPG */
29256# ifdef NBPC
29257# define getpagesize() NBPC
29258# else /* no NBPC */
29259# ifdef PAGESIZE
29260# define getpagesize() PAGESIZE
29261# endif /* PAGESIZE */
29262# endif /* no NBPC */
29263# endif /* no NBPG */
29264# endif /* no EXEC_PAGESIZE */
29265# else /* no HAVE_SYS_PARAM_H */
29266# define getpagesize() 8192 /* punt totally */
29267# endif /* no HAVE_SYS_PARAM_H */
29268# endif /* no _SC_PAGESIZE */
29269
29270#endif /* no HAVE_GETPAGESIZE */
29271
29272int
29273main ()
29274{
29275 char *data, *data2, *data3;
29276 int i, pagesize;
29277 int fd;
29278
29279 pagesize = getpagesize ();
29280
29281 /* First, make a file with some known garbage in it. */
29282 data = (char *) malloc (pagesize);
29283 if (!data)
29284 exit (1);
29285 for (i = 0; i < pagesize; ++i)
29286 *(data + i) = rand ();
29287 umask (0);
29288 fd = creat ("conftest.mmap", 0600);
29289 if (fd < 0)
29290 exit (1);
29291 if (write (fd, data, pagesize) != pagesize)
29292 exit (1);
29293 close (fd);
29294
29295 /* Next, try to mmap the file at a fixed address which already has
29296 something else allocated at it. If we can, also make sure that
29297 we see the same garbage. */
29298 fd = open ("conftest.mmap", O_RDWR);
29299 if (fd < 0)
29300 exit (1);
29301 data2 = (char *) malloc (2 * pagesize);
29302 if (!data2)
29303 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000029304 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000029305 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000029306 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000029307 exit (1);
29308 for (i = 0; i < pagesize; ++i)
29309 if (*(data + i) != *(data2 + i))
29310 exit (1);
29311
29312 /* Finally, make sure that changes to the mapped area do not
29313 percolate back to the file as seen by read(). (This is a bug on
29314 some variants of i386 svr4.0.) */
29315 for (i = 0; i < pagesize; ++i)
29316 *(data2 + i) = *(data2 + i) + 1;
29317 data3 = (char *) malloc (pagesize);
29318 if (!data3)
29319 exit (1);
29320 if (read (fd, data3, pagesize) != pagesize)
29321 exit (1);
29322 for (i = 0; i < pagesize; ++i)
29323 if (*(data + i) != *(data3 + i))
29324 exit (1);
29325 close (fd);
29326 exit (0);
29327}
29328_ACEOF
29329rm -f conftest$ac_exeext
29330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29331 (eval $ac_link) 2>&5
29332 ac_status=$?
29333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29336 (eval $ac_try) 2>&5
29337 ac_status=$?
29338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339 (exit $ac_status); }; }; then
29340 ac_cv_func_mmap_fixed_mapped=yes
29341else
29342 echo "$as_me: program exited with status $ac_status" >&5
29343echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029344sed 's/^/| /' conftest.$ac_ext >&5
29345
John Criswell7a73b802003-06-30 21:59:07 +000029346( exit $ac_status )
29347ac_cv_func_mmap_fixed_mapped=no
29348fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029349rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029350fi
29351fi
29352echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29353echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29354if test $ac_cv_func_mmap_fixed_mapped = yes; then
29355
29356cat >>confdefs.h <<\_ACEOF
29357#define HAVE_MMAP 1
29358_ACEOF
29359
29360fi
29361rm -f conftest.mmap
29362
29363echo "$as_me:$LINENO: checking for mmap of files" >&5
29364echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29365if test "${ac_cv_func_mmap_file+set}" = set; then
29366 echo $ECHO_N "(cached) $ECHO_C" >&6
29367else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029368 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000029369ac_cpp='$CPP $CPPFLAGS'
29370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29372ac_compiler_gnu=$ac_cv_c_compiler_gnu
29373
29374 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029375 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000029376else
29377 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000029378
Reid Spencer777ce172004-09-20 04:09:56 +000029379 /* confdefs.h. */
29380_ACEOF
29381cat confdefs.h >>conftest.$ac_ext
29382cat >>conftest.$ac_ext <<_ACEOF
29383/* end confdefs.h. */
29384
John Criswell7a73b802003-06-30 21:59:07 +000029385#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000029386#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000029387#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000029388
29389int
29390main ()
29391{
John Criswell7a73b802003-06-30 21:59:07 +000029392
29393 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000029394 fd = creat ("foo",0777);
29395 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29396 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029397 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000029398 ;
29399 return 0;
29400}
John Criswell7a73b802003-06-30 21:59:07 +000029401_ACEOF
29402rm -f conftest$ac_exeext
29403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29404 (eval $ac_link) 2>&5
29405 ac_status=$?
29406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29409 (eval $ac_try) 2>&5
29410 ac_status=$?
29411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412 (exit $ac_status); }; }; then
29413 ac_cv_func_mmap_file=yes
29414else
29415 echo "$as_me: program exited with status $ac_status" >&5
29416echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029417sed 's/^/| /' conftest.$ac_ext >&5
29418
John Criswell7a73b802003-06-30 21:59:07 +000029419( exit $ac_status )
29420ac_cv_func_mmap_file=no
29421fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029422rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029423fi
29424 ac_ext=c
29425ac_cpp='$CPP $CPPFLAGS'
29426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29428ac_compiler_gnu=$ac_cv_c_compiler_gnu
29429
29430
29431fi
29432echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29433echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29434if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000029435
29436cat >>confdefs.h <<\_ACEOF
29437#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000029438_ACEOF
29439
29440 MMAP_FILE=yes
29441
29442fi
29443
John Criswell7a73b802003-06-30 21:59:07 +000029444echo "$as_me:$LINENO: checking for mprotect" >&5
29445echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29446if test "${ac_cv_func_mprotect+set}" = set; then
29447 echo $ECHO_N "(cached) $ECHO_C" >&6
29448else
29449 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029450/* confdefs.h. */
29451_ACEOF
29452cat confdefs.h >>conftest.$ac_ext
29453cat >>conftest.$ac_ext <<_ACEOF
29454/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029455/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29457#define mprotect innocuous_mprotect
29458
John Criswell7a73b802003-06-30 21:59:07 +000029459/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000029460 which can conflict with char mprotect (); below.
29461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29462 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029463
John Criswell0c38eaf2003-09-10 15:17:25 +000029464#ifdef __STDC__
29465# include <limits.h>
29466#else
29467# include <assert.h>
29468#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000029469
29470#undef mprotect
29471
John Criswell7a73b802003-06-30 21:59:07 +000029472/* Override any gcc2 internal prototype to avoid an error. */
29473#ifdef __cplusplus
29474extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000029475{
John Criswell7a73b802003-06-30 21:59:07 +000029476#endif
29477/* We use char because int might match the return type of a gcc2
29478 builtin and then its argument prototype would still apply. */
29479char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000029480/* The GNU C library defines this for functions which it implements
29481 to always fail with ENOSYS. Some functions are actually named
29482 something starting with __ and the normal name is an alias. */
29483#if defined (__stub_mprotect) || defined (__stub___mprotect)
29484choke me
29485#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029486char (*f) () = mprotect;
29487#endif
29488#ifdef __cplusplus
29489}
John Criswell7a73b802003-06-30 21:59:07 +000029490#endif
29491
John Criswell0c38eaf2003-09-10 15:17:25 +000029492int
29493main ()
29494{
29495return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000029496 ;
29497 return 0;
29498}
29499_ACEOF
29500rm -f conftest.$ac_objext conftest$ac_exeext
29501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029502 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029503 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029504 grep -v '^ *+' conftest.er1 >conftest.err
29505 rm -f conftest.er1
29506 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29508 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029509 { ac_try='test -z "$ac_c_werror_flag"
29510 || test ! -s conftest.err'
29511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29512 (eval $ac_try) 2>&5
29513 ac_status=$?
29514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515 (exit $ac_status); }; } &&
29516 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29518 (eval $ac_try) 2>&5
29519 ac_status=$?
29520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521 (exit $ac_status); }; }; then
29522 ac_cv_func_mprotect=yes
29523else
29524 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029525sed 's/^/| /' conftest.$ac_ext >&5
29526
John Criswell7a73b802003-06-30 21:59:07 +000029527ac_cv_func_mprotect=no
29528fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029529rm -f conftest.err conftest.$ac_objext \
29530 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029531fi
29532echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29533echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29534if test $ac_cv_func_mprotect = yes; then
29535 :
29536else
29537 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29538echo "$as_me: error: Function mprotect() required but not found" >&2;}
29539 { (exit 1); exit 1; }; }
29540fi
29541
29542
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029543if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000029544then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029545 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29546echo "$as_me: WARNING: mmap() required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000029547fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029548if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000029549then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029550 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29551echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000029552fi
John Criswell7a73b802003-06-30 21:59:07 +000029553
29554
Brian Gaekef3b24102003-11-16 18:38:14 +000029555echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29556echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029557if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29558 echo $ECHO_N "(cached) $ECHO_C" >&6
29559else
29560 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000029561if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029562 cp /dev/null conftest.c
Reid Spencer502935f2004-12-22 05:56:56 +000029563 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029564 if test $? -eq 0 ; then
29565 llvm_cv_llvmgcc_sanity="yes"
29566 fi
29567 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000029568fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029569fi
29570echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
29571echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
29572
29573if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000029574 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029575 LLVMCC1=$llvmcc1path
29576
Reid Spencer502935f2004-12-22 05:56:56 +000029577 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029578 LLVMCC1PLUS=$llvmcc1pluspath
29579
Reid Spencer502935f2004-12-22 05:56:56 +000029580 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
29581 LLVMGCCDIR=$llvmgccdir
29582
Brian Gaekef3b24102003-11-16 18:38:14 +000029583fi
29584
Reid Spencer2bc7bd52004-11-29 12:29:58 +000029585SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000029586
29587
Reid Spencere9de0912004-08-20 09:03:57 +000029588# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029589# information into substitutions that will end up in Makefile.config.in
29590# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000029591eval LLVM_PREFIX="${prefix}";
29592eval LLVM_BINDIR="${prefix}/bin";
29593eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000029594eval LLVM_DATADIR="${prefix}/share/llvm";
29595eval LLVM_DOCSDIR="${prefix}/docs/llvm";
29596eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000029597eval LLVM_INCLUDEDIR="${prefix}/include";
29598eval LLVM_INFODIR="${prefix}/info";
29599eval LLVM_MANDIR="${prefix}/man";
29600LLVM_CONFIGTIME=`date`
29601
29602
29603
29604
29605
29606
29607
29608
29609
29610
29611
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029612# Place the various directores into the config.h file as #defines so that we
29613# can know about the installation paths within LLVM.
29614
Reid Spencere9de0912004-08-20 09:03:57 +000029615cat >>confdefs.h <<_ACEOF
29616#define LLVM_PREFIX "$LLVM_PREFIX"
29617_ACEOF
29618
29619
29620cat >>confdefs.h <<_ACEOF
29621#define LLVM_BINDIR "$LLVM_BINDIR"
29622_ACEOF
29623
29624
29625cat >>confdefs.h <<_ACEOF
29626#define LLVM_LIBDIR "$LLVM_LIBDIR"
29627_ACEOF
29628
29629
29630cat >>confdefs.h <<_ACEOF
29631#define LLVM_DATADIR "$LLVM_DATADIR"
29632_ACEOF
29633
29634
29635cat >>confdefs.h <<_ACEOF
29636#define LLVM_DATADIR "$LLVM_DOCSDIR"
29637_ACEOF
29638
29639
29640cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000029641#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000029642_ACEOF
29643
29644
29645cat >>confdefs.h <<_ACEOF
29646#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
29647_ACEOF
29648
29649
29650cat >>confdefs.h <<_ACEOF
29651#define LLVM_INFODIR "$LLVM_INFODIR"
29652_ACEOF
29653
29654
29655cat >>confdefs.h <<_ACEOF
29656#define LLVM_MANDIR "$LLVM_MANDIR"
29657_ACEOF
29658
29659
29660cat >>confdefs.h <<_ACEOF
29661#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
29662_ACEOF
29663
29664
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029665
29666 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
29667
29668
29669 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
29670
29671 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
29672
29673 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
29674
29675 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
29676
29677 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
29678
29679
29680 ac_config_files="$ac_config_files Makefile.config"
29681
29682
29683 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
29684
29685
Reid Spencer1f319422004-11-29 04:56:35 +000029686 ac_config_files="$ac_config_files docs/doxygen.cfg"
29687
29688
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029689 ac_config_commands="$ac_config_commands Makefile"
29690
29691
29692 ac_config_commands="$ac_config_commands Makefile.common"
29693
29694
29695 ac_config_commands="$ac_config_commands examples/Makefile"
29696
29697
29698 ac_config_commands="$ac_config_commands lib/Makefile"
29699
29700
29701 ac_config_commands="$ac_config_commands runtime/Makefile"
29702
29703
29704 ac_config_commands="$ac_config_commands test/Makefile"
29705
29706
29707 ac_config_commands="$ac_config_commands test/Makefile.tests"
29708
29709
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029710 ac_config_commands="$ac_config_commands tools/Makefile"
29711
29712
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029713 ac_config_commands="$ac_config_commands utils/Makefile"
29714
29715
29716 ac_config_commands="$ac_config_commands projects/Makefile"
29717
29718
29719
John Criswell7a73b802003-06-30 21:59:07 +000029720cat >confcache <<\_ACEOF
29721# This file is a shell script that caches the results of configure
29722# tests run on this system so they can be shared between configure
29723# scripts and configure runs, see configure's option --config-cache.
29724# It is not useful on other systems. If it contains results you don't
29725# want to keep, you may remove or edit it.
29726#
29727# config.status only pays attention to the cache file if you give it
29728# the --recheck option to rerun configure.
29729#
John Criswell0c38eaf2003-09-10 15:17:25 +000029730# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000029731# loading this file, other *unset* `ac_cv_foo' will be assigned the
29732# following values.
29733
29734_ACEOF
29735
29736# The following way of writing the cache mishandles newlines in values,
29737# but we know of no workaround that is simple, portable, and efficient.
29738# So, don't put newlines in cache variables' values.
29739# Ultrix sh set writes to stderr and can't be redirected directly,
29740# and sets the high bit in the cache file unless we assign to the vars.
29741{
29742 (set) 2>&1 |
29743 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29744 *ac_space=\ *)
29745 # `set' does not quote correctly, so add quotes (double-quote
29746 # substitution turns \\\\ into \\, and sed turns \\ into \).
29747 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029748 "s/'/'\\\\''/g;
29749 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000029750 ;;
29751 *)
29752 # `set' quotes correctly as required by POSIX, so do not add quotes.
29753 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029754 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000029755 ;;
29756 esac;
29757} |
29758 sed '
29759 t clear
29760 : clear
29761 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29762 t end
29763 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29764 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000029765if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000029766 if test -w $cache_file; then
29767 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29768 cat confcache >$cache_file
29769 else
29770 echo "not updating unwritable cache $cache_file"
29771 fi
29772fi
29773rm -f confcache
29774
29775test "x$prefix" = xNONE && prefix=$ac_default_prefix
29776# Let make expand exec_prefix.
29777test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29778
29779# VPATH may cause trouble with some makes, so we remove $(srcdir),
29780# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29781# trailing colons and then remove the whole line if VPATH becomes empty
29782# (actually we leave an empty line to preserve line numbers).
29783if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000029784 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000029785s/:*\$(srcdir):*/:/;
29786s/:*\${srcdir}:*/:/;
29787s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029788s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000029789s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029790s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000029791}'
29792fi
29793
29794DEFS=-DHAVE_CONFIG_H
29795
John Criswell0c38eaf2003-09-10 15:17:25 +000029796ac_libobjs=
29797ac_ltlibobjs=
29798for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29799 # 1. Remove the extension, and $U if already installed.
29800 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000029801 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000029802 # 2. Add them.
29803 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29804 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29805done
29806LIBOBJS=$ac_libobjs
29807
29808LTLIBOBJS=$ac_ltlibobjs
29809
29810
Reid Spencer2bc7bd52004-11-29 12:29:58 +000029811if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
29812 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
29813Usually this means the macro was only invoked conditionally." >&5
29814echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
29815Usually this means the macro was only invoked conditionally." >&2;}
29816 { (exit 1); exit 1; }; }
29817fi
29818if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
29819 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29820Usually this means the macro was only invoked conditionally." >&5
29821echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29822Usually this means the macro was only invoked conditionally." >&2;}
29823 { (exit 1); exit 1; }; }
29824fi
John Criswell7a73b802003-06-30 21:59:07 +000029825
29826: ${CONFIG_STATUS=./config.status}
29827ac_clean_files_save=$ac_clean_files
29828ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29829{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29830echo "$as_me: creating $CONFIG_STATUS" >&6;}
29831cat >$CONFIG_STATUS <<_ACEOF
29832#! $SHELL
29833# Generated by $as_me.
29834# Run this file to recreate the current configuration.
29835# Compiler output produced by configure, useful for debugging
29836# configure, is in config.log if it exists.
29837
29838debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000029839ac_cs_recheck=false
29840ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000029841SHELL=\${CONFIG_SHELL-$SHELL}
29842_ACEOF
29843
29844cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000029845## --------------------- ##
29846## M4sh Initialization. ##
29847## --------------------- ##
29848
29849# Be Bourne compatible
29850if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29851 emulate sh
29852 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000029853 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29854 # is contrary to our usage. Disable this feature.
29855 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000029856elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29857 set -o posix
29858fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029859DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000029860
John Criswell7a73b802003-06-30 21:59:07 +000029861# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029862if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029863 as_unset=unset
29864else
29865 as_unset=false
29866fi
29867
John Criswell0c38eaf2003-09-10 15:17:25 +000029868
29869# Work around bugs in pre-3.0 UWIN ksh.
29870$as_unset ENV MAIL MAILPATH
29871PS1='$ '
29872PS2='> '
29873PS4='+ '
29874
29875# NLS nuisances.
29876for as_var in \
29877 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29878 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29879 LC_TELEPHONE LC_TIME
29880do
Reid Spencer2706f8c2004-09-19 23:53:36 +000029881 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000029882 eval $as_var=C; export $as_var
29883 else
29884 $as_unset $as_var
29885 fi
29886done
29887
29888# Required to use basename.
29889if expr a : '\(a\)' >/dev/null 2>&1; then
29890 as_expr=expr
29891else
29892 as_expr=false
29893fi
29894
29895if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29896 as_basename=basename
29897else
29898 as_basename=false
29899fi
John Criswell7a73b802003-06-30 21:59:07 +000029900
29901
29902# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000029903as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000029904$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29905 X"$0" : 'X\(//\)$' \| \
29906 X"$0" : 'X\(/\)$' \| \
29907 . : '\(.\)' 2>/dev/null ||
29908echo X/"$0" |
29909 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29910 /^X\/\(\/\/\)$/{ s//\1/; q; }
29911 /^X\/\(\/\).*/{ s//\1/; q; }
29912 s/.*/./; q'`
29913
John Criswell0c38eaf2003-09-10 15:17:25 +000029914
John Criswell7a73b802003-06-30 21:59:07 +000029915# PATH needs CR, and LINENO needs CR and PATH.
29916# Avoid depending upon Character Ranges.
29917as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29918as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29919as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29920as_cr_digits='0123456789'
29921as_cr_alnum=$as_cr_Letters$as_cr_digits
29922
29923# The user is always right.
29924if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000029925 echo "#! /bin/sh" >conf$$.sh
29926 echo "exit 0" >>conf$$.sh
29927 chmod +x conf$$.sh
29928 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029929 PATH_SEPARATOR=';'
29930 else
29931 PATH_SEPARATOR=:
29932 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000029933 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000029934fi
29935
29936
29937 as_lineno_1=$LINENO
29938 as_lineno_2=$LINENO
29939 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29940 test "x$as_lineno_1" != "x$as_lineno_2" &&
29941 test "x$as_lineno_3" = "x$as_lineno_2" || {
29942 # Find who we are. Look in the path if we contain no path at all
29943 # relative or not.
29944 case $0 in
29945 *[\\/]* ) as_myself=$0 ;;
29946 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29947for as_dir in $PATH
29948do
29949 IFS=$as_save_IFS
29950 test -z "$as_dir" && as_dir=.
29951 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29952done
29953
29954 ;;
29955 esac
29956 # We did not find ourselves, most probably we were run as `sh COMMAND'
29957 # in which case we are not to be found in the path.
29958 if test "x$as_myself" = x; then
29959 as_myself=$0
29960 fi
29961 if test ! -f "$as_myself"; then
29962 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29963echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29964 { (exit 1); exit 1; }; }
29965 fi
29966 case $CONFIG_SHELL in
29967 '')
29968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29969for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29970do
29971 IFS=$as_save_IFS
29972 test -z "$as_dir" && as_dir=.
29973 for as_base in sh bash ksh sh5; do
29974 case $as_dir in
29975 /*)
29976 if ("$as_dir/$as_base" -c '
29977 as_lineno_1=$LINENO
29978 as_lineno_2=$LINENO
29979 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29980 test "x$as_lineno_1" != "x$as_lineno_2" &&
29981 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000029982 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29983 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000029984 CONFIG_SHELL=$as_dir/$as_base
29985 export CONFIG_SHELL
29986 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29987 fi;;
29988 esac
29989 done
29990done
29991;;
29992 esac
29993
29994 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29995 # uniformly replaced by the line number. The first 'sed' inserts a
29996 # line-number line before each line; the second 'sed' does the real
29997 # work. The second script uses 'N' to pair each line-number line
29998 # with the numbered line, and appends trailing '-' during
29999 # substitution so that $LINENO is not a special case at line end.
30000 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30001 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30002 sed '=' <$as_myself |
30003 sed '
30004 N
30005 s,$,-,
30006 : loop
30007 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30008 t loop
30009 s,-$,,
30010 s,^['$as_cr_digits']*\n,,
30011 ' >$as_me.lineno &&
30012 chmod +x $as_me.lineno ||
30013 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30014echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30015 { (exit 1); exit 1; }; }
30016
30017 # Don't try to exec as it changes $[0], causing all sort of problems
30018 # (the dirname of $[0] is not the place where we might find the
30019 # original and so on. Autoconf is especially sensible to this).
30020 . ./$as_me.lineno
30021 # Exit status is that of the last command.
30022 exit
30023}
30024
30025
30026case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30027 *c*,-n*) ECHO_N= ECHO_C='
30028' ECHO_T=' ' ;;
30029 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30030 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30031esac
30032
30033if expr a : '\(a\)' >/dev/null 2>&1; then
30034 as_expr=expr
30035else
30036 as_expr=false
30037fi
30038
30039rm -f conf$$ conf$$.exe conf$$.file
30040echo >conf$$.file
30041if ln -s conf$$.file conf$$ 2>/dev/null; then
30042 # We could just check for DJGPP; but this test a) works b) is more generic
30043 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30044 if test -f conf$$.exe; then
30045 # Don't use ln at all; we don't have any links
30046 as_ln_s='cp -p'
30047 else
30048 as_ln_s='ln -s'
30049 fi
30050elif ln conf$$.file conf$$ 2>/dev/null; then
30051 as_ln_s=ln
30052else
30053 as_ln_s='cp -p'
30054fi
30055rm -f conf$$ conf$$.exe conf$$.file
30056
John Criswell0c38eaf2003-09-10 15:17:25 +000030057if mkdir -p . 2>/dev/null; then
30058 as_mkdir_p=:
30059else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030060 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000030061 as_mkdir_p=false
30062fi
30063
John Criswell7a73b802003-06-30 21:59:07 +000030064as_executable_p="test -f"
30065
30066# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030067as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030068
30069# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030070as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030071
30072
30073# IFS
30074# We need space, tab and new line, in precisely that order.
30075as_nl='
30076'
30077IFS=" $as_nl"
30078
30079# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000030080$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000030081
30082exec 6>&1
30083
30084# Open the log real soon, to keep \$[0] and so on meaningful, and to
30085# report actual input values of CONFIG_FILES etc. instead of their
30086# values after options handling. Logging --version etc. is OK.
30087exec 5>>config.log
30088{
30089 echo
30090 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30091## Running $as_me. ##
30092_ASBOX
30093} >&5
30094cat >&5 <<_CSEOF
30095
Reid Spencerabec8f92004-10-27 23:03:44 +000030096This file was extended by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000030097generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000030098
30099 CONFIG_FILES = $CONFIG_FILES
30100 CONFIG_HEADERS = $CONFIG_HEADERS
30101 CONFIG_LINKS = $CONFIG_LINKS
30102 CONFIG_COMMANDS = $CONFIG_COMMANDS
30103 $ $0 $@
30104
30105_CSEOF
30106echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30107echo >&5
30108_ACEOF
30109
30110# Files that config.status was made for.
30111if test -n "$ac_config_files"; then
30112 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30113fi
30114
30115if test -n "$ac_config_headers"; then
30116 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30117fi
30118
30119if test -n "$ac_config_links"; then
30120 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30121fi
30122
30123if test -n "$ac_config_commands"; then
30124 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30125fi
30126
30127cat >>$CONFIG_STATUS <<\_ACEOF
30128
30129ac_cs_usage="\
30130\`$as_me' instantiates files from templates according to the
30131current configuration.
30132
30133Usage: $0 [OPTIONS] [FILE]...
30134
30135 -h, --help print this help, then exit
30136 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000030137 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000030138 -d, --debug don't remove temporary files
30139 --recheck update $as_me by reconfiguring in the same conditions
30140 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030141 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000030142 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030143 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000030144
30145Configuration files:
30146$config_files
30147
30148Configuration headers:
30149$config_headers
30150
Reid Spencerde8c47f2004-08-29 19:35:28 +000030151Configuration links:
30152$config_links
30153
John Criswellc764fbc2003-09-06 15:17:13 +000030154Configuration commands:
30155$config_commands
30156
John Criswell7a73b802003-06-30 21:59:07 +000030157Report bugs to <bug-autoconf@gnu.org>."
30158_ACEOF
30159
30160cat >>$CONFIG_STATUS <<_ACEOF
30161ac_cs_version="\\
Reid Spencerabec8f92004-10-27 23:03:44 +000030162llvm config.status 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +000030163configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000030164 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30165
Reid Spencer2706f8c2004-09-19 23:53:36 +000030166Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000030167This config.status script is free software; the Free Software Foundation
30168gives unlimited permission to copy, distribute and modify it."
30169srcdir=$srcdir
30170INSTALL="$INSTALL"
30171_ACEOF
30172
30173cat >>$CONFIG_STATUS <<\_ACEOF
30174# If no file are specified by the user, then we need to provide default
30175# value. By we need to know if files were specified by the user.
30176ac_need_defaults=:
30177while test $# != 0
30178do
30179 case $1 in
30180 --*=*)
30181 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30182 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030183 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000030184 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030185 -*)
30186 ac_option=$1
30187 ac_optarg=$2
30188 ac_shift=shift
30189 ;;
John Criswell7a73b802003-06-30 21:59:07 +000030190 *) # This is not an option, so the user has probably given explicit
30191 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000030192 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000030193 ac_need_defaults=false;;
30194 esac
30195
John Criswell0c38eaf2003-09-10 15:17:25 +000030196 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000030197 # Handling of the options.
30198_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000030199cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030200 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30201 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030202 --version | --vers* | -V )
30203 echo "$ac_cs_version"; exit 0 ;;
30204 --he | --h)
30205 # Conflict between --help and --header
30206 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30207Try \`$0 --help' for more information." >&5
30208echo "$as_me: error: ambiguous option: $1
30209Try \`$0 --help' for more information." >&2;}
30210 { (exit 1); exit 1; }; };;
30211 --help | --hel | -h )
30212 echo "$ac_cs_usage"; exit 0 ;;
30213 --debug | --d* | -d )
30214 debug=: ;;
30215 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000030216 $ac_shift
30217 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030218 ac_need_defaults=false;;
30219 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000030220 $ac_shift
30221 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030222 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30224 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30225 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030226
30227 # This is an error.
30228 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30229Try \`$0 --help' for more information." >&5
30230echo "$as_me: error: unrecognized option: $1
30231Try \`$0 --help' for more information." >&2;}
30232 { (exit 1); exit 1; }; } ;;
30233
30234 *) ac_config_targets="$ac_config_targets $1" ;;
30235
30236 esac
30237 shift
30238done
30239
John Criswell0c38eaf2003-09-10 15:17:25 +000030240ac_configure_extra_args=
30241
30242if $ac_cs_silent; then
30243 exec 6>/dev/null
30244 ac_configure_extra_args="$ac_configure_extra_args --silent"
30245fi
30246
30247_ACEOF
30248cat >>$CONFIG_STATUS <<_ACEOF
30249if \$ac_cs_recheck; then
30250 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30251 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30252fi
30253
John Criswell7a73b802003-06-30 21:59:07 +000030254_ACEOF
30255
John Criswellc764fbc2003-09-06 15:17:13 +000030256cat >>$CONFIG_STATUS <<_ACEOF
30257#
30258# INIT-COMMANDS section.
30259#
John Criswell7a73b802003-06-30 21:59:07 +000030260
John Criswellc764fbc2003-09-06 15:17:13 +000030261${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30262${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000030263${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030264${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030265${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030266${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30267${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellc764fbc2003-09-06 15:17:13 +000030268${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000030269${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030270${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030271
30272_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030273
30274
30275
30276cat >>$CONFIG_STATUS <<\_ACEOF
30277for ac_config_target in $ac_config_targets
30278do
30279 case "$ac_config_target" in
30280 # Handling of arguments.
30281 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer0acd65f2004-11-23 23:48:45 +000030282 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30283 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30284 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30285 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000030286 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spenceredd01b92004-11-25 06:03:14 +000030287 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030288 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30289 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000030290 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030291 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030292 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030293 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30294 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030295 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000030296 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030297 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000030298 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000030299 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000030300 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30301 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000030302 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30303 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000030304 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30305echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30306 { (exit 1); exit 1; }; };;
30307 esac
30308done
30309
30310# If the user did not use the arguments to specify the items to instantiate,
30311# then the envvar interface is used. Set only those that are not.
30312# We use the long form for the default assignment because of an extremely
30313# bizarre bug on SunOS 4.1.3.
30314if $ac_need_defaults; then
30315 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30316 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Reid Spencerde8c47f2004-08-29 19:35:28 +000030317 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
John Criswellc764fbc2003-09-06 15:17:13 +000030318 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000030319fi
30320
John Criswell0c38eaf2003-09-10 15:17:25 +000030321# Have a temporary directory for convenience. Make it in the build tree
30322# simply because there is no reason to put it here, and in addition,
30323# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000030324# Create a temporary directory, and hook for its removal unless debugging.
30325$debug ||
30326{
30327 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30328 trap '{ (exit 1); exit 1; }' 1 2 13 15
30329}
30330
30331# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000030332
John Criswell7a73b802003-06-30 21:59:07 +000030333{
John Criswell0c38eaf2003-09-10 15:17:25 +000030334 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000030335 test -n "$tmp" && test -d "$tmp"
30336} ||
30337{
John Criswell0c38eaf2003-09-10 15:17:25 +000030338 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000030339 (umask 077 && mkdir $tmp)
30340} ||
30341{
John Criswell0c38eaf2003-09-10 15:17:25 +000030342 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000030343 { (exit 1); exit 1; }
30344}
30345
30346_ACEOF
30347
30348cat >>$CONFIG_STATUS <<_ACEOF
30349
30350#
30351# CONFIG_FILES section.
30352#
30353
30354# No need to generate the scripts if there are no CONFIG_FILES.
30355# This happens for instance when ./config.status config.h
30356if test -n "\$CONFIG_FILES"; then
30357 # Protect against being on the right side of a sed subst in config.status.
30358 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30359 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30360s,@SHELL@,$SHELL,;t t
30361s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30362s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30363s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30364s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30365s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30366s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30367s,@exec_prefix@,$exec_prefix,;t t
30368s,@prefix@,$prefix,;t t
30369s,@program_transform_name@,$program_transform_name,;t t
30370s,@bindir@,$bindir,;t t
30371s,@sbindir@,$sbindir,;t t
30372s,@libexecdir@,$libexecdir,;t t
30373s,@datadir@,$datadir,;t t
30374s,@sysconfdir@,$sysconfdir,;t t
30375s,@sharedstatedir@,$sharedstatedir,;t t
30376s,@localstatedir@,$localstatedir,;t t
30377s,@libdir@,$libdir,;t t
30378s,@includedir@,$includedir,;t t
30379s,@oldincludedir@,$oldincludedir,;t t
30380s,@infodir@,$infodir,;t t
30381s,@mandir@,$mandir,;t t
30382s,@build_alias@,$build_alias,;t t
30383s,@host_alias@,$host_alias,;t t
30384s,@target_alias@,$target_alias,;t t
30385s,@DEFS@,$DEFS,;t t
30386s,@ECHO_C@,$ECHO_C,;t t
30387s,@ECHO_N@,$ECHO_N,;t t
30388s,@ECHO_T@,$ECHO_T,;t t
30389s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030390s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000030391s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030392s,@build@,$build,;t t
30393s,@build_cpu@,$build_cpu,;t t
30394s,@build_vendor@,$build_vendor,;t t
30395s,@build_os@,$build_os,;t t
30396s,@host@,$host,;t t
30397s,@host_cpu@,$host_cpu,;t t
30398s,@host_vendor@,$host_vendor,;t t
30399s,@host_os@,$host_os,;t t
30400s,@target@,$target,;t t
30401s,@target_cpu@,$target_cpu,;t t
30402s,@target_vendor@,$target_vendor,;t t
30403s,@target_os@,$target_os,;t t
30404s,@OS@,$OS,;t t
John Criswell76595452003-07-01 22:07:39 +000030405s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030406s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030407s,@CC@,$CC,;t t
30408s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030409s,@LDFLAGS@,$LDFLAGS,;t t
30410s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030411s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030412s,@EXEEXT@,$EXEEXT,;t t
30413s,@OBJEXT@,$OBJEXT,;t t
30414s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30415s,@JIT@,$JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030416s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030417s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030418s,@CXX@,$CXX,;t t
30419s,@CXXFLAGS@,$CXXFLAGS,;t t
30420s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030421s,@LEX@,$LEX,;t t
30422s,@LEXLIB@,$LEXLIB,;t t
30423s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000030424s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030425s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000030426s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030427s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030428s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000030429s,@CMP@,$CMP,;t t
30430s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030431s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030432s,@FIND@,$FIND,;t t
30433s,@GREP@,$GREP,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000030434s,@LLVMGCC@,$LLVMGCC,;t t
30435s,@LLVMGXX@,$LLVMGXX,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030436s,@MKDIR@,$MKDIR,;t t
30437s,@MV@,$MV,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030438s,@PAX@,$PAX,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030439s,@RANLIB@,$RANLIB,;t t
30440s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030441s,@RM@,$RM,;t t
30442s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000030443s,@TAR@,$TAR,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030444s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30445s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30446s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030447s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030448s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030449s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030450s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030451s,@GROFF@,$GROFF,;t t
30452s,@GZIP@,$GZIP,;t t
30453s,@POD2HTML@,$POD2HTML,;t t
30454s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000030455s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000030456s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030457s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030458s,@EGREP@,$EGREP,;t t
30459s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30460s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30461s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30462s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30463s,@LIBADD_DL@,$LIBADD_DL,;t t
30464s,@ECHO@,$ECHO,;t t
30465s,@AR@,$AR,;t t
30466s,@ac_ct_AR@,$ac_ct_AR,;t t
30467s,@STRIP@,$STRIP,;t t
30468s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30469s,@CXXCPP@,$CXXCPP,;t t
30470s,@F77@,$F77,;t t
30471s,@FFLAGS@,$FFLAGS,;t t
30472s,@ac_ct_F77@,$ac_ct_F77,;t t
30473s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030474s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030475s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030476s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000030477s,@LLVMCC1@,$LLVMCC1,;t t
30478s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000030479s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000030480s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000030481s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30482s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30483s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30484s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30485s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30486s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30487s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30488s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30489s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30490s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000030491s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000030492s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030493CEOF
30494
30495_ACEOF
30496
30497 cat >>$CONFIG_STATUS <<\_ACEOF
30498 # Split the substitutions into bite-sized pieces for seds with
30499 # small command number limits, like on Digital OSF/1 and HP-UX.
30500 ac_max_sed_lines=48
30501 ac_sed_frag=1 # Number of current file.
30502 ac_beg=1 # First line for current file.
30503 ac_end=$ac_max_sed_lines # Line after last line for current file.
30504 ac_more_lines=:
30505 ac_sed_cmds=
30506 while $ac_more_lines; do
30507 if test $ac_beg -gt 1; then
30508 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30509 else
30510 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30511 fi
30512 if test ! -s $tmp/subs.frag; then
30513 ac_more_lines=false
30514 else
30515 # The purpose of the label and of the branching condition is to
30516 # speed up the sed processing (if there are no `@' at all, there
30517 # is no need to browse any of the substitutions).
30518 # These are the two extra sed commands mentioned above.
30519 (echo ':t
30520 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30521 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030522 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000030523 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030524 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000030525 fi
30526 ac_sed_frag=`expr $ac_sed_frag + 1`
30527 ac_beg=$ac_end
30528 ac_end=`expr $ac_end + $ac_max_sed_lines`
30529 fi
30530 done
30531 if test -z "$ac_sed_cmds"; then
30532 ac_sed_cmds=cat
30533 fi
30534fi # test -n "$CONFIG_FILES"
30535
30536_ACEOF
30537cat >>$CONFIG_STATUS <<\_ACEOF
30538for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30539 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30540 case $ac_file in
30541 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000030542 cat >$tmp/stdin
30543 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30544 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030545 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000030546 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030547 * ) ac_file_in=$ac_file.in ;;
30548 esac
30549
30550 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30551 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30552$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030553 X"$ac_file" : 'X\(//\)[^/]' \| \
30554 X"$ac_file" : 'X\(//\)$' \| \
30555 X"$ac_file" : 'X\(/\)' \| \
30556 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000030557echo X"$ac_file" |
30558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30559 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30560 /^X\(\/\/\)$/{ s//\1/; q; }
30561 /^X\(\/\).*/{ s//\1/; q; }
30562 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030563 { if $as_mkdir_p; then
30564 mkdir -p "$ac_dir"
30565 else
30566 as_dir="$ac_dir"
30567 as_dirs=
30568 while test ! -d "$as_dir"; do
30569 as_dirs="$as_dir $as_dirs"
30570 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30571$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030572 X"$as_dir" : 'X\(//\)[^/]' \| \
30573 X"$as_dir" : 'X\(//\)$' \| \
30574 X"$as_dir" : 'X\(/\)' \| \
30575 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000030576echo X"$as_dir" |
30577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30578 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30579 /^X\(\/\/\)$/{ s//\1/; q; }
30580 /^X\(\/\).*/{ s//\1/; q; }
30581 s/.*/./; q'`
30582 done
30583 test ! -n "$as_dirs" || mkdir $as_dirs
30584 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30585echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30586 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000030587
30588 ac_builddir=.
30589
30590if test "$ac_dir" != .; then
30591 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30592 # A "../" for each directory in $ac_dir_suffix.
30593 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30594else
30595 ac_dir_suffix= ac_top_builddir=
30596fi
30597
30598case $srcdir in
30599 .) # No --srcdir option. We are building in place.
30600 ac_srcdir=.
30601 if test -z "$ac_top_builddir"; then
30602 ac_top_srcdir=.
30603 else
30604 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30605 fi ;;
30606 [\\/]* | ?:[\\/]* ) # Absolute path.
30607 ac_srcdir=$srcdir$ac_dir_suffix;
30608 ac_top_srcdir=$srcdir ;;
30609 *) # Relative path.
30610 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30611 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30612esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000030613
30614# Do not use `cd foo && pwd` to compute absolute paths, because
30615# the directories may not exist.
30616case `pwd` in
30617.) ac_abs_builddir="$ac_dir";;
30618*)
30619 case "$ac_dir" in
30620 .) ac_abs_builddir=`pwd`;;
30621 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30622 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30623 esac;;
30624esac
30625case $ac_abs_builddir in
30626.) ac_abs_top_builddir=${ac_top_builddir}.;;
30627*)
30628 case ${ac_top_builddir}. in
30629 .) ac_abs_top_builddir=$ac_abs_builddir;;
30630 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30631 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30632 esac;;
30633esac
30634case $ac_abs_builddir in
30635.) ac_abs_srcdir=$ac_srcdir;;
30636*)
30637 case $ac_srcdir in
30638 .) ac_abs_srcdir=$ac_abs_builddir;;
30639 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30640 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30641 esac;;
30642esac
30643case $ac_abs_builddir in
30644.) ac_abs_top_srcdir=$ac_top_srcdir;;
30645*)
30646 case $ac_top_srcdir in
30647 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30648 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30649 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30650 esac;;
30651esac
John Criswell7a73b802003-06-30 21:59:07 +000030652
30653
30654 case $INSTALL in
30655 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30656 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30657 esac
30658
30659 if test x"$ac_file" != x-; then
30660 { echo "$as_me:$LINENO: creating $ac_file" >&5
30661echo "$as_me: creating $ac_file" >&6;}
30662 rm -f "$ac_file"
30663 fi
30664 # Let's still pretend it is `configure' which instantiates (i.e., don't
30665 # use $as_me), people would be surprised to read:
30666 # /* config.h. Generated by config.status. */
30667 if test x"$ac_file" = x-; then
30668 configure_input=
30669 else
30670 configure_input="$ac_file. "
30671 fi
30672 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030673 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000030674
30675 # First look for the input files in the build tree, otherwise in the
30676 # src tree.
30677 ac_file_inputs=`IFS=:
30678 for f in $ac_file_in; do
30679 case $f in
30680 -) echo $tmp/stdin ;;
30681 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000030682 # Absolute (can't be DOS-style, as IFS=:)
30683 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030684echo "$as_me: error: cannot find input file: $f" >&2;}
30685 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030686 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000030687 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000030688 if test -f "$f"; then
30689 # Build tree
30690 echo "$f"
30691 elif test -f "$srcdir/$f"; then
30692 # Source tree
30693 echo "$srcdir/$f"
30694 else
30695 # /dev/null tree
30696 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030697echo "$as_me: error: cannot find input file: $f" >&2;}
30698 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030699 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000030700 esac
30701 done` || { (exit 1); exit 1; }
30702_ACEOF
30703cat >>$CONFIG_STATUS <<_ACEOF
30704 sed "$ac_vpsub
30705$extrasub
30706_ACEOF
30707cat >>$CONFIG_STATUS <<\_ACEOF
30708:t
30709/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30710s,@configure_input@,$configure_input,;t t
30711s,@srcdir@,$ac_srcdir,;t t
30712s,@abs_srcdir@,$ac_abs_srcdir,;t t
30713s,@top_srcdir@,$ac_top_srcdir,;t t
30714s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30715s,@builddir@,$ac_builddir,;t t
30716s,@abs_builddir@,$ac_abs_builddir,;t t
30717s,@top_builddir@,$ac_top_builddir,;t t
30718s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30719s,@INSTALL@,$ac_INSTALL,;t t
30720" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30721 rm -f $tmp/stdin
30722 if test x"$ac_file" != x-; then
30723 mv $tmp/out $ac_file
30724 else
30725 cat $tmp/out
30726 rm -f $tmp/out
30727 fi
30728
30729done
30730_ACEOF
30731cat >>$CONFIG_STATUS <<\_ACEOF
30732
30733#
30734# CONFIG_HEADER section.
30735#
30736
30737# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30738# NAME is the cpp macro being defined and VALUE is the value it is being given.
30739#
30740# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030741ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30742ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000030743ac_dC=' '
30744ac_dD=',;t'
30745# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000030746ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000030747ac_uB='$,\1#\2define\3'
30748ac_uC=' '
30749ac_uD=',;t'
30750
30751for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30752 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30753 case $ac_file in
30754 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000030755 cat >$tmp/stdin
30756 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30757 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030758 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000030759 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030760 * ) ac_file_in=$ac_file.in ;;
30761 esac
30762
30763 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30764echo "$as_me: creating $ac_file" >&6;}
30765
30766 # First look for the input files in the build tree, otherwise in the
30767 # src tree.
30768 ac_file_inputs=`IFS=:
30769 for f in $ac_file_in; do
30770 case $f in
30771 -) echo $tmp/stdin ;;
30772 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000030773 # Absolute (can't be DOS-style, as IFS=:)
30774 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030775echo "$as_me: error: cannot find input file: $f" >&2;}
30776 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030777 # Do quote $f, to prevent DOS paths from being IFS'd.
30778 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000030779 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000030780 if test -f "$f"; then
30781 # Build tree
30782 echo "$f"
30783 elif test -f "$srcdir/$f"; then
30784 # Source tree
30785 echo "$srcdir/$f"
30786 else
30787 # /dev/null tree
30788 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030789echo "$as_me: error: cannot find input file: $f" >&2;}
30790 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030791 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000030792 esac
30793 done` || { (exit 1); exit 1; }
30794 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030795 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000030796
30797_ACEOF
30798
30799# Transform confdefs.h into two sed scripts, `conftest.defines' and
30800# `conftest.undefs', that substitutes the proper values into
30801# config.h.in to produce config.h. The first handles `#define'
30802# templates, and the second `#undef' templates.
30803# And first: Protect against being on the right side of a sed subst in
30804# config.status. Protect against being in an unquoted here document
30805# in config.status.
30806rm -f conftest.defines conftest.undefs
30807# Using a here document instead of a string reduces the quoting nightmare.
30808# Putting comments in sed scripts is not portable.
30809#
30810# `end' is used to avoid that the second main sed command (meant for
30811# 0-ary CPP macros) applies to n-ary macro definitions.
30812# See the Autoconf documentation for `clear'.
30813cat >confdef2sed.sed <<\_ACEOF
30814s/[\\&,]/\\&/g
30815s,[\\$`],\\&,g
30816t clear
30817: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000030818s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000030819t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000030820s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000030821: end
30822_ACEOF
30823# If some macros were called several times there might be several times
30824# the same #defines, which is useless. Nevertheless, we may not want to
30825# sort them, since we want the *last* AC-DEFINE to be honored.
30826uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30827sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30828rm -f confdef2sed.sed
30829
30830# This sed command replaces #undef with comments. This is necessary, for
30831# example, in the case of _POSIX_SOURCE, which is predefined and required
30832# on some systems where configure will not decide to define it.
30833cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000030834s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000030835_ACEOF
30836
30837# Break up conftest.defines because some shells have a limit on the size
30838# of here documents, and old seds have small limits too (100 cmds).
30839echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000030840echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030841echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30842echo ' :' >>$CONFIG_STATUS
30843rm -f conftest.tail
30844while grep . conftest.defines >/dev/null
30845do
30846 # Write a limited-size here document to $tmp/defines.sed.
30847 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30848 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030849 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030850 # Work around the forget-to-reset-the-flag bug.
30851 echo 't clr' >>$CONFIG_STATUS
30852 echo ': clr' >>$CONFIG_STATUS
30853 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30854 echo 'CEOF
30855 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30856 rm -f $tmp/in
30857 mv $tmp/out $tmp/in
30858' >>$CONFIG_STATUS
30859 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30860 rm -f conftest.defines
30861 mv conftest.tail conftest.defines
30862done
30863rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000030864echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030865echo >>$CONFIG_STATUS
30866
30867# Break up conftest.undefs because some shells have a limit on the size
30868# of here documents, and old seds have small limits too (100 cmds).
30869echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30870rm -f conftest.tail
30871while grep . conftest.undefs >/dev/null
30872do
30873 # Write a limited-size here document to $tmp/undefs.sed.
30874 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30875 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000030876 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030877 # Work around the forget-to-reset-the-flag bug.
30878 echo 't clr' >>$CONFIG_STATUS
30879 echo ': clr' >>$CONFIG_STATUS
30880 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30881 echo 'CEOF
30882 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30883 rm -f $tmp/in
30884 mv $tmp/out $tmp/in
30885' >>$CONFIG_STATUS
30886 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30887 rm -f conftest.undefs
30888 mv conftest.tail conftest.undefs
30889done
30890rm -f conftest.undefs
30891
30892cat >>$CONFIG_STATUS <<\_ACEOF
30893 # Let's still pretend it is `configure' which instantiates (i.e., don't
30894 # use $as_me), people would be surprised to read:
30895 # /* config.h. Generated by config.status. */
30896 if test x"$ac_file" = x-; then
30897 echo "/* Generated by configure. */" >$tmp/config.h
30898 else
30899 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30900 fi
30901 cat $tmp/in >>$tmp/config.h
30902 rm -f $tmp/in
30903 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030904 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030905 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30906echo "$as_me: $ac_file is unchanged" >&6;}
30907 else
30908 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30909$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030910 X"$ac_file" : 'X\(//\)[^/]' \| \
30911 X"$ac_file" : 'X\(//\)$' \| \
30912 X"$ac_file" : 'X\(/\)' \| \
30913 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000030914echo X"$ac_file" |
30915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30916 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30917 /^X\(\/\/\)$/{ s//\1/; q; }
30918 /^X\(\/\).*/{ s//\1/; q; }
30919 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030920 { if $as_mkdir_p; then
30921 mkdir -p "$ac_dir"
30922 else
30923 as_dir="$ac_dir"
30924 as_dirs=
30925 while test ! -d "$as_dir"; do
30926 as_dirs="$as_dir $as_dirs"
30927 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30928$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030929 X"$as_dir" : 'X\(//\)[^/]' \| \
30930 X"$as_dir" : 'X\(//\)$' \| \
30931 X"$as_dir" : 'X\(/\)' \| \
30932 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000030933echo X"$as_dir" |
30934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30935 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30936 /^X\(\/\/\)$/{ s//\1/; q; }
30937 /^X\(\/\).*/{ s//\1/; q; }
30938 s/.*/./; q'`
30939 done
30940 test ! -n "$as_dirs" || mkdir $as_dirs
30941 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30942echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30943 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000030944
30945 rm -f $ac_file
30946 mv $tmp/config.h $ac_file
30947 fi
30948 else
30949 cat $tmp/config.h
30950 rm -f $tmp/config.h
30951 fi
30952done
30953_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000030954cat >>$CONFIG_STATUS <<\_ACEOF
30955
30956#
Reid Spencerde8c47f2004-08-29 19:35:28 +000030957# CONFIG_LINKS section.
30958#
30959
30960for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30961 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30962 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30963
30964 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30965echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30966
30967 if test ! -r $srcdir/$ac_source; then
30968 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30969echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30970 { (exit 1); exit 1; }; }
30971 fi
30972 rm -f $ac_dest
30973
30974 # Make relative symlinks.
30975 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30976$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030977 X"$ac_dest" : 'X\(//\)[^/]' \| \
30978 X"$ac_dest" : 'X\(//\)$' \| \
30979 X"$ac_dest" : 'X\(/\)' \| \
30980 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000030981echo X"$ac_dest" |
30982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30983 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30984 /^X\(\/\/\)$/{ s//\1/; q; }
30985 /^X\(\/\).*/{ s//\1/; q; }
30986 s/.*/./; q'`
30987 { if $as_mkdir_p; then
30988 mkdir -p "$ac_dest_dir"
30989 else
30990 as_dir="$ac_dest_dir"
30991 as_dirs=
30992 while test ! -d "$as_dir"; do
30993 as_dirs="$as_dir $as_dirs"
30994 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30995$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030996 X"$as_dir" : 'X\(//\)[^/]' \| \
30997 X"$as_dir" : 'X\(//\)$' \| \
30998 X"$as_dir" : 'X\(/\)' \| \
30999 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000031000echo X"$as_dir" |
31001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31002 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31003 /^X\(\/\/\)$/{ s//\1/; q; }
31004 /^X\(\/\).*/{ s//\1/; q; }
31005 s/.*/./; q'`
31006 done
31007 test ! -n "$as_dirs" || mkdir $as_dirs
31008 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
31009echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
31010 { (exit 1); exit 1; }; }; }
31011
31012 ac_builddir=.
31013
31014if test "$ac_dest_dir" != .; then
31015 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
31016 # A "../" for each directory in $ac_dir_suffix.
31017 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31018else
31019 ac_dir_suffix= ac_top_builddir=
31020fi
31021
31022case $srcdir in
31023 .) # No --srcdir option. We are building in place.
31024 ac_srcdir=.
31025 if test -z "$ac_top_builddir"; then
31026 ac_top_srcdir=.
31027 else
31028 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31029 fi ;;
31030 [\\/]* | ?:[\\/]* ) # Absolute path.
31031 ac_srcdir=$srcdir$ac_dir_suffix;
31032 ac_top_srcdir=$srcdir ;;
31033 *) # Relative path.
31034 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31035 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31036esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031037
31038# Do not use `cd foo && pwd` to compute absolute paths, because
31039# the directories may not exist.
31040case `pwd` in
31041.) ac_abs_builddir="$ac_dest_dir";;
31042*)
31043 case "$ac_dest_dir" in
31044 .) ac_abs_builddir=`pwd`;;
31045 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
31046 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
31047 esac;;
31048esac
31049case $ac_abs_builddir in
31050.) ac_abs_top_builddir=${ac_top_builddir}.;;
31051*)
31052 case ${ac_top_builddir}. in
31053 .) ac_abs_top_builddir=$ac_abs_builddir;;
31054 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31055 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31056 esac;;
31057esac
31058case $ac_abs_builddir in
31059.) ac_abs_srcdir=$ac_srcdir;;
31060*)
31061 case $ac_srcdir in
31062 .) ac_abs_srcdir=$ac_abs_builddir;;
31063 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31064 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31065 esac;;
31066esac
31067case $ac_abs_builddir in
31068.) ac_abs_top_srcdir=$ac_top_srcdir;;
31069*)
31070 case $ac_top_srcdir in
31071 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31072 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31073 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31074 esac;;
31075esac
Reid Spencerde8c47f2004-08-29 19:35:28 +000031076
31077
31078 case $srcdir in
31079 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
31080 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
31081 esac
31082
31083 # Try a symlink, then a hard link, then a copy.
31084 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
31085 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
31086 cp -p $srcdir/$ac_source $ac_dest ||
31087 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
31088echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
31089 { (exit 1); exit 1; }; }
31090done
31091_ACEOF
31092cat >>$CONFIG_STATUS <<\_ACEOF
31093
31094#
John Criswellc764fbc2003-09-06 15:17:13 +000031095# CONFIG_COMMANDS section.
31096#
31097for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31098 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31099 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31100 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31101$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031102 X"$ac_dest" : 'X\(//\)[^/]' \| \
31103 X"$ac_dest" : 'X\(//\)$' \| \
31104 X"$ac_dest" : 'X\(/\)' \| \
31105 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000031106echo X"$ac_dest" |
31107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31108 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31109 /^X\(\/\/\)$/{ s//\1/; q; }
31110 /^X\(\/\).*/{ s//\1/; q; }
31111 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031112 { if $as_mkdir_p; then
31113 mkdir -p "$ac_dir"
31114 else
31115 as_dir="$ac_dir"
31116 as_dirs=
31117 while test ! -d "$as_dir"; do
31118 as_dirs="$as_dir $as_dirs"
31119 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31120$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31121 X"$as_dir" : 'X\(//\)[^/]' \| \
31122 X"$as_dir" : 'X\(//\)$' \| \
31123 X"$as_dir" : 'X\(/\)' \| \
31124 . : '\(.\)' 2>/dev/null ||
31125echo X"$as_dir" |
31126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31127 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31128 /^X\(\/\/\)$/{ s//\1/; q; }
31129 /^X\(\/\).*/{ s//\1/; q; }
31130 s/.*/./; q'`
31131 done
31132 test ! -n "$as_dirs" || mkdir $as_dirs
31133 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31134echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31135 { (exit 1); exit 1; }; }; }
31136
John Criswellc764fbc2003-09-06 15:17:13 +000031137 ac_builddir=.
31138
31139if test "$ac_dir" != .; then
31140 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31141 # A "../" for each directory in $ac_dir_suffix.
31142 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31143else
31144 ac_dir_suffix= ac_top_builddir=
31145fi
31146
31147case $srcdir in
31148 .) # No --srcdir option. We are building in place.
31149 ac_srcdir=.
31150 if test -z "$ac_top_builddir"; then
31151 ac_top_srcdir=.
31152 else
31153 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31154 fi ;;
31155 [\\/]* | ?:[\\/]* ) # Absolute path.
31156 ac_srcdir=$srcdir$ac_dir_suffix;
31157 ac_top_srcdir=$srcdir ;;
31158 *) # Relative path.
31159 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31160 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31161esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031162
31163# Do not use `cd foo && pwd` to compute absolute paths, because
31164# the directories may not exist.
31165case `pwd` in
31166.) ac_abs_builddir="$ac_dir";;
31167*)
31168 case "$ac_dir" in
31169 .) ac_abs_builddir=`pwd`;;
31170 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31171 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31172 esac;;
31173esac
31174case $ac_abs_builddir in
31175.) ac_abs_top_builddir=${ac_top_builddir}.;;
31176*)
31177 case ${ac_top_builddir}. in
31178 .) ac_abs_top_builddir=$ac_abs_builddir;;
31179 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31180 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31181 esac;;
31182esac
31183case $ac_abs_builddir in
31184.) ac_abs_srcdir=$ac_srcdir;;
31185*)
31186 case $ac_srcdir in
31187 .) ac_abs_srcdir=$ac_abs_builddir;;
31188 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31189 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31190 esac;;
31191esac
31192case $ac_abs_builddir in
31193.) ac_abs_top_srcdir=$ac_top_srcdir;;
31194*)
31195 case $ac_top_srcdir in
31196 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31197 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31198 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31199 esac;;
31200esac
John Criswellc764fbc2003-09-06 15:17:13 +000031201
31202
31203 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31204echo "$as_me: executing $ac_dest commands" >&6;}
31205 case $ac_dest in
31206 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31207 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000031208 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031209 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031210 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031211 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31212 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031213 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000031214 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031215 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031216 esac
31217done
31218_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031219
31220cat >>$CONFIG_STATUS <<\_ACEOF
31221
31222{ (exit 0); exit 0; }
31223_ACEOF
31224chmod +x $CONFIG_STATUS
31225ac_clean_files=$ac_clean_files_save
31226
31227
31228# configure is writing to config.log, and then calls config.status.
31229# config.status does its own redirection, appending to config.log.
31230# Unfortunately, on DOS this fails, as config.log is still kept open
31231# by configure, so config.status won't be able to write to it; its
31232# output is simply discarded. So we exec the FD to /dev/null,
31233# effectively closing config.log, so it can be properly (re)opened and
31234# appended to by config.status. When coming back to configure, we
31235# need to make the FD available again.
31236if test "$no_create" != yes; then
31237 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031238 ac_config_status_args=
31239 test "$silent" = yes &&
31240 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000031241 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000031242 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000031243 exec 5>>config.log
31244 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31245 # would make configure fail if this is the last instruction.
31246 $ac_cs_success || { (exit 1); exit 1; }
31247fi
31248
John Criswell12399a12003-09-30 15:55:44 +000031249#
31250# CONFIG_SUBDIRS section.
31251#
31252if test "$no_recursion" != yes; then
31253
31254 # Remove --cache-file and --srcdir arguments so they do not pile up.
31255 ac_sub_configure_args=
31256 ac_prev=
31257 for ac_arg in $ac_configure_args; do
31258 if test -n "$ac_prev"; then
31259 ac_prev=
31260 continue
31261 fi
31262 case $ac_arg in
31263 -cache-file | --cache-file | --cache-fil | --cache-fi \
31264 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31265 ac_prev=cache_file ;;
31266 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31267 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31268 | --c=*)
31269 ;;
31270 --config-cache | -C)
31271 ;;
31272 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31273 ac_prev=srcdir ;;
31274 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31275 ;;
31276 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31277 ac_prev=prefix ;;
31278 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31279 ;;
31280 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31281 esac
31282 done
31283
31284 # Always prepend --prefix to ensure using the same prefix
31285 # in subdir configurations.
31286 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31287
31288 ac_popdir=`pwd`
31289 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31290
31291 # Do not complain, so a configure script can configure whichever
31292 # parts of a large source tree are present.
31293 test -d $srcdir/$ac_dir || continue
31294
31295 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31296echo "$as_me: configuring in $ac_dir" >&6;}
31297 { if $as_mkdir_p; then
31298 mkdir -p "$ac_dir"
31299 else
31300 as_dir="$ac_dir"
31301 as_dirs=
31302 while test ! -d "$as_dir"; do
31303 as_dirs="$as_dir $as_dirs"
31304 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031306 X"$as_dir" : 'X\(//\)[^/]' \| \
31307 X"$as_dir" : 'X\(//\)$' \| \
31308 X"$as_dir" : 'X\(/\)' \| \
31309 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000031310echo X"$as_dir" |
31311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31312 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31313 /^X\(\/\/\)$/{ s//\1/; q; }
31314 /^X\(\/\).*/{ s//\1/; q; }
31315 s/.*/./; q'`
31316 done
31317 test ! -n "$as_dirs" || mkdir $as_dirs
31318 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31319echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31320 { (exit 1); exit 1; }; }; }
31321
31322 ac_builddir=.
31323
31324if test "$ac_dir" != .; then
31325 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31326 # A "../" for each directory in $ac_dir_suffix.
31327 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31328else
31329 ac_dir_suffix= ac_top_builddir=
31330fi
31331
31332case $srcdir in
31333 .) # No --srcdir option. We are building in place.
31334 ac_srcdir=.
31335 if test -z "$ac_top_builddir"; then
31336 ac_top_srcdir=.
31337 else
31338 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31339 fi ;;
31340 [\\/]* | ?:[\\/]* ) # Absolute path.
31341 ac_srcdir=$srcdir$ac_dir_suffix;
31342 ac_top_srcdir=$srcdir ;;
31343 *) # Relative path.
31344 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31345 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31346esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031347
31348# Do not use `cd foo && pwd` to compute absolute paths, because
31349# the directories may not exist.
31350case `pwd` in
31351.) ac_abs_builddir="$ac_dir";;
31352*)
31353 case "$ac_dir" in
31354 .) ac_abs_builddir=`pwd`;;
31355 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31356 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31357 esac;;
31358esac
31359case $ac_abs_builddir in
31360.) ac_abs_top_builddir=${ac_top_builddir}.;;
31361*)
31362 case ${ac_top_builddir}. in
31363 .) ac_abs_top_builddir=$ac_abs_builddir;;
31364 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31365 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31366 esac;;
31367esac
31368case $ac_abs_builddir in
31369.) ac_abs_srcdir=$ac_srcdir;;
31370*)
31371 case $ac_srcdir in
31372 .) ac_abs_srcdir=$ac_abs_builddir;;
31373 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31374 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31375 esac;;
31376esac
31377case $ac_abs_builddir in
31378.) ac_abs_top_srcdir=$ac_top_srcdir;;
31379*)
31380 case $ac_top_srcdir in
31381 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31382 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31383 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31384 esac;;
31385esac
John Criswell12399a12003-09-30 15:55:44 +000031386
31387
31388 cd $ac_dir
31389
31390 # Check for guested configure; otherwise get Cygnus style configure.
31391 if test -f $ac_srcdir/configure.gnu; then
31392 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31393 elif test -f $ac_srcdir/configure; then
31394 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31395 elif test -f $ac_srcdir/configure.in; then
31396 ac_sub_configure=$ac_configure
31397 else
31398 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31399echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31400 ac_sub_configure=
31401 fi
31402
31403 # The recursion is here.
31404 if test -n "$ac_sub_configure"; then
31405 # Make the cache file name correct relative to the subdirectory.
31406 case $cache_file in
31407 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31408 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031409 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000031410 esac
31411
31412 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31413echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31414 # The eval makes quoting arguments work.
31415 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031416 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31417 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000031418echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31419 { (exit 1); exit 1; }; }
31420 fi
31421
31422 cd $ac_popdir
31423 done
31424fi
31425
Brian Gaekef3b24102003-11-16 18:38:14 +000031426
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031427if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000031428 { echo "$as_me:$LINENO: WARNING: ***** llvmgcc/llvmg++ was not found, or does not appear to be " >&5
31429echo "$as_me: WARNING: ***** llvmgcc/llvmg++ was not found, or does not appear to be " >&2;}
31430 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31431echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31432 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31433echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31434 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31435echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31436 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31437echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000031438fi