blob: a1ac7ab8d9df7f683621f6654177a95c3c011fa2 [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 Spencer0fcb9412004-11-30 08:11:54 +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 LLVMGCCDIR CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S DATE FIND GREP MKDIR MV PAX RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN PYTHON QMTEST RUNTEST tclsh 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 LLVMGCC LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +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 Spencer5e1d9a52004-11-25 04:51:04 +00001052 --with-llvmgccdir Location of LLVM GCC front-end
Reid Spencer0fcb9412004-11-30 08:11:54 +00001053 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001054 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1055 --with-pic try to use only PIC/non-PIC objects [default=use
1056 both]
1057 --with-tags[=TAGS]
1058 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001059
1060Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001061 CC C compiler command
1062 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001063 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1064 nonstandard directory <lib dir>
1065 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001067 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001068 CXX C++ compiler command
1069 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001070 CXXCPP C++ preprocessor
1071 F77 Fortran 77 compiler command
1072 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001073
1074Use these variables to override the choices made by `configure' or to help
1075it to find libraries and programs with nonstandard names/locations.
1076
1077Report bugs to <llvmbugs@cs.uiuc.edu>.
1078_ACEOF
1079fi
1080
1081if test "$ac_init_help" = "recursive"; then
1082 # If there are subdirs, report their specific --help.
1083 ac_popdir=`pwd`
1084 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1085 test -d $ac_dir || continue
1086 ac_builddir=.
1087
1088if test "$ac_dir" != .; then
1089 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1090 # A "../" for each directory in $ac_dir_suffix.
1091 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1092else
1093 ac_dir_suffix= ac_top_builddir=
1094fi
1095
1096case $srcdir in
1097 .) # No --srcdir option. We are building in place.
1098 ac_srcdir=.
1099 if test -z "$ac_top_builddir"; then
1100 ac_top_srcdir=.
1101 else
1102 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1103 fi ;;
1104 [\\/]* | ?:[\\/]* ) # Absolute path.
1105 ac_srcdir=$srcdir$ac_dir_suffix;
1106 ac_top_srcdir=$srcdir ;;
1107 *) # Relative path.
1108 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1109 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1110esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001111
1112# Do not use `cd foo && pwd` to compute absolute paths, because
1113# the directories may not exist.
1114case `pwd` in
1115.) ac_abs_builddir="$ac_dir";;
1116*)
1117 case "$ac_dir" in
1118 .) ac_abs_builddir=`pwd`;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1120 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1121 esac;;
1122esac
1123case $ac_abs_builddir in
1124.) ac_abs_top_builddir=${ac_top_builddir}.;;
1125*)
1126 case ${ac_top_builddir}. in
1127 .) ac_abs_top_builddir=$ac_abs_builddir;;
1128 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1129 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1130 esac;;
1131esac
1132case $ac_abs_builddir in
1133.) ac_abs_srcdir=$ac_srcdir;;
1134*)
1135 case $ac_srcdir in
1136 .) ac_abs_srcdir=$ac_abs_builddir;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1138 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1139 esac;;
1140esac
1141case $ac_abs_builddir in
1142.) ac_abs_top_srcdir=$ac_top_srcdir;;
1143*)
1144 case $ac_top_srcdir in
1145 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1147 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1148 esac;;
1149esac
John Criswell7a73b802003-06-30 21:59:07 +00001150
1151 cd $ac_dir
1152 # Check for guested configure; otherwise get Cygnus style configure.
1153 if test -f $ac_srcdir/configure.gnu; then
1154 echo
1155 $SHELL $ac_srcdir/configure.gnu --help=recursive
1156 elif test -f $ac_srcdir/configure; then
1157 echo
1158 $SHELL $ac_srcdir/configure --help=recursive
1159 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001160 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001161 echo
1162 $ac_configure --help
1163 else
1164 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165 fi
1166 cd $ac_popdir
1167 done
1168fi
1169
1170test -n "$ac_init_help" && exit 0
1171if $ac_init_version; then
1172 cat <<\_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +00001173llvm configure 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +00001174generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001175
Reid Spencer2706f8c2004-09-19 23:53:36 +00001176Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001177This configure script is free software; the Free Software Foundation
1178gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001179
1180$LLVM_COPYRIGHT
John Criswell7a73b802003-06-30 21:59:07 +00001181_ACEOF
1182 exit 0
1183fi
1184exec 5>config.log
1185cat >&5 <<_ACEOF
1186This file contains any messages produced by compilers while
1187running configure, to aid debugging if configure makes a mistake.
1188
Reid Spencerabec8f92004-10-27 23:03:44 +00001189It was created by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001190generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001191
1192 $ $0 $@
1193
1194_ACEOF
1195{
1196cat <<_ASUNAME
1197## --------- ##
1198## Platform. ##
1199## --------- ##
1200
1201hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1202uname -m = `(uname -m) 2>/dev/null || echo unknown`
1203uname -r = `(uname -r) 2>/dev/null || echo unknown`
1204uname -s = `(uname -s) 2>/dev/null || echo unknown`
1205uname -v = `(uname -v) 2>/dev/null || echo unknown`
1206
1207/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1208/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1209
1210/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1211/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1212/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1213hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1214/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1215/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1216/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1217
1218_ASUNAME
1219
1220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1221for as_dir in $PATH
1222do
1223 IFS=$as_save_IFS
1224 test -z "$as_dir" && as_dir=.
1225 echo "PATH: $as_dir"
1226done
1227
1228} >&5
1229
1230cat >&5 <<_ACEOF
1231
1232
1233## ----------- ##
1234## Core tests. ##
1235## ----------- ##
1236
1237_ACEOF
1238
1239
1240# Keep a trace of the command line.
1241# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001242# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001243# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001244# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001245ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001246ac_configure_args0=
1247ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001248ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001249ac_must_keep_next=false
1250for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001251do
John Criswell0c38eaf2003-09-10 15:17:25 +00001252 for ac_arg
1253 do
1254 case $ac_arg in
1255 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257 | -silent | --silent | --silen | --sile | --sil)
1258 continue ;;
1259 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1261 esac
1262 case $ac_pass in
1263 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1264 2)
1265 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1266 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001267 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001268 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001269 case $ac_arg in
1270 *=* | --config-cache | -C | -disable-* | --disable-* \
1271 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1272 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1273 | -with-* | --with-* | -without-* | --without-* | --x)
1274 case "$ac_configure_args0 " in
1275 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1276 esac
1277 ;;
1278 -* ) ac_must_keep_next=true ;;
1279 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001280 fi
1281 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1282 # Get rid of the leading space.
1283 ac_sep=" "
1284 ;;
1285 esac
1286 done
John Criswell7a73b802003-06-30 21:59:07 +00001287done
John Criswell0c38eaf2003-09-10 15:17:25 +00001288$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1289$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 +00001290
1291# When interrupted or exit'd, cleanup temporary files, and complete
1292# config.log. We remove comments because anyway the quotes in there
1293# would cause problems or look ugly.
1294# WARNING: Be sure not to use single quotes in there, as some shells,
1295# such as our DU 5.0 friend, will then `close' the trap.
1296trap 'exit_status=$?
1297 # Save into config.log some information that might help in debugging.
1298 {
1299 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001300
John Criswell7a73b802003-06-30 21:59:07 +00001301 cat <<\_ASBOX
1302## ---------------- ##
1303## Cache variables. ##
1304## ---------------- ##
1305_ASBOX
1306 echo
1307 # The following way of writing the cache mishandles newlines in values,
1308{
1309 (set) 2>&1 |
1310 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1311 *ac_space=\ *)
1312 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001313 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001315 ;;
1316 *)
1317 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001318 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001319 ;;
1320 esac;
1321}
1322 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001323
1324 cat <<\_ASBOX
1325## ----------------- ##
1326## Output variables. ##
1327## ----------------- ##
1328_ASBOX
1329 echo
1330 for ac_var in $ac_subst_vars
1331 do
1332 eval ac_val=$`echo $ac_var`
1333 echo "$ac_var='"'"'$ac_val'"'"'"
1334 done | sort
1335 echo
1336
1337 if test -n "$ac_subst_files"; then
1338 cat <<\_ASBOX
1339## ------------- ##
1340## Output files. ##
1341## ------------- ##
1342_ASBOX
1343 echo
1344 for ac_var in $ac_subst_files
1345 do
1346 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001347 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001348 done | sort
1349 echo
1350 fi
1351
John Criswell7a73b802003-06-30 21:59:07 +00001352 if test -s confdefs.h; then
1353 cat <<\_ASBOX
1354## ----------- ##
1355## confdefs.h. ##
1356## ----------- ##
1357_ASBOX
1358 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001359 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001360 echo
1361 fi
1362 test "$ac_signal" != 0 &&
1363 echo "$as_me: caught signal $ac_signal"
1364 echo "$as_me: exit $exit_status"
1365 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001366 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001367 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1368 exit $exit_status
1369 ' 0
1370for ac_signal in 1 2 13 15; do
1371 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1372done
1373ac_signal=0
1374
1375# confdefs.h avoids OS command line length limits that DEFS can exceed.
1376rm -rf conftest* confdefs.h
1377# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1378echo >confdefs.h
1379
1380# Predefined preprocessor variables.
1381
1382cat >>confdefs.h <<_ACEOF
1383#define PACKAGE_NAME "$PACKAGE_NAME"
1384_ACEOF
1385
1386
1387cat >>confdefs.h <<_ACEOF
1388#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1389_ACEOF
1390
1391
1392cat >>confdefs.h <<_ACEOF
1393#define PACKAGE_VERSION "$PACKAGE_VERSION"
1394_ACEOF
1395
1396
1397cat >>confdefs.h <<_ACEOF
1398#define PACKAGE_STRING "$PACKAGE_STRING"
1399_ACEOF
1400
1401
1402cat >>confdefs.h <<_ACEOF
1403#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1404_ACEOF
1405
1406
1407# Let the site file select an alternate cache file if it wants to.
1408# Prefer explicitly selected file to automatically selected ones.
1409if test -z "$CONFIG_SITE"; then
1410 if test "x$prefix" != xNONE; then
1411 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1412 else
1413 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1414 fi
1415fi
1416for ac_site_file in $CONFIG_SITE; do
1417 if test -r "$ac_site_file"; then
1418 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1419echo "$as_me: loading site script $ac_site_file" >&6;}
1420 sed 's/^/| /' "$ac_site_file" >&5
1421 . "$ac_site_file"
1422 fi
1423done
1424
1425if test -r "$cache_file"; then
1426 # Some versions of bash will fail to source /dev/null (special
1427 # files actually), so we avoid doing that.
1428 if test -f "$cache_file"; then
1429 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1430echo "$as_me: loading cache $cache_file" >&6;}
1431 case $cache_file in
1432 [\\/]* | ?:[\\/]* ) . $cache_file;;
1433 *) . ./$cache_file;;
1434 esac
1435 fi
1436else
1437 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1438echo "$as_me: creating cache $cache_file" >&6;}
1439 >$cache_file
1440fi
1441
1442# Check that the precious variables saved in the cache have kept the same
1443# value.
1444ac_cache_corrupted=false
1445for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001446 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001447 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1448 eval ac_new_set=\$ac_env_${ac_var}_set
1449 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1450 eval ac_new_val="\$ac_env_${ac_var}_value"
1451 case $ac_old_set,$ac_new_set in
1452 set,)
1453 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1454echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1455 ac_cache_corrupted=: ;;
1456 ,set)
1457 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1458echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1459 ac_cache_corrupted=: ;;
1460 ,);;
1461 *)
1462 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001463 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001464echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001465 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001466echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001467 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001468echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001469 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001470 fi;;
1471 esac
1472 # Pass precious variables to config.status.
1473 if test "$ac_new_set" = set; then
1474 case $ac_new_val in
1475 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1476 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1477 *) ac_arg=$ac_var=$ac_new_val ;;
1478 esac
1479 case " $ac_configure_args " in
1480 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1481 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1482 esac
1483 fi
1484done
1485if $ac_cache_corrupted; then
1486 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1487echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1488 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1489echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1490 { (exit 1); exit 1; }; }
1491fi
1492
1493ac_ext=c
1494ac_cpp='$CPP $CPPFLAGS'
1495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1497ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1524
John Criswell0c38eaf2003-09-10 15:17:25 +00001525
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001526LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1527
1528
1529
1530
1531
1532
1533
John Criswell7a73b802003-06-30 21:59:07 +00001534ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001535for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001536 if test -f $ac_dir/install-sh; then
1537 ac_aux_dir=$ac_dir
1538 ac_install_sh="$ac_aux_dir/install-sh -c"
1539 break
1540 elif test -f $ac_dir/install.sh; then
1541 ac_aux_dir=$ac_dir
1542 ac_install_sh="$ac_aux_dir/install.sh -c"
1543 break
1544 elif test -f $ac_dir/shtool; then
1545 ac_aux_dir=$ac_dir
1546 ac_install_sh="$ac_aux_dir/shtool install -c"
1547 break
1548 fi
1549done
1550if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001551 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1552echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001553 { (exit 1); exit 1; }; }
1554fi
1555ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1556ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1557ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1558
John Criswell392aaa32003-07-22 19:18:09 +00001559
Reid Spencer2706f8c2004-09-19 23:53:36 +00001560if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001561 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1562 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001563echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1564 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001565 fi
John Criswell93e1c722003-09-15 17:04:06 +00001566fi
1567
John Criswell33a911a2003-11-25 20:36:46 +00001568for i in `ls ${srcdir}/projects`
1569do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001570 if test -d ${srcdir}/projects/${i} ; then
1571 case ${i} in
1572 "CVS") ;;
1573 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001574
Reid Spencer4d68ba22004-09-07 16:35:45 +00001575subdirs="$subdirs projects/sample"
1576 ;;
1577 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001578
Reid Spencer4d68ba22004-09-07 16:35:45 +00001579subdirs="$subdirs projects/Stacker"
1580 ;;
1581 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001582
Reid Spencer4d68ba22004-09-07 16:35:45 +00001583subdirs="$subdirs projects/llvm-test"
1584 ;;
1585 "llvm-reopt")
1586
1587subdirs="$subdirs projects/llvm-reopt"
1588;;
1589 "llvm-gcc")
1590
1591subdirs="$subdirs projects/llvm-gcc"
1592 ;;
Reid Spencer641f7ef2004-09-20 22:14:56 +00001593 "Java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001594
Reid Spencer641f7ef2004-09-20 22:14:56 +00001595subdirs="$subdirs projects/Java"
1596 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001597 "llvm-tv")
1598
1599subdirs="$subdirs projects/llvm-tv"
1600 ;;
1601 "llvm-fefw")
1602
1603subdirs="$subdirs projects/llvm-fefw"
1604 ;;
John Criswelle96aa1c2004-10-28 13:35:00 +00001605 "poolalloc")
1606
1607subdirs="$subdirs projects/poolalloc"
1608 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001609 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001610 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1611echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001612 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001613 esac
John Criswell33a911a2003-11-25 20:36:46 +00001614 fi
1615done
John Criswell559a6c12003-09-30 16:31:48 +00001616
John Criswell7a73b802003-06-30 21:59:07 +00001617
1618# Make sure we can run config.sub.
1619$ac_config_sub sun4 >/dev/null 2>&1 ||
1620 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1621echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1622 { (exit 1); exit 1; }; }
1623
1624echo "$as_me:$LINENO: checking build system type" >&5
1625echo $ECHO_N "checking build system type... $ECHO_C" >&6
1626if test "${ac_cv_build+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1628else
1629 ac_cv_build_alias=$build_alias
1630test -z "$ac_cv_build_alias" &&
1631 ac_cv_build_alias=`$ac_config_guess`
1632test -z "$ac_cv_build_alias" &&
1633 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1634echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1635 { (exit 1); exit 1; }; }
1636ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1637 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1638echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1639 { (exit 1); exit 1; }; }
1640
1641fi
1642echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1643echo "${ECHO_T}$ac_cv_build" >&6
1644build=$ac_cv_build
1645build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1646build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1647build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1648
1649
1650echo "$as_me:$LINENO: checking host system type" >&5
1651echo $ECHO_N "checking host system type... $ECHO_C" >&6
1652if test "${ac_cv_host+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654else
1655 ac_cv_host_alias=$host_alias
1656test -z "$ac_cv_host_alias" &&
1657 ac_cv_host_alias=$ac_cv_build_alias
1658ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1659 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1660echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1661 { (exit 1); exit 1; }; }
1662
1663fi
1664echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1665echo "${ECHO_T}$ac_cv_host" >&6
1666host=$ac_cv_host
1667host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1668host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1669host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1670
1671
1672echo "$as_me:$LINENO: checking target system type" >&5
1673echo $ECHO_N "checking target system type... $ECHO_C" >&6
1674if test "${ac_cv_target+set}" = set; then
1675 echo $ECHO_N "(cached) $ECHO_C" >&6
1676else
1677 ac_cv_target_alias=$target_alias
1678test "x$ac_cv_target_alias" = "x" &&
1679 ac_cv_target_alias=$ac_cv_host_alias
1680ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1681 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1682echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1683 { (exit 1); exit 1; }; }
1684
1685fi
1686echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1687echo "${ECHO_T}$ac_cv_target" >&6
1688target=$ac_cv_target
1689target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1690target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1691target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1692
1693
1694# The aliases save the names the user supplied, while $host etc.
1695# will get canonicalized.
1696test -n "$target_alias" &&
1697 test "$program_prefix$program_suffix$program_transform_name" = \
1698 NONENONEs,x,x, &&
1699 program_prefix=${target_alias}-
1700
Reid Spencer73fb5482004-08-31 14:20:36 +00001701echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1702echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001703if test "${llvm_cv_platform_type+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1705else
1706 case $build in
1707 *-*-aix*) llvm_cv_platform_type="AIX" ;;
1708 *-*-cygwin*) llvm_cv_platform_type="Cygwin" ;;
1709 *-*-darwin*) llvm_cv_platform_type="Darwin" ;;
1710 *-*-freebsd*) llvm_cv_platform_type="FreeBSD" ;;
1711 *-*-interix*) llvm_cv_platform_type="Interix" ;;
1712 *-*-linux*) llvm_cv_platform_type="Linux" ;;
1713 *-*-solaris*) llvm_cv_platform_type="SunOS" ;;
1714 *-*-win32*) llvm_cv_platform_type="Win32" ;;
1715 *-*-mingw*) llvm_cv_platform_type="Win32" ;;
1716 *) llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001717esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001718fi
1719echo "$as_me:$LINENO: result: $llvm_cv_platform_type" >&5
1720echo "${ECHO_T}$llvm_cv_platform_type" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001721
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001722if test "$llvm_cv_platform_type" = "Unknown" ; then
1723 { { echo "$as_me:$LINENO: error: Operating system platform is unknown, configure can't continue" >&5
1724echo "$as_me: error: Operating system platform is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00001725 { (exit 1); exit 1; }; }
1726fi
1727
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001728OS=$llvm_cv_platform_type
1729
1730
Reid Spenceredd01b92004-11-25 06:03:14 +00001731 ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_platform_type"
Reid Spencerde8c47f2004-08-29 19:35:28 +00001732
1733
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001734case $target in
1735 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1736
1737 ;;
1738esac
Reid Spencer73fb5482004-08-31 14:20:36 +00001739
1740echo "$as_me:$LINENO: checking target architecture" >&5
1741echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001742if test "${llvm_cv_target_arch+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1744else
1745 case $target in
1746 i*86-*) llvm_cv_target_arch="x86" ;;
1747 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 ;;
2958 *) JIT=
2959 ;;
2960 esac
2961fi
2962
Reid Spencer1f319422004-11-29 04:56:35 +00002963# Check whether --enable-doxygen or --disable-doxygen was given.
2964if test "${enable_doxygen+set}" = set; then
2965 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00002966
Reid Spencer1f319422004-11-29 04:56:35 +00002967else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00002968 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00002969fi;
2970case "$enableval" in
2971 yes) ENABLE_DOXYGEN=1
2972 ;;
2973 no) ENABLE_DOXYGEN=0
2974 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00002975 default) ENABLE_DOXYGEN=0
2976 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00002977 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
2978echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
2979 { (exit 1); exit 1; }; } ;;
2980esac
2981
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002982
2983# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
2984if test "${with_llvmgccdir+set}" = set; then
2985 withval="$with_llvmgccdir"
2986 LLVMGCCDIR=$withval
2987
2988fi;
2989
2990if test "x$LLVMGCCDIR" = x ; then
2991 case "$llvm_cv_platform_type" in
2992 Linux)
2993 if test -d /home/vadve/lattner/local/x86/llvm-gcc ; then
2994 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2995
2996 fi
2997 ;;
2998 SunOS)
2999 if test -d /home/vadve/lattner/local/sparc/llvm-gcc ; then
3000 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
3001
3002 fi
3003 ;;
3004 esac
3005fi
3006
3007
3008ac_ext=c
3009ac_cpp='$CPP $CPPFLAGS'
3010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3014echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3015# On Suns, sometimes $CPP names a directory.
3016if test -n "$CPP" && test -d "$CPP"; then
3017 CPP=
3018fi
3019if test -z "$CPP"; then
3020 if test "${ac_cv_prog_CPP+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3022else
3023 # Double quotes because CPP needs to be expanded
3024 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3025 do
3026 ac_preproc_ok=false
3027for ac_c_preproc_warn_flag in '' yes
3028do
3029 # Use a header file that comes with gcc, so configuring glibc
3030 # with a fresh cross-compiler works.
3031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3032 # <limits.h> exists even on freestanding compilers.
3033 # On the NeXT, cc -E runs the code through the compiler's parser,
3034 # not just through cpp. "Syntax error" is here to catch this case.
3035 cat >conftest.$ac_ext <<_ACEOF
3036/* confdefs.h. */
3037_ACEOF
3038cat confdefs.h >>conftest.$ac_ext
3039cat >>conftest.$ac_ext <<_ACEOF
3040/* end confdefs.h. */
3041#ifdef __STDC__
3042# include <limits.h>
3043#else
3044# include <assert.h>
3045#endif
3046 Syntax error
3047_ACEOF
3048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3050 ac_status=$?
3051 grep -v '^ *+' conftest.er1 >conftest.err
3052 rm -f conftest.er1
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } >/dev/null; then
3056 if test -s conftest.err; then
3057 ac_cpp_err=$ac_c_preproc_warn_flag
3058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3059 else
3060 ac_cpp_err=
3061 fi
3062else
3063 ac_cpp_err=yes
3064fi
3065if test -z "$ac_cpp_err"; then
3066 :
3067else
3068 echo "$as_me: failed program was:" >&5
3069sed 's/^/| /' conftest.$ac_ext >&5
3070
3071 # Broken: fails on valid input.
3072continue
3073fi
3074rm -f conftest.err conftest.$ac_ext
3075
3076 # OK, works on sane cases. Now check whether non-existent headers
3077 # can be detected and how.
3078 cat >conftest.$ac_ext <<_ACEOF
3079/* confdefs.h. */
3080_ACEOF
3081cat confdefs.h >>conftest.$ac_ext
3082cat >>conftest.$ac_ext <<_ACEOF
3083/* end confdefs.h. */
3084#include <ac_nonexistent.h>
3085_ACEOF
3086if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3088 ac_status=$?
3089 grep -v '^ *+' conftest.er1 >conftest.err
3090 rm -f conftest.er1
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } >/dev/null; then
3094 if test -s conftest.err; then
3095 ac_cpp_err=$ac_c_preproc_warn_flag
3096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3097 else
3098 ac_cpp_err=
3099 fi
3100else
3101 ac_cpp_err=yes
3102fi
3103if test -z "$ac_cpp_err"; then
3104 # Broken: success on invalid input.
3105continue
3106else
3107 echo "$as_me: failed program was:" >&5
3108sed 's/^/| /' conftest.$ac_ext >&5
3109
3110 # Passes both tests.
3111ac_preproc_ok=:
3112break
3113fi
3114rm -f conftest.err conftest.$ac_ext
3115
3116done
3117# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3118rm -f conftest.err conftest.$ac_ext
3119if $ac_preproc_ok; then
3120 break
3121fi
3122
3123 done
3124 ac_cv_prog_CPP=$CPP
3125
3126fi
3127 CPP=$ac_cv_prog_CPP
3128else
3129 ac_cv_prog_CPP=$CPP
3130fi
3131echo "$as_me:$LINENO: result: $CPP" >&5
3132echo "${ECHO_T}$CPP" >&6
3133ac_preproc_ok=false
3134for ac_c_preproc_warn_flag in '' yes
3135do
3136 # Use a header file that comes with gcc, so configuring glibc
3137 # with a fresh cross-compiler works.
3138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3139 # <limits.h> exists even on freestanding compilers.
3140 # On the NeXT, cc -E runs the code through the compiler's parser,
3141 # not just through cpp. "Syntax error" is here to catch this case.
3142 cat >conftest.$ac_ext <<_ACEOF
3143/* confdefs.h. */
3144_ACEOF
3145cat confdefs.h >>conftest.$ac_ext
3146cat >>conftest.$ac_ext <<_ACEOF
3147/* end confdefs.h. */
3148#ifdef __STDC__
3149# include <limits.h>
3150#else
3151# include <assert.h>
3152#endif
3153 Syntax error
3154_ACEOF
3155if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3157 ac_status=$?
3158 grep -v '^ *+' conftest.er1 >conftest.err
3159 rm -f conftest.er1
3160 cat conftest.err >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); } >/dev/null; then
3163 if test -s conftest.err; then
3164 ac_cpp_err=$ac_c_preproc_warn_flag
3165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3166 else
3167 ac_cpp_err=
3168 fi
3169else
3170 ac_cpp_err=yes
3171fi
3172if test -z "$ac_cpp_err"; then
3173 :
3174else
3175 echo "$as_me: failed program was:" >&5
3176sed 's/^/| /' conftest.$ac_ext >&5
3177
3178 # Broken: fails on valid input.
3179continue
3180fi
3181rm -f conftest.err conftest.$ac_ext
3182
3183 # OK, works on sane cases. Now check whether non-existent headers
3184 # can be detected and how.
3185 cat >conftest.$ac_ext <<_ACEOF
3186/* confdefs.h. */
3187_ACEOF
3188cat confdefs.h >>conftest.$ac_ext
3189cat >>conftest.$ac_ext <<_ACEOF
3190/* end confdefs.h. */
3191#include <ac_nonexistent.h>
3192_ACEOF
3193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3195 ac_status=$?
3196 grep -v '^ *+' conftest.er1 >conftest.err
3197 rm -f conftest.er1
3198 cat conftest.err >&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); } >/dev/null; then
3201 if test -s conftest.err; then
3202 ac_cpp_err=$ac_c_preproc_warn_flag
3203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3204 else
3205 ac_cpp_err=
3206 fi
3207else
3208 ac_cpp_err=yes
3209fi
3210if test -z "$ac_cpp_err"; then
3211 # Broken: success on invalid input.
3212continue
3213else
3214 echo "$as_me: failed program was:" >&5
3215sed 's/^/| /' conftest.$ac_ext >&5
3216
3217 # Passes both tests.
3218ac_preproc_ok=:
3219break
3220fi
3221rm -f conftest.err conftest.$ac_ext
3222
3223done
3224# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3225rm -f conftest.err conftest.$ac_ext
3226if $ac_preproc_ok; then
3227 :
3228else
3229 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3230See \`config.log' for more details." >&5
3231echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3232See \`config.log' for more details." >&2;}
3233 { (exit 1); exit 1; }; }
3234fi
3235
John Criswell7a73b802003-06-30 21:59:07 +00003236ac_ext=c
3237ac_cpp='$CPP $CPPFLAGS'
3238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241
3242ac_ext=c
3243ac_cpp='$CPP $CPPFLAGS'
3244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247if test -n "$ac_tool_prefix"; then
3248 for ac_prog in gcc
3249 do
3250 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3251set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3252echo "$as_me:$LINENO: checking for $ac_word" >&5
3253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3254if test "${ac_cv_prog_CC+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3256else
3257 if test -n "$CC"; then
3258 ac_cv_prog_CC="$CC" # Let the user override the test.
3259else
3260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261for as_dir in $PATH
3262do
3263 IFS=$as_save_IFS
3264 test -z "$as_dir" && as_dir=.
3265 for ac_exec_ext in '' $ac_executable_extensions; do
3266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3267 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269 break 2
3270 fi
3271done
3272done
3273
3274fi
3275fi
3276CC=$ac_cv_prog_CC
3277if test -n "$CC"; then
3278 echo "$as_me:$LINENO: result: $CC" >&5
3279echo "${ECHO_T}$CC" >&6
3280else
3281 echo "$as_me:$LINENO: result: no" >&5
3282echo "${ECHO_T}no" >&6
3283fi
3284
3285 test -n "$CC" && break
3286 done
3287fi
3288if test -z "$CC"; then
3289 ac_ct_CC=$CC
3290 for ac_prog in gcc
3291do
3292 # Extract the first word of "$ac_prog", so it can be a program name with args.
3293set dummy $ac_prog; ac_word=$2
3294echo "$as_me:$LINENO: checking for $ac_word" >&5
3295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3296if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3298else
3299 if test -n "$ac_ct_CC"; then
3300 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3301else
3302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303for as_dir in $PATH
3304do
3305 IFS=$as_save_IFS
3306 test -z "$as_dir" && as_dir=.
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309 ac_cv_prog_ac_ct_CC="$ac_prog"
3310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 break 2
3312 fi
3313done
3314done
3315
3316fi
3317fi
3318ac_ct_CC=$ac_cv_prog_ac_ct_CC
3319if test -n "$ac_ct_CC"; then
3320 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3321echo "${ECHO_T}$ac_ct_CC" >&6
3322else
3323 echo "$as_me:$LINENO: result: no" >&5
3324echo "${ECHO_T}no" >&6
3325fi
3326
3327 test -n "$ac_ct_CC" && break
3328done
3329
3330 CC=$ac_ct_CC
3331fi
3332
3333
John Criswell0c38eaf2003-09-10 15:17:25 +00003334test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3335See \`config.log' for more details." >&5
3336echo "$as_me: error: no acceptable C compiler found in \$PATH
3337See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003338 { (exit 1); exit 1; }; }
3339
3340# Provide some information about the compiler.
3341echo "$as_me:$LINENO:" \
3342 "checking for C compiler version" >&5
3343ac_compiler=`set X $ac_compile; echo $2`
3344{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3345 (eval $ac_compiler --version </dev/null >&5) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }
3349{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3350 (eval $ac_compiler -v </dev/null >&5) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }
3354{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3355 (eval $ac_compiler -V </dev/null >&5) 2>&5
3356 ac_status=$?
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }
3359
3360echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3361echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3362if test "${ac_cv_c_compiler_gnu+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3364else
3365 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003366/* confdefs.h. */
3367_ACEOF
3368cat confdefs.h >>conftest.$ac_ext
3369cat >>conftest.$ac_ext <<_ACEOF
3370/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003371
John Criswell7a73b802003-06-30 21:59:07 +00003372int
3373main ()
3374{
3375#ifndef __GNUC__
3376 choke me
3377#endif
3378
3379 ;
3380 return 0;
3381}
3382_ACEOF
3383rm -f conftest.$ac_objext
3384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003385 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003386 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003387 grep -v '^ *+' conftest.er1 >conftest.err
3388 rm -f conftest.er1
3389 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003392 { ac_try='test -z "$ac_c_werror_flag"
3393 || test ! -s conftest.err'
3394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395 (eval $ac_try) 2>&5
3396 ac_status=$?
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; } &&
3399 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401 (eval $ac_try) 2>&5
3402 ac_status=$?
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; }; then
3405 ac_compiler_gnu=yes
3406else
3407 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003408sed 's/^/| /' conftest.$ac_ext >&5
3409
John Criswell7a73b802003-06-30 21:59:07 +00003410ac_compiler_gnu=no
3411fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003413ac_cv_c_compiler_gnu=$ac_compiler_gnu
3414
3415fi
3416echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3417echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3418GCC=`test $ac_compiler_gnu = yes && echo yes`
3419ac_test_CFLAGS=${CFLAGS+set}
3420ac_save_CFLAGS=$CFLAGS
3421CFLAGS="-g"
3422echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3423echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3424if test "${ac_cv_prog_cc_g+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3426else
3427 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003428/* confdefs.h. */
3429_ACEOF
3430cat confdefs.h >>conftest.$ac_ext
3431cat >>conftest.$ac_ext <<_ACEOF
3432/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003433
John Criswell7a73b802003-06-30 21:59:07 +00003434int
3435main ()
3436{
3437
3438 ;
3439 return 0;
3440}
3441_ACEOF
3442rm -f conftest.$ac_objext
3443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003444 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003445 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003446 grep -v '^ *+' conftest.er1 >conftest.err
3447 rm -f conftest.er1
3448 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003451 { ac_try='test -z "$ac_c_werror_flag"
3452 || test ! -s conftest.err'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454 (eval $ac_try) 2>&5
3455 ac_status=$?
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; } &&
3458 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460 (eval $ac_try) 2>&5
3461 ac_status=$?
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; }; then
3464 ac_cv_prog_cc_g=yes
3465else
3466 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003467sed 's/^/| /' conftest.$ac_ext >&5
3468
John Criswell7a73b802003-06-30 21:59:07 +00003469ac_cv_prog_cc_g=no
3470fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003472fi
3473echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3474echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3475if test "$ac_test_CFLAGS" = set; then
3476 CFLAGS=$ac_save_CFLAGS
3477elif test $ac_cv_prog_cc_g = yes; then
3478 if test "$GCC" = yes; then
3479 CFLAGS="-g -O2"
3480 else
3481 CFLAGS="-g"
3482 fi
3483else
3484 if test "$GCC" = yes; then
3485 CFLAGS="-O2"
3486 else
3487 CFLAGS=
3488 fi
3489fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003490echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3491echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3492if test "${ac_cv_prog_cc_stdc+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3494else
3495 ac_cv_prog_cc_stdc=no
3496ac_save_CC=$CC
3497cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003498/* confdefs.h. */
3499_ACEOF
3500cat confdefs.h >>conftest.$ac_ext
3501cat >>conftest.$ac_ext <<_ACEOF
3502/* end confdefs.h. */
3503#include <stdarg.h>
3504#include <stdio.h>
3505#include <sys/types.h>
3506#include <sys/stat.h>
3507/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3508struct buf { int x; };
3509FILE * (*rcsopen) (struct buf *, struct stat *, int);
3510static char *e (p, i)
3511 char **p;
3512 int i;
3513{
3514 return p[i];
3515}
3516static char *f (char * (*g) (char **, int), char **p, ...)
3517{
3518 char *s;
3519 va_list v;
3520 va_start (v,p);
3521 s = g (p, va_arg (v,int));
3522 va_end (v);
3523 return s;
3524}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003525
3526/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3527 function prototypes and stuff, but not '\xHH' hex character constants.
3528 These don't provoke an error unfortunately, instead are silently treated
3529 as 'x'. The following induces an error, until -std1 is added to get
3530 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3531 array size at least. It's necessary to write '\x00'==0 to get something
3532 that's true only with -std1. */
3533int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3534
John Criswell0c38eaf2003-09-10 15:17:25 +00003535int test (int i, double x);
3536struct s1 {int (*f) (int a);};
3537struct s2 {int (*f) (double a);};
3538int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3539int argc;
3540char **argv;
3541int
3542main ()
3543{
3544return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3545 ;
3546 return 0;
3547}
3548_ACEOF
3549# Don't try gcc -ansi; that turns off useful extensions and
3550# breaks some systems' header files.
3551# AIX -qlanglvl=ansi
3552# Ultrix and OSF/1 -std1
3553# HP-UX 10.20 and later -Ae
3554# HP-UX older versions -Aa -D_HPUX_SOURCE
3555# SVR4 -Xc -D__EXTENSIONS__
3556for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3557do
3558 CC="$ac_save_CC $ac_arg"
3559 rm -f conftest.$ac_objext
3560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003561 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003562 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003563 grep -v '^ *+' conftest.er1 >conftest.err
3564 rm -f conftest.er1
3565 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003568 { ac_try='test -z "$ac_c_werror_flag"
3569 || test ! -s conftest.err'
3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571 (eval $ac_try) 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; } &&
3575 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577 (eval $ac_try) 2>&5
3578 ac_status=$?
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; }; then
3581 ac_cv_prog_cc_stdc=$ac_arg
3582break
3583else
3584 echo "$as_me: failed program was:" >&5
3585sed 's/^/| /' conftest.$ac_ext >&5
3586
3587fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003588rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003589done
3590rm -f conftest.$ac_ext conftest.$ac_objext
3591CC=$ac_save_CC
3592
3593fi
3594
3595case "x$ac_cv_prog_cc_stdc" in
3596 x|xno)
3597 echo "$as_me:$LINENO: result: none needed" >&5
3598echo "${ECHO_T}none needed" >&6 ;;
3599 *)
3600 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3601echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3602 CC="$CC $ac_cv_prog_cc_stdc" ;;
3603esac
3604
John Criswell7a73b802003-06-30 21:59:07 +00003605# Some people use a C++ compiler to compile C. Since we use `exit',
3606# in C++ we need to declare it. In case someone uses the same compiler
3607# for both compiling C and C++ we need to have the C++ compiler decide
3608# the declaration of exit, since it's the most demanding environment.
3609cat >conftest.$ac_ext <<_ACEOF
3610#ifndef __cplusplus
3611 choke me
3612#endif
3613_ACEOF
3614rm -f conftest.$ac_objext
3615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003616 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003617 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003618 grep -v '^ *+' conftest.er1 >conftest.err
3619 rm -f conftest.er1
3620 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003623 { ac_try='test -z "$ac_c_werror_flag"
3624 || test ! -s conftest.err'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 (eval $ac_try) 2>&5
3627 ac_status=$?
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; } &&
3630 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 (eval $ac_try) 2>&5
3633 ac_status=$?
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; }; then
3636 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003637 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003638 'extern "C" void std::exit (int) throw (); using std::exit;' \
3639 'extern "C" void std::exit (int); using std::exit;' \
3640 'extern "C" void exit (int) throw ();' \
3641 'extern "C" void exit (int);' \
3642 'void exit (int);'
3643do
3644 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003645/* confdefs.h. */
3646_ACEOF
3647cat confdefs.h >>conftest.$ac_ext
3648cat >>conftest.$ac_ext <<_ACEOF
3649/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003650$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003651#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003652int
3653main ()
3654{
3655exit (42);
3656 ;
3657 return 0;
3658}
3659_ACEOF
3660rm -f conftest.$ac_objext
3661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003662 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003663 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003664 grep -v '^ *+' conftest.er1 >conftest.err
3665 rm -f conftest.er1
3666 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003669 { ac_try='test -z "$ac_c_werror_flag"
3670 || test ! -s conftest.err'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 (eval $ac_try) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; } &&
3676 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 (eval $ac_try) 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3682 :
3683else
3684 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003685sed 's/^/| /' conftest.$ac_ext >&5
3686
John Criswell7a73b802003-06-30 21:59:07 +00003687continue
3688fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003690 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003691/* confdefs.h. */
3692_ACEOF
3693cat confdefs.h >>conftest.$ac_ext
3694cat >>conftest.$ac_ext <<_ACEOF
3695/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003696$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003697int
3698main ()
3699{
3700exit (42);
3701 ;
3702 return 0;
3703}
3704_ACEOF
3705rm -f conftest.$ac_objext
3706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003707 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003708 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003709 grep -v '^ *+' conftest.er1 >conftest.err
3710 rm -f conftest.er1
3711 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003714 { ac_try='test -z "$ac_c_werror_flag"
3715 || test ! -s conftest.err'
3716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 (eval $ac_try) 2>&5
3718 ac_status=$?
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; } &&
3721 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 (eval $ac_try) 2>&5
3724 ac_status=$?
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; }; then
3727 break
3728else
3729 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003730sed 's/^/| /' conftest.$ac_ext >&5
3731
John Criswell7a73b802003-06-30 21:59:07 +00003732fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003734done
3735rm -f conftest*
3736if test -n "$ac_declaration"; then
3737 echo '#ifdef __cplusplus' >>confdefs.h
3738 echo $ac_declaration >>confdefs.h
3739 echo '#endif' >>confdefs.h
3740fi
3741
3742else
3743 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003744sed 's/^/| /' conftest.$ac_ext >&5
3745
John Criswell7a73b802003-06-30 21:59:07 +00003746fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003748ac_ext=c
3749ac_cpp='$CPP $CPPFLAGS'
3750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003754ac_ext=cc
3755ac_cpp='$CXXCPP $CPPFLAGS'
3756ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3759if test -n "$ac_tool_prefix"; then
3760 for ac_prog in $CCC g++
3761 do
3762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3763set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3764echo "$as_me:$LINENO: checking for $ac_word" >&5
3765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3766if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003769 if test -n "$CXX"; then
3770 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3771else
3772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003774do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3779 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 break 2
3782 fi
3783done
3784done
3785
3786fi
3787fi
3788CXX=$ac_cv_prog_CXX
3789if test -n "$CXX"; then
3790 echo "$as_me:$LINENO: result: $CXX" >&5
3791echo "${ECHO_T}$CXX" >&6
3792else
3793 echo "$as_me:$LINENO: result: no" >&5
3794echo "${ECHO_T}no" >&6
3795fi
3796
3797 test -n "$CXX" && break
3798 done
3799fi
3800if test -z "$CXX"; then
3801 ac_ct_CXX=$CXX
3802 for ac_prog in $CCC g++
3803do
3804 # Extract the first word of "$ac_prog", so it can be a program name with args.
3805set dummy $ac_prog; ac_word=$2
3806echo "$as_me:$LINENO: checking for $ac_word" >&5
3807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3808if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810else
3811 if test -n "$ac_ct_CXX"; then
3812 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3813else
3814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815for as_dir in $PATH
3816do
3817 IFS=$as_save_IFS
3818 test -z "$as_dir" && as_dir=.
3819 for ac_exec_ext in '' $ac_executable_extensions; do
3820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3821 ac_cv_prog_ac_ct_CXX="$ac_prog"
3822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3823 break 2
3824 fi
3825done
3826done
3827
3828fi
3829fi
3830ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3831if test -n "$ac_ct_CXX"; then
3832 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3833echo "${ECHO_T}$ac_ct_CXX" >&6
3834else
3835 echo "$as_me:$LINENO: result: no" >&5
3836echo "${ECHO_T}no" >&6
3837fi
3838
3839 test -n "$ac_ct_CXX" && break
3840done
3841test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3842
3843 CXX=$ac_ct_CXX
3844fi
3845
3846
3847# Provide some information about the compiler.
3848echo "$as_me:$LINENO:" \
3849 "checking for C++ compiler version" >&5
3850ac_compiler=`set X $ac_compile; echo $2`
3851{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3852 (eval $ac_compiler --version </dev/null >&5) 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }
3856{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3857 (eval $ac_compiler -v </dev/null >&5) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }
3861{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3862 (eval $ac_compiler -V </dev/null >&5) 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }
3866
3867echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3868echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3869if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3871else
John Criswell7a73b802003-06-30 21:59:07 +00003872 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003873/* confdefs.h. */
3874_ACEOF
3875cat confdefs.h >>conftest.$ac_ext
3876cat >>conftest.$ac_ext <<_ACEOF
3877/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003878
3879int
3880main ()
3881{
3882#ifndef __GNUC__
3883 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00003884#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003885
3886 ;
3887 return 0;
3888}
John Criswell7a73b802003-06-30 21:59:07 +00003889_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003890rm -f conftest.$ac_objext
3891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3892 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003893 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003894 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003895 rm -f conftest.er1
3896 cat conftest.err >&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003898 (exit $ac_status); } &&
3899 { ac_try='test -z "$ac_cxx_werror_flag"
3900 || test ! -s conftest.err'
3901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902 (eval $ac_try) 2>&5
3903 ac_status=$?
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; } &&
3906 { ac_try='test -s conftest.$ac_objext'
3907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908 (eval $ac_try) 2>&5
3909 ac_status=$?
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; }; then
3912 ac_compiler_gnu=yes
3913else
3914 echo "$as_me: failed program was:" >&5
3915sed 's/^/| /' conftest.$ac_ext >&5
3916
3917ac_compiler_gnu=no
3918fi
3919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3920ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3921
3922fi
3923echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3924echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3925GXX=`test $ac_compiler_gnu = yes && echo yes`
3926ac_test_CXXFLAGS=${CXXFLAGS+set}
3927ac_save_CXXFLAGS=$CXXFLAGS
3928CXXFLAGS="-g"
3929echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3930echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3931if test "${ac_cv_prog_cxx_g+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933else
3934 cat >conftest.$ac_ext <<_ACEOF
3935/* confdefs.h. */
3936_ACEOF
3937cat confdefs.h >>conftest.$ac_ext
3938cat >>conftest.$ac_ext <<_ACEOF
3939/* end confdefs.h. */
3940
3941int
3942main ()
3943{
3944
3945 ;
3946 return 0;
3947}
3948_ACEOF
3949rm -f conftest.$ac_objext
3950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3951 (eval $ac_compile) 2>conftest.er1
3952 ac_status=$?
3953 grep -v '^ *+' conftest.er1 >conftest.err
3954 rm -f conftest.er1
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } &&
3958 { ac_try='test -z "$ac_cxx_werror_flag"
3959 || test ! -s conftest.err'
3960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3961 (eval $ac_try) 2>&5
3962 ac_status=$?
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); }; } &&
3965 { ac_try='test -s conftest.$ac_objext'
3966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967 (eval $ac_try) 2>&5
3968 ac_status=$?
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; }; then
3971 ac_cv_prog_cxx_g=yes
3972else
3973 echo "$as_me: failed program was:" >&5
3974sed 's/^/| /' conftest.$ac_ext >&5
3975
3976ac_cv_prog_cxx_g=no
3977fi
3978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3979fi
3980echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3981echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3982if test "$ac_test_CXXFLAGS" = set; then
3983 CXXFLAGS=$ac_save_CXXFLAGS
3984elif test $ac_cv_prog_cxx_g = yes; then
3985 if test "$GXX" = yes; then
3986 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003987 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003988 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003989 fi
3990else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003991 if test "$GXX" = yes; then
3992 CXXFLAGS="-O2"
3993 else
3994 CXXFLAGS=
3995 fi
John Criswell7a73b802003-06-30 21:59:07 +00003996fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003997for ac_declaration in \
3998 '' \
3999 'extern "C" void std::exit (int) throw (); using std::exit;' \
4000 'extern "C" void std::exit (int); using std::exit;' \
4001 'extern "C" void exit (int) throw ();' \
4002 'extern "C" void exit (int);' \
4003 'void exit (int);'
4004do
4005 cat >conftest.$ac_ext <<_ACEOF
4006/* confdefs.h. */
4007_ACEOF
4008cat confdefs.h >>conftest.$ac_ext
4009cat >>conftest.$ac_ext <<_ACEOF
4010/* end confdefs.h. */
4011$ac_declaration
4012#include <stdlib.h>
4013int
4014main ()
4015{
4016exit (42);
4017 ;
4018 return 0;
4019}
4020_ACEOF
4021rm -f conftest.$ac_objext
4022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4023 (eval $ac_compile) 2>conftest.er1
4024 ac_status=$?
4025 grep -v '^ *+' conftest.er1 >conftest.err
4026 rm -f conftest.er1
4027 cat conftest.err >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try='test -z "$ac_cxx_werror_flag"
4031 || test ! -s conftest.err'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 (eval $ac_try) 2>&5
4034 ac_status=$?
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; } &&
4037 { ac_try='test -s conftest.$ac_objext'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 (eval $ac_try) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004043 :
4044else
4045 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004046sed 's/^/| /' conftest.$ac_ext >&5
4047
John Criswell7a73b802003-06-30 21:59:07 +00004048continue
4049fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004051 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004052/* confdefs.h. */
4053_ACEOF
4054cat confdefs.h >>conftest.$ac_ext
4055cat >>conftest.$ac_ext <<_ACEOF
4056/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004057$ac_declaration
4058int
4059main ()
4060{
4061exit (42);
4062 ;
4063 return 0;
4064}
John Criswell7a73b802003-06-30 21:59:07 +00004065_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004066rm -f conftest.$ac_objext
4067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4068 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004069 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004070 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004071 rm -f conftest.er1
4072 cat conftest.err >&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004074 (exit $ac_status); } &&
4075 { ac_try='test -z "$ac_cxx_werror_flag"
4076 || test ! -s conftest.err'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 (eval $ac_try) 2>&5
4079 ac_status=$?
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; } &&
4082 { ac_try='test -s conftest.$ac_objext'
4083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 (eval $ac_try) 2>&5
4085 ac_status=$?
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004088 break
John Criswell7a73b802003-06-30 21:59:07 +00004089else
4090 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004091sed 's/^/| /' conftest.$ac_ext >&5
4092
John Criswell7a73b802003-06-30 21:59:07 +00004093fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004095done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004096rm -f conftest*
4097if test -n "$ac_declaration"; then
4098 echo '#ifdef __cplusplus' >>confdefs.h
4099 echo $ac_declaration >>confdefs.h
4100 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004101fi
4102
4103ac_ext=c
4104ac_cpp='$CPP $CPPFLAGS'
4105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108
John Criswell7a73b802003-06-30 21:59:07 +00004109echo "$as_me:$LINENO: checking " >&5
4110echo $ECHO_N "checking ... $ECHO_C" >&6
4111if test "${ac_cv_has_flex+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4113else
4114 for ac_prog in flex lex
4115do
4116 # Extract the first word of "$ac_prog", so it can be a program name with args.
4117set dummy $ac_prog; ac_word=$2
4118echo "$as_me:$LINENO: checking for $ac_word" >&5
4119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4120if test "${ac_cv_prog_LEX+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4122else
4123 if test -n "$LEX"; then
4124 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4125else
4126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127for as_dir in $PATH
4128do
4129 IFS=$as_save_IFS
4130 test -z "$as_dir" && as_dir=.
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4133 ac_cv_prog_LEX="$ac_prog"
4134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4135 break 2
4136 fi
4137done
4138done
4139
4140fi
4141fi
4142LEX=$ac_cv_prog_LEX
4143if test -n "$LEX"; then
4144 echo "$as_me:$LINENO: result: $LEX" >&5
4145echo "${ECHO_T}$LEX" >&6
4146else
4147 echo "$as_me:$LINENO: result: no" >&5
4148echo "${ECHO_T}no" >&6
4149fi
4150
4151 test -n "$LEX" && break
4152done
4153test -n "$LEX" || LEX=":"
4154
4155if test -z "$LEXLIB"
4156then
4157 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4158echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4159if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4161else
4162 ac_check_lib_save_LIBS=$LIBS
4163LIBS="-lfl $LIBS"
4164cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004165/* confdefs.h. */
4166_ACEOF
4167cat confdefs.h >>conftest.$ac_ext
4168cat >>conftest.$ac_ext <<_ACEOF
4169/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004170
4171/* Override any gcc2 internal prototype to avoid an error. */
4172#ifdef __cplusplus
4173extern "C"
4174#endif
4175/* We use char because int might match the return type of a gcc2
4176 builtin and then its argument prototype would still apply. */
4177char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004178int
4179main ()
4180{
4181yywrap ();
4182 ;
4183 return 0;
4184}
4185_ACEOF
4186rm -f conftest.$ac_objext conftest$ac_exeext
4187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004188 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004189 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004190 grep -v '^ *+' conftest.er1 >conftest.err
4191 rm -f conftest.er1
4192 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004195 { ac_try='test -z "$ac_c_werror_flag"
4196 || test ! -s conftest.err'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198 (eval $ac_try) 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; } &&
4202 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204 (eval $ac_try) 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; }; then
4208 ac_cv_lib_fl_yywrap=yes
4209else
4210 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004211sed 's/^/| /' conftest.$ac_ext >&5
4212
John Criswell7a73b802003-06-30 21:59:07 +00004213ac_cv_lib_fl_yywrap=no
4214fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004215rm -f conftest.err conftest.$ac_objext \
4216 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004217LIBS=$ac_check_lib_save_LIBS
4218fi
4219echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4220echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4221if test $ac_cv_lib_fl_yywrap = yes; then
4222 LEXLIB="-lfl"
4223else
4224 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4225echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4226if test "${ac_cv_lib_l_yywrap+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4228else
4229 ac_check_lib_save_LIBS=$LIBS
4230LIBS="-ll $LIBS"
4231cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004232/* confdefs.h. */
4233_ACEOF
4234cat confdefs.h >>conftest.$ac_ext
4235cat >>conftest.$ac_ext <<_ACEOF
4236/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004237
4238/* Override any gcc2 internal prototype to avoid an error. */
4239#ifdef __cplusplus
4240extern "C"
4241#endif
4242/* We use char because int might match the return type of a gcc2
4243 builtin and then its argument prototype would still apply. */
4244char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004245int
4246main ()
4247{
4248yywrap ();
4249 ;
4250 return 0;
4251}
4252_ACEOF
4253rm -f conftest.$ac_objext conftest$ac_exeext
4254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004255 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004256 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004257 grep -v '^ *+' conftest.er1 >conftest.err
4258 rm -f conftest.er1
4259 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004262 { ac_try='test -z "$ac_c_werror_flag"
4263 || test ! -s conftest.err'
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265 (eval $ac_try) 2>&5
4266 ac_status=$?
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; } &&
4269 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271 (eval $ac_try) 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 ac_cv_lib_l_yywrap=yes
4276else
4277 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004278sed 's/^/| /' conftest.$ac_ext >&5
4279
John Criswell7a73b802003-06-30 21:59:07 +00004280ac_cv_lib_l_yywrap=no
4281fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004282rm -f conftest.err conftest.$ac_objext \
4283 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004284LIBS=$ac_check_lib_save_LIBS
4285fi
4286echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4287echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4288if test $ac_cv_lib_l_yywrap = yes; then
4289 LEXLIB="-ll"
4290fi
4291
4292fi
4293
4294fi
4295
4296if test "x$LEX" != "x:"; then
4297 echo "$as_me:$LINENO: checking lex output file root" >&5
4298echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4299if test "${ac_cv_prog_lex_root+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4301else
4302 # The minimal lex program is just a single line: %%. But some broken lexes
4303# (Solaris, I think it was) want two %% lines, so accommodate them.
4304cat >conftest.l <<_ACEOF
4305%%
4306%%
4307_ACEOF
4308{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4309 (eval $LEX conftest.l) 2>&5
4310 ac_status=$?
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }
4313if test -f lex.yy.c; then
4314 ac_cv_prog_lex_root=lex.yy
4315elif test -f lexyy.c; then
4316 ac_cv_prog_lex_root=lexyy
4317else
4318 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4319echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4320 { (exit 1); exit 1; }; }
4321fi
4322fi
4323echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4324echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4325rm -f conftest.l
4326LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4327
4328echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4329echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4330if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4332else
4333 # POSIX says lex can declare yytext either as a pointer or an array; the
4334# default is implementation-dependent. Figure out which it is, since
4335# not all implementations provide the %pointer and %array declarations.
4336ac_cv_prog_lex_yytext_pointer=no
4337echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4338ac_save_LIBS=$LIBS
4339LIBS="$LIBS $LEXLIB"
4340cat >conftest.$ac_ext <<_ACEOF
4341`cat $LEX_OUTPUT_ROOT.c`
4342_ACEOF
4343rm -f conftest.$ac_objext conftest$ac_exeext
4344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004345 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004346 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004347 grep -v '^ *+' conftest.er1 >conftest.err
4348 rm -f conftest.er1
4349 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004352 { ac_try='test -z "$ac_c_werror_flag"
4353 || test ! -s conftest.err'
4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355 (eval $ac_try) 2>&5
4356 ac_status=$?
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; } &&
4359 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 (eval $ac_try) 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 ac_cv_prog_lex_yytext_pointer=yes
4366else
4367 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004368sed 's/^/| /' conftest.$ac_ext >&5
4369
John Criswell7a73b802003-06-30 21:59:07 +00004370fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004371rm -f conftest.err conftest.$ac_objext \
4372 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004373LIBS=$ac_save_LIBS
4374rm -f "${LEX_OUTPUT_ROOT}.c"
4375
4376fi
4377echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4378echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4379if test $ac_cv_prog_lex_yytext_pointer = yes; then
4380
4381cat >>confdefs.h <<\_ACEOF
4382#define YYTEXT_POINTER 1
4383_ACEOF
4384
4385fi
4386
4387fi
4388
4389fi
4390echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4391echo "${ECHO_T}$ac_cv_has_flex" >&6
4392if test "$LEX" != "flex"; then
4393 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4394echo "$as_me: error: flex not found but required" >&2;}
4395 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004396else
4397 FLEX=flex
4398
John Criswell7a73b802003-06-30 21:59:07 +00004399fi
4400
4401echo "$as_me:$LINENO: checking " >&5
4402echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004403if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004404 echo $ECHO_N "(cached) $ECHO_C" >&6
4405else
4406 for ac_prog in 'bison -y' byacc
4407do
4408 # Extract the first word of "$ac_prog", so it can be a program name with args.
4409set dummy $ac_prog; ac_word=$2
4410echo "$as_me:$LINENO: checking for $ac_word" >&5
4411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4412if test "${ac_cv_prog_YACC+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4414else
4415 if test -n "$YACC"; then
4416 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4417else
4418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419for as_dir in $PATH
4420do
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4425 ac_cv_prog_YACC="$ac_prog"
4426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 break 2
4428 fi
4429done
4430done
4431
4432fi
4433fi
4434YACC=$ac_cv_prog_YACC
4435if test -n "$YACC"; then
4436 echo "$as_me:$LINENO: result: $YACC" >&5
4437echo "${ECHO_T}$YACC" >&6
4438else
4439 echo "$as_me:$LINENO: result: no" >&5
4440echo "${ECHO_T}no" >&6
4441fi
4442
4443 test -n "$YACC" && break
4444done
4445test -n "$YACC" || YACC="yacc"
4446
4447
4448fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004449echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4450echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004451if test "$YACC" != "bison -y"; then
4452 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4453echo "$as_me: error: bison not found but required" >&2;}
4454 { (exit 1); exit 1; }; }
4455else
Brian Gaeke12810632004-01-13 06:52:10 +00004456 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004457
4458fi
4459
Reid Spencer17795972004-11-18 09:47:37 +00004460
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004461echo "$as_me:$LINENO: checking for GNU make" >&5
4462echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4463if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004464 echo $ECHO_N "(cached) $ECHO_C" >&6
4465else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004466 llvm_cv_gnu_make_command=''
4467 for a in "$MAKE" make gmake gnumake ; do
4468 if test -z "$a" ; then continue ; fi ;
4469 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4470 then
4471 llvm_cv_gnu_make_command=$a ;
4472 break;
John Criswell47fdd832003-07-14 16:52:07 +00004473 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004474 done
John Criswell7a73b802003-06-30 21:59:07 +00004475fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004476echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4477echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4478 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4479 ifGNUmake='' ;
4480 else
4481 ifGNUmake='#' ;
4482 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4483echo "${ECHO_T}\"Not found\"" >&6;
4484 fi
John Criswell7a73b802003-06-30 21:59:07 +00004485
John Criswell7a73b802003-06-30 21:59:07 +00004486
4487echo "$as_me:$LINENO: checking whether ln -s works" >&5
4488echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4489LN_S=$as_ln_s
4490if test "$LN_S" = "ln -s"; then
4491 echo "$as_me:$LINENO: result: yes" >&5
4492echo "${ECHO_T}yes" >&6
4493else
4494 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4495echo "${ECHO_T}no, using $LN_S" >&6
4496fi
4497
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004498# Extract the first word of "date", so it can be a program name with args.
4499set dummy date; ac_word=$2
4500echo "$as_me:$LINENO: checking for $ac_word" >&5
4501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4502if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004503 echo $ECHO_N "(cached) $ECHO_C" >&6
4504else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004505 case $DATE in
4506 [\\/]* | ?:[\\/]*)
4507 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004508 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004509 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511for as_dir in $PATH
4512do
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004520 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004521done
4522done
John Criswell7a73b802003-06-30 21:59:07 +00004523
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004524 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004525 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004526esac
John Criswell7a73b802003-06-30 21:59:07 +00004527fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004528DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004529
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004530if test -n "$DATE"; then
4531 echo "$as_me:$LINENO: result: $DATE" >&5
4532echo "${ECHO_T}$DATE" >&6
4533else
4534 echo "$as_me:$LINENO: result: no" >&5
4535echo "${ECHO_T}no" >&6
4536fi
John Criswell7a73b802003-06-30 21:59:07 +00004537
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004538# Extract the first word of "find", so it can be a program name with args.
4539set dummy find; ac_word=$2
4540echo "$as_me:$LINENO: checking for $ac_word" >&5
4541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4542if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004545 case $FIND in
4546 [\\/]* | ?:[\\/]*)
4547 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4548 ;;
4549 *)
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551for as_dir in $PATH
4552do
4553 IFS=$as_save_IFS
4554 test -z "$as_dir" && as_dir=.
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4557 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 break 2
4560 fi
4561done
4562done
4563
4564 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4565 ;;
4566esac
4567fi
4568FIND=$ac_cv_path_FIND
4569
4570if test -n "$FIND"; then
4571 echo "$as_me:$LINENO: result: $FIND" >&5
4572echo "${ECHO_T}$FIND" >&6
4573else
4574 echo "$as_me:$LINENO: result: no" >&5
4575echo "${ECHO_T}no" >&6
4576fi
4577
4578# Extract the first word of "grep", so it can be a program name with args.
4579set dummy grep; ac_word=$2
4580echo "$as_me:$LINENO: checking for $ac_word" >&5
4581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4582if test "${ac_cv_path_GREP+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4584else
4585 case $GREP in
4586 [\\/]* | ?:[\\/]*)
4587 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4588 ;;
4589 *)
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591for as_dir in $PATH
4592do
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4600 fi
4601done
4602done
4603
4604 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4605 ;;
4606esac
4607fi
4608GREP=$ac_cv_path_GREP
4609
4610if test -n "$GREP"; then
4611 echo "$as_me:$LINENO: result: $GREP" >&5
4612echo "${ECHO_T}$GREP" >&6
4613else
4614 echo "$as_me:$LINENO: result: no" >&5
4615echo "${ECHO_T}no" >&6
4616fi
4617
4618# Extract the first word of "mkdir", so it can be a program name with args.
4619set dummy mkdir; ac_word=$2
4620echo "$as_me:$LINENO: checking for $ac_word" >&5
4621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4622if test "${ac_cv_path_MKDIR+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624else
4625 case $MKDIR in
4626 [\\/]* | ?:[\\/]*)
4627 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4628 ;;
4629 *)
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631for as_dir in $PATH
4632do
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4637 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 break 2
4640 fi
4641done
4642done
4643
4644 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4645 ;;
4646esac
4647fi
4648MKDIR=$ac_cv_path_MKDIR
4649
4650if test -n "$MKDIR"; then
4651 echo "$as_me:$LINENO: result: $MKDIR" >&5
4652echo "${ECHO_T}$MKDIR" >&6
4653else
4654 echo "$as_me:$LINENO: result: no" >&5
4655echo "${ECHO_T}no" >&6
4656fi
4657
4658# Extract the first word of "mv", so it can be a program name with args.
4659set dummy mv; ac_word=$2
4660echo "$as_me:$LINENO: checking for $ac_word" >&5
4661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4662if test "${ac_cv_path_MV+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4664else
4665 case $MV in
4666 [\\/]* | ?:[\\/]*)
4667 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4668 ;;
4669 *)
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671for as_dir in $PATH
4672do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4680 fi
4681done
4682done
4683
4684 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4685 ;;
4686esac
4687fi
4688MV=$ac_cv_path_MV
4689
4690if test -n "$MV"; then
4691 echo "$as_me:$LINENO: result: $MV" >&5
4692echo "${ECHO_T}$MV" >&6
4693else
4694 echo "$as_me:$LINENO: result: no" >&5
4695echo "${ECHO_T}no" >&6
4696fi
4697
4698# Extract the first word of "pax", so it can be a program name with args.
4699set dummy pax; ac_word=$2
4700echo "$as_me:$LINENO: checking for $ac_word" >&5
4701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4702if test "${ac_cv_path_PAX+set}" = set; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4704else
4705 case $PAX in
4706 [\\/]* | ?:[\\/]*)
4707 ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4708 ;;
4709 *)
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711for as_dir in $PATH
4712do
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4717 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 break 2
4720 fi
4721done
4722done
4723
4724 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4725 ;;
4726esac
4727fi
4728PAX=$ac_cv_path_PAX
4729
4730if test -n "$PAX"; then
4731 echo "$as_me:$LINENO: result: $PAX" >&5
4732echo "${ECHO_T}$PAX" >&6
4733else
4734 echo "$as_me:$LINENO: result: no" >&5
4735echo "${ECHO_T}no" >&6
4736fi
4737
4738if test -n "$ac_tool_prefix"; then
4739 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4740set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4741echo "$as_me:$LINENO: checking for $ac_word" >&5
4742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4743if test "${ac_cv_prog_RANLIB+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4745else
4746 if test -n "$RANLIB"; then
4747 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4748else
4749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH
4751do
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4759 fi
4760done
4761done
4762
4763fi
4764fi
4765RANLIB=$ac_cv_prog_RANLIB
4766if test -n "$RANLIB"; then
4767 echo "$as_me:$LINENO: result: $RANLIB" >&5
4768echo "${ECHO_T}$RANLIB" >&6
4769else
4770 echo "$as_me:$LINENO: result: no" >&5
4771echo "${ECHO_T}no" >&6
4772fi
4773
4774fi
4775if test -z "$ac_cv_prog_RANLIB"; then
4776 ac_ct_RANLIB=$RANLIB
4777 # Extract the first word of "ranlib", so it can be a program name with args.
4778set dummy ranlib; ac_word=$2
4779echo "$as_me:$LINENO: checking for $ac_word" >&5
4780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4783else
4784 if test -n "$ac_ct_RANLIB"; then
4785 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4786else
4787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788for as_dir in $PATH
4789do
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794 ac_cv_prog_ac_ct_RANLIB="ranlib"
4795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 break 2
4797 fi
4798done
4799done
4800
4801 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4802fi
4803fi
4804ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4805if test -n "$ac_ct_RANLIB"; then
4806 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4807echo "${ECHO_T}$ac_ct_RANLIB" >&6
4808else
4809 echo "$as_me:$LINENO: result: no" >&5
4810echo "${ECHO_T}no" >&6
4811fi
4812
4813 RANLIB=$ac_ct_RANLIB
4814else
4815 RANLIB="$ac_cv_prog_RANLIB"
4816fi
4817
4818# Extract the first word of "rm", so it can be a program name with args.
4819set dummy rm; ac_word=$2
4820echo "$as_me:$LINENO: checking for $ac_word" >&5
4821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4822if test "${ac_cv_path_RM+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4824else
4825 case $RM in
4826 [\\/]* | ?:[\\/]*)
4827 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4828 ;;
4829 *)
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831for as_dir in $PATH
4832do
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4837 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4840 fi
4841done
4842done
4843
4844 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4845 ;;
4846esac
4847fi
4848RM=$ac_cv_path_RM
4849
4850if test -n "$RM"; then
4851 echo "$as_me:$LINENO: result: $RM" >&5
4852echo "${ECHO_T}$RM" >&6
4853else
4854 echo "$as_me:$LINENO: result: no" >&5
4855echo "${ECHO_T}no" >&6
4856fi
4857
4858# Extract the first word of "sed", so it can be a program name with args.
4859set dummy sed; ac_word=$2
4860echo "$as_me:$LINENO: checking for $ac_word" >&5
4861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4862if test "${ac_cv_path_SED+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864else
4865 case $SED in
4866 [\\/]* | ?:[\\/]*)
4867 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4868 ;;
4869 *)
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871for as_dir in $PATH
4872do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4880 fi
4881done
4882done
4883
4884 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4885 ;;
4886esac
4887fi
4888SED=$ac_cv_path_SED
4889
4890if test -n "$SED"; then
4891 echo "$as_me:$LINENO: result: $SED" >&5
4892echo "${ECHO_T}$SED" >&6
4893else
4894 echo "$as_me:$LINENO: result: no" >&5
4895echo "${ECHO_T}no" >&6
4896fi
4897
4898# Extract the first word of "tar", so it can be a program name with args.
4899set dummy tar; ac_word=$2
4900echo "$as_me:$LINENO: checking for $ac_word" >&5
4901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4902if test "${ac_cv_path_TAR+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4904else
4905 case $TAR in
4906 [\\/]* | ?:[\\/]*)
4907 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4908 ;;
4909 *)
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911for as_dir in $PATH
4912do
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4917 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 break 2
4920 fi
4921done
4922done
4923
4924 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
4925 ;;
4926esac
4927fi
4928TAR=$ac_cv_path_TAR
4929
4930if test -n "$TAR"; then
4931 echo "$as_me:$LINENO: result: $TAR" >&5
4932echo "${ECHO_T}$TAR" >&6
4933else
4934 echo "$as_me:$LINENO: result: no" >&5
4935echo "${ECHO_T}no" >&6
4936fi
4937
4938
4939# Find a good install program. We prefer a C program (faster),
4940# so one script is as good as another. But avoid the broken or
4941# incompatible versions:
4942# SysV /etc/install, /usr/sbin/install
4943# SunOS /usr/etc/install
4944# IRIX /sbin/install
4945# AIX /bin/install
4946# AmigaOS /C/install, which installs bootblocks on floppy discs
4947# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4948# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4949# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4950# OS/2's system install, which has a completely different semantic
4951# ./install, which can be erroneously created by make from ./install.sh.
4952echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4953echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4954if test -z "$INSTALL"; then
4955if test "${ac_cv_path_install+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4957else
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959for as_dir in $PATH
4960do
4961 IFS=$as_save_IFS
4962 test -z "$as_dir" && as_dir=.
4963 # Account for people who put trailing slashes in PATH elements.
4964case $as_dir/ in
4965 ./ | .// | /cC/* | \
4966 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4967 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4968 /usr/ucb/* ) ;;
4969 *)
4970 # OSF1 and SCO ODT 3.0 have their own names for install.
4971 # Don't use installbsd from OSF since it installs stuff as root
4972 # by default.
4973 for ac_prog in ginstall scoinst install; do
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4976 if test $ac_prog = install &&
4977 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4978 # AIX install. It has an incompatible calling convention.
4979 :
4980 elif test $ac_prog = install &&
4981 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4982 # program-specific install script used by HP pwplus--don't use.
4983 :
4984 else
4985 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4986 break 3
4987 fi
4988 fi
4989 done
4990 done
4991 ;;
4992esac
4993done
4994
4995
4996fi
4997 if test "${ac_cv_path_install+set}" = set; then
4998 INSTALL=$ac_cv_path_install
4999 else
5000 # As a last resort, use the slow shell script. We don't cache a
5001 # path for INSTALL within a source directory, because that will
5002 # break other packages using the cache if that directory is
5003 # removed, or if the path is relative.
5004 INSTALL=$ac_install_sh
5005 fi
5006fi
5007echo "$as_me:$LINENO: result: $INSTALL" >&5
5008echo "${ECHO_T}$INSTALL" >&6
5009
5010# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5011# It thinks the first close brace ends the variable substitution.
5012test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5013
5014test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5015
5016test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5017
5018
5019# Extract the first word of "bzip2", so it can be a program name with args.
5020set dummy bzip2; ac_word=$2
5021echo "$as_me:$LINENO: checking for $ac_word" >&5
5022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5023if test "${ac_cv_path_BZIP2+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5025else
5026 case $BZIP2 in
5027 [\\/]* | ?:[\\/]*)
5028 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5029 ;;
5030 *)
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032for as_dir in $PATH
5033do
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5038 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 break 2
5041 fi
5042done
5043done
5044
5045 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5046 ;;
5047esac
5048fi
5049BZIP2=$ac_cv_path_BZIP2
5050
5051if test -n "$BZIP2"; then
5052 echo "$as_me:$LINENO: result: $BZIP2" >&5
5053echo "${ECHO_T}$BZIP2" >&6
5054else
5055 echo "$as_me:$LINENO: result: no" >&5
5056echo "${ECHO_T}no" >&6
5057fi
5058
5059# Extract the first word of "dot", so it can be a program name with args.
5060set dummy dot; ac_word=$2
5061echo "$as_me:$LINENO: checking for $ac_word" >&5
5062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5063if test "${ac_cv_path_DOT+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5065else
5066 case $DOT in
5067 [\\/]* | ?:[\\/]*)
5068 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5069 ;;
5070 *)
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072for as_dir in $PATH
5073do
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 break 2
5081 fi
5082done
5083done
5084
5085 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5086 ;;
5087esac
5088fi
5089DOT=$ac_cv_path_DOT
5090
5091if test -n "$DOT"; then
5092 echo "$as_me:$LINENO: result: $DOT" >&5
5093echo "${ECHO_T}$DOT" >&6
5094else
5095 echo "$as_me:$LINENO: result: no" >&5
5096echo "${ECHO_T}no" >&6
5097fi
5098
5099# Extract the first word of "doxygen", so it can be a program name with args.
5100set dummy doxygen; ac_word=$2
5101echo "$as_me:$LINENO: checking for $ac_word" >&5
5102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5103if test "${ac_cv_path_DOXYGEN+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5105else
5106 case $DOXYGEN in
5107 [\\/]* | ?:[\\/]*)
5108 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5109 ;;
5110 *)
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112for as_dir in $PATH
5113do
5114 IFS=$as_save_IFS
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5118 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 break 2
5121 fi
5122done
5123done
5124
5125 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5126 ;;
5127esac
5128fi
5129DOXYGEN=$ac_cv_path_DOXYGEN
5130
5131if test -n "$DOXYGEN"; then
5132 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5133echo "${ECHO_T}$DOXYGEN" >&6
5134else
5135 echo "$as_me:$LINENO: result: no" >&5
5136echo "${ECHO_T}no" >&6
5137fi
5138
5139# Extract the first word of "etags", so it can be a program name with args.
5140set dummy etags; ac_word=$2
5141echo "$as_me:$LINENO: checking for $ac_word" >&5
5142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5143if test "${ac_cv_path_ETAGS+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5145else
5146 case $ETAGS in
5147 [\\/]* | ?:[\\/]*)
5148 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5149 ;;
5150 *)
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152for as_dir in $PATH
5153do
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 break 2
5161 fi
5162done
5163done
5164
5165 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5166 ;;
5167esac
5168fi
5169ETAGS=$ac_cv_path_ETAGS
5170
5171if test -n "$ETAGS"; then
5172 echo "$as_me:$LINENO: result: $ETAGS" >&5
5173echo "${ECHO_T}$ETAGS" >&6
5174else
5175 echo "$as_me:$LINENO: result: no" >&5
5176echo "${ECHO_T}no" >&6
5177fi
5178
5179# Extract the first word of "groff", so it can be a program name with args.
5180set dummy groff; ac_word=$2
5181echo "$as_me:$LINENO: checking for $ac_word" >&5
5182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183if test "${ac_cv_path_GROFF+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185else
5186 case $GROFF in
5187 [\\/]* | ?:[\\/]*)
5188 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5189 ;;
5190 *)
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192for as_dir in $PATH
5193do
5194 IFS=$as_save_IFS
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 break 2
5201 fi
5202done
5203done
5204
5205 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5206 ;;
5207esac
5208fi
5209GROFF=$ac_cv_path_GROFF
5210
5211if test -n "$GROFF"; then
5212 echo "$as_me:$LINENO: result: $GROFF" >&5
5213echo "${ECHO_T}$GROFF" >&6
5214else
5215 echo "$as_me:$LINENO: result: no" >&5
5216echo "${ECHO_T}no" >&6
5217fi
5218
5219# Extract the first word of "gzip", so it can be a program name with args.
5220set dummy gzip; ac_word=$2
5221echo "$as_me:$LINENO: checking for $ac_word" >&5
5222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5223if test "${ac_cv_path_GZIP+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5225else
5226 case $GZIP in
5227 [\\/]* | ?:[\\/]*)
5228 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5229 ;;
5230 *)
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232for as_dir in $PATH
5233do
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 break 2
5241 fi
5242done
5243done
5244
5245 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5246 ;;
5247esac
5248fi
5249GZIP=$ac_cv_path_GZIP
5250
5251if test -n "$GZIP"; then
5252 echo "$as_me:$LINENO: result: $GZIP" >&5
5253echo "${ECHO_T}$GZIP" >&6
5254else
5255 echo "$as_me:$LINENO: result: no" >&5
5256echo "${ECHO_T}no" >&6
5257fi
5258
5259# Extract the first word of "pod2html", so it can be a program name with args.
5260set dummy pod2html; ac_word=$2
5261echo "$as_me:$LINENO: checking for $ac_word" >&5
5262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5263if test "${ac_cv_path_POD2HTML+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5265else
5266 case $POD2HTML in
5267 [\\/]* | ?:[\\/]*)
5268 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5269 ;;
5270 *)
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272for as_dir in $PATH
5273do
5274 IFS=$as_save_IFS
5275 test -z "$as_dir" && as_dir=.
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5278 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5280 break 2
5281 fi
5282done
5283done
5284
5285 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5286 ;;
5287esac
5288fi
5289POD2HTML=$ac_cv_path_POD2HTML
5290
5291if test -n "$POD2HTML"; then
5292 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5293echo "${ECHO_T}$POD2HTML" >&6
5294else
5295 echo "$as_me:$LINENO: result: no" >&5
5296echo "${ECHO_T}no" >&6
5297fi
5298
5299# Extract the first word of "pod2man", so it can be a program name with args.
5300set dummy pod2man; ac_word=$2
5301echo "$as_me:$LINENO: checking for $ac_word" >&5
5302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5303if test "${ac_cv_path_POD2MAN+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5305else
5306 case $POD2MAN in
5307 [\\/]* | ?:[\\/]*)
5308 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5309 ;;
5310 *)
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312for as_dir in $PATH
5313do
5314 IFS=$as_save_IFS
5315 test -z "$as_dir" && as_dir=.
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5318 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5320 break 2
5321 fi
5322done
5323done
5324
5325 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5326 ;;
5327esac
5328fi
5329POD2MAN=$ac_cv_path_POD2MAN
5330
5331if test -n "$POD2MAN"; then
5332 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5333echo "${ECHO_T}$POD2MAN" >&6
5334else
5335 echo "$as_me:$LINENO: result: no" >&5
5336echo "${ECHO_T}no" >&6
5337fi
5338
5339# Extract the first word of "python", so it can be a program name with args.
5340set dummy python; ac_word=$2
5341echo "$as_me:$LINENO: checking for $ac_word" >&5
5342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5343if test "${ac_cv_path_PYTHON+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5345else
5346 case $PYTHON in
5347 [\\/]* | ?:[\\/]*)
5348 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5349 ;;
5350 *)
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352for as_dir in $PATH
5353do
5354 IFS=$as_save_IFS
5355 test -z "$as_dir" && as_dir=.
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5358 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 break 2
5361 fi
5362done
5363done
5364
5365 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
5366 ;;
5367esac
5368fi
5369PYTHON=$ac_cv_path_PYTHON
5370
5371if test -n "$PYTHON"; then
5372 echo "$as_me:$LINENO: result: $PYTHON" >&5
5373echo "${ECHO_T}$PYTHON" >&6
5374else
5375 echo "$as_me:$LINENO: result: no" >&5
5376echo "${ECHO_T}no" >&6
5377fi
5378
5379# Extract the first word of "qmtest", so it can be a program name with args.
5380set dummy qmtest; ac_word=$2
5381echo "$as_me:$LINENO: checking for $ac_word" >&5
5382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5383if test "${ac_cv_path_QMTEST+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5385else
5386 case $QMTEST in
5387 [\\/]* | ?:[\\/]*)
5388 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
5389 ;;
5390 *)
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392for as_dir in $PATH
5393do
5394 IFS=$as_save_IFS
5395 test -z "$as_dir" && as_dir=.
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5398 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
5399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 break 2
5401 fi
5402done
5403done
5404
5405 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
5406 ;;
5407esac
5408fi
5409QMTEST=$ac_cv_path_QMTEST
5410
5411if test -n "$QMTEST"; then
5412 echo "$as_me:$LINENO: result: $QMTEST" >&5
5413echo "${ECHO_T}$QMTEST" >&6
5414else
5415 echo "$as_me:$LINENO: result: no" >&5
5416echo "${ECHO_T}no" >&6
5417fi
5418
5419# Extract the first word of "runtest", so it can be a program name with args.
5420set dummy runtest; ac_word=$2
5421echo "$as_me:$LINENO: checking for $ac_word" >&5
5422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5423if test "${ac_cv_path_RUNTEST+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5425else
5426 case $RUNTEST in
5427 [\\/]* | ?:[\\/]*)
5428 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5429 ;;
5430 *)
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432for as_dir in $PATH
5433do
5434 IFS=$as_save_IFS
5435 test -z "$as_dir" && as_dir=.
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 break 2
5441 fi
5442done
5443done
5444
5445 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5446 ;;
5447esac
5448fi
5449RUNTEST=$ac_cv_path_RUNTEST
5450
5451if test -n "$RUNTEST"; then
5452 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5453echo "${ECHO_T}$RUNTEST" >&6
5454else
5455 echo "$as_me:$LINENO: result: no" >&5
5456echo "${ECHO_T}no" >&6
5457fi
5458
Reid Spencer0fcb9412004-11-30 08:11:54 +00005459
5460dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../
5461../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../..
5462/../../../../../.."
5463no_itcl=true
5464echo "$as_me:$LINENO: checking for the tclsh program" >&5
5465echo $ECHO_N "checking for the tclsh program... $ECHO_C" >&6
5466
5467# Check whether --with-tclinclude or --without-tclinclude was given.
5468if test "${with_tclinclude+set}" = set; then
5469 withval="$with_tclinclude"
5470 with_tclinclude=${withval}
5471fi;
5472if test "${ac_cv_path_tclsh+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5474else
5475
5476if test x"${with_tclinclude}" != x ; then
5477 if test -f ${with_tclinclude}/tclsh ; then
5478 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5479 elif test -f ${with_tclinclude}/src/tclsh ; then
5480 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5481 else
5482 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5483echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5484 { (exit 1); exit 1; }; }
5485 fi
5486fi
5487
5488fi
5489
5490
5491if test x"${ac_cv_path_tclsh}" = x ; then
5492 for i in $dirlist; do
5493 if test -n "`ls -dr $srcdir/$i/tcl* 2>/dev/null`" ; then
5494 tclpath=$srcdir/$i
5495 break
5496 fi
5497 done
5498
5499 for i in `ls -dr $tclpath/tcl* 2>/dev/null ` ; do
5500 if test -f $i/src/tclsh ; then
5501 ac_cv_path_tclsh=`(cd $i/src; pwd)`/tclsh
5502 break
5503 fi
5504 done
5505fi
5506
5507if test x"${ac_cv_path_tclsh}" = x ; then
5508 echo "$as_me:$LINENO: result: none" >&5
5509echo "${ECHO_T}none" >&6
5510 # Extract the first word of "tclsh", so it can be a program name with args.
5511set dummy tclsh; ac_word=$2
5512echo "$as_me:$LINENO: checking for $ac_word" >&5
5513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514if test "${ac_cv_path_tclsh+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5516else
5517 case $tclsh in
5518 [\\/]* | ?:[\\/]*)
5519 ac_cv_path_tclsh="$tclsh" # Let the user override the test with a path.
5520 ;;
5521 *)
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523for as_dir in $PATH
5524do
5525 IFS=$as_save_IFS
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529 ac_cv_path_tclsh="$as_dir/$ac_word$ac_exec_ext"
5530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 break 2
5532 fi
5533done
5534done
5535
5536 ;;
5537esac
5538fi
5539tclsh=$ac_cv_path_tclsh
5540
5541if test -n "$tclsh"; then
5542 echo "$as_me:$LINENO: result: $tclsh" >&5
5543echo "${ECHO_T}$tclsh" >&6
5544else
5545 echo "$as_me:$LINENO: result: no" >&5
5546echo "${ECHO_T}no" >&6
5547fi
5548
5549else
5550 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5551echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5552fi
5553TCLSH="${ac_cv_path_tclsh}"
5554
5555
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005556# Extract the first word of "zip", so it can be a program name with args.
5557set dummy zip; ac_word=$2
5558echo "$as_me:$LINENO: checking for $ac_word" >&5
5559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5560if test "${ac_cv_path_ZIP+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5562else
5563 case $ZIP in
5564 [\\/]* | ?:[\\/]*)
5565 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5566 ;;
5567 *)
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569for as_dir in $PATH
5570do
5571 IFS=$as_save_IFS
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5575 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5577 break 2
5578 fi
5579done
5580done
5581
5582 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5583 ;;
5584esac
5585fi
5586ZIP=$ac_cv_path_ZIP
5587
5588if test -n "$ZIP"; then
5589 echo "$as_me:$LINENO: result: $ZIP" >&5
5590echo "${ECHO_T}$ZIP" >&6
5591else
5592 echo "$as_me:$LINENO: result: no" >&5
5593echo "${ECHO_T}no" >&6
5594fi
5595
5596
5597echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5598echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5599if test "${llvm_cv_link_use_r+set}" = set; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5601else
5602 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005603ac_cpp='$CPP $CPPFLAGS'
5604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5606ac_compiler_gnu=$ac_cv_c_compiler_gnu
5607
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005608 oldcflags="$CFLAGS"
5609 CFLAGS="$CFLAGS -Wl,-R."
5610 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005611/* confdefs.h. */
5612_ACEOF
5613cat confdefs.h >>conftest.$ac_ext
5614cat >>conftest.$ac_ext <<_ACEOF
5615/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005616
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005617int
5618main ()
5619{
5620int main() { return 0; }
5621 ;
5622 return 0;
5623}
John Criswell47fdd832003-07-14 16:52:07 +00005624_ACEOF
5625rm -f conftest.$ac_objext conftest$ac_exeext
5626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005627 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005628 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005629 grep -v '^ *+' conftest.er1 >conftest.err
5630 rm -f conftest.er1
5631 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005633 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005634 { ac_try='test -z "$ac_c_werror_flag"
5635 || test ! -s conftest.err'
5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 (eval $ac_try) 2>&5
5638 ac_status=$?
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; } &&
5641 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 (eval $ac_try) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005647 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005648else
John Criswell47fdd832003-07-14 16:52:07 +00005649 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005650sed 's/^/| /' conftest.$ac_ext >&5
5651
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005652llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005653fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005654rm -f conftest.err conftest.$ac_objext \
5655 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005656 CFLAGS="$oldcflags"
5657 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005658ac_cpp='$CPP $CPPFLAGS'
5659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5661ac_compiler_gnu=$ac_cv_c_compiler_gnu
5662
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005663
John Criswell7a73b802003-06-30 21:59:07 +00005664fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005665echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5666echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5667if test "$llvm_cv_link_use_r" = yes ; then
5668
5669cat >>confdefs.h <<\_ACEOF
5670#define HAVE_LINK_R 1
5671_ACEOF
5672
John Criswell47fdd832003-07-14 16:52:07 +00005673 fi
John Criswell47fdd832003-07-14 16:52:07 +00005674
John Criswell47fdd832003-07-14 16:52:07 +00005675
John Criswell47fdd832003-07-14 16:52:07 +00005676
John Criswell7a73b802003-06-30 21:59:07 +00005677
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005678echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5679echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5680if test "${ac_cv_c_const+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5682else
5683 cat >conftest.$ac_ext <<_ACEOF
5684/* confdefs.h. */
5685_ACEOF
5686cat confdefs.h >>conftest.$ac_ext
5687cat >>conftest.$ac_ext <<_ACEOF
5688/* end confdefs.h. */
5689
5690int
5691main ()
5692{
5693/* FIXME: Include the comments suggested by Paul. */
5694#ifndef __cplusplus
5695 /* Ultrix mips cc rejects this. */
5696 typedef int charset[2];
5697 const charset x;
5698 /* SunOS 4.1.1 cc rejects this. */
5699 char const *const *ccp;
5700 char **p;
5701 /* NEC SVR4.0.2 mips cc rejects this. */
5702 struct point {int x, y;};
5703 static struct point const zero = {0,0};
5704 /* AIX XL C 1.02.0.0 rejects this.
5705 It does not let you subtract one const X* pointer from another in
5706 an arm of an if-expression whose if-part is not a constant
5707 expression */
5708 const char *g = "string";
5709 ccp = &g + (g ? g-g : 0);
5710 /* HPUX 7.0 cc rejects these. */
5711 ++ccp;
5712 p = (char**) ccp;
5713 ccp = (char const *const *) p;
5714 { /* SCO 3.2v4 cc rejects this. */
5715 char *t;
5716 char const *s = 0 ? (char *) 0 : (char const *) 0;
5717
5718 *t++ = 0;
5719 }
5720 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5721 int x[] = {25, 17};
5722 const int *foo = &x[0];
5723 ++foo;
5724 }
5725 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5726 typedef const int *iptr;
5727 iptr p = 0;
5728 ++p;
5729 }
5730 { /* AIX XL C 1.02.0.0 rejects this saying
5731 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5732 struct s { int j; const int *ap[3]; };
5733 struct s *b; b->j = 5;
5734 }
5735 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5736 const int foo = 10;
5737 }
5738#endif
5739
5740 ;
5741 return 0;
5742}
5743_ACEOF
5744rm -f conftest.$ac_objext
5745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5746 (eval $ac_compile) 2>conftest.er1
5747 ac_status=$?
5748 grep -v '^ *+' conftest.er1 >conftest.err
5749 rm -f conftest.er1
5750 cat conftest.err >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } &&
5753 { ac_try='test -z "$ac_c_werror_flag"
5754 || test ! -s conftest.err'
5755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756 (eval $ac_try) 2>&5
5757 ac_status=$?
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); }; } &&
5760 { ac_try='test -s conftest.$ac_objext'
5761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762 (eval $ac_try) 2>&5
5763 ac_status=$?
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); }; }; then
5766 ac_cv_c_const=yes
5767else
5768 echo "$as_me: failed program was:" >&5
5769sed 's/^/| /' conftest.$ac_ext >&5
5770
5771ac_cv_c_const=no
5772fi
5773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5774fi
5775echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5776echo "${ECHO_T}$ac_cv_c_const" >&6
5777if test $ac_cv_c_const = no; then
5778
5779cat >>confdefs.h <<\_ACEOF
5780#define const
5781_ACEOF
5782
5783fi
5784
5785
5786echo "$as_me:$LINENO: checking for egrep" >&5
5787echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5788if test "${ac_cv_prog_egrep+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5790else
5791 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5792 then ac_cv_prog_egrep='grep -E'
5793 else ac_cv_prog_egrep='egrep'
5794 fi
5795fi
5796echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5797echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5798 EGREP=$ac_cv_prog_egrep
5799
John Criswell7a73b802003-06-30 21:59:07 +00005800
5801echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5802echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5803if test "${ac_cv_header_stdc+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5805else
5806 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005807/* confdefs.h. */
5808_ACEOF
5809cat confdefs.h >>conftest.$ac_ext
5810cat >>conftest.$ac_ext <<_ACEOF
5811/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005812#include <stdlib.h>
5813#include <stdarg.h>
5814#include <string.h>
5815#include <float.h>
5816
John Criswell0c38eaf2003-09-10 15:17:25 +00005817int
5818main ()
5819{
5820
5821 ;
5822 return 0;
5823}
John Criswell7a73b802003-06-30 21:59:07 +00005824_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005825rm -f conftest.$ac_objext
5826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005827 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005828 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005829 grep -v '^ *+' conftest.er1 >conftest.err
5830 rm -f conftest.er1
5831 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005833 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005834 { ac_try='test -z "$ac_c_werror_flag"
5835 || test ! -s conftest.err'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837 (eval $ac_try) 2>&5
5838 ac_status=$?
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; } &&
5841 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00005842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 (eval $ac_try) 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00005847 ac_cv_header_stdc=yes
5848else
5849 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005850sed 's/^/| /' conftest.$ac_ext >&5
5851
5852ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00005853fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005855
5856if test $ac_cv_header_stdc = yes; then
5857 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5858 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005859/* confdefs.h. */
5860_ACEOF
5861cat confdefs.h >>conftest.$ac_ext
5862cat >>conftest.$ac_ext <<_ACEOF
5863/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005864#include <string.h>
5865
5866_ACEOF
5867if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005868 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005869 :
5870else
5871 ac_cv_header_stdc=no
5872fi
5873rm -f conftest*
5874
5875fi
5876
5877if test $ac_cv_header_stdc = yes; then
5878 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5879 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005880/* confdefs.h. */
5881_ACEOF
5882cat confdefs.h >>conftest.$ac_ext
5883cat >>conftest.$ac_ext <<_ACEOF
5884/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005885#include <stdlib.h>
5886
5887_ACEOF
5888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005889 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005890 :
5891else
5892 ac_cv_header_stdc=no
5893fi
5894rm -f conftest*
5895
5896fi
5897
5898if test $ac_cv_header_stdc = yes; then
5899 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5900 if test "$cross_compiling" = yes; then
5901 :
5902else
5903 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005904/* confdefs.h. */
5905_ACEOF
5906cat confdefs.h >>conftest.$ac_ext
5907cat >>conftest.$ac_ext <<_ACEOF
5908/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005909#include <ctype.h>
5910#if ((' ' & 0x0FF) == 0x020)
5911# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5912# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5913#else
John Criswell0c38eaf2003-09-10 15:17:25 +00005914# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00005915 (('a' <= (c) && (c) <= 'i') \
5916 || ('j' <= (c) && (c) <= 'r') \
5917 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00005918# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5919#endif
5920
5921#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5922int
5923main ()
5924{
5925 int i;
5926 for (i = 0; i < 256; i++)
5927 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00005928 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00005929 exit(2);
5930 exit (0);
5931}
5932_ACEOF
5933rm -f conftest$ac_exeext
5934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5935 (eval $ac_link) 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 (eval $ac_try) 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; }; then
5944 :
5945else
5946 echo "$as_me: program exited with status $ac_status" >&5
5947echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005948sed 's/^/| /' conftest.$ac_ext >&5
5949
John Criswell7a73b802003-06-30 21:59:07 +00005950( exit $ac_status )
5951ac_cv_header_stdc=no
5952fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005953rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005954fi
5955fi
5956fi
5957echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5958echo "${ECHO_T}$ac_cv_header_stdc" >&6
5959if test $ac_cv_header_stdc = yes; then
5960
5961cat >>confdefs.h <<\_ACEOF
5962#define STDC_HEADERS 1
5963_ACEOF
5964
5965fi
5966
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005967
5968
5969
5970
5971
5972ac_header_dirent=no
5973for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5974 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5975echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5976echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5977if eval "test \"\${$as_ac_Header+set}\" = set"; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5979else
5980 cat >conftest.$ac_ext <<_ACEOF
5981/* confdefs.h. */
5982_ACEOF
5983cat confdefs.h >>conftest.$ac_ext
5984cat >>conftest.$ac_ext <<_ACEOF
5985/* end confdefs.h. */
5986#include <sys/types.h>
5987#include <$ac_hdr>
5988
5989int
5990main ()
5991{
5992if ((DIR *) 0)
5993return 0;
5994 ;
5995 return 0;
5996}
5997_ACEOF
5998rm -f conftest.$ac_objext
5999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6000 (eval $ac_compile) 2>conftest.er1
6001 ac_status=$?
6002 grep -v '^ *+' conftest.er1 >conftest.err
6003 rm -f conftest.er1
6004 cat conftest.err >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } &&
6007 { ac_try='test -z "$ac_c_werror_flag"
6008 || test ! -s conftest.err'
6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 (eval $ac_try) 2>&5
6011 ac_status=$?
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; } &&
6014 { ac_try='test -s conftest.$ac_objext'
6015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016 (eval $ac_try) 2>&5
6017 ac_status=$?
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; }; then
6020 eval "$as_ac_Header=yes"
6021else
6022 echo "$as_me: failed program was:" >&5
6023sed 's/^/| /' conftest.$ac_ext >&5
6024
6025eval "$as_ac_Header=no"
6026fi
6027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6028fi
6029echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6030echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6031if test `eval echo '${'$as_ac_Header'}'` = yes; then
6032 cat >>confdefs.h <<_ACEOF
6033#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6034_ACEOF
6035
6036ac_header_dirent=$ac_hdr; break
6037fi
6038
6039done
6040# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6041if test $ac_header_dirent = dirent.h; then
6042 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6043echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6044if test "${ac_cv_search_opendir+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6046else
6047 ac_func_search_save_LIBS=$LIBS
6048ac_cv_search_opendir=no
6049cat >conftest.$ac_ext <<_ACEOF
6050/* confdefs.h. */
6051_ACEOF
6052cat confdefs.h >>conftest.$ac_ext
6053cat >>conftest.$ac_ext <<_ACEOF
6054/* end confdefs.h. */
6055
6056/* Override any gcc2 internal prototype to avoid an error. */
6057#ifdef __cplusplus
6058extern "C"
6059#endif
6060/* We use char because int might match the return type of a gcc2
6061 builtin and then its argument prototype would still apply. */
6062char opendir ();
6063int
6064main ()
6065{
6066opendir ();
6067 ;
6068 return 0;
6069}
6070_ACEOF
6071rm -f conftest.$ac_objext conftest$ac_exeext
6072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6073 (eval $ac_link) 2>conftest.er1
6074 ac_status=$?
6075 grep -v '^ *+' conftest.er1 >conftest.err
6076 rm -f conftest.er1
6077 cat conftest.err >&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } &&
6080 { ac_try='test -z "$ac_c_werror_flag"
6081 || test ! -s conftest.err'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 (eval $ac_try) 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; } &&
6087 { ac_try='test -s conftest$ac_exeext'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 (eval $ac_try) 2>&5
6090 ac_status=$?
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; }; then
6093 ac_cv_search_opendir="none required"
6094else
6095 echo "$as_me: failed program was:" >&5
6096sed 's/^/| /' conftest.$ac_ext >&5
6097
6098fi
6099rm -f conftest.err conftest.$ac_objext \
6100 conftest$ac_exeext conftest.$ac_ext
6101if test "$ac_cv_search_opendir" = no; then
6102 for ac_lib in dir; do
6103 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6104 cat >conftest.$ac_ext <<_ACEOF
6105/* confdefs.h. */
6106_ACEOF
6107cat confdefs.h >>conftest.$ac_ext
6108cat >>conftest.$ac_ext <<_ACEOF
6109/* end confdefs.h. */
6110
6111/* Override any gcc2 internal prototype to avoid an error. */
6112#ifdef __cplusplus
6113extern "C"
6114#endif
6115/* We use char because int might match the return type of a gcc2
6116 builtin and then its argument prototype would still apply. */
6117char opendir ();
6118int
6119main ()
6120{
6121opendir ();
6122 ;
6123 return 0;
6124}
6125_ACEOF
6126rm -f conftest.$ac_objext conftest$ac_exeext
6127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6128 (eval $ac_link) 2>conftest.er1
6129 ac_status=$?
6130 grep -v '^ *+' conftest.er1 >conftest.err
6131 rm -f conftest.er1
6132 cat conftest.err >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); } &&
6135 { ac_try='test -z "$ac_c_werror_flag"
6136 || test ! -s conftest.err'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138 (eval $ac_try) 2>&5
6139 ac_status=$?
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; } &&
6142 { ac_try='test -s conftest$ac_exeext'
6143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144 (eval $ac_try) 2>&5
6145 ac_status=$?
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; }; then
6148 ac_cv_search_opendir="-l$ac_lib"
6149break
6150else
6151 echo "$as_me: failed program was:" >&5
6152sed 's/^/| /' conftest.$ac_ext >&5
6153
6154fi
6155rm -f conftest.err conftest.$ac_objext \
6156 conftest$ac_exeext conftest.$ac_ext
6157 done
6158fi
6159LIBS=$ac_func_search_save_LIBS
6160fi
6161echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6162echo "${ECHO_T}$ac_cv_search_opendir" >&6
6163if test "$ac_cv_search_opendir" != no; then
6164 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6165
6166fi
6167
6168else
6169 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6170echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6171if test "${ac_cv_search_opendir+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6173else
6174 ac_func_search_save_LIBS=$LIBS
6175ac_cv_search_opendir=no
6176cat >conftest.$ac_ext <<_ACEOF
6177/* confdefs.h. */
6178_ACEOF
6179cat confdefs.h >>conftest.$ac_ext
6180cat >>conftest.$ac_ext <<_ACEOF
6181/* end confdefs.h. */
6182
6183/* Override any gcc2 internal prototype to avoid an error. */
6184#ifdef __cplusplus
6185extern "C"
6186#endif
6187/* We use char because int might match the return type of a gcc2
6188 builtin and then its argument prototype would still apply. */
6189char opendir ();
6190int
6191main ()
6192{
6193opendir ();
6194 ;
6195 return 0;
6196}
6197_ACEOF
6198rm -f conftest.$ac_objext conftest$ac_exeext
6199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6200 (eval $ac_link) 2>conftest.er1
6201 ac_status=$?
6202 grep -v '^ *+' conftest.er1 >conftest.err
6203 rm -f conftest.er1
6204 cat conftest.err >&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } &&
6207 { ac_try='test -z "$ac_c_werror_flag"
6208 || test ! -s conftest.err'
6209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210 (eval $ac_try) 2>&5
6211 ac_status=$?
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; } &&
6214 { ac_try='test -s conftest$ac_exeext'
6215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216 (eval $ac_try) 2>&5
6217 ac_status=$?
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; }; then
6220 ac_cv_search_opendir="none required"
6221else
6222 echo "$as_me: failed program was:" >&5
6223sed 's/^/| /' conftest.$ac_ext >&5
6224
6225fi
6226rm -f conftest.err conftest.$ac_objext \
6227 conftest$ac_exeext conftest.$ac_ext
6228if test "$ac_cv_search_opendir" = no; then
6229 for ac_lib in x; do
6230 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6231 cat >conftest.$ac_ext <<_ACEOF
6232/* confdefs.h. */
6233_ACEOF
6234cat confdefs.h >>conftest.$ac_ext
6235cat >>conftest.$ac_ext <<_ACEOF
6236/* end confdefs.h. */
6237
6238/* Override any gcc2 internal prototype to avoid an error. */
6239#ifdef __cplusplus
6240extern "C"
6241#endif
6242/* We use char because int might match the return type of a gcc2
6243 builtin and then its argument prototype would still apply. */
6244char opendir ();
6245int
6246main ()
6247{
6248opendir ();
6249 ;
6250 return 0;
6251}
6252_ACEOF
6253rm -f conftest.$ac_objext conftest$ac_exeext
6254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6255 (eval $ac_link) 2>conftest.er1
6256 ac_status=$?
6257 grep -v '^ *+' conftest.er1 >conftest.err
6258 rm -f conftest.er1
6259 cat conftest.err >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } &&
6262 { ac_try='test -z "$ac_c_werror_flag"
6263 || test ! -s conftest.err'
6264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265 (eval $ac_try) 2>&5
6266 ac_status=$?
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; } &&
6269 { ac_try='test -s conftest$ac_exeext'
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271 (eval $ac_try) 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6275 ac_cv_search_opendir="-l$ac_lib"
6276break
6277else
6278 echo "$as_me: failed program was:" >&5
6279sed 's/^/| /' conftest.$ac_ext >&5
6280
6281fi
6282rm -f conftest.err conftest.$ac_objext \
6283 conftest$ac_exeext conftest.$ac_ext
6284 done
6285fi
6286LIBS=$ac_func_search_save_LIBS
6287fi
6288echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6289echo "${ECHO_T}$ac_cv_search_opendir" >&6
6290if test "$ac_cv_search_opendir" != no; then
6291 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6292
6293fi
6294
6295fi
6296
John Criswell7a73b802003-06-30 21:59:07 +00006297# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006308 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006309do
6310as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6311echo "$as_me:$LINENO: checking for $ac_header" >&5
6312echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6313if eval "test \"\${$as_ac_Header+set}\" = set"; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6315else
6316 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006317/* confdefs.h. */
6318_ACEOF
6319cat confdefs.h >>conftest.$ac_ext
6320cat >>conftest.$ac_ext <<_ACEOF
6321/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006322$ac_includes_default
6323
6324#include <$ac_header>
6325_ACEOF
6326rm -f conftest.$ac_objext
6327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006328 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006329 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006330 grep -v '^ *+' conftest.er1 >conftest.err
6331 rm -f conftest.er1
6332 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006335 { ac_try='test -z "$ac_c_werror_flag"
6336 || test ! -s conftest.err'
6337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6338 (eval $ac_try) 2>&5
6339 ac_status=$?
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }; } &&
6342 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344 (eval $ac_try) 2>&5
6345 ac_status=$?
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; }; then
6348 eval "$as_ac_Header=yes"
6349else
6350 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006351sed 's/^/| /' conftest.$ac_ext >&5
6352
John Criswell7a73b802003-06-30 21:59:07 +00006353eval "$as_ac_Header=no"
6354fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006356fi
6357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6358echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6359if test `eval echo '${'$as_ac_Header'}'` = yes; then
6360 cat >>confdefs.h <<_ACEOF
6361#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6362_ACEOF
6363
6364fi
6365
6366done
6367
6368
6369
6370for ac_header in dlfcn.h
6371do
6372as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006373if eval "test \"\${$as_ac_Header+set}\" = set"; then
6374 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6376if eval "test \"\${$as_ac_Header+set}\" = set"; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006378fi
6379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006381else
Brian Gaeke0a621332004-09-08 20:38:05 +00006382 # Is the header compilable?
6383echo "$as_me:$LINENO: checking $ac_header usability" >&5
6384echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6385cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006386/* confdefs.h. */
6387_ACEOF
6388cat confdefs.h >>conftest.$ac_ext
6389cat >>conftest.$ac_ext <<_ACEOF
6390/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006391$ac_includes_default
6392#include <$ac_header>
6393_ACEOF
6394rm -f conftest.$ac_objext
6395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006396 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006397 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006398 grep -v '^ *+' conftest.er1 >conftest.err
6399 rm -f conftest.er1
6400 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006403 { ac_try='test -z "$ac_c_werror_flag"
6404 || test ! -s conftest.err'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 (eval $ac_try) 2>&5
6407 ac_status=$?
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; } &&
6410 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 (eval $ac_try) 2>&5
6413 ac_status=$?
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006416 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006417else
6418 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006419sed 's/^/| /' conftest.$ac_ext >&5
6420
Brian Gaeke0a621332004-09-08 20:38:05 +00006421ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006422fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006424echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6425echo "${ECHO_T}$ac_header_compiler" >&6
6426
6427# Is the header present?
6428echo "$as_me:$LINENO: checking $ac_header presence" >&5
6429echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6430cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006431/* confdefs.h. */
6432_ACEOF
6433cat confdefs.h >>conftest.$ac_ext
6434cat >>conftest.$ac_ext <<_ACEOF
6435/* end confdefs.h. */
6436#include <$ac_header>
6437_ACEOF
6438if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6440 ac_status=$?
6441 grep -v '^ *+' conftest.er1 >conftest.err
6442 rm -f conftest.er1
6443 cat conftest.err >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } >/dev/null; then
6446 if test -s conftest.err; then
6447 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006449 else
6450 ac_cpp_err=
6451 fi
6452else
6453 ac_cpp_err=yes
6454fi
6455if test -z "$ac_cpp_err"; then
6456 ac_header_preproc=yes
6457else
6458 echo "$as_me: failed program was:" >&5
6459sed 's/^/| /' conftest.$ac_ext >&5
6460
6461 ac_header_preproc=no
6462fi
6463rm -f conftest.err conftest.$ac_ext
6464echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6465echo "${ECHO_T}$ac_header_preproc" >&6
6466
6467# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006468case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6469 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6471echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6473echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6474 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006475 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006476 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6478echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6480echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6482echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6484echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6486echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6488echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006489 (
6490 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006491## ----------------------------------- ##
6492## Report this to llvmbugs@cs.uiuc.edu ##
6493## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006494_ASBOX
6495 ) |
6496 sed "s/^/$as_me: WARNING: /" >&2
6497 ;;
6498esac
6499echo "$as_me:$LINENO: checking for $ac_header" >&5
6500echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6501if eval "test \"\${$as_ac_Header+set}\" = set"; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6503else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006504 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006505fi
6506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6507echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006508
6509fi
John Criswell7a73b802003-06-30 21:59:07 +00006510if test `eval echo '${'$as_ac_Header'}'` = yes; then
6511 cat >>confdefs.h <<_ACEOF
6512#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6513_ACEOF
6514
6515fi
6516
6517done
6518
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006519# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6520if test "${enable_ltdl_install+set}" = set; then
6521 enableval="$enable_ltdl_install"
6522
6523fi;
6524
6525
6526
6527if test x"${enable_ltdl_install-no}" != xno; then
6528 INSTALL_LTDL_TRUE=
6529 INSTALL_LTDL_FALSE='#'
6530else
6531 INSTALL_LTDL_TRUE='#'
6532 INSTALL_LTDL_FALSE=
6533fi
6534
6535
6536
6537if test x"${enable_ltdl_convenience-no}" != xno; then
6538 CONVENIENCE_LTDL_TRUE=
6539 CONVENIENCE_LTDL_FALSE='#'
6540else
6541 CONVENIENCE_LTDL_TRUE='#'
6542 CONVENIENCE_LTDL_FALSE=
6543fi
6544
6545
6546echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6547echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6548library_names_spec=
6549libname_spec='lib$name'
6550soname_spec=
6551shrext_cmds=".so"
6552postinstall_cmds=
6553postuninstall_cmds=
6554finish_cmds=
6555finish_eval=
6556shlibpath_var=
6557shlibpath_overrides_runpath=unknown
6558version_type=none
6559dynamic_linker="$host_os ld.so"
6560sys_lib_dlsearch_path_spec="/lib /usr/lib"
6561if test "$GCC" = yes; then
6562 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6563 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6564 # if the path contains ";" then we assume it to be the separator
6565 # otherwise default to the standard path separator (i.e. ":") - it is
6566 # assumed that no part of a normal pathname contains ";" but that should
6567 # okay in the real world where ";" in dirpaths is itself problematic.
6568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6569 else
6570 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6571 fi
6572else
6573 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6574fi
6575need_lib_prefix=unknown
6576hardcode_into_libs=no
6577
6578# when you set need_version to no, make sure it does not cause -set_version
6579# flags to be left without arguments
6580need_version=unknown
6581
6582case $host_os in
6583aix3*)
6584 version_type=linux
6585 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6586 shlibpath_var=LIBPATH
6587
6588 # AIX 3 has no versioning support, so we append a major version to the name.
6589 soname_spec='${libname}${release}${shared_ext}$major'
6590 ;;
6591
6592aix4* | aix5*)
6593 version_type=linux
6594 need_lib_prefix=no
6595 need_version=no
6596 hardcode_into_libs=yes
6597 if test "$host_cpu" = ia64; then
6598 # AIX 5 supports IA64
6599 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6600 shlibpath_var=LD_LIBRARY_PATH
6601 else
6602 # With GCC up to 2.95.x, collect2 would create an import file
6603 # for dependence libraries. The import file would start with
6604 # the line `#! .'. This would cause the generated library to
6605 # depend on `.', always an invalid library. This was fixed in
6606 # development snapshots of GCC prior to 3.0.
6607 case $host_os in
6608 aix4 | aix4.[01] | aix4.[01].*)
6609 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6610 echo ' yes '
6611 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6612 :
6613 else
6614 can_build_shared=no
6615 fi
6616 ;;
6617 esac
6618 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6619 # soname into executable. Probably we can add versioning support to
6620 # collect2, so additional links can be useful in future.
6621 if test "$aix_use_runtimelinking" = yes; then
6622 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6623 # instead of lib<name>.a to let people know that these are not
6624 # typical AIX shared libraries.
6625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6626 else
6627 # We preserve .a as extension for shared libraries through AIX4.2
6628 # and later when we are not doing run time linking.
6629 library_names_spec='${libname}${release}.a $libname.a'
6630 soname_spec='${libname}${release}${shared_ext}$major'
6631 fi
6632 shlibpath_var=LIBPATH
6633 fi
6634 ;;
6635
6636amigaos*)
6637 library_names_spec='$libname.ixlibrary $libname.a'
6638 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6639 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'
6640 ;;
6641
6642beos*)
6643 library_names_spec='${libname}${shared_ext}'
6644 dynamic_linker="$host_os ld.so"
6645 shlibpath_var=LIBRARY_PATH
6646 ;;
6647
6648bsdi[45]*)
6649 version_type=linux
6650 need_version=no
6651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6652 soname_spec='${libname}${release}${shared_ext}$major'
6653 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6654 shlibpath_var=LD_LIBRARY_PATH
6655 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6656 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6657 # the default ld.so.conf also contains /usr/contrib/lib and
6658 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6659 # libtool to hard-code these into programs
6660 ;;
6661
6662cygwin* | mingw* | pw32*)
6663 version_type=windows
6664 shrext_cmds=".dll"
6665 need_version=no
6666 need_lib_prefix=no
6667
6668 case $GCC,$host_os in
6669 yes,cygwin* | yes,mingw* | yes,pw32*)
6670 library_names_spec='$libname.dll.a'
6671 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6672 postinstall_cmds='base_file=`basename \${file}`~
6673 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6674 dldir=$destdir/`dirname \$dlpath`~
6675 test -d \$dldir || mkdir -p \$dldir~
6676 $install_prog $dir/$dlname \$dldir/$dlname'
6677 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6678 dlpath=$dir/\$dldll~
6679 $rm \$dlpath'
6680 shlibpath_overrides_runpath=yes
6681
6682 case $host_os in
6683 cygwin*)
6684 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6685 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6686 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6687 ;;
6688 mingw*)
6689 # MinGW DLLs use traditional 'lib' prefix
6690 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6691 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6692 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6693 # It is most probably a Windows format PATH printed by
6694 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6695 # path with ; separators, and with drive letters. We can handle the
6696 # drive letters (cygwin fileutils understands them), so leave them,
6697 # especially as we might pass files found there to a mingw objdump,
6698 # which wouldn't understand a cygwinified path. Ahh.
6699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6700 else
6701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6702 fi
6703 ;;
6704 pw32*)
6705 # pw32 DLLs use 'pw' prefix rather than 'lib'
6706 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6707 ;;
6708 esac
6709 ;;
6710
6711 *)
6712 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6713 ;;
6714 esac
6715 dynamic_linker='Win32 ld.exe'
6716 # FIXME: first we should search . and the directory the executable is in
6717 shlibpath_var=PATH
6718 ;;
6719
6720darwin* | rhapsody*)
6721 dynamic_linker="$host_os dyld"
6722 version_type=darwin
6723 need_lib_prefix=no
6724 need_version=no
6725 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6726 soname_spec='${libname}${release}${major}$shared_ext'
6727 shlibpath_overrides_runpath=yes
6728 shlibpath_var=DYLD_LIBRARY_PATH
6729 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6730 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6731 if test "$GCC" = yes; then
6732 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"`
6733 else
6734 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6735 fi
6736 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6737 ;;
6738
6739dgux*)
6740 version_type=linux
6741 need_lib_prefix=no
6742 need_version=no
6743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6744 soname_spec='${libname}${release}${shared_ext}$major'
6745 shlibpath_var=LD_LIBRARY_PATH
6746 ;;
6747
6748freebsd1*)
6749 dynamic_linker=no
6750 ;;
6751
6752kfreebsd*-gnu)
6753 version_type=linux
6754 need_lib_prefix=no
6755 need_version=no
6756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6757 soname_spec='${libname}${release}${shared_ext}$major'
6758 shlibpath_var=LD_LIBRARY_PATH
6759 shlibpath_overrides_runpath=no
6760 hardcode_into_libs=yes
6761 dynamic_linker='GNU ld.so'
6762 ;;
6763
6764freebsd*)
6765 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6766 version_type=freebsd-$objformat
6767 case $version_type in
6768 freebsd-elf*)
6769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6770 need_version=no
6771 need_lib_prefix=no
6772 ;;
6773 freebsd-*)
6774 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6775 need_version=yes
6776 ;;
6777 esac
6778 shlibpath_var=LD_LIBRARY_PATH
6779 case $host_os in
6780 freebsd2*)
6781 shlibpath_overrides_runpath=yes
6782 ;;
6783 freebsd3.01* | freebsdelf3.01*)
6784 shlibpath_overrides_runpath=yes
6785 hardcode_into_libs=yes
6786 ;;
6787 *) # from 3.2 on
6788 shlibpath_overrides_runpath=no
6789 hardcode_into_libs=yes
6790 ;;
6791 esac
6792 ;;
6793
6794gnu*)
6795 version_type=linux
6796 need_lib_prefix=no
6797 need_version=no
6798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6799 soname_spec='${libname}${release}${shared_ext}$major'
6800 shlibpath_var=LD_LIBRARY_PATH
6801 hardcode_into_libs=yes
6802 ;;
6803
6804hpux9* | hpux10* | hpux11*)
6805 # Give a soname corresponding to the major version so that dld.sl refuses to
6806 # link against other versions.
6807 version_type=sunos
6808 need_lib_prefix=no
6809 need_version=no
6810 case "$host_cpu" in
6811 ia64*)
6812 shrext_cmds='.so'
6813 hardcode_into_libs=yes
6814 dynamic_linker="$host_os dld.so"
6815 shlibpath_var=LD_LIBRARY_PATH
6816 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6818 soname_spec='${libname}${release}${shared_ext}$major'
6819 if test "X$HPUX_IA64_MODE" = X32; then
6820 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6821 else
6822 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6823 fi
6824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6825 ;;
6826 hppa*64*)
6827 shrext_cmds='.sl'
6828 hardcode_into_libs=yes
6829 dynamic_linker="$host_os dld.sl"
6830 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6831 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6833 soname_spec='${libname}${release}${shared_ext}$major'
6834 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6835 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6836 ;;
6837 *)
6838 shrext_cmds='.sl'
6839 dynamic_linker="$host_os dld.sl"
6840 shlibpath_var=SHLIB_PATH
6841 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6843 soname_spec='${libname}${release}${shared_ext}$major'
6844 ;;
6845 esac
6846 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6847 postinstall_cmds='chmod 555 $lib'
6848 ;;
6849
6850irix5* | irix6* | nonstopux*)
6851 case $host_os in
6852 nonstopux*) version_type=nonstopux ;;
6853 *)
6854 if test "$lt_cv_prog_gnu_ld" = yes; then
6855 version_type=linux
6856 else
6857 version_type=irix
6858 fi ;;
6859 esac
6860 need_lib_prefix=no
6861 need_version=no
6862 soname_spec='${libname}${release}${shared_ext}$major'
6863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6864 case $host_os in
6865 irix5* | nonstopux*)
6866 libsuff= shlibsuff=
6867 ;;
6868 *)
6869 case $LD in # libtool.m4 will add one of these switches to LD
6870 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6871 libsuff= shlibsuff= libmagic=32-bit;;
6872 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6873 libsuff=32 shlibsuff=N32 libmagic=N32;;
6874 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6875 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6876 *) libsuff= shlibsuff= libmagic=never-match;;
6877 esac
6878 ;;
6879 esac
6880 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6881 shlibpath_overrides_runpath=no
6882 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6883 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6884 hardcode_into_libs=yes
6885 ;;
6886
6887# No shared lib support for Linux oldld, aout, or coff.
6888linux*oldld* | linux*aout* | linux*coff*)
6889 dynamic_linker=no
6890 ;;
6891
6892# This must be Linux ELF.
6893linux*)
6894 version_type=linux
6895 need_lib_prefix=no
6896 need_version=no
6897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6898 soname_spec='${libname}${release}${shared_ext}$major'
6899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6900 shlibpath_var=LD_LIBRARY_PATH
6901 shlibpath_overrides_runpath=no
6902 # This implies no fast_install, which is unacceptable.
6903 # Some rework will be needed to allow for fast_install
6904 # before this can be enabled.
6905 hardcode_into_libs=yes
6906
6907 # Append ld.so.conf contents to the search path
6908 if test -f /etc/ld.so.conf; then
6909 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6910 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6911 fi
6912
6913 # We used to test for /lib/ld.so.1 and disable shared libraries on
6914 # powerpc, because MkLinux only supported shared libraries with the
6915 # GNU dynamic linker. Since this was broken with cross compilers,
6916 # most powerpc-linux boxes support dynamic linking these days and
6917 # people can always --disable-shared, the test was removed, and we
6918 # assume the GNU/Linux dynamic linker is in use.
6919 dynamic_linker='GNU/Linux ld.so'
6920 ;;
6921
6922knetbsd*-gnu)
6923 version_type=linux
6924 need_lib_prefix=no
6925 need_version=no
6926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6927 soname_spec='${libname}${release}${shared_ext}$major'
6928 shlibpath_var=LD_LIBRARY_PATH
6929 shlibpath_overrides_runpath=no
6930 hardcode_into_libs=yes
6931 dynamic_linker='GNU ld.so'
6932 ;;
6933
6934netbsd*)
6935 version_type=sunos
6936 need_lib_prefix=no
6937 need_version=no
6938 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6941 dynamic_linker='NetBSD (a.out) ld.so'
6942 else
6943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6944 soname_spec='${libname}${release}${shared_ext}$major'
6945 dynamic_linker='NetBSD ld.elf_so'
6946 fi
6947 shlibpath_var=LD_LIBRARY_PATH
6948 shlibpath_overrides_runpath=yes
6949 hardcode_into_libs=yes
6950 ;;
6951
6952newsos6)
6953 version_type=linux
6954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6955 shlibpath_var=LD_LIBRARY_PATH
6956 shlibpath_overrides_runpath=yes
6957 ;;
6958
6959nto-qnx*)
6960 version_type=linux
6961 need_lib_prefix=no
6962 need_version=no
6963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6964 soname_spec='${libname}${release}${shared_ext}$major'
6965 shlibpath_var=LD_LIBRARY_PATH
6966 shlibpath_overrides_runpath=yes
6967 ;;
6968
6969openbsd*)
6970 version_type=sunos
6971 need_lib_prefix=no
6972 need_version=no
6973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6975 shlibpath_var=LD_LIBRARY_PATH
6976 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6977 case $host_os in
6978 openbsd2.[89] | openbsd2.[89].*)
6979 shlibpath_overrides_runpath=no
6980 ;;
6981 *)
6982 shlibpath_overrides_runpath=yes
6983 ;;
6984 esac
6985 else
6986 shlibpath_overrides_runpath=yes
6987 fi
6988 ;;
6989
6990os2*)
6991 libname_spec='$name'
6992 shrext_cmds=".dll"
6993 need_lib_prefix=no
6994 library_names_spec='$libname${shared_ext} $libname.a'
6995 dynamic_linker='OS/2 ld.exe'
6996 shlibpath_var=LIBPATH
6997 ;;
6998
6999osf3* | osf4* | osf5*)
7000 version_type=osf
7001 need_lib_prefix=no
7002 need_version=no
7003 soname_spec='${libname}${release}${shared_ext}$major'
7004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7005 shlibpath_var=LD_LIBRARY_PATH
7006 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7007 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7008 ;;
7009
7010sco3.2v5*)
7011 version_type=osf
7012 soname_spec='${libname}${release}${shared_ext}$major'
7013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7014 shlibpath_var=LD_LIBRARY_PATH
7015 ;;
7016
7017solaris*)
7018 version_type=linux
7019 need_lib_prefix=no
7020 need_version=no
7021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7022 soname_spec='${libname}${release}${shared_ext}$major'
7023 shlibpath_var=LD_LIBRARY_PATH
7024 shlibpath_overrides_runpath=yes
7025 hardcode_into_libs=yes
7026 # ldd complains unless libraries are executable
7027 postinstall_cmds='chmod +x $lib'
7028 ;;
7029
7030sunos4*)
7031 version_type=sunos
7032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7033 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7034 shlibpath_var=LD_LIBRARY_PATH
7035 shlibpath_overrides_runpath=yes
7036 if test "$with_gnu_ld" = yes; then
7037 need_lib_prefix=no
7038 fi
7039 need_version=yes
7040 ;;
7041
7042sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7043 version_type=linux
7044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7045 soname_spec='${libname}${release}${shared_ext}$major'
7046 shlibpath_var=LD_LIBRARY_PATH
7047 case $host_vendor in
7048 sni)
7049 shlibpath_overrides_runpath=no
7050 need_lib_prefix=no
7051 export_dynamic_flag_spec='${wl}-Blargedynsym'
7052 runpath_var=LD_RUN_PATH
7053 ;;
7054 siemens)
7055 need_lib_prefix=no
7056 ;;
7057 motorola)
7058 need_lib_prefix=no
7059 need_version=no
7060 shlibpath_overrides_runpath=no
7061 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7062 ;;
7063 esac
7064 ;;
7065
7066sysv4*MP*)
7067 if test -d /usr/nec ;then
7068 version_type=linux
7069 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7070 soname_spec='$libname${shared_ext}.$major'
7071 shlibpath_var=LD_LIBRARY_PATH
7072 fi
7073 ;;
7074
7075uts4*)
7076 version_type=linux
7077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7078 soname_spec='${libname}${release}${shared_ext}$major'
7079 shlibpath_var=LD_LIBRARY_PATH
7080 ;;
7081
7082*)
7083 dynamic_linker=no
7084 ;;
7085esac
7086echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7087echo "${ECHO_T}$dynamic_linker" >&6
7088test "$dynamic_linker" = no && can_build_shared=no
7089
7090
7091echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7092echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7093if test "${libltdl_cv_shlibext+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7095else
7096
7097module=yes
7098eval libltdl_cv_shlibext=$shrext_cmds
7099
7100fi
7101echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7102echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7103if test -n "$libltdl_cv_shlibext"; then
7104
7105cat >>confdefs.h <<_ACEOF
7106#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7107_ACEOF
7108
7109fi
7110
7111
7112echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7113echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7114if test "${libltdl_cv_shlibpath_var+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7116else
7117 libltdl_cv_shlibpath_var="$shlibpath_var"
7118fi
7119echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7120echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7121if test -n "$libltdl_cv_shlibpath_var"; then
7122
7123cat >>confdefs.h <<_ACEOF
7124#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7125_ACEOF
7126
7127fi
7128
7129
7130echo "$as_me:$LINENO: checking for the default library search path" >&5
7131echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7132if test "${libltdl_cv_sys_search_path+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7134else
7135 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7136fi
7137echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7138echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7139if test -n "$libltdl_cv_sys_search_path"; then
7140 sys_search_path=
7141 for dir in $libltdl_cv_sys_search_path; do
7142 if test -z "$sys_search_path"; then
7143 sys_search_path="$dir"
7144 else
7145 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7146 fi
7147 done
7148
7149cat >>confdefs.h <<_ACEOF
7150#define LTDL_SYSSEARCHPATH "$sys_search_path"
7151_ACEOF
7152
7153fi
7154
7155echo "$as_me:$LINENO: checking for objdir" >&5
7156echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7157if test "${libltdl_cv_objdir+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7159else
7160 libltdl_cv_objdir="$objdir"
7161 if test -n "$objdir"; then
7162 :
7163 else
7164 rm -f .libs 2>/dev/null
7165 mkdir .libs 2>/dev/null
7166 if test -d .libs; then
7167 libltdl_cv_objdir=.libs
7168 else
7169 # MS-DOS does not allow filenames that begin with a dot.
7170 libltdl_cv_objdir=_libs
7171 fi
7172 rmdir .libs 2>/dev/null
7173 fi
7174
7175fi
7176echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7177echo "${ECHO_T}$libltdl_cv_objdir" >&6
7178
7179cat >>confdefs.h <<_ACEOF
7180#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7181_ACEOF
7182
7183
7184echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7185echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7186if test "${lt_cv_path_NM+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7188else
7189 if test -n "$NM"; then
7190 # Let the user override the test.
7191 lt_cv_path_NM="$NM"
7192else
7193 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7194 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7195 IFS="$lt_save_ifs"
7196 test -z "$ac_dir" && ac_dir=.
7197 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7198 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7199 # Check to see if the nm accepts a BSD-compat flag.
7200 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7201 # nm: unknown option "B" ignored
7202 # Tru64's nm complains that /dev/null is an invalid object file
7203 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7204 */dev/null* | *'Invalid file or object type'*)
7205 lt_cv_path_NM="$tmp_nm -B"
7206 break
7207 ;;
7208 *)
7209 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7210 */dev/null*)
7211 lt_cv_path_NM="$tmp_nm -p"
7212 break
7213 ;;
7214 *)
7215 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7216 continue # so that we can try to find one that supports BSD flags
7217 ;;
7218 esac
7219 esac
7220 fi
7221 done
7222 IFS="$lt_save_ifs"
7223 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7224fi
7225fi
7226echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7227echo "${ECHO_T}$lt_cv_path_NM" >&6
7228NM="$lt_cv_path_NM"
7229
7230
7231
7232
7233
7234# Check for command to grab the raw symbol name followed by C symbol from nm.
7235echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7236echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7237if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7239else
7240
7241# These are sane defaults that work on at least a few old systems.
7242# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7243
7244# Character class describing NM global symbol codes.
7245symcode='[BCDEGRST]'
7246
7247# Regexp to match symbols that can be accessed directly from C.
7248sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7249
7250# Transform the above into a raw symbol and a C symbol.
7251symxfrm='\1 \2\3 \3'
7252
7253# Transform an extracted symbol line into a proper C declaration
7254lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7255
7256# Transform an extracted symbol line into symbol name and symbol address
7257lt_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'"
7258
7259# Define system-specific variables.
7260case $host_os in
7261aix*)
7262 symcode='[BCDT]'
7263 ;;
7264cygwin* | mingw* | pw32*)
7265 symcode='[ABCDGISTW]'
7266 ;;
7267hpux*) # Its linker distinguishes data from code symbols
7268 if test "$host_cpu" = ia64; then
7269 symcode='[ABCDEGRST]'
7270 fi
7271 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7272 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'"
7273 ;;
7274linux*)
7275 if test "$host_cpu" = ia64; then
7276 symcode='[ABCDGIRSTW]'
7277 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7278 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'"
7279 fi
7280 ;;
7281irix* | nonstopux*)
7282 symcode='[BCDEGRST]'
7283 ;;
7284osf*)
7285 symcode='[BCDEGQRST]'
7286 ;;
7287solaris* | sysv5*)
7288 symcode='[BDRT]'
7289 ;;
7290sysv4)
7291 symcode='[DFNSTU]'
7292 ;;
7293esac
7294
7295# Handle CRLF in mingw tool chain
7296opt_cr=
7297case $build_os in
7298mingw*)
7299 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7300 ;;
7301esac
7302
7303# If we're using GNU nm, then use its standard symbol codes.
7304case `$NM -V 2>&1` in
7305*GNU* | *'with BFD'*)
7306 symcode='[ABCDGIRSTW]' ;;
7307esac
7308
7309# Try without a prefix undercore, then with it.
7310for ac_symprfx in "" "_"; do
7311
7312 # Write the raw and C identifiers.
7313 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7314
7315 # Check to see that the pipe works correctly.
7316 pipe_works=no
7317
7318 rm -f conftest*
7319 cat > conftest.$ac_ext <<EOF
7320#ifdef __cplusplus
7321extern "C" {
7322#endif
7323char nm_test_var;
7324void nm_test_func(){}
7325#ifdef __cplusplus
7326}
7327#endif
7328int main(){nm_test_var='a';nm_test_func();return(0);}
7329EOF
7330
7331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7332 (eval $ac_compile) 2>&5
7333 ac_status=$?
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); }; then
7336 # Now try to grab the symbols.
7337 nlist=conftest.nm
7338 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7339 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7340 ac_status=$?
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } && test -s "$nlist"; then
7343 # Try sorting and uniquifying the output.
7344 if sort "$nlist" | uniq > "$nlist"T; then
7345 mv -f "$nlist"T "$nlist"
7346 else
7347 rm -f "$nlist"T
7348 fi
7349
7350 # Make sure that we snagged all the symbols we need.
7351 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7352 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7353 cat <<EOF > conftest.$ac_ext
7354#ifdef __cplusplus
7355extern "C" {
7356#endif
7357
7358EOF
7359 # Now generate the symbol file.
7360 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7361
7362 cat <<EOF >> conftest.$ac_ext
7363#if defined (__STDC__) && __STDC__
7364# define lt_ptr_t void *
7365#else
7366# define lt_ptr_t char *
7367# define const
7368#endif
7369
7370/* The mapping between symbol names and symbols. */
7371const struct {
7372 const char *name;
7373 lt_ptr_t address;
7374}
7375lt_preloaded_symbols[] =
7376{
7377EOF
7378 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7379 cat <<\EOF >> conftest.$ac_ext
7380 {0, (lt_ptr_t) 0}
7381};
7382
7383#ifdef __cplusplus
7384}
7385#endif
7386EOF
7387 # Now try linking the two files.
7388 mv conftest.$ac_objext conftstm.$ac_objext
7389 lt_save_LIBS="$LIBS"
7390 lt_save_CFLAGS="$CFLAGS"
7391 LIBS="conftstm.$ac_objext"
7392 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7394 (eval $ac_link) 2>&5
7395 ac_status=$?
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7398 pipe_works=yes
7399 fi
7400 LIBS="$lt_save_LIBS"
7401 CFLAGS="$lt_save_CFLAGS"
7402 else
7403 echo "cannot find nm_test_func in $nlist" >&5
7404 fi
7405 else
7406 echo "cannot find nm_test_var in $nlist" >&5
7407 fi
7408 else
7409 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7410 fi
7411 else
7412 echo "$progname: failed program was:" >&5
7413 cat conftest.$ac_ext >&5
7414 fi
7415 rm -f conftest* conftst*
7416
7417 # Do not use the global_symbol_pipe unless it works.
7418 if test "$pipe_works" = yes; then
7419 break
7420 else
7421 lt_cv_sys_global_symbol_pipe=
7422 fi
7423done
7424
7425fi
7426
7427if test -z "$lt_cv_sys_global_symbol_pipe"; then
7428 lt_cv_sys_global_symbol_to_cdecl=
7429fi
7430if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7431 echo "$as_me:$LINENO: result: failed" >&5
7432echo "${ECHO_T}failed" >&6
7433else
7434 echo "$as_me:$LINENO: result: ok" >&5
7435echo "${ECHO_T}ok" >&6
7436fi
7437
7438
7439echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7440echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7441if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7443else
7444 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7445 libltdl_cv_preloaded_symbols=yes
7446 else
7447 libltdl_cv_preloaded_symbols=no
7448 fi
7449
7450fi
7451echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7452echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7453if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7454
7455cat >>confdefs.h <<\_ACEOF
7456#define HAVE_PRELOADED_SYMBOLS 1
7457_ACEOF
7458
7459fi
7460
7461LIBADD_DL=
7462
7463ac_ext=c
7464ac_cpp='$CPP $CPPFLAGS'
7465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7467ac_compiler_gnu=$ac_cv_c_compiler_gnu
7468
7469
7470echo "$as_me:$LINENO: checking for shl_load" >&5
7471echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7472if test "${ac_cv_func_shl_load+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7474else
7475 cat >conftest.$ac_ext <<_ACEOF
7476/* confdefs.h. */
7477_ACEOF
7478cat confdefs.h >>conftest.$ac_ext
7479cat >>conftest.$ac_ext <<_ACEOF
7480/* end confdefs.h. */
7481/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7483#define shl_load innocuous_shl_load
7484
7485/* System header to define __stub macros and hopefully few prototypes,
7486 which can conflict with char shl_load (); below.
7487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7488 <limits.h> exists even on freestanding compilers. */
7489
7490#ifdef __STDC__
7491# include <limits.h>
7492#else
7493# include <assert.h>
7494#endif
7495
7496#undef shl_load
7497
7498/* Override any gcc2 internal prototype to avoid an error. */
7499#ifdef __cplusplus
7500extern "C"
7501{
7502#endif
7503/* We use char because int might match the return type of a gcc2
7504 builtin and then its argument prototype would still apply. */
7505char shl_load ();
7506/* The GNU C library defines this for functions which it implements
7507 to always fail with ENOSYS. Some functions are actually named
7508 something starting with __ and the normal name is an alias. */
7509#if defined (__stub_shl_load) || defined (__stub___shl_load)
7510choke me
7511#else
7512char (*f) () = shl_load;
7513#endif
7514#ifdef __cplusplus
7515}
7516#endif
7517
7518int
7519main ()
7520{
7521return f != shl_load;
7522 ;
7523 return 0;
7524}
7525_ACEOF
7526rm -f conftest.$ac_objext conftest$ac_exeext
7527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7528 (eval $ac_link) 2>conftest.er1
7529 ac_status=$?
7530 grep -v '^ *+' conftest.er1 >conftest.err
7531 rm -f conftest.er1
7532 cat conftest.err >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } &&
7535 { ac_try='test -z "$ac_c_werror_flag"
7536 || test ! -s conftest.err'
7537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7538 (eval $ac_try) 2>&5
7539 ac_status=$?
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); }; } &&
7542 { ac_try='test -s conftest$ac_exeext'
7543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544 (eval $ac_try) 2>&5
7545 ac_status=$?
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }; }; then
7548 ac_cv_func_shl_load=yes
7549else
7550 echo "$as_me: failed program was:" >&5
7551sed 's/^/| /' conftest.$ac_ext >&5
7552
7553ac_cv_func_shl_load=no
7554fi
7555rm -f conftest.err conftest.$ac_objext \
7556 conftest$ac_exeext conftest.$ac_ext
7557fi
7558echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7559echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7560if test $ac_cv_func_shl_load = yes; then
7561
7562cat >>confdefs.h <<\_ACEOF
7563#define HAVE_SHL_LOAD 1
7564_ACEOF
7565
7566else
7567 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7568echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7569if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7571else
7572 ac_check_lib_save_LIBS=$LIBS
7573LIBS="-ldld $LIBS"
7574cat >conftest.$ac_ext <<_ACEOF
7575/* confdefs.h. */
7576_ACEOF
7577cat confdefs.h >>conftest.$ac_ext
7578cat >>conftest.$ac_ext <<_ACEOF
7579/* end confdefs.h. */
7580
7581/* Override any gcc2 internal prototype to avoid an error. */
7582#ifdef __cplusplus
7583extern "C"
7584#endif
7585/* We use char because int might match the return type of a gcc2
7586 builtin and then its argument prototype would still apply. */
7587char shl_load ();
7588int
7589main ()
7590{
7591shl_load ();
7592 ;
7593 return 0;
7594}
7595_ACEOF
7596rm -f conftest.$ac_objext conftest$ac_exeext
7597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7598 (eval $ac_link) 2>conftest.er1
7599 ac_status=$?
7600 grep -v '^ *+' conftest.er1 >conftest.err
7601 rm -f conftest.er1
7602 cat conftest.err >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } &&
7605 { ac_try='test -z "$ac_c_werror_flag"
7606 || test ! -s conftest.err'
7607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608 (eval $ac_try) 2>&5
7609 ac_status=$?
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); }; } &&
7612 { ac_try='test -s conftest$ac_exeext'
7613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614 (eval $ac_try) 2>&5
7615 ac_status=$?
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; }; then
7618 ac_cv_lib_dld_shl_load=yes
7619else
7620 echo "$as_me: failed program was:" >&5
7621sed 's/^/| /' conftest.$ac_ext >&5
7622
7623ac_cv_lib_dld_shl_load=no
7624fi
7625rm -f conftest.err conftest.$ac_objext \
7626 conftest$ac_exeext conftest.$ac_ext
7627LIBS=$ac_check_lib_save_LIBS
7628fi
7629echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7630echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7631if test $ac_cv_lib_dld_shl_load = yes; then
7632
7633cat >>confdefs.h <<\_ACEOF
7634#define HAVE_SHL_LOAD 1
7635_ACEOF
7636
7637 LIBADD_DL="$LIBADD_DL -ldld"
7638else
7639 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7640echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7641if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7643else
7644 ac_check_lib_save_LIBS=$LIBS
7645LIBS="-ldl $LIBS"
7646cat >conftest.$ac_ext <<_ACEOF
7647/* confdefs.h. */
7648_ACEOF
7649cat confdefs.h >>conftest.$ac_ext
7650cat >>conftest.$ac_ext <<_ACEOF
7651/* end confdefs.h. */
7652
7653/* Override any gcc2 internal prototype to avoid an error. */
7654#ifdef __cplusplus
7655extern "C"
7656#endif
7657/* We use char because int might match the return type of a gcc2
7658 builtin and then its argument prototype would still apply. */
7659char dlopen ();
7660int
7661main ()
7662{
7663dlopen ();
7664 ;
7665 return 0;
7666}
7667_ACEOF
7668rm -f conftest.$ac_objext conftest$ac_exeext
7669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7670 (eval $ac_link) 2>conftest.er1
7671 ac_status=$?
7672 grep -v '^ *+' conftest.er1 >conftest.err
7673 rm -f conftest.er1
7674 cat conftest.err >&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } &&
7677 { ac_try='test -z "$ac_c_werror_flag"
7678 || test ! -s conftest.err'
7679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680 (eval $ac_try) 2>&5
7681 ac_status=$?
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); }; } &&
7684 { ac_try='test -s conftest$ac_exeext'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686 (eval $ac_try) 2>&5
7687 ac_status=$?
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; }; then
7690 ac_cv_lib_dl_dlopen=yes
7691else
7692 echo "$as_me: failed program was:" >&5
7693sed 's/^/| /' conftest.$ac_ext >&5
7694
7695ac_cv_lib_dl_dlopen=no
7696fi
7697rm -f conftest.err conftest.$ac_objext \
7698 conftest$ac_exeext conftest.$ac_ext
7699LIBS=$ac_check_lib_save_LIBS
7700fi
7701echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7702echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7703if test $ac_cv_lib_dl_dlopen = yes; then
7704
7705cat >>confdefs.h <<\_ACEOF
7706#define HAVE_LIBDL 1
7707_ACEOF
7708
7709 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7710else
7711 cat >conftest.$ac_ext <<_ACEOF
7712/* confdefs.h. */
7713_ACEOF
7714cat confdefs.h >>conftest.$ac_ext
7715cat >>conftest.$ac_ext <<_ACEOF
7716/* end confdefs.h. */
7717#if HAVE_DLFCN_H
7718# include <dlfcn.h>
7719#endif
7720
7721int
7722main ()
7723{
7724dlopen(0, 0);
7725 ;
7726 return 0;
7727}
7728_ACEOF
7729rm -f conftest.$ac_objext conftest$ac_exeext
7730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7731 (eval $ac_link) 2>conftest.er1
7732 ac_status=$?
7733 grep -v '^ *+' conftest.er1 >conftest.err
7734 rm -f conftest.er1
7735 cat conftest.err >&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } &&
7738 { ac_try='test -z "$ac_c_werror_flag"
7739 || test ! -s conftest.err'
7740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741 (eval $ac_try) 2>&5
7742 ac_status=$?
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }; } &&
7745 { ac_try='test -s conftest$ac_exeext'
7746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747 (eval $ac_try) 2>&5
7748 ac_status=$?
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); }; }; then
7751
7752cat >>confdefs.h <<\_ACEOF
7753#define HAVE_LIBDL 1
7754_ACEOF
7755 libltdl_cv_func_dlopen="yes"
7756else
7757 echo "$as_me: failed program was:" >&5
7758sed 's/^/| /' conftest.$ac_ext >&5
7759
7760echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7761echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7762if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7764else
7765 ac_check_lib_save_LIBS=$LIBS
7766LIBS="-lsvld $LIBS"
7767cat >conftest.$ac_ext <<_ACEOF
7768/* confdefs.h. */
7769_ACEOF
7770cat confdefs.h >>conftest.$ac_ext
7771cat >>conftest.$ac_ext <<_ACEOF
7772/* end confdefs.h. */
7773
7774/* Override any gcc2 internal prototype to avoid an error. */
7775#ifdef __cplusplus
7776extern "C"
7777#endif
7778/* We use char because int might match the return type of a gcc2
7779 builtin and then its argument prototype would still apply. */
7780char dlopen ();
7781int
7782main ()
7783{
7784dlopen ();
7785 ;
7786 return 0;
7787}
7788_ACEOF
7789rm -f conftest.$ac_objext conftest$ac_exeext
7790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7791 (eval $ac_link) 2>conftest.er1
7792 ac_status=$?
7793 grep -v '^ *+' conftest.er1 >conftest.err
7794 rm -f conftest.er1
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } &&
7798 { ac_try='test -z "$ac_c_werror_flag"
7799 || test ! -s conftest.err'
7800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 (eval $ac_try) 2>&5
7802 ac_status=$?
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; } &&
7805 { ac_try='test -s conftest$ac_exeext'
7806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807 (eval $ac_try) 2>&5
7808 ac_status=$?
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); }; }; then
7811 ac_cv_lib_svld_dlopen=yes
7812else
7813 echo "$as_me: failed program was:" >&5
7814sed 's/^/| /' conftest.$ac_ext >&5
7815
7816ac_cv_lib_svld_dlopen=no
7817fi
7818rm -f conftest.err conftest.$ac_objext \
7819 conftest$ac_exeext conftest.$ac_ext
7820LIBS=$ac_check_lib_save_LIBS
7821fi
7822echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7823echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7824if test $ac_cv_lib_svld_dlopen = yes; then
7825
7826cat >>confdefs.h <<\_ACEOF
7827#define HAVE_LIBDL 1
7828_ACEOF
7829
7830 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7831else
7832 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7833echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7834if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7836else
7837 ac_check_lib_save_LIBS=$LIBS
7838LIBS="-ldld $LIBS"
7839cat >conftest.$ac_ext <<_ACEOF
7840/* confdefs.h. */
7841_ACEOF
7842cat confdefs.h >>conftest.$ac_ext
7843cat >>conftest.$ac_ext <<_ACEOF
7844/* end confdefs.h. */
7845
7846/* Override any gcc2 internal prototype to avoid an error. */
7847#ifdef __cplusplus
7848extern "C"
7849#endif
7850/* We use char because int might match the return type of a gcc2
7851 builtin and then its argument prototype would still apply. */
7852char dld_link ();
7853int
7854main ()
7855{
7856dld_link ();
7857 ;
7858 return 0;
7859}
7860_ACEOF
7861rm -f conftest.$ac_objext conftest$ac_exeext
7862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7863 (eval $ac_link) 2>conftest.er1
7864 ac_status=$?
7865 grep -v '^ *+' conftest.er1 >conftest.err
7866 rm -f conftest.er1
7867 cat conftest.err >&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } &&
7870 { ac_try='test -z "$ac_c_werror_flag"
7871 || test ! -s conftest.err'
7872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7873 (eval $ac_try) 2>&5
7874 ac_status=$?
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; } &&
7877 { ac_try='test -s conftest$ac_exeext'
7878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879 (eval $ac_try) 2>&5
7880 ac_status=$?
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; }; then
7883 ac_cv_lib_dld_dld_link=yes
7884else
7885 echo "$as_me: failed program was:" >&5
7886sed 's/^/| /' conftest.$ac_ext >&5
7887
7888ac_cv_lib_dld_dld_link=no
7889fi
7890rm -f conftest.err conftest.$ac_objext \
7891 conftest$ac_exeext conftest.$ac_ext
7892LIBS=$ac_check_lib_save_LIBS
7893fi
7894echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7895echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7896if test $ac_cv_lib_dld_dld_link = yes; then
7897
7898cat >>confdefs.h <<\_ACEOF
7899#define HAVE_DLD 1
7900_ACEOF
7901
7902 LIBADD_DL="$LIBADD_DL -ldld"
7903else
7904 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7905echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7906if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7908else
7909 cat >conftest.$ac_ext <<_ACEOF
7910/* confdefs.h. */
7911_ACEOF
7912cat confdefs.h >>conftest.$ac_ext
7913cat >>conftest.$ac_ext <<_ACEOF
7914/* end confdefs.h. */
7915/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7917#define _dyld_func_lookup innocuous__dyld_func_lookup
7918
7919/* System header to define __stub macros and hopefully few prototypes,
7920 which can conflict with char _dyld_func_lookup (); below.
7921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7922 <limits.h> exists even on freestanding compilers. */
7923
7924#ifdef __STDC__
7925# include <limits.h>
7926#else
7927# include <assert.h>
7928#endif
7929
7930#undef _dyld_func_lookup
7931
7932/* Override any gcc2 internal prototype to avoid an error. */
7933#ifdef __cplusplus
7934extern "C"
7935{
7936#endif
7937/* We use char because int might match the return type of a gcc2
7938 builtin and then its argument prototype would still apply. */
7939char _dyld_func_lookup ();
7940/* The GNU C library defines this for functions which it implements
7941 to always fail with ENOSYS. Some functions are actually named
7942 something starting with __ and the normal name is an alias. */
7943#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7944choke me
7945#else
7946char (*f) () = _dyld_func_lookup;
7947#endif
7948#ifdef __cplusplus
7949}
7950#endif
7951
7952int
7953main ()
7954{
7955return f != _dyld_func_lookup;
7956 ;
7957 return 0;
7958}
7959_ACEOF
7960rm -f conftest.$ac_objext conftest$ac_exeext
7961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7962 (eval $ac_link) 2>conftest.er1
7963 ac_status=$?
7964 grep -v '^ *+' conftest.er1 >conftest.err
7965 rm -f conftest.er1
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } &&
7969 { ac_try='test -z "$ac_c_werror_flag"
7970 || test ! -s conftest.err'
7971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 (eval $ac_try) 2>&5
7973 ac_status=$?
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; } &&
7976 { ac_try='test -s conftest$ac_exeext'
7977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978 (eval $ac_try) 2>&5
7979 ac_status=$?
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); }; }; then
7982 ac_cv_func__dyld_func_lookup=yes
7983else
7984 echo "$as_me: failed program was:" >&5
7985sed 's/^/| /' conftest.$ac_ext >&5
7986
7987ac_cv_func__dyld_func_lookup=no
7988fi
7989rm -f conftest.err conftest.$ac_objext \
7990 conftest$ac_exeext conftest.$ac_ext
7991fi
7992echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
7993echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
7994if test $ac_cv_func__dyld_func_lookup = yes; then
7995
7996cat >>confdefs.h <<\_ACEOF
7997#define HAVE_DYLD 1
7998_ACEOF
7999
8000fi
8001
8002
8003fi
8004
8005
8006fi
8007
8008
8009fi
8010rm -f conftest.err conftest.$ac_objext \
8011 conftest$ac_exeext conftest.$ac_ext
8012
8013fi
8014
8015
8016fi
8017
8018
8019fi
8020
8021
8022if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8023then
8024 lt_save_LIBS="$LIBS"
8025 LIBS="$LIBS $LIBADD_DL"
8026
8027for ac_func in dlerror
8028do
8029as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8030echo "$as_me:$LINENO: checking for $ac_func" >&5
8031echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8032if eval "test \"\${$as_ac_var+set}\" = set"; then
8033 echo $ECHO_N "(cached) $ECHO_C" >&6
8034else
8035 cat >conftest.$ac_ext <<_ACEOF
8036/* confdefs.h. */
8037_ACEOF
8038cat confdefs.h >>conftest.$ac_ext
8039cat >>conftest.$ac_ext <<_ACEOF
8040/* end confdefs.h. */
8041/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8043#define $ac_func innocuous_$ac_func
8044
8045/* System header to define __stub macros and hopefully few prototypes,
8046 which can conflict with char $ac_func (); below.
8047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8048 <limits.h> exists even on freestanding compilers. */
8049
8050#ifdef __STDC__
8051# include <limits.h>
8052#else
8053# include <assert.h>
8054#endif
8055
8056#undef $ac_func
8057
8058/* Override any gcc2 internal prototype to avoid an error. */
8059#ifdef __cplusplus
8060extern "C"
8061{
8062#endif
8063/* We use char because int might match the return type of a gcc2
8064 builtin and then its argument prototype would still apply. */
8065char $ac_func ();
8066/* The GNU C library defines this for functions which it implements
8067 to always fail with ENOSYS. Some functions are actually named
8068 something starting with __ and the normal name is an alias. */
8069#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8070choke me
8071#else
8072char (*f) () = $ac_func;
8073#endif
8074#ifdef __cplusplus
8075}
8076#endif
8077
8078int
8079main ()
8080{
8081return f != $ac_func;
8082 ;
8083 return 0;
8084}
8085_ACEOF
8086rm -f conftest.$ac_objext conftest$ac_exeext
8087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8088 (eval $ac_link) 2>conftest.er1
8089 ac_status=$?
8090 grep -v '^ *+' conftest.er1 >conftest.err
8091 rm -f conftest.er1
8092 cat conftest.err >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } &&
8095 { ac_try='test -z "$ac_c_werror_flag"
8096 || test ! -s conftest.err'
8097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8098 (eval $ac_try) 2>&5
8099 ac_status=$?
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); }; } &&
8102 { ac_try='test -s conftest$ac_exeext'
8103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8104 (eval $ac_try) 2>&5
8105 ac_status=$?
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); }; }; then
8108 eval "$as_ac_var=yes"
8109else
8110 echo "$as_me: failed program was:" >&5
8111sed 's/^/| /' conftest.$ac_ext >&5
8112
8113eval "$as_ac_var=no"
8114fi
8115rm -f conftest.err conftest.$ac_objext \
8116 conftest$ac_exeext conftest.$ac_ext
8117fi
8118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8119echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8120if test `eval echo '${'$as_ac_var'}'` = yes; then
8121 cat >>confdefs.h <<_ACEOF
8122#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8123_ACEOF
8124
8125fi
8126done
8127
8128 LIBS="$lt_save_LIBS"
8129fi
8130ac_ext=c
8131ac_cpp='$CPP $CPPFLAGS'
8132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8134ac_compiler_gnu=$ac_cv_c_compiler_gnu
8135
8136
8137
8138echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8139echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8140if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8142else
8143 ac_cv_sys_symbol_underscore=no
8144 cat > conftest.$ac_ext <<EOF
8145void nm_test_func(){}
8146int main(){nm_test_func;return 0;}
8147EOF
8148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8149 (eval $ac_compile) 2>&5
8150 ac_status=$?
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; then
8153 # Now try to grab the symbols.
8154 ac_nlist=conftest.nm
8155 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8156 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8157 ac_status=$?
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); } && test -s "$ac_nlist"; then
8160 # See whether the symbols have a leading underscore.
8161 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8162 ac_cv_sys_symbol_underscore=yes
8163 else
8164 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8165 :
8166 else
8167 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8168 fi
8169 fi
8170 else
8171 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8172 fi
8173 else
8174 echo "configure: failed program was:" >&5
8175 cat conftest.c >&5
8176 fi
8177 rm -rf conftest*
8178
8179fi
8180echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8181echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8182
8183
8184if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8185 if test x"$libltdl_cv_func_dlopen" = xyes ||
8186 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8187 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8188echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8189if test "${libltdl_cv_need_uscore+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8191else
8192 libltdl_cv_need_uscore=unknown
8193 save_LIBS="$LIBS"
8194 LIBS="$LIBS $LIBADD_DL"
8195 if test "$cross_compiling" = yes; then :
8196 libltdl_cv_need_uscore=cross
8197else
8198 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8199 lt_status=$lt_dlunknown
8200 cat > conftest.$ac_ext <<EOF
Reid Spencer0fcb9412004-11-30 08:11:54 +00008201#line 8201 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008202#include "confdefs.h"
8203
8204#if HAVE_DLFCN_H
8205#include <dlfcn.h>
8206#endif
8207
8208#include <stdio.h>
8209
8210#ifdef RTLD_GLOBAL
8211# define LT_DLGLOBAL RTLD_GLOBAL
8212#else
8213# ifdef DL_GLOBAL
8214# define LT_DLGLOBAL DL_GLOBAL
8215# else
8216# define LT_DLGLOBAL 0
8217# endif
8218#endif
8219
8220/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8221 find out it does not work in some platform. */
8222#ifndef LT_DLLAZY_OR_NOW
8223# ifdef RTLD_LAZY
8224# define LT_DLLAZY_OR_NOW RTLD_LAZY
8225# else
8226# ifdef DL_LAZY
8227# define LT_DLLAZY_OR_NOW DL_LAZY
8228# else
8229# ifdef RTLD_NOW
8230# define LT_DLLAZY_OR_NOW RTLD_NOW
8231# else
8232# ifdef DL_NOW
8233# define LT_DLLAZY_OR_NOW DL_NOW
8234# else
8235# define LT_DLLAZY_OR_NOW 0
8236# endif
8237# endif
8238# endif
8239# endif
8240#endif
8241
8242#ifdef __cplusplus
8243extern "C" void exit (int);
8244#endif
8245
8246void fnord() { int i=42;}
8247int main ()
8248{
8249 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8250 int status = $lt_dlunknown;
8251
8252 if (self)
8253 {
8254 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8255 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8256 /* dlclose (self); */
8257 }
8258
8259 exit (status);
8260}
8261EOF
8262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8263 (eval $ac_link) 2>&5
8264 ac_status=$?
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8267 (./conftest; exit; ) 2>/dev/null
8268 lt_status=$?
8269 case x$lt_status in
8270 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8271 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8272 x$lt_unknown|x*) ;;
8273 esac
8274 else :
8275 # compilation failed
8276
8277 fi
8278fi
8279rm -fr conftest*
8280
8281 LIBS="$save_LIBS"
8282
8283fi
8284echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8285echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8286 fi
8287fi
8288
8289if test x"$libltdl_cv_need_uscore" = xyes; then
8290
8291cat >>confdefs.h <<\_ACEOF
8292#define NEED_USCORE 1
8293_ACEOF
8294
8295fi
8296
8297
8298echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8299echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8300if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
8302else
8303 # PORTME does your system automatically load deplibs for dlopen?
8304 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8305 # For now, we just catch OSes we know something about -- in the
8306 # future, we'll try test this programmatically.
8307 libltdl_cv_sys_dlopen_deplibs=unknown
8308 case "$host_os" in
8309 aix3*|aix4.1.*|aix4.2.*)
8310 # Unknown whether this is true for these versions of AIX, but
8311 # we want this `case' here to explicitly catch those versions.
8312 libltdl_cv_sys_dlopen_deplibs=unknown
8313 ;;
8314 aix[45]*)
8315 libltdl_cv_sys_dlopen_deplibs=yes
8316 ;;
8317 darwin*)
8318 # Assuming the user has installed a libdl from somewhere, this is true
8319 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8320 libltdl_cv_sys_dlopen_deplibs=yes
8321 ;;
8322 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8323 # GNU and its variants, using gnu ld.so (Glibc)
8324 libltdl_cv_sys_dlopen_deplibs=yes
8325 ;;
8326 hpux10*|hpux11*)
8327 libltdl_cv_sys_dlopen_deplibs=yes
8328 ;;
8329 irix[12345]*|irix6.[01]*)
8330 # Catch all versions of IRIX before 6.2, and indicate that we don't
8331 # know how it worked for any of those versions.
8332 libltdl_cv_sys_dlopen_deplibs=unknown
8333 ;;
8334 irix*)
8335 # The case above catches anything before 6.2, and it's known that
8336 # at 6.2 and later dlopen does load deplibs.
8337 libltdl_cv_sys_dlopen_deplibs=yes
8338 ;;
8339 netbsd*)
8340 libltdl_cv_sys_dlopen_deplibs=yes
8341 ;;
8342 openbsd*)
8343 libltdl_cv_sys_dlopen_deplibs=yes
8344 ;;
8345 osf[1234]*)
8346 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8347 # it did *not* use an RPATH in a shared library to find objects the
8348 # library depends on, so we explictly say `no'.
8349 libltdl_cv_sys_dlopen_deplibs=no
8350 ;;
8351 osf5.0|osf5.0a|osf5.1)
8352 # dlopen *does* load deplibs and with the right loader patch applied
8353 # it even uses RPATH in a shared library to search for shared objects
8354 # that the library depends on, but there's no easy way to know if that
8355 # patch is installed. Since this is the case, all we can really
8356 # say is unknown -- it depends on the patch being installed. If
8357 # it is, this changes to `yes'. Without it, it would be `no'.
8358 libltdl_cv_sys_dlopen_deplibs=unknown
8359 ;;
8360 osf*)
8361 # the two cases above should catch all versions of osf <= 5.1. Read
8362 # the comments above for what we know about them.
8363 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8364 # is used to find them so we can finally say `yes'.
8365 libltdl_cv_sys_dlopen_deplibs=yes
8366 ;;
8367 solaris*)
8368 libltdl_cv_sys_dlopen_deplibs=yes
8369 ;;
8370 esac
8371
8372fi
8373echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8374echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8375if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8376
8377cat >>confdefs.h <<\_ACEOF
8378#define LTDL_DLOPEN_DEPLIBS 1
8379_ACEOF
8380
8381fi
8382
8383
8384for ac_header in argz.h
8385do
8386as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8387if eval "test \"\${$as_ac_Header+set}\" = set"; then
8388 echo "$as_me:$LINENO: checking for $ac_header" >&5
8389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8390if eval "test \"\${$as_ac_Header+set}\" = set"; then
8391 echo $ECHO_N "(cached) $ECHO_C" >&6
8392fi
8393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8394echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8395else
8396 # Is the header compilable?
8397echo "$as_me:$LINENO: checking $ac_header usability" >&5
8398echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8399cat >conftest.$ac_ext <<_ACEOF
8400/* confdefs.h. */
8401_ACEOF
8402cat confdefs.h >>conftest.$ac_ext
8403cat >>conftest.$ac_ext <<_ACEOF
8404/* end confdefs.h. */
8405$ac_includes_default
8406#include <$ac_header>
8407_ACEOF
8408rm -f conftest.$ac_objext
8409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8410 (eval $ac_compile) 2>conftest.er1
8411 ac_status=$?
8412 grep -v '^ *+' conftest.er1 >conftest.err
8413 rm -f conftest.er1
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } &&
8417 { ac_try='test -z "$ac_c_werror_flag"
8418 || test ! -s conftest.err'
8419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420 (eval $ac_try) 2>&5
8421 ac_status=$?
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; } &&
8424 { ac_try='test -s conftest.$ac_objext'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 (eval $ac_try) 2>&5
8427 ac_status=$?
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; }; then
8430 ac_header_compiler=yes
8431else
8432 echo "$as_me: failed program was:" >&5
8433sed 's/^/| /' conftest.$ac_ext >&5
8434
8435ac_header_compiler=no
8436fi
8437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8438echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8439echo "${ECHO_T}$ac_header_compiler" >&6
8440
8441# Is the header present?
8442echo "$as_me:$LINENO: checking $ac_header presence" >&5
8443echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8444cat >conftest.$ac_ext <<_ACEOF
8445/* confdefs.h. */
8446_ACEOF
8447cat confdefs.h >>conftest.$ac_ext
8448cat >>conftest.$ac_ext <<_ACEOF
8449/* end confdefs.h. */
8450#include <$ac_header>
8451_ACEOF
8452if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8454 ac_status=$?
8455 grep -v '^ *+' conftest.er1 >conftest.err
8456 rm -f conftest.er1
8457 cat conftest.err >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } >/dev/null; then
8460 if test -s conftest.err; then
8461 ac_cpp_err=$ac_c_preproc_warn_flag
8462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8463 else
8464 ac_cpp_err=
8465 fi
8466else
8467 ac_cpp_err=yes
8468fi
8469if test -z "$ac_cpp_err"; then
8470 ac_header_preproc=yes
8471else
8472 echo "$as_me: failed program was:" >&5
8473sed 's/^/| /' conftest.$ac_ext >&5
8474
8475 ac_header_preproc=no
8476fi
8477rm -f conftest.err conftest.$ac_ext
8478echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8479echo "${ECHO_T}$ac_header_preproc" >&6
8480
8481# So? What about this header?
8482case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8483 yes:no: )
8484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8485echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8487echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8488 ac_header_preproc=yes
8489 ;;
8490 no:yes:* )
8491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8492echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8494echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8496echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8498echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8500echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8502echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8503 (
8504 cat <<\_ASBOX
8505## ----------------------------------- ##
8506## Report this to llvmbugs@cs.uiuc.edu ##
8507## ----------------------------------- ##
8508_ASBOX
8509 ) |
8510 sed "s/^/$as_me: WARNING: /" >&2
8511 ;;
8512esac
8513echo "$as_me:$LINENO: checking for $ac_header" >&5
8514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8515if eval "test \"\${$as_ac_Header+set}\" = set"; then
8516 echo $ECHO_N "(cached) $ECHO_C" >&6
8517else
8518 eval "$as_ac_Header=\$ac_header_preproc"
8519fi
8520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8521echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8522
8523fi
8524if test `eval echo '${'$as_ac_Header'}'` = yes; then
8525 cat >>confdefs.h <<_ACEOF
8526#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8527_ACEOF
8528
8529fi
8530
8531done
8532
8533
8534echo "$as_me:$LINENO: checking for error_t" >&5
8535echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8536if test "${ac_cv_type_error_t+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8538else
8539 cat >conftest.$ac_ext <<_ACEOF
8540/* confdefs.h. */
8541_ACEOF
8542cat confdefs.h >>conftest.$ac_ext
8543cat >>conftest.$ac_ext <<_ACEOF
8544/* end confdefs.h. */
8545#if HAVE_ARGZ_H
8546# include <argz.h>
8547#endif
8548
8549int
8550main ()
8551{
8552if ((error_t *) 0)
8553 return 0;
8554if (sizeof (error_t))
8555 return 0;
8556 ;
8557 return 0;
8558}
8559_ACEOF
8560rm -f conftest.$ac_objext
8561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8562 (eval $ac_compile) 2>conftest.er1
8563 ac_status=$?
8564 grep -v '^ *+' conftest.er1 >conftest.err
8565 rm -f conftest.er1
8566 cat conftest.err >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } &&
8569 { ac_try='test -z "$ac_c_werror_flag"
8570 || test ! -s conftest.err'
8571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8572 (eval $ac_try) 2>&5
8573 ac_status=$?
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); }; } &&
8576 { ac_try='test -s conftest.$ac_objext'
8577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578 (eval $ac_try) 2>&5
8579 ac_status=$?
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; }; then
8582 ac_cv_type_error_t=yes
8583else
8584 echo "$as_me: failed program was:" >&5
8585sed 's/^/| /' conftest.$ac_ext >&5
8586
8587ac_cv_type_error_t=no
8588fi
8589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8590fi
8591echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8592echo "${ECHO_T}$ac_cv_type_error_t" >&6
8593if test $ac_cv_type_error_t = yes; then
8594
8595cat >>confdefs.h <<_ACEOF
8596#define HAVE_ERROR_T 1
8597_ACEOF
8598
8599
8600else
8601
8602cat >>confdefs.h <<\_ACEOF
8603#define error_t int
8604_ACEOF
8605
8606fi
8607
8608
8609
8610
8611
8612
8613
8614for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8615do
8616as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8617echo "$as_me:$LINENO: checking for $ac_func" >&5
8618echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8619if eval "test \"\${$as_ac_var+set}\" = set"; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8621else
8622 cat >conftest.$ac_ext <<_ACEOF
8623/* confdefs.h. */
8624_ACEOF
8625cat confdefs.h >>conftest.$ac_ext
8626cat >>conftest.$ac_ext <<_ACEOF
8627/* end confdefs.h. */
8628/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8630#define $ac_func innocuous_$ac_func
8631
8632/* System header to define __stub macros and hopefully few prototypes,
8633 which can conflict with char $ac_func (); below.
8634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8635 <limits.h> exists even on freestanding compilers. */
8636
8637#ifdef __STDC__
8638# include <limits.h>
8639#else
8640# include <assert.h>
8641#endif
8642
8643#undef $ac_func
8644
8645/* Override any gcc2 internal prototype to avoid an error. */
8646#ifdef __cplusplus
8647extern "C"
8648{
8649#endif
8650/* We use char because int might match the return type of a gcc2
8651 builtin and then its argument prototype would still apply. */
8652char $ac_func ();
8653/* The GNU C library defines this for functions which it implements
8654 to always fail with ENOSYS. Some functions are actually named
8655 something starting with __ and the normal name is an alias. */
8656#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8657choke me
8658#else
8659char (*f) () = $ac_func;
8660#endif
8661#ifdef __cplusplus
8662}
8663#endif
8664
8665int
8666main ()
8667{
8668return f != $ac_func;
8669 ;
8670 return 0;
8671}
8672_ACEOF
8673rm -f conftest.$ac_objext conftest$ac_exeext
8674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8675 (eval $ac_link) 2>conftest.er1
8676 ac_status=$?
8677 grep -v '^ *+' conftest.er1 >conftest.err
8678 rm -f conftest.er1
8679 cat conftest.err >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); } &&
8682 { ac_try='test -z "$ac_c_werror_flag"
8683 || test ! -s conftest.err'
8684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685 (eval $ac_try) 2>&5
8686 ac_status=$?
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); }; } &&
8689 { ac_try='test -s conftest$ac_exeext'
8690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691 (eval $ac_try) 2>&5
8692 ac_status=$?
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; }; then
8695 eval "$as_ac_var=yes"
8696else
8697 echo "$as_me: failed program was:" >&5
8698sed 's/^/| /' conftest.$ac_ext >&5
8699
8700eval "$as_ac_var=no"
8701fi
8702rm -f conftest.err conftest.$ac_objext \
8703 conftest$ac_exeext conftest.$ac_ext
8704fi
8705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8706echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8707if test `eval echo '${'$as_ac_var'}'` = yes; then
8708 cat >>confdefs.h <<_ACEOF
8709#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8710_ACEOF
8711
8712fi
8713done
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8743 stdio.h unistd.h
8744do
8745as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8746if eval "test \"\${$as_ac_Header+set}\" = set"; then
8747 echo "$as_me:$LINENO: checking for $ac_header" >&5
8748echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8749if eval "test \"\${$as_ac_Header+set}\" = set"; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8751fi
8752echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8753echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8754else
8755 # Is the header compilable?
8756echo "$as_me:$LINENO: checking $ac_header usability" >&5
8757echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8758cat >conftest.$ac_ext <<_ACEOF
8759/* confdefs.h. */
8760_ACEOF
8761cat confdefs.h >>conftest.$ac_ext
8762cat >>conftest.$ac_ext <<_ACEOF
8763/* end confdefs.h. */
8764$ac_includes_default
8765#include <$ac_header>
8766_ACEOF
8767rm -f conftest.$ac_objext
8768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8769 (eval $ac_compile) 2>conftest.er1
8770 ac_status=$?
8771 grep -v '^ *+' conftest.er1 >conftest.err
8772 rm -f conftest.er1
8773 cat conftest.err >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } &&
8776 { ac_try='test -z "$ac_c_werror_flag"
8777 || test ! -s conftest.err'
8778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779 (eval $ac_try) 2>&5
8780 ac_status=$?
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; } &&
8783 { ac_try='test -s conftest.$ac_objext'
8784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785 (eval $ac_try) 2>&5
8786 ac_status=$?
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); }; }; then
8789 ac_header_compiler=yes
8790else
8791 echo "$as_me: failed program was:" >&5
8792sed 's/^/| /' conftest.$ac_ext >&5
8793
8794ac_header_compiler=no
8795fi
8796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8797echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8798echo "${ECHO_T}$ac_header_compiler" >&6
8799
8800# Is the header present?
8801echo "$as_me:$LINENO: checking $ac_header presence" >&5
8802echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8803cat >conftest.$ac_ext <<_ACEOF
8804/* confdefs.h. */
8805_ACEOF
8806cat confdefs.h >>conftest.$ac_ext
8807cat >>conftest.$ac_ext <<_ACEOF
8808/* end confdefs.h. */
8809#include <$ac_header>
8810_ACEOF
8811if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8813 ac_status=$?
8814 grep -v '^ *+' conftest.er1 >conftest.err
8815 rm -f conftest.er1
8816 cat conftest.err >&5
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); } >/dev/null; then
8819 if test -s conftest.err; then
8820 ac_cpp_err=$ac_c_preproc_warn_flag
8821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8822 else
8823 ac_cpp_err=
8824 fi
8825else
8826 ac_cpp_err=yes
8827fi
8828if test -z "$ac_cpp_err"; then
8829 ac_header_preproc=yes
8830else
8831 echo "$as_me: failed program was:" >&5
8832sed 's/^/| /' conftest.$ac_ext >&5
8833
8834 ac_header_preproc=no
8835fi
8836rm -f conftest.err conftest.$ac_ext
8837echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8838echo "${ECHO_T}$ac_header_preproc" >&6
8839
8840# So? What about this header?
8841case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8842 yes:no: )
8843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8844echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8846echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8847 ac_header_preproc=yes
8848 ;;
8849 no:yes:* )
8850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8851echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8853echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8855echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8857echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8859echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8861echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8862 (
8863 cat <<\_ASBOX
8864## ----------------------------------- ##
8865## Report this to llvmbugs@cs.uiuc.edu ##
8866## ----------------------------------- ##
8867_ASBOX
8868 ) |
8869 sed "s/^/$as_me: WARNING: /" >&2
8870 ;;
8871esac
8872echo "$as_me:$LINENO: checking for $ac_header" >&5
8873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8874if eval "test \"\${$as_ac_Header+set}\" = set"; then
8875 echo $ECHO_N "(cached) $ECHO_C" >&6
8876else
8877 eval "$as_ac_Header=\$ac_header_preproc"
8878fi
8879echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8880echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8881
8882fi
8883if test `eval echo '${'$as_ac_Header'}'` = yes; then
8884 cat >>confdefs.h <<_ACEOF
8885#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8886_ACEOF
8887
8888fi
8889
8890done
8891
8892
8893
8894
8895
8896for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8897do
8898as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8899if eval "test \"\${$as_ac_Header+set}\" = set"; then
8900 echo "$as_me:$LINENO: checking for $ac_header" >&5
8901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8902if eval "test \"\${$as_ac_Header+set}\" = set"; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
8904fi
8905echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8906echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8907else
8908 # Is the header compilable?
8909echo "$as_me:$LINENO: checking $ac_header usability" >&5
8910echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8911cat >conftest.$ac_ext <<_ACEOF
8912/* confdefs.h. */
8913_ACEOF
8914cat confdefs.h >>conftest.$ac_ext
8915cat >>conftest.$ac_ext <<_ACEOF
8916/* end confdefs.h. */
8917$ac_includes_default
8918#include <$ac_header>
8919_ACEOF
8920rm -f conftest.$ac_objext
8921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8922 (eval $ac_compile) 2>conftest.er1
8923 ac_status=$?
8924 grep -v '^ *+' conftest.er1 >conftest.err
8925 rm -f conftest.er1
8926 cat conftest.err >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } &&
8929 { ac_try='test -z "$ac_c_werror_flag"
8930 || test ! -s conftest.err'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 (eval $ac_try) 2>&5
8933 ac_status=$?
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; } &&
8936 { ac_try='test -s conftest.$ac_objext'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938 (eval $ac_try) 2>&5
8939 ac_status=$?
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8942 ac_header_compiler=yes
8943else
8944 echo "$as_me: failed program was:" >&5
8945sed 's/^/| /' conftest.$ac_ext >&5
8946
8947ac_header_compiler=no
8948fi
8949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8950echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8951echo "${ECHO_T}$ac_header_compiler" >&6
8952
8953# Is the header present?
8954echo "$as_me:$LINENO: checking $ac_header presence" >&5
8955echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8956cat >conftest.$ac_ext <<_ACEOF
8957/* confdefs.h. */
8958_ACEOF
8959cat confdefs.h >>conftest.$ac_ext
8960cat >>conftest.$ac_ext <<_ACEOF
8961/* end confdefs.h. */
8962#include <$ac_header>
8963_ACEOF
8964if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8966 ac_status=$?
8967 grep -v '^ *+' conftest.er1 >conftest.err
8968 rm -f conftest.er1
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } >/dev/null; then
8972 if test -s conftest.err; then
8973 ac_cpp_err=$ac_c_preproc_warn_flag
8974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8975 else
8976 ac_cpp_err=
8977 fi
8978else
8979 ac_cpp_err=yes
8980fi
8981if test -z "$ac_cpp_err"; then
8982 ac_header_preproc=yes
8983else
8984 echo "$as_me: failed program was:" >&5
8985sed 's/^/| /' conftest.$ac_ext >&5
8986
8987 ac_header_preproc=no
8988fi
8989rm -f conftest.err conftest.$ac_ext
8990echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8991echo "${ECHO_T}$ac_header_preproc" >&6
8992
8993# So? What about this header?
8994case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8995 yes:no: )
8996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8997echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8999echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9000 ac_header_preproc=yes
9001 ;;
9002 no:yes:* )
9003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9004echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9006echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9008echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9010echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9012echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9014echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9015 (
9016 cat <<\_ASBOX
9017## ----------------------------------- ##
9018## Report this to llvmbugs@cs.uiuc.edu ##
9019## ----------------------------------- ##
9020_ASBOX
9021 ) |
9022 sed "s/^/$as_me: WARNING: /" >&2
9023 ;;
9024esac
9025echo "$as_me:$LINENO: checking for $ac_header" >&5
9026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9027if eval "test \"\${$as_ac_Header+set}\" = set"; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
9029else
9030 eval "$as_ac_Header=\$ac_header_preproc"
9031fi
9032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9034
9035fi
9036if test `eval echo '${'$as_ac_Header'}'` = yes; then
9037 cat >>confdefs.h <<_ACEOF
9038#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9039_ACEOF
9040
9041fi
9042
9043done
9044
9045
9046
9047for ac_header in string.h strings.h
9048do
9049as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9050if eval "test \"\${$as_ac_Header+set}\" = set"; then
9051 echo "$as_me:$LINENO: checking for $ac_header" >&5
9052echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9053if eval "test \"\${$as_ac_Header+set}\" = set"; then
9054 echo $ECHO_N "(cached) $ECHO_C" >&6
9055fi
9056echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9057echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9058else
9059 # Is the header compilable?
9060echo "$as_me:$LINENO: checking $ac_header usability" >&5
9061echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9062cat >conftest.$ac_ext <<_ACEOF
9063/* confdefs.h. */
9064_ACEOF
9065cat confdefs.h >>conftest.$ac_ext
9066cat >>conftest.$ac_ext <<_ACEOF
9067/* end confdefs.h. */
9068$ac_includes_default
9069#include <$ac_header>
9070_ACEOF
9071rm -f conftest.$ac_objext
9072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9073 (eval $ac_compile) 2>conftest.er1
9074 ac_status=$?
9075 grep -v '^ *+' conftest.er1 >conftest.err
9076 rm -f conftest.er1
9077 cat conftest.err >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); } &&
9080 { ac_try='test -z "$ac_c_werror_flag"
9081 || test ! -s conftest.err'
9082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083 (eval $ac_try) 2>&5
9084 ac_status=$?
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); }; } &&
9087 { ac_try='test -s conftest.$ac_objext'
9088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9089 (eval $ac_try) 2>&5
9090 ac_status=$?
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); }; }; then
9093 ac_header_compiler=yes
9094else
9095 echo "$as_me: failed program was:" >&5
9096sed 's/^/| /' conftest.$ac_ext >&5
9097
9098ac_header_compiler=no
9099fi
9100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9101echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9102echo "${ECHO_T}$ac_header_compiler" >&6
9103
9104# Is the header present?
9105echo "$as_me:$LINENO: checking $ac_header presence" >&5
9106echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9107cat >conftest.$ac_ext <<_ACEOF
9108/* confdefs.h. */
9109_ACEOF
9110cat confdefs.h >>conftest.$ac_ext
9111cat >>conftest.$ac_ext <<_ACEOF
9112/* end confdefs.h. */
9113#include <$ac_header>
9114_ACEOF
9115if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9117 ac_status=$?
9118 grep -v '^ *+' conftest.er1 >conftest.err
9119 rm -f conftest.er1
9120 cat conftest.err >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); } >/dev/null; then
9123 if test -s conftest.err; then
9124 ac_cpp_err=$ac_c_preproc_warn_flag
9125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9126 else
9127 ac_cpp_err=
9128 fi
9129else
9130 ac_cpp_err=yes
9131fi
9132if test -z "$ac_cpp_err"; then
9133 ac_header_preproc=yes
9134else
9135 echo "$as_me: failed program was:" >&5
9136sed 's/^/| /' conftest.$ac_ext >&5
9137
9138 ac_header_preproc=no
9139fi
9140rm -f conftest.err conftest.$ac_ext
9141echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9142echo "${ECHO_T}$ac_header_preproc" >&6
9143
9144# So? What about this header?
9145case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9146 yes:no: )
9147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9148echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9150echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9151 ac_header_preproc=yes
9152 ;;
9153 no:yes:* )
9154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9155echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9157echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9159echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9161echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9163echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9165echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9166 (
9167 cat <<\_ASBOX
9168## ----------------------------------- ##
9169## Report this to llvmbugs@cs.uiuc.edu ##
9170## ----------------------------------- ##
9171_ASBOX
9172 ) |
9173 sed "s/^/$as_me: WARNING: /" >&2
9174 ;;
9175esac
9176echo "$as_me:$LINENO: checking for $ac_header" >&5
9177echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9178if eval "test \"\${$as_ac_Header+set}\" = set"; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9180else
9181 eval "$as_ac_Header=\$ac_header_preproc"
9182fi
9183echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9184echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9185
9186fi
9187if test `eval echo '${'$as_ac_Header'}'` = yes; then
9188 cat >>confdefs.h <<_ACEOF
9189#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9190_ACEOF
9191 break
9192fi
9193
9194done
9195
9196
9197
9198
9199for ac_func in strchr index
9200do
9201as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9202echo "$as_me:$LINENO: checking for $ac_func" >&5
9203echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9204if eval "test \"\${$as_ac_var+set}\" = set"; then
9205 echo $ECHO_N "(cached) $ECHO_C" >&6
9206else
9207 cat >conftest.$ac_ext <<_ACEOF
9208/* confdefs.h. */
9209_ACEOF
9210cat confdefs.h >>conftest.$ac_ext
9211cat >>conftest.$ac_ext <<_ACEOF
9212/* end confdefs.h. */
9213/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9215#define $ac_func innocuous_$ac_func
9216
9217/* System header to define __stub macros and hopefully few prototypes,
9218 which can conflict with char $ac_func (); below.
9219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9220 <limits.h> exists even on freestanding compilers. */
9221
9222#ifdef __STDC__
9223# include <limits.h>
9224#else
9225# include <assert.h>
9226#endif
9227
9228#undef $ac_func
9229
9230/* Override any gcc2 internal prototype to avoid an error. */
9231#ifdef __cplusplus
9232extern "C"
9233{
9234#endif
9235/* We use char because int might match the return type of a gcc2
9236 builtin and then its argument prototype would still apply. */
9237char $ac_func ();
9238/* The GNU C library defines this for functions which it implements
9239 to always fail with ENOSYS. Some functions are actually named
9240 something starting with __ and the normal name is an alias. */
9241#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9242choke me
9243#else
9244char (*f) () = $ac_func;
9245#endif
9246#ifdef __cplusplus
9247}
9248#endif
9249
9250int
9251main ()
9252{
9253return f != $ac_func;
9254 ;
9255 return 0;
9256}
9257_ACEOF
9258rm -f conftest.$ac_objext conftest$ac_exeext
9259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9260 (eval $ac_link) 2>conftest.er1
9261 ac_status=$?
9262 grep -v '^ *+' conftest.er1 >conftest.err
9263 rm -f conftest.er1
9264 cat conftest.err >&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); } &&
9267 { ac_try='test -z "$ac_c_werror_flag"
9268 || test ! -s conftest.err'
9269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9270 (eval $ac_try) 2>&5
9271 ac_status=$?
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); }; } &&
9274 { ac_try='test -s conftest$ac_exeext'
9275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9276 (eval $ac_try) 2>&5
9277 ac_status=$?
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); }; }; then
9280 eval "$as_ac_var=yes"
9281else
9282 echo "$as_me: failed program was:" >&5
9283sed 's/^/| /' conftest.$ac_ext >&5
9284
9285eval "$as_ac_var=no"
9286fi
9287rm -f conftest.err conftest.$ac_objext \
9288 conftest$ac_exeext conftest.$ac_ext
9289fi
9290echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9291echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9292if test `eval echo '${'$as_ac_var'}'` = yes; then
9293 cat >>confdefs.h <<_ACEOF
9294#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9295_ACEOF
9296 break
9297fi
9298done
9299
9300
9301
9302for ac_func in strrchr rindex
9303do
9304as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9305echo "$as_me:$LINENO: checking for $ac_func" >&5
9306echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9307if eval "test \"\${$as_ac_var+set}\" = set"; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9309else
9310 cat >conftest.$ac_ext <<_ACEOF
9311/* confdefs.h. */
9312_ACEOF
9313cat confdefs.h >>conftest.$ac_ext
9314cat >>conftest.$ac_ext <<_ACEOF
9315/* end confdefs.h. */
9316/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9318#define $ac_func innocuous_$ac_func
9319
9320/* System header to define __stub macros and hopefully few prototypes,
9321 which can conflict with char $ac_func (); below.
9322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9323 <limits.h> exists even on freestanding compilers. */
9324
9325#ifdef __STDC__
9326# include <limits.h>
9327#else
9328# include <assert.h>
9329#endif
9330
9331#undef $ac_func
9332
9333/* Override any gcc2 internal prototype to avoid an error. */
9334#ifdef __cplusplus
9335extern "C"
9336{
9337#endif
9338/* We use char because int might match the return type of a gcc2
9339 builtin and then its argument prototype would still apply. */
9340char $ac_func ();
9341/* The GNU C library defines this for functions which it implements
9342 to always fail with ENOSYS. Some functions are actually named
9343 something starting with __ and the normal name is an alias. */
9344#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9345choke me
9346#else
9347char (*f) () = $ac_func;
9348#endif
9349#ifdef __cplusplus
9350}
9351#endif
9352
9353int
9354main ()
9355{
9356return f != $ac_func;
9357 ;
9358 return 0;
9359}
9360_ACEOF
9361rm -f conftest.$ac_objext conftest$ac_exeext
9362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9363 (eval $ac_link) 2>conftest.er1
9364 ac_status=$?
9365 grep -v '^ *+' conftest.er1 >conftest.err
9366 rm -f conftest.er1
9367 cat conftest.err >&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } &&
9370 { ac_try='test -z "$ac_c_werror_flag"
9371 || test ! -s conftest.err'
9372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373 (eval $ac_try) 2>&5
9374 ac_status=$?
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; } &&
9377 { ac_try='test -s conftest$ac_exeext'
9378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379 (eval $ac_try) 2>&5
9380 ac_status=$?
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; }; then
9383 eval "$as_ac_var=yes"
9384else
9385 echo "$as_me: failed program was:" >&5
9386sed 's/^/| /' conftest.$ac_ext >&5
9387
9388eval "$as_ac_var=no"
9389fi
9390rm -f conftest.err conftest.$ac_objext \
9391 conftest$ac_exeext conftest.$ac_ext
9392fi
9393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9394echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9395if test `eval echo '${'$as_ac_var'}'` = yes; then
9396 cat >>confdefs.h <<_ACEOF
9397#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9398_ACEOF
9399 break
9400fi
9401done
9402
9403
9404
9405for ac_func in memcpy bcopy
9406do
9407as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9408echo "$as_me:$LINENO: checking for $ac_func" >&5
9409echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9410if eval "test \"\${$as_ac_var+set}\" = set"; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9412else
9413 cat >conftest.$ac_ext <<_ACEOF
9414/* confdefs.h. */
9415_ACEOF
9416cat confdefs.h >>conftest.$ac_ext
9417cat >>conftest.$ac_ext <<_ACEOF
9418/* end confdefs.h. */
9419/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9421#define $ac_func innocuous_$ac_func
9422
9423/* System header to define __stub macros and hopefully few prototypes,
9424 which can conflict with char $ac_func (); below.
9425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9426 <limits.h> exists even on freestanding compilers. */
9427
9428#ifdef __STDC__
9429# include <limits.h>
9430#else
9431# include <assert.h>
9432#endif
9433
9434#undef $ac_func
9435
9436/* Override any gcc2 internal prototype to avoid an error. */
9437#ifdef __cplusplus
9438extern "C"
9439{
9440#endif
9441/* We use char because int might match the return type of a gcc2
9442 builtin and then its argument prototype would still apply. */
9443char $ac_func ();
9444/* The GNU C library defines this for functions which it implements
9445 to always fail with ENOSYS. Some functions are actually named
9446 something starting with __ and the normal name is an alias. */
9447#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9448choke me
9449#else
9450char (*f) () = $ac_func;
9451#endif
9452#ifdef __cplusplus
9453}
9454#endif
9455
9456int
9457main ()
9458{
9459return f != $ac_func;
9460 ;
9461 return 0;
9462}
9463_ACEOF
9464rm -f conftest.$ac_objext conftest$ac_exeext
9465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9466 (eval $ac_link) 2>conftest.er1
9467 ac_status=$?
9468 grep -v '^ *+' conftest.er1 >conftest.err
9469 rm -f conftest.er1
9470 cat conftest.err >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); } &&
9473 { ac_try='test -z "$ac_c_werror_flag"
9474 || test ! -s conftest.err'
9475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476 (eval $ac_try) 2>&5
9477 ac_status=$?
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; } &&
9480 { ac_try='test -s conftest$ac_exeext'
9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482 (eval $ac_try) 2>&5
9483 ac_status=$?
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; }; then
9486 eval "$as_ac_var=yes"
9487else
9488 echo "$as_me: failed program was:" >&5
9489sed 's/^/| /' conftest.$ac_ext >&5
9490
9491eval "$as_ac_var=no"
9492fi
9493rm -f conftest.err conftest.$ac_objext \
9494 conftest$ac_exeext conftest.$ac_ext
9495fi
9496echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9497echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9498if test `eval echo '${'$as_ac_var'}'` = yes; then
9499 cat >>confdefs.h <<_ACEOF
9500#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9501_ACEOF
9502 break
9503fi
9504done
9505
9506
9507
9508for ac_func in memmove strcmp
9509do
9510as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9511echo "$as_me:$LINENO: checking for $ac_func" >&5
9512echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9513if eval "test \"\${$as_ac_var+set}\" = set"; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9515else
9516 cat >conftest.$ac_ext <<_ACEOF
9517/* confdefs.h. */
9518_ACEOF
9519cat confdefs.h >>conftest.$ac_ext
9520cat >>conftest.$ac_ext <<_ACEOF
9521/* end confdefs.h. */
9522/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9524#define $ac_func innocuous_$ac_func
9525
9526/* System header to define __stub macros and hopefully few prototypes,
9527 which can conflict with char $ac_func (); below.
9528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9529 <limits.h> exists even on freestanding compilers. */
9530
9531#ifdef __STDC__
9532# include <limits.h>
9533#else
9534# include <assert.h>
9535#endif
9536
9537#undef $ac_func
9538
9539/* Override any gcc2 internal prototype to avoid an error. */
9540#ifdef __cplusplus
9541extern "C"
9542{
9543#endif
9544/* We use char because int might match the return type of a gcc2
9545 builtin and then its argument prototype would still apply. */
9546char $ac_func ();
9547/* The GNU C library defines this for functions which it implements
9548 to always fail with ENOSYS. Some functions are actually named
9549 something starting with __ and the normal name is an alias. */
9550#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9551choke me
9552#else
9553char (*f) () = $ac_func;
9554#endif
9555#ifdef __cplusplus
9556}
9557#endif
9558
9559int
9560main ()
9561{
9562return f != $ac_func;
9563 ;
9564 return 0;
9565}
9566_ACEOF
9567rm -f conftest.$ac_objext conftest$ac_exeext
9568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9569 (eval $ac_link) 2>conftest.er1
9570 ac_status=$?
9571 grep -v '^ *+' conftest.er1 >conftest.err
9572 rm -f conftest.er1
9573 cat conftest.err >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); } &&
9576 { ac_try='test -z "$ac_c_werror_flag"
9577 || test ! -s conftest.err'
9578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9579 (eval $ac_try) 2>&5
9580 ac_status=$?
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); }; } &&
9583 { ac_try='test -s conftest$ac_exeext'
9584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585 (eval $ac_try) 2>&5
9586 ac_status=$?
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); }; }; then
9589 eval "$as_ac_var=yes"
9590else
9591 echo "$as_me: failed program was:" >&5
9592sed 's/^/| /' conftest.$ac_ext >&5
9593
9594eval "$as_ac_var=no"
9595fi
9596rm -f conftest.err conftest.$ac_objext \
9597 conftest$ac_exeext conftest.$ac_ext
9598fi
9599echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9600echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9601if test `eval echo '${'$as_ac_var'}'` = yes; then
9602 cat >>confdefs.h <<_ACEOF
9603#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9604_ACEOF
9605
9606fi
9607done
9608
9609
9610
9611
9612for ac_func in closedir opendir readdir
9613do
9614as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9615echo "$as_me:$LINENO: checking for $ac_func" >&5
9616echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9617if eval "test \"\${$as_ac_var+set}\" = set"; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9619else
9620 cat >conftest.$ac_ext <<_ACEOF
9621/* confdefs.h. */
9622_ACEOF
9623cat confdefs.h >>conftest.$ac_ext
9624cat >>conftest.$ac_ext <<_ACEOF
9625/* end confdefs.h. */
9626/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9628#define $ac_func innocuous_$ac_func
9629
9630/* System header to define __stub macros and hopefully few prototypes,
9631 which can conflict with char $ac_func (); below.
9632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9633 <limits.h> exists even on freestanding compilers. */
9634
9635#ifdef __STDC__
9636# include <limits.h>
9637#else
9638# include <assert.h>
9639#endif
9640
9641#undef $ac_func
9642
9643/* Override any gcc2 internal prototype to avoid an error. */
9644#ifdef __cplusplus
9645extern "C"
9646{
9647#endif
9648/* We use char because int might match the return type of a gcc2
9649 builtin and then its argument prototype would still apply. */
9650char $ac_func ();
9651/* The GNU C library defines this for functions which it implements
9652 to always fail with ENOSYS. Some functions are actually named
9653 something starting with __ and the normal name is an alias. */
9654#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9655choke me
9656#else
9657char (*f) () = $ac_func;
9658#endif
9659#ifdef __cplusplus
9660}
9661#endif
9662
9663int
9664main ()
9665{
9666return f != $ac_func;
9667 ;
9668 return 0;
9669}
9670_ACEOF
9671rm -f conftest.$ac_objext conftest$ac_exeext
9672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9673 (eval $ac_link) 2>conftest.er1
9674 ac_status=$?
9675 grep -v '^ *+' conftest.er1 >conftest.err
9676 rm -f conftest.er1
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } &&
9680 { ac_try='test -z "$ac_c_werror_flag"
9681 || test ! -s conftest.err'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683 (eval $ac_try) 2>&5
9684 ac_status=$?
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; } &&
9687 { ac_try='test -s conftest$ac_exeext'
9688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 (eval $ac_try) 2>&5
9690 ac_status=$?
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); }; }; then
9693 eval "$as_ac_var=yes"
9694else
9695 echo "$as_me: failed program was:" >&5
9696sed 's/^/| /' conftest.$ac_ext >&5
9697
9698eval "$as_ac_var=no"
9699fi
9700rm -f conftest.err conftest.$ac_objext \
9701 conftest$ac_exeext conftest.$ac_ext
9702fi
9703echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9704echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9705if test `eval echo '${'$as_ac_var'}'` = yes; then
9706 cat >>confdefs.h <<_ACEOF
9707#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9708_ACEOF
9709
9710fi
9711done
9712
9713
9714# Check whether --enable-shared or --disable-shared was given.
9715if test "${enable_shared+set}" = set; then
9716 enableval="$enable_shared"
9717 p=${PACKAGE-default}
9718 case $enableval in
9719 yes) enable_shared=yes ;;
9720 no) enable_shared=no ;;
9721 *)
9722 enable_shared=no
9723 # Look at the argument we got. We use all the common list separators.
9724 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9725 for pkg in $enableval; do
9726 IFS="$lt_save_ifs"
9727 if test "X$pkg" = "X$p"; then
9728 enable_shared=yes
9729 fi
9730 done
9731 IFS="$lt_save_ifs"
9732 ;;
9733 esac
9734else
9735 enable_shared=yes
9736fi;
9737
9738# Check whether --enable-static or --disable-static was given.
9739if test "${enable_static+set}" = set; then
9740 enableval="$enable_static"
9741 p=${PACKAGE-default}
9742 case $enableval in
9743 yes) enable_static=yes ;;
9744 no) enable_static=no ;;
9745 *)
9746 enable_static=no
9747 # Look at the argument we got. We use all the common list separators.
9748 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9749 for pkg in $enableval; do
9750 IFS="$lt_save_ifs"
9751 if test "X$pkg" = "X$p"; then
9752 enable_static=yes
9753 fi
9754 done
9755 IFS="$lt_save_ifs"
9756 ;;
9757 esac
9758else
9759 enable_static=yes
9760fi;
9761
9762# Check whether --enable-fast-install or --disable-fast-install was given.
9763if test "${enable_fast_install+set}" = set; then
9764 enableval="$enable_fast_install"
9765 p=${PACKAGE-default}
9766 case $enableval in
9767 yes) enable_fast_install=yes ;;
9768 no) enable_fast_install=no ;;
9769 *)
9770 enable_fast_install=no
9771 # Look at the argument we got. We use all the common list separators.
9772 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9773 for pkg in $enableval; do
9774 IFS="$lt_save_ifs"
9775 if test "X$pkg" = "X$p"; then
9776 enable_fast_install=yes
9777 fi
9778 done
9779 IFS="$lt_save_ifs"
9780 ;;
9781 esac
9782else
9783 enable_fast_install=yes
9784fi;
9785
9786echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9787echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9788if test "${lt_cv_path_SED+set}" = set; then
9789 echo $ECHO_N "(cached) $ECHO_C" >&6
9790else
9791 # Loop through the user's path and test for sed and gsed.
9792# Then use that list of sed's as ones to test for truncation.
9793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9794for as_dir in $PATH
9795do
9796 IFS=$as_save_IFS
9797 test -z "$as_dir" && as_dir=.
9798 for lt_ac_prog in sed gsed; do
9799 for ac_exec_ext in '' $ac_executable_extensions; do
9800 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9801 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9802 fi
9803 done
9804 done
9805done
9806lt_ac_max=0
9807lt_ac_count=0
9808# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9809# along with /bin/sed that truncates output.
9810for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9811 test ! -f $lt_ac_sed && break
9812 cat /dev/null > conftest.in
9813 lt_ac_count=0
9814 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9815 # Check for GNU sed and select it if it is found.
9816 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9817 lt_cv_path_SED=$lt_ac_sed
9818 break
9819 fi
9820 while true; do
9821 cat conftest.in conftest.in >conftest.tmp
9822 mv conftest.tmp conftest.in
9823 cp conftest.in conftest.nl
9824 echo >>conftest.nl
9825 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9826 cmp -s conftest.out conftest.nl || break
9827 # 10000 chars as input seems more than enough
9828 test $lt_ac_count -gt 10 && break
9829 lt_ac_count=`expr $lt_ac_count + 1`
9830 if test $lt_ac_count -gt $lt_ac_max; then
9831 lt_ac_max=$lt_ac_count
9832 lt_cv_path_SED=$lt_ac_sed
9833 fi
9834 done
9835done
9836
9837fi
9838
9839SED=$lt_cv_path_SED
9840echo "$as_me:$LINENO: result: $SED" >&5
9841echo "${ECHO_T}$SED" >&6
9842
9843
9844# Check whether --with-gnu-ld or --without-gnu-ld was given.
9845if test "${with_gnu_ld+set}" = set; then
9846 withval="$with_gnu_ld"
9847 test "$withval" = no || with_gnu_ld=yes
9848else
9849 with_gnu_ld=no
9850fi;
9851ac_prog=ld
9852if test "$GCC" = yes; then
9853 # Check if gcc -print-prog-name=ld gives a path.
9854 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9855echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9856 case $host in
9857 *-*-mingw*)
9858 # gcc leaves a trailing carriage return which upsets mingw
9859 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9860 *)
9861 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9862 esac
9863 case $ac_prog in
9864 # Accept absolute paths.
9865 [\\/]* | ?:[\\/]*)
9866 re_direlt='/[^/][^/]*/\.\./'
9867 # Canonicalize the pathname of ld
9868 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9869 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9870 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9871 done
9872 test -z "$LD" && LD="$ac_prog"
9873 ;;
9874 "")
9875 # If it fails, then pretend we aren't using GCC.
9876 ac_prog=ld
9877 ;;
9878 *)
9879 # If it is relative, then search for the first ld in PATH.
9880 with_gnu_ld=unknown
9881 ;;
9882 esac
9883elif test "$with_gnu_ld" = yes; then
9884 echo "$as_me:$LINENO: checking for GNU ld" >&5
9885echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9886else
9887 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9888echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9889fi
9890if test "${lt_cv_path_LD+set}" = set; then
9891 echo $ECHO_N "(cached) $ECHO_C" >&6
9892else
9893 if test -z "$LD"; then
9894 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9895 for ac_dir in $PATH; do
9896 IFS="$lt_save_ifs"
9897 test -z "$ac_dir" && ac_dir=.
9898 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9899 lt_cv_path_LD="$ac_dir/$ac_prog"
9900 # Check to see if the program is GNU ld. I'd rather use --version,
9901 # but apparently some GNU ld's only accept -v.
9902 # Break only if it was the GNU/non-GNU ld that we prefer.
9903 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9904 *GNU* | *'with BFD'*)
9905 test "$with_gnu_ld" != no && break
9906 ;;
9907 *)
9908 test "$with_gnu_ld" != yes && break
9909 ;;
9910 esac
9911 fi
9912 done
9913 IFS="$lt_save_ifs"
9914else
9915 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9916fi
9917fi
9918
9919LD="$lt_cv_path_LD"
9920if test -n "$LD"; then
9921 echo "$as_me:$LINENO: result: $LD" >&5
9922echo "${ECHO_T}$LD" >&6
9923else
9924 echo "$as_me:$LINENO: result: no" >&5
9925echo "${ECHO_T}no" >&6
9926fi
9927test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9928echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9929 { (exit 1); exit 1; }; }
9930echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9931echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9932if test "${lt_cv_prog_gnu_ld+set}" = set; then
9933 echo $ECHO_N "(cached) $ECHO_C" >&6
9934else
9935 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9936case `$LD -v 2>&1 </dev/null` in
9937*GNU* | *'with BFD'*)
9938 lt_cv_prog_gnu_ld=yes
9939 ;;
9940*)
9941 lt_cv_prog_gnu_ld=no
9942 ;;
9943esac
9944fi
9945echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9946echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9947with_gnu_ld=$lt_cv_prog_gnu_ld
9948
9949
9950echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9951echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9952if test "${lt_cv_ld_reload_flag+set}" = set; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9954else
9955 lt_cv_ld_reload_flag='-r'
9956fi
9957echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9958echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9959reload_flag=$lt_cv_ld_reload_flag
9960case $reload_flag in
9961"" | " "*) ;;
9962*) reload_flag=" $reload_flag" ;;
9963esac
9964reload_cmds='$LD$reload_flag -o $output$reload_objs'
9965case $host_os in
9966 darwin*)
9967 if test "$GCC" = yes; then
9968 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9969 else
9970 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9971 fi
9972 ;;
9973esac
9974
9975echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9976echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9977if test "${lt_cv_deplibs_check_method+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9979else
9980 lt_cv_file_magic_cmd='$MAGIC_CMD'
9981lt_cv_file_magic_test_file=
9982lt_cv_deplibs_check_method='unknown'
9983# Need to set the preceding variable on all platforms that support
9984# interlibrary dependencies.
9985# 'none' -- dependencies not supported.
9986# `unknown' -- same as none, but documents that we really don't know.
9987# 'pass_all' -- all dependencies passed with no checks.
9988# 'test_compile' -- check by making test program.
9989# 'file_magic [[regex]]' -- check by looking for files in library path
9990# which responds to the $file_magic_cmd with a given extended regex.
9991# If you have `file' or equivalent on your system and you're not sure
9992# whether `pass_all' will *always* work, you probably want this one.
9993
9994case $host_os in
9995aix4* | aix5*)
9996 lt_cv_deplibs_check_method=pass_all
9997 ;;
9998
9999beos*)
10000 lt_cv_deplibs_check_method=pass_all
10001 ;;
10002
10003bsdi[45]*)
10004 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10005 lt_cv_file_magic_cmd='/usr/bin/file -L'
10006 lt_cv_file_magic_test_file=/shlib/libc.so
10007 ;;
10008
10009cygwin*)
10010 # func_win32_libid is a shell function defined in ltmain.sh
10011 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10012 lt_cv_file_magic_cmd='func_win32_libid'
10013 ;;
10014
10015mingw* | pw32*)
10016 # Base MSYS/MinGW do not provide the 'file' command needed by
10017 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10018 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10019 lt_cv_file_magic_cmd='$OBJDUMP -f'
10020 ;;
10021
10022darwin* | rhapsody*)
10023 lt_cv_deplibs_check_method=pass_all
10024 ;;
10025
10026freebsd* | kfreebsd*-gnu)
10027 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10028 case $host_cpu in
10029 i*86 )
10030 # Not sure whether the presence of OpenBSD here was a mistake.
10031 # Let's accept both of them until this is cleared up.
10032 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10033 lt_cv_file_magic_cmd=/usr/bin/file
10034 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10035 ;;
10036 esac
10037 else
10038 lt_cv_deplibs_check_method=pass_all
10039 fi
10040 ;;
10041
10042gnu*)
10043 lt_cv_deplibs_check_method=pass_all
10044 ;;
10045
10046hpux10.20* | hpux11*)
10047 lt_cv_file_magic_cmd=/usr/bin/file
10048 case "$host_cpu" in
10049 ia64*)
10050 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10051 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10052 ;;
10053 hppa*64*)
10054 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]'
10055 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10056 ;;
10057 *)
10058 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10059 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10060 ;;
10061 esac
10062 ;;
10063
10064irix5* | irix6* | nonstopux*)
10065 case $LD in
10066 *-32|*"-32 ") libmagic=32-bit;;
10067 *-n32|*"-n32 ") libmagic=N32;;
10068 *-64|*"-64 ") libmagic=64-bit;;
10069 *) libmagic=never-match;;
10070 esac
10071 lt_cv_deplibs_check_method=pass_all
10072 ;;
10073
10074# This must be Linux ELF.
10075linux*)
10076 lt_cv_deplibs_check_method=pass_all
10077 ;;
10078
10079netbsd*)
10080 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10082 else
10083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10084 fi
10085 ;;
10086
10087newos6*)
10088 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10089 lt_cv_file_magic_cmd=/usr/bin/file
10090 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10091 ;;
10092
10093nto-qnx*)
10094 lt_cv_deplibs_check_method=unknown
10095 ;;
10096
10097openbsd*)
10098 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10099 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10100 else
10101 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10102 fi
10103 ;;
10104
10105osf3* | osf4* | osf5*)
10106 lt_cv_deplibs_check_method=pass_all
10107 ;;
10108
10109sco3.2v5*)
10110 lt_cv_deplibs_check_method=pass_all
10111 ;;
10112
10113solaris*)
10114 lt_cv_deplibs_check_method=pass_all
10115 ;;
10116
10117sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10118 case $host_vendor in
10119 motorola)
10120 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]'
10121 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10122 ;;
10123 ncr)
10124 lt_cv_deplibs_check_method=pass_all
10125 ;;
10126 sequent)
10127 lt_cv_file_magic_cmd='/bin/file'
10128 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10129 ;;
10130 sni)
10131 lt_cv_file_magic_cmd='/bin/file'
10132 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10133 lt_cv_file_magic_test_file=/lib/libc.so
10134 ;;
10135 siemens)
10136 lt_cv_deplibs_check_method=pass_all
10137 ;;
10138 esac
10139 ;;
10140
10141sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10142 lt_cv_deplibs_check_method=pass_all
10143 ;;
10144esac
10145
10146fi
10147echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10148echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10149file_magic_cmd=$lt_cv_file_magic_cmd
10150deplibs_check_method=$lt_cv_deplibs_check_method
10151test -z "$deplibs_check_method" && deplibs_check_method=unknown
10152
10153
10154
10155# If no C compiler was specified, use CC.
10156LTCC=${LTCC-"$CC"}
10157
10158# Allow CC to be a program name with arguments.
10159compiler=$CC
10160
10161# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10162if test "${enable_libtool_lock+set}" = set; then
10163 enableval="$enable_libtool_lock"
10164
10165fi;
10166test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10167
10168# Some flags need to be propagated to the compiler or linker for good
10169# libtool support.
10170case $host in
10171ia64-*-hpux*)
10172 # Find out which ABI we are using.
10173 echo 'int i;' > conftest.$ac_ext
10174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10175 (eval $ac_compile) 2>&5
10176 ac_status=$?
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; then
10179 case `/usr/bin/file conftest.$ac_objext` in
10180 *ELF-32*)
10181 HPUX_IA64_MODE="32"
10182 ;;
10183 *ELF-64*)
10184 HPUX_IA64_MODE="64"
10185 ;;
10186 esac
10187 fi
10188 rm -rf conftest*
10189 ;;
10190*-*-irix6*)
10191 # Find out which ABI we are using.
Reid Spencer0fcb9412004-11-30 08:11:54 +000010192 echo '#line 10192 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10194 (eval $ac_compile) 2>&5
10195 ac_status=$?
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); }; then
10198 if test "$lt_cv_prog_gnu_ld" = yes; then
10199 case `/usr/bin/file conftest.$ac_objext` in
10200 *32-bit*)
10201 LD="${LD-ld} -melf32bsmip"
10202 ;;
10203 *N32*)
10204 LD="${LD-ld} -melf32bmipn32"
10205 ;;
10206 *64-bit*)
10207 LD="${LD-ld} -melf64bmip"
10208 ;;
10209 esac
10210 else
10211 case `/usr/bin/file conftest.$ac_objext` in
10212 *32-bit*)
10213 LD="${LD-ld} -32"
10214 ;;
10215 *N32*)
10216 LD="${LD-ld} -n32"
10217 ;;
10218 *64-bit*)
10219 LD="${LD-ld} -64"
10220 ;;
10221 esac
10222 fi
10223 fi
10224 rm -rf conftest*
10225 ;;
10226
10227x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10228 # Find out which ABI we are using.
10229 echo 'int i;' > conftest.$ac_ext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10231 (eval $ac_compile) 2>&5
10232 ac_status=$?
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); }; then
10235 case "`/usr/bin/file conftest.o`" in
10236 *32-bit*)
10237 case $host in
10238 x86_64-*linux*)
10239 LD="${LD-ld} -m elf_i386"
10240 ;;
10241 ppc64-*linux*|powerpc64-*linux*)
10242 LD="${LD-ld} -m elf32ppclinux"
10243 ;;
10244 s390x-*linux*)
10245 LD="${LD-ld} -m elf_s390"
10246 ;;
10247 sparc64-*linux*)
10248 LD="${LD-ld} -m elf32_sparc"
10249 ;;
10250 esac
10251 ;;
10252 *64-bit*)
10253 case $host in
10254 x86_64-*linux*)
10255 LD="${LD-ld} -m elf_x86_64"
10256 ;;
10257 ppc*-*linux*|powerpc*-*linux*)
10258 LD="${LD-ld} -m elf64ppc"
10259 ;;
10260 s390*-*linux*)
10261 LD="${LD-ld} -m elf64_s390"
10262 ;;
10263 sparc*-*linux*)
10264 LD="${LD-ld} -m elf64_sparc"
10265 ;;
10266 esac
10267 ;;
10268 esac
10269 fi
10270 rm -rf conftest*
10271 ;;
10272
10273*-*-sco3.2v5*)
10274 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10275 SAVE_CFLAGS="$CFLAGS"
10276 CFLAGS="$CFLAGS -belf"
10277 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10278echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10279if test "${lt_cv_cc_needs_belf+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10281else
10282 ac_ext=c
10283ac_cpp='$CPP $CPPFLAGS'
10284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10286ac_compiler_gnu=$ac_cv_c_compiler_gnu
10287
10288 cat >conftest.$ac_ext <<_ACEOF
10289/* confdefs.h. */
10290_ACEOF
10291cat confdefs.h >>conftest.$ac_ext
10292cat >>conftest.$ac_ext <<_ACEOF
10293/* end confdefs.h. */
10294
10295_ACEOF
10296rm -f conftest.$ac_objext conftest$ac_exeext
10297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10298 (eval $ac_link) 2>conftest.er1
10299 ac_status=$?
10300 grep -v '^ *+' conftest.er1 >conftest.err
10301 rm -f conftest.er1
10302 cat conftest.err >&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } &&
10305 { ac_try='test -z "$ac_c_werror_flag"
10306 || test ! -s conftest.err'
10307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10308 (eval $ac_try) 2>&5
10309 ac_status=$?
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; } &&
10312 { ac_try='test -s conftest$ac_exeext'
10313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314 (eval $ac_try) 2>&5
10315 ac_status=$?
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; }; then
10318 lt_cv_cc_needs_belf=yes
10319else
10320 echo "$as_me: failed program was:" >&5
10321sed 's/^/| /' conftest.$ac_ext >&5
10322
10323lt_cv_cc_needs_belf=no
10324fi
10325rm -f conftest.err conftest.$ac_objext \
10326 conftest$ac_exeext conftest.$ac_ext
10327 ac_ext=c
10328ac_cpp='$CPP $CPPFLAGS'
10329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10331ac_compiler_gnu=$ac_cv_c_compiler_gnu
10332
10333fi
10334echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10335echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10336 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10337 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10338 CFLAGS="$SAVE_CFLAGS"
10339 fi
10340 ;;
10341
10342esac
10343
10344need_locks="$enable_libtool_lock"
10345
10346
Reid Spencer2706f8c2004-09-19 23:53:36 +000010347
10348
10349if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10350 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10351 (test "X$CXX" != "Xg++"))) ; then
10352 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010353ac_cpp='$CXXCPP $CPPFLAGS'
10354ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10355ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10356ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10357echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10358echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10359if test -z "$CXXCPP"; then
10360 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010361 echo $ECHO_N "(cached) $ECHO_C" >&6
10362else
John Criswell47fdd832003-07-14 16:52:07 +000010363 # Double quotes because CXXCPP needs to be expanded
10364 for CXXCPP in "$CXX -E" "/lib/cpp"
10365 do
10366 ac_preproc_ok=false
10367for ac_cxx_preproc_warn_flag in '' yes
10368do
10369 # Use a header file that comes with gcc, so configuring glibc
10370 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10372 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010373 # On the NeXT, cc -E runs the code through the compiler's parser,
10374 # not just through cpp. "Syntax error" is here to catch this case.
10375 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010376/* confdefs.h. */
10377_ACEOF
10378cat confdefs.h >>conftest.$ac_ext
10379cat >>conftest.$ac_ext <<_ACEOF
10380/* end confdefs.h. */
10381#ifdef __STDC__
10382# include <limits.h>
10383#else
10384# include <assert.h>
10385#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010386 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010387_ACEOF
10388if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10390 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010391 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010392 rm -f conftest.er1
10393 cat conftest.err >&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); } >/dev/null; then
10396 if test -s conftest.err; then
10397 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010398 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010399 else
John Criswell47fdd832003-07-14 16:52:07 +000010400 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010401 fi
John Criswell47fdd832003-07-14 16:52:07 +000010402else
10403 ac_cpp_err=yes
10404fi
10405if test -z "$ac_cpp_err"; then
10406 :
10407else
10408 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010409sed 's/^/| /' conftest.$ac_ext >&5
10410
John Criswell47fdd832003-07-14 16:52:07 +000010411 # Broken: fails on valid input.
10412continue
10413fi
10414rm -f conftest.err conftest.$ac_ext
10415
10416 # OK, works on sane cases. Now check whether non-existent headers
10417 # can be detected and how.
10418 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010419/* confdefs.h. */
10420_ACEOF
10421cat confdefs.h >>conftest.$ac_ext
10422cat >>conftest.$ac_ext <<_ACEOF
10423/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010424#include <ac_nonexistent.h>
10425_ACEOF
10426if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10428 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010429 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010430 rm -f conftest.er1
10431 cat conftest.err >&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); } >/dev/null; then
10434 if test -s conftest.err; then
10435 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010436 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010437 else
10438 ac_cpp_err=
10439 fi
10440else
10441 ac_cpp_err=yes
10442fi
10443if test -z "$ac_cpp_err"; then
10444 # Broken: success on invalid input.
10445continue
10446else
10447 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010448sed 's/^/| /' conftest.$ac_ext >&5
10449
John Criswell47fdd832003-07-14 16:52:07 +000010450 # Passes both tests.
10451ac_preproc_ok=:
10452break
10453fi
10454rm -f conftest.err conftest.$ac_ext
10455
10456done
10457# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10458rm -f conftest.err conftest.$ac_ext
10459if $ac_preproc_ok; then
10460 break
John Criswell7a73b802003-06-30 21:59:07 +000010461fi
10462
John Criswell47fdd832003-07-14 16:52:07 +000010463 done
10464 ac_cv_prog_CXXCPP=$CXXCPP
10465
10466fi
10467 CXXCPP=$ac_cv_prog_CXXCPP
10468else
10469 ac_cv_prog_CXXCPP=$CXXCPP
10470fi
10471echo "$as_me:$LINENO: result: $CXXCPP" >&5
10472echo "${ECHO_T}$CXXCPP" >&6
10473ac_preproc_ok=false
10474for ac_cxx_preproc_warn_flag in '' yes
10475do
10476 # Use a header file that comes with gcc, so configuring glibc
10477 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10479 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010480 # On the NeXT, cc -E runs the code through the compiler's parser,
10481 # not just through cpp. "Syntax error" is here to catch this case.
10482 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010483/* confdefs.h. */
10484_ACEOF
10485cat confdefs.h >>conftest.$ac_ext
10486cat >>conftest.$ac_ext <<_ACEOF
10487/* end confdefs.h. */
10488#ifdef __STDC__
10489# include <limits.h>
10490#else
10491# include <assert.h>
10492#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010493 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010494_ACEOF
10495if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10497 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010498 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010499 rm -f conftest.er1
10500 cat conftest.err >&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } >/dev/null; then
10503 if test -s conftest.err; then
10504 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010505 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010506 else
10507 ac_cpp_err=
10508 fi
10509else
10510 ac_cpp_err=yes
10511fi
10512if test -z "$ac_cpp_err"; then
10513 :
10514else
10515 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010516sed 's/^/| /' conftest.$ac_ext >&5
10517
John Criswell47fdd832003-07-14 16:52:07 +000010518 # Broken: fails on valid input.
10519continue
10520fi
10521rm -f conftest.err conftest.$ac_ext
10522
10523 # OK, works on sane cases. Now check whether non-existent headers
10524 # can be detected and how.
10525 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010526/* confdefs.h. */
10527_ACEOF
10528cat confdefs.h >>conftest.$ac_ext
10529cat >>conftest.$ac_ext <<_ACEOF
10530/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010531#include <ac_nonexistent.h>
10532_ACEOF
10533if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10535 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010536 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010537 rm -f conftest.er1
10538 cat conftest.err >&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); } >/dev/null; then
10541 if test -s conftest.err; then
10542 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010543 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010544 else
10545 ac_cpp_err=
10546 fi
10547else
10548 ac_cpp_err=yes
10549fi
10550if test -z "$ac_cpp_err"; then
10551 # Broken: success on invalid input.
10552continue
10553else
10554 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010555sed 's/^/| /' conftest.$ac_ext >&5
10556
John Criswell47fdd832003-07-14 16:52:07 +000010557 # Passes both tests.
10558ac_preproc_ok=:
10559break
10560fi
10561rm -f conftest.err conftest.$ac_ext
10562
10563done
10564# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10565rm -f conftest.err conftest.$ac_ext
10566if $ac_preproc_ok; then
10567 :
10568else
John Criswell0c38eaf2003-09-10 15:17:25 +000010569 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10570See \`config.log' for more details." >&5
10571echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10572See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010573 { (exit 1); exit 1; }; }
10574fi
10575
10576ac_ext=cc
10577ac_cpp='$CXXCPP $CPPFLAGS'
10578ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10579ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10580ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10581
Reid Spencer2706f8c2004-09-19 23:53:36 +000010582fi
10583
John Criswell47fdd832003-07-14 16:52:07 +000010584
10585ac_ext=f
10586ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10587ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10588ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10589if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010590 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 +000010591 do
10592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10593set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10594echo "$as_me:$LINENO: checking for $ac_word" >&5
10595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10596if test "${ac_cv_prog_F77+set}" = set; then
10597 echo $ECHO_N "(cached) $ECHO_C" >&6
10598else
10599 if test -n "$F77"; then
10600 ac_cv_prog_F77="$F77" # Let the user override the test.
10601else
10602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10603for as_dir in $PATH
10604do
10605 IFS=$as_save_IFS
10606 test -z "$as_dir" && as_dir=.
10607 for ac_exec_ext in '' $ac_executable_extensions; do
10608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10609 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10611 break 2
10612 fi
10613done
10614done
10615
10616fi
10617fi
10618F77=$ac_cv_prog_F77
10619if test -n "$F77"; then
10620 echo "$as_me:$LINENO: result: $F77" >&5
10621echo "${ECHO_T}$F77" >&6
10622else
10623 echo "$as_me:$LINENO: result: no" >&5
10624echo "${ECHO_T}no" >&6
10625fi
10626
10627 test -n "$F77" && break
10628 done
10629fi
10630if test -z "$F77"; then
10631 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010632 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 +000010633do
10634 # Extract the first word of "$ac_prog", so it can be a program name with args.
10635set dummy $ac_prog; ac_word=$2
10636echo "$as_me:$LINENO: checking for $ac_word" >&5
10637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10638if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10640else
10641 if test -n "$ac_ct_F77"; then
10642 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10643else
10644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10645for as_dir in $PATH
10646do
10647 IFS=$as_save_IFS
10648 test -z "$as_dir" && as_dir=.
10649 for ac_exec_ext in '' $ac_executable_extensions; do
10650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10651 ac_cv_prog_ac_ct_F77="$ac_prog"
10652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10653 break 2
10654 fi
10655done
10656done
10657
10658fi
10659fi
10660ac_ct_F77=$ac_cv_prog_ac_ct_F77
10661if test -n "$ac_ct_F77"; then
10662 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10663echo "${ECHO_T}$ac_ct_F77" >&6
10664else
10665 echo "$as_me:$LINENO: result: no" >&5
10666echo "${ECHO_T}no" >&6
10667fi
10668
10669 test -n "$ac_ct_F77" && break
10670done
10671
10672 F77=$ac_ct_F77
10673fi
10674
10675
10676# Provide some information about the compiler.
Reid Spencer0fcb9412004-11-30 08:11:54 +000010677echo "$as_me:10677:" \
John Criswell47fdd832003-07-14 16:52:07 +000010678 "checking for Fortran 77 compiler version" >&5
10679ac_compiler=`set X $ac_compile; echo $2`
10680{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10681 (eval $ac_compiler --version </dev/null >&5) 2>&5
10682 ac_status=$?
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); }
10685{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10686 (eval $ac_compiler -v </dev/null >&5) 2>&5
10687 ac_status=$?
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); }
10690{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10691 (eval $ac_compiler -V </dev/null >&5) 2>&5
10692 ac_status=$?
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010695rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010696
10697# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010698# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010699ac_save_ext=$ac_ext
10700ac_ext=F
10701echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10702echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10703if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10705else
10706 cat >conftest.$ac_ext <<_ACEOF
10707 program main
10708#ifndef __GNUC__
10709 choke me
10710#endif
10711
10712 end
10713_ACEOF
10714rm -f conftest.$ac_objext
10715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010716 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010717 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010718 grep -v '^ *+' conftest.er1 >conftest.err
10719 rm -f conftest.er1
10720 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010723 { ac_try='test -z "$ac_f77_werror_flag"
10724 || test ! -s conftest.err'
10725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726 (eval $ac_try) 2>&5
10727 ac_status=$?
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; } &&
10730 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732 (eval $ac_try) 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; }; then
10736 ac_compiler_gnu=yes
10737else
10738 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010739sed 's/^/| /' conftest.$ac_ext >&5
10740
John Criswell47fdd832003-07-14 16:52:07 +000010741ac_compiler_gnu=no
10742fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010744ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10745
10746fi
10747echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10748echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10749ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000010750ac_test_FFLAGS=${FFLAGS+set}
10751ac_save_FFLAGS=$FFLAGS
10752FFLAGS=
10753echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10754echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10755if test "${ac_cv_prog_f77_g+set}" = set; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10757else
10758 FFLAGS=-g
10759cat >conftest.$ac_ext <<_ACEOF
10760 program main
10761
10762 end
10763_ACEOF
10764rm -f conftest.$ac_objext
10765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010766 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010767 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010768 grep -v '^ *+' conftest.er1 >conftest.err
10769 rm -f conftest.er1
10770 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010773 { ac_try='test -z "$ac_f77_werror_flag"
10774 || test ! -s conftest.err'
10775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776 (eval $ac_try) 2>&5
10777 ac_status=$?
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; } &&
10780 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782 (eval $ac_try) 2>&5
10783 ac_status=$?
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; }; then
10786 ac_cv_prog_f77_g=yes
10787else
10788 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010789sed 's/^/| /' conftest.$ac_ext >&5
10790
John Criswell47fdd832003-07-14 16:52:07 +000010791ac_cv_prog_f77_g=no
10792fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010794
10795fi
10796echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10797echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10798if test "$ac_test_FFLAGS" = set; then
10799 FFLAGS=$ac_save_FFLAGS
10800elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010801 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010802 FFLAGS="-g -O2"
10803 else
10804 FFLAGS="-g"
10805 fi
10806else
Reid Spencer2706f8c2004-09-19 23:53:36 +000010807 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010808 FFLAGS="-O2"
10809 else
10810 FFLAGS=
10811 fi
10812fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010813
10814G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000010815ac_ext=c
10816ac_cpp='$CPP $CPPFLAGS'
10817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10819ac_compiler_gnu=$ac_cv_c_compiler_gnu
10820
10821
10822
10823# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10824
10825# find the maximum length of command line arguments
10826echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10827echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10828if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10830else
10831 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000010832 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000010833
10834 case $build_os in
10835 msdosdjgpp*)
10836 # On DJGPP, this test can blow up pretty badly due to problems in libc
10837 # (any single argument exceeding 2000 bytes causes a buffer overrun
10838 # during glob expansion). Even if it were fixed, the result of this
10839 # check would be larger than it should be.
10840 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10841 ;;
10842
10843 gnu*)
10844 # Under GNU Hurd, this test is not required because there is
10845 # no limit to the length of command line arguments.
10846 # Libtool will interpret -1 as no limit whatsoever
10847 lt_cv_sys_max_cmd_len=-1;
10848 ;;
10849
10850 cygwin* | mingw*)
10851 # On Win9x/ME, this test blows up -- it succeeds, but takes
10852 # about 5 minutes as the teststring grows exponentially.
10853 # Worse, since 9x/ME are not pre-emptively multitasking,
10854 # you end up with a "frozen" computer, even though with patience
10855 # the test eventually succeeds (with a max line length of 256k).
10856 # Instead, let's just punt: use the minimum linelength reported by
10857 # all of the supported platforms: 8192 (on NT/2K/XP).
10858 lt_cv_sys_max_cmd_len=8192;
10859 ;;
10860
Reid Spencer2706f8c2004-09-19 23:53:36 +000010861 amigaos*)
10862 # On AmigaOS with pdksh, this test takes hours, literally.
10863 # So we just punt and use a minimum line length of 8192.
10864 lt_cv_sys_max_cmd_len=8192;
10865 ;;
10866
10867 netbsd* | freebsd* | openbsd* | darwin* )
10868 # This has been around since 386BSD, at least. Likely further.
10869 if test -x /sbin/sysctl; then
10870 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10871 elif test -x /usr/sbin/sysctl; then
10872 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10873 else
10874 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10875 fi
10876 # And add a safety zone
10877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10878 ;;
10879
John Criswell47fdd832003-07-14 16:52:07 +000010880 *)
10881 # If test is not a shell built-in, we'll probably end up computing a
10882 # maximum length that is only half of the actual maximum length, but
10883 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010884 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10885 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10886 = "XX$teststring") >/dev/null 2>&1 &&
10887 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000010888 lt_cv_sys_max_cmd_len=$new_result &&
10889 test $i != 17 # 1/2 MB should be enough
10890 do
10891 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000010892 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000010893 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000010894 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000010895 # Add a significant safety factor because C++ compilers can tack on massive
10896 # amounts of additional arguments before passing them to the linker.
10897 # It appears as though 1/2 is a usable value.
10898 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10899 ;;
10900 esac
10901
10902fi
10903
10904if test -n $lt_cv_sys_max_cmd_len ; then
10905 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10906echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10907else
10908 echo "$as_me:$LINENO: result: none" >&5
10909echo "${ECHO_T}none" >&6
10910fi
10911
10912
10913
10914
10915# Check for command to grab the raw symbol name followed by C symbol from nm.
10916echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10917echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10918if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10920else
10921
10922# These are sane defaults that work on at least a few old systems.
10923# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10924
10925# Character class describing NM global symbol codes.
10926symcode='[BCDEGRST]'
10927
10928# Regexp to match symbols that can be accessed directly from C.
10929sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10930
10931# Transform the above into a raw symbol and a C symbol.
10932symxfrm='\1 \2\3 \3'
10933
10934# Transform an extracted symbol line into a proper C declaration
10935lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10936
10937# Transform an extracted symbol line into symbol name and symbol address
10938lt_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'"
10939
10940# Define system-specific variables.
10941case $host_os in
10942aix*)
10943 symcode='[BCDT]'
10944 ;;
10945cygwin* | mingw* | pw32*)
10946 symcode='[ABCDGISTW]'
10947 ;;
10948hpux*) # Its linker distinguishes data from code symbols
10949 if test "$host_cpu" = ia64; then
10950 symcode='[ABCDEGRST]'
10951 fi
10952 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10953 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'"
10954 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010955linux*)
10956 if test "$host_cpu" = ia64; then
10957 symcode='[ABCDGIRSTW]'
10958 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10959 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'"
10960 fi
10961 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010962irix* | nonstopux*)
10963 symcode='[BCDEGRST]'
10964 ;;
10965osf*)
10966 symcode='[BCDEGQRST]'
10967 ;;
10968solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000010969 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000010970 ;;
10971sysv4)
10972 symcode='[DFNSTU]'
10973 ;;
10974esac
10975
10976# Handle CRLF in mingw tool chain
10977opt_cr=
10978case $build_os in
10979mingw*)
10980 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10981 ;;
10982esac
10983
10984# If we're using GNU nm, then use its standard symbol codes.
10985case `$NM -V 2>&1` in
10986*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000010987 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000010988esac
10989
10990# Try without a prefix undercore, then with it.
10991for ac_symprfx in "" "_"; do
10992
10993 # Write the raw and C identifiers.
10994 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10995
10996 # Check to see that the pipe works correctly.
10997 pipe_works=no
10998
10999 rm -f conftest*
11000 cat > conftest.$ac_ext <<EOF
11001#ifdef __cplusplus
11002extern "C" {
11003#endif
11004char nm_test_var;
11005void nm_test_func(){}
11006#ifdef __cplusplus
11007}
11008#endif
11009int main(){nm_test_var='a';nm_test_func();return(0);}
11010EOF
11011
11012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11013 (eval $ac_compile) 2>&5
11014 ac_status=$?
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; then
11017 # Now try to grab the symbols.
11018 nlist=conftest.nm
11019 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11020 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11021 ac_status=$?
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); } && test -s "$nlist"; then
11024 # Try sorting and uniquifying the output.
11025 if sort "$nlist" | uniq > "$nlist"T; then
11026 mv -f "$nlist"T "$nlist"
11027 else
11028 rm -f "$nlist"T
11029 fi
11030
11031 # Make sure that we snagged all the symbols we need.
11032 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11033 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11034 cat <<EOF > conftest.$ac_ext
11035#ifdef __cplusplus
11036extern "C" {
11037#endif
11038
11039EOF
11040 # Now generate the symbol file.
11041 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11042
11043 cat <<EOF >> conftest.$ac_ext
11044#if defined (__STDC__) && __STDC__
11045# define lt_ptr_t void *
11046#else
11047# define lt_ptr_t char *
11048# define const
11049#endif
11050
11051/* The mapping between symbol names and symbols. */
11052const struct {
11053 const char *name;
11054 lt_ptr_t address;
11055}
11056lt_preloaded_symbols[] =
11057{
11058EOF
11059 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11060 cat <<\EOF >> conftest.$ac_ext
11061 {0, (lt_ptr_t) 0}
11062};
11063
11064#ifdef __cplusplus
11065}
11066#endif
11067EOF
11068 # Now try linking the two files.
11069 mv conftest.$ac_objext conftstm.$ac_objext
11070 lt_save_LIBS="$LIBS"
11071 lt_save_CFLAGS="$CFLAGS"
11072 LIBS="conftstm.$ac_objext"
11073 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11075 (eval $ac_link) 2>&5
11076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11079 pipe_works=yes
11080 fi
11081 LIBS="$lt_save_LIBS"
11082 CFLAGS="$lt_save_CFLAGS"
11083 else
11084 echo "cannot find nm_test_func in $nlist" >&5
11085 fi
11086 else
11087 echo "cannot find nm_test_var in $nlist" >&5
11088 fi
11089 else
11090 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11091 fi
11092 else
11093 echo "$progname: failed program was:" >&5
11094 cat conftest.$ac_ext >&5
11095 fi
11096 rm -f conftest* conftst*
11097
11098 # Do not use the global_symbol_pipe unless it works.
11099 if test "$pipe_works" = yes; then
11100 break
11101 else
11102 lt_cv_sys_global_symbol_pipe=
11103 fi
11104done
11105
11106fi
11107
11108if test -z "$lt_cv_sys_global_symbol_pipe"; then
11109 lt_cv_sys_global_symbol_to_cdecl=
11110fi
11111if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11112 echo "$as_me:$LINENO: result: failed" >&5
11113echo "${ECHO_T}failed" >&6
11114else
11115 echo "$as_me:$LINENO: result: ok" >&5
11116echo "${ECHO_T}ok" >&6
11117fi
11118
11119echo "$as_me:$LINENO: checking for objdir" >&5
11120echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11121if test "${lt_cv_objdir+set}" = set; then
11122 echo $ECHO_N "(cached) $ECHO_C" >&6
11123else
11124 rm -f .libs 2>/dev/null
11125mkdir .libs 2>/dev/null
11126if test -d .libs; then
11127 lt_cv_objdir=.libs
11128else
11129 # MS-DOS does not allow filenames that begin with a dot.
11130 lt_cv_objdir=_libs
11131fi
11132rmdir .libs 2>/dev/null
11133fi
11134echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11135echo "${ECHO_T}$lt_cv_objdir" >&6
11136objdir=$lt_cv_objdir
11137
11138
11139
11140
11141
11142case $host_os in
11143aix3*)
11144 # AIX sometimes has problems with the GCC collect2 program. For some
11145 # reason, if we set the COLLECT_NAMES environment variable, the problems
11146 # vanish in a puff of smoke.
11147 if test "X${COLLECT_NAMES+set}" != Xset; then
11148 COLLECT_NAMES=
11149 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011150 fi
11151 ;;
11152esac
11153
John Criswell47fdd832003-07-14 16:52:07 +000011154# Sed substitution that helps us do robust quoting. It backslashifies
11155# metacharacters that are still active within double-quoted strings.
11156Xsed='sed -e s/^X//'
11157sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11158
11159# Same as above, but do not quote variable references.
11160double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11161
11162# Sed substitution to delay expansion of an escaped shell variable in a
11163# double_quote_subst'ed string.
11164delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11165
11166# Sed substitution to avoid accidental globbing in evaled expressions
11167no_glob_subst='s/\*/\\\*/g'
11168
11169# Constants:
11170rm="rm -f"
11171
11172# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011173default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011174can_build_shared=yes
11175
11176# All known linkers require a `.a' archive for static linking (except M$VC,
11177# which needs '.lib').
11178libext=a
11179ltmain="$ac_aux_dir/ltmain.sh"
11180ofile="$default_ofile"
11181with_gnu_ld="$lt_cv_prog_gnu_ld"
11182
11183if test -n "$ac_tool_prefix"; then
11184 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11185set dummy ${ac_tool_prefix}ar; ac_word=$2
11186echo "$as_me:$LINENO: checking for $ac_word" >&5
11187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11188if test "${ac_cv_prog_AR+set}" = set; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11190else
11191 if test -n "$AR"; then
11192 ac_cv_prog_AR="$AR" # Let the user override the test.
11193else
11194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11195for as_dir in $PATH
11196do
11197 IFS=$as_save_IFS
11198 test -z "$as_dir" && as_dir=.
11199 for ac_exec_ext in '' $ac_executable_extensions; do
11200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11201 ac_cv_prog_AR="${ac_tool_prefix}ar"
11202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11203 break 2
11204 fi
11205done
11206done
11207
11208fi
11209fi
11210AR=$ac_cv_prog_AR
11211if test -n "$AR"; then
11212 echo "$as_me:$LINENO: result: $AR" >&5
11213echo "${ECHO_T}$AR" >&6
11214else
11215 echo "$as_me:$LINENO: result: no" >&5
11216echo "${ECHO_T}no" >&6
11217fi
11218
11219fi
11220if test -z "$ac_cv_prog_AR"; then
11221 ac_ct_AR=$AR
11222 # Extract the first word of "ar", so it can be a program name with args.
11223set dummy ar; ac_word=$2
11224echo "$as_me:$LINENO: checking for $ac_word" >&5
11225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11226if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
11228else
11229 if test -n "$ac_ct_AR"; then
11230 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11231else
11232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233for as_dir in $PATH
11234do
11235 IFS=$as_save_IFS
11236 test -z "$as_dir" && as_dir=.
11237 for ac_exec_ext in '' $ac_executable_extensions; do
11238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11239 ac_cv_prog_ac_ct_AR="ar"
11240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11241 break 2
11242 fi
11243done
11244done
11245
11246 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11247fi
11248fi
11249ac_ct_AR=$ac_cv_prog_ac_ct_AR
11250if test -n "$ac_ct_AR"; then
11251 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11252echo "${ECHO_T}$ac_ct_AR" >&6
11253else
11254 echo "$as_me:$LINENO: result: no" >&5
11255echo "${ECHO_T}no" >&6
11256fi
11257
11258 AR=$ac_ct_AR
11259else
11260 AR="$ac_cv_prog_AR"
11261fi
11262
John Criswell7a73b802003-06-30 21:59:07 +000011263if test -n "$ac_tool_prefix"; then
11264 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11265set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11266echo "$as_me:$LINENO: checking for $ac_word" >&5
11267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11268if test "${ac_cv_prog_RANLIB+set}" = set; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11270else
11271 if test -n "$RANLIB"; then
11272 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11273else
11274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275for as_dir in $PATH
11276do
11277 IFS=$as_save_IFS
11278 test -z "$as_dir" && as_dir=.
11279 for ac_exec_ext in '' $ac_executable_extensions; do
11280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11281 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11283 break 2
11284 fi
11285done
11286done
11287
11288fi
11289fi
11290RANLIB=$ac_cv_prog_RANLIB
11291if test -n "$RANLIB"; then
11292 echo "$as_me:$LINENO: result: $RANLIB" >&5
11293echo "${ECHO_T}$RANLIB" >&6
11294else
11295 echo "$as_me:$LINENO: result: no" >&5
11296echo "${ECHO_T}no" >&6
11297fi
11298
11299fi
11300if test -z "$ac_cv_prog_RANLIB"; then
11301 ac_ct_RANLIB=$RANLIB
11302 # Extract the first word of "ranlib", so it can be a program name with args.
11303set dummy ranlib; ac_word=$2
11304echo "$as_me:$LINENO: checking for $ac_word" >&5
11305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11306if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11308else
11309 if test -n "$ac_ct_RANLIB"; then
11310 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11311else
11312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11313for as_dir in $PATH
11314do
11315 IFS=$as_save_IFS
11316 test -z "$as_dir" && as_dir=.
11317 for ac_exec_ext in '' $ac_executable_extensions; do
11318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11319 ac_cv_prog_ac_ct_RANLIB="ranlib"
11320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11321 break 2
11322 fi
11323done
11324done
11325
11326 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11327fi
11328fi
11329ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11330if test -n "$ac_ct_RANLIB"; then
11331 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11332echo "${ECHO_T}$ac_ct_RANLIB" >&6
11333else
11334 echo "$as_me:$LINENO: result: no" >&5
11335echo "${ECHO_T}no" >&6
11336fi
11337
11338 RANLIB=$ac_ct_RANLIB
11339else
11340 RANLIB="$ac_cv_prog_RANLIB"
11341fi
11342
11343if test -n "$ac_tool_prefix"; then
11344 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11345set dummy ${ac_tool_prefix}strip; ac_word=$2
11346echo "$as_me:$LINENO: checking for $ac_word" >&5
11347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11348if test "${ac_cv_prog_STRIP+set}" = set; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11350else
11351 if test -n "$STRIP"; then
11352 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11353else
11354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355for as_dir in $PATH
11356do
11357 IFS=$as_save_IFS
11358 test -z "$as_dir" && as_dir=.
11359 for ac_exec_ext in '' $ac_executable_extensions; do
11360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11361 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11363 break 2
11364 fi
11365done
11366done
11367
11368fi
11369fi
11370STRIP=$ac_cv_prog_STRIP
11371if test -n "$STRIP"; then
11372 echo "$as_me:$LINENO: result: $STRIP" >&5
11373echo "${ECHO_T}$STRIP" >&6
11374else
11375 echo "$as_me:$LINENO: result: no" >&5
11376echo "${ECHO_T}no" >&6
11377fi
11378
11379fi
11380if test -z "$ac_cv_prog_STRIP"; then
11381 ac_ct_STRIP=$STRIP
11382 # Extract the first word of "strip", so it can be a program name with args.
11383set dummy strip; ac_word=$2
11384echo "$as_me:$LINENO: checking for $ac_word" >&5
11385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11386if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11387 echo $ECHO_N "(cached) $ECHO_C" >&6
11388else
11389 if test -n "$ac_ct_STRIP"; then
11390 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11391else
11392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11393for as_dir in $PATH
11394do
11395 IFS=$as_save_IFS
11396 test -z "$as_dir" && as_dir=.
11397 for ac_exec_ext in '' $ac_executable_extensions; do
11398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11399 ac_cv_prog_ac_ct_STRIP="strip"
11400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11401 break 2
11402 fi
11403done
11404done
11405
11406 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11407fi
11408fi
11409ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11410if test -n "$ac_ct_STRIP"; then
11411 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11412echo "${ECHO_T}$ac_ct_STRIP" >&6
11413else
11414 echo "$as_me:$LINENO: result: no" >&5
11415echo "${ECHO_T}no" >&6
11416fi
11417
11418 STRIP=$ac_ct_STRIP
11419else
11420 STRIP="$ac_cv_prog_STRIP"
11421fi
11422
11423
John Criswell7a73b802003-06-30 21:59:07 +000011424old_CC="$CC"
11425old_CFLAGS="$CFLAGS"
11426
11427# Set sane defaults for various variables
11428test -z "$AR" && AR=ar
11429test -z "$AR_FLAGS" && AR_FLAGS=cru
11430test -z "$AS" && AS=as
11431test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011432test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011433test -z "$DLLTOOL" && DLLTOOL=dlltool
11434test -z "$LD" && LD=ld
11435test -z "$LN_S" && LN_S="ln -s"
11436test -z "$MAGIC_CMD" && MAGIC_CMD=file
11437test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011438test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011439test -z "$OBJDUMP" && OBJDUMP=objdump
11440test -z "$RANLIB" && RANLIB=:
11441test -z "$STRIP" && STRIP=:
11442test -z "$ac_objext" && ac_objext=o
11443
John Criswell7a73b802003-06-30 21:59:07 +000011444# Determine commands to create old-style static archives.
11445old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11446old_postinstall_cmds='chmod 644 $oldlib'
11447old_postuninstall_cmds=
11448
11449if test -n "$RANLIB"; then
11450 case $host_os in
11451 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011452 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011453 ;;
11454 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011455 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011456 ;;
11457 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011458 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011459fi
11460
Reid Spencer2706f8c2004-09-19 23:53:36 +000011461cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11462
John Criswell47fdd832003-07-14 16:52:07 +000011463# Only perform the check for file, if the check method requires it
11464case $deplibs_check_method in
11465file_magic*)
11466 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11467 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11468echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11469if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11470 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011471else
John Criswell47fdd832003-07-14 16:52:07 +000011472 case $MAGIC_CMD in
11473[\\/*] | ?:[\\/]*)
11474 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11475 ;;
11476*)
11477 lt_save_MAGIC_CMD="$MAGIC_CMD"
11478 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11479 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11480 for ac_dir in $ac_dummy; do
11481 IFS="$lt_save_ifs"
11482 test -z "$ac_dir" && ac_dir=.
11483 if test -f $ac_dir/${ac_tool_prefix}file; then
11484 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11485 if test -n "$file_magic_test_file"; then
11486 case $deplibs_check_method in
11487 "file_magic "*)
11488 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11489 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11490 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11491 $EGREP "$file_magic_regex" > /dev/null; then
11492 :
11493 else
11494 cat <<EOF 1>&2
11495
11496*** Warning: the command libtool uses to detect shared libraries,
11497*** $file_magic_cmd, produces output that libtool cannot recognize.
11498*** The result is that libtool may fail to recognize shared libraries
11499*** as such. This will affect the creation of libtool libraries that
11500*** depend on shared libraries, but programs linked with such libtool
11501*** libraries will work regardless of this problem. Nevertheless, you
11502*** may want to report the problem to your system manager and/or to
11503*** bug-libtool@gnu.org
11504
11505EOF
11506 fi ;;
11507 esac
11508 fi
11509 break
11510 fi
11511 done
11512 IFS="$lt_save_ifs"
11513 MAGIC_CMD="$lt_save_MAGIC_CMD"
11514 ;;
11515esac
John Criswell7a73b802003-06-30 21:59:07 +000011516fi
John Criswell7a73b802003-06-30 21:59:07 +000011517
John Criswell47fdd832003-07-14 16:52:07 +000011518MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11519if test -n "$MAGIC_CMD"; then
11520 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11521echo "${ECHO_T}$MAGIC_CMD" >&6
11522else
11523 echo "$as_me:$LINENO: result: no" >&5
11524echo "${ECHO_T}no" >&6
11525fi
John Criswell7a73b802003-06-30 21:59:07 +000011526
John Criswell47fdd832003-07-14 16:52:07 +000011527if test -z "$lt_cv_path_MAGIC_CMD"; then
11528 if test -n "$ac_tool_prefix"; then
11529 echo "$as_me:$LINENO: checking for file" >&5
11530echo $ECHO_N "checking for file... $ECHO_C" >&6
11531if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11532 echo $ECHO_N "(cached) $ECHO_C" >&6
11533else
11534 case $MAGIC_CMD in
11535[\\/*] | ?:[\\/]*)
11536 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11537 ;;
11538*)
11539 lt_save_MAGIC_CMD="$MAGIC_CMD"
11540 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11541 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11542 for ac_dir in $ac_dummy; do
11543 IFS="$lt_save_ifs"
11544 test -z "$ac_dir" && ac_dir=.
11545 if test -f $ac_dir/file; then
11546 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11547 if test -n "$file_magic_test_file"; then
11548 case $deplibs_check_method in
11549 "file_magic "*)
11550 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11551 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11552 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11553 $EGREP "$file_magic_regex" > /dev/null; then
11554 :
11555 else
11556 cat <<EOF 1>&2
11557
11558*** Warning: the command libtool uses to detect shared libraries,
11559*** $file_magic_cmd, produces output that libtool cannot recognize.
11560*** The result is that libtool may fail to recognize shared libraries
11561*** as such. This will affect the creation of libtool libraries that
11562*** depend on shared libraries, but programs linked with such libtool
11563*** libraries will work regardless of this problem. Nevertheless, you
11564*** may want to report the problem to your system manager and/or to
11565*** bug-libtool@gnu.org
11566
11567EOF
11568 fi ;;
11569 esac
11570 fi
11571 break
11572 fi
11573 done
11574 IFS="$lt_save_ifs"
11575 MAGIC_CMD="$lt_save_MAGIC_CMD"
11576 ;;
11577esac
11578fi
11579
11580MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11581if test -n "$MAGIC_CMD"; then
11582 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11583echo "${ECHO_T}$MAGIC_CMD" >&6
11584else
11585 echo "$as_me:$LINENO: result: no" >&5
11586echo "${ECHO_T}no" >&6
11587fi
11588
11589 else
11590 MAGIC_CMD=:
11591 fi
11592fi
11593
11594 fi
11595 ;;
11596esac
11597
Reid Spencer17795972004-11-18 09:47:37 +000011598enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011599enable_win32_dll=no
11600
11601# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11602if test "${enable_libtool_lock+set}" = set; then
11603 enableval="$enable_libtool_lock"
11604
11605fi;
11606test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11607
John Criswell7a73b802003-06-30 21:59:07 +000011608
11609# Check whether --with-pic or --without-pic was given.
11610if test "${with_pic+set}" = set; then
11611 withval="$with_pic"
11612 pic_mode="$withval"
11613else
11614 pic_mode=default
11615fi;
11616test -z "$pic_mode" && pic_mode=default
11617
John Criswell47fdd832003-07-14 16:52:07 +000011618# Use C for the default configuration in the libtool script
11619tagname=
11620lt_save_CC="$CC"
11621ac_ext=c
11622ac_cpp='$CPP $CPPFLAGS'
11623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11625ac_compiler_gnu=$ac_cv_c_compiler_gnu
11626
11627
11628# Source file extension for C test sources.
11629ac_ext=c
11630
11631# Object file extension for compiled C test sources.
11632objext=o
11633objext=$objext
11634
11635# Code to be used in simple compile tests
11636lt_simple_compile_test_code="int some_variable = 0;\n"
11637
11638# Code to be used in simple link tests
11639lt_simple_link_test_code='int main(){return(0);}\n'
11640
11641
11642# If no C compiler was specified, use CC.
11643LTCC=${LTCC-"$CC"}
11644
11645# Allow CC to be a program name with arguments.
11646compiler=$CC
11647
11648
11649#
11650# Check for any special shared library compilation flags.
11651#
11652lt_prog_cc_shlib=
11653if test "$GCC" = no; then
11654 case $host_os in
11655 sco3.2v5*)
11656 lt_prog_cc_shlib='-belf'
11657 ;;
11658 esac
11659fi
11660if test -n "$lt_prog_cc_shlib"; then
11661 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11662echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11663 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11664 else
11665 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11666echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11667 lt_cv_prog_cc_can_build_shared=no
11668 fi
11669fi
11670
11671
11672#
11673# Check to make sure the static flag actually works.
11674#
11675echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11676echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11677if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011678 echo $ECHO_N "(cached) $ECHO_C" >&6
11679else
John Criswell47fdd832003-07-14 16:52:07 +000011680 lt_prog_compiler_static_works=no
11681 save_LDFLAGS="$LDFLAGS"
11682 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11683 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11684 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11685 # The compiler can only warn and ignore the option if not recognized
11686 # So say no if there are warnings
11687 if test -s conftest.err; then
11688 # Append any errors to the config.log.
11689 cat conftest.err 1>&5
11690 else
11691 lt_prog_compiler_static_works=yes
11692 fi
11693 fi
11694 $rm conftest*
11695 LDFLAGS="$save_LDFLAGS"
11696
11697fi
11698echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11699echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11700
11701if test x"$lt_prog_compiler_static_works" = xyes; then
11702 :
11703else
11704 lt_prog_compiler_static=
11705fi
11706
11707
11708
John Criswell47fdd832003-07-14 16:52:07 +000011709
11710lt_prog_compiler_no_builtin_flag=
11711
11712if test "$GCC" = yes; then
11713 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11714
Reid Spencer2706f8c2004-09-19 23:53:36 +000011715
11716echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011717echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11718if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11720else
11721 lt_cv_prog_compiler_rtti_exceptions=no
11722 ac_outfile=conftest.$ac_objext
11723 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11724 lt_compiler_flag="-fno-rtti -fno-exceptions"
11725 # Insert the option either (1) after the last *FLAGS variable, or
11726 # (2) before a word containing "conftest.", or (3) at the end.
11727 # Note that $ac_compile itself does not contain backslashes and begins
11728 # with a dollar sign (not a hyphen), so the echo should work correctly.
11729 # The option is referenced via a variable to avoid confusing sed.
11730 lt_compile=`echo "$ac_compile" | $SED \
11731 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11733 -e 's:$: $lt_compiler_flag:'`
Reid Spencer0fcb9412004-11-30 08:11:54 +000011734 (eval echo "\"\$as_me:11734: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011735 (eval "$lt_compile" 2>conftest.err)
11736 ac_status=$?
11737 cat conftest.err >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +000011738 echo "$as_me:11738: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011739 if (exit $ac_status) && test -s "$ac_outfile"; then
11740 # The compiler can only warn and ignore the option if not recognized
11741 # So say no if there are warnings
11742 if test ! -s conftest.err; then
11743 lt_cv_prog_compiler_rtti_exceptions=yes
11744 fi
11745 fi
11746 $rm conftest*
11747
11748fi
11749echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11750echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11751
11752if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11753 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11754else
11755 :
11756fi
11757
11758fi
11759
11760lt_prog_compiler_wl=
11761lt_prog_compiler_pic=
11762lt_prog_compiler_static=
11763
11764echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11765echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011766
11767 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000011768 lt_prog_compiler_wl='-Wl,'
11769 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000011770
11771 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011772 aix*)
11773 # All AIX code is PIC.
11774 if test "$host_cpu" = ia64; then
11775 # AIX 5 now supports IA64 processor
11776 lt_prog_compiler_static='-Bstatic'
11777 fi
John Criswell7a73b802003-06-30 21:59:07 +000011778 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011779
John Criswell7a73b802003-06-30 21:59:07 +000011780 amigaos*)
11781 # FIXME: we need at least 68020 code to build shared libraries, but
11782 # adding the `-m68020' flag to GCC prevents building anything better,
11783 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000011784 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000011785 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011786
11787 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000011788 # PIC is the default for these OSes.
11789 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011790
11791 mingw* | pw32* | os2*)
11792 # This hack is so that the source file can tell whether it is being
11793 # built for inclusion in a dll (and should export symbols for example).
11794 lt_prog_compiler_pic='-DDLL_EXPORT'
11795 ;;
11796
John Criswell7a73b802003-06-30 21:59:07 +000011797 darwin* | rhapsody*)
11798 # PIC is the default on this platform
11799 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000011800 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000011801 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011802
11803 msdosdjgpp*)
11804 # Just because we use GCC doesn't mean we suddenly get shared libraries
11805 # on systems that don't support them.
11806 lt_prog_compiler_can_build_shared=no
11807 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011808 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011809
John Criswell7a73b802003-06-30 21:59:07 +000011810 sysv4*MP*)
11811 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000011812 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000011813 fi
11814 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011815
11816 hpux*)
11817 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11818 # not for PA HP-UX.
11819 case "$host_cpu" in
11820 hppa*64*|ia64*)
11821 # +Z the default
11822 ;;
11823 *)
11824 lt_prog_compiler_pic='-fPIC'
11825 ;;
11826 esac
11827 ;;
11828
John Criswell7a73b802003-06-30 21:59:07 +000011829 *)
John Criswell47fdd832003-07-14 16:52:07 +000011830 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000011831 ;;
11832 esac
11833 else
John Criswell47fdd832003-07-14 16:52:07 +000011834 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000011835 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011836 aix*)
11837 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011838 if test "$host_cpu" = ia64; then
11839 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000011840 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011841 else
John Criswell47fdd832003-07-14 16:52:07 +000011842 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000011843 fi
11844 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011845 darwin*)
11846 # PIC is the default on this platform
11847 # Common symbols not allowed in MH_DYLIB files
11848 case "$cc_basename" in
11849 xlc*)
11850 lt_prog_compiler_pic='-qnocommon'
11851 lt_prog_compiler_wl='-Wl,'
11852 ;;
11853 esac
11854 ;;
John Criswell7a73b802003-06-30 21:59:07 +000011855
John Criswell47fdd832003-07-14 16:52:07 +000011856 mingw* | pw32* | os2*)
11857 # This hack is so that the source file can tell whether it is being
11858 # built for inclusion in a dll (and should export symbols for example).
11859 lt_prog_compiler_pic='-DDLL_EXPORT'
11860 ;;
11861
John Criswell7a73b802003-06-30 21:59:07 +000011862 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000011863 lt_prog_compiler_wl='-Wl,'
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='+Z'
11872 ;;
11873 esac
11874 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11875 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000011876 ;;
11877
John Criswell47fdd832003-07-14 16:52:07 +000011878 irix5* | irix6* | nonstopux*)
11879 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011880 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000011881 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011882 ;;
11883
11884 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000011885 lt_prog_compiler_pic='-KPIC'
11886 lt_prog_compiler_static='-Bstatic'
11887 ;;
11888
11889 linux*)
11890 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011891 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000011892 lt_prog_compiler_wl='-Wl,'
11893 lt_prog_compiler_pic='-KPIC'
11894 lt_prog_compiler_static='-static'
11895 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011896 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000011897 lt_prog_compiler_wl='-Wl,'
11898 # All Alpha code is PIC.
11899 lt_prog_compiler_static='-non_shared'
11900 ;;
11901 esac
John Criswell7a73b802003-06-30 21:59:07 +000011902 ;;
11903
11904 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000011905 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011906 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000011907 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011908 ;;
11909
11910 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000011911 lt_prog_compiler_pic='-Kpic'
11912 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000011913 ;;
11914
11915 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000011916 lt_prog_compiler_wl='-Wl,'
11917 lt_prog_compiler_pic='-KPIC'
11918 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011919 ;;
11920
11921 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000011922 lt_prog_compiler_wl='-Qoption ld '
11923 lt_prog_compiler_pic='-PIC'
11924 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011925 ;;
11926
11927 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000011928 lt_prog_compiler_wl='-Wl,'
11929 lt_prog_compiler_pic='-KPIC'
11930 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011931 ;;
11932
11933 sysv4*MP*)
11934 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000011935 lt_prog_compiler_pic='-Kconform_pic'
11936 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011937 fi
11938 ;;
11939
John Criswell47fdd832003-07-14 16:52:07 +000011940 uts4*)
11941 lt_prog_compiler_pic='-pic'
11942 lt_prog_compiler_static='-Bstatic'
11943 ;;
11944
John Criswell7a73b802003-06-30 21:59:07 +000011945 *)
John Criswell47fdd832003-07-14 16:52:07 +000011946 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011947 ;;
11948 esac
11949 fi
11950
John Criswell47fdd832003-07-14 16:52:07 +000011951echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11952echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011953
John Criswell47fdd832003-07-14 16:52:07 +000011954#
11955# Check to make sure the PIC flag actually works.
11956#
11957if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011958
11959echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011960echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11961if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011962 echo $ECHO_N "(cached) $ECHO_C" >&6
11963else
John Criswell47fdd832003-07-14 16:52:07 +000011964 lt_prog_compiler_pic_works=no
11965 ac_outfile=conftest.$ac_objext
11966 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11967 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11968 # Insert the option either (1) after the last *FLAGS variable, or
11969 # (2) before a word containing "conftest.", or (3) at the end.
11970 # Note that $ac_compile itself does not contain backslashes and begins
11971 # with a dollar sign (not a hyphen), so the echo should work correctly.
11972 # The option is referenced via a variable to avoid confusing sed.
11973 lt_compile=`echo "$ac_compile" | $SED \
11974 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11976 -e 's:$: $lt_compiler_flag:'`
Reid Spencer0fcb9412004-11-30 08:11:54 +000011977 (eval echo "\"\$as_me:11977: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011978 (eval "$lt_compile" 2>conftest.err)
11979 ac_status=$?
11980 cat conftest.err >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +000011981 echo "$as_me:11981: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011982 if (exit $ac_status) && test -s "$ac_outfile"; then
11983 # The compiler can only warn and ignore the option if not recognized
11984 # So say no if there are warnings
11985 if test ! -s conftest.err; then
11986 lt_prog_compiler_pic_works=yes
11987 fi
11988 fi
11989 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000011990
John Criswell47fdd832003-07-14 16:52:07 +000011991fi
11992echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11993echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011994
John Criswell47fdd832003-07-14 16:52:07 +000011995if test x"$lt_prog_compiler_pic_works" = xyes; then
11996 case $lt_prog_compiler_pic in
11997 "" | " "*) ;;
11998 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11999 esac
John Criswell7a73b802003-06-30 21:59:07 +000012000else
John Criswell47fdd832003-07-14 16:52:07 +000012001 lt_prog_compiler_pic=
12002 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012003fi
12004
John Criswell7a73b802003-06-30 21:59:07 +000012005fi
John Criswell47fdd832003-07-14 16:52:07 +000012006case "$host_os" in
12007 # For platforms which do not support PIC, -DPIC is meaningless:
12008 *djgpp*)
12009 lt_prog_compiler_pic=
12010 ;;
12011 *)
12012 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12013 ;;
12014esac
John Criswell7a73b802003-06-30 21:59:07 +000012015
John Criswell7a73b802003-06-30 21:59:07 +000012016echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12017echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012018if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012019 echo $ECHO_N "(cached) $ECHO_C" >&6
12020else
John Criswell47fdd832003-07-14 16:52:07 +000012021 lt_cv_prog_compiler_c_o=no
12022 $rm -r conftest 2>/dev/null
12023 mkdir conftest
12024 cd conftest
12025 mkdir out
12026 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012027
John Criswell47fdd832003-07-14 16:52:07 +000012028 lt_compiler_flag="-o out/conftest2.$ac_objext"
12029 # Insert the option either (1) after the last *FLAGS variable, or
12030 # (2) before a word containing "conftest.", or (3) at the end.
12031 # Note that $ac_compile itself does not contain backslashes and begins
12032 # with a dollar sign (not a hyphen), so the echo should work correctly.
12033 lt_compile=`echo "$ac_compile" | $SED \
12034 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12036 -e 's:$: $lt_compiler_flag:'`
Reid Spencer0fcb9412004-11-30 08:11:54 +000012037 (eval echo "\"\$as_me:12037: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012038 (eval "$lt_compile" 2>out/conftest.err)
12039 ac_status=$?
12040 cat out/conftest.err >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +000012041 echo "$as_me:12041: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012042 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12043 then
12044 # The compiler can only warn and ignore the option if not recognized
12045 # So say no if there are warnings
12046 if test ! -s out/conftest.err; then
12047 lt_cv_prog_compiler_c_o=yes
12048 fi
12049 fi
12050 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012051 $rm conftest*
12052 # SGI C++ compiler will create directory out/ii_files/ for
12053 # template instantiation
12054 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12055 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012056 cd ..
12057 rmdir conftest
12058 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012059
12060fi
John Criswell47fdd832003-07-14 16:52:07 +000012061echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12062echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012063
John Criswell7a73b802003-06-30 21:59:07 +000012064
John Criswell7a73b802003-06-30 21:59:07 +000012065hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012066if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012067 # do not overwrite the value of need_locks provided by the user
12068 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12069echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12070 hard_links=yes
12071 $rm conftest*
12072 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12073 touch conftest.a
12074 ln conftest.a conftest.b 2>&5 || hard_links=no
12075 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12076 echo "$as_me:$LINENO: result: $hard_links" >&5
12077echo "${ECHO_T}$hard_links" >&6
12078 if test "$hard_links" = no; then
12079 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12080echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12081 need_locks=warn
12082 fi
12083else
12084 need_locks=no
12085fi
John Criswell7a73b802003-06-30 21:59:07 +000012086
John Criswell47fdd832003-07-14 16:52:07 +000012087echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12088echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12089
12090 runpath_var=
12091 allow_undefined_flag=
12092 enable_shared_with_static_runtimes=no
12093 archive_cmds=
12094 archive_expsym_cmds=
12095 old_archive_From_new_cmds=
12096 old_archive_from_expsyms_cmds=
12097 export_dynamic_flag_spec=
12098 whole_archive_flag_spec=
12099 thread_safe_flag_spec=
12100 hardcode_libdir_flag_spec=
12101 hardcode_libdir_flag_spec_ld=
12102 hardcode_libdir_separator=
12103 hardcode_direct=no
12104 hardcode_minus_L=no
12105 hardcode_shlibpath_var=unsupported
12106 link_all_deplibs=unknown
12107 hardcode_automatic=no
12108 module_cmds=
12109 module_expsym_cmds=
12110 always_export_symbols=no
12111 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12112 # include_expsyms should be a list of space-separated symbols to be *always*
12113 # included in the symbol list
12114 include_expsyms=
12115 # exclude_expsyms can be an extended regexp of symbols to exclude
12116 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12117 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12118 # as well as any symbol that contains `d'.
12119 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12120 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12121 # platforms (ab)use it in PIC code, but their linkers get confused if
12122 # the symbol is explicitly referenced. Since portable code cannot
12123 # rely on this symbol name, it's probably fine to never include it in
12124 # preloaded symbol tables.
12125 extract_expsyms_cmds=
12126
12127 case $host_os in
12128 cygwin* | mingw* | pw32*)
12129 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12130 # When not using gcc, we currently assume that we are using
12131 # Microsoft Visual C++.
12132 if test "$GCC" != yes; then
12133 with_gnu_ld=no
12134 fi
12135 ;;
12136 openbsd*)
12137 with_gnu_ld=no
12138 ;;
12139 esac
12140
12141 ld_shlibs=yes
12142 if test "$with_gnu_ld" = yes; then
12143 # If archive_cmds runs LD, not CC, wlarc should be empty
12144 wlarc='${wl}'
12145
12146 # See if GNU ld supports shared libraries.
12147 case $host_os in
12148 aix3* | aix4* | aix5*)
12149 # On AIX/PPC, the GNU linker is very broken
12150 if test "$host_cpu" != ia64; then
12151 ld_shlibs=no
12152 cat <<EOF 1>&2
12153
12154*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12155*** to be unable to reliably create shared libraries on AIX.
12156*** Therefore, libtool is disabling shared libraries support. If you
12157*** really care for shared libraries, you may want to modify your PATH
12158*** so that a non-GNU linker is found, and then restart.
12159
12160EOF
12161 fi
12162 ;;
12163
12164 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012165 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 +000012166 hardcode_libdir_flag_spec='-L$libdir'
12167 hardcode_minus_L=yes
12168
12169 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12170 # that the semantics of dynamic libraries on AmigaOS, at least up
12171 # to version 4, is to share data among multiple programs linked
12172 # with the same dynamic library. Since this doesn't match the
12173 # behavior of shared libraries on other platforms, we can't use
12174 # them.
12175 ld_shlibs=no
12176 ;;
12177
12178 beos*)
12179 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12180 allow_undefined_flag=unsupported
12181 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12182 # support --undefined. This deserves some investigation. FIXME
12183 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12184 else
12185 ld_shlibs=no
12186 fi
12187 ;;
12188
12189 cygwin* | mingw* | pw32*)
12190 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12191 # as there is no search path for DLLs.
12192 hardcode_libdir_flag_spec='-L$libdir'
12193 allow_undefined_flag=unsupported
12194 always_export_symbols=no
12195 enable_shared_with_static_runtimes=yes
12196 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12197
12198 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12199 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12200 # If the export-symbols file already is a .def file (1st line
12201 # is EXPORTS), use it as is; otherwise, prepend...
12202 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12203 cp $export_symbols $output_objdir/$soname.def;
12204 else
12205 echo EXPORTS > $output_objdir/$soname.def;
12206 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012207 fi~
12208 $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 +000012209 else
12210 ld_shlibs=no
12211 fi
12212 ;;
12213
12214 netbsd*)
12215 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12216 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12217 wlarc=
12218 else
12219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12220 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12221 fi
12222 ;;
12223
12224 solaris* | sysv5*)
12225 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12226 ld_shlibs=no
12227 cat <<EOF 1>&2
12228
12229*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12230*** create shared libraries on Solaris systems. Therefore, libtool
12231*** is disabling shared libraries support. We urge you to upgrade GNU
12232*** binutils to release 2.9.1 or newer. Another option is to modify
12233*** your PATH or compiler configuration so that the native linker is
12234*** used, and then restart.
12235
12236EOF
12237 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12239 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12240 else
12241 ld_shlibs=no
12242 fi
12243 ;;
12244
12245 sunos4*)
12246 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12247 wlarc=
12248 hardcode_direct=yes
12249 hardcode_shlibpath_var=no
12250 ;;
12251
Reid Spencer2706f8c2004-09-19 23:53:36 +000012252 linux*)
12253 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12254 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12255 archive_cmds="$tmp_archive_cmds"
12256 supports_anon_versioning=no
12257 case `$LD -v 2>/dev/null` in
12258 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12259 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12260 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12261 *\ 2.11.*) ;; # other 2.11 versions
12262 *) supports_anon_versioning=yes ;;
12263 esac
12264 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012265 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12266cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12267$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012268 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12269 else
12270 archive_expsym_cmds="$tmp_archive_cmds"
12271 fi
12272 else
12273 ld_shlibs=no
12274 fi
12275 ;;
12276
John Criswell47fdd832003-07-14 16:52:07 +000012277 *)
12278 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12280 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12281 else
12282 ld_shlibs=no
12283 fi
12284 ;;
12285 esac
12286
12287 if test "$ld_shlibs" = yes; then
12288 runpath_var=LD_RUN_PATH
12289 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12290 export_dynamic_flag_spec='${wl}--export-dynamic'
12291 # ancient GNU ld didn't support --whole-archive et. al.
12292 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12293 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12294 else
12295 whole_archive_flag_spec=
12296 fi
12297 fi
12298 else
12299 # PORTME fill in a description of your system's linker (not GNU ld)
12300 case $host_os in
12301 aix3*)
12302 allow_undefined_flag=unsupported
12303 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012304 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 +000012305 # Note: this linker hardcodes the directories in LIBPATH if there
12306 # are no directories specified by -L.
12307 hardcode_minus_L=yes
12308 if test "$GCC" = yes && test -z "$link_static_flag"; then
12309 # Neither direct hardcoding nor static linking is supported with a
12310 # broken collect2.
12311 hardcode_direct=unsupported
12312 fi
12313 ;;
12314
12315 aix4* | aix5*)
12316 if test "$host_cpu" = ia64; then
12317 # On IA64, the linker does run time linking by default, so we don't
12318 # have to do anything special.
12319 aix_use_runtimelinking=no
12320 exp_sym_flag='-Bexport'
12321 no_entry_flag=""
12322 else
12323 # If we're using GNU nm, then we don't want the "-C" option.
12324 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12325 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12326 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'
12327 else
12328 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'
12329 fi
12330 aix_use_runtimelinking=no
12331
12332 # Test if we are trying to use run time linking or normal
12333 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12334 # need to do runtime linking.
12335 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12336 for ld_flag in $LDFLAGS; do
12337 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12338 aix_use_runtimelinking=yes
12339 break
12340 fi
12341 done
12342 esac
12343
12344 exp_sym_flag='-bexport'
12345 no_entry_flag='-bnoentry'
12346 fi
12347
12348 # When large executables or shared objects are built, AIX ld can
12349 # have problems creating the table of contents. If linking a library
12350 # or program results in "error TOC overflow" add -mminimal-toc to
12351 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12352 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12353
12354 archive_cmds=''
12355 hardcode_direct=yes
12356 hardcode_libdir_separator=':'
12357 link_all_deplibs=yes
12358
12359 if test "$GCC" = yes; then
12360 case $host_os in aix4.012|aix4.012.*)
12361 # We only want to do this on AIX 4.2 and lower, the check
12362 # below for broken collect2 doesn't work under 4.3+
12363 collect2name=`${CC} -print-prog-name=collect2`
12364 if test -f "$collect2name" && \
12365 strings "$collect2name" | grep resolve_lib_name >/dev/null
12366 then
12367 # We have reworked collect2
12368 hardcode_direct=yes
12369 else
12370 # We have old collect2
12371 hardcode_direct=unsupported
12372 # It fails to find uninstalled libraries when the uninstalled
12373 # path is not listed in the libpath. Setting hardcode_minus_L
12374 # to unsupported forces relinking
12375 hardcode_minus_L=yes
12376 hardcode_libdir_flag_spec='-L$libdir'
12377 hardcode_libdir_separator=
12378 fi
12379 esac
12380 shared_flag='-shared'
12381 else
12382 # not using gcc
12383 if test "$host_cpu" = ia64; then
12384 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12385 # chokes on -Wl,-G. The following line is correct:
12386 shared_flag='-G'
12387 else
12388 if test "$aix_use_runtimelinking" = yes; then
12389 shared_flag='${wl}-G'
12390 else
12391 shared_flag='${wl}-bM:SRE'
12392 fi
12393 fi
12394 fi
12395
12396 # It seems that -bexpall does not export symbols beginning with
12397 # underscore (_), so it is better to generate a list of symbols to export.
12398 always_export_symbols=yes
12399 if test "$aix_use_runtimelinking" = yes; then
12400 # Warning - without using the other runtime loading flags (-brtl),
12401 # -berok will link without error, but may produce a broken library.
12402 allow_undefined_flag='-berok'
12403 # Determine the default libpath from the value encoded in an empty executable.
12404 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012405/* confdefs.h. */
12406_ACEOF
12407cat confdefs.h >>conftest.$ac_ext
12408cat >>conftest.$ac_ext <<_ACEOF
12409/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012410
John Criswell7a73b802003-06-30 21:59:07 +000012411int
12412main ()
12413{
John Criswell47fdd832003-07-14 16:52:07 +000012414
John Criswell7a73b802003-06-30 21:59:07 +000012415 ;
12416 return 0;
12417}
12418_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012419rm -f conftest.$ac_objext conftest$ac_exeext
12420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012421 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012422 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012423 grep -v '^ *+' conftest.er1 >conftest.err
12424 rm -f conftest.er1
12425 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012428 { ac_try='test -z "$ac_c_werror_flag"
12429 || test ! -s conftest.err'
12430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431 (eval $ac_try) 2>&5
12432 ac_status=$?
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; } &&
12435 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437 (eval $ac_try) 2>&5
12438 ac_status=$?
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012441
John Criswell47fdd832003-07-14 16:52:07 +000012442aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12443}'`
12444# Check for a 64-bit object if we didn't find anything.
12445if 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; }
12446}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012447else
12448 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012449sed 's/^/| /' conftest.$ac_ext >&5
12450
John Criswell7a73b802003-06-30 21:59:07 +000012451fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012452rm -f conftest.err conftest.$ac_objext \
12453 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012454if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012455
John Criswell47fdd832003-07-14 16:52:07 +000012456 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12457 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"
12458 else
12459 if test "$host_cpu" = ia64; then
12460 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12461 allow_undefined_flag="-z nodefs"
12462 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"
12463 else
12464 # Determine the default libpath from the value encoded in an empty executable.
12465 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012466/* confdefs.h. */
12467_ACEOF
12468cat confdefs.h >>conftest.$ac_ext
12469cat >>conftest.$ac_ext <<_ACEOF
12470/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012471
John Criswell47fdd832003-07-14 16:52:07 +000012472int
12473main ()
12474{
John Criswell7a73b802003-06-30 21:59:07 +000012475
John Criswell47fdd832003-07-14 16:52:07 +000012476 ;
12477 return 0;
12478}
12479_ACEOF
12480rm -f conftest.$ac_objext conftest$ac_exeext
12481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012482 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012483 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012484 grep -v '^ *+' conftest.er1 >conftest.err
12485 rm -f conftest.er1
12486 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012489 { ac_try='test -z "$ac_c_werror_flag"
12490 || test ! -s conftest.err'
12491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492 (eval $ac_try) 2>&5
12493 ac_status=$?
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); }; } &&
12496 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498 (eval $ac_try) 2>&5
12499 ac_status=$?
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012502
John Criswell47fdd832003-07-14 16:52:07 +000012503aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12504}'`
12505# Check for a 64-bit object if we didn't find anything.
12506if 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; }
12507}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012508else
John Criswell47fdd832003-07-14 16:52:07 +000012509 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012510sed 's/^/| /' conftest.$ac_ext >&5
12511
John Criswell47fdd832003-07-14 16:52:07 +000012512fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012513rm -f conftest.err conftest.$ac_objext \
12514 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012515if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012516
John Criswell47fdd832003-07-14 16:52:07 +000012517 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12518 # Warning - without using the other run time loading flags,
12519 # -berok will link without error, but may produce a broken library.
12520 no_undefined_flag=' ${wl}-bernotok'
12521 allow_undefined_flag=' ${wl}-berok'
12522 # -bexpall does not export symbols beginning with underscore (_)
12523 always_export_symbols=yes
12524 # Exported symbols can be pulled into shared objects from archives
12525 whole_archive_flag_spec=' '
12526 archive_cmds_need_lc=yes
12527 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012528 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 +000012529 fi
12530 fi
John Criswell7a73b802003-06-30 21:59:07 +000012531 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012532
12533 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012534 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 +000012535 hardcode_libdir_flag_spec='-L$libdir'
12536 hardcode_minus_L=yes
12537 # see comment about different semantics on the GNU ld section
12538 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012539 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012540
Reid Spencer2706f8c2004-09-19 23:53:36 +000012541 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012542 export_dynamic_flag_spec=-rdynamic
12543 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012544
John Criswell47fdd832003-07-14 16:52:07 +000012545 cygwin* | mingw* | pw32*)
12546 # When not using gcc, we currently assume that we are using
12547 # Microsoft Visual C++.
12548 # hardcode_libdir_flag_spec is actually meaningless, as there is
12549 # no search path for DLLs.
12550 hardcode_libdir_flag_spec=' '
12551 allow_undefined_flag=unsupported
12552 # Tell ltmain to make .lib files, not .a files.
12553 libext=lib
12554 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012555 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012556 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012557 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012558 # The linker will automatically build a .lib file if we build a DLL.
12559 old_archive_From_new_cmds='true'
12560 # FIXME: Should let the user specify the lib program.
12561 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12562 fix_srcfile_path='`cygpath -w "$srcfile"`'
12563 enable_shared_with_static_runtimes=yes
12564 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012565
John Criswell47fdd832003-07-14 16:52:07 +000012566 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012567 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012568 rhapsody* | darwin1.[012])
12569 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12570 ;;
12571 *) # Darwin 1.3 on
12572 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12573 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12574 else
12575 case ${MACOSX_DEPLOYMENT_TARGET} in
12576 10.[012])
12577 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12578 ;;
12579 10.*)
12580 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12581 ;;
12582 esac
12583 fi
12584 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012585 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012586 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012587 hardcode_direct=no
12588 hardcode_automatic=yes
12589 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012590 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012591 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012592 if test "$GCC" = yes ; then
12593 output_verbose_link_cmd='echo'
12594 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12595 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12596 # 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 +000012597 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}'
12598 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 +000012599 else
12600 case "$cc_basename" in
12601 xlc*)
12602 output_verbose_link_cmd='echo'
12603 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12604 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12605 # 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 +000012606 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}'
12607 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 +000012608 ;;
12609 *)
12610 ld_shlibs=no
12611 ;;
12612 esac
John Criswell7a73b802003-06-30 21:59:07 +000012613 fi
John Criswell47fdd832003-07-14 16:52:07 +000012614 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012615
John Criswell47fdd832003-07-14 16:52:07 +000012616 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012617 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012618 hardcode_libdir_flag_spec='-L$libdir'
12619 hardcode_shlibpath_var=no
12620 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012621
John Criswell47fdd832003-07-14 16:52:07 +000012622 freebsd1*)
12623 ld_shlibs=no
12624 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012625
John Criswell47fdd832003-07-14 16:52:07 +000012626 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12627 # support. Future versions do this automatically, but an explicit c++rt0.o
12628 # does not break anything, and helps significantly (at the cost of a little
12629 # extra space).
12630 freebsd2.2*)
12631 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12632 hardcode_libdir_flag_spec='-R$libdir'
12633 hardcode_direct=yes
12634 hardcode_shlibpath_var=no
12635 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012636
John Criswell47fdd832003-07-14 16:52:07 +000012637 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12638 freebsd2*)
12639 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12640 hardcode_direct=yes
12641 hardcode_minus_L=yes
12642 hardcode_shlibpath_var=no
12643 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012644
John Criswell47fdd832003-07-14 16:52:07 +000012645 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012646 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012647 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12648 hardcode_libdir_flag_spec='-R$libdir'
12649 hardcode_direct=yes
12650 hardcode_shlibpath_var=no
12651 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012652
John Criswell47fdd832003-07-14 16:52:07 +000012653 hpux9*)
12654 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012655 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 +000012656 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012657 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 +000012658 fi
12659 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12660 hardcode_libdir_separator=:
12661 hardcode_direct=yes
12662
12663 # hardcode_minus_L: Not really in the search PATH,
12664 # but as the default location of the library.
12665 hardcode_minus_L=yes
12666 export_dynamic_flag_spec='${wl}-E'
12667 ;;
12668
12669 hpux10* | hpux11*)
12670 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12671 case "$host_cpu" in
12672 hppa*64*|ia64*)
12673 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12674 ;;
12675 *)
12676 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12677 ;;
12678 esac
12679 else
12680 case "$host_cpu" in
12681 hppa*64*|ia64*)
12682 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12683 ;;
12684 *)
12685 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12686 ;;
12687 esac
12688 fi
12689 if test "$with_gnu_ld" = no; then
12690 case "$host_cpu" in
12691 hppa*64*)
12692 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12693 hardcode_libdir_flag_spec_ld='+b $libdir'
12694 hardcode_libdir_separator=:
12695 hardcode_direct=no
12696 hardcode_shlibpath_var=no
12697 ;;
12698 ia64*)
12699 hardcode_libdir_flag_spec='-L$libdir'
12700 hardcode_direct=no
12701 hardcode_shlibpath_var=no
12702
12703 # hardcode_minus_L: Not really in the search PATH,
12704 # but as the default location of the library.
12705 hardcode_minus_L=yes
12706 ;;
12707 *)
12708 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12709 hardcode_libdir_separator=:
12710 hardcode_direct=yes
12711 export_dynamic_flag_spec='${wl}-E'
12712
12713 # hardcode_minus_L: Not really in the search PATH,
12714 # but as the default location of the library.
12715 hardcode_minus_L=yes
12716 ;;
12717 esac
12718 fi
12719 ;;
12720
12721 irix5* | irix6* | nonstopux*)
12722 if test "$GCC" = yes; then
12723 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'
12724 else
12725 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'
12726 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12727 fi
12728 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12729 hardcode_libdir_separator=:
12730 link_all_deplibs=yes
12731 ;;
12732
12733 netbsd*)
12734 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12735 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12736 else
12737 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12738 fi
12739 hardcode_libdir_flag_spec='-R$libdir'
12740 hardcode_direct=yes
12741 hardcode_shlibpath_var=no
12742 ;;
12743
12744 newsos6)
12745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12746 hardcode_direct=yes
12747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12748 hardcode_libdir_separator=:
12749 hardcode_shlibpath_var=no
12750 ;;
12751
12752 openbsd*)
12753 hardcode_direct=yes
12754 hardcode_shlibpath_var=no
12755 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12756 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012757 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 +000012758 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12759 export_dynamic_flag_spec='${wl}-E'
12760 else
12761 case $host_os in
12762 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12764 hardcode_libdir_flag_spec='-R$libdir'
12765 ;;
12766 *)
12767 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12768 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12769 ;;
12770 esac
12771 fi
12772 ;;
12773
12774 os2*)
12775 hardcode_libdir_flag_spec='-L$libdir'
12776 hardcode_minus_L=yes
12777 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000012778 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 +000012779 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12780 ;;
12781
12782 osf3*)
12783 if test "$GCC" = yes; then
12784 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12785 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'
12786 else
12787 allow_undefined_flag=' -expect_unresolved \*'
12788 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'
12789 fi
12790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12791 hardcode_libdir_separator=:
12792 ;;
12793
12794 osf4* | osf5*) # as osf3* with the addition of -msym flag
12795 if test "$GCC" = yes; then
12796 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12797 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'
12798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12799 else
12800 allow_undefined_flag=' -expect_unresolved \*'
12801 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 +000012802 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12803 $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'
12804
John Criswell47fdd832003-07-14 16:52:07 +000012805 # Both c and cxx compiler support -rpath directly
12806 hardcode_libdir_flag_spec='-rpath $libdir'
12807 fi
12808 hardcode_libdir_separator=:
12809 ;;
12810
12811 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000012812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12813 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000012814 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000012815 runpath_var=LD_RUN_PATH
12816 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000012817 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012818
John Criswell47fdd832003-07-14 16:52:07 +000012819 solaris*)
12820 no_undefined_flag=' -z text'
12821 if test "$GCC" = yes; then
12822 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012823 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12824 $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 +000012825 else
12826 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012827 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12828 $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 +000012829 fi
12830 hardcode_libdir_flag_spec='-R$libdir'
12831 hardcode_shlibpath_var=no
12832 case $host_os in
12833 solaris2.[0-5] | solaris2.[0-5].*) ;;
12834 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12835 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12836 esac
12837 link_all_deplibs=yes
12838 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012839
John Criswell47fdd832003-07-14 16:52:07 +000012840 sunos4*)
12841 if test "x$host_vendor" = xsequent; then
12842 # Use $CC to link under sequent, because it throws in some extra .o
12843 # files that make .init and .fini sections work.
12844 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12845 else
12846 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12847 fi
12848 hardcode_libdir_flag_spec='-L$libdir'
12849 hardcode_direct=yes
12850 hardcode_minus_L=yes
12851 hardcode_shlibpath_var=no
12852 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012853
John Criswell47fdd832003-07-14 16:52:07 +000012854 sysv4)
12855 case $host_vendor in
12856 sni)
12857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12858 hardcode_direct=yes # is this really true???
12859 ;;
12860 siemens)
12861 ## LD is ld it makes a PLAMLIB
12862 ## CC just makes a GrossModule.
12863 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12864 reload_cmds='$CC -r -o $output$reload_objs'
12865 hardcode_direct=no
12866 ;;
12867 motorola)
12868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12869 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12870 ;;
12871 esac
12872 runpath_var='LD_RUN_PATH'
12873 hardcode_shlibpath_var=no
12874 ;;
12875
12876 sysv4.3*)
12877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12878 hardcode_shlibpath_var=no
12879 export_dynamic_flag_spec='-Bexport'
12880 ;;
12881
12882 sysv4*MP*)
12883 if test -d /usr/nec; then
12884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12885 hardcode_shlibpath_var=no
12886 runpath_var=LD_RUN_PATH
12887 hardcode_runpath_var=yes
12888 ld_shlibs=yes
12889 fi
12890 ;;
12891
12892 sysv4.2uw2*)
12893 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12894 hardcode_direct=yes
12895 hardcode_minus_L=no
12896 hardcode_shlibpath_var=no
12897 hardcode_runpath_var=yes
12898 runpath_var=LD_RUN_PATH
12899 ;;
12900
12901 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12902 no_undefined_flag='${wl}-z ${wl}text'
12903 if test "$GCC" = yes; then
12904 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12905 else
12906 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12907 fi
12908 runpath_var='LD_RUN_PATH'
12909 hardcode_shlibpath_var=no
12910 ;;
12911
12912 sysv5*)
12913 no_undefined_flag=' -z text'
12914 # $CC -shared without GNU ld will not create a library from C++
12915 # object files and a static libstdc++, better avoid it by now
12916 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012917 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12918 $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 +000012919 hardcode_libdir_flag_spec=
12920 hardcode_shlibpath_var=no
12921 runpath_var='LD_RUN_PATH'
12922 ;;
12923
12924 uts4*)
12925 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12926 hardcode_libdir_flag_spec='-L$libdir'
12927 hardcode_shlibpath_var=no
12928 ;;
12929
12930 *)
12931 ld_shlibs=no
12932 ;;
12933 esac
12934 fi
12935
John Criswell7a73b802003-06-30 21:59:07 +000012936echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12937echo "${ECHO_T}$ld_shlibs" >&6
12938test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012939
John Criswell47fdd832003-07-14 16:52:07 +000012940variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12941if test "$GCC" = yes; then
12942 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12943fi
12944
12945#
12946# Do we need to explicitly link libc?
12947#
12948case "x$archive_cmds_need_lc" in
12949x|xyes)
12950 # Assume -lc should be added
12951 archive_cmds_need_lc=yes
12952
12953 if test "$enable_shared" = yes && test "$GCC" = yes; then
12954 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012955 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000012956 # FIXME: we may have to deal with multi-command sequences.
12957 ;;
12958 '$CC '*)
12959 # Test whether the compiler implicitly links with -lc since on some
12960 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12961 # to ld, don't add -lc before -lgcc.
12962 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12963echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12964 $rm conftest*
12965 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12966
12967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12968 (eval $ac_compile) 2>&5
12969 ac_status=$?
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); } 2>conftest.err; then
12972 soname=conftest
12973 lib=conftest
12974 libobjs=conftest.$ac_objext
12975 deplibs=
12976 wl=$lt_prog_compiler_wl
12977 compiler_flags=-v
12978 linker_flags=-v
12979 verstring=
12980 output_objdir=.
12981 libname=conftest
12982 lt_save_allow_undefined_flag=$allow_undefined_flag
12983 allow_undefined_flag=
12984 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12985 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12986 ac_status=$?
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); }
12989 then
12990 archive_cmds_need_lc=no
12991 else
12992 archive_cmds_need_lc=yes
12993 fi
12994 allow_undefined_flag=$lt_save_allow_undefined_flag
12995 else
12996 cat conftest.err 1>&5
12997 fi
12998 $rm conftest*
12999 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13000echo "${ECHO_T}$archive_cmds_need_lc" >&6
13001 ;;
13002 esac
13003 fi
13004 ;;
13005esac
13006
John Criswell7a73b802003-06-30 21:59:07 +000013007echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13008echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13009library_names_spec=
13010libname_spec='lib$name'
13011soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013012shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013013postinstall_cmds=
13014postuninstall_cmds=
13015finish_cmds=
13016finish_eval=
13017shlibpath_var=
13018shlibpath_overrides_runpath=unknown
13019version_type=none
13020dynamic_linker="$host_os ld.so"
13021sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013022if test "$GCC" = yes; then
13023 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13024 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13025 # if the path contains ";" then we assume it to be the separator
13026 # otherwise default to the standard path separator (i.e. ":") - it is
13027 # assumed that no part of a normal pathname contains ";" but that should
13028 # okay in the real world where ";" in dirpaths is itself problematic.
13029 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13030 else
13031 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13032 fi
13033else
13034 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13035fi
13036need_lib_prefix=unknown
13037hardcode_into_libs=no
13038
13039# when you set need_version to no, make sure it does not cause -set_version
13040# flags to be left without arguments
13041need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013042
13043case $host_os in
13044aix3*)
13045 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013046 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013047 shlibpath_var=LIBPATH
13048
John Criswell47fdd832003-07-14 16:52:07 +000013049 # AIX 3 has no versioning support, so we append a major version to the name.
13050 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013051 ;;
13052
13053aix4* | aix5*)
13054 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013055 need_lib_prefix=no
13056 need_version=no
13057 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013058 if test "$host_cpu" = ia64; then
13059 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013060 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013061 shlibpath_var=LD_LIBRARY_PATH
13062 else
13063 # With GCC up to 2.95.x, collect2 would create an import file
13064 # for dependence libraries. The import file would start with
13065 # the line `#! .'. This would cause the generated library to
13066 # depend on `.', always an invalid library. This was fixed in
13067 # development snapshots of GCC prior to 3.0.
13068 case $host_os in
13069 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013070 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13071 echo ' yes '
13072 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13073 :
13074 else
13075 can_build_shared=no
13076 fi
13077 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013078 esac
John Criswell47fdd832003-07-14 16:52:07 +000013079 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13080 # soname into executable. Probably we can add versioning support to
13081 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013082 if test "$aix_use_runtimelinking" = yes; then
13083 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13084 # instead of lib<name>.a to let people know that these are not
13085 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013087 else
13088 # We preserve .a as extension for shared libraries through AIX4.2
13089 # and later when we are not doing run time linking.
13090 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013091 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013092 fi
13093 shlibpath_var=LIBPATH
13094 fi
13095 ;;
13096
13097amigaos*)
13098 library_names_spec='$libname.ixlibrary $libname.a'
13099 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013100 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 +000013101 ;;
13102
13103beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013104 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013105 dynamic_linker="$host_os ld.so"
13106 shlibpath_var=LIBRARY_PATH
13107 ;;
13108
Reid Spencer2706f8c2004-09-19 23:53:36 +000013109bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013110 version_type=linux
13111 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13113 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013114 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13115 shlibpath_var=LD_LIBRARY_PATH
13116 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13117 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013118 # the default ld.so.conf also contains /usr/contrib/lib and
13119 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13120 # libtool to hard-code these into programs
13121 ;;
13122
13123cygwin* | mingw* | pw32*)
13124 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013125 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013126 need_version=no
13127 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013128
John Criswell7a73b802003-06-30 21:59:07 +000013129 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013130 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013131 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013132 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013133 postinstall_cmds='base_file=`basename \${file}`~
13134 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13135 dldir=$destdir/`dirname \$dlpath`~
13136 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013137 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013138 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13139 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013140 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013141 shlibpath_overrides_runpath=yes
13142
13143 case $host_os in
13144 cygwin*)
13145 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13146 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 +000013147 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013148 ;;
13149 mingw*)
13150 # MinGW DLLs use traditional 'lib' prefix
13151 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13152 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13153 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13154 # It is most probably a Windows format PATH printed by
13155 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13156 # path with ; separators, and with drive letters. We can handle the
13157 # drive letters (cygwin fileutils understands them), so leave them,
13158 # especially as we might pass files found there to a mingw objdump,
13159 # which wouldn't understand a cygwinified path. Ahh.
13160 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13161 else
13162 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13163 fi
13164 ;;
13165 pw32*)
13166 # pw32 DLLs use 'pw' prefix rather than 'lib'
13167 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13168 ;;
13169 esac
John Criswell7a73b802003-06-30 21:59:07 +000013170 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013171
John Criswell7a73b802003-06-30 21:59:07 +000013172 *)
John Criswell47fdd832003-07-14 16:52:07 +000013173 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013174 ;;
13175 esac
13176 dynamic_linker='Win32 ld.exe'
13177 # FIXME: first we should search . and the directory the executable is in
13178 shlibpath_var=PATH
13179 ;;
13180
13181darwin* | rhapsody*)
13182 dynamic_linker="$host_os dyld"
13183 version_type=darwin
13184 need_lib_prefix=no
13185 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013186 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013187 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013188 shlibpath_overrides_runpath=yes
13189 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013190 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013191 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013192 if test "$GCC" = yes; then
13193 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"`
13194 else
13195 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013196 fi
13197 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13198 ;;
13199
13200dgux*)
13201 version_type=linux
13202 need_lib_prefix=no
13203 need_version=no
13204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13205 soname_spec='${libname}${release}${shared_ext}$major'
13206 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013207 ;;
13208
13209freebsd1*)
13210 dynamic_linker=no
13211 ;;
13212
Reid Spencer2706f8c2004-09-19 23:53:36 +000013213kfreebsd*-gnu)
13214 version_type=linux
13215 need_lib_prefix=no
13216 need_version=no
13217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13218 soname_spec='${libname}${release}${shared_ext}$major'
13219 shlibpath_var=LD_LIBRARY_PATH
13220 shlibpath_overrides_runpath=no
13221 hardcode_into_libs=yes
13222 dynamic_linker='GNU ld.so'
13223 ;;
13224
John Criswell7a73b802003-06-30 21:59:07 +000013225freebsd*)
13226 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13227 version_type=freebsd-$objformat
13228 case $version_type in
13229 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013231 need_version=no
13232 need_lib_prefix=no
13233 ;;
13234 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013235 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013236 need_version=yes
13237 ;;
13238 esac
13239 shlibpath_var=LD_LIBRARY_PATH
13240 case $host_os in
13241 freebsd2*)
13242 shlibpath_overrides_runpath=yes
13243 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013244 freebsd3.01* | freebsdelf3.01*)
13245 shlibpath_overrides_runpath=yes
13246 hardcode_into_libs=yes
13247 ;;
13248 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013249 shlibpath_overrides_runpath=no
13250 hardcode_into_libs=yes
13251 ;;
13252 esac
13253 ;;
13254
13255gnu*)
13256 version_type=linux
13257 need_lib_prefix=no
13258 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13260 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013261 shlibpath_var=LD_LIBRARY_PATH
13262 hardcode_into_libs=yes
13263 ;;
13264
13265hpux9* | hpux10* | hpux11*)
13266 # Give a soname corresponding to the major version so that dld.sl refuses to
13267 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013268 version_type=sunos
13269 need_lib_prefix=no
13270 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013271 case "$host_cpu" in
13272 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013273 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013274 hardcode_into_libs=yes
13275 dynamic_linker="$host_os dld.so"
13276 shlibpath_var=LD_LIBRARY_PATH
13277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13279 soname_spec='${libname}${release}${shared_ext}$major'
13280 if test "X$HPUX_IA64_MODE" = X32; then
13281 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13282 else
13283 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13284 fi
13285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13286 ;;
13287 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013288 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013289 hardcode_into_libs=yes
13290 dynamic_linker="$host_os dld.sl"
13291 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13294 soname_spec='${libname}${release}${shared_ext}$major'
13295 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13296 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13297 ;;
13298 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013299 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013300 dynamic_linker="$host_os dld.sl"
13301 shlibpath_var=SHLIB_PATH
13302 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13304 soname_spec='${libname}${release}${shared_ext}$major'
13305 ;;
13306 esac
John Criswell7a73b802003-06-30 21:59:07 +000013307 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13308 postinstall_cmds='chmod 555 $lib'
13309 ;;
13310
John Criswell47fdd832003-07-14 16:52:07 +000013311irix5* | irix6* | nonstopux*)
13312 case $host_os in
13313 nonstopux*) version_type=nonstopux ;;
13314 *)
13315 if test "$lt_cv_prog_gnu_ld" = yes; then
13316 version_type=linux
13317 else
13318 version_type=irix
13319 fi ;;
13320 esac
John Criswell7a73b802003-06-30 21:59:07 +000013321 need_lib_prefix=no
13322 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013323 soname_spec='${libname}${release}${shared_ext}$major'
13324 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 +000013325 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013326 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013327 libsuff= shlibsuff=
13328 ;;
13329 *)
13330 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013331 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13332 libsuff= shlibsuff= libmagic=32-bit;;
13333 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13334 libsuff=32 shlibsuff=N32 libmagic=N32;;
13335 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13336 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013337 *) libsuff= shlibsuff= libmagic=never-match;;
13338 esac
13339 ;;
13340 esac
13341 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13342 shlibpath_overrides_runpath=no
13343 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13344 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013345 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013346 ;;
13347
13348# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013349linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013350 dynamic_linker=no
13351 ;;
13352
13353# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013354linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013355 version_type=linux
13356 need_lib_prefix=no
13357 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13359 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013360 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13361 shlibpath_var=LD_LIBRARY_PATH
13362 shlibpath_overrides_runpath=no
13363 # This implies no fast_install, which is unacceptable.
13364 # Some rework will be needed to allow for fast_install
13365 # before this can be enabled.
13366 hardcode_into_libs=yes
13367
Reid Spencer2706f8c2004-09-19 23:53:36 +000013368 # Append ld.so.conf contents to the search path
13369 if test -f /etc/ld.so.conf; then
13370 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13371 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13372 fi
13373
John Criswell7a73b802003-06-30 21:59:07 +000013374 # We used to test for /lib/ld.so.1 and disable shared libraries on
13375 # powerpc, because MkLinux only supported shared libraries with the
13376 # GNU dynamic linker. Since this was broken with cross compilers,
13377 # most powerpc-linux boxes support dynamic linking these days and
13378 # people can always --disable-shared, the test was removed, and we
13379 # assume the GNU/Linux dynamic linker is in use.
13380 dynamic_linker='GNU/Linux ld.so'
13381 ;;
13382
Reid Spencer2706f8c2004-09-19 23:53:36 +000013383knetbsd*-gnu)
13384 version_type=linux
13385 need_lib_prefix=no
13386 need_version=no
13387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13388 soname_spec='${libname}${release}${shared_ext}$major'
13389 shlibpath_var=LD_LIBRARY_PATH
13390 shlibpath_overrides_runpath=no
13391 hardcode_into_libs=yes
13392 dynamic_linker='GNU ld.so'
13393 ;;
13394
John Criswell7a73b802003-06-30 21:59:07 +000013395netbsd*)
13396 version_type=sunos
13397 need_lib_prefix=no
13398 need_version=no
13399 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13402 dynamic_linker='NetBSD (a.out) ld.so'
13403 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013405 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013406 dynamic_linker='NetBSD ld.elf_so'
13407 fi
13408 shlibpath_var=LD_LIBRARY_PATH
13409 shlibpath_overrides_runpath=yes
13410 hardcode_into_libs=yes
13411 ;;
13412
13413newsos6)
13414 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13416 shlibpath_var=LD_LIBRARY_PATH
13417 shlibpath_overrides_runpath=yes
13418 ;;
13419
Reid Spencer2706f8c2004-09-19 23:53:36 +000013420nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013421 version_type=linux
13422 need_lib_prefix=no
13423 need_version=no
13424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13425 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013426 shlibpath_var=LD_LIBRARY_PATH
13427 shlibpath_overrides_runpath=yes
13428 ;;
13429
13430openbsd*)
13431 version_type=sunos
13432 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013433 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13436 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013437 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 +000013438 case $host_os in
13439 openbsd2.[89] | openbsd2.[89].*)
13440 shlibpath_overrides_runpath=no
13441 ;;
13442 *)
13443 shlibpath_overrides_runpath=yes
13444 ;;
13445 esac
John Criswell7a73b802003-06-30 21:59:07 +000013446 else
13447 shlibpath_overrides_runpath=yes
13448 fi
John Criswell7a73b802003-06-30 21:59:07 +000013449 ;;
13450
13451os2*)
13452 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013453 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013454 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013455 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013456 dynamic_linker='OS/2 ld.exe'
13457 shlibpath_var=LIBPATH
13458 ;;
13459
13460osf3* | osf4* | osf5*)
13461 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013462 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013463 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013464 soname_spec='${libname}${release}${shared_ext}$major'
13465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013466 shlibpath_var=LD_LIBRARY_PATH
13467 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13468 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13469 ;;
13470
13471sco3.2v5*)
13472 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013473 soname_spec='${libname}${release}${shared_ext}$major'
13474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013475 shlibpath_var=LD_LIBRARY_PATH
13476 ;;
13477
13478solaris*)
13479 version_type=linux
13480 need_lib_prefix=no
13481 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13483 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013484 shlibpath_var=LD_LIBRARY_PATH
13485 shlibpath_overrides_runpath=yes
13486 hardcode_into_libs=yes
13487 # ldd complains unless libraries are executable
13488 postinstall_cmds='chmod +x $lib'
13489 ;;
13490
13491sunos4*)
13492 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013494 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13495 shlibpath_var=LD_LIBRARY_PATH
13496 shlibpath_overrides_runpath=yes
13497 if test "$with_gnu_ld" = yes; then
13498 need_lib_prefix=no
13499 fi
13500 need_version=yes
13501 ;;
13502
13503sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13504 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13506 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013507 shlibpath_var=LD_LIBRARY_PATH
13508 case $host_vendor in
13509 sni)
13510 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013511 need_lib_prefix=no
13512 export_dynamic_flag_spec='${wl}-Blargedynsym'
13513 runpath_var=LD_RUN_PATH
13514 ;;
13515 siemens)
13516 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013517 ;;
13518 motorola)
13519 need_lib_prefix=no
13520 need_version=no
13521 shlibpath_overrides_runpath=no
13522 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13523 ;;
13524 esac
13525 ;;
13526
John Criswell7a73b802003-06-30 21:59:07 +000013527sysv4*MP*)
13528 if test -d /usr/nec ;then
13529 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013530 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13531 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013532 shlibpath_var=LD_LIBRARY_PATH
13533 fi
13534 ;;
13535
John Criswell47fdd832003-07-14 16:52:07 +000013536uts4*)
13537 version_type=linux
13538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13539 soname_spec='${libname}${release}${shared_ext}$major'
13540 shlibpath_var=LD_LIBRARY_PATH
13541 ;;
13542
John Criswell7a73b802003-06-30 21:59:07 +000013543*)
13544 dynamic_linker=no
13545 ;;
13546esac
13547echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13548echo "${ECHO_T}$dynamic_linker" >&6
13549test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013550
Reid Spencer2706f8c2004-09-19 23:53:36 +000013551echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13552echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13553hardcode_action=
13554if test -n "$hardcode_libdir_flag_spec" || \
13555 test -n "$runpath_var" || \
13556 test "X$hardcode_automatic" = "Xyes" ; then
13557
13558 # We can hardcode non-existant directories.
13559 if test "$hardcode_direct" != no &&
13560 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13561 # have to relink, otherwise we might link with an installed library
13562 # when we should be linking with a yet-to-be-installed one
13563 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13564 test "$hardcode_minus_L" != no; then
13565 # Linking always hardcodes the temporary library directory.
13566 hardcode_action=relink
13567 else
13568 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13569 hardcode_action=immediate
13570 fi
13571else
13572 # We cannot hardcode anything, or else we can only hardcode existing
13573 # directories.
13574 hardcode_action=unsupported
13575fi
13576echo "$as_me:$LINENO: result: $hardcode_action" >&5
13577echo "${ECHO_T}$hardcode_action" >&6
13578
13579if test "$hardcode_action" = relink; then
13580 # Fast installation is not supported
13581 enable_fast_install=no
13582elif test "$shlibpath_overrides_runpath" = yes ||
13583 test "$enable_shared" = no; then
13584 # Fast installation is not necessary
13585 enable_fast_install=needless
13586fi
13587
13588striplib=
13589old_striplib=
13590echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13591echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13592if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13593 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13594 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13595 echo "$as_me:$LINENO: result: yes" >&5
13596echo "${ECHO_T}yes" >&6
13597else
13598# FIXME - insert some real tests, host_os isn't really good enough
13599 case $host_os in
13600 darwin*)
13601 if test -n "$STRIP" ; then
13602 striplib="$STRIP -x"
13603 echo "$as_me:$LINENO: result: yes" >&5
13604echo "${ECHO_T}yes" >&6
13605 else
13606 echo "$as_me:$LINENO: result: no" >&5
13607echo "${ECHO_T}no" >&6
13608fi
13609 ;;
13610 *)
13611 echo "$as_me:$LINENO: result: no" >&5
13612echo "${ECHO_T}no" >&6
13613 ;;
13614 esac
13615fi
13616
John Criswell7a73b802003-06-30 21:59:07 +000013617if test "x$enable_dlopen" != xyes; then
13618 enable_dlopen=unknown
13619 enable_dlopen_self=unknown
13620 enable_dlopen_self_static=unknown
13621else
13622 lt_cv_dlopen=no
13623 lt_cv_dlopen_libs=
13624
13625 case $host_os in
13626 beos*)
13627 lt_cv_dlopen="load_add_on"
13628 lt_cv_dlopen_libs=
13629 lt_cv_dlopen_self=yes
13630 ;;
13631
John Criswell47fdd832003-07-14 16:52:07 +000013632 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013633 lt_cv_dlopen="LoadLibrary"
13634 lt_cv_dlopen_libs=
13635 ;;
13636
John Criswell47fdd832003-07-14 16:52:07 +000013637 cygwin*)
13638 lt_cv_dlopen="dlopen"
13639 lt_cv_dlopen_libs=
13640 ;;
13641
13642 darwin*)
13643 # if libdl is installed we need to link against it
13644 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13645echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13646if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
13648else
13649 ac_check_lib_save_LIBS=$LIBS
13650LIBS="-ldl $LIBS"
13651cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013652/* confdefs.h. */
13653_ACEOF
13654cat confdefs.h >>conftest.$ac_ext
13655cat >>conftest.$ac_ext <<_ACEOF
13656/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013657
13658/* Override any gcc2 internal prototype to avoid an error. */
13659#ifdef __cplusplus
13660extern "C"
13661#endif
13662/* We use char because int might match the return type of a gcc2
13663 builtin and then its argument prototype would still apply. */
13664char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013665int
13666main ()
13667{
13668dlopen ();
13669 ;
13670 return 0;
13671}
13672_ACEOF
13673rm -f conftest.$ac_objext conftest$ac_exeext
13674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013675 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013676 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013677 grep -v '^ *+' conftest.er1 >conftest.err
13678 rm -f conftest.er1
13679 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013682 { ac_try='test -z "$ac_c_werror_flag"
13683 || test ! -s conftest.err'
13684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685 (eval $ac_try) 2>&5
13686 ac_status=$?
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; } &&
13689 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691 (eval $ac_try) 2>&5
13692 ac_status=$?
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; }; then
13695 ac_cv_lib_dl_dlopen=yes
13696else
13697 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013698sed 's/^/| /' conftest.$ac_ext >&5
13699
John Criswell47fdd832003-07-14 16:52:07 +000013700ac_cv_lib_dl_dlopen=no
13701fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013702rm -f conftest.err conftest.$ac_objext \
13703 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013704LIBS=$ac_check_lib_save_LIBS
13705fi
13706echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13707echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13708if test $ac_cv_lib_dl_dlopen = yes; then
13709 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13710else
13711
13712 lt_cv_dlopen="dyld"
13713 lt_cv_dlopen_libs=
13714 lt_cv_dlopen_self=yes
13715
13716fi
13717
13718 ;;
13719
John Criswell7a73b802003-06-30 21:59:07 +000013720 *)
13721 echo "$as_me:$LINENO: checking for shl_load" >&5
13722echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13723if test "${ac_cv_func_shl_load+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13725else
13726 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013727/* confdefs.h. */
13728_ACEOF
13729cat confdefs.h >>conftest.$ac_ext
13730cat >>conftest.$ac_ext <<_ACEOF
13731/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013732/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13734#define shl_load innocuous_shl_load
13735
John Criswell7a73b802003-06-30 21:59:07 +000013736/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013737 which can conflict with char shl_load (); below.
13738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13739 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013740
John Criswell0c38eaf2003-09-10 15:17:25 +000013741#ifdef __STDC__
13742# include <limits.h>
13743#else
13744# include <assert.h>
13745#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013746
13747#undef shl_load
13748
John Criswell7a73b802003-06-30 21:59:07 +000013749/* Override any gcc2 internal prototype to avoid an error. */
13750#ifdef __cplusplus
13751extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013752{
John Criswell7a73b802003-06-30 21:59:07 +000013753#endif
13754/* We use char because int might match the return type of a gcc2
13755 builtin and then its argument prototype would still apply. */
13756char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013757/* The GNU C library defines this for functions which it implements
13758 to always fail with ENOSYS. Some functions are actually named
13759 something starting with __ and the normal name is an alias. */
13760#if defined (__stub_shl_load) || defined (__stub___shl_load)
13761choke me
13762#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013763char (*f) () = shl_load;
13764#endif
13765#ifdef __cplusplus
13766}
John Criswell7a73b802003-06-30 21:59:07 +000013767#endif
13768
John Criswell0c38eaf2003-09-10 15:17:25 +000013769int
13770main ()
13771{
13772return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000013773 ;
13774 return 0;
13775}
13776_ACEOF
13777rm -f conftest.$ac_objext conftest$ac_exeext
13778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013779 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013780 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013781 grep -v '^ *+' conftest.er1 >conftest.err
13782 rm -f conftest.er1
13783 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013786 { ac_try='test -z "$ac_c_werror_flag"
13787 || test ! -s conftest.err'
13788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789 (eval $ac_try) 2>&5
13790 ac_status=$?
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; } &&
13793 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795 (eval $ac_try) 2>&5
13796 ac_status=$?
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
13799 ac_cv_func_shl_load=yes
13800else
13801 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013802sed 's/^/| /' conftest.$ac_ext >&5
13803
John Criswell7a73b802003-06-30 21:59:07 +000013804ac_cv_func_shl_load=no
13805fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013806rm -f conftest.err conftest.$ac_objext \
13807 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013808fi
13809echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13810echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13811if test $ac_cv_func_shl_load = yes; then
13812 lt_cv_dlopen="shl_load"
13813else
13814 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13815echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13816if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13817 echo $ECHO_N "(cached) $ECHO_C" >&6
13818else
13819 ac_check_lib_save_LIBS=$LIBS
13820LIBS="-ldld $LIBS"
13821cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013822/* confdefs.h. */
13823_ACEOF
13824cat confdefs.h >>conftest.$ac_ext
13825cat >>conftest.$ac_ext <<_ACEOF
13826/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013827
13828/* Override any gcc2 internal prototype to avoid an error. */
13829#ifdef __cplusplus
13830extern "C"
13831#endif
13832/* We use char because int might match the return type of a gcc2
13833 builtin and then its argument prototype would still apply. */
13834char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013835int
13836main ()
13837{
13838shl_load ();
13839 ;
13840 return 0;
13841}
13842_ACEOF
13843rm -f conftest.$ac_objext conftest$ac_exeext
13844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013845 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013846 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013847 grep -v '^ *+' conftest.er1 >conftest.err
13848 rm -f conftest.er1
13849 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013852 { ac_try='test -z "$ac_c_werror_flag"
13853 || test ! -s conftest.err'
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13856 ac_status=$?
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; } &&
13859 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861 (eval $ac_try) 2>&5
13862 ac_status=$?
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; }; then
13865 ac_cv_lib_dld_shl_load=yes
13866else
13867 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013868sed 's/^/| /' conftest.$ac_ext >&5
13869
John Criswell7a73b802003-06-30 21:59:07 +000013870ac_cv_lib_dld_shl_load=no
13871fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013872rm -f conftest.err conftest.$ac_objext \
13873 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013874LIBS=$ac_check_lib_save_LIBS
13875fi
13876echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13877echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13878if test $ac_cv_lib_dld_shl_load = yes; then
13879 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13880else
13881 echo "$as_me:$LINENO: checking for dlopen" >&5
13882echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13883if test "${ac_cv_func_dlopen+set}" = set; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13885else
13886 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013887/* confdefs.h. */
13888_ACEOF
13889cat confdefs.h >>conftest.$ac_ext
13890cat >>conftest.$ac_ext <<_ACEOF
13891/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013892/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13894#define dlopen innocuous_dlopen
13895
John Criswell7a73b802003-06-30 21:59:07 +000013896/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013897 which can conflict with char dlopen (); below.
13898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13899 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013900
John Criswell0c38eaf2003-09-10 15:17:25 +000013901#ifdef __STDC__
13902# include <limits.h>
13903#else
13904# include <assert.h>
13905#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013906
13907#undef dlopen
13908
John Criswell7a73b802003-06-30 21:59:07 +000013909/* Override any gcc2 internal prototype to avoid an error. */
13910#ifdef __cplusplus
13911extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013912{
John Criswell7a73b802003-06-30 21:59:07 +000013913#endif
13914/* We use char because int might match the return type of a gcc2
13915 builtin and then its argument prototype would still apply. */
13916char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013917/* The GNU C library defines this for functions which it implements
13918 to always fail with ENOSYS. Some functions are actually named
13919 something starting with __ and the normal name is an alias. */
13920#if defined (__stub_dlopen) || defined (__stub___dlopen)
13921choke me
13922#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013923char (*f) () = dlopen;
13924#endif
13925#ifdef __cplusplus
13926}
John Criswell7a73b802003-06-30 21:59:07 +000013927#endif
13928
John Criswell0c38eaf2003-09-10 15:17:25 +000013929int
13930main ()
13931{
13932return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000013933 ;
13934 return 0;
13935}
13936_ACEOF
13937rm -f conftest.$ac_objext conftest$ac_exeext
13938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013939 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013940 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013941 grep -v '^ *+' conftest.er1 >conftest.err
13942 rm -f conftest.er1
13943 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013946 { ac_try='test -z "$ac_c_werror_flag"
13947 || test ! -s conftest.err'
13948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949 (eval $ac_try) 2>&5
13950 ac_status=$?
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); }; } &&
13953 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13956 ac_status=$?
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; }; then
13959 ac_cv_func_dlopen=yes
13960else
13961 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013962sed 's/^/| /' conftest.$ac_ext >&5
13963
John Criswell7a73b802003-06-30 21:59:07 +000013964ac_cv_func_dlopen=no
13965fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013966rm -f conftest.err conftest.$ac_objext \
13967 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013968fi
13969echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13970echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13971if test $ac_cv_func_dlopen = yes; then
13972 lt_cv_dlopen="dlopen"
13973else
13974 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13975echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13976if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13977 echo $ECHO_N "(cached) $ECHO_C" >&6
13978else
13979 ac_check_lib_save_LIBS=$LIBS
13980LIBS="-ldl $LIBS"
13981cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013982/* confdefs.h. */
13983_ACEOF
13984cat confdefs.h >>conftest.$ac_ext
13985cat >>conftest.$ac_ext <<_ACEOF
13986/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013987
13988/* Override any gcc2 internal prototype to avoid an error. */
13989#ifdef __cplusplus
13990extern "C"
13991#endif
13992/* We use char because int might match the return type of a gcc2
13993 builtin and then its argument prototype would still apply. */
13994char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013995int
13996main ()
13997{
13998dlopen ();
13999 ;
14000 return 0;
14001}
14002_ACEOF
14003rm -f conftest.$ac_objext conftest$ac_exeext
14004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014005 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014006 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014007 grep -v '^ *+' conftest.er1 >conftest.err
14008 rm -f conftest.er1
14009 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014012 { ac_try='test -z "$ac_c_werror_flag"
14013 || test ! -s conftest.err'
14014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14016 ac_status=$?
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }; } &&
14019 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14022 ac_status=$?
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; }; then
14025 ac_cv_lib_dl_dlopen=yes
14026else
14027 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014028sed 's/^/| /' conftest.$ac_ext >&5
14029
John Criswell7a73b802003-06-30 21:59:07 +000014030ac_cv_lib_dl_dlopen=no
14031fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014032rm -f conftest.err conftest.$ac_objext \
14033 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014034LIBS=$ac_check_lib_save_LIBS
14035fi
14036echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14037echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14038if test $ac_cv_lib_dl_dlopen = yes; then
14039 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14040else
14041 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14042echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14043if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14044 echo $ECHO_N "(cached) $ECHO_C" >&6
14045else
14046 ac_check_lib_save_LIBS=$LIBS
14047LIBS="-lsvld $LIBS"
14048cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014049/* confdefs.h. */
14050_ACEOF
14051cat confdefs.h >>conftest.$ac_ext
14052cat >>conftest.$ac_ext <<_ACEOF
14053/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014054
14055/* Override any gcc2 internal prototype to avoid an error. */
14056#ifdef __cplusplus
14057extern "C"
14058#endif
14059/* We use char because int might match the return type of a gcc2
14060 builtin and then its argument prototype would still apply. */
14061char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014062int
14063main ()
14064{
14065dlopen ();
14066 ;
14067 return 0;
14068}
14069_ACEOF
14070rm -f conftest.$ac_objext conftest$ac_exeext
14071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014072 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014073 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014074 grep -v '^ *+' conftest.er1 >conftest.err
14075 rm -f conftest.er1
14076 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014079 { ac_try='test -z "$ac_c_werror_flag"
14080 || test ! -s conftest.err'
14081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14082 (eval $ac_try) 2>&5
14083 ac_status=$?
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; } &&
14086 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088 (eval $ac_try) 2>&5
14089 ac_status=$?
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; }; then
14092 ac_cv_lib_svld_dlopen=yes
14093else
14094 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014095sed 's/^/| /' conftest.$ac_ext >&5
14096
John Criswell7a73b802003-06-30 21:59:07 +000014097ac_cv_lib_svld_dlopen=no
14098fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014099rm -f conftest.err conftest.$ac_objext \
14100 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014101LIBS=$ac_check_lib_save_LIBS
14102fi
14103echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14104echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14105if test $ac_cv_lib_svld_dlopen = yes; then
14106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14107else
14108 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14109echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14110if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14111 echo $ECHO_N "(cached) $ECHO_C" >&6
14112else
14113 ac_check_lib_save_LIBS=$LIBS
14114LIBS="-ldld $LIBS"
14115cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014116/* confdefs.h. */
14117_ACEOF
14118cat confdefs.h >>conftest.$ac_ext
14119cat >>conftest.$ac_ext <<_ACEOF
14120/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014121
14122/* Override any gcc2 internal prototype to avoid an error. */
14123#ifdef __cplusplus
14124extern "C"
14125#endif
14126/* We use char because int might match the return type of a gcc2
14127 builtin and then its argument prototype would still apply. */
14128char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014129int
14130main ()
14131{
14132dld_link ();
14133 ;
14134 return 0;
14135}
14136_ACEOF
14137rm -f conftest.$ac_objext conftest$ac_exeext
14138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014139 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014140 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014141 grep -v '^ *+' conftest.er1 >conftest.err
14142 rm -f conftest.er1
14143 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014146 { ac_try='test -z "$ac_c_werror_flag"
14147 || test ! -s conftest.err'
14148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149 (eval $ac_try) 2>&5
14150 ac_status=$?
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); }; } &&
14153 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155 (eval $ac_try) 2>&5
14156 ac_status=$?
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); }; }; then
14159 ac_cv_lib_dld_dld_link=yes
14160else
14161 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014162sed 's/^/| /' conftest.$ac_ext >&5
14163
John Criswell7a73b802003-06-30 21:59:07 +000014164ac_cv_lib_dld_dld_link=no
14165fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014166rm -f conftest.err conftest.$ac_objext \
14167 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014168LIBS=$ac_check_lib_save_LIBS
14169fi
14170echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14171echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14172if test $ac_cv_lib_dld_dld_link = yes; then
14173 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14174fi
14175
14176
14177fi
14178
14179
14180fi
14181
14182
14183fi
14184
14185
14186fi
14187
14188
14189fi
14190
14191 ;;
14192 esac
14193
14194 if test "x$lt_cv_dlopen" != xno; then
14195 enable_dlopen=yes
14196 else
14197 enable_dlopen=no
14198 fi
14199
14200 case $lt_cv_dlopen in
14201 dlopen)
14202 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014203 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014204
14205 save_LDFLAGS="$LDFLAGS"
14206 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14207
14208 save_LIBS="$LIBS"
14209 LIBS="$lt_cv_dlopen_libs $LIBS"
14210
14211 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14212echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14213if test "${lt_cv_dlopen_self+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14215else
14216 if test "$cross_compiling" = yes; then :
14217 lt_cv_dlopen_self=cross
14218else
John Criswell47fdd832003-07-14 16:52:07 +000014219 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014220 lt_status=$lt_dlunknown
14221 cat > conftest.$ac_ext <<EOF
Reid Spencer0fcb9412004-11-30 08:11:54 +000014222#line 14222 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014223#include "confdefs.h"
14224
14225#if HAVE_DLFCN_H
14226#include <dlfcn.h>
14227#endif
14228
14229#include <stdio.h>
14230
14231#ifdef RTLD_GLOBAL
14232# define LT_DLGLOBAL RTLD_GLOBAL
14233#else
14234# ifdef DL_GLOBAL
14235# define LT_DLGLOBAL DL_GLOBAL
14236# else
14237# define LT_DLGLOBAL 0
14238# endif
14239#endif
14240
14241/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14242 find out it does not work in some platform. */
14243#ifndef LT_DLLAZY_OR_NOW
14244# ifdef RTLD_LAZY
14245# define LT_DLLAZY_OR_NOW RTLD_LAZY
14246# else
14247# ifdef DL_LAZY
14248# define LT_DLLAZY_OR_NOW DL_LAZY
14249# else
14250# ifdef RTLD_NOW
14251# define LT_DLLAZY_OR_NOW RTLD_NOW
14252# else
14253# ifdef DL_NOW
14254# define LT_DLLAZY_OR_NOW DL_NOW
14255# else
14256# define LT_DLLAZY_OR_NOW 0
14257# endif
14258# endif
14259# endif
14260# endif
14261#endif
14262
14263#ifdef __cplusplus
14264extern "C" void exit (int);
14265#endif
14266
14267void fnord() { int i=42;}
14268int main ()
14269{
14270 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14271 int status = $lt_dlunknown;
14272
14273 if (self)
14274 {
14275 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14276 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14277 /* dlclose (self); */
14278 }
14279
14280 exit (status);
14281}
14282EOF
14283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14284 (eval $ac_link) 2>&5
14285 ac_status=$?
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14288 (./conftest; exit; ) 2>/dev/null
14289 lt_status=$?
14290 case x$lt_status in
14291 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14292 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14293 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14294 esac
14295 else :
14296 # compilation failed
14297 lt_cv_dlopen_self=no
14298 fi
14299fi
14300rm -fr conftest*
14301
14302
14303fi
14304echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14305echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14306
14307 if test "x$lt_cv_dlopen_self" = xyes; then
14308 LDFLAGS="$LDFLAGS $link_static_flag"
14309 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14310echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14311if test "${lt_cv_dlopen_self_static+set}" = set; then
14312 echo $ECHO_N "(cached) $ECHO_C" >&6
14313else
14314 if test "$cross_compiling" = yes; then :
14315 lt_cv_dlopen_self_static=cross
14316else
John Criswell47fdd832003-07-14 16:52:07 +000014317 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014318 lt_status=$lt_dlunknown
14319 cat > conftest.$ac_ext <<EOF
Reid Spencer0fcb9412004-11-30 08:11:54 +000014320#line 14320 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014321#include "confdefs.h"
14322
14323#if HAVE_DLFCN_H
14324#include <dlfcn.h>
14325#endif
14326
14327#include <stdio.h>
14328
14329#ifdef RTLD_GLOBAL
14330# define LT_DLGLOBAL RTLD_GLOBAL
14331#else
14332# ifdef DL_GLOBAL
14333# define LT_DLGLOBAL DL_GLOBAL
14334# else
14335# define LT_DLGLOBAL 0
14336# endif
14337#endif
14338
14339/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14340 find out it does not work in some platform. */
14341#ifndef LT_DLLAZY_OR_NOW
14342# ifdef RTLD_LAZY
14343# define LT_DLLAZY_OR_NOW RTLD_LAZY
14344# else
14345# ifdef DL_LAZY
14346# define LT_DLLAZY_OR_NOW DL_LAZY
14347# else
14348# ifdef RTLD_NOW
14349# define LT_DLLAZY_OR_NOW RTLD_NOW
14350# else
14351# ifdef DL_NOW
14352# define LT_DLLAZY_OR_NOW DL_NOW
14353# else
14354# define LT_DLLAZY_OR_NOW 0
14355# endif
14356# endif
14357# endif
14358# endif
14359#endif
14360
14361#ifdef __cplusplus
14362extern "C" void exit (int);
14363#endif
14364
14365void fnord() { int i=42;}
14366int main ()
14367{
14368 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14369 int status = $lt_dlunknown;
14370
14371 if (self)
14372 {
14373 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14374 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14375 /* dlclose (self); */
14376 }
14377
14378 exit (status);
14379}
14380EOF
14381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14382 (eval $ac_link) 2>&5
14383 ac_status=$?
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14386 (./conftest; exit; ) 2>/dev/null
14387 lt_status=$?
14388 case x$lt_status in
14389 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14390 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14391 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14392 esac
14393 else :
14394 # compilation failed
14395 lt_cv_dlopen_self_static=no
14396 fi
14397fi
14398rm -fr conftest*
14399
14400
14401fi
14402echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14403echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14404 fi
14405
14406 CPPFLAGS="$save_CPPFLAGS"
14407 LDFLAGS="$save_LDFLAGS"
14408 LIBS="$save_LIBS"
14409 ;;
14410 esac
14411
14412 case $lt_cv_dlopen_self in
14413 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14414 *) enable_dlopen_self=unknown ;;
14415 esac
14416
14417 case $lt_cv_dlopen_self_static in
14418 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14419 *) enable_dlopen_self_static=unknown ;;
14420 esac
14421fi
14422
14423
John Criswell47fdd832003-07-14 16:52:07 +000014424# Report which librarie types wil actually be built
14425echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14426echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14427echo "$as_me:$LINENO: result: $can_build_shared" >&5
14428echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014429
John Criswell47fdd832003-07-14 16:52:07 +000014430echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14431echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14432test "$can_build_shared" = "no" && enable_shared=no
14433
14434# On AIX, shared libraries and static libraries use the same namespace, and
14435# are all built from PIC.
14436case "$host_os" in
14437aix3*)
14438 test "$enable_shared" = yes && enable_static=no
14439 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014440 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014441 postinstall_cmds='$RANLIB $lib'
14442 fi
14443 ;;
14444
Reid Spencer2706f8c2004-09-19 23:53:36 +000014445aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014446 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14447 test "$enable_shared" = yes && enable_static=no
14448 fi
John Criswell7a73b802003-06-30 21:59:07 +000014449 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014450esac
14451echo "$as_me:$LINENO: result: $enable_shared" >&5
14452echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014453
John Criswell47fdd832003-07-14 16:52:07 +000014454echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14455echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14456# Make sure either enable_shared or enable_static is yes.
14457test "$enable_shared" = yes || enable_static=yes
14458echo "$as_me:$LINENO: result: $enable_static" >&5
14459echo "${ECHO_T}$enable_static" >&6
14460
14461# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014462# libtool distribution, otherwise you forgot to ship ltmain.sh
14463# with your package, and you will get complaints that there are
14464# no rules to generate ltmain.sh.
14465if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014466 # See if we are running on zsh, and set the options which allow our commands through
14467 # without removal of \ escapes.
14468 if test -n "${ZSH_VERSION+set}" ; then
14469 setopt NO_GLOB_SUBST
14470 fi
John Criswell7a73b802003-06-30 21:59:07 +000014471 # Now quote all the things that may contain metacharacters while being
14472 # careful not to overquote the AC_SUBSTed values. We take copies of the
14473 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014474 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14475 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014476 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14477 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14478 deplibs_check_method reload_flag reload_cmds need_locks \
14479 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14480 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014481 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014482 old_postinstall_cmds old_postuninstall_cmds \
14483 compiler \
14484 CC \
14485 LD \
14486 lt_prog_compiler_wl \
14487 lt_prog_compiler_pic \
14488 lt_prog_compiler_static \
14489 lt_prog_compiler_no_builtin_flag \
14490 export_dynamic_flag_spec \
14491 thread_safe_flag_spec \
14492 whole_archive_flag_spec \
14493 enable_shared_with_static_runtimes \
14494 old_archive_cmds \
14495 old_archive_from_new_cmds \
14496 predep_objects \
14497 postdep_objects \
14498 predeps \
14499 postdeps \
14500 compiler_lib_search_path \
14501 archive_cmds \
14502 archive_expsym_cmds \
14503 postinstall_cmds \
14504 postuninstall_cmds \
14505 old_archive_from_expsyms_cmds \
14506 allow_undefined_flag \
14507 no_undefined_flag \
14508 export_symbols_cmds \
14509 hardcode_libdir_flag_spec \
14510 hardcode_libdir_flag_spec_ld \
14511 hardcode_libdir_separator \
14512 hardcode_automatic \
14513 module_cmds \
14514 module_expsym_cmds \
14515 lt_cv_prog_compiler_c_o \
14516 exclude_expsyms \
14517 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014518
14519 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014520 old_archive_cmds | \
14521 old_archive_from_new_cmds | \
14522 archive_cmds | \
14523 archive_expsym_cmds | \
14524 module_cmds | \
14525 module_expsym_cmds | \
14526 old_archive_from_expsyms_cmds | \
14527 export_symbols_cmds | \
14528 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014529 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014530 old_postinstall_cmds | old_postuninstall_cmds | \
14531 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014532 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014533 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 +000014534 ;;
14535 *)
14536 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14537 ;;
14538 esac
14539 done
14540
John Criswell47fdd832003-07-14 16:52:07 +000014541 case $lt_echo in
14542 *'\$0 --fallback-echo"')
14543 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14544 ;;
14545 esac
14546
14547cfgfile="${ofile}T"
14548 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14549 $rm -f "$cfgfile"
14550 { echo "$as_me:$LINENO: creating $ofile" >&5
14551echo "$as_me: creating $ofile" >&6;}
14552
14553 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014554#! $SHELL
14555
John Criswell47fdd832003-07-14 16:52:07 +000014556# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014557# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14558# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14559#
John Criswell47fdd832003-07-14 16:52:07 +000014560# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14561# Free Software Foundation, Inc.
14562#
14563# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014564# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14565#
14566# This program is free software; you can redistribute it and/or modify
14567# it under the terms of the GNU General Public License as published by
14568# the Free Software Foundation; either version 2 of the License, or
14569# (at your option) any later version.
14570#
14571# This program is distributed in the hope that it will be useful, but
14572# WITHOUT ANY WARRANTY; without even the implied warranty of
14573# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14574# General Public License for more details.
14575#
14576# You should have received a copy of the GNU General Public License
14577# along with this program; if not, write to the Free Software
14578# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14579#
14580# As a special exception to the GNU General Public License, if you
14581# distribute this file as part of a program that contains a
14582# configuration script generated by Autoconf, you may include it under
14583# the same distribution terms that you use for the rest of that program.
14584
John Criswell47fdd832003-07-14 16:52:07 +000014585# A sed program that does not truncate output.
14586SED=$lt_SED
14587
John Criswell7a73b802003-06-30 21:59:07 +000014588# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014589Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014590
14591# The HP-UX ksh and POSIX shell print the target directory to stdout
14592# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014593(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014594
John Criswell47fdd832003-07-14 16:52:07 +000014595# The names of the tagged configurations supported by this script.
14596available_tags=
14597
John Criswell7a73b802003-06-30 21:59:07 +000014598# ### BEGIN LIBTOOL CONFIG
14599
14600# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14601
14602# Shell to use when invoking shell scripts.
14603SHELL=$lt_SHELL
14604
14605# Whether or not to build shared libraries.
14606build_libtool_libs=$enable_shared
14607
14608# Whether or not to build static libraries.
14609build_old_libs=$enable_static
14610
14611# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014612build_libtool_need_lc=$archive_cmds_need_lc
14613
14614# Whether or not to disallow shared libs when runtime libs are static
14615allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014616
14617# Whether or not to optimize for fast installation.
14618fast_install=$enable_fast_install
14619
14620# The host system.
14621host_alias=$host_alias
14622host=$host
14623
14624# An echo program that does not interpret backslashes.
14625echo=$lt_echo
14626
14627# The archiver.
14628AR=$lt_AR
14629AR_FLAGS=$lt_AR_FLAGS
14630
John Criswell47fdd832003-07-14 16:52:07 +000014631# A C compiler.
14632LTCC=$lt_LTCC
14633
14634# A language-specific compiler.
14635CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014636
14637# Is the compiler the GNU C compiler?
14638with_gcc=$GCC
14639
John Criswell47fdd832003-07-14 16:52:07 +000014640# An ERE matcher.
14641EGREP=$lt_EGREP
14642
John Criswell7a73b802003-06-30 21:59:07 +000014643# The linker used to build libraries.
14644LD=$lt_LD
14645
14646# Whether we need hard or soft links.
14647LN_S=$lt_LN_S
14648
14649# A BSD-compatible nm program.
14650NM=$lt_NM
14651
14652# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014653STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014654
14655# Used to examine libraries when file_magic_cmd begins "file"
14656MAGIC_CMD=$MAGIC_CMD
14657
14658# Used on cygwin: DLL creation program.
14659DLLTOOL="$DLLTOOL"
14660
14661# Used on cygwin: object dumper.
14662OBJDUMP="$OBJDUMP"
14663
14664# Used on cygwin: assembler.
14665AS="$AS"
14666
14667# The name of the directory that contains temporary libtool files.
14668objdir=$objdir
14669
14670# How to create reloadable object files.
14671reload_flag=$lt_reload_flag
14672reload_cmds=$lt_reload_cmds
14673
14674# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014675wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014676
14677# Object file suffix (normally "o").
14678objext="$ac_objext"
14679
14680# Old archive suffix (normally "a").
14681libext="$libext"
14682
John Criswell47fdd832003-07-14 16:52:07 +000014683# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014684shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014685
John Criswell7a73b802003-06-30 21:59:07 +000014686# Executable file suffix (normally "").
14687exeext="$exeext"
14688
14689# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014690pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014691pic_mode=$pic_mode
14692
John Criswell47fdd832003-07-14 16:52:07 +000014693# What is the maximum length of a command?
14694max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014695
John Criswell47fdd832003-07-14 16:52:07 +000014696# Does compiler simultaneously support -c and -o options?
14697compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014698
14699# Must we lock files when doing compilation ?
14700need_locks=$lt_need_locks
14701
14702# Do we need the lib prefix for modules?
14703need_lib_prefix=$need_lib_prefix
14704
14705# Do we need a version for libraries?
14706need_version=$need_version
14707
14708# Whether dlopen is supported.
14709dlopen_support=$enable_dlopen
14710
14711# Whether dlopen of programs is supported.
14712dlopen_self=$enable_dlopen_self
14713
14714# Whether dlopen of statically linked programs is supported.
14715dlopen_self_static=$enable_dlopen_self_static
14716
14717# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014718link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014719
14720# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014721no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014722
14723# Compiler flag to allow reflexive dlopens.
14724export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14725
14726# Compiler flag to generate shared objects directly from archives.
14727whole_archive_flag_spec=$lt_whole_archive_flag_spec
14728
14729# Compiler flag to generate thread-safe objects.
14730thread_safe_flag_spec=$lt_thread_safe_flag_spec
14731
14732# Library versioning type.
14733version_type=$version_type
14734
14735# Format of library name prefix.
14736libname_spec=$lt_libname_spec
14737
14738# List of archive names. First name is the real one, the rest are links.
14739# The last name is the one that the linker finds with -lNAME.
14740library_names_spec=$lt_library_names_spec
14741
14742# The coded name of the library, if different from the real name.
14743soname_spec=$lt_soname_spec
14744
14745# Commands used to build and install an old-style archive.
14746RANLIB=$lt_RANLIB
14747old_archive_cmds=$lt_old_archive_cmds
14748old_postinstall_cmds=$lt_old_postinstall_cmds
14749old_postuninstall_cmds=$lt_old_postuninstall_cmds
14750
14751# Create an old-style archive from a shared archive.
14752old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14753
14754# Create a temporary old-style archive to link instead of a shared archive.
14755old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14756
14757# Commands used to build and install a shared archive.
14758archive_cmds=$lt_archive_cmds
14759archive_expsym_cmds=$lt_archive_expsym_cmds
14760postinstall_cmds=$lt_postinstall_cmds
14761postuninstall_cmds=$lt_postuninstall_cmds
14762
John Criswell47fdd832003-07-14 16:52:07 +000014763# Commands used to build a loadable module (assumed same as above if empty)
14764module_cmds=$lt_module_cmds
14765module_expsym_cmds=$lt_module_expsym_cmds
14766
John Criswell7a73b802003-06-30 21:59:07 +000014767# Commands to strip libraries.
14768old_striplib=$lt_old_striplib
14769striplib=$lt_striplib
14770
John Criswell47fdd832003-07-14 16:52:07 +000014771# Dependencies to place before the objects being linked to create a
14772# shared library.
14773predep_objects=$lt_predep_objects
14774
14775# Dependencies to place after the objects being linked to create a
14776# shared library.
14777postdep_objects=$lt_postdep_objects
14778
14779# Dependencies to place before the objects being linked to create a
14780# shared library.
14781predeps=$lt_predeps
14782
14783# Dependencies to place after the objects being linked to create a
14784# shared library.
14785postdeps=$lt_postdeps
14786
14787# The library search path used internally by the compiler when linking
14788# a shared library.
14789compiler_lib_search_path=$lt_compiler_lib_search_path
14790
John Criswell7a73b802003-06-30 21:59:07 +000014791# Method to check whether dependent libraries are shared objects.
14792deplibs_check_method=$lt_deplibs_check_method
14793
14794# Command to use when deplibs_check_method == file_magic.
14795file_magic_cmd=$lt_file_magic_cmd
14796
14797# Flag that allows shared libraries with undefined symbols to be built.
14798allow_undefined_flag=$lt_allow_undefined_flag
14799
14800# Flag that forces no undefined symbols.
14801no_undefined_flag=$lt_no_undefined_flag
14802
14803# Commands used to finish a libtool library installation in a directory.
14804finish_cmds=$lt_finish_cmds
14805
14806# Same as above, but a single script fragment to be evaled but not shown.
14807finish_eval=$lt_finish_eval
14808
14809# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000014810global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000014811
14812# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000014813global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000014814
14815# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000014816global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000014817
14818# This is the shared library runtime path variable.
14819runpath_var=$runpath_var
14820
14821# This is the shared library path variable.
14822shlibpath_var=$shlibpath_var
14823
14824# Is shlibpath searched before the hard-coded library search path?
14825shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14826
14827# How to hardcode a shared library path into an executable.
14828hardcode_action=$hardcode_action
14829
14830# Whether we should hardcode library paths into libraries.
14831hardcode_into_libs=$hardcode_into_libs
14832
14833# Flag to hardcode \$libdir into a binary during linking.
14834# This must work even if \$libdir does not exist.
14835hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14836
John Criswell47fdd832003-07-14 16:52:07 +000014837# If ld is used when linking, flag to hardcode \$libdir into
14838# a binary during linking. This must work even if \$libdir does
14839# not exist.
14840hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14841
John Criswell7a73b802003-06-30 21:59:07 +000014842# Whether we need a single -rpath flag with a separated argument.
14843hardcode_libdir_separator=$lt_hardcode_libdir_separator
14844
John Criswell47fdd832003-07-14 16:52:07 +000014845# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000014846# resulting binary.
14847hardcode_direct=$hardcode_direct
14848
14849# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14850# resulting binary.
14851hardcode_minus_L=$hardcode_minus_L
14852
14853# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14854# the resulting binary.
14855hardcode_shlibpath_var=$hardcode_shlibpath_var
14856
John Criswell47fdd832003-07-14 16:52:07 +000014857# Set to yes if building a shared library automatically hardcodes DIR into the library
14858# and all subsequent libraries and executables linked against it.
14859hardcode_automatic=$hardcode_automatic
14860
John Criswell7a73b802003-06-30 21:59:07 +000014861# Variables whose values should be saved in libtool wrapper scripts and
14862# restored at relink time.
14863variables_saved_for_relink="$variables_saved_for_relink"
14864
14865# Whether libtool must link a program against all its dependency libraries.
14866link_all_deplibs=$link_all_deplibs
14867
14868# Compile-time system search path for libraries
14869sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14870
14871# Run-time system search path for libraries
14872sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14873
14874# Fix the shell variable \$srcfile for the compiler.
14875fix_srcfile_path="$fix_srcfile_path"
14876
14877# Set to yes if exported symbols are required.
14878always_export_symbols=$always_export_symbols
14879
14880# The commands to list exported symbols.
14881export_symbols_cmds=$lt_export_symbols_cmds
14882
14883# The commands to extract the exported symbol list from a shared archive.
14884extract_expsyms_cmds=$lt_extract_expsyms_cmds
14885
14886# Symbols that should not be listed in the preloaded symbols.
14887exclude_expsyms=$lt_exclude_expsyms
14888
14889# Symbols that must always be exported.
14890include_expsyms=$lt_include_expsyms
14891
14892# ### END LIBTOOL CONFIG
14893
14894__EOF__
14895
John Criswell47fdd832003-07-14 16:52:07 +000014896
John Criswell7a73b802003-06-30 21:59:07 +000014897 case $host_os in
14898 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000014899 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014900
14901# AIX sometimes has problems with the GCC collect2 program. For some
14902# reason, if we set the COLLECT_NAMES environment variable, the problems
14903# vanish in a puff of smoke.
14904if test "X${COLLECT_NAMES+set}" != Xset; then
14905 COLLECT_NAMES=
14906 export COLLECT_NAMES
14907fi
14908EOF
14909 ;;
14910 esac
14911
John Criswell7a73b802003-06-30 21:59:07 +000014912 # We use sed instead of cat because bash on DJGPP gets confused if
14913 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14914 # text mode, it properly converts lines to CR/LF. This bash problem
14915 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000014916 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000014917
John Criswell47fdd832003-07-14 16:52:07 +000014918 mv -f "$cfgfile" "$ofile" || \
14919 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000014920 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000014921
14922else
14923 # If there is no Makefile yet, we rely on a make rule to execute
14924 # `config.status --recheck' to rerun these tests and create the
14925 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014926 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14927 if test -f "$ltmain_in"; then
14928 test -f Makefile && make "$ltmain"
14929 fi
John Criswell7a73b802003-06-30 21:59:07 +000014930fi
John Criswell7a73b802003-06-30 21:59:07 +000014931
14932
John Criswell47fdd832003-07-14 16:52:07 +000014933ac_ext=c
14934ac_cpp='$CPP $CPPFLAGS'
14935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14937ac_compiler_gnu=$ac_cv_c_compiler_gnu
14938
14939CC="$lt_save_CC"
14940
14941
14942# Check whether --with-tags or --without-tags was given.
14943if test "${with_tags+set}" = set; then
14944 withval="$with_tags"
14945 tagnames="$withval"
14946fi;
14947
14948if test -f "$ltmain" && test -n "$tagnames"; then
14949 if test ! -f "${ofile}"; then
14950 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14951echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14952 fi
14953
14954 if test -z "$LTCC"; then
14955 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14956 if test -z "$LTCC"; then
14957 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14958echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14959 else
14960 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14961echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14962 fi
14963 fi
14964
14965 # Extract list of available tagged configurations in $ofile.
14966 # Note that this assumes the entire list is on one line.
14967 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14968
14969 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14970 for tagname in $tagnames; do
14971 IFS="$lt_save_ifs"
14972 # Check whether tagname contains only valid characters
14973 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14974 "") ;;
14975 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14976echo "$as_me: error: invalid tag name: $tagname" >&2;}
14977 { (exit 1); exit 1; }; }
14978 ;;
14979 esac
14980
14981 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14982 then
14983 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14984echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14985 { (exit 1); exit 1; }; }
14986 fi
14987
14988 # Update the list of available tags.
14989 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014990 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000014991
14992 case $tagname in
14993 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014994 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14995 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14996 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000014997 ac_ext=cc
14998ac_cpp='$CXXCPP $CPPFLAGS'
14999ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15000ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15001ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15002
15003
15004
15005
15006archive_cmds_need_lc_CXX=no
15007allow_undefined_flag_CXX=
15008always_export_symbols_CXX=no
15009archive_expsym_cmds_CXX=
15010export_dynamic_flag_spec_CXX=
15011hardcode_direct_CXX=no
15012hardcode_libdir_flag_spec_CXX=
15013hardcode_libdir_flag_spec_ld_CXX=
15014hardcode_libdir_separator_CXX=
15015hardcode_minus_L_CXX=no
15016hardcode_automatic_CXX=no
15017module_cmds_CXX=
15018module_expsym_cmds_CXX=
15019link_all_deplibs_CXX=unknown
15020old_archive_cmds_CXX=$old_archive_cmds
15021no_undefined_flag_CXX=
15022whole_archive_flag_spec_CXX=
15023enable_shared_with_static_runtimes_CXX=no
15024
15025# Dependencies to place before and after the object being linked:
15026predep_objects_CXX=
15027postdep_objects_CXX=
15028predeps_CXX=
15029postdeps_CXX=
15030compiler_lib_search_path_CXX=
15031
15032# Source file extension for C++ test sources.
15033ac_ext=cc
15034
15035# Object file extension for compiled C++ test sources.
15036objext=o
15037objext_CXX=$objext
15038
15039# Code to be used in simple compile tests
15040lt_simple_compile_test_code="int some_variable = 0;\n"
15041
15042# Code to be used in simple link tests
15043lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15044
15045# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15046
15047# If no C compiler was specified, use CC.
15048LTCC=${LTCC-"$CC"}
15049
15050# Allow CC to be a program name with arguments.
15051compiler=$CC
15052
15053
15054# Allow CC to be a program name with arguments.
15055lt_save_CC=$CC
15056lt_save_LD=$LD
15057lt_save_GCC=$GCC
15058GCC=$GXX
15059lt_save_with_gnu_ld=$with_gnu_ld
15060lt_save_path_LD=$lt_cv_path_LD
15061if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15062 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15063else
15064 unset lt_cv_prog_gnu_ld
15065fi
15066if test -n "${lt_cv_path_LDCXX+set}"; then
15067 lt_cv_path_LD=$lt_cv_path_LDCXX
15068else
15069 unset lt_cv_path_LD
15070fi
15071test -z "${LDCXX+set}" || LD=$LDCXX
15072CC=${CXX-"c++"}
15073compiler=$CC
15074compiler_CXX=$CC
15075cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15076
15077# We don't want -fno-exception wen compiling C++ code, so set the
15078# no_builtin_flag separately
15079if test "$GXX" = yes; then
15080 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15081else
15082 lt_prog_compiler_no_builtin_flag_CXX=
15083fi
15084
15085if test "$GXX" = yes; then
15086 # Set up default GNU C++ configuration
15087
15088
15089# Check whether --with-gnu-ld or --without-gnu-ld was given.
15090if test "${with_gnu_ld+set}" = set; then
15091 withval="$with_gnu_ld"
15092 test "$withval" = no || with_gnu_ld=yes
15093else
15094 with_gnu_ld=no
15095fi;
15096ac_prog=ld
15097if test "$GCC" = yes; then
15098 # Check if gcc -print-prog-name=ld gives a path.
15099 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15100echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15101 case $host in
15102 *-*-mingw*)
15103 # gcc leaves a trailing carriage return which upsets mingw
15104 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15105 *)
15106 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15107 esac
15108 case $ac_prog in
15109 # Accept absolute paths.
15110 [\\/]* | ?:[\\/]*)
15111 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015112 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015113 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15114 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15115 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15116 done
15117 test -z "$LD" && LD="$ac_prog"
15118 ;;
15119 "")
15120 # If it fails, then pretend we aren't using GCC.
15121 ac_prog=ld
15122 ;;
15123 *)
15124 # If it is relative, then search for the first ld in PATH.
15125 with_gnu_ld=unknown
15126 ;;
15127 esac
15128elif test "$with_gnu_ld" = yes; then
15129 echo "$as_me:$LINENO: checking for GNU ld" >&5
15130echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15131else
15132 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15133echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15134fi
15135if test "${lt_cv_path_LD+set}" = set; then
15136 echo $ECHO_N "(cached) $ECHO_C" >&6
15137else
15138 if test -z "$LD"; then
15139 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15140 for ac_dir in $PATH; do
15141 IFS="$lt_save_ifs"
15142 test -z "$ac_dir" && ac_dir=.
15143 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15144 lt_cv_path_LD="$ac_dir/$ac_prog"
15145 # Check to see if the program is GNU ld. I'd rather use --version,
15146 # but apparently some GNU ld's only accept -v.
15147 # Break only if it was the GNU/non-GNU ld that we prefer.
15148 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15149 *GNU* | *'with BFD'*)
15150 test "$with_gnu_ld" != no && break
15151 ;;
15152 *)
15153 test "$with_gnu_ld" != yes && break
15154 ;;
15155 esac
15156 fi
15157 done
15158 IFS="$lt_save_ifs"
15159else
15160 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15161fi
15162fi
15163
15164LD="$lt_cv_path_LD"
15165if test -n "$LD"; then
15166 echo "$as_me:$LINENO: result: $LD" >&5
15167echo "${ECHO_T}$LD" >&6
15168else
15169 echo "$as_me:$LINENO: result: no" >&5
15170echo "${ECHO_T}no" >&6
15171fi
15172test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15173echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15174 { (exit 1); exit 1; }; }
15175echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15176echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15177if test "${lt_cv_prog_gnu_ld+set}" = set; then
15178 echo $ECHO_N "(cached) $ECHO_C" >&6
15179else
15180 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015181case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015182*GNU* | *'with BFD'*)
15183 lt_cv_prog_gnu_ld=yes
15184 ;;
15185*)
15186 lt_cv_prog_gnu_ld=no
15187 ;;
15188esac
15189fi
15190echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15191echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15192with_gnu_ld=$lt_cv_prog_gnu_ld
15193
15194
15195
15196 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15197 # archiving commands below assume that GNU ld is being used.
15198 if test "$with_gnu_ld" = yes; then
15199 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15200 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'
15201
15202 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15203 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15204
15205 # If archive_cmds runs LD, not CC, wlarc should be empty
15206 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15207 # investigate it a little bit more. (MM)
15208 wlarc='${wl}'
15209
15210 # ancient GNU ld didn't support --whole-archive et. al.
15211 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15212 grep 'no-whole-archive' > /dev/null; then
15213 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15214 else
15215 whole_archive_flag_spec_CXX=
15216 fi
15217 else
15218 with_gnu_ld=no
15219 wlarc=
15220
15221 # A generic and very simple default shared library creation
15222 # command for GNU C++ for the case where it uses the native
15223 # linker, instead of GNU ld. If possible, this setting should
15224 # overridden to take advantage of the native linker features on
15225 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015226 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015227 fi
15228
15229 # Commands to make compiler produce verbose output that lists
15230 # what "hidden" libraries, object files and flags are used when
15231 # linking a shared library.
15232 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15233
15234else
15235 GXX=no
15236 with_gnu_ld=no
15237 wlarc=
15238fi
15239
15240# PORTME: fill in a description of your system's C++ link characteristics
15241echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15242echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15243ld_shlibs_CXX=yes
15244case $host_os in
15245 aix3*)
15246 # FIXME: insert proper C++ library support
15247 ld_shlibs_CXX=no
15248 ;;
15249 aix4* | aix5*)
15250 if test "$host_cpu" = ia64; then
15251 # On IA64, the linker does run time linking by default, so we don't
15252 # have to do anything special.
15253 aix_use_runtimelinking=no
15254 exp_sym_flag='-Bexport'
15255 no_entry_flag=""
15256 else
15257 aix_use_runtimelinking=no
15258
15259 # Test if we are trying to use run time linking or normal
15260 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15261 # need to do runtime linking.
15262 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15263 for ld_flag in $LDFLAGS; do
15264 case $ld_flag in
15265 *-brtl*)
15266 aix_use_runtimelinking=yes
15267 break
15268 ;;
15269 esac
15270 done
15271 esac
15272
15273 exp_sym_flag='-bexport'
15274 no_entry_flag='-bnoentry'
15275 fi
15276
15277 # When large executables or shared objects are built, AIX ld can
15278 # have problems creating the table of contents. If linking a library
15279 # or program results in "error TOC overflow" add -mminimal-toc to
15280 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15281 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15282
15283 archive_cmds_CXX=''
15284 hardcode_direct_CXX=yes
15285 hardcode_libdir_separator_CXX=':'
15286 link_all_deplibs_CXX=yes
15287
15288 if test "$GXX" = yes; then
15289 case $host_os in aix4.012|aix4.012.*)
15290 # We only want to do this on AIX 4.2 and lower, the check
15291 # below for broken collect2 doesn't work under 4.3+
15292 collect2name=`${CC} -print-prog-name=collect2`
15293 if test -f "$collect2name" && \
15294 strings "$collect2name" | grep resolve_lib_name >/dev/null
15295 then
15296 # We have reworked collect2
15297 hardcode_direct_CXX=yes
15298 else
15299 # We have old collect2
15300 hardcode_direct_CXX=unsupported
15301 # It fails to find uninstalled libraries when the uninstalled
15302 # path is not listed in the libpath. Setting hardcode_minus_L
15303 # to unsupported forces relinking
15304 hardcode_minus_L_CXX=yes
15305 hardcode_libdir_flag_spec_CXX='-L$libdir'
15306 hardcode_libdir_separator_CXX=
15307 fi
15308 esac
15309 shared_flag='-shared'
15310 else
15311 # not using gcc
15312 if test "$host_cpu" = ia64; then
15313 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15314 # chokes on -Wl,-G. The following line is correct:
15315 shared_flag='-G'
15316 else
15317 if test "$aix_use_runtimelinking" = yes; then
15318 shared_flag='${wl}-G'
15319 else
15320 shared_flag='${wl}-bM:SRE'
15321 fi
15322 fi
15323 fi
15324
15325 # It seems that -bexpall does not export symbols beginning with
15326 # underscore (_), so it is better to generate a list of symbols to export.
15327 always_export_symbols_CXX=yes
15328 if test "$aix_use_runtimelinking" = yes; then
15329 # Warning - without using the other runtime loading flags (-brtl),
15330 # -berok will link without error, but may produce a broken library.
15331 allow_undefined_flag_CXX='-berok'
15332 # Determine the default libpath from the value encoded in an empty executable.
15333 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015334/* confdefs.h. */
15335_ACEOF
15336cat confdefs.h >>conftest.$ac_ext
15337cat >>conftest.$ac_ext <<_ACEOF
15338/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015339
John Criswell47fdd832003-07-14 16:52:07 +000015340int
15341main ()
15342{
15343
15344 ;
15345 return 0;
15346}
15347_ACEOF
15348rm -f conftest.$ac_objext conftest$ac_exeext
15349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015350 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015351 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015352 grep -v '^ *+' conftest.er1 >conftest.err
15353 rm -f conftest.er1
15354 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015357 { ac_try='test -z "$ac_cxx_werror_flag"
15358 || test ! -s conftest.err'
15359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360 (eval $ac_try) 2>&5
15361 ac_status=$?
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); }; } &&
15364 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15366 (eval $ac_try) 2>&5
15367 ac_status=$?
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); }; }; then
15370
15371aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15372}'`
15373# Check for a 64-bit object if we didn't find anything.
15374if 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; }
15375}'`; fi
15376else
15377 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015378sed 's/^/| /' conftest.$ac_ext >&5
15379
John Criswell47fdd832003-07-14 16:52:07 +000015380fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015381rm -f conftest.err conftest.$ac_objext \
15382 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015383if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15384
15385 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15386
15387 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"
15388 else
15389 if test "$host_cpu" = ia64; then
15390 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15391 allow_undefined_flag_CXX="-z nodefs"
15392 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"
15393 else
15394 # Determine the default libpath from the value encoded in an empty executable.
15395 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015396/* confdefs.h. */
15397_ACEOF
15398cat confdefs.h >>conftest.$ac_ext
15399cat >>conftest.$ac_ext <<_ACEOF
15400/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015401
John Criswell47fdd832003-07-14 16:52:07 +000015402int
15403main ()
15404{
15405
15406 ;
15407 return 0;
15408}
15409_ACEOF
15410rm -f conftest.$ac_objext conftest$ac_exeext
15411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015412 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015413 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015414 grep -v '^ *+' conftest.er1 >conftest.err
15415 rm -f conftest.er1
15416 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015419 { ac_try='test -z "$ac_cxx_werror_flag"
15420 || test ! -s conftest.err'
15421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422 (eval $ac_try) 2>&5
15423 ac_status=$?
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; } &&
15426 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428 (eval $ac_try) 2>&5
15429 ac_status=$?
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; }; then
15432
15433aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15434}'`
15435# Check for a 64-bit object if we didn't find anything.
15436if 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; }
15437}'`; fi
15438else
15439 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015440sed 's/^/| /' conftest.$ac_ext >&5
15441
John Criswell47fdd832003-07-14 16:52:07 +000015442fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015443rm -f conftest.err conftest.$ac_objext \
15444 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015445if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15446
15447 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15448 # Warning - without using the other run time loading flags,
15449 # -berok will link without error, but may produce a broken library.
15450 no_undefined_flag_CXX=' ${wl}-bernotok'
15451 allow_undefined_flag_CXX=' ${wl}-berok'
15452 # -bexpall does not export symbols beginning with underscore (_)
15453 always_export_symbols_CXX=yes
15454 # Exported symbols can be pulled into shared objects from archives
15455 whole_archive_flag_spec_CXX=' '
15456 archive_cmds_need_lc_CXX=yes
15457 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015458 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 +000015459 fi
15460 fi
15461 ;;
15462 chorus*)
15463 case $cc_basename in
15464 *)
15465 # FIXME: insert proper C++ library support
15466 ld_shlibs_CXX=no
15467 ;;
15468 esac
15469 ;;
15470
Reid Spencer2706f8c2004-09-19 23:53:36 +000015471
John Criswell47fdd832003-07-14 16:52:07 +000015472 cygwin* | mingw* | pw32*)
15473 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15474 # as there is no search path for DLLs.
15475 hardcode_libdir_flag_spec_CXX='-L$libdir'
15476 allow_undefined_flag_CXX=unsupported
15477 always_export_symbols_CXX=no
15478 enable_shared_with_static_runtimes_CXX=yes
15479
15480 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15481 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'
15482 # If the export-symbols file already is a .def file (1st line
15483 # is EXPORTS), use it as is; otherwise, prepend...
15484 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15485 cp $export_symbols $output_objdir/$soname.def;
15486 else
15487 echo EXPORTS > $output_objdir/$soname.def;
15488 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015489 fi~
15490 $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 +000015491 else
15492 ld_shlibs_CXX=no
15493 fi
15494 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015495 darwin* | rhapsody*)
15496 case "$host_os" in
15497 rhapsody* | darwin1.[012])
15498 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15499 ;;
15500 *) # Darwin 1.3 on
15501 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15502 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15503 else
15504 case ${MACOSX_DEPLOYMENT_TARGET} in
15505 10.[012])
15506 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15507 ;;
15508 10.*)
15509 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15510 ;;
15511 esac
15512 fi
15513 ;;
15514 esac
15515 archive_cmds_need_lc_CXX=no
15516 hardcode_direct_CXX=no
15517 hardcode_automatic_CXX=yes
15518 hardcode_shlibpath_var_CXX=unsupported
15519 whole_archive_flag_spec_CXX=''
15520 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015521
Reid Spencer2706f8c2004-09-19 23:53:36 +000015522 if test "$GXX" = yes ; then
15523 lt_int_apple_cc_single_mod=no
15524 output_verbose_link_cmd='echo'
15525 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15526 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015527 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015528 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015529 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 +000015530 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015531 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 +000015532 fi
15533 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15534 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15535 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015536 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 +000015537 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015538 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 +000015539 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015540 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 +000015541 else
15542 case "$cc_basename" in
15543 xlc*)
15544 output_verbose_link_cmd='echo'
15545 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'
15546 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15547 # 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 +000015548 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}'
15549 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 +000015550 ;;
15551 *)
15552 ld_shlibs_CXX=no
15553 ;;
15554 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015555 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015556 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015557
15558 dgux*)
15559 case $cc_basename in
15560 ec++)
15561 # FIXME: insert proper C++ library support
15562 ld_shlibs_CXX=no
15563 ;;
15564 ghcx)
15565 # Green Hills C++ Compiler
15566 # FIXME: insert proper C++ library support
15567 ld_shlibs_CXX=no
15568 ;;
15569 *)
15570 # FIXME: insert proper C++ library support
15571 ld_shlibs_CXX=no
15572 ;;
15573 esac
15574 ;;
15575 freebsd12*)
15576 # C++ shared libraries reported to be fairly broken before switch to ELF
15577 ld_shlibs_CXX=no
15578 ;;
15579 freebsd-elf*)
15580 archive_cmds_need_lc_CXX=no
15581 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015582 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015583 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15584 # conventions
15585 ld_shlibs_CXX=yes
15586 ;;
15587 gnu*)
15588 ;;
15589 hpux9*)
15590 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15591 hardcode_libdir_separator_CXX=:
15592 export_dynamic_flag_spec_CXX='${wl}-E'
15593 hardcode_direct_CXX=yes
15594 hardcode_minus_L_CXX=yes # Not in the search PATH,
15595 # but as the default
15596 # location of the library.
15597
15598 case $cc_basename in
15599 CC)
15600 # FIXME: insert proper C++ library support
15601 ld_shlibs_CXX=no
15602 ;;
15603 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015604 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 +000015605 # Commands to make compiler produce verbose output that lists
15606 # what "hidden" libraries, object files and flags are used when
15607 # linking a shared library.
15608 #
15609 # There doesn't appear to be a way to prevent this compiler from
15610 # explicitly linking system object files so we need to strip them
15611 # from the output so that they don't get included in the library
15612 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015613 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 +000015614 ;;
15615 *)
15616 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015617 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 +000015618 else
15619 # FIXME: insert proper C++ library support
15620 ld_shlibs_CXX=no
15621 fi
15622 ;;
15623 esac
15624 ;;
15625 hpux10*|hpux11*)
15626 if test $with_gnu_ld = no; then
15627 case "$host_cpu" in
15628 hppa*64*)
15629 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15630 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15631 hardcode_libdir_separator_CXX=:
15632 ;;
15633 ia64*)
15634 hardcode_libdir_flag_spec_CXX='-L$libdir'
15635 ;;
15636 *)
15637 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15638 hardcode_libdir_separator_CXX=:
15639 export_dynamic_flag_spec_CXX='${wl}-E'
15640 ;;
15641 esac
15642 fi
15643 case "$host_cpu" in
15644 hppa*64*)
15645 hardcode_direct_CXX=no
15646 hardcode_shlibpath_var_CXX=no
15647 ;;
15648 ia64*)
15649 hardcode_direct_CXX=no
15650 hardcode_shlibpath_var_CXX=no
15651 hardcode_minus_L_CXX=yes # Not in the search PATH,
15652 # but as the default
15653 # location of the library.
15654 ;;
15655 *)
15656 hardcode_direct_CXX=yes
15657 hardcode_minus_L_CXX=yes # Not in the search PATH,
15658 # but as the default
15659 # location of the library.
15660 ;;
15661 esac
15662
15663 case $cc_basename in
15664 CC)
15665 # FIXME: insert proper C++ library support
15666 ld_shlibs_CXX=no
15667 ;;
15668 aCC)
15669 case "$host_cpu" in
15670 hppa*64*|ia64*)
15671 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15672 ;;
15673 *)
15674 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15675 ;;
15676 esac
15677 # Commands to make compiler produce verbose output that lists
15678 # what "hidden" libraries, object files and flags are used when
15679 # linking a shared library.
15680 #
15681 # There doesn't appear to be a way to prevent this compiler from
15682 # explicitly linking system object files so we need to strip them
15683 # from the output so that they don't get included in the library
15684 # dependencies.
15685 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'
15686 ;;
15687 *)
15688 if test "$GXX" = yes; then
15689 if test $with_gnu_ld = no; then
15690 case "$host_cpu" in
15691 ia64*|hppa*64*)
15692 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15693 ;;
15694 *)
15695 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'
15696 ;;
15697 esac
15698 fi
15699 else
15700 # FIXME: insert proper C++ library support
15701 ld_shlibs_CXX=no
15702 fi
15703 ;;
15704 esac
15705 ;;
15706 irix5* | irix6*)
15707 case $cc_basename in
15708 CC)
15709 # SGI C++
15710 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'
15711
15712 # Archives containing C++ object files must be created using
15713 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15714 # necessary to make sure instantiated templates are included
15715 # in the archive.
15716 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15717 ;;
15718 *)
15719 if test "$GXX" = yes; then
15720 if test "$with_gnu_ld" = no; then
15721 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'
15722 else
15723 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'
15724 fi
15725 fi
15726 link_all_deplibs_CXX=yes
15727 ;;
15728 esac
15729 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15730 hardcode_libdir_separator_CXX=:
15731 ;;
15732 linux*)
15733 case $cc_basename in
15734 KCC)
15735 # Kuck and Associates, Inc. (KAI) C++ Compiler
15736
15737 # KCC will only create a shared library if the output file
15738 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15739 # to its proper name (with version) after linking.
15740 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'
15741 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'
15742 # Commands to make compiler produce verbose output that lists
15743 # what "hidden" libraries, object files and flags are used when
15744 # linking a shared library.
15745 #
15746 # There doesn't appear to be a way to prevent this compiler from
15747 # explicitly linking system object files so we need to strip them
15748 # from the output so that they don't get included in the library
15749 # dependencies.
15750 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'
15751
15752 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15753 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15754
15755 # Archives containing C++ object files must be created using
15756 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15757 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15758 ;;
15759 icpc)
15760 # Intel C++
15761 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015762 # version 8.0 and above of icpc choke on multiply defined symbols
15763 # if we add $predep_objects and $postdep_objects, however 7.1 and
15764 # earlier do not add the objects themselves.
15765 case `$CC -V 2>&1` in
15766 *"Version 7."*)
15767 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15768 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'
15769 ;;
15770 *) # Version 8.0 or newer
15771 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15772 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15773 ;;
15774 esac
John Criswell47fdd832003-07-14 16:52:07 +000015775 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000015776 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15777 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15778 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15779 ;;
15780 cxx)
15781 # Compaq C++
15782 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15783 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'
15784
15785 runpath_var=LD_RUN_PATH
15786 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15787 hardcode_libdir_separator_CXX=:
15788
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 -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'
15798 ;;
15799 esac
15800 ;;
15801 lynxos*)
15802 # FIXME: insert proper C++ library support
15803 ld_shlibs_CXX=no
15804 ;;
15805 m88k*)
15806 # FIXME: insert proper C++ library support
15807 ld_shlibs_CXX=no
15808 ;;
15809 mvs*)
15810 case $cc_basename in
15811 cxx)
15812 # FIXME: insert proper C++ library support
15813 ld_shlibs_CXX=no
15814 ;;
15815 *)
15816 # FIXME: insert proper C++ library support
15817 ld_shlibs_CXX=no
15818 ;;
15819 esac
15820 ;;
15821 netbsd*)
15822 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15823 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15824 wlarc=
15825 hardcode_libdir_flag_spec_CXX='-R$libdir'
15826 hardcode_direct_CXX=yes
15827 hardcode_shlibpath_var_CXX=no
15828 fi
15829 # Workaround some broken pre-1.5 toolchains
15830 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15831 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015832 openbsd2*)
15833 # C++ shared libraries are fairly broken
15834 ld_shlibs_CXX=no
15835 ;;
15836 openbsd*)
15837 hardcode_direct_CXX=yes
15838 hardcode_shlibpath_var_CXX=no
15839 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15840 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15841 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15842 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15843 export_dynamic_flag_spec_CXX='${wl}-E'
15844 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15845 fi
15846 output_verbose_link_cmd='echo'
15847 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015848 osf3*)
15849 case $cc_basename in
15850 KCC)
15851 # Kuck and Associates, Inc. (KAI) C++ Compiler
15852
15853 # KCC will only create a shared library if the output file
15854 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15855 # to its proper name (with version) after linking.
15856 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'
15857
15858 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15859 hardcode_libdir_separator_CXX=:
15860
15861 # Archives containing C++ object files must be created using
15862 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15863 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15864
15865 ;;
15866 RCC)
15867 # Rational C++ 2.4.1
15868 # FIXME: insert proper C++ library support
15869 ld_shlibs_CXX=no
15870 ;;
15871 cxx)
15872 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15873 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'
15874
15875 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15876 hardcode_libdir_separator_CXX=:
15877
15878 # Commands to make compiler produce verbose output that lists
15879 # what "hidden" libraries, object files and flags are used when
15880 # linking a shared library.
15881 #
15882 # There doesn't appear to be a way to prevent this compiler from
15883 # explicitly linking system object files so we need to strip them
15884 # from the output so that they don't get included in the library
15885 # dependencies.
15886 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'
15887 ;;
15888 *)
15889 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15890 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15891 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'
15892
15893 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15894 hardcode_libdir_separator_CXX=:
15895
15896 # Commands to make compiler produce verbose output that lists
15897 # what "hidden" libraries, object files and flags are used when
15898 # linking a shared library.
15899 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15900
15901 else
15902 # FIXME: insert proper C++ library support
15903 ld_shlibs_CXX=no
15904 fi
15905 ;;
15906 esac
15907 ;;
15908 osf4* | osf5*)
15909 case $cc_basename in
15910 KCC)
15911 # Kuck and Associates, Inc. (KAI) C++ Compiler
15912
15913 # KCC will only create a shared library if the output file
15914 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15915 # to its proper name (with version) after linking.
15916 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'
15917
15918 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15919 hardcode_libdir_separator_CXX=:
15920
15921 # Archives containing C++ object files must be created using
15922 # the KAI C++ compiler.
15923 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15924 ;;
15925 RCC)
15926 # Rational C++ 2.4.1
15927 # FIXME: insert proper C++ library support
15928 ld_shlibs_CXX=no
15929 ;;
15930 cxx)
15931 allow_undefined_flag_CXX=' -expect_unresolved \*'
15932 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 +000015933 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15934 echo "-hidden">> $lib.exp~
15935 $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~
15936 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000015937
15938 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15939 hardcode_libdir_separator_CXX=:
15940
15941 # Commands to make compiler produce verbose output that lists
15942 # what "hidden" libraries, object files and flags are used when
15943 # linking a shared library.
15944 #
15945 # There doesn't appear to be a way to prevent this compiler from
15946 # explicitly linking system object files so we need to strip them
15947 # from the output so that they don't get included in the library
15948 # dependencies.
15949 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'
15950 ;;
15951 *)
15952 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15953 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15954 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'
15955
15956 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15957 hardcode_libdir_separator_CXX=:
15958
15959 # Commands to make compiler produce verbose output that lists
15960 # what "hidden" libraries, object files and flags are used when
15961 # linking a shared library.
15962 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15963
15964 else
15965 # FIXME: insert proper C++ library support
15966 ld_shlibs_CXX=no
15967 fi
15968 ;;
15969 esac
15970 ;;
15971 psos*)
15972 # FIXME: insert proper C++ library support
15973 ld_shlibs_CXX=no
15974 ;;
15975 sco*)
15976 archive_cmds_need_lc_CXX=no
15977 case $cc_basename in
15978 CC)
15979 # FIXME: insert proper C++ library support
15980 ld_shlibs_CXX=no
15981 ;;
15982 *)
15983 # FIXME: insert proper C++ library support
15984 ld_shlibs_CXX=no
15985 ;;
15986 esac
15987 ;;
15988 sunos4*)
15989 case $cc_basename in
15990 CC)
15991 # Sun C++ 4.x
15992 # FIXME: insert proper C++ library support
15993 ld_shlibs_CXX=no
15994 ;;
15995 lcc)
15996 # Lucid
15997 # FIXME: insert proper C++ library support
15998 ld_shlibs_CXX=no
15999 ;;
16000 *)
16001 # FIXME: insert proper C++ library support
16002 ld_shlibs_CXX=no
16003 ;;
16004 esac
16005 ;;
16006 solaris*)
16007 case $cc_basename in
16008 CC)
16009 # Sun C++ 4.2, 5.x and Centerline C++
16010 no_undefined_flag_CXX=' -zdefs'
16011 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 +000016012 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16013 $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 +000016014
16015 hardcode_libdir_flag_spec_CXX='-R$libdir'
16016 hardcode_shlibpath_var_CXX=no
16017 case $host_os in
16018 solaris2.0-5 | solaris2.0-5.*) ;;
16019 *)
16020 # The C++ compiler is used as linker so we must use $wl
16021 # flag to pass the commands to the underlying system
16022 # linker.
16023 # Supported since Solaris 2.6 (maybe 2.5.1?)
16024 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16025 ;;
16026 esac
16027 link_all_deplibs_CXX=yes
16028
16029 # Commands to make compiler produce verbose output that lists
16030 # what "hidden" libraries, object files and flags are used when
16031 # linking a shared library.
16032 #
16033 # There doesn't appear to be a way to prevent this compiler from
16034 # explicitly linking system object files so we need to strip them
16035 # from the output so that they don't get included in the library
16036 # dependencies.
16037 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'
16038
16039 # Archives containing C++ object files must be created using
16040 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16041 # necessary to make sure instantiated templates are included
16042 # in the archive.
16043 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16044 ;;
16045 gcx)
16046 # Green Hills C++ Compiler
16047 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16048
16049 # The C++ compiler must be used to create the archive.
16050 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16051 ;;
16052 *)
16053 # GNU C++ compiler with Solaris linker
16054 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16055 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16056 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016057 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 +000016058 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16059 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16060
John Criswell47fdd832003-07-14 16:52:07 +000016061 # Commands to make compiler produce verbose output that lists
16062 # what "hidden" libraries, object files and flags are used when
16063 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016064 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016065 else
16066 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16067 # platform.
16068 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 +000016069 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16070 $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 +000016071
16072 # Commands to make compiler produce verbose output that lists
16073 # what "hidden" libraries, object files and flags are used when
16074 # linking a shared library.
16075 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16076 fi
16077
16078 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16079 fi
16080 ;;
16081 esac
16082 ;;
16083 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16084 archive_cmds_need_lc_CXX=no
16085 ;;
16086 tandem*)
16087 case $cc_basename in
16088 NCC)
16089 # NonStop-UX NCC 3.20
16090 # FIXME: insert proper C++ library support
16091 ld_shlibs_CXX=no
16092 ;;
16093 *)
16094 # FIXME: insert proper C++ library support
16095 ld_shlibs_CXX=no
16096 ;;
16097 esac
16098 ;;
16099 vxworks*)
16100 # FIXME: insert proper C++ library support
16101 ld_shlibs_CXX=no
16102 ;;
16103 *)
16104 # FIXME: insert proper C++ library support
16105 ld_shlibs_CXX=no
16106 ;;
16107esac
16108echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16109echo "${ECHO_T}$ld_shlibs_CXX" >&6
16110test "$ld_shlibs_CXX" = no && can_build_shared=no
16111
16112GCC_CXX="$GXX"
16113LD_CXX="$LD"
16114
John Criswell47fdd832003-07-14 16:52:07 +000016115
16116cat > conftest.$ac_ext <<EOF
16117class Foo
16118{
16119public:
16120 Foo (void) { a = 0; }
16121private:
16122 int a;
16123};
16124EOF
16125
16126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16127 (eval $ac_compile) 2>&5
16128 ac_status=$?
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; then
16131 # Parse the compiler output and extract the necessary
16132 # objects, libraries and library flags.
16133
16134 # Sentinel used to keep track of whether or not we are before
16135 # the conftest object file.
16136 pre_test_object_deps_done=no
16137
16138 # The `*' in the case matches for architectures that use `case' in
16139 # $output_verbose_cmd can trigger glob expansion during the loop
16140 # eval without this substitution.
16141 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16142
16143 for p in `eval $output_verbose_link_cmd`; do
16144 case $p in
16145
16146 -L* | -R* | -l*)
16147 # Some compilers place space between "-{L,R}" and the path.
16148 # Remove the space.
16149 if test $p = "-L" \
16150 || test $p = "-R"; then
16151 prev=$p
16152 continue
16153 else
16154 prev=
16155 fi
16156
16157 if test "$pre_test_object_deps_done" = no; then
16158 case $p in
16159 -L* | -R*)
16160 # Internal compiler library paths should come after those
16161 # provided the user. The postdeps already come after the
16162 # user supplied libs so there is no need to process them.
16163 if test -z "$compiler_lib_search_path_CXX"; then
16164 compiler_lib_search_path_CXX="${prev}${p}"
16165 else
16166 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16167 fi
16168 ;;
16169 # The "-l" case would never come before the object being
16170 # linked, so don't bother handling this case.
16171 esac
16172 else
16173 if test -z "$postdeps_CXX"; then
16174 postdeps_CXX="${prev}${p}"
16175 else
16176 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16177 fi
16178 fi
16179 ;;
16180
16181 *.$objext)
16182 # This assumes that the test object file only shows up
16183 # once in the compiler output.
16184 if test "$p" = "conftest.$objext"; then
16185 pre_test_object_deps_done=yes
16186 continue
16187 fi
16188
16189 if test "$pre_test_object_deps_done" = no; then
16190 if test -z "$predep_objects_CXX"; then
16191 predep_objects_CXX="$p"
16192 else
16193 predep_objects_CXX="$predep_objects_CXX $p"
16194 fi
16195 else
16196 if test -z "$postdep_objects_CXX"; then
16197 postdep_objects_CXX="$p"
16198 else
16199 postdep_objects_CXX="$postdep_objects_CXX $p"
16200 fi
16201 fi
16202 ;;
16203
16204 *) ;; # Ignore the rest.
16205
16206 esac
16207 done
16208
16209 # Clean up.
16210 rm -f a.out a.exe
16211else
16212 echo "libtool.m4: error: problem compiling CXX test program"
16213fi
16214
16215$rm -f confest.$objext
16216
16217case " $postdeps_CXX " in
16218*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16219esac
16220
16221lt_prog_compiler_wl_CXX=
16222lt_prog_compiler_pic_CXX=
16223lt_prog_compiler_static_CXX=
16224
16225echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16226echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16227
16228 # C++ specific cases for pic, static, wl, etc.
16229 if test "$GXX" = yes; then
16230 lt_prog_compiler_wl_CXX='-Wl,'
16231 lt_prog_compiler_static_CXX='-static'
16232
16233 case $host_os in
16234 aix*)
16235 # All AIX code is PIC.
16236 if test "$host_cpu" = ia64; then
16237 # AIX 5 now supports IA64 processor
16238 lt_prog_compiler_static_CXX='-Bstatic'
16239 fi
16240 ;;
16241 amigaos*)
16242 # FIXME: we need at least 68020 code to build shared libraries, but
16243 # adding the `-m68020' flag to GCC prevents building anything better,
16244 # like `-m68040'.
16245 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16246 ;;
16247 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16248 # PIC is the default for these OSes.
16249 ;;
16250 mingw* | os2* | pw32*)
16251 # This hack is so that the source file can tell whether it is being
16252 # built for inclusion in a dll (and should export symbols for example).
16253 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16254 ;;
16255 darwin* | rhapsody*)
16256 # PIC is the default on this platform
16257 # Common symbols not allowed in MH_DYLIB files
16258 lt_prog_compiler_pic_CXX='-fno-common'
16259 ;;
16260 *djgpp*)
16261 # DJGPP does not support shared libraries at all
16262 lt_prog_compiler_pic_CXX=
16263 ;;
16264 sysv4*MP*)
16265 if test -d /usr/nec; then
16266 lt_prog_compiler_pic_CXX=-Kconform_pic
16267 fi
16268 ;;
16269 hpux*)
16270 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16271 # not for PA HP-UX.
16272 case "$host_cpu" in
16273 hppa*64*|ia64*)
16274 ;;
16275 *)
16276 lt_prog_compiler_pic_CXX='-fPIC'
16277 ;;
16278 esac
16279 ;;
16280 *)
16281 lt_prog_compiler_pic_CXX='-fPIC'
16282 ;;
16283 esac
16284 else
16285 case $host_os in
16286 aix4* | aix5*)
16287 # All AIX code is PIC.
16288 if test "$host_cpu" = ia64; then
16289 # AIX 5 now supports IA64 processor
16290 lt_prog_compiler_static_CXX='-Bstatic'
16291 else
16292 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16293 fi
16294 ;;
16295 chorus*)
16296 case $cc_basename in
16297 cxch68)
16298 # Green Hills C++ Compiler
16299 # _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"
16300 ;;
16301 esac
16302 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016303 darwin*)
16304 # PIC is the default on this platform
16305 # Common symbols not allowed in MH_DYLIB files
16306 case "$cc_basename" in
16307 xlc*)
16308 lt_prog_compiler_pic_CXX='-qnocommon'
16309 lt_prog_compiler_wl_CXX='-Wl,'
16310 ;;
16311 esac
16312 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016313 dgux*)
16314 case $cc_basename in
16315 ec++)
16316 lt_prog_compiler_pic_CXX='-KPIC'
16317 ;;
16318 ghcx)
16319 # Green Hills C++ Compiler
16320 lt_prog_compiler_pic_CXX='-pic'
16321 ;;
16322 *)
16323 ;;
16324 esac
16325 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016326 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016327 # FreeBSD uses GNU C++
16328 ;;
16329 hpux9* | hpux10* | hpux11*)
16330 case $cc_basename in
16331 CC)
16332 lt_prog_compiler_wl_CXX='-Wl,'
16333 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16334 if test "$host_cpu" != ia64; then
16335 lt_prog_compiler_pic_CXX='+Z'
16336 fi
16337 ;;
16338 aCC)
16339 lt_prog_compiler_wl_CXX='-Wl,'
16340 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16341 case "$host_cpu" in
16342 hppa*64*|ia64*)
16343 # +Z the default
16344 ;;
16345 *)
16346 lt_prog_compiler_pic_CXX='+Z'
16347 ;;
16348 esac
16349 ;;
16350 *)
16351 ;;
16352 esac
16353 ;;
16354 irix5* | irix6* | nonstopux*)
16355 case $cc_basename in
16356 CC)
16357 lt_prog_compiler_wl_CXX='-Wl,'
16358 lt_prog_compiler_static_CXX='-non_shared'
16359 # CC pic flag -KPIC is the default.
16360 ;;
16361 *)
16362 ;;
16363 esac
16364 ;;
16365 linux*)
16366 case $cc_basename in
16367 KCC)
16368 # KAI C++ Compiler
16369 lt_prog_compiler_wl_CXX='--backend -Wl,'
16370 lt_prog_compiler_pic_CXX='-fPIC'
16371 ;;
16372 icpc)
16373 # Intel C++
16374 lt_prog_compiler_wl_CXX='-Wl,'
16375 lt_prog_compiler_pic_CXX='-KPIC'
16376 lt_prog_compiler_static_CXX='-static'
16377 ;;
16378 cxx)
16379 # Compaq C++
16380 # Make sure the PIC flag is empty. It appears that all Alpha
16381 # Linux and Compaq Tru64 Unix objects are PIC.
16382 lt_prog_compiler_pic_CXX=
16383 lt_prog_compiler_static_CXX='-non_shared'
16384 ;;
16385 *)
16386 ;;
16387 esac
16388 ;;
16389 lynxos*)
16390 ;;
16391 m88k*)
16392 ;;
16393 mvs*)
16394 case $cc_basename in
16395 cxx)
16396 lt_prog_compiler_pic_CXX='-W c,exportall'
16397 ;;
16398 *)
16399 ;;
16400 esac
16401 ;;
16402 netbsd*)
16403 ;;
16404 osf3* | osf4* | osf5*)
16405 case $cc_basename in
16406 KCC)
16407 lt_prog_compiler_wl_CXX='--backend -Wl,'
16408 ;;
16409 RCC)
16410 # Rational C++ 2.4.1
16411 lt_prog_compiler_pic_CXX='-pic'
16412 ;;
16413 cxx)
16414 # Digital/Compaq C++
16415 lt_prog_compiler_wl_CXX='-Wl,'
16416 # Make sure the PIC flag is empty. It appears that all Alpha
16417 # Linux and Compaq Tru64 Unix objects are PIC.
16418 lt_prog_compiler_pic_CXX=
16419 lt_prog_compiler_static_CXX='-non_shared'
16420 ;;
16421 *)
16422 ;;
16423 esac
16424 ;;
16425 psos*)
16426 ;;
16427 sco*)
16428 case $cc_basename in
16429 CC)
16430 lt_prog_compiler_pic_CXX='-fPIC'
16431 ;;
16432 *)
16433 ;;
16434 esac
16435 ;;
16436 solaris*)
16437 case $cc_basename in
16438 CC)
16439 # Sun C++ 4.2, 5.x and Centerline C++
16440 lt_prog_compiler_pic_CXX='-KPIC'
16441 lt_prog_compiler_static_CXX='-Bstatic'
16442 lt_prog_compiler_wl_CXX='-Qoption ld '
16443 ;;
16444 gcx)
16445 # Green Hills C++ Compiler
16446 lt_prog_compiler_pic_CXX='-PIC'
16447 ;;
16448 *)
16449 ;;
16450 esac
16451 ;;
16452 sunos4*)
16453 case $cc_basename in
16454 CC)
16455 # Sun C++ 4.x
16456 lt_prog_compiler_pic_CXX='-pic'
16457 lt_prog_compiler_static_CXX='-Bstatic'
16458 ;;
16459 lcc)
16460 # Lucid
16461 lt_prog_compiler_pic_CXX='-pic'
16462 ;;
16463 *)
16464 ;;
16465 esac
16466 ;;
16467 tandem*)
16468 case $cc_basename in
16469 NCC)
16470 # NonStop-UX NCC 3.20
16471 lt_prog_compiler_pic_CXX='-KPIC'
16472 ;;
16473 *)
16474 ;;
16475 esac
16476 ;;
16477 unixware*)
16478 ;;
16479 vxworks*)
16480 ;;
16481 *)
16482 lt_prog_compiler_can_build_shared_CXX=no
16483 ;;
16484 esac
16485 fi
16486
16487echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16488echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16489
16490#
16491# Check to make sure the PIC flag actually works.
16492#
16493if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016494
16495echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016496echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16497if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16499else
16500 lt_prog_compiler_pic_works_CXX=no
16501 ac_outfile=conftest.$ac_objext
16502 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16503 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16504 # Insert the option either (1) after the last *FLAGS variable, or
16505 # (2) before a word containing "conftest.", or (3) at the end.
16506 # Note that $ac_compile itself does not contain backslashes and begins
16507 # with a dollar sign (not a hyphen), so the echo should work correctly.
16508 # The option is referenced via a variable to avoid confusing sed.
16509 lt_compile=`echo "$ac_compile" | $SED \
16510 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16512 -e 's:$: $lt_compiler_flag:'`
Reid Spencer0fcb9412004-11-30 08:11:54 +000016513 (eval echo "\"\$as_me:16513: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016514 (eval "$lt_compile" 2>conftest.err)
16515 ac_status=$?
16516 cat conftest.err >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +000016517 echo "$as_me:16517: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016518 if (exit $ac_status) && test -s "$ac_outfile"; then
16519 # The compiler can only warn and ignore the option if not recognized
16520 # So say no if there are warnings
16521 if test ! -s conftest.err; then
16522 lt_prog_compiler_pic_works_CXX=yes
16523 fi
16524 fi
16525 $rm conftest*
16526
16527fi
16528echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16529echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16530
16531if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16532 case $lt_prog_compiler_pic_CXX in
16533 "" | " "*) ;;
16534 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16535 esac
16536else
16537 lt_prog_compiler_pic_CXX=
16538 lt_prog_compiler_can_build_shared_CXX=no
16539fi
16540
16541fi
16542case "$host_os" in
16543 # For platforms which do not support PIC, -DPIC is meaningless:
16544 *djgpp*)
16545 lt_prog_compiler_pic_CXX=
16546 ;;
16547 *)
16548 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16549 ;;
16550esac
16551
16552echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16553echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16554if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16555 echo $ECHO_N "(cached) $ECHO_C" >&6
16556else
16557 lt_cv_prog_compiler_c_o_CXX=no
16558 $rm -r conftest 2>/dev/null
16559 mkdir conftest
16560 cd conftest
16561 mkdir out
16562 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16563
John Criswell47fdd832003-07-14 16:52:07 +000016564 lt_compiler_flag="-o out/conftest2.$ac_objext"
16565 # Insert the option either (1) after the last *FLAGS variable, or
16566 # (2) before a word containing "conftest.", or (3) at the end.
16567 # Note that $ac_compile itself does not contain backslashes and begins
16568 # with a dollar sign (not a hyphen), so the echo should work correctly.
16569 lt_compile=`echo "$ac_compile" | $SED \
16570 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16572 -e 's:$: $lt_compiler_flag:'`
Reid Spencer0fcb9412004-11-30 08:11:54 +000016573 (eval echo "\"\$as_me:16573: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016574 (eval "$lt_compile" 2>out/conftest.err)
16575 ac_status=$?
16576 cat out/conftest.err >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +000016577 echo "$as_me:16577: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016578 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16579 then
16580 # The compiler can only warn and ignore the option if not recognized
16581 # So say no if there are warnings
16582 if test ! -s out/conftest.err; then
16583 lt_cv_prog_compiler_c_o_CXX=yes
16584 fi
16585 fi
16586 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016587 $rm conftest*
16588 # SGI C++ compiler will create directory out/ii_files/ for
16589 # template instantiation
16590 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16591 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016592 cd ..
16593 rmdir conftest
16594 $rm conftest*
16595
16596fi
16597echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16598echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16599
16600
16601hard_links="nottested"
16602if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16603 # do not overwrite the value of need_locks provided by the user
16604 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16605echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16606 hard_links=yes
16607 $rm conftest*
16608 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16609 touch conftest.a
16610 ln conftest.a conftest.b 2>&5 || hard_links=no
16611 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16612 echo "$as_me:$LINENO: result: $hard_links" >&5
16613echo "${ECHO_T}$hard_links" >&6
16614 if test "$hard_links" = no; then
16615 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16616echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16617 need_locks=warn
16618 fi
16619else
16620 need_locks=no
16621fi
16622
16623echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16624echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16625
16626 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16627 case $host_os in
16628 aix4* | aix5*)
16629 # If we're using GNU nm, then we don't want the "-C" option.
16630 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16631 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16632 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'
16633 else
16634 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'
16635 fi
16636 ;;
16637 pw32*)
16638 export_symbols_cmds_CXX="$ltdll_cmds"
16639 ;;
16640 cygwin* | mingw*)
16641 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16642 ;;
16643 *)
16644 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16645 ;;
16646 esac
16647
16648echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16649echo "${ECHO_T}$ld_shlibs_CXX" >&6
16650test "$ld_shlibs_CXX" = no && can_build_shared=no
16651
16652variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16653if test "$GCC" = yes; then
16654 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16655fi
16656
16657#
16658# Do we need to explicitly link libc?
16659#
16660case "x$archive_cmds_need_lc_CXX" in
16661x|xyes)
16662 # Assume -lc should be added
16663 archive_cmds_need_lc_CXX=yes
16664
16665 if test "$enable_shared" = yes && test "$GCC" = yes; then
16666 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016667 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016668 # FIXME: we may have to deal with multi-command sequences.
16669 ;;
16670 '$CC '*)
16671 # Test whether the compiler implicitly links with -lc since on some
16672 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16673 # to ld, don't add -lc before -lgcc.
16674 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16675echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16676 $rm conftest*
16677 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16678
16679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16680 (eval $ac_compile) 2>&5
16681 ac_status=$?
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); } 2>conftest.err; then
16684 soname=conftest
16685 lib=conftest
16686 libobjs=conftest.$ac_objext
16687 deplibs=
16688 wl=$lt_prog_compiler_wl_CXX
16689 compiler_flags=-v
16690 linker_flags=-v
16691 verstring=
16692 output_objdir=.
16693 libname=conftest
16694 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16695 allow_undefined_flag_CXX=
16696 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16697 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16698 ac_status=$?
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }
16701 then
16702 archive_cmds_need_lc_CXX=no
16703 else
16704 archive_cmds_need_lc_CXX=yes
16705 fi
16706 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16707 else
16708 cat conftest.err 1>&5
16709 fi
16710 $rm conftest*
16711 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16712echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16713 ;;
16714 esac
16715 fi
16716 ;;
16717esac
16718
John Criswell47fdd832003-07-14 16:52:07 +000016719echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16720echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16721library_names_spec=
16722libname_spec='lib$name'
16723soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016724shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016725postinstall_cmds=
16726postuninstall_cmds=
16727finish_cmds=
16728finish_eval=
16729shlibpath_var=
16730shlibpath_overrides_runpath=unknown
16731version_type=none
16732dynamic_linker="$host_os ld.so"
16733sys_lib_dlsearch_path_spec="/lib /usr/lib"
16734if test "$GCC" = yes; then
16735 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16736 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16737 # if the path contains ";" then we assume it to be the separator
16738 # otherwise default to the standard path separator (i.e. ":") - it is
16739 # assumed that no part of a normal pathname contains ";" but that should
16740 # okay in the real world where ";" in dirpaths is itself problematic.
16741 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16742 else
16743 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16744 fi
16745else
16746 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16747fi
16748need_lib_prefix=unknown
16749hardcode_into_libs=no
16750
16751# when you set need_version to no, make sure it does not cause -set_version
16752# flags to be left without arguments
16753need_version=unknown
16754
16755case $host_os in
16756aix3*)
16757 version_type=linux
16758 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16759 shlibpath_var=LIBPATH
16760
16761 # AIX 3 has no versioning support, so we append a major version to the name.
16762 soname_spec='${libname}${release}${shared_ext}$major'
16763 ;;
16764
16765aix4* | aix5*)
16766 version_type=linux
16767 need_lib_prefix=no
16768 need_version=no
16769 hardcode_into_libs=yes
16770 if test "$host_cpu" = ia64; then
16771 # AIX 5 supports IA64
16772 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16773 shlibpath_var=LD_LIBRARY_PATH
16774 else
16775 # With GCC up to 2.95.x, collect2 would create an import file
16776 # for dependence libraries. The import file would start with
16777 # the line `#! .'. This would cause the generated library to
16778 # depend on `.', always an invalid library. This was fixed in
16779 # development snapshots of GCC prior to 3.0.
16780 case $host_os in
16781 aix4 | aix4.[01] | aix4.[01].*)
16782 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16783 echo ' yes '
16784 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16785 :
16786 else
16787 can_build_shared=no
16788 fi
16789 ;;
16790 esac
16791 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16792 # soname into executable. Probably we can add versioning support to
16793 # collect2, so additional links can be useful in future.
16794 if test "$aix_use_runtimelinking" = yes; then
16795 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16796 # instead of lib<name>.a to let people know that these are not
16797 # typical AIX shared libraries.
16798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16799 else
16800 # We preserve .a as extension for shared libraries through AIX4.2
16801 # and later when we are not doing run time linking.
16802 library_names_spec='${libname}${release}.a $libname.a'
16803 soname_spec='${libname}${release}${shared_ext}$major'
16804 fi
16805 shlibpath_var=LIBPATH
16806 fi
16807 ;;
16808
16809amigaos*)
16810 library_names_spec='$libname.ixlibrary $libname.a'
16811 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016812 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 +000016813 ;;
16814
16815beos*)
16816 library_names_spec='${libname}${shared_ext}'
16817 dynamic_linker="$host_os ld.so"
16818 shlibpath_var=LIBRARY_PATH
16819 ;;
16820
Reid Spencer2706f8c2004-09-19 23:53:36 +000016821bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016822 version_type=linux
16823 need_version=no
16824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16825 soname_spec='${libname}${release}${shared_ext}$major'
16826 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16827 shlibpath_var=LD_LIBRARY_PATH
16828 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16829 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16830 # the default ld.so.conf also contains /usr/contrib/lib and
16831 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16832 # libtool to hard-code these into programs
16833 ;;
16834
16835cygwin* | mingw* | pw32*)
16836 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016837 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016838 need_version=no
16839 need_lib_prefix=no
16840
16841 case $GCC,$host_os in
16842 yes,cygwin* | yes,mingw* | yes,pw32*)
16843 library_names_spec='$libname.dll.a'
16844 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016845 postinstall_cmds='base_file=`basename \${file}`~
16846 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16847 dldir=$destdir/`dirname \$dlpath`~
16848 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000016849 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016850 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16851 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000016852 $rm \$dlpath'
16853 shlibpath_overrides_runpath=yes
16854
16855 case $host_os in
16856 cygwin*)
16857 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16858 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 +000016859 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016860 ;;
16861 mingw*)
16862 # MinGW DLLs use traditional 'lib' prefix
16863 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16864 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16865 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16866 # It is most probably a Windows format PATH printed by
16867 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16868 # path with ; separators, and with drive letters. We can handle the
16869 # drive letters (cygwin fileutils understands them), so leave them,
16870 # especially as we might pass files found there to a mingw objdump,
16871 # which wouldn't understand a cygwinified path. Ahh.
16872 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16873 else
16874 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16875 fi
16876 ;;
16877 pw32*)
16878 # pw32 DLLs use 'pw' prefix rather than 'lib'
16879 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16880 ;;
16881 esac
16882 ;;
16883
16884 *)
16885 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16886 ;;
16887 esac
16888 dynamic_linker='Win32 ld.exe'
16889 # FIXME: first we should search . and the directory the executable is in
16890 shlibpath_var=PATH
16891 ;;
16892
16893darwin* | rhapsody*)
16894 dynamic_linker="$host_os dyld"
16895 version_type=darwin
16896 need_lib_prefix=no
16897 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016898 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016899 soname_spec='${libname}${release}${major}$shared_ext'
16900 shlibpath_overrides_runpath=yes
16901 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000016902 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000016903 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016904 if test "$GCC" = yes; then
16905 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"`
16906 else
16907 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016908 fi
16909 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16910 ;;
16911
16912dgux*)
16913 version_type=linux
16914 need_lib_prefix=no
16915 need_version=no
16916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16917 soname_spec='${libname}${release}${shared_ext}$major'
16918 shlibpath_var=LD_LIBRARY_PATH
16919 ;;
16920
16921freebsd1*)
16922 dynamic_linker=no
16923 ;;
16924
Reid Spencer2706f8c2004-09-19 23:53:36 +000016925kfreebsd*-gnu)
16926 version_type=linux
16927 need_lib_prefix=no
16928 need_version=no
16929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16930 soname_spec='${libname}${release}${shared_ext}$major'
16931 shlibpath_var=LD_LIBRARY_PATH
16932 shlibpath_overrides_runpath=no
16933 hardcode_into_libs=yes
16934 dynamic_linker='GNU ld.so'
16935 ;;
16936
John Criswell47fdd832003-07-14 16:52:07 +000016937freebsd*)
16938 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16939 version_type=freebsd-$objformat
16940 case $version_type in
16941 freebsd-elf*)
16942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16943 need_version=no
16944 need_lib_prefix=no
16945 ;;
16946 freebsd-*)
16947 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16948 need_version=yes
16949 ;;
16950 esac
16951 shlibpath_var=LD_LIBRARY_PATH
16952 case $host_os in
16953 freebsd2*)
16954 shlibpath_overrides_runpath=yes
16955 ;;
16956 freebsd3.01* | freebsdelf3.01*)
16957 shlibpath_overrides_runpath=yes
16958 hardcode_into_libs=yes
16959 ;;
16960 *) # from 3.2 on
16961 shlibpath_overrides_runpath=no
16962 hardcode_into_libs=yes
16963 ;;
16964 esac
16965 ;;
16966
16967gnu*)
16968 version_type=linux
16969 need_lib_prefix=no
16970 need_version=no
16971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16972 soname_spec='${libname}${release}${shared_ext}$major'
16973 shlibpath_var=LD_LIBRARY_PATH
16974 hardcode_into_libs=yes
16975 ;;
16976
16977hpux9* | hpux10* | hpux11*)
16978 # Give a soname corresponding to the major version so that dld.sl refuses to
16979 # link against other versions.
16980 version_type=sunos
16981 need_lib_prefix=no
16982 need_version=no
16983 case "$host_cpu" in
16984 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016985 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016986 hardcode_into_libs=yes
16987 dynamic_linker="$host_os dld.so"
16988 shlibpath_var=LD_LIBRARY_PATH
16989 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16991 soname_spec='${libname}${release}${shared_ext}$major'
16992 if test "X$HPUX_IA64_MODE" = X32; then
16993 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16994 else
16995 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16996 fi
16997 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16998 ;;
16999 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017000 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017001 hardcode_into_libs=yes
17002 dynamic_linker="$host_os dld.sl"
17003 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17004 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17006 soname_spec='${libname}${release}${shared_ext}$major'
17007 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17008 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17009 ;;
17010 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017011 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017012 dynamic_linker="$host_os dld.sl"
17013 shlibpath_var=SHLIB_PATH
17014 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17016 soname_spec='${libname}${release}${shared_ext}$major'
17017 ;;
17018 esac
17019 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17020 postinstall_cmds='chmod 555 $lib'
17021 ;;
17022
17023irix5* | irix6* | nonstopux*)
17024 case $host_os in
17025 nonstopux*) version_type=nonstopux ;;
17026 *)
17027 if test "$lt_cv_prog_gnu_ld" = yes; then
17028 version_type=linux
17029 else
17030 version_type=irix
17031 fi ;;
17032 esac
17033 need_lib_prefix=no
17034 need_version=no
17035 soname_spec='${libname}${release}${shared_ext}$major'
17036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17037 case $host_os in
17038 irix5* | nonstopux*)
17039 libsuff= shlibsuff=
17040 ;;
17041 *)
17042 case $LD in # libtool.m4 will add one of these switches to LD
17043 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17044 libsuff= shlibsuff= libmagic=32-bit;;
17045 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17046 libsuff=32 shlibsuff=N32 libmagic=N32;;
17047 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17048 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17049 *) libsuff= shlibsuff= libmagic=never-match;;
17050 esac
17051 ;;
17052 esac
17053 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17054 shlibpath_overrides_runpath=no
17055 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17056 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17057 hardcode_into_libs=yes
17058 ;;
17059
17060# No shared lib support for Linux oldld, aout, or coff.
17061linux*oldld* | linux*aout* | linux*coff*)
17062 dynamic_linker=no
17063 ;;
17064
17065# This must be Linux ELF.
17066linux*)
17067 version_type=linux
17068 need_lib_prefix=no
17069 need_version=no
17070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17071 soname_spec='${libname}${release}${shared_ext}$major'
17072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17073 shlibpath_var=LD_LIBRARY_PATH
17074 shlibpath_overrides_runpath=no
17075 # This implies no fast_install, which is unacceptable.
17076 # Some rework will be needed to allow for fast_install
17077 # before this can be enabled.
17078 hardcode_into_libs=yes
17079
Reid Spencer2706f8c2004-09-19 23:53:36 +000017080 # Append ld.so.conf contents to the search path
17081 if test -f /etc/ld.so.conf; then
17082 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17083 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17084 fi
17085
John Criswell47fdd832003-07-14 16:52:07 +000017086 # We used to test for /lib/ld.so.1 and disable shared libraries on
17087 # powerpc, because MkLinux only supported shared libraries with the
17088 # GNU dynamic linker. Since this was broken with cross compilers,
17089 # most powerpc-linux boxes support dynamic linking these days and
17090 # people can always --disable-shared, the test was removed, and we
17091 # assume the GNU/Linux dynamic linker is in use.
17092 dynamic_linker='GNU/Linux ld.so'
17093 ;;
17094
Reid Spencer2706f8c2004-09-19 23:53:36 +000017095knetbsd*-gnu)
17096 version_type=linux
17097 need_lib_prefix=no
17098 need_version=no
17099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17100 soname_spec='${libname}${release}${shared_ext}$major'
17101 shlibpath_var=LD_LIBRARY_PATH
17102 shlibpath_overrides_runpath=no
17103 hardcode_into_libs=yes
17104 dynamic_linker='GNU ld.so'
17105 ;;
17106
John Criswell47fdd832003-07-14 16:52:07 +000017107netbsd*)
17108 version_type=sunos
17109 need_lib_prefix=no
17110 need_version=no
17111 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17114 dynamic_linker='NetBSD (a.out) ld.so'
17115 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017117 soname_spec='${libname}${release}${shared_ext}$major'
17118 dynamic_linker='NetBSD ld.elf_so'
17119 fi
17120 shlibpath_var=LD_LIBRARY_PATH
17121 shlibpath_overrides_runpath=yes
17122 hardcode_into_libs=yes
17123 ;;
17124
17125newsos6)
17126 version_type=linux
17127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128 shlibpath_var=LD_LIBRARY_PATH
17129 shlibpath_overrides_runpath=yes
17130 ;;
17131
Reid Spencer2706f8c2004-09-19 23:53:36 +000017132nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017133 version_type=linux
17134 need_lib_prefix=no
17135 need_version=no
17136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17137 soname_spec='${libname}${release}${shared_ext}$major'
17138 shlibpath_var=LD_LIBRARY_PATH
17139 shlibpath_overrides_runpath=yes
17140 ;;
17141
17142openbsd*)
17143 version_type=sunos
17144 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017145 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17148 shlibpath_var=LD_LIBRARY_PATH
17149 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17150 case $host_os in
17151 openbsd2.[89] | openbsd2.[89].*)
17152 shlibpath_overrides_runpath=no
17153 ;;
17154 *)
17155 shlibpath_overrides_runpath=yes
17156 ;;
17157 esac
17158 else
17159 shlibpath_overrides_runpath=yes
17160 fi
17161 ;;
17162
17163os2*)
17164 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017165 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017166 need_lib_prefix=no
17167 library_names_spec='$libname${shared_ext} $libname.a'
17168 dynamic_linker='OS/2 ld.exe'
17169 shlibpath_var=LIBPATH
17170 ;;
17171
17172osf3* | osf4* | osf5*)
17173 version_type=osf
17174 need_lib_prefix=no
17175 need_version=no
17176 soname_spec='${libname}${release}${shared_ext}$major'
17177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17178 shlibpath_var=LD_LIBRARY_PATH
17179 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17180 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17181 ;;
17182
17183sco3.2v5*)
17184 version_type=osf
17185 soname_spec='${libname}${release}${shared_ext}$major'
17186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17187 shlibpath_var=LD_LIBRARY_PATH
17188 ;;
17189
17190solaris*)
17191 version_type=linux
17192 need_lib_prefix=no
17193 need_version=no
17194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17195 soname_spec='${libname}${release}${shared_ext}$major'
17196 shlibpath_var=LD_LIBRARY_PATH
17197 shlibpath_overrides_runpath=yes
17198 hardcode_into_libs=yes
17199 # ldd complains unless libraries are executable
17200 postinstall_cmds='chmod +x $lib'
17201 ;;
17202
17203sunos4*)
17204 version_type=sunos
17205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17206 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17207 shlibpath_var=LD_LIBRARY_PATH
17208 shlibpath_overrides_runpath=yes
17209 if test "$with_gnu_ld" = yes; then
17210 need_lib_prefix=no
17211 fi
17212 need_version=yes
17213 ;;
17214
17215sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17216 version_type=linux
17217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17218 soname_spec='${libname}${release}${shared_ext}$major'
17219 shlibpath_var=LD_LIBRARY_PATH
17220 case $host_vendor in
17221 sni)
17222 shlibpath_overrides_runpath=no
17223 need_lib_prefix=no
17224 export_dynamic_flag_spec='${wl}-Blargedynsym'
17225 runpath_var=LD_RUN_PATH
17226 ;;
17227 siemens)
17228 need_lib_prefix=no
17229 ;;
17230 motorola)
17231 need_lib_prefix=no
17232 need_version=no
17233 shlibpath_overrides_runpath=no
17234 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17235 ;;
17236 esac
17237 ;;
17238
17239sysv4*MP*)
17240 if test -d /usr/nec ;then
17241 version_type=linux
17242 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17243 soname_spec='$libname${shared_ext}.$major'
17244 shlibpath_var=LD_LIBRARY_PATH
17245 fi
17246 ;;
17247
17248uts4*)
17249 version_type=linux
17250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17251 soname_spec='${libname}${release}${shared_ext}$major'
17252 shlibpath_var=LD_LIBRARY_PATH
17253 ;;
17254
17255*)
17256 dynamic_linker=no
17257 ;;
17258esac
17259echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17260echo "${ECHO_T}$dynamic_linker" >&6
17261test "$dynamic_linker" = no && can_build_shared=no
17262
Reid Spencer2706f8c2004-09-19 23:53:36 +000017263echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17264echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17265hardcode_action_CXX=
17266if test -n "$hardcode_libdir_flag_spec_CXX" || \
17267 test -n "$runpath_var_CXX" || \
17268 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17269
17270 # We can hardcode non-existant directories.
17271 if test "$hardcode_direct_CXX" != no &&
17272 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17273 # have to relink, otherwise we might link with an installed library
17274 # when we should be linking with a yet-to-be-installed one
17275 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17276 test "$hardcode_minus_L_CXX" != no; then
17277 # Linking always hardcodes the temporary library directory.
17278 hardcode_action_CXX=relink
17279 else
17280 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17281 hardcode_action_CXX=immediate
17282 fi
17283else
17284 # We cannot hardcode anything, or else we can only hardcode existing
17285 # directories.
17286 hardcode_action_CXX=unsupported
17287fi
17288echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17289echo "${ECHO_T}$hardcode_action_CXX" >&6
17290
17291if test "$hardcode_action_CXX" = relink; then
17292 # Fast installation is not supported
17293 enable_fast_install=no
17294elif test "$shlibpath_overrides_runpath" = yes ||
17295 test "$enable_shared" = no; then
17296 # Fast installation is not necessary
17297 enable_fast_install=needless
17298fi
17299
17300striplib=
17301old_striplib=
17302echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17303echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17304if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17305 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17306 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17307 echo "$as_me:$LINENO: result: yes" >&5
17308echo "${ECHO_T}yes" >&6
17309else
17310# FIXME - insert some real tests, host_os isn't really good enough
17311 case $host_os in
17312 darwin*)
17313 if test -n "$STRIP" ; then
17314 striplib="$STRIP -x"
17315 echo "$as_me:$LINENO: result: yes" >&5
17316echo "${ECHO_T}yes" >&6
17317 else
17318 echo "$as_me:$LINENO: result: no" >&5
17319echo "${ECHO_T}no" >&6
17320fi
17321 ;;
17322 *)
17323 echo "$as_me:$LINENO: result: no" >&5
17324echo "${ECHO_T}no" >&6
17325 ;;
17326 esac
17327fi
17328
John Criswell47fdd832003-07-14 16:52:07 +000017329if test "x$enable_dlopen" != xyes; then
17330 enable_dlopen=unknown
17331 enable_dlopen_self=unknown
17332 enable_dlopen_self_static=unknown
17333else
17334 lt_cv_dlopen=no
17335 lt_cv_dlopen_libs=
17336
17337 case $host_os in
17338 beos*)
17339 lt_cv_dlopen="load_add_on"
17340 lt_cv_dlopen_libs=
17341 lt_cv_dlopen_self=yes
17342 ;;
17343
17344 mingw* | pw32*)
17345 lt_cv_dlopen="LoadLibrary"
17346 lt_cv_dlopen_libs=
17347 ;;
17348
17349 cygwin*)
17350 lt_cv_dlopen="dlopen"
17351 lt_cv_dlopen_libs=
17352 ;;
17353
17354 darwin*)
17355 # if libdl is installed we need to link against it
17356 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17357echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17358if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17359 echo $ECHO_N "(cached) $ECHO_C" >&6
17360else
17361 ac_check_lib_save_LIBS=$LIBS
17362LIBS="-ldl $LIBS"
17363cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017364/* confdefs.h. */
17365_ACEOF
17366cat confdefs.h >>conftest.$ac_ext
17367cat >>conftest.$ac_ext <<_ACEOF
17368/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017369
17370/* Override any gcc2 internal prototype to avoid an error. */
17371#ifdef __cplusplus
17372extern "C"
17373#endif
17374/* We use char because int might match the return type of a gcc2
17375 builtin and then its argument prototype would still apply. */
17376char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017377int
17378main ()
17379{
17380dlopen ();
17381 ;
17382 return 0;
17383}
17384_ACEOF
17385rm -f conftest.$ac_objext conftest$ac_exeext
17386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017387 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017388 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017389 grep -v '^ *+' conftest.er1 >conftest.err
17390 rm -f conftest.er1
17391 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017394 { ac_try='test -z "$ac_cxx_werror_flag"
17395 || test ! -s conftest.err'
17396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17397 (eval $ac_try) 2>&5
17398 ac_status=$?
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); }; } &&
17401 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403 (eval $ac_try) 2>&5
17404 ac_status=$?
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; }; then
17407 ac_cv_lib_dl_dlopen=yes
17408else
17409 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017410sed 's/^/| /' conftest.$ac_ext >&5
17411
John Criswell47fdd832003-07-14 16:52:07 +000017412ac_cv_lib_dl_dlopen=no
17413fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017414rm -f conftest.err conftest.$ac_objext \
17415 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017416LIBS=$ac_check_lib_save_LIBS
17417fi
17418echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17419echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17420if test $ac_cv_lib_dl_dlopen = yes; then
17421 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17422else
17423
17424 lt_cv_dlopen="dyld"
17425 lt_cv_dlopen_libs=
17426 lt_cv_dlopen_self=yes
17427
17428fi
17429
17430 ;;
17431
17432 *)
17433 echo "$as_me:$LINENO: checking for shl_load" >&5
17434echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17435if test "${ac_cv_func_shl_load+set}" = set; then
17436 echo $ECHO_N "(cached) $ECHO_C" >&6
17437else
17438 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017439/* confdefs.h. */
17440_ACEOF
17441cat confdefs.h >>conftest.$ac_ext
17442cat >>conftest.$ac_ext <<_ACEOF
17443/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017444/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17446#define shl_load innocuous_shl_load
17447
John Criswell47fdd832003-07-14 16:52:07 +000017448/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017449 which can conflict with char shl_load (); below.
17450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17451 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017452
John Criswell0c38eaf2003-09-10 15:17:25 +000017453#ifdef __STDC__
17454# include <limits.h>
17455#else
17456# include <assert.h>
17457#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017458
17459#undef shl_load
17460
John Criswell47fdd832003-07-14 16:52:07 +000017461/* Override any gcc2 internal prototype to avoid an error. */
17462#ifdef __cplusplus
17463extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017464{
John Criswell47fdd832003-07-14 16:52:07 +000017465#endif
17466/* We use char because int might match the return type of a gcc2
17467 builtin and then its argument prototype would still apply. */
17468char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017469/* The GNU C library defines this for functions which it implements
17470 to always fail with ENOSYS. Some functions are actually named
17471 something starting with __ and the normal name is an alias. */
17472#if defined (__stub_shl_load) || defined (__stub___shl_load)
17473choke me
17474#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017475char (*f) () = shl_load;
17476#endif
17477#ifdef __cplusplus
17478}
John Criswell47fdd832003-07-14 16:52:07 +000017479#endif
17480
John Criswell0c38eaf2003-09-10 15:17:25 +000017481int
17482main ()
17483{
17484return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017485 ;
17486 return 0;
17487}
17488_ACEOF
17489rm -f conftest.$ac_objext conftest$ac_exeext
17490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017491 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017492 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017493 grep -v '^ *+' conftest.er1 >conftest.err
17494 rm -f conftest.er1
17495 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017498 { ac_try='test -z "$ac_cxx_werror_flag"
17499 || test ! -s conftest.err'
17500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17501 (eval $ac_try) 2>&5
17502 ac_status=$?
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); }; } &&
17505 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507 (eval $ac_try) 2>&5
17508 ac_status=$?
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; }; then
17511 ac_cv_func_shl_load=yes
17512else
17513 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017514sed 's/^/| /' conftest.$ac_ext >&5
17515
John Criswell47fdd832003-07-14 16:52:07 +000017516ac_cv_func_shl_load=no
17517fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017518rm -f conftest.err conftest.$ac_objext \
17519 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017520fi
17521echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17522echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17523if test $ac_cv_func_shl_load = yes; then
17524 lt_cv_dlopen="shl_load"
17525else
17526 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17527echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17528if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17529 echo $ECHO_N "(cached) $ECHO_C" >&6
17530else
17531 ac_check_lib_save_LIBS=$LIBS
17532LIBS="-ldld $LIBS"
17533cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017534/* confdefs.h. */
17535_ACEOF
17536cat confdefs.h >>conftest.$ac_ext
17537cat >>conftest.$ac_ext <<_ACEOF
17538/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017539
17540/* Override any gcc2 internal prototype to avoid an error. */
17541#ifdef __cplusplus
17542extern "C"
17543#endif
17544/* We use char because int might match the return type of a gcc2
17545 builtin and then its argument prototype would still apply. */
17546char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017547int
17548main ()
17549{
17550shl_load ();
17551 ;
17552 return 0;
17553}
17554_ACEOF
17555rm -f conftest.$ac_objext conftest$ac_exeext
17556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017557 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017558 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017559 grep -v '^ *+' conftest.er1 >conftest.err
17560 rm -f conftest.er1
17561 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017564 { ac_try='test -z "$ac_cxx_werror_flag"
17565 || test ! -s conftest.err'
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17568 ac_status=$?
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; } &&
17571 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17574 ac_status=$?
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; }; then
17577 ac_cv_lib_dld_shl_load=yes
17578else
17579 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017580sed 's/^/| /' conftest.$ac_ext >&5
17581
John Criswell47fdd832003-07-14 16:52:07 +000017582ac_cv_lib_dld_shl_load=no
17583fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017584rm -f conftest.err conftest.$ac_objext \
17585 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017586LIBS=$ac_check_lib_save_LIBS
17587fi
17588echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17589echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17590if test $ac_cv_lib_dld_shl_load = yes; then
17591 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17592else
17593 echo "$as_me:$LINENO: checking for dlopen" >&5
17594echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17595if test "${ac_cv_func_dlopen+set}" = set; then
17596 echo $ECHO_N "(cached) $ECHO_C" >&6
17597else
17598 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017599/* confdefs.h. */
17600_ACEOF
17601cat confdefs.h >>conftest.$ac_ext
17602cat >>conftest.$ac_ext <<_ACEOF
17603/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017604/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17606#define dlopen innocuous_dlopen
17607
John Criswell47fdd832003-07-14 16:52:07 +000017608/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017609 which can conflict with char dlopen (); below.
17610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17611 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017612
John Criswell0c38eaf2003-09-10 15:17:25 +000017613#ifdef __STDC__
17614# include <limits.h>
17615#else
17616# include <assert.h>
17617#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017618
17619#undef dlopen
17620
John Criswell47fdd832003-07-14 16:52:07 +000017621/* Override any gcc2 internal prototype to avoid an error. */
17622#ifdef __cplusplus
17623extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017624{
John Criswell47fdd832003-07-14 16:52:07 +000017625#endif
17626/* We use char because int might match the return type of a gcc2
17627 builtin and then its argument prototype would still apply. */
17628char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017629/* The GNU C library defines this for functions which it implements
17630 to always fail with ENOSYS. Some functions are actually named
17631 something starting with __ and the normal name is an alias. */
17632#if defined (__stub_dlopen) || defined (__stub___dlopen)
17633choke me
17634#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017635char (*f) () = dlopen;
17636#endif
17637#ifdef __cplusplus
17638}
John Criswell47fdd832003-07-14 16:52:07 +000017639#endif
17640
John Criswell0c38eaf2003-09-10 15:17:25 +000017641int
17642main ()
17643{
17644return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017645 ;
17646 return 0;
17647}
17648_ACEOF
17649rm -f conftest.$ac_objext conftest$ac_exeext
17650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017651 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017652 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017653 grep -v '^ *+' conftest.er1 >conftest.err
17654 rm -f conftest.er1
17655 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017658 { ac_try='test -z "$ac_cxx_werror_flag"
17659 || test ! -s conftest.err'
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; } &&
17665 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667 (eval $ac_try) 2>&5
17668 ac_status=$?
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; }; then
17671 ac_cv_func_dlopen=yes
17672else
17673 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017674sed 's/^/| /' conftest.$ac_ext >&5
17675
John Criswell47fdd832003-07-14 16:52:07 +000017676ac_cv_func_dlopen=no
17677fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017678rm -f conftest.err conftest.$ac_objext \
17679 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017680fi
17681echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17682echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17683if test $ac_cv_func_dlopen = yes; then
17684 lt_cv_dlopen="dlopen"
17685else
17686 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17687echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17688if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17689 echo $ECHO_N "(cached) $ECHO_C" >&6
17690else
17691 ac_check_lib_save_LIBS=$LIBS
17692LIBS="-ldl $LIBS"
17693cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017694/* confdefs.h. */
17695_ACEOF
17696cat confdefs.h >>conftest.$ac_ext
17697cat >>conftest.$ac_ext <<_ACEOF
17698/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017699
17700/* Override any gcc2 internal prototype to avoid an error. */
17701#ifdef __cplusplus
17702extern "C"
17703#endif
17704/* We use char because int might match the return type of a gcc2
17705 builtin and then its argument prototype would still apply. */
17706char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017707int
17708main ()
17709{
17710dlopen ();
17711 ;
17712 return 0;
17713}
17714_ACEOF
17715rm -f conftest.$ac_objext conftest$ac_exeext
17716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017717 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017718 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017719 grep -v '^ *+' conftest.er1 >conftest.err
17720 rm -f conftest.er1
17721 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017724 { ac_try='test -z "$ac_cxx_werror_flag"
17725 || test ! -s conftest.err'
17726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17727 (eval $ac_try) 2>&5
17728 ac_status=$?
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; } &&
17731 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17733 (eval $ac_try) 2>&5
17734 ac_status=$?
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); }; }; then
17737 ac_cv_lib_dl_dlopen=yes
17738else
17739 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017740sed 's/^/| /' conftest.$ac_ext >&5
17741
John Criswell47fdd832003-07-14 16:52:07 +000017742ac_cv_lib_dl_dlopen=no
17743fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017744rm -f conftest.err conftest.$ac_objext \
17745 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017746LIBS=$ac_check_lib_save_LIBS
17747fi
17748echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17749echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17750if test $ac_cv_lib_dl_dlopen = yes; then
17751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17752else
17753 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17754echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17755if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17756 echo $ECHO_N "(cached) $ECHO_C" >&6
17757else
17758 ac_check_lib_save_LIBS=$LIBS
17759LIBS="-lsvld $LIBS"
17760cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017761/* confdefs.h. */
17762_ACEOF
17763cat confdefs.h >>conftest.$ac_ext
17764cat >>conftest.$ac_ext <<_ACEOF
17765/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017766
17767/* Override any gcc2 internal prototype to avoid an error. */
17768#ifdef __cplusplus
17769extern "C"
17770#endif
17771/* We use char because int might match the return type of a gcc2
17772 builtin and then its argument prototype would still apply. */
17773char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017774int
17775main ()
17776{
17777dlopen ();
17778 ;
17779 return 0;
17780}
17781_ACEOF
17782rm -f conftest.$ac_objext conftest$ac_exeext
17783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017784 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017785 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017786 grep -v '^ *+' conftest.er1 >conftest.err
17787 rm -f conftest.er1
17788 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017791 { ac_try='test -z "$ac_cxx_werror_flag"
17792 || test ! -s conftest.err'
17793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17794 (eval $ac_try) 2>&5
17795 ac_status=$?
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); }; } &&
17798 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17800 (eval $ac_try) 2>&5
17801 ac_status=$?
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); }; }; then
17804 ac_cv_lib_svld_dlopen=yes
17805else
17806 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017807sed 's/^/| /' conftest.$ac_ext >&5
17808
John Criswell47fdd832003-07-14 16:52:07 +000017809ac_cv_lib_svld_dlopen=no
17810fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017811rm -f conftest.err conftest.$ac_objext \
17812 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017813LIBS=$ac_check_lib_save_LIBS
17814fi
17815echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17816echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17817if test $ac_cv_lib_svld_dlopen = yes; then
17818 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17819else
17820 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17821echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17822if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17823 echo $ECHO_N "(cached) $ECHO_C" >&6
17824else
17825 ac_check_lib_save_LIBS=$LIBS
17826LIBS="-ldld $LIBS"
17827cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017828/* confdefs.h. */
17829_ACEOF
17830cat confdefs.h >>conftest.$ac_ext
17831cat >>conftest.$ac_ext <<_ACEOF
17832/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017833
17834/* Override any gcc2 internal prototype to avoid an error. */
17835#ifdef __cplusplus
17836extern "C"
17837#endif
17838/* We use char because int might match the return type of a gcc2
17839 builtin and then its argument prototype would still apply. */
17840char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017841int
17842main ()
17843{
17844dld_link ();
17845 ;
17846 return 0;
17847}
17848_ACEOF
17849rm -f conftest.$ac_objext conftest$ac_exeext
17850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017851 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017852 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017853 grep -v '^ *+' conftest.er1 >conftest.err
17854 rm -f conftest.er1
17855 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017858 { ac_try='test -z "$ac_cxx_werror_flag"
17859 || test ! -s conftest.err'
17860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17861 (eval $ac_try) 2>&5
17862 ac_status=$?
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; } &&
17865 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867 (eval $ac_try) 2>&5
17868 ac_status=$?
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); }; }; then
17871 ac_cv_lib_dld_dld_link=yes
17872else
17873 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017874sed 's/^/| /' conftest.$ac_ext >&5
17875
John Criswell47fdd832003-07-14 16:52:07 +000017876ac_cv_lib_dld_dld_link=no
17877fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017878rm -f conftest.err conftest.$ac_objext \
17879 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017880LIBS=$ac_check_lib_save_LIBS
17881fi
17882echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17883echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17884if test $ac_cv_lib_dld_dld_link = yes; then
17885 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17886fi
17887
17888
17889fi
17890
17891
17892fi
17893
17894
17895fi
17896
17897
17898fi
17899
17900
17901fi
17902
17903 ;;
17904 esac
17905
17906 if test "x$lt_cv_dlopen" != xno; then
17907 enable_dlopen=yes
17908 else
17909 enable_dlopen=no
17910 fi
17911
17912 case $lt_cv_dlopen in
17913 dlopen)
17914 save_CPPFLAGS="$CPPFLAGS"
17915 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17916
17917 save_LDFLAGS="$LDFLAGS"
17918 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17919
17920 save_LIBS="$LIBS"
17921 LIBS="$lt_cv_dlopen_libs $LIBS"
17922
17923 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17924echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17925if test "${lt_cv_dlopen_self+set}" = set; then
17926 echo $ECHO_N "(cached) $ECHO_C" >&6
17927else
17928 if test "$cross_compiling" = yes; then :
17929 lt_cv_dlopen_self=cross
17930else
17931 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17932 lt_status=$lt_dlunknown
17933 cat > conftest.$ac_ext <<EOF
Reid Spencer0fcb9412004-11-30 08:11:54 +000017934#line 17934 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017935#include "confdefs.h"
17936
17937#if HAVE_DLFCN_H
17938#include <dlfcn.h>
17939#endif
17940
17941#include <stdio.h>
17942
17943#ifdef RTLD_GLOBAL
17944# define LT_DLGLOBAL RTLD_GLOBAL
17945#else
17946# ifdef DL_GLOBAL
17947# define LT_DLGLOBAL DL_GLOBAL
17948# else
17949# define LT_DLGLOBAL 0
17950# endif
17951#endif
17952
17953/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17954 find out it does not work in some platform. */
17955#ifndef LT_DLLAZY_OR_NOW
17956# ifdef RTLD_LAZY
17957# define LT_DLLAZY_OR_NOW RTLD_LAZY
17958# else
17959# ifdef DL_LAZY
17960# define LT_DLLAZY_OR_NOW DL_LAZY
17961# else
17962# ifdef RTLD_NOW
17963# define LT_DLLAZY_OR_NOW RTLD_NOW
17964# else
17965# ifdef DL_NOW
17966# define LT_DLLAZY_OR_NOW DL_NOW
17967# else
17968# define LT_DLLAZY_OR_NOW 0
17969# endif
17970# endif
17971# endif
17972# endif
17973#endif
17974
17975#ifdef __cplusplus
17976extern "C" void exit (int);
17977#endif
17978
17979void fnord() { int i=42;}
17980int main ()
17981{
17982 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17983 int status = $lt_dlunknown;
17984
17985 if (self)
17986 {
17987 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17988 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17989 /* dlclose (self); */
17990 }
17991
17992 exit (status);
17993}
17994EOF
17995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17996 (eval $ac_link) 2>&5
17997 ac_status=$?
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18000 (./conftest; exit; ) 2>/dev/null
18001 lt_status=$?
18002 case x$lt_status in
18003 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18004 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18005 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18006 esac
18007 else :
18008 # compilation failed
18009 lt_cv_dlopen_self=no
18010 fi
18011fi
18012rm -fr conftest*
18013
18014
18015fi
18016echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18017echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18018
18019 if test "x$lt_cv_dlopen_self" = xyes; then
18020 LDFLAGS="$LDFLAGS $link_static_flag"
18021 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18022echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18023if test "${lt_cv_dlopen_self_static+set}" = set; then
18024 echo $ECHO_N "(cached) $ECHO_C" >&6
18025else
18026 if test "$cross_compiling" = yes; then :
18027 lt_cv_dlopen_self_static=cross
18028else
18029 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18030 lt_status=$lt_dlunknown
18031 cat > conftest.$ac_ext <<EOF
Reid Spencer0fcb9412004-11-30 08:11:54 +000018032#line 18032 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018033#include "confdefs.h"
18034
18035#if HAVE_DLFCN_H
18036#include <dlfcn.h>
18037#endif
18038
18039#include <stdio.h>
18040
18041#ifdef RTLD_GLOBAL
18042# define LT_DLGLOBAL RTLD_GLOBAL
18043#else
18044# ifdef DL_GLOBAL
18045# define LT_DLGLOBAL DL_GLOBAL
18046# else
18047# define LT_DLGLOBAL 0
18048# endif
18049#endif
18050
18051/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18052 find out it does not work in some platform. */
18053#ifndef LT_DLLAZY_OR_NOW
18054# ifdef RTLD_LAZY
18055# define LT_DLLAZY_OR_NOW RTLD_LAZY
18056# else
18057# ifdef DL_LAZY
18058# define LT_DLLAZY_OR_NOW DL_LAZY
18059# else
18060# ifdef RTLD_NOW
18061# define LT_DLLAZY_OR_NOW RTLD_NOW
18062# else
18063# ifdef DL_NOW
18064# define LT_DLLAZY_OR_NOW DL_NOW
18065# else
18066# define LT_DLLAZY_OR_NOW 0
18067# endif
18068# endif
18069# endif
18070# endif
18071#endif
18072
18073#ifdef __cplusplus
18074extern "C" void exit (int);
18075#endif
18076
18077void fnord() { int i=42;}
18078int main ()
18079{
18080 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18081 int status = $lt_dlunknown;
18082
18083 if (self)
18084 {
18085 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18086 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18087 /* dlclose (self); */
18088 }
18089
18090 exit (status);
18091}
18092EOF
18093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18094 (eval $ac_link) 2>&5
18095 ac_status=$?
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18098 (./conftest; exit; ) 2>/dev/null
18099 lt_status=$?
18100 case x$lt_status in
18101 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18102 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18103 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18104 esac
18105 else :
18106 # compilation failed
18107 lt_cv_dlopen_self_static=no
18108 fi
18109fi
18110rm -fr conftest*
18111
18112
18113fi
18114echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18115echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18116 fi
18117
18118 CPPFLAGS="$save_CPPFLAGS"
18119 LDFLAGS="$save_LDFLAGS"
18120 LIBS="$save_LIBS"
18121 ;;
18122 esac
18123
18124 case $lt_cv_dlopen_self in
18125 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18126 *) enable_dlopen_self=unknown ;;
18127 esac
18128
18129 case $lt_cv_dlopen_self_static in
18130 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18131 *) enable_dlopen_self_static=unknown ;;
18132 esac
18133fi
18134
18135
18136# The else clause should only fire when bootstrapping the
18137# libtool distribution, otherwise you forgot to ship ltmain.sh
18138# with your package, and you will get complaints that there are
18139# no rules to generate ltmain.sh.
18140if test -f "$ltmain"; then
18141 # See if we are running on zsh, and set the options which allow our commands through
18142 # without removal of \ escapes.
18143 if test -n "${ZSH_VERSION+set}" ; then
18144 setopt NO_GLOB_SUBST
18145 fi
18146 # Now quote all the things that may contain metacharacters while being
18147 # careful not to overquote the AC_SUBSTed values. We take copies of the
18148 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018149 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18150 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018151 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18152 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18153 deplibs_check_method reload_flag reload_cmds need_locks \
18154 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18155 lt_cv_sys_global_symbol_to_c_name_address \
18156 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18157 old_postinstall_cmds old_postuninstall_cmds \
18158 compiler_CXX \
18159 CC_CXX \
18160 LD_CXX \
18161 lt_prog_compiler_wl_CXX \
18162 lt_prog_compiler_pic_CXX \
18163 lt_prog_compiler_static_CXX \
18164 lt_prog_compiler_no_builtin_flag_CXX \
18165 export_dynamic_flag_spec_CXX \
18166 thread_safe_flag_spec_CXX \
18167 whole_archive_flag_spec_CXX \
18168 enable_shared_with_static_runtimes_CXX \
18169 old_archive_cmds_CXX \
18170 old_archive_from_new_cmds_CXX \
18171 predep_objects_CXX \
18172 postdep_objects_CXX \
18173 predeps_CXX \
18174 postdeps_CXX \
18175 compiler_lib_search_path_CXX \
18176 archive_cmds_CXX \
18177 archive_expsym_cmds_CXX \
18178 postinstall_cmds_CXX \
18179 postuninstall_cmds_CXX \
18180 old_archive_from_expsyms_cmds_CXX \
18181 allow_undefined_flag_CXX \
18182 no_undefined_flag_CXX \
18183 export_symbols_cmds_CXX \
18184 hardcode_libdir_flag_spec_CXX \
18185 hardcode_libdir_flag_spec_ld_CXX \
18186 hardcode_libdir_separator_CXX \
18187 hardcode_automatic_CXX \
18188 module_cmds_CXX \
18189 module_expsym_cmds_CXX \
18190 lt_cv_prog_compiler_c_o_CXX \
18191 exclude_expsyms_CXX \
18192 include_expsyms_CXX; do
18193
18194 case $var in
18195 old_archive_cmds_CXX | \
18196 old_archive_from_new_cmds_CXX | \
18197 archive_cmds_CXX | \
18198 archive_expsym_cmds_CXX | \
18199 module_cmds_CXX | \
18200 module_expsym_cmds_CXX | \
18201 old_archive_from_expsyms_cmds_CXX | \
18202 export_symbols_cmds_CXX | \
18203 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18204 postinstall_cmds | postuninstall_cmds | \
18205 old_postinstall_cmds | old_postuninstall_cmds | \
18206 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18207 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018208 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 +000018209 ;;
18210 *)
18211 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18212 ;;
18213 esac
18214 done
18215
18216 case $lt_echo in
18217 *'\$0 --fallback-echo"')
18218 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18219 ;;
18220 esac
18221
18222cfgfile="$ofile"
18223
18224 cat <<__EOF__ >> "$cfgfile"
18225# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18226
18227# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18228
18229# Shell to use when invoking shell scripts.
18230SHELL=$lt_SHELL
18231
18232# Whether or not to build shared libraries.
18233build_libtool_libs=$enable_shared
18234
18235# Whether or not to build static libraries.
18236build_old_libs=$enable_static
18237
18238# Whether or not to add -lc for building shared libraries.
18239build_libtool_need_lc=$archive_cmds_need_lc_CXX
18240
18241# Whether or not to disallow shared libs when runtime libs are static
18242allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18243
18244# Whether or not to optimize for fast installation.
18245fast_install=$enable_fast_install
18246
18247# The host system.
18248host_alias=$host_alias
18249host=$host
18250
18251# An echo program that does not interpret backslashes.
18252echo=$lt_echo
18253
18254# The archiver.
18255AR=$lt_AR
18256AR_FLAGS=$lt_AR_FLAGS
18257
18258# A C compiler.
18259LTCC=$lt_LTCC
18260
18261# A language-specific compiler.
18262CC=$lt_compiler_CXX
18263
18264# Is the compiler the GNU C compiler?
18265with_gcc=$GCC_CXX
18266
18267# An ERE matcher.
18268EGREP=$lt_EGREP
18269
18270# The linker used to build libraries.
18271LD=$lt_LD_CXX
18272
18273# Whether we need hard or soft links.
18274LN_S=$lt_LN_S
18275
18276# A BSD-compatible nm program.
18277NM=$lt_NM
18278
18279# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018280STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018281
18282# Used to examine libraries when file_magic_cmd begins "file"
18283MAGIC_CMD=$MAGIC_CMD
18284
18285# Used on cygwin: DLL creation program.
18286DLLTOOL="$DLLTOOL"
18287
18288# Used on cygwin: object dumper.
18289OBJDUMP="$OBJDUMP"
18290
18291# Used on cygwin: assembler.
18292AS="$AS"
18293
18294# The name of the directory that contains temporary libtool files.
18295objdir=$objdir
18296
18297# How to create reloadable object files.
18298reload_flag=$lt_reload_flag
18299reload_cmds=$lt_reload_cmds
18300
18301# How to pass a linker flag through the compiler.
18302wl=$lt_lt_prog_compiler_wl_CXX
18303
18304# Object file suffix (normally "o").
18305objext="$ac_objext"
18306
18307# Old archive suffix (normally "a").
18308libext="$libext"
18309
18310# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018311shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018312
18313# Executable file suffix (normally "").
18314exeext="$exeext"
18315
18316# Additional compiler flags for building library objects.
18317pic_flag=$lt_lt_prog_compiler_pic_CXX
18318pic_mode=$pic_mode
18319
18320# What is the maximum length of a command?
18321max_cmd_len=$lt_cv_sys_max_cmd_len
18322
18323# Does compiler simultaneously support -c and -o options?
18324compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18325
18326# Must we lock files when doing compilation ?
18327need_locks=$lt_need_locks
18328
18329# Do we need the lib prefix for modules?
18330need_lib_prefix=$need_lib_prefix
18331
18332# Do we need a version for libraries?
18333need_version=$need_version
18334
18335# Whether dlopen is supported.
18336dlopen_support=$enable_dlopen
18337
18338# Whether dlopen of programs is supported.
18339dlopen_self=$enable_dlopen_self
18340
18341# Whether dlopen of statically linked programs is supported.
18342dlopen_self_static=$enable_dlopen_self_static
18343
18344# Compiler flag to prevent dynamic linking.
18345link_static_flag=$lt_lt_prog_compiler_static_CXX
18346
18347# Compiler flag to turn off builtin functions.
18348no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18349
18350# Compiler flag to allow reflexive dlopens.
18351export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18352
18353# Compiler flag to generate shared objects directly from archives.
18354whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18355
18356# Compiler flag to generate thread-safe objects.
18357thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18358
18359# Library versioning type.
18360version_type=$version_type
18361
18362# Format of library name prefix.
18363libname_spec=$lt_libname_spec
18364
18365# List of archive names. First name is the real one, the rest are links.
18366# The last name is the one that the linker finds with -lNAME.
18367library_names_spec=$lt_library_names_spec
18368
18369# The coded name of the library, if different from the real name.
18370soname_spec=$lt_soname_spec
18371
18372# Commands used to build and install an old-style archive.
18373RANLIB=$lt_RANLIB
18374old_archive_cmds=$lt_old_archive_cmds_CXX
18375old_postinstall_cmds=$lt_old_postinstall_cmds
18376old_postuninstall_cmds=$lt_old_postuninstall_cmds
18377
18378# Create an old-style archive from a shared archive.
18379old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18380
18381# Create a temporary old-style archive to link instead of a shared archive.
18382old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18383
18384# Commands used to build and install a shared archive.
18385archive_cmds=$lt_archive_cmds_CXX
18386archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18387postinstall_cmds=$lt_postinstall_cmds
18388postuninstall_cmds=$lt_postuninstall_cmds
18389
18390# Commands used to build a loadable module (assumed same as above if empty)
18391module_cmds=$lt_module_cmds_CXX
18392module_expsym_cmds=$lt_module_expsym_cmds_CXX
18393
18394# Commands to strip libraries.
18395old_striplib=$lt_old_striplib
18396striplib=$lt_striplib
18397
18398# Dependencies to place before the objects being linked to create a
18399# shared library.
18400predep_objects=$lt_predep_objects_CXX
18401
18402# Dependencies to place after the objects being linked to create a
18403# shared library.
18404postdep_objects=$lt_postdep_objects_CXX
18405
18406# Dependencies to place before the objects being linked to create a
18407# shared library.
18408predeps=$lt_predeps_CXX
18409
18410# Dependencies to place after the objects being linked to create a
18411# shared library.
18412postdeps=$lt_postdeps_CXX
18413
18414# The library search path used internally by the compiler when linking
18415# a shared library.
18416compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18417
18418# Method to check whether dependent libraries are shared objects.
18419deplibs_check_method=$lt_deplibs_check_method
18420
18421# Command to use when deplibs_check_method == file_magic.
18422file_magic_cmd=$lt_file_magic_cmd
18423
18424# Flag that allows shared libraries with undefined symbols to be built.
18425allow_undefined_flag=$lt_allow_undefined_flag_CXX
18426
18427# Flag that forces no undefined symbols.
18428no_undefined_flag=$lt_no_undefined_flag_CXX
18429
18430# Commands used to finish a libtool library installation in a directory.
18431finish_cmds=$lt_finish_cmds
18432
18433# Same as above, but a single script fragment to be evaled but not shown.
18434finish_eval=$lt_finish_eval
18435
18436# Take the output of nm and produce a listing of raw symbols and C names.
18437global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18438
18439# Transform the output of nm in a proper C declaration
18440global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18441
18442# Transform the output of nm in a C name address pair
18443global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18444
18445# This is the shared library runtime path variable.
18446runpath_var=$runpath_var
18447
18448# This is the shared library path variable.
18449shlibpath_var=$shlibpath_var
18450
18451# Is shlibpath searched before the hard-coded library search path?
18452shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18453
18454# How to hardcode a shared library path into an executable.
18455hardcode_action=$hardcode_action_CXX
18456
18457# Whether we should hardcode library paths into libraries.
18458hardcode_into_libs=$hardcode_into_libs
18459
18460# Flag to hardcode \$libdir into a binary during linking.
18461# This must work even if \$libdir does not exist.
18462hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18463
18464# If ld is used when linking, flag to hardcode \$libdir into
18465# a binary during linking. This must work even if \$libdir does
18466# not exist.
18467hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18468
18469# Whether we need a single -rpath flag with a separated argument.
18470hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18471
18472# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18473# resulting binary.
18474hardcode_direct=$hardcode_direct_CXX
18475
18476# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18477# resulting binary.
18478hardcode_minus_L=$hardcode_minus_L_CXX
18479
18480# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18481# the resulting binary.
18482hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18483
18484# Set to yes if building a shared library automatically hardcodes DIR into the library
18485# and all subsequent libraries and executables linked against it.
18486hardcode_automatic=$hardcode_automatic_CXX
18487
18488# Variables whose values should be saved in libtool wrapper scripts and
18489# restored at relink time.
18490variables_saved_for_relink="$variables_saved_for_relink"
18491
18492# Whether libtool must link a program against all its dependency libraries.
18493link_all_deplibs=$link_all_deplibs_CXX
18494
18495# Compile-time system search path for libraries
18496sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18497
18498# Run-time system search path for libraries
18499sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18500
18501# Fix the shell variable \$srcfile for the compiler.
18502fix_srcfile_path="$fix_srcfile_path_CXX"
18503
18504# Set to yes if exported symbols are required.
18505always_export_symbols=$always_export_symbols_CXX
18506
18507# The commands to list exported symbols.
18508export_symbols_cmds=$lt_export_symbols_cmds_CXX
18509
18510# The commands to extract the exported symbol list from a shared archive.
18511extract_expsyms_cmds=$lt_extract_expsyms_cmds
18512
18513# Symbols that should not be listed in the preloaded symbols.
18514exclude_expsyms=$lt_exclude_expsyms_CXX
18515
18516# Symbols that must always be exported.
18517include_expsyms=$lt_include_expsyms_CXX
18518
18519# ### END LIBTOOL TAG CONFIG: $tagname
18520
18521__EOF__
18522
18523
18524else
18525 # If there is no Makefile yet, we rely on a make rule to execute
18526 # `config.status --recheck' to rerun these tests and create the
18527 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018528 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18529 if test -f "$ltmain_in"; then
18530 test -f Makefile && make "$ltmain"
18531 fi
John Criswell47fdd832003-07-14 16:52:07 +000018532fi
18533
18534
18535ac_ext=c
18536ac_cpp='$CPP $CPPFLAGS'
18537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18539ac_compiler_gnu=$ac_cv_c_compiler_gnu
18540
18541CC=$lt_save_CC
18542LDCXX=$LD
18543LD=$lt_save_LD
18544GCC=$lt_save_GCC
18545with_gnu_ldcxx=$with_gnu_ld
18546with_gnu_ld=$lt_save_with_gnu_ld
18547lt_cv_path_LDCXX=$lt_cv_path_LD
18548lt_cv_path_LD=$lt_save_path_LD
18549lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18550lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18551
18552 else
18553 tagname=""
18554 fi
18555 ;;
18556
18557 F77)
18558 if test -n "$F77" && test "X$F77" != "Xno"; then
18559
18560ac_ext=f
18561ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18562ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18563ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18564
18565
18566archive_cmds_need_lc_F77=no
18567allow_undefined_flag_F77=
18568always_export_symbols_F77=no
18569archive_expsym_cmds_F77=
18570export_dynamic_flag_spec_F77=
18571hardcode_direct_F77=no
18572hardcode_libdir_flag_spec_F77=
18573hardcode_libdir_flag_spec_ld_F77=
18574hardcode_libdir_separator_F77=
18575hardcode_minus_L_F77=no
18576hardcode_automatic_F77=no
18577module_cmds_F77=
18578module_expsym_cmds_F77=
18579link_all_deplibs_F77=unknown
18580old_archive_cmds_F77=$old_archive_cmds
18581no_undefined_flag_F77=
18582whole_archive_flag_spec_F77=
18583enable_shared_with_static_runtimes_F77=no
18584
18585# Source file extension for f77 test sources.
18586ac_ext=f
18587
18588# Object file extension for compiled f77 test sources.
18589objext=o
18590objext_F77=$objext
18591
18592# Code to be used in simple compile tests
18593lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18594
18595# Code to be used in simple link tests
18596lt_simple_link_test_code=" program t\n end\n"
18597
18598# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18599
18600# If no C compiler was specified, use CC.
18601LTCC=${LTCC-"$CC"}
18602
18603# Allow CC to be a program name with arguments.
18604compiler=$CC
18605
18606
18607# Allow CC to be a program name with arguments.
18608lt_save_CC="$CC"
18609CC=${F77-"f77"}
18610compiler=$CC
18611compiler_F77=$CC
18612cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18613
18614echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18615echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18616echo "$as_me:$LINENO: result: $can_build_shared" >&5
18617echo "${ECHO_T}$can_build_shared" >&6
18618
18619echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18620echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18621test "$can_build_shared" = "no" && enable_shared=no
18622
18623# On AIX, shared libraries and static libraries use the same namespace, and
18624# are all built from PIC.
18625case "$host_os" in
18626aix3*)
18627 test "$enable_shared" = yes && enable_static=no
18628 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018629 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018630 postinstall_cmds='$RANLIB $lib'
18631 fi
18632 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018633aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018634 test "$enable_shared" = yes && enable_static=no
18635 ;;
18636esac
18637echo "$as_me:$LINENO: result: $enable_shared" >&5
18638echo "${ECHO_T}$enable_shared" >&6
18639
18640echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18641echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18642# Make sure either enable_shared or enable_static is yes.
18643test "$enable_shared" = yes || enable_static=yes
18644echo "$as_me:$LINENO: result: $enable_static" >&5
18645echo "${ECHO_T}$enable_static" >&6
18646
18647test "$ld_shlibs_F77" = no && can_build_shared=no
18648
18649GCC_F77="$G77"
18650LD_F77="$LD"
18651
18652lt_prog_compiler_wl_F77=
18653lt_prog_compiler_pic_F77=
18654lt_prog_compiler_static_F77=
18655
18656echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18657echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18658
18659 if test "$GCC" = yes; then
18660 lt_prog_compiler_wl_F77='-Wl,'
18661 lt_prog_compiler_static_F77='-static'
18662
18663 case $host_os in
18664 aix*)
18665 # All AIX code is PIC.
18666 if test "$host_cpu" = ia64; then
18667 # AIX 5 now supports IA64 processor
18668 lt_prog_compiler_static_F77='-Bstatic'
18669 fi
18670 ;;
18671
18672 amigaos*)
18673 # FIXME: we need at least 68020 code to build shared libraries, but
18674 # adding the `-m68020' flag to GCC prevents building anything better,
18675 # like `-m68040'.
18676 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18677 ;;
18678
18679 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18680 # PIC is the default for these OSes.
18681 ;;
18682
18683 mingw* | pw32* | os2*)
18684 # This hack is so that the source file can tell whether it is being
18685 # built for inclusion in a dll (and should export symbols for example).
18686 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18687 ;;
18688
18689 darwin* | rhapsody*)
18690 # PIC is the default on this platform
18691 # Common symbols not allowed in MH_DYLIB files
18692 lt_prog_compiler_pic_F77='-fno-common'
18693 ;;
18694
18695 msdosdjgpp*)
18696 # Just because we use GCC doesn't mean we suddenly get shared libraries
18697 # on systems that don't support them.
18698 lt_prog_compiler_can_build_shared_F77=no
18699 enable_shared=no
18700 ;;
18701
18702 sysv4*MP*)
18703 if test -d /usr/nec; then
18704 lt_prog_compiler_pic_F77=-Kconform_pic
18705 fi
18706 ;;
18707
18708 hpux*)
18709 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18710 # not for PA HP-UX.
18711 case "$host_cpu" in
18712 hppa*64*|ia64*)
18713 # +Z the default
18714 ;;
18715 *)
18716 lt_prog_compiler_pic_F77='-fPIC'
18717 ;;
18718 esac
18719 ;;
18720
18721 *)
18722 lt_prog_compiler_pic_F77='-fPIC'
18723 ;;
18724 esac
18725 else
18726 # PORTME Check for flag to pass linker flags through the system compiler.
18727 case $host_os in
18728 aix*)
18729 lt_prog_compiler_wl_F77='-Wl,'
18730 if test "$host_cpu" = ia64; then
18731 # AIX 5 now supports IA64 processor
18732 lt_prog_compiler_static_F77='-Bstatic'
18733 else
18734 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18735 fi
18736 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018737 darwin*)
18738 # PIC is the default on this platform
18739 # Common symbols not allowed in MH_DYLIB files
18740 case "$cc_basename" in
18741 xlc*)
18742 lt_prog_compiler_pic_F77='-qnocommon'
18743 lt_prog_compiler_wl_F77='-Wl,'
18744 ;;
18745 esac
18746 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018747
18748 mingw* | pw32* | os2*)
18749 # This hack is so that the source file can tell whether it is being
18750 # built for inclusion in a dll (and should export symbols for example).
18751 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18752 ;;
18753
18754 hpux9* | hpux10* | hpux11*)
18755 lt_prog_compiler_wl_F77='-Wl,'
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='+Z'
18764 ;;
18765 esac
18766 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18767 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18768 ;;
18769
18770 irix5* | irix6* | nonstopux*)
18771 lt_prog_compiler_wl_F77='-Wl,'
18772 # PIC (with -KPIC) is the default.
18773 lt_prog_compiler_static_F77='-non_shared'
18774 ;;
18775
18776 newsos6)
18777 lt_prog_compiler_pic_F77='-KPIC'
18778 lt_prog_compiler_static_F77='-Bstatic'
18779 ;;
18780
18781 linux*)
18782 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018783 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000018784 lt_prog_compiler_wl_F77='-Wl,'
18785 lt_prog_compiler_pic_F77='-KPIC'
18786 lt_prog_compiler_static_F77='-static'
18787 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018788 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000018789 lt_prog_compiler_wl_F77='-Wl,'
18790 # All Alpha code is PIC.
18791 lt_prog_compiler_static_F77='-non_shared'
18792 ;;
18793 esac
18794 ;;
18795
18796 osf3* | osf4* | osf5*)
18797 lt_prog_compiler_wl_F77='-Wl,'
18798 # All OSF/1 code is PIC.
18799 lt_prog_compiler_static_F77='-non_shared'
18800 ;;
18801
18802 sco3.2v5*)
18803 lt_prog_compiler_pic_F77='-Kpic'
18804 lt_prog_compiler_static_F77='-dn'
18805 ;;
18806
18807 solaris*)
18808 lt_prog_compiler_wl_F77='-Wl,'
18809 lt_prog_compiler_pic_F77='-KPIC'
18810 lt_prog_compiler_static_F77='-Bstatic'
18811 ;;
18812
18813 sunos4*)
18814 lt_prog_compiler_wl_F77='-Qoption ld '
18815 lt_prog_compiler_pic_F77='-PIC'
18816 lt_prog_compiler_static_F77='-Bstatic'
18817 ;;
18818
18819 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18820 lt_prog_compiler_wl_F77='-Wl,'
18821 lt_prog_compiler_pic_F77='-KPIC'
18822 lt_prog_compiler_static_F77='-Bstatic'
18823 ;;
18824
18825 sysv4*MP*)
18826 if test -d /usr/nec ;then
18827 lt_prog_compiler_pic_F77='-Kconform_pic'
18828 lt_prog_compiler_static_F77='-Bstatic'
18829 fi
18830 ;;
18831
18832 uts4*)
18833 lt_prog_compiler_pic_F77='-pic'
18834 lt_prog_compiler_static_F77='-Bstatic'
18835 ;;
18836
18837 *)
18838 lt_prog_compiler_can_build_shared_F77=no
18839 ;;
18840 esac
18841 fi
18842
18843echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18844echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18845
18846#
18847# Check to make sure the PIC flag actually works.
18848#
18849if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018850
18851echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018852echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18853if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18854 echo $ECHO_N "(cached) $ECHO_C" >&6
18855else
18856 lt_prog_compiler_pic_works_F77=no
18857 ac_outfile=conftest.$ac_objext
18858 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18859 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18860 # Insert the option either (1) after the last *FLAGS variable, or
18861 # (2) before a word containing "conftest.", or (3) at the end.
18862 # Note that $ac_compile itself does not contain backslashes and begins
18863 # with a dollar sign (not a hyphen), so the echo should work correctly.
18864 # The option is referenced via a variable to avoid confusing sed.
18865 lt_compile=`echo "$ac_compile" | $SED \
18866 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18868 -e 's:$: $lt_compiler_flag:'`
Reid Spencer0fcb9412004-11-30 08:11:54 +000018869 (eval echo "\"\$as_me:18869: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018870 (eval "$lt_compile" 2>conftest.err)
18871 ac_status=$?
18872 cat conftest.err >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +000018873 echo "$as_me:18873: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018874 if (exit $ac_status) && test -s "$ac_outfile"; then
18875 # The compiler can only warn and ignore the option if not recognized
18876 # So say no if there are warnings
18877 if test ! -s conftest.err; then
18878 lt_prog_compiler_pic_works_F77=yes
18879 fi
18880 fi
18881 $rm conftest*
18882
18883fi
18884echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18885echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18886
18887if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18888 case $lt_prog_compiler_pic_F77 in
18889 "" | " "*) ;;
18890 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18891 esac
18892else
18893 lt_prog_compiler_pic_F77=
18894 lt_prog_compiler_can_build_shared_F77=no
18895fi
18896
18897fi
18898case "$host_os" in
18899 # For platforms which do not support PIC, -DPIC is meaningless:
18900 *djgpp*)
18901 lt_prog_compiler_pic_F77=
18902 ;;
18903 *)
18904 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18905 ;;
18906esac
18907
18908echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18909echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18910if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18911 echo $ECHO_N "(cached) $ECHO_C" >&6
18912else
18913 lt_cv_prog_compiler_c_o_F77=no
18914 $rm -r conftest 2>/dev/null
18915 mkdir conftest
18916 cd conftest
18917 mkdir out
18918 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18919
John Criswell47fdd832003-07-14 16:52:07 +000018920 lt_compiler_flag="-o out/conftest2.$ac_objext"
18921 # Insert the option either (1) after the last *FLAGS variable, or
18922 # (2) before a word containing "conftest.", or (3) at the end.
18923 # Note that $ac_compile itself does not contain backslashes and begins
18924 # with a dollar sign (not a hyphen), so the echo should work correctly.
18925 lt_compile=`echo "$ac_compile" | $SED \
18926 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18927 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18928 -e 's:$: $lt_compiler_flag:'`
Reid Spencer0fcb9412004-11-30 08:11:54 +000018929 (eval echo "\"\$as_me:18929: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018930 (eval "$lt_compile" 2>out/conftest.err)
18931 ac_status=$?
18932 cat out/conftest.err >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +000018933 echo "$as_me:18933: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018934 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18935 then
18936 # The compiler can only warn and ignore the option if not recognized
18937 # So say no if there are warnings
18938 if test ! -s out/conftest.err; then
18939 lt_cv_prog_compiler_c_o_F77=yes
18940 fi
18941 fi
18942 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000018943 $rm conftest*
18944 # SGI C++ compiler will create directory out/ii_files/ for
18945 # template instantiation
18946 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18947 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000018948 cd ..
18949 rmdir conftest
18950 $rm conftest*
18951
18952fi
18953echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18954echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18955
18956
18957hard_links="nottested"
18958if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18959 # do not overwrite the value of need_locks provided by the user
18960 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18961echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18962 hard_links=yes
18963 $rm conftest*
18964 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18965 touch conftest.a
18966 ln conftest.a conftest.b 2>&5 || hard_links=no
18967 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18968 echo "$as_me:$LINENO: result: $hard_links" >&5
18969echo "${ECHO_T}$hard_links" >&6
18970 if test "$hard_links" = no; then
18971 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18972echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18973 need_locks=warn
18974 fi
18975else
18976 need_locks=no
18977fi
18978
18979echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18980echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18981
18982 runpath_var=
18983 allow_undefined_flag_F77=
18984 enable_shared_with_static_runtimes_F77=no
18985 archive_cmds_F77=
18986 archive_expsym_cmds_F77=
18987 old_archive_From_new_cmds_F77=
18988 old_archive_from_expsyms_cmds_F77=
18989 export_dynamic_flag_spec_F77=
18990 whole_archive_flag_spec_F77=
18991 thread_safe_flag_spec_F77=
18992 hardcode_libdir_flag_spec_F77=
18993 hardcode_libdir_flag_spec_ld_F77=
18994 hardcode_libdir_separator_F77=
18995 hardcode_direct_F77=no
18996 hardcode_minus_L_F77=no
18997 hardcode_shlibpath_var_F77=unsupported
18998 link_all_deplibs_F77=unknown
18999 hardcode_automatic_F77=no
19000 module_cmds_F77=
19001 module_expsym_cmds_F77=
19002 always_export_symbols_F77=no
19003 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19004 # include_expsyms should be a list of space-separated symbols to be *always*
19005 # included in the symbol list
19006 include_expsyms_F77=
19007 # exclude_expsyms can be an extended regexp of symbols to exclude
19008 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19009 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19010 # as well as any symbol that contains `d'.
19011 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19012 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19013 # platforms (ab)use it in PIC code, but their linkers get confused if
19014 # the symbol is explicitly referenced. Since portable code cannot
19015 # rely on this symbol name, it's probably fine to never include it in
19016 # preloaded symbol tables.
19017 extract_expsyms_cmds=
19018
19019 case $host_os in
19020 cygwin* | mingw* | pw32*)
19021 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19022 # When not using gcc, we currently assume that we are using
19023 # Microsoft Visual C++.
19024 if test "$GCC" != yes; then
19025 with_gnu_ld=no
19026 fi
19027 ;;
19028 openbsd*)
19029 with_gnu_ld=no
19030 ;;
19031 esac
19032
19033 ld_shlibs_F77=yes
19034 if test "$with_gnu_ld" = yes; then
19035 # If archive_cmds runs LD, not CC, wlarc should be empty
19036 wlarc='${wl}'
19037
19038 # See if GNU ld supports shared libraries.
19039 case $host_os in
19040 aix3* | aix4* | aix5*)
19041 # On AIX/PPC, the GNU linker is very broken
19042 if test "$host_cpu" != ia64; then
19043 ld_shlibs_F77=no
19044 cat <<EOF 1>&2
19045
19046*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19047*** to be unable to reliably create shared libraries on AIX.
19048*** Therefore, libtool is disabling shared libraries support. If you
19049*** really care for shared libraries, you may want to modify your PATH
19050*** so that a non-GNU linker is found, and then restart.
19051
19052EOF
19053 fi
19054 ;;
19055
19056 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019057 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 +000019058 hardcode_libdir_flag_spec_F77='-L$libdir'
19059 hardcode_minus_L_F77=yes
19060
19061 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19062 # that the semantics of dynamic libraries on AmigaOS, at least up
19063 # to version 4, is to share data among multiple programs linked
19064 # with the same dynamic library. Since this doesn't match the
19065 # behavior of shared libraries on other platforms, we can't use
19066 # them.
19067 ld_shlibs_F77=no
19068 ;;
19069
19070 beos*)
19071 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19072 allow_undefined_flag_F77=unsupported
19073 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19074 # support --undefined. This deserves some investigation. FIXME
19075 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19076 else
19077 ld_shlibs_F77=no
19078 fi
19079 ;;
19080
19081 cygwin* | mingw* | pw32*)
19082 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19083 # as there is no search path for DLLs.
19084 hardcode_libdir_flag_spec_F77='-L$libdir'
19085 allow_undefined_flag_F77=unsupported
19086 always_export_symbols_F77=no
19087 enable_shared_with_static_runtimes_F77=yes
19088 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19089
19090 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19091 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19092 # If the export-symbols file already is a .def file (1st line
19093 # is EXPORTS), use it as is; otherwise, prepend...
19094 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19095 cp $export_symbols $output_objdir/$soname.def;
19096 else
19097 echo EXPORTS > $output_objdir/$soname.def;
19098 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019099 fi~
19100 $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 +000019101 else
19102 ld_shlibs=no
19103 fi
19104 ;;
19105
19106 netbsd*)
19107 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19108 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19109 wlarc=
19110 else
19111 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19112 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19113 fi
19114 ;;
19115
19116 solaris* | sysv5*)
19117 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19118 ld_shlibs_F77=no
19119 cat <<EOF 1>&2
19120
19121*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19122*** create shared libraries on Solaris systems. Therefore, libtool
19123*** is disabling shared libraries support. We urge you to upgrade GNU
19124*** binutils to release 2.9.1 or newer. Another option is to modify
19125*** your PATH or compiler configuration so that the native linker is
19126*** used, and then restart.
19127
19128EOF
19129 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19130 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19131 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19132 else
19133 ld_shlibs_F77=no
19134 fi
19135 ;;
19136
19137 sunos4*)
19138 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19139 wlarc=
19140 hardcode_direct_F77=yes
19141 hardcode_shlibpath_var_F77=no
19142 ;;
19143
Reid Spencer2706f8c2004-09-19 23:53:36 +000019144 linux*)
19145 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19146 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19147 archive_cmds_F77="$tmp_archive_cmds"
19148 supports_anon_versioning=no
19149 case `$LD -v 2>/dev/null` in
19150 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19151 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19152 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19153 *\ 2.11.*) ;; # other 2.11 versions
19154 *) supports_anon_versioning=yes ;;
19155 esac
19156 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019157 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19158cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19159$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019160 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19161 else
19162 archive_expsym_cmds_F77="$tmp_archive_cmds"
19163 fi
19164 else
19165 ld_shlibs_F77=no
19166 fi
19167 ;;
19168
John Criswell47fdd832003-07-14 16:52:07 +000019169 *)
19170 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19171 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19172 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19173 else
19174 ld_shlibs_F77=no
19175 fi
19176 ;;
19177 esac
19178
19179 if test "$ld_shlibs_F77" = yes; then
19180 runpath_var=LD_RUN_PATH
19181 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19182 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19183 # ancient GNU ld didn't support --whole-archive et. al.
19184 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19185 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19186 else
19187 whole_archive_flag_spec_F77=
19188 fi
19189 fi
19190 else
19191 # PORTME fill in a description of your system's linker (not GNU ld)
19192 case $host_os in
19193 aix3*)
19194 allow_undefined_flag_F77=unsupported
19195 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019196 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 +000019197 # Note: this linker hardcodes the directories in LIBPATH if there
19198 # are no directories specified by -L.
19199 hardcode_minus_L_F77=yes
19200 if test "$GCC" = yes && test -z "$link_static_flag"; then
19201 # Neither direct hardcoding nor static linking is supported with a
19202 # broken collect2.
19203 hardcode_direct_F77=unsupported
19204 fi
19205 ;;
19206
19207 aix4* | aix5*)
19208 if test "$host_cpu" = ia64; then
19209 # On IA64, the linker does run time linking by default, so we don't
19210 # have to do anything special.
19211 aix_use_runtimelinking=no
19212 exp_sym_flag='-Bexport'
19213 no_entry_flag=""
19214 else
19215 # If we're using GNU nm, then we don't want the "-C" option.
19216 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19217 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19218 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'
19219 else
19220 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'
19221 fi
19222 aix_use_runtimelinking=no
19223
19224 # Test if we are trying to use run time linking or normal
19225 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19226 # need to do runtime linking.
19227 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19228 for ld_flag in $LDFLAGS; do
19229 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19230 aix_use_runtimelinking=yes
19231 break
19232 fi
19233 done
19234 esac
19235
19236 exp_sym_flag='-bexport'
19237 no_entry_flag='-bnoentry'
19238 fi
19239
19240 # When large executables or shared objects are built, AIX ld can
19241 # have problems creating the table of contents. If linking a library
19242 # or program results in "error TOC overflow" add -mminimal-toc to
19243 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19244 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19245
19246 archive_cmds_F77=''
19247 hardcode_direct_F77=yes
19248 hardcode_libdir_separator_F77=':'
19249 link_all_deplibs_F77=yes
19250
19251 if test "$GCC" = yes; then
19252 case $host_os in aix4.012|aix4.012.*)
19253 # We only want to do this on AIX 4.2 and lower, the check
19254 # below for broken collect2 doesn't work under 4.3+
19255 collect2name=`${CC} -print-prog-name=collect2`
19256 if test -f "$collect2name" && \
19257 strings "$collect2name" | grep resolve_lib_name >/dev/null
19258 then
19259 # We have reworked collect2
19260 hardcode_direct_F77=yes
19261 else
19262 # We have old collect2
19263 hardcode_direct_F77=unsupported
19264 # It fails to find uninstalled libraries when the uninstalled
19265 # path is not listed in the libpath. Setting hardcode_minus_L
19266 # to unsupported forces relinking
19267 hardcode_minus_L_F77=yes
19268 hardcode_libdir_flag_spec_F77='-L$libdir'
19269 hardcode_libdir_separator_F77=
19270 fi
19271 esac
19272 shared_flag='-shared'
19273 else
19274 # not using gcc
19275 if test "$host_cpu" = ia64; then
19276 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19277 # chokes on -Wl,-G. The following line is correct:
19278 shared_flag='-G'
19279 else
19280 if test "$aix_use_runtimelinking" = yes; then
19281 shared_flag='${wl}-G'
19282 else
19283 shared_flag='${wl}-bM:SRE'
19284 fi
19285 fi
19286 fi
19287
19288 # It seems that -bexpall does not export symbols beginning with
19289 # underscore (_), so it is better to generate a list of symbols to export.
19290 always_export_symbols_F77=yes
19291 if test "$aix_use_runtimelinking" = yes; then
19292 # Warning - without using the other runtime loading flags (-brtl),
19293 # -berok will link without error, but may produce a broken library.
19294 allow_undefined_flag_F77='-berok'
19295 # Determine the default libpath from the value encoded in an empty executable.
19296 cat >conftest.$ac_ext <<_ACEOF
19297 program main
19298
19299 end
19300_ACEOF
19301rm -f conftest.$ac_objext conftest$ac_exeext
19302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019303 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019304 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019305 grep -v '^ *+' conftest.er1 >conftest.err
19306 rm -f conftest.er1
19307 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019310 { ac_try='test -z "$ac_f77_werror_flag"
19311 || test ! -s conftest.err'
19312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313 (eval $ac_try) 2>&5
19314 ac_status=$?
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; } &&
19317 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319 (eval $ac_try) 2>&5
19320 ac_status=$?
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); }; }; then
19323
19324aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19325}'`
19326# Check for a 64-bit object if we didn't find anything.
19327if 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; }
19328}'`; fi
19329else
19330 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019331sed 's/^/| /' conftest.$ac_ext >&5
19332
John Criswell47fdd832003-07-14 16:52:07 +000019333fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019334rm -f conftest.err conftest.$ac_objext \
19335 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019336if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19337
19338 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19339 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"
19340 else
19341 if test "$host_cpu" = ia64; then
19342 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19343 allow_undefined_flag_F77="-z nodefs"
19344 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"
19345 else
19346 # Determine the default libpath from the value encoded in an empty executable.
19347 cat >conftest.$ac_ext <<_ACEOF
19348 program main
19349
19350 end
19351_ACEOF
19352rm -f conftest.$ac_objext conftest$ac_exeext
19353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019354 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019355 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019356 grep -v '^ *+' conftest.er1 >conftest.err
19357 rm -f conftest.er1
19358 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019361 { ac_try='test -z "$ac_f77_werror_flag"
19362 || test ! -s conftest.err'
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19365 ac_status=$?
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; } &&
19368 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19371 ac_status=$?
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; }; then
19374
19375aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19376}'`
19377# Check for a 64-bit object if we didn't find anything.
19378if 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; }
19379}'`; fi
19380else
19381 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019382sed 's/^/| /' conftest.$ac_ext >&5
19383
John Criswell47fdd832003-07-14 16:52:07 +000019384fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019385rm -f conftest.err conftest.$ac_objext \
19386 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019387if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19388
19389 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19390 # Warning - without using the other run time loading flags,
19391 # -berok will link without error, but may produce a broken library.
19392 no_undefined_flag_F77=' ${wl}-bernotok'
19393 allow_undefined_flag_F77=' ${wl}-berok'
19394 # -bexpall does not export symbols beginning with underscore (_)
19395 always_export_symbols_F77=yes
19396 # Exported symbols can be pulled into shared objects from archives
19397 whole_archive_flag_spec_F77=' '
19398 archive_cmds_need_lc_F77=yes
19399 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019400 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 +000019401 fi
19402 fi
19403 ;;
19404
19405 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019406 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 +000019407 hardcode_libdir_flag_spec_F77='-L$libdir'
19408 hardcode_minus_L_F77=yes
19409 # see comment about different semantics on the GNU ld section
19410 ld_shlibs_F77=no
19411 ;;
19412
Reid Spencer2706f8c2004-09-19 23:53:36 +000019413 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019414 export_dynamic_flag_spec_F77=-rdynamic
19415 ;;
19416
19417 cygwin* | mingw* | pw32*)
19418 # When not using gcc, we currently assume that we are using
19419 # Microsoft Visual C++.
19420 # hardcode_libdir_flag_spec is actually meaningless, as there is
19421 # no search path for DLLs.
19422 hardcode_libdir_flag_spec_F77=' '
19423 allow_undefined_flag_F77=unsupported
19424 # Tell ltmain to make .lib files, not .a files.
19425 libext=lib
19426 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019427 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019428 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019429 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 +000019430 # The linker will automatically build a .lib file if we build a DLL.
19431 old_archive_From_new_cmds_F77='true'
19432 # FIXME: Should let the user specify the lib program.
19433 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19434 fix_srcfile_path='`cygpath -w "$srcfile"`'
19435 enable_shared_with_static_runtimes_F77=yes
19436 ;;
19437
19438 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019439 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019440 rhapsody* | darwin1.[012])
19441 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19442 ;;
19443 *) # Darwin 1.3 on
19444 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19445 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19446 else
19447 case ${MACOSX_DEPLOYMENT_TARGET} in
19448 10.[012])
19449 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19450 ;;
19451 10.*)
19452 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19453 ;;
19454 esac
19455 fi
19456 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019457 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019458 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019459 hardcode_direct_F77=no
19460 hardcode_automatic_F77=yes
19461 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019462 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019463 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019464 if test "$GCC" = yes ; then
19465 output_verbose_link_cmd='echo'
19466 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19467 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19468 # 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 +000019469 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}'
19470 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 +000019471 else
19472 case "$cc_basename" in
19473 xlc*)
19474 output_verbose_link_cmd='echo'
19475 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19476 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19477 # 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 +000019478 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}'
19479 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 +000019480 ;;
19481 *)
19482 ld_shlibs_F77=no
19483 ;;
19484 esac
John Criswell47fdd832003-07-14 16:52:07 +000019485 fi
19486 ;;
19487
19488 dgux*)
19489 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19490 hardcode_libdir_flag_spec_F77='-L$libdir'
19491 hardcode_shlibpath_var_F77=no
19492 ;;
19493
19494 freebsd1*)
19495 ld_shlibs_F77=no
19496 ;;
19497
19498 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19499 # support. Future versions do this automatically, but an explicit c++rt0.o
19500 # does not break anything, and helps significantly (at the cost of a little
19501 # extra space).
19502 freebsd2.2*)
19503 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19504 hardcode_libdir_flag_spec_F77='-R$libdir'
19505 hardcode_direct_F77=yes
19506 hardcode_shlibpath_var_F77=no
19507 ;;
19508
19509 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19510 freebsd2*)
19511 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19512 hardcode_direct_F77=yes
19513 hardcode_minus_L_F77=yes
19514 hardcode_shlibpath_var_F77=no
19515 ;;
19516
19517 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019518 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019519 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19520 hardcode_libdir_flag_spec_F77='-R$libdir'
19521 hardcode_direct_F77=yes
19522 hardcode_shlibpath_var_F77=no
19523 ;;
19524
19525 hpux9*)
19526 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019527 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 +000019528 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019529 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 +000019530 fi
19531 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19532 hardcode_libdir_separator_F77=:
19533 hardcode_direct_F77=yes
19534
19535 # hardcode_minus_L: Not really in the search PATH,
19536 # but as the default location of the library.
19537 hardcode_minus_L_F77=yes
19538 export_dynamic_flag_spec_F77='${wl}-E'
19539 ;;
19540
19541 hpux10* | hpux11*)
19542 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19543 case "$host_cpu" in
19544 hppa*64*|ia64*)
19545 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19546 ;;
19547 *)
19548 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19549 ;;
19550 esac
19551 else
19552 case "$host_cpu" in
19553 hppa*64*|ia64*)
19554 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19555 ;;
19556 *)
19557 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19558 ;;
19559 esac
19560 fi
19561 if test "$with_gnu_ld" = no; then
19562 case "$host_cpu" in
19563 hppa*64*)
19564 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19565 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19566 hardcode_libdir_separator_F77=:
19567 hardcode_direct_F77=no
19568 hardcode_shlibpath_var_F77=no
19569 ;;
19570 ia64*)
19571 hardcode_libdir_flag_spec_F77='-L$libdir'
19572 hardcode_direct_F77=no
19573 hardcode_shlibpath_var_F77=no
19574
19575 # hardcode_minus_L: Not really in the search PATH,
19576 # but as the default location of the library.
19577 hardcode_minus_L_F77=yes
19578 ;;
19579 *)
19580 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19581 hardcode_libdir_separator_F77=:
19582 hardcode_direct_F77=yes
19583 export_dynamic_flag_spec_F77='${wl}-E'
19584
19585 # hardcode_minus_L: Not really in the search PATH,
19586 # but as the default location of the library.
19587 hardcode_minus_L_F77=yes
19588 ;;
19589 esac
19590 fi
19591 ;;
19592
19593 irix5* | irix6* | nonstopux*)
19594 if test "$GCC" = yes; then
19595 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'
19596 else
19597 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'
19598 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19599 fi
19600 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19601 hardcode_libdir_separator_F77=:
19602 link_all_deplibs_F77=yes
19603 ;;
19604
19605 netbsd*)
19606 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19607 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19608 else
19609 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19610 fi
19611 hardcode_libdir_flag_spec_F77='-R$libdir'
19612 hardcode_direct_F77=yes
19613 hardcode_shlibpath_var_F77=no
19614 ;;
19615
19616 newsos6)
19617 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19618 hardcode_direct_F77=yes
19619 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19620 hardcode_libdir_separator_F77=:
19621 hardcode_shlibpath_var_F77=no
19622 ;;
19623
19624 openbsd*)
19625 hardcode_direct_F77=yes
19626 hardcode_shlibpath_var_F77=no
19627 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19628 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019629 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 +000019630 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19631 export_dynamic_flag_spec_F77='${wl}-E'
19632 else
19633 case $host_os in
19634 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19635 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19636 hardcode_libdir_flag_spec_F77='-R$libdir'
19637 ;;
19638 *)
19639 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19640 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19641 ;;
19642 esac
19643 fi
19644 ;;
19645
19646 os2*)
19647 hardcode_libdir_flag_spec_F77='-L$libdir'
19648 hardcode_minus_L_F77=yes
19649 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019650 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 +000019651 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19652 ;;
19653
19654 osf3*)
19655 if test "$GCC" = yes; then
19656 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19657 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'
19658 else
19659 allow_undefined_flag_F77=' -expect_unresolved \*'
19660 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'
19661 fi
19662 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19663 hardcode_libdir_separator_F77=:
19664 ;;
19665
19666 osf4* | osf5*) # as osf3* with the addition of -msym flag
19667 if test "$GCC" = yes; then
19668 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19669 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'
19670 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19671 else
19672 allow_undefined_flag_F77=' -expect_unresolved \*'
19673 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 +000019674 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~
19675 $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'
19676
John Criswell47fdd832003-07-14 16:52:07 +000019677 # Both c and cxx compiler support -rpath directly
19678 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19679 fi
19680 hardcode_libdir_separator_F77=:
19681 ;;
19682
19683 sco3.2v5*)
19684 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19685 hardcode_shlibpath_var_F77=no
19686 export_dynamic_flag_spec_F77='${wl}-Bexport'
19687 runpath_var=LD_RUN_PATH
19688 hardcode_runpath_var=yes
19689 ;;
19690
19691 solaris*)
19692 no_undefined_flag_F77=' -z text'
19693 if test "$GCC" = yes; then
19694 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019695 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19696 $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 +000019697 else
19698 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019699 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19700 $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 +000019701 fi
19702 hardcode_libdir_flag_spec_F77='-R$libdir'
19703 hardcode_shlibpath_var_F77=no
19704 case $host_os in
19705 solaris2.[0-5] | solaris2.[0-5].*) ;;
19706 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19707 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19708 esac
19709 link_all_deplibs_F77=yes
19710 ;;
19711
19712 sunos4*)
19713 if test "x$host_vendor" = xsequent; then
19714 # Use $CC to link under sequent, because it throws in some extra .o
19715 # files that make .init and .fini sections work.
19716 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19717 else
19718 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19719 fi
19720 hardcode_libdir_flag_spec_F77='-L$libdir'
19721 hardcode_direct_F77=yes
19722 hardcode_minus_L_F77=yes
19723 hardcode_shlibpath_var_F77=no
19724 ;;
19725
19726 sysv4)
19727 case $host_vendor in
19728 sni)
19729 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19730 hardcode_direct_F77=yes # is this really true???
19731 ;;
19732 siemens)
19733 ## LD is ld it makes a PLAMLIB
19734 ## CC just makes a GrossModule.
19735 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19736 reload_cmds_F77='$CC -r -o $output$reload_objs'
19737 hardcode_direct_F77=no
19738 ;;
19739 motorola)
19740 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19741 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19742 ;;
19743 esac
19744 runpath_var='LD_RUN_PATH'
19745 hardcode_shlibpath_var_F77=no
19746 ;;
19747
19748 sysv4.3*)
19749 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19750 hardcode_shlibpath_var_F77=no
19751 export_dynamic_flag_spec_F77='-Bexport'
19752 ;;
19753
19754 sysv4*MP*)
19755 if test -d /usr/nec; then
19756 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19757 hardcode_shlibpath_var_F77=no
19758 runpath_var=LD_RUN_PATH
19759 hardcode_runpath_var=yes
19760 ld_shlibs_F77=yes
19761 fi
19762 ;;
19763
19764 sysv4.2uw2*)
19765 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19766 hardcode_direct_F77=yes
19767 hardcode_minus_L_F77=no
19768 hardcode_shlibpath_var_F77=no
19769 hardcode_runpath_var=yes
19770 runpath_var=LD_RUN_PATH
19771 ;;
19772
19773 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19774 no_undefined_flag_F77='${wl}-z ${wl}text'
19775 if test "$GCC" = yes; then
19776 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19777 else
19778 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19779 fi
19780 runpath_var='LD_RUN_PATH'
19781 hardcode_shlibpath_var_F77=no
19782 ;;
19783
19784 sysv5*)
19785 no_undefined_flag_F77=' -z text'
19786 # $CC -shared without GNU ld will not create a library from C++
19787 # object files and a static libstdc++, better avoid it by now
19788 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019789 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19790 $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 +000019791 hardcode_libdir_flag_spec_F77=
19792 hardcode_shlibpath_var_F77=no
19793 runpath_var='LD_RUN_PATH'
19794 ;;
19795
19796 uts4*)
19797 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19798 hardcode_libdir_flag_spec_F77='-L$libdir'
19799 hardcode_shlibpath_var_F77=no
19800 ;;
19801
19802 *)
19803 ld_shlibs_F77=no
19804 ;;
19805 esac
19806 fi
19807
19808echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19809echo "${ECHO_T}$ld_shlibs_F77" >&6
19810test "$ld_shlibs_F77" = no && can_build_shared=no
19811
19812variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19813if test "$GCC" = yes; then
19814 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19815fi
19816
19817#
19818# Do we need to explicitly link libc?
19819#
19820case "x$archive_cmds_need_lc_F77" in
19821x|xyes)
19822 # Assume -lc should be added
19823 archive_cmds_need_lc_F77=yes
19824
19825 if test "$enable_shared" = yes && test "$GCC" = yes; then
19826 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019827 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019828 # FIXME: we may have to deal with multi-command sequences.
19829 ;;
19830 '$CC '*)
19831 # Test whether the compiler implicitly links with -lc since on some
19832 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19833 # to ld, don't add -lc before -lgcc.
19834 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19835echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19836 $rm conftest*
19837 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19838
19839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19840 (eval $ac_compile) 2>&5
19841 ac_status=$?
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } 2>conftest.err; then
19844 soname=conftest
19845 lib=conftest
19846 libobjs=conftest.$ac_objext
19847 deplibs=
19848 wl=$lt_prog_compiler_wl_F77
19849 compiler_flags=-v
19850 linker_flags=-v
19851 verstring=
19852 output_objdir=.
19853 libname=conftest
19854 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19855 allow_undefined_flag_F77=
19856 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19857 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19858 ac_status=$?
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); }
19861 then
19862 archive_cmds_need_lc_F77=no
19863 else
19864 archive_cmds_need_lc_F77=yes
19865 fi
19866 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19867 else
19868 cat conftest.err 1>&5
19869 fi
19870 $rm conftest*
19871 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19872echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19873 ;;
19874 esac
19875 fi
19876 ;;
19877esac
19878
John Criswell47fdd832003-07-14 16:52:07 +000019879echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19880echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19881library_names_spec=
19882libname_spec='lib$name'
19883soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019884shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019885postinstall_cmds=
19886postuninstall_cmds=
19887finish_cmds=
19888finish_eval=
19889shlibpath_var=
19890shlibpath_overrides_runpath=unknown
19891version_type=none
19892dynamic_linker="$host_os ld.so"
19893sys_lib_dlsearch_path_spec="/lib /usr/lib"
19894if test "$GCC" = yes; then
19895 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19896 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19897 # if the path contains ";" then we assume it to be the separator
19898 # otherwise default to the standard path separator (i.e. ":") - it is
19899 # assumed that no part of a normal pathname contains ";" but that should
19900 # okay in the real world where ";" in dirpaths is itself problematic.
19901 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19902 else
19903 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19904 fi
19905else
19906 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19907fi
19908need_lib_prefix=unknown
19909hardcode_into_libs=no
19910
19911# when you set need_version to no, make sure it does not cause -set_version
19912# flags to be left without arguments
19913need_version=unknown
19914
19915case $host_os in
19916aix3*)
19917 version_type=linux
19918 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19919 shlibpath_var=LIBPATH
19920
19921 # AIX 3 has no versioning support, so we append a major version to the name.
19922 soname_spec='${libname}${release}${shared_ext}$major'
19923 ;;
19924
19925aix4* | aix5*)
19926 version_type=linux
19927 need_lib_prefix=no
19928 need_version=no
19929 hardcode_into_libs=yes
19930 if test "$host_cpu" = ia64; then
19931 # AIX 5 supports IA64
19932 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19933 shlibpath_var=LD_LIBRARY_PATH
19934 else
19935 # With GCC up to 2.95.x, collect2 would create an import file
19936 # for dependence libraries. The import file would start with
19937 # the line `#! .'. This would cause the generated library to
19938 # depend on `.', always an invalid library. This was fixed in
19939 # development snapshots of GCC prior to 3.0.
19940 case $host_os in
19941 aix4 | aix4.[01] | aix4.[01].*)
19942 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19943 echo ' yes '
19944 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19945 :
19946 else
19947 can_build_shared=no
19948 fi
19949 ;;
19950 esac
19951 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19952 # soname into executable. Probably we can add versioning support to
19953 # collect2, so additional links can be useful in future.
19954 if test "$aix_use_runtimelinking" = yes; then
19955 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19956 # instead of lib<name>.a to let people know that these are not
19957 # typical AIX shared libraries.
19958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19959 else
19960 # We preserve .a as extension for shared libraries through AIX4.2
19961 # and later when we are not doing run time linking.
19962 library_names_spec='${libname}${release}.a $libname.a'
19963 soname_spec='${libname}${release}${shared_ext}$major'
19964 fi
19965 shlibpath_var=LIBPATH
19966 fi
19967 ;;
19968
19969amigaos*)
19970 library_names_spec='$libname.ixlibrary $libname.a'
19971 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019972 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 +000019973 ;;
19974
19975beos*)
19976 library_names_spec='${libname}${shared_ext}'
19977 dynamic_linker="$host_os ld.so"
19978 shlibpath_var=LIBRARY_PATH
19979 ;;
19980
Reid Spencer2706f8c2004-09-19 23:53:36 +000019981bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019982 version_type=linux
19983 need_version=no
19984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19985 soname_spec='${libname}${release}${shared_ext}$major'
19986 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19987 shlibpath_var=LD_LIBRARY_PATH
19988 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19989 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19990 # the default ld.so.conf also contains /usr/contrib/lib and
19991 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19992 # libtool to hard-code these into programs
19993 ;;
19994
19995cygwin* | mingw* | pw32*)
19996 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019997 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019998 need_version=no
19999 need_lib_prefix=no
20000
20001 case $GCC,$host_os in
20002 yes,cygwin* | yes,mingw* | yes,pw32*)
20003 library_names_spec='$libname.dll.a'
20004 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020005 postinstall_cmds='base_file=`basename \${file}`~
20006 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20007 dldir=$destdir/`dirname \$dlpath`~
20008 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020009 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020010 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20011 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020012 $rm \$dlpath'
20013 shlibpath_overrides_runpath=yes
20014
20015 case $host_os in
20016 cygwin*)
20017 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20018 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 +000020019 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020020 ;;
20021 mingw*)
20022 # MinGW DLLs use traditional 'lib' prefix
20023 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20024 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20025 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20026 # It is most probably a Windows format PATH printed by
20027 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20028 # path with ; separators, and with drive letters. We can handle the
20029 # drive letters (cygwin fileutils understands them), so leave them,
20030 # especially as we might pass files found there to a mingw objdump,
20031 # which wouldn't understand a cygwinified path. Ahh.
20032 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20033 else
20034 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20035 fi
20036 ;;
20037 pw32*)
20038 # pw32 DLLs use 'pw' prefix rather than 'lib'
20039 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20040 ;;
20041 esac
20042 ;;
20043
20044 *)
20045 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20046 ;;
20047 esac
20048 dynamic_linker='Win32 ld.exe'
20049 # FIXME: first we should search . and the directory the executable is in
20050 shlibpath_var=PATH
20051 ;;
20052
20053darwin* | rhapsody*)
20054 dynamic_linker="$host_os dyld"
20055 version_type=darwin
20056 need_lib_prefix=no
20057 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020058 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020059 soname_spec='${libname}${release}${major}$shared_ext'
20060 shlibpath_overrides_runpath=yes
20061 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020062 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020063 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020064 if test "$GCC" = yes; then
20065 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"`
20066 else
20067 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020068 fi
20069 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20070 ;;
20071
20072dgux*)
20073 version_type=linux
20074 need_lib_prefix=no
20075 need_version=no
20076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20077 soname_spec='${libname}${release}${shared_ext}$major'
20078 shlibpath_var=LD_LIBRARY_PATH
20079 ;;
20080
20081freebsd1*)
20082 dynamic_linker=no
20083 ;;
20084
Reid Spencer2706f8c2004-09-19 23:53:36 +000020085kfreebsd*-gnu)
20086 version_type=linux
20087 need_lib_prefix=no
20088 need_version=no
20089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20090 soname_spec='${libname}${release}${shared_ext}$major'
20091 shlibpath_var=LD_LIBRARY_PATH
20092 shlibpath_overrides_runpath=no
20093 hardcode_into_libs=yes
20094 dynamic_linker='GNU ld.so'
20095 ;;
20096
John Criswell47fdd832003-07-14 16:52:07 +000020097freebsd*)
20098 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20099 version_type=freebsd-$objformat
20100 case $version_type in
20101 freebsd-elf*)
20102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20103 need_version=no
20104 need_lib_prefix=no
20105 ;;
20106 freebsd-*)
20107 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20108 need_version=yes
20109 ;;
20110 esac
20111 shlibpath_var=LD_LIBRARY_PATH
20112 case $host_os in
20113 freebsd2*)
20114 shlibpath_overrides_runpath=yes
20115 ;;
20116 freebsd3.01* | freebsdelf3.01*)
20117 shlibpath_overrides_runpath=yes
20118 hardcode_into_libs=yes
20119 ;;
20120 *) # from 3.2 on
20121 shlibpath_overrides_runpath=no
20122 hardcode_into_libs=yes
20123 ;;
20124 esac
20125 ;;
20126
20127gnu*)
20128 version_type=linux
20129 need_lib_prefix=no
20130 need_version=no
20131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20132 soname_spec='${libname}${release}${shared_ext}$major'
20133 shlibpath_var=LD_LIBRARY_PATH
20134 hardcode_into_libs=yes
20135 ;;
20136
20137hpux9* | hpux10* | hpux11*)
20138 # Give a soname corresponding to the major version so that dld.sl refuses to
20139 # link against other versions.
20140 version_type=sunos
20141 need_lib_prefix=no
20142 need_version=no
20143 case "$host_cpu" in
20144 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020145 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020146 hardcode_into_libs=yes
20147 dynamic_linker="$host_os dld.so"
20148 shlibpath_var=LD_LIBRARY_PATH
20149 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20151 soname_spec='${libname}${release}${shared_ext}$major'
20152 if test "X$HPUX_IA64_MODE" = X32; then
20153 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20154 else
20155 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20156 fi
20157 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20158 ;;
20159 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020160 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020161 hardcode_into_libs=yes
20162 dynamic_linker="$host_os dld.sl"
20163 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20164 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20166 soname_spec='${libname}${release}${shared_ext}$major'
20167 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20168 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20169 ;;
20170 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020171 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020172 dynamic_linker="$host_os dld.sl"
20173 shlibpath_var=SHLIB_PATH
20174 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20176 soname_spec='${libname}${release}${shared_ext}$major'
20177 ;;
20178 esac
20179 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20180 postinstall_cmds='chmod 555 $lib'
20181 ;;
20182
20183irix5* | irix6* | nonstopux*)
20184 case $host_os in
20185 nonstopux*) version_type=nonstopux ;;
20186 *)
20187 if test "$lt_cv_prog_gnu_ld" = yes; then
20188 version_type=linux
20189 else
20190 version_type=irix
20191 fi ;;
20192 esac
20193 need_lib_prefix=no
20194 need_version=no
20195 soname_spec='${libname}${release}${shared_ext}$major'
20196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20197 case $host_os in
20198 irix5* | nonstopux*)
20199 libsuff= shlibsuff=
20200 ;;
20201 *)
20202 case $LD in # libtool.m4 will add one of these switches to LD
20203 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20204 libsuff= shlibsuff= libmagic=32-bit;;
20205 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20206 libsuff=32 shlibsuff=N32 libmagic=N32;;
20207 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20208 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20209 *) libsuff= shlibsuff= libmagic=never-match;;
20210 esac
20211 ;;
20212 esac
20213 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20214 shlibpath_overrides_runpath=no
20215 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20216 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20217 hardcode_into_libs=yes
20218 ;;
20219
20220# No shared lib support for Linux oldld, aout, or coff.
20221linux*oldld* | linux*aout* | linux*coff*)
20222 dynamic_linker=no
20223 ;;
20224
20225# This must be Linux ELF.
20226linux*)
20227 version_type=linux
20228 need_lib_prefix=no
20229 need_version=no
20230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20231 soname_spec='${libname}${release}${shared_ext}$major'
20232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20233 shlibpath_var=LD_LIBRARY_PATH
20234 shlibpath_overrides_runpath=no
20235 # This implies no fast_install, which is unacceptable.
20236 # Some rework will be needed to allow for fast_install
20237 # before this can be enabled.
20238 hardcode_into_libs=yes
20239
Reid Spencer2706f8c2004-09-19 23:53:36 +000020240 # Append ld.so.conf contents to the search path
20241 if test -f /etc/ld.so.conf; then
20242 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20243 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20244 fi
20245
John Criswell47fdd832003-07-14 16:52:07 +000020246 # We used to test for /lib/ld.so.1 and disable shared libraries on
20247 # powerpc, because MkLinux only supported shared libraries with the
20248 # GNU dynamic linker. Since this was broken with cross compilers,
20249 # most powerpc-linux boxes support dynamic linking these days and
20250 # people can always --disable-shared, the test was removed, and we
20251 # assume the GNU/Linux dynamic linker is in use.
20252 dynamic_linker='GNU/Linux ld.so'
20253 ;;
20254
Reid Spencer2706f8c2004-09-19 23:53:36 +000020255knetbsd*-gnu)
20256 version_type=linux
20257 need_lib_prefix=no
20258 need_version=no
20259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20260 soname_spec='${libname}${release}${shared_ext}$major'
20261 shlibpath_var=LD_LIBRARY_PATH
20262 shlibpath_overrides_runpath=no
20263 hardcode_into_libs=yes
20264 dynamic_linker='GNU ld.so'
20265 ;;
20266
John Criswell47fdd832003-07-14 16:52:07 +000020267netbsd*)
20268 version_type=sunos
20269 need_lib_prefix=no
20270 need_version=no
20271 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20273 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20274 dynamic_linker='NetBSD (a.out) ld.so'
20275 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020277 soname_spec='${libname}${release}${shared_ext}$major'
20278 dynamic_linker='NetBSD ld.elf_so'
20279 fi
20280 shlibpath_var=LD_LIBRARY_PATH
20281 shlibpath_overrides_runpath=yes
20282 hardcode_into_libs=yes
20283 ;;
20284
20285newsos6)
20286 version_type=linux
20287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20288 shlibpath_var=LD_LIBRARY_PATH
20289 shlibpath_overrides_runpath=yes
20290 ;;
20291
Reid Spencer2706f8c2004-09-19 23:53:36 +000020292nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020293 version_type=linux
20294 need_lib_prefix=no
20295 need_version=no
20296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20297 soname_spec='${libname}${release}${shared_ext}$major'
20298 shlibpath_var=LD_LIBRARY_PATH
20299 shlibpath_overrides_runpath=yes
20300 ;;
20301
20302openbsd*)
20303 version_type=sunos
20304 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020305 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20308 shlibpath_var=LD_LIBRARY_PATH
20309 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20310 case $host_os in
20311 openbsd2.[89] | openbsd2.[89].*)
20312 shlibpath_overrides_runpath=no
20313 ;;
20314 *)
20315 shlibpath_overrides_runpath=yes
20316 ;;
20317 esac
20318 else
20319 shlibpath_overrides_runpath=yes
20320 fi
20321 ;;
20322
20323os2*)
20324 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020325 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020326 need_lib_prefix=no
20327 library_names_spec='$libname${shared_ext} $libname.a'
20328 dynamic_linker='OS/2 ld.exe'
20329 shlibpath_var=LIBPATH
20330 ;;
20331
20332osf3* | osf4* | osf5*)
20333 version_type=osf
20334 need_lib_prefix=no
20335 need_version=no
20336 soname_spec='${libname}${release}${shared_ext}$major'
20337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20338 shlibpath_var=LD_LIBRARY_PATH
20339 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20340 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20341 ;;
20342
20343sco3.2v5*)
20344 version_type=osf
20345 soname_spec='${libname}${release}${shared_ext}$major'
20346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20347 shlibpath_var=LD_LIBRARY_PATH
20348 ;;
20349
20350solaris*)
20351 version_type=linux
20352 need_lib_prefix=no
20353 need_version=no
20354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20355 soname_spec='${libname}${release}${shared_ext}$major'
20356 shlibpath_var=LD_LIBRARY_PATH
20357 shlibpath_overrides_runpath=yes
20358 hardcode_into_libs=yes
20359 # ldd complains unless libraries are executable
20360 postinstall_cmds='chmod +x $lib'
20361 ;;
20362
20363sunos4*)
20364 version_type=sunos
20365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20366 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20367 shlibpath_var=LD_LIBRARY_PATH
20368 shlibpath_overrides_runpath=yes
20369 if test "$with_gnu_ld" = yes; then
20370 need_lib_prefix=no
20371 fi
20372 need_version=yes
20373 ;;
20374
20375sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20376 version_type=linux
20377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20378 soname_spec='${libname}${release}${shared_ext}$major'
20379 shlibpath_var=LD_LIBRARY_PATH
20380 case $host_vendor in
20381 sni)
20382 shlibpath_overrides_runpath=no
20383 need_lib_prefix=no
20384 export_dynamic_flag_spec='${wl}-Blargedynsym'
20385 runpath_var=LD_RUN_PATH
20386 ;;
20387 siemens)
20388 need_lib_prefix=no
20389 ;;
20390 motorola)
20391 need_lib_prefix=no
20392 need_version=no
20393 shlibpath_overrides_runpath=no
20394 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20395 ;;
20396 esac
20397 ;;
20398
20399sysv4*MP*)
20400 if test -d /usr/nec ;then
20401 version_type=linux
20402 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20403 soname_spec='$libname${shared_ext}.$major'
20404 shlibpath_var=LD_LIBRARY_PATH
20405 fi
20406 ;;
20407
20408uts4*)
20409 version_type=linux
20410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20411 soname_spec='${libname}${release}${shared_ext}$major'
20412 shlibpath_var=LD_LIBRARY_PATH
20413 ;;
20414
20415*)
20416 dynamic_linker=no
20417 ;;
20418esac
20419echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20420echo "${ECHO_T}$dynamic_linker" >&6
20421test "$dynamic_linker" = no && can_build_shared=no
20422
Reid Spencer2706f8c2004-09-19 23:53:36 +000020423echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20424echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20425hardcode_action_F77=
20426if test -n "$hardcode_libdir_flag_spec_F77" || \
20427 test -n "$runpath_var_F77" || \
20428 test "X$hardcode_automatic_F77" = "Xyes" ; then
20429
20430 # We can hardcode non-existant directories.
20431 if test "$hardcode_direct_F77" != no &&
20432 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20433 # have to relink, otherwise we might link with an installed library
20434 # when we should be linking with a yet-to-be-installed one
20435 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20436 test "$hardcode_minus_L_F77" != no; then
20437 # Linking always hardcodes the temporary library directory.
20438 hardcode_action_F77=relink
20439 else
20440 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20441 hardcode_action_F77=immediate
20442 fi
20443else
20444 # We cannot hardcode anything, or else we can only hardcode existing
20445 # directories.
20446 hardcode_action_F77=unsupported
20447fi
20448echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20449echo "${ECHO_T}$hardcode_action_F77" >&6
20450
20451if test "$hardcode_action_F77" = relink; then
20452 # Fast installation is not supported
20453 enable_fast_install=no
20454elif test "$shlibpath_overrides_runpath" = yes ||
20455 test "$enable_shared" = no; then
20456 # Fast installation is not necessary
20457 enable_fast_install=needless
20458fi
20459
20460striplib=
20461old_striplib=
20462echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20463echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20464if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20465 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20466 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20467 echo "$as_me:$LINENO: result: yes" >&5
20468echo "${ECHO_T}yes" >&6
20469else
20470# FIXME - insert some real tests, host_os isn't really good enough
20471 case $host_os in
20472 darwin*)
20473 if test -n "$STRIP" ; then
20474 striplib="$STRIP -x"
20475 echo "$as_me:$LINENO: result: yes" >&5
20476echo "${ECHO_T}yes" >&6
20477 else
20478 echo "$as_me:$LINENO: result: no" >&5
20479echo "${ECHO_T}no" >&6
20480fi
20481 ;;
20482 *)
20483 echo "$as_me:$LINENO: result: no" >&5
20484echo "${ECHO_T}no" >&6
20485 ;;
20486 esac
20487fi
20488
20489
John Criswell47fdd832003-07-14 16:52:07 +000020490
20491# The else clause should only fire when bootstrapping the
20492# libtool distribution, otherwise you forgot to ship ltmain.sh
20493# with your package, and you will get complaints that there are
20494# no rules to generate ltmain.sh.
20495if test -f "$ltmain"; then
20496 # See if we are running on zsh, and set the options which allow our commands through
20497 # without removal of \ escapes.
20498 if test -n "${ZSH_VERSION+set}" ; then
20499 setopt NO_GLOB_SUBST
20500 fi
20501 # Now quote all the things that may contain metacharacters while being
20502 # careful not to overquote the AC_SUBSTed values. We take copies of the
20503 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020504 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20505 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020506 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20507 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20508 deplibs_check_method reload_flag reload_cmds need_locks \
20509 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20510 lt_cv_sys_global_symbol_to_c_name_address \
20511 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20512 old_postinstall_cmds old_postuninstall_cmds \
20513 compiler_F77 \
20514 CC_F77 \
20515 LD_F77 \
20516 lt_prog_compiler_wl_F77 \
20517 lt_prog_compiler_pic_F77 \
20518 lt_prog_compiler_static_F77 \
20519 lt_prog_compiler_no_builtin_flag_F77 \
20520 export_dynamic_flag_spec_F77 \
20521 thread_safe_flag_spec_F77 \
20522 whole_archive_flag_spec_F77 \
20523 enable_shared_with_static_runtimes_F77 \
20524 old_archive_cmds_F77 \
20525 old_archive_from_new_cmds_F77 \
20526 predep_objects_F77 \
20527 postdep_objects_F77 \
20528 predeps_F77 \
20529 postdeps_F77 \
20530 compiler_lib_search_path_F77 \
20531 archive_cmds_F77 \
20532 archive_expsym_cmds_F77 \
20533 postinstall_cmds_F77 \
20534 postuninstall_cmds_F77 \
20535 old_archive_from_expsyms_cmds_F77 \
20536 allow_undefined_flag_F77 \
20537 no_undefined_flag_F77 \
20538 export_symbols_cmds_F77 \
20539 hardcode_libdir_flag_spec_F77 \
20540 hardcode_libdir_flag_spec_ld_F77 \
20541 hardcode_libdir_separator_F77 \
20542 hardcode_automatic_F77 \
20543 module_cmds_F77 \
20544 module_expsym_cmds_F77 \
20545 lt_cv_prog_compiler_c_o_F77 \
20546 exclude_expsyms_F77 \
20547 include_expsyms_F77; do
20548
20549 case $var in
20550 old_archive_cmds_F77 | \
20551 old_archive_from_new_cmds_F77 | \
20552 archive_cmds_F77 | \
20553 archive_expsym_cmds_F77 | \
20554 module_cmds_F77 | \
20555 module_expsym_cmds_F77 | \
20556 old_archive_from_expsyms_cmds_F77 | \
20557 export_symbols_cmds_F77 | \
20558 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20559 postinstall_cmds | postuninstall_cmds | \
20560 old_postinstall_cmds | old_postuninstall_cmds | \
20561 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20562 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020563 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 +000020564 ;;
20565 *)
20566 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20567 ;;
20568 esac
20569 done
20570
20571 case $lt_echo in
20572 *'\$0 --fallback-echo"')
20573 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20574 ;;
20575 esac
20576
20577cfgfile="$ofile"
20578
20579 cat <<__EOF__ >> "$cfgfile"
20580# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20581
20582# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20583
20584# Shell to use when invoking shell scripts.
20585SHELL=$lt_SHELL
20586
20587# Whether or not to build shared libraries.
20588build_libtool_libs=$enable_shared
20589
20590# Whether or not to build static libraries.
20591build_old_libs=$enable_static
20592
20593# Whether or not to add -lc for building shared libraries.
20594build_libtool_need_lc=$archive_cmds_need_lc_F77
20595
20596# Whether or not to disallow shared libs when runtime libs are static
20597allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20598
20599# Whether or not to optimize for fast installation.
20600fast_install=$enable_fast_install
20601
20602# The host system.
20603host_alias=$host_alias
20604host=$host
20605
20606# An echo program that does not interpret backslashes.
20607echo=$lt_echo
20608
20609# The archiver.
20610AR=$lt_AR
20611AR_FLAGS=$lt_AR_FLAGS
20612
20613# A C compiler.
20614LTCC=$lt_LTCC
20615
20616# A language-specific compiler.
20617CC=$lt_compiler_F77
20618
20619# Is the compiler the GNU C compiler?
20620with_gcc=$GCC_F77
20621
20622# An ERE matcher.
20623EGREP=$lt_EGREP
20624
20625# The linker used to build libraries.
20626LD=$lt_LD_F77
20627
20628# Whether we need hard or soft links.
20629LN_S=$lt_LN_S
20630
20631# A BSD-compatible nm program.
20632NM=$lt_NM
20633
20634# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020635STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020636
20637# Used to examine libraries when file_magic_cmd begins "file"
20638MAGIC_CMD=$MAGIC_CMD
20639
20640# Used on cygwin: DLL creation program.
20641DLLTOOL="$DLLTOOL"
20642
20643# Used on cygwin: object dumper.
20644OBJDUMP="$OBJDUMP"
20645
20646# Used on cygwin: assembler.
20647AS="$AS"
20648
20649# The name of the directory that contains temporary libtool files.
20650objdir=$objdir
20651
20652# How to create reloadable object files.
20653reload_flag=$lt_reload_flag
20654reload_cmds=$lt_reload_cmds
20655
20656# How to pass a linker flag through the compiler.
20657wl=$lt_lt_prog_compiler_wl_F77
20658
20659# Object file suffix (normally "o").
20660objext="$ac_objext"
20661
20662# Old archive suffix (normally "a").
20663libext="$libext"
20664
20665# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020666shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020667
20668# Executable file suffix (normally "").
20669exeext="$exeext"
20670
20671# Additional compiler flags for building library objects.
20672pic_flag=$lt_lt_prog_compiler_pic_F77
20673pic_mode=$pic_mode
20674
20675# What is the maximum length of a command?
20676max_cmd_len=$lt_cv_sys_max_cmd_len
20677
20678# Does compiler simultaneously support -c and -o options?
20679compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20680
20681# Must we lock files when doing compilation ?
20682need_locks=$lt_need_locks
20683
20684# Do we need the lib prefix for modules?
20685need_lib_prefix=$need_lib_prefix
20686
20687# Do we need a version for libraries?
20688need_version=$need_version
20689
20690# Whether dlopen is supported.
20691dlopen_support=$enable_dlopen
20692
20693# Whether dlopen of programs is supported.
20694dlopen_self=$enable_dlopen_self
20695
20696# Whether dlopen of statically linked programs is supported.
20697dlopen_self_static=$enable_dlopen_self_static
20698
20699# Compiler flag to prevent dynamic linking.
20700link_static_flag=$lt_lt_prog_compiler_static_F77
20701
20702# Compiler flag to turn off builtin functions.
20703no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20704
20705# Compiler flag to allow reflexive dlopens.
20706export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20707
20708# Compiler flag to generate shared objects directly from archives.
20709whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20710
20711# Compiler flag to generate thread-safe objects.
20712thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20713
20714# Library versioning type.
20715version_type=$version_type
20716
20717# Format of library name prefix.
20718libname_spec=$lt_libname_spec
20719
20720# List of archive names. First name is the real one, the rest are links.
20721# The last name is the one that the linker finds with -lNAME.
20722library_names_spec=$lt_library_names_spec
20723
20724# The coded name of the library, if different from the real name.
20725soname_spec=$lt_soname_spec
20726
20727# Commands used to build and install an old-style archive.
20728RANLIB=$lt_RANLIB
20729old_archive_cmds=$lt_old_archive_cmds_F77
20730old_postinstall_cmds=$lt_old_postinstall_cmds
20731old_postuninstall_cmds=$lt_old_postuninstall_cmds
20732
20733# Create an old-style archive from a shared archive.
20734old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20735
20736# Create a temporary old-style archive to link instead of a shared archive.
20737old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20738
20739# Commands used to build and install a shared archive.
20740archive_cmds=$lt_archive_cmds_F77
20741archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20742postinstall_cmds=$lt_postinstall_cmds
20743postuninstall_cmds=$lt_postuninstall_cmds
20744
20745# Commands used to build a loadable module (assumed same as above if empty)
20746module_cmds=$lt_module_cmds_F77
20747module_expsym_cmds=$lt_module_expsym_cmds_F77
20748
20749# Commands to strip libraries.
20750old_striplib=$lt_old_striplib
20751striplib=$lt_striplib
20752
20753# Dependencies to place before the objects being linked to create a
20754# shared library.
20755predep_objects=$lt_predep_objects_F77
20756
20757# Dependencies to place after the objects being linked to create a
20758# shared library.
20759postdep_objects=$lt_postdep_objects_F77
20760
20761# Dependencies to place before the objects being linked to create a
20762# shared library.
20763predeps=$lt_predeps_F77
20764
20765# Dependencies to place after the objects being linked to create a
20766# shared library.
20767postdeps=$lt_postdeps_F77
20768
20769# The library search path used internally by the compiler when linking
20770# a shared library.
20771compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20772
20773# Method to check whether dependent libraries are shared objects.
20774deplibs_check_method=$lt_deplibs_check_method
20775
20776# Command to use when deplibs_check_method == file_magic.
20777file_magic_cmd=$lt_file_magic_cmd
20778
20779# Flag that allows shared libraries with undefined symbols to be built.
20780allow_undefined_flag=$lt_allow_undefined_flag_F77
20781
20782# Flag that forces no undefined symbols.
20783no_undefined_flag=$lt_no_undefined_flag_F77
20784
20785# Commands used to finish a libtool library installation in a directory.
20786finish_cmds=$lt_finish_cmds
20787
20788# Same as above, but a single script fragment to be evaled but not shown.
20789finish_eval=$lt_finish_eval
20790
20791# Take the output of nm and produce a listing of raw symbols and C names.
20792global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20793
20794# Transform the output of nm in a proper C declaration
20795global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20796
20797# Transform the output of nm in a C name address pair
20798global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20799
20800# This is the shared library runtime path variable.
20801runpath_var=$runpath_var
20802
20803# This is the shared library path variable.
20804shlibpath_var=$shlibpath_var
20805
20806# Is shlibpath searched before the hard-coded library search path?
20807shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20808
20809# How to hardcode a shared library path into an executable.
20810hardcode_action=$hardcode_action_F77
20811
20812# Whether we should hardcode library paths into libraries.
20813hardcode_into_libs=$hardcode_into_libs
20814
20815# Flag to hardcode \$libdir into a binary during linking.
20816# This must work even if \$libdir does not exist.
20817hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20818
20819# If ld is used when linking, flag to hardcode \$libdir into
20820# a binary during linking. This must work even if \$libdir does
20821# not exist.
20822hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20823
20824# Whether we need a single -rpath flag with a separated argument.
20825hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20826
20827# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20828# resulting binary.
20829hardcode_direct=$hardcode_direct_F77
20830
20831# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20832# resulting binary.
20833hardcode_minus_L=$hardcode_minus_L_F77
20834
20835# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20836# the resulting binary.
20837hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20838
20839# Set to yes if building a shared library automatically hardcodes DIR into the library
20840# and all subsequent libraries and executables linked against it.
20841hardcode_automatic=$hardcode_automatic_F77
20842
20843# Variables whose values should be saved in libtool wrapper scripts and
20844# restored at relink time.
20845variables_saved_for_relink="$variables_saved_for_relink"
20846
20847# Whether libtool must link a program against all its dependency libraries.
20848link_all_deplibs=$link_all_deplibs_F77
20849
20850# Compile-time system search path for libraries
20851sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20852
20853# Run-time system search path for libraries
20854sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20855
20856# Fix the shell variable \$srcfile for the compiler.
20857fix_srcfile_path="$fix_srcfile_path_F77"
20858
20859# Set to yes if exported symbols are required.
20860always_export_symbols=$always_export_symbols_F77
20861
20862# The commands to list exported symbols.
20863export_symbols_cmds=$lt_export_symbols_cmds_F77
20864
20865# The commands to extract the exported symbol list from a shared archive.
20866extract_expsyms_cmds=$lt_extract_expsyms_cmds
20867
20868# Symbols that should not be listed in the preloaded symbols.
20869exclude_expsyms=$lt_exclude_expsyms_F77
20870
20871# Symbols that must always be exported.
20872include_expsyms=$lt_include_expsyms_F77
20873
20874# ### END LIBTOOL TAG CONFIG: $tagname
20875
20876__EOF__
20877
20878
20879else
20880 # If there is no Makefile yet, we rely on a make rule to execute
20881 # `config.status --recheck' to rerun these tests and create the
20882 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020883 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20884 if test -f "$ltmain_in"; then
20885 test -f Makefile && make "$ltmain"
20886 fi
John Criswell47fdd832003-07-14 16:52:07 +000020887fi
20888
20889
20890ac_ext=c
20891ac_cpp='$CPP $CPPFLAGS'
20892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20894ac_compiler_gnu=$ac_cv_c_compiler_gnu
20895
20896CC="$lt_save_CC"
20897
20898 else
20899 tagname=""
20900 fi
20901 ;;
20902
20903 GCJ)
20904 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020905 ac_ext=c
20906ac_cpp='$CPP $CPPFLAGS'
20907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20909ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000020910
20911
20912# Source file extension for Java test sources.
20913ac_ext=java
20914
20915# Object file extension for compiled Java test sources.
20916objext=o
20917objext_GCJ=$objext
20918
20919# Code to be used in simple compile tests
20920lt_simple_compile_test_code="class foo {}\n"
20921
20922# Code to be used in simple link tests
20923lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20924
20925# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20926
20927# If no C compiler was specified, use CC.
20928LTCC=${LTCC-"$CC"}
20929
20930# Allow CC to be a program name with arguments.
20931compiler=$CC
20932
20933
20934# Allow CC to be a program name with arguments.
20935lt_save_CC="$CC"
20936CC=${GCJ-"gcj"}
20937compiler=$CC
20938compiler_GCJ=$CC
20939
20940# GCJ did not exist at the time GCC didn't implicitly link libc in.
20941archive_cmds_need_lc_GCJ=no
20942
John Criswell47fdd832003-07-14 16:52:07 +000020943
20944lt_prog_compiler_no_builtin_flag_GCJ=
20945
20946if test "$GCC" = yes; then
20947 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20948
Reid Spencer2706f8c2004-09-19 23:53:36 +000020949
20950echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020951echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20952if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20953 echo $ECHO_N "(cached) $ECHO_C" >&6
20954else
20955 lt_cv_prog_compiler_rtti_exceptions=no
20956 ac_outfile=conftest.$ac_objext
20957 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20958 lt_compiler_flag="-fno-rtti -fno-exceptions"
20959 # Insert the option either (1) after the last *FLAGS variable, or
20960 # (2) before a word containing "conftest.", or (3) at the end.
20961 # Note that $ac_compile itself does not contain backslashes and begins
20962 # with a dollar sign (not a hyphen), so the echo should work correctly.
20963 # The option is referenced via a variable to avoid confusing sed.
20964 lt_compile=`echo "$ac_compile" | $SED \
20965 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20967 -e 's:$: $lt_compiler_flag:'`
Reid Spencer0fcb9412004-11-30 08:11:54 +000020968 (eval echo "\"\$as_me:20968: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020969 (eval "$lt_compile" 2>conftest.err)
20970 ac_status=$?
20971 cat conftest.err >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +000020972 echo "$as_me:20972: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020973 if (exit $ac_status) && test -s "$ac_outfile"; then
20974 # The compiler can only warn and ignore the option if not recognized
20975 # So say no if there are warnings
20976 if test ! -s conftest.err; then
20977 lt_cv_prog_compiler_rtti_exceptions=yes
20978 fi
20979 fi
20980 $rm conftest*
20981
20982fi
20983echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20984echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20985
20986if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20987 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20988else
20989 :
20990fi
20991
20992fi
20993
20994lt_prog_compiler_wl_GCJ=
20995lt_prog_compiler_pic_GCJ=
20996lt_prog_compiler_static_GCJ=
20997
20998echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20999echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21000
21001 if test "$GCC" = yes; then
21002 lt_prog_compiler_wl_GCJ='-Wl,'
21003 lt_prog_compiler_static_GCJ='-static'
21004
21005 case $host_os in
21006 aix*)
21007 # All AIX code is PIC.
21008 if test "$host_cpu" = ia64; then
21009 # AIX 5 now supports IA64 processor
21010 lt_prog_compiler_static_GCJ='-Bstatic'
21011 fi
21012 ;;
21013
21014 amigaos*)
21015 # FIXME: we need at least 68020 code to build shared libraries, but
21016 # adding the `-m68020' flag to GCC prevents building anything better,
21017 # like `-m68040'.
21018 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21019 ;;
21020
21021 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21022 # PIC is the default for these OSes.
21023 ;;
21024
21025 mingw* | pw32* | os2*)
21026 # This hack is so that the source file can tell whether it is being
21027 # built for inclusion in a dll (and should export symbols for example).
21028 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21029 ;;
21030
21031 darwin* | rhapsody*)
21032 # PIC is the default on this platform
21033 # Common symbols not allowed in MH_DYLIB files
21034 lt_prog_compiler_pic_GCJ='-fno-common'
21035 ;;
21036
21037 msdosdjgpp*)
21038 # Just because we use GCC doesn't mean we suddenly get shared libraries
21039 # on systems that don't support them.
21040 lt_prog_compiler_can_build_shared_GCJ=no
21041 enable_shared=no
21042 ;;
21043
21044 sysv4*MP*)
21045 if test -d /usr/nec; then
21046 lt_prog_compiler_pic_GCJ=-Kconform_pic
21047 fi
21048 ;;
21049
21050 hpux*)
21051 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21052 # not for PA HP-UX.
21053 case "$host_cpu" in
21054 hppa*64*|ia64*)
21055 # +Z the default
21056 ;;
21057 *)
21058 lt_prog_compiler_pic_GCJ='-fPIC'
21059 ;;
21060 esac
21061 ;;
21062
21063 *)
21064 lt_prog_compiler_pic_GCJ='-fPIC'
21065 ;;
21066 esac
21067 else
21068 # PORTME Check for flag to pass linker flags through the system compiler.
21069 case $host_os in
21070 aix*)
21071 lt_prog_compiler_wl_GCJ='-Wl,'
21072 if test "$host_cpu" = ia64; then
21073 # AIX 5 now supports IA64 processor
21074 lt_prog_compiler_static_GCJ='-Bstatic'
21075 else
21076 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21077 fi
21078 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021079 darwin*)
21080 # PIC is the default on this platform
21081 # Common symbols not allowed in MH_DYLIB files
21082 case "$cc_basename" in
21083 xlc*)
21084 lt_prog_compiler_pic_GCJ='-qnocommon'
21085 lt_prog_compiler_wl_GCJ='-Wl,'
21086 ;;
21087 esac
21088 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021089
21090 mingw* | pw32* | os2*)
21091 # This hack is so that the source file can tell whether it is being
21092 # built for inclusion in a dll (and should export symbols for example).
21093 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21094 ;;
21095
21096 hpux9* | hpux10* | hpux11*)
21097 lt_prog_compiler_wl_GCJ='-Wl,'
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='+Z'
21106 ;;
21107 esac
21108 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21109 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21110 ;;
21111
21112 irix5* | irix6* | nonstopux*)
21113 lt_prog_compiler_wl_GCJ='-Wl,'
21114 # PIC (with -KPIC) is the default.
21115 lt_prog_compiler_static_GCJ='-non_shared'
21116 ;;
21117
21118 newsos6)
21119 lt_prog_compiler_pic_GCJ='-KPIC'
21120 lt_prog_compiler_static_GCJ='-Bstatic'
21121 ;;
21122
21123 linux*)
21124 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021125 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021126 lt_prog_compiler_wl_GCJ='-Wl,'
21127 lt_prog_compiler_pic_GCJ='-KPIC'
21128 lt_prog_compiler_static_GCJ='-static'
21129 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021130 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021131 lt_prog_compiler_wl_GCJ='-Wl,'
21132 # All Alpha code is PIC.
21133 lt_prog_compiler_static_GCJ='-non_shared'
21134 ;;
21135 esac
21136 ;;
21137
21138 osf3* | osf4* | osf5*)
21139 lt_prog_compiler_wl_GCJ='-Wl,'
21140 # All OSF/1 code is PIC.
21141 lt_prog_compiler_static_GCJ='-non_shared'
21142 ;;
21143
21144 sco3.2v5*)
21145 lt_prog_compiler_pic_GCJ='-Kpic'
21146 lt_prog_compiler_static_GCJ='-dn'
21147 ;;
21148
21149 solaris*)
21150 lt_prog_compiler_wl_GCJ='-Wl,'
21151 lt_prog_compiler_pic_GCJ='-KPIC'
21152 lt_prog_compiler_static_GCJ='-Bstatic'
21153 ;;
21154
21155 sunos4*)
21156 lt_prog_compiler_wl_GCJ='-Qoption ld '
21157 lt_prog_compiler_pic_GCJ='-PIC'
21158 lt_prog_compiler_static_GCJ='-Bstatic'
21159 ;;
21160
21161 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21162 lt_prog_compiler_wl_GCJ='-Wl,'
21163 lt_prog_compiler_pic_GCJ='-KPIC'
21164 lt_prog_compiler_static_GCJ='-Bstatic'
21165 ;;
21166
21167 sysv4*MP*)
21168 if test -d /usr/nec ;then
21169 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21170 lt_prog_compiler_static_GCJ='-Bstatic'
21171 fi
21172 ;;
21173
21174 uts4*)
21175 lt_prog_compiler_pic_GCJ='-pic'
21176 lt_prog_compiler_static_GCJ='-Bstatic'
21177 ;;
21178
21179 *)
21180 lt_prog_compiler_can_build_shared_GCJ=no
21181 ;;
21182 esac
21183 fi
21184
21185echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21186echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21187
21188#
21189# Check to make sure the PIC flag actually works.
21190#
21191if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021192
21193echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021194echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21195if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21196 echo $ECHO_N "(cached) $ECHO_C" >&6
21197else
21198 lt_prog_compiler_pic_works_GCJ=no
21199 ac_outfile=conftest.$ac_objext
21200 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21201 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21202 # Insert the option either (1) after the last *FLAGS variable, or
21203 # (2) before a word containing "conftest.", or (3) at the end.
21204 # Note that $ac_compile itself does not contain backslashes and begins
21205 # with a dollar sign (not a hyphen), so the echo should work correctly.
21206 # The option is referenced via a variable to avoid confusing sed.
21207 lt_compile=`echo "$ac_compile" | $SED \
21208 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21210 -e 's:$: $lt_compiler_flag:'`
Reid Spencer0fcb9412004-11-30 08:11:54 +000021211 (eval echo "\"\$as_me:21211: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021212 (eval "$lt_compile" 2>conftest.err)
21213 ac_status=$?
21214 cat conftest.err >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +000021215 echo "$as_me:21215: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021216 if (exit $ac_status) && test -s "$ac_outfile"; then
21217 # The compiler can only warn and ignore the option if not recognized
21218 # So say no if there are warnings
21219 if test ! -s conftest.err; then
21220 lt_prog_compiler_pic_works_GCJ=yes
21221 fi
21222 fi
21223 $rm conftest*
21224
21225fi
21226echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21227echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21228
21229if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21230 case $lt_prog_compiler_pic_GCJ in
21231 "" | " "*) ;;
21232 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21233 esac
21234else
21235 lt_prog_compiler_pic_GCJ=
21236 lt_prog_compiler_can_build_shared_GCJ=no
21237fi
21238
21239fi
21240case "$host_os" in
21241 # For platforms which do not support PIC, -DPIC is meaningless:
21242 *djgpp*)
21243 lt_prog_compiler_pic_GCJ=
21244 ;;
21245 *)
21246 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21247 ;;
21248esac
21249
21250echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21251echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21252if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21253 echo $ECHO_N "(cached) $ECHO_C" >&6
21254else
21255 lt_cv_prog_compiler_c_o_GCJ=no
21256 $rm -r conftest 2>/dev/null
21257 mkdir conftest
21258 cd conftest
21259 mkdir out
21260 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21261
John Criswell47fdd832003-07-14 16:52:07 +000021262 lt_compiler_flag="-o out/conftest2.$ac_objext"
21263 # Insert the option either (1) after the last *FLAGS variable, or
21264 # (2) before a word containing "conftest.", or (3) at the end.
21265 # Note that $ac_compile itself does not contain backslashes and begins
21266 # with a dollar sign (not a hyphen), so the echo should work correctly.
21267 lt_compile=`echo "$ac_compile" | $SED \
21268 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21270 -e 's:$: $lt_compiler_flag:'`
Reid Spencer0fcb9412004-11-30 08:11:54 +000021271 (eval echo "\"\$as_me:21271: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021272 (eval "$lt_compile" 2>out/conftest.err)
21273 ac_status=$?
21274 cat out/conftest.err >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +000021275 echo "$as_me:21275: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021276 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21277 then
21278 # The compiler can only warn and ignore the option if not recognized
21279 # So say no if there are warnings
21280 if test ! -s out/conftest.err; then
21281 lt_cv_prog_compiler_c_o_GCJ=yes
21282 fi
21283 fi
21284 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021285 $rm conftest*
21286 # SGI C++ compiler will create directory out/ii_files/ for
21287 # template instantiation
21288 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21289 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021290 cd ..
21291 rmdir conftest
21292 $rm conftest*
21293
21294fi
21295echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21296echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21297
21298
21299hard_links="nottested"
21300if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21301 # do not overwrite the value of need_locks provided by the user
21302 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21303echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21304 hard_links=yes
21305 $rm conftest*
21306 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21307 touch conftest.a
21308 ln conftest.a conftest.b 2>&5 || hard_links=no
21309 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21310 echo "$as_me:$LINENO: result: $hard_links" >&5
21311echo "${ECHO_T}$hard_links" >&6
21312 if test "$hard_links" = no; then
21313 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21314echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21315 need_locks=warn
21316 fi
21317else
21318 need_locks=no
21319fi
21320
21321echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21322echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21323
21324 runpath_var=
21325 allow_undefined_flag_GCJ=
21326 enable_shared_with_static_runtimes_GCJ=no
21327 archive_cmds_GCJ=
21328 archive_expsym_cmds_GCJ=
21329 old_archive_From_new_cmds_GCJ=
21330 old_archive_from_expsyms_cmds_GCJ=
21331 export_dynamic_flag_spec_GCJ=
21332 whole_archive_flag_spec_GCJ=
21333 thread_safe_flag_spec_GCJ=
21334 hardcode_libdir_flag_spec_GCJ=
21335 hardcode_libdir_flag_spec_ld_GCJ=
21336 hardcode_libdir_separator_GCJ=
21337 hardcode_direct_GCJ=no
21338 hardcode_minus_L_GCJ=no
21339 hardcode_shlibpath_var_GCJ=unsupported
21340 link_all_deplibs_GCJ=unknown
21341 hardcode_automatic_GCJ=no
21342 module_cmds_GCJ=
21343 module_expsym_cmds_GCJ=
21344 always_export_symbols_GCJ=no
21345 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21346 # include_expsyms should be a list of space-separated symbols to be *always*
21347 # included in the symbol list
21348 include_expsyms_GCJ=
21349 # exclude_expsyms can be an extended regexp of symbols to exclude
21350 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21351 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21352 # as well as any symbol that contains `d'.
21353 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21354 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21355 # platforms (ab)use it in PIC code, but their linkers get confused if
21356 # the symbol is explicitly referenced. Since portable code cannot
21357 # rely on this symbol name, it's probably fine to never include it in
21358 # preloaded symbol tables.
21359 extract_expsyms_cmds=
21360
21361 case $host_os in
21362 cygwin* | mingw* | pw32*)
21363 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21364 # When not using gcc, we currently assume that we are using
21365 # Microsoft Visual C++.
21366 if test "$GCC" != yes; then
21367 with_gnu_ld=no
21368 fi
21369 ;;
21370 openbsd*)
21371 with_gnu_ld=no
21372 ;;
21373 esac
21374
21375 ld_shlibs_GCJ=yes
21376 if test "$with_gnu_ld" = yes; then
21377 # If archive_cmds runs LD, not CC, wlarc should be empty
21378 wlarc='${wl}'
21379
21380 # See if GNU ld supports shared libraries.
21381 case $host_os in
21382 aix3* | aix4* | aix5*)
21383 # On AIX/PPC, the GNU linker is very broken
21384 if test "$host_cpu" != ia64; then
21385 ld_shlibs_GCJ=no
21386 cat <<EOF 1>&2
21387
21388*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21389*** to be unable to reliably create shared libraries on AIX.
21390*** Therefore, libtool is disabling shared libraries support. If you
21391*** really care for shared libraries, you may want to modify your PATH
21392*** so that a non-GNU linker is found, and then restart.
21393
21394EOF
21395 fi
21396 ;;
21397
21398 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021399 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 +000021400 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21401 hardcode_minus_L_GCJ=yes
21402
21403 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21404 # that the semantics of dynamic libraries on AmigaOS, at least up
21405 # to version 4, is to share data among multiple programs linked
21406 # with the same dynamic library. Since this doesn't match the
21407 # behavior of shared libraries on other platforms, we can't use
21408 # them.
21409 ld_shlibs_GCJ=no
21410 ;;
21411
21412 beos*)
21413 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21414 allow_undefined_flag_GCJ=unsupported
21415 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21416 # support --undefined. This deserves some investigation. FIXME
21417 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21418 else
21419 ld_shlibs_GCJ=no
21420 fi
21421 ;;
21422
21423 cygwin* | mingw* | pw32*)
21424 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21425 # as there is no search path for DLLs.
21426 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21427 allow_undefined_flag_GCJ=unsupported
21428 always_export_symbols_GCJ=no
21429 enable_shared_with_static_runtimes_GCJ=yes
21430 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21431
21432 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21433 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21434 # If the export-symbols file already is a .def file (1st line
21435 # is EXPORTS), use it as is; otherwise, prepend...
21436 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21437 cp $export_symbols $output_objdir/$soname.def;
21438 else
21439 echo EXPORTS > $output_objdir/$soname.def;
21440 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021441 fi~
21442 $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 +000021443 else
21444 ld_shlibs=no
21445 fi
21446 ;;
21447
21448 netbsd*)
21449 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21450 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21451 wlarc=
21452 else
21453 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21454 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21455 fi
21456 ;;
21457
21458 solaris* | sysv5*)
21459 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21460 ld_shlibs_GCJ=no
21461 cat <<EOF 1>&2
21462
21463*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21464*** create shared libraries on Solaris systems. Therefore, libtool
21465*** is disabling shared libraries support. We urge you to upgrade GNU
21466*** binutils to release 2.9.1 or newer. Another option is to modify
21467*** your PATH or compiler configuration so that the native linker is
21468*** used, and then restart.
21469
21470EOF
21471 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21472 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21473 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21474 else
21475 ld_shlibs_GCJ=no
21476 fi
21477 ;;
21478
21479 sunos4*)
21480 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21481 wlarc=
21482 hardcode_direct_GCJ=yes
21483 hardcode_shlibpath_var_GCJ=no
21484 ;;
21485
Reid Spencer2706f8c2004-09-19 23:53:36 +000021486 linux*)
21487 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21488 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21489 archive_cmds_GCJ="$tmp_archive_cmds"
21490 supports_anon_versioning=no
21491 case `$LD -v 2>/dev/null` in
21492 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21493 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21494 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21495 *\ 2.11.*) ;; # other 2.11 versions
21496 *) supports_anon_versioning=yes ;;
21497 esac
21498 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021499 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21500cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21501$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021502 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21503 else
21504 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21505 fi
21506 else
21507 ld_shlibs_GCJ=no
21508 fi
21509 ;;
21510
John Criswell47fdd832003-07-14 16:52:07 +000021511 *)
21512 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21513 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21514 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21515 else
21516 ld_shlibs_GCJ=no
21517 fi
21518 ;;
21519 esac
21520
21521 if test "$ld_shlibs_GCJ" = yes; then
21522 runpath_var=LD_RUN_PATH
21523 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21524 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21525 # ancient GNU ld didn't support --whole-archive et. al.
21526 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21527 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21528 else
21529 whole_archive_flag_spec_GCJ=
21530 fi
21531 fi
21532 else
21533 # PORTME fill in a description of your system's linker (not GNU ld)
21534 case $host_os in
21535 aix3*)
21536 allow_undefined_flag_GCJ=unsupported
21537 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021538 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 +000021539 # Note: this linker hardcodes the directories in LIBPATH if there
21540 # are no directories specified by -L.
21541 hardcode_minus_L_GCJ=yes
21542 if test "$GCC" = yes && test -z "$link_static_flag"; then
21543 # Neither direct hardcoding nor static linking is supported with a
21544 # broken collect2.
21545 hardcode_direct_GCJ=unsupported
21546 fi
21547 ;;
21548
21549 aix4* | aix5*)
21550 if test "$host_cpu" = ia64; then
21551 # On IA64, the linker does run time linking by default, so we don't
21552 # have to do anything special.
21553 aix_use_runtimelinking=no
21554 exp_sym_flag='-Bexport'
21555 no_entry_flag=""
21556 else
21557 # If we're using GNU nm, then we don't want the "-C" option.
21558 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21559 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21560 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'
21561 else
21562 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'
21563 fi
21564 aix_use_runtimelinking=no
21565
21566 # Test if we are trying to use run time linking or normal
21567 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21568 # need to do runtime linking.
21569 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21570 for ld_flag in $LDFLAGS; do
21571 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21572 aix_use_runtimelinking=yes
21573 break
21574 fi
21575 done
21576 esac
21577
21578 exp_sym_flag='-bexport'
21579 no_entry_flag='-bnoentry'
21580 fi
21581
21582 # When large executables or shared objects are built, AIX ld can
21583 # have problems creating the table of contents. If linking a library
21584 # or program results in "error TOC overflow" add -mminimal-toc to
21585 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21586 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21587
21588 archive_cmds_GCJ=''
21589 hardcode_direct_GCJ=yes
21590 hardcode_libdir_separator_GCJ=':'
21591 link_all_deplibs_GCJ=yes
21592
21593 if test "$GCC" = yes; then
21594 case $host_os in aix4.012|aix4.012.*)
21595 # We only want to do this on AIX 4.2 and lower, the check
21596 # below for broken collect2 doesn't work under 4.3+
21597 collect2name=`${CC} -print-prog-name=collect2`
21598 if test -f "$collect2name" && \
21599 strings "$collect2name" | grep resolve_lib_name >/dev/null
21600 then
21601 # We have reworked collect2
21602 hardcode_direct_GCJ=yes
21603 else
21604 # We have old collect2
21605 hardcode_direct_GCJ=unsupported
21606 # It fails to find uninstalled libraries when the uninstalled
21607 # path is not listed in the libpath. Setting hardcode_minus_L
21608 # to unsupported forces relinking
21609 hardcode_minus_L_GCJ=yes
21610 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21611 hardcode_libdir_separator_GCJ=
21612 fi
21613 esac
21614 shared_flag='-shared'
21615 else
21616 # not using gcc
21617 if test "$host_cpu" = ia64; then
21618 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21619 # chokes on -Wl,-G. The following line is correct:
21620 shared_flag='-G'
21621 else
21622 if test "$aix_use_runtimelinking" = yes; then
21623 shared_flag='${wl}-G'
21624 else
21625 shared_flag='${wl}-bM:SRE'
21626 fi
21627 fi
21628 fi
21629
21630 # It seems that -bexpall does not export symbols beginning with
21631 # underscore (_), so it is better to generate a list of symbols to export.
21632 always_export_symbols_GCJ=yes
21633 if test "$aix_use_runtimelinking" = yes; then
21634 # Warning - without using the other runtime loading flags (-brtl),
21635 # -berok will link without error, but may produce a broken library.
21636 allow_undefined_flag_GCJ='-berok'
21637 # Determine the default libpath from the value encoded in an empty executable.
21638 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021639/* confdefs.h. */
21640_ACEOF
21641cat confdefs.h >>conftest.$ac_ext
21642cat >>conftest.$ac_ext <<_ACEOF
21643/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021644
John Criswell47fdd832003-07-14 16:52:07 +000021645int
21646main ()
21647{
21648
21649 ;
21650 return 0;
21651}
21652_ACEOF
21653rm -f conftest.$ac_objext conftest$ac_exeext
21654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021655 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021656 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021657 grep -v '^ *+' conftest.er1 >conftest.err
21658 rm -f conftest.er1
21659 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021662 { ac_try='test -z "$ac_c_werror_flag"
21663 || test ! -s conftest.err'
21664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21665 (eval $ac_try) 2>&5
21666 ac_status=$?
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); }; } &&
21669 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21671 (eval $ac_try) 2>&5
21672 ac_status=$?
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); }; }; then
21675
21676aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21677}'`
21678# Check for a 64-bit object if we didn't find anything.
21679if 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; }
21680}'`; fi
21681else
21682 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021683sed 's/^/| /' conftest.$ac_ext >&5
21684
John Criswell47fdd832003-07-14 16:52:07 +000021685fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021686rm -f conftest.err conftest.$ac_objext \
21687 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021688if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21689
21690 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21691 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"
21692 else
21693 if test "$host_cpu" = ia64; then
21694 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21695 allow_undefined_flag_GCJ="-z nodefs"
21696 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"
21697 else
21698 # Determine the default libpath from the value encoded in an empty executable.
21699 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021700/* confdefs.h. */
21701_ACEOF
21702cat confdefs.h >>conftest.$ac_ext
21703cat >>conftest.$ac_ext <<_ACEOF
21704/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021705
John Criswell47fdd832003-07-14 16:52:07 +000021706int
21707main ()
21708{
21709
21710 ;
21711 return 0;
21712}
21713_ACEOF
21714rm -f conftest.$ac_objext conftest$ac_exeext
21715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021716 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021717 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021718 grep -v '^ *+' conftest.er1 >conftest.err
21719 rm -f conftest.er1
21720 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021723 { ac_try='test -z "$ac_c_werror_flag"
21724 || test ! -s conftest.err'
21725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21726 (eval $ac_try) 2>&5
21727 ac_status=$?
21728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); }; } &&
21730 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21732 (eval $ac_try) 2>&5
21733 ac_status=$?
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); }; }; then
21736
21737aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21738}'`
21739# Check for a 64-bit object if we didn't find anything.
21740if 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; }
21741}'`; fi
21742else
21743 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021744sed 's/^/| /' conftest.$ac_ext >&5
21745
John Criswell47fdd832003-07-14 16:52:07 +000021746fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021747rm -f conftest.err conftest.$ac_objext \
21748 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021749if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21750
21751 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21752 # Warning - without using the other run time loading flags,
21753 # -berok will link without error, but may produce a broken library.
21754 no_undefined_flag_GCJ=' ${wl}-bernotok'
21755 allow_undefined_flag_GCJ=' ${wl}-berok'
21756 # -bexpall does not export symbols beginning with underscore (_)
21757 always_export_symbols_GCJ=yes
21758 # Exported symbols can be pulled into shared objects from archives
21759 whole_archive_flag_spec_GCJ=' '
21760 archive_cmds_need_lc_GCJ=yes
21761 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000021762 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 +000021763 fi
21764 fi
21765 ;;
21766
21767 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021768 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 +000021769 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21770 hardcode_minus_L_GCJ=yes
21771 # see comment about different semantics on the GNU ld section
21772 ld_shlibs_GCJ=no
21773 ;;
21774
Reid Spencer2706f8c2004-09-19 23:53:36 +000021775 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021776 export_dynamic_flag_spec_GCJ=-rdynamic
21777 ;;
21778
21779 cygwin* | mingw* | pw32*)
21780 # When not using gcc, we currently assume that we are using
21781 # Microsoft Visual C++.
21782 # hardcode_libdir_flag_spec is actually meaningless, as there is
21783 # no search path for DLLs.
21784 hardcode_libdir_flag_spec_GCJ=' '
21785 allow_undefined_flag_GCJ=unsupported
21786 # Tell ltmain to make .lib files, not .a files.
21787 libext=lib
21788 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021789 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021790 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021791 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 +000021792 # The linker will automatically build a .lib file if we build a DLL.
21793 old_archive_From_new_cmds_GCJ='true'
21794 # FIXME: Should let the user specify the lib program.
21795 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21796 fix_srcfile_path='`cygpath -w "$srcfile"`'
21797 enable_shared_with_static_runtimes_GCJ=yes
21798 ;;
21799
21800 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000021801 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021802 rhapsody* | darwin1.[012])
21803 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21804 ;;
21805 *) # Darwin 1.3 on
21806 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21807 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21808 else
21809 case ${MACOSX_DEPLOYMENT_TARGET} in
21810 10.[012])
21811 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21812 ;;
21813 10.*)
21814 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21815 ;;
21816 esac
21817 fi
21818 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021819 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021820 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000021821 hardcode_direct_GCJ=no
21822 hardcode_automatic_GCJ=yes
21823 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021824 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000021825 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021826 if test "$GCC" = yes ; then
21827 output_verbose_link_cmd='echo'
21828 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21829 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21830 # 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 +000021831 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}'
21832 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 +000021833 else
21834 case "$cc_basename" in
21835 xlc*)
21836 output_verbose_link_cmd='echo'
21837 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21838 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21839 # 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 +000021840 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}'
21841 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 +000021842 ;;
21843 *)
21844 ld_shlibs_GCJ=no
21845 ;;
21846 esac
John Criswell47fdd832003-07-14 16:52:07 +000021847 fi
21848 ;;
21849
21850 dgux*)
21851 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21852 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21853 hardcode_shlibpath_var_GCJ=no
21854 ;;
21855
21856 freebsd1*)
21857 ld_shlibs_GCJ=no
21858 ;;
21859
21860 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21861 # support. Future versions do this automatically, but an explicit c++rt0.o
21862 # does not break anything, and helps significantly (at the cost of a little
21863 # extra space).
21864 freebsd2.2*)
21865 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21866 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21867 hardcode_direct_GCJ=yes
21868 hardcode_shlibpath_var_GCJ=no
21869 ;;
21870
21871 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21872 freebsd2*)
21873 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21874 hardcode_direct_GCJ=yes
21875 hardcode_minus_L_GCJ=yes
21876 hardcode_shlibpath_var_GCJ=no
21877 ;;
21878
21879 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021880 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000021881 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21882 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21883 hardcode_direct_GCJ=yes
21884 hardcode_shlibpath_var_GCJ=no
21885 ;;
21886
21887 hpux9*)
21888 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021889 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 +000021890 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021891 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 +000021892 fi
21893 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21894 hardcode_libdir_separator_GCJ=:
21895 hardcode_direct_GCJ=yes
21896
21897 # hardcode_minus_L: Not really in the search PATH,
21898 # but as the default location of the library.
21899 hardcode_minus_L_GCJ=yes
21900 export_dynamic_flag_spec_GCJ='${wl}-E'
21901 ;;
21902
21903 hpux10* | hpux11*)
21904 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21905 case "$host_cpu" in
21906 hppa*64*|ia64*)
21907 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21908 ;;
21909 *)
21910 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21911 ;;
21912 esac
21913 else
21914 case "$host_cpu" in
21915 hppa*64*|ia64*)
21916 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21917 ;;
21918 *)
21919 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21920 ;;
21921 esac
21922 fi
21923 if test "$with_gnu_ld" = no; then
21924 case "$host_cpu" in
21925 hppa*64*)
21926 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21927 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21928 hardcode_libdir_separator_GCJ=:
21929 hardcode_direct_GCJ=no
21930 hardcode_shlibpath_var_GCJ=no
21931 ;;
21932 ia64*)
21933 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21934 hardcode_direct_GCJ=no
21935 hardcode_shlibpath_var_GCJ=no
21936
21937 # hardcode_minus_L: Not really in the search PATH,
21938 # but as the default location of the library.
21939 hardcode_minus_L_GCJ=yes
21940 ;;
21941 *)
21942 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21943 hardcode_libdir_separator_GCJ=:
21944 hardcode_direct_GCJ=yes
21945 export_dynamic_flag_spec_GCJ='${wl}-E'
21946
21947 # hardcode_minus_L: Not really in the search PATH,
21948 # but as the default location of the library.
21949 hardcode_minus_L_GCJ=yes
21950 ;;
21951 esac
21952 fi
21953 ;;
21954
21955 irix5* | irix6* | nonstopux*)
21956 if test "$GCC" = yes; then
21957 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'
21958 else
21959 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'
21960 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21961 fi
21962 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21963 hardcode_libdir_separator_GCJ=:
21964 link_all_deplibs_GCJ=yes
21965 ;;
21966
21967 netbsd*)
21968 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21969 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21970 else
21971 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21972 fi
21973 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21974 hardcode_direct_GCJ=yes
21975 hardcode_shlibpath_var_GCJ=no
21976 ;;
21977
21978 newsos6)
21979 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21980 hardcode_direct_GCJ=yes
21981 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21982 hardcode_libdir_separator_GCJ=:
21983 hardcode_shlibpath_var_GCJ=no
21984 ;;
21985
21986 openbsd*)
21987 hardcode_direct_GCJ=yes
21988 hardcode_shlibpath_var_GCJ=no
21989 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21990 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000021991 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 +000021992 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21993 export_dynamic_flag_spec_GCJ='${wl}-E'
21994 else
21995 case $host_os in
21996 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21997 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21998 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21999 ;;
22000 *)
22001 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22002 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22003 ;;
22004 esac
22005 fi
22006 ;;
22007
22008 os2*)
22009 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22010 hardcode_minus_L_GCJ=yes
22011 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022012 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 +000022013 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22014 ;;
22015
22016 osf3*)
22017 if test "$GCC" = yes; then
22018 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22019 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'
22020 else
22021 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22022 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'
22023 fi
22024 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22025 hardcode_libdir_separator_GCJ=:
22026 ;;
22027
22028 osf4* | osf5*) # as osf3* with the addition of -msym flag
22029 if test "$GCC" = yes; then
22030 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22031 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'
22032 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22033 else
22034 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22035 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 +000022036 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~
22037 $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'
22038
John Criswell47fdd832003-07-14 16:52:07 +000022039 # Both c and cxx compiler support -rpath directly
22040 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22041 fi
22042 hardcode_libdir_separator_GCJ=:
22043 ;;
22044
22045 sco3.2v5*)
22046 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22047 hardcode_shlibpath_var_GCJ=no
22048 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22049 runpath_var=LD_RUN_PATH
22050 hardcode_runpath_var=yes
22051 ;;
22052
22053 solaris*)
22054 no_undefined_flag_GCJ=' -z text'
22055 if test "$GCC" = yes; then
22056 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022057 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22058 $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 +000022059 else
22060 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022061 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22062 $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 +000022063 fi
22064 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22065 hardcode_shlibpath_var_GCJ=no
22066 case $host_os in
22067 solaris2.[0-5] | solaris2.[0-5].*) ;;
22068 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22069 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22070 esac
22071 link_all_deplibs_GCJ=yes
22072 ;;
22073
22074 sunos4*)
22075 if test "x$host_vendor" = xsequent; then
22076 # Use $CC to link under sequent, because it throws in some extra .o
22077 # files that make .init and .fini sections work.
22078 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22079 else
22080 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22081 fi
22082 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22083 hardcode_direct_GCJ=yes
22084 hardcode_minus_L_GCJ=yes
22085 hardcode_shlibpath_var_GCJ=no
22086 ;;
22087
22088 sysv4)
22089 case $host_vendor in
22090 sni)
22091 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22092 hardcode_direct_GCJ=yes # is this really true???
22093 ;;
22094 siemens)
22095 ## LD is ld it makes a PLAMLIB
22096 ## CC just makes a GrossModule.
22097 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22098 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22099 hardcode_direct_GCJ=no
22100 ;;
22101 motorola)
22102 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22103 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22104 ;;
22105 esac
22106 runpath_var='LD_RUN_PATH'
22107 hardcode_shlibpath_var_GCJ=no
22108 ;;
22109
22110 sysv4.3*)
22111 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22112 hardcode_shlibpath_var_GCJ=no
22113 export_dynamic_flag_spec_GCJ='-Bexport'
22114 ;;
22115
22116 sysv4*MP*)
22117 if test -d /usr/nec; then
22118 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22119 hardcode_shlibpath_var_GCJ=no
22120 runpath_var=LD_RUN_PATH
22121 hardcode_runpath_var=yes
22122 ld_shlibs_GCJ=yes
22123 fi
22124 ;;
22125
22126 sysv4.2uw2*)
22127 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22128 hardcode_direct_GCJ=yes
22129 hardcode_minus_L_GCJ=no
22130 hardcode_shlibpath_var_GCJ=no
22131 hardcode_runpath_var=yes
22132 runpath_var=LD_RUN_PATH
22133 ;;
22134
22135 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22136 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22137 if test "$GCC" = yes; then
22138 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22139 else
22140 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22141 fi
22142 runpath_var='LD_RUN_PATH'
22143 hardcode_shlibpath_var_GCJ=no
22144 ;;
22145
22146 sysv5*)
22147 no_undefined_flag_GCJ=' -z text'
22148 # $CC -shared without GNU ld will not create a library from C++
22149 # object files and a static libstdc++, better avoid it by now
22150 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022151 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22152 $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 +000022153 hardcode_libdir_flag_spec_GCJ=
22154 hardcode_shlibpath_var_GCJ=no
22155 runpath_var='LD_RUN_PATH'
22156 ;;
22157
22158 uts4*)
22159 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22160 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22161 hardcode_shlibpath_var_GCJ=no
22162 ;;
22163
22164 *)
22165 ld_shlibs_GCJ=no
22166 ;;
22167 esac
22168 fi
22169
22170echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22171echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22172test "$ld_shlibs_GCJ" = no && can_build_shared=no
22173
22174variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22175if test "$GCC" = yes; then
22176 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22177fi
22178
22179#
22180# Do we need to explicitly link libc?
22181#
22182case "x$archive_cmds_need_lc_GCJ" in
22183x|xyes)
22184 # Assume -lc should be added
22185 archive_cmds_need_lc_GCJ=yes
22186
22187 if test "$enable_shared" = yes && test "$GCC" = yes; then
22188 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022189 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022190 # FIXME: we may have to deal with multi-command sequences.
22191 ;;
22192 '$CC '*)
22193 # Test whether the compiler implicitly links with -lc since on some
22194 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22195 # to ld, don't add -lc before -lgcc.
22196 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22197echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22198 $rm conftest*
22199 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22200
22201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22202 (eval $ac_compile) 2>&5
22203 ac_status=$?
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); } 2>conftest.err; then
22206 soname=conftest
22207 lib=conftest
22208 libobjs=conftest.$ac_objext
22209 deplibs=
22210 wl=$lt_prog_compiler_wl_GCJ
22211 compiler_flags=-v
22212 linker_flags=-v
22213 verstring=
22214 output_objdir=.
22215 libname=conftest
22216 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22217 allow_undefined_flag_GCJ=
22218 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22219 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22220 ac_status=$?
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); }
22223 then
22224 archive_cmds_need_lc_GCJ=no
22225 else
22226 archive_cmds_need_lc_GCJ=yes
22227 fi
22228 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22229 else
22230 cat conftest.err 1>&5
22231 fi
22232 $rm conftest*
22233 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22234echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22235 ;;
22236 esac
22237 fi
22238 ;;
22239esac
22240
John Criswell47fdd832003-07-14 16:52:07 +000022241echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22242echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22243library_names_spec=
22244libname_spec='lib$name'
22245soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022246shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022247postinstall_cmds=
22248postuninstall_cmds=
22249finish_cmds=
22250finish_eval=
22251shlibpath_var=
22252shlibpath_overrides_runpath=unknown
22253version_type=none
22254dynamic_linker="$host_os ld.so"
22255sys_lib_dlsearch_path_spec="/lib /usr/lib"
22256if test "$GCC" = yes; then
22257 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22258 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22259 # if the path contains ";" then we assume it to be the separator
22260 # otherwise default to the standard path separator (i.e. ":") - it is
22261 # assumed that no part of a normal pathname contains ";" but that should
22262 # okay in the real world where ";" in dirpaths is itself problematic.
22263 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22264 else
22265 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22266 fi
22267else
22268 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22269fi
22270need_lib_prefix=unknown
22271hardcode_into_libs=no
22272
22273# when you set need_version to no, make sure it does not cause -set_version
22274# flags to be left without arguments
22275need_version=unknown
22276
22277case $host_os in
22278aix3*)
22279 version_type=linux
22280 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22281 shlibpath_var=LIBPATH
22282
22283 # AIX 3 has no versioning support, so we append a major version to the name.
22284 soname_spec='${libname}${release}${shared_ext}$major'
22285 ;;
22286
22287aix4* | aix5*)
22288 version_type=linux
22289 need_lib_prefix=no
22290 need_version=no
22291 hardcode_into_libs=yes
22292 if test "$host_cpu" = ia64; then
22293 # AIX 5 supports IA64
22294 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22295 shlibpath_var=LD_LIBRARY_PATH
22296 else
22297 # With GCC up to 2.95.x, collect2 would create an import file
22298 # for dependence libraries. The import file would start with
22299 # the line `#! .'. This would cause the generated library to
22300 # depend on `.', always an invalid library. This was fixed in
22301 # development snapshots of GCC prior to 3.0.
22302 case $host_os in
22303 aix4 | aix4.[01] | aix4.[01].*)
22304 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22305 echo ' yes '
22306 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22307 :
22308 else
22309 can_build_shared=no
22310 fi
22311 ;;
22312 esac
22313 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22314 # soname into executable. Probably we can add versioning support to
22315 # collect2, so additional links can be useful in future.
22316 if test "$aix_use_runtimelinking" = yes; then
22317 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22318 # instead of lib<name>.a to let people know that these are not
22319 # typical AIX shared libraries.
22320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22321 else
22322 # We preserve .a as extension for shared libraries through AIX4.2
22323 # and later when we are not doing run time linking.
22324 library_names_spec='${libname}${release}.a $libname.a'
22325 soname_spec='${libname}${release}${shared_ext}$major'
22326 fi
22327 shlibpath_var=LIBPATH
22328 fi
22329 ;;
22330
22331amigaos*)
22332 library_names_spec='$libname.ixlibrary $libname.a'
22333 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022334 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 +000022335 ;;
22336
22337beos*)
22338 library_names_spec='${libname}${shared_ext}'
22339 dynamic_linker="$host_os ld.so"
22340 shlibpath_var=LIBRARY_PATH
22341 ;;
22342
Reid Spencer2706f8c2004-09-19 23:53:36 +000022343bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022344 version_type=linux
22345 need_version=no
22346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22347 soname_spec='${libname}${release}${shared_ext}$major'
22348 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22349 shlibpath_var=LD_LIBRARY_PATH
22350 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22351 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22352 # the default ld.so.conf also contains /usr/contrib/lib and
22353 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22354 # libtool to hard-code these into programs
22355 ;;
22356
22357cygwin* | mingw* | pw32*)
22358 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022359 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022360 need_version=no
22361 need_lib_prefix=no
22362
22363 case $GCC,$host_os in
22364 yes,cygwin* | yes,mingw* | yes,pw32*)
22365 library_names_spec='$libname.dll.a'
22366 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022367 postinstall_cmds='base_file=`basename \${file}`~
22368 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22369 dldir=$destdir/`dirname \$dlpath`~
22370 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022371 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022372 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22373 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022374 $rm \$dlpath'
22375 shlibpath_overrides_runpath=yes
22376
22377 case $host_os in
22378 cygwin*)
22379 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22380 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 +000022381 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022382 ;;
22383 mingw*)
22384 # MinGW DLLs use traditional 'lib' prefix
22385 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22386 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22387 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22388 # It is most probably a Windows format PATH printed by
22389 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22390 # path with ; separators, and with drive letters. We can handle the
22391 # drive letters (cygwin fileutils understands them), so leave them,
22392 # especially as we might pass files found there to a mingw objdump,
22393 # which wouldn't understand a cygwinified path. Ahh.
22394 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22395 else
22396 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22397 fi
22398 ;;
22399 pw32*)
22400 # pw32 DLLs use 'pw' prefix rather than 'lib'
22401 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22402 ;;
22403 esac
22404 ;;
22405
22406 *)
22407 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22408 ;;
22409 esac
22410 dynamic_linker='Win32 ld.exe'
22411 # FIXME: first we should search . and the directory the executable is in
22412 shlibpath_var=PATH
22413 ;;
22414
22415darwin* | rhapsody*)
22416 dynamic_linker="$host_os dyld"
22417 version_type=darwin
22418 need_lib_prefix=no
22419 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022420 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022421 soname_spec='${libname}${release}${major}$shared_ext'
22422 shlibpath_overrides_runpath=yes
22423 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022424 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022425 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022426 if test "$GCC" = yes; then
22427 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"`
22428 else
22429 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022430 fi
22431 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22432 ;;
22433
22434dgux*)
22435 version_type=linux
22436 need_lib_prefix=no
22437 need_version=no
22438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22439 soname_spec='${libname}${release}${shared_ext}$major'
22440 shlibpath_var=LD_LIBRARY_PATH
22441 ;;
22442
22443freebsd1*)
22444 dynamic_linker=no
22445 ;;
22446
Reid Spencer2706f8c2004-09-19 23:53:36 +000022447kfreebsd*-gnu)
22448 version_type=linux
22449 need_lib_prefix=no
22450 need_version=no
22451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22452 soname_spec='${libname}${release}${shared_ext}$major'
22453 shlibpath_var=LD_LIBRARY_PATH
22454 shlibpath_overrides_runpath=no
22455 hardcode_into_libs=yes
22456 dynamic_linker='GNU ld.so'
22457 ;;
22458
John Criswell47fdd832003-07-14 16:52:07 +000022459freebsd*)
22460 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22461 version_type=freebsd-$objformat
22462 case $version_type in
22463 freebsd-elf*)
22464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22465 need_version=no
22466 need_lib_prefix=no
22467 ;;
22468 freebsd-*)
22469 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22470 need_version=yes
22471 ;;
22472 esac
22473 shlibpath_var=LD_LIBRARY_PATH
22474 case $host_os in
22475 freebsd2*)
22476 shlibpath_overrides_runpath=yes
22477 ;;
22478 freebsd3.01* | freebsdelf3.01*)
22479 shlibpath_overrides_runpath=yes
22480 hardcode_into_libs=yes
22481 ;;
22482 *) # from 3.2 on
22483 shlibpath_overrides_runpath=no
22484 hardcode_into_libs=yes
22485 ;;
22486 esac
22487 ;;
22488
22489gnu*)
22490 version_type=linux
22491 need_lib_prefix=no
22492 need_version=no
22493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22494 soname_spec='${libname}${release}${shared_ext}$major'
22495 shlibpath_var=LD_LIBRARY_PATH
22496 hardcode_into_libs=yes
22497 ;;
22498
22499hpux9* | hpux10* | hpux11*)
22500 # Give a soname corresponding to the major version so that dld.sl refuses to
22501 # link against other versions.
22502 version_type=sunos
22503 need_lib_prefix=no
22504 need_version=no
22505 case "$host_cpu" in
22506 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022507 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022508 hardcode_into_libs=yes
22509 dynamic_linker="$host_os dld.so"
22510 shlibpath_var=LD_LIBRARY_PATH
22511 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22513 soname_spec='${libname}${release}${shared_ext}$major'
22514 if test "X$HPUX_IA64_MODE" = X32; then
22515 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22516 else
22517 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22518 fi
22519 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22520 ;;
22521 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022522 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022523 hardcode_into_libs=yes
22524 dynamic_linker="$host_os dld.sl"
22525 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22526 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22528 soname_spec='${libname}${release}${shared_ext}$major'
22529 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22530 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22531 ;;
22532 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022533 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022534 dynamic_linker="$host_os dld.sl"
22535 shlibpath_var=SHLIB_PATH
22536 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22538 soname_spec='${libname}${release}${shared_ext}$major'
22539 ;;
22540 esac
22541 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22542 postinstall_cmds='chmod 555 $lib'
22543 ;;
22544
22545irix5* | irix6* | nonstopux*)
22546 case $host_os in
22547 nonstopux*) version_type=nonstopux ;;
22548 *)
22549 if test "$lt_cv_prog_gnu_ld" = yes; then
22550 version_type=linux
22551 else
22552 version_type=irix
22553 fi ;;
22554 esac
22555 need_lib_prefix=no
22556 need_version=no
22557 soname_spec='${libname}${release}${shared_ext}$major'
22558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22559 case $host_os in
22560 irix5* | nonstopux*)
22561 libsuff= shlibsuff=
22562 ;;
22563 *)
22564 case $LD in # libtool.m4 will add one of these switches to LD
22565 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22566 libsuff= shlibsuff= libmagic=32-bit;;
22567 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22568 libsuff=32 shlibsuff=N32 libmagic=N32;;
22569 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22570 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22571 *) libsuff= shlibsuff= libmagic=never-match;;
22572 esac
22573 ;;
22574 esac
22575 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22576 shlibpath_overrides_runpath=no
22577 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22578 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22579 hardcode_into_libs=yes
22580 ;;
22581
22582# No shared lib support for Linux oldld, aout, or coff.
22583linux*oldld* | linux*aout* | linux*coff*)
22584 dynamic_linker=no
22585 ;;
22586
22587# This must be Linux ELF.
22588linux*)
22589 version_type=linux
22590 need_lib_prefix=no
22591 need_version=no
22592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22593 soname_spec='${libname}${release}${shared_ext}$major'
22594 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22595 shlibpath_var=LD_LIBRARY_PATH
22596 shlibpath_overrides_runpath=no
22597 # This implies no fast_install, which is unacceptable.
22598 # Some rework will be needed to allow for fast_install
22599 # before this can be enabled.
22600 hardcode_into_libs=yes
22601
Reid Spencer2706f8c2004-09-19 23:53:36 +000022602 # Append ld.so.conf contents to the search path
22603 if test -f /etc/ld.so.conf; then
22604 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22605 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22606 fi
22607
John Criswell47fdd832003-07-14 16:52:07 +000022608 # We used to test for /lib/ld.so.1 and disable shared libraries on
22609 # powerpc, because MkLinux only supported shared libraries with the
22610 # GNU dynamic linker. Since this was broken with cross compilers,
22611 # most powerpc-linux boxes support dynamic linking these days and
22612 # people can always --disable-shared, the test was removed, and we
22613 # assume the GNU/Linux dynamic linker is in use.
22614 dynamic_linker='GNU/Linux ld.so'
22615 ;;
22616
Reid Spencer2706f8c2004-09-19 23:53:36 +000022617knetbsd*-gnu)
22618 version_type=linux
22619 need_lib_prefix=no
22620 need_version=no
22621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22622 soname_spec='${libname}${release}${shared_ext}$major'
22623 shlibpath_var=LD_LIBRARY_PATH
22624 shlibpath_overrides_runpath=no
22625 hardcode_into_libs=yes
22626 dynamic_linker='GNU ld.so'
22627 ;;
22628
John Criswell47fdd832003-07-14 16:52:07 +000022629netbsd*)
22630 version_type=sunos
22631 need_lib_prefix=no
22632 need_version=no
22633 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22635 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22636 dynamic_linker='NetBSD (a.out) ld.so'
22637 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022639 soname_spec='${libname}${release}${shared_ext}$major'
22640 dynamic_linker='NetBSD ld.elf_so'
22641 fi
22642 shlibpath_var=LD_LIBRARY_PATH
22643 shlibpath_overrides_runpath=yes
22644 hardcode_into_libs=yes
22645 ;;
22646
22647newsos6)
22648 version_type=linux
22649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22650 shlibpath_var=LD_LIBRARY_PATH
22651 shlibpath_overrides_runpath=yes
22652 ;;
22653
Reid Spencer2706f8c2004-09-19 23:53:36 +000022654nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022655 version_type=linux
22656 need_lib_prefix=no
22657 need_version=no
22658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22659 soname_spec='${libname}${release}${shared_ext}$major'
22660 shlibpath_var=LD_LIBRARY_PATH
22661 shlibpath_overrides_runpath=yes
22662 ;;
22663
22664openbsd*)
22665 version_type=sunos
22666 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022667 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22669 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22670 shlibpath_var=LD_LIBRARY_PATH
22671 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22672 case $host_os in
22673 openbsd2.[89] | openbsd2.[89].*)
22674 shlibpath_overrides_runpath=no
22675 ;;
22676 *)
22677 shlibpath_overrides_runpath=yes
22678 ;;
22679 esac
22680 else
22681 shlibpath_overrides_runpath=yes
22682 fi
22683 ;;
22684
22685os2*)
22686 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022687 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022688 need_lib_prefix=no
22689 library_names_spec='$libname${shared_ext} $libname.a'
22690 dynamic_linker='OS/2 ld.exe'
22691 shlibpath_var=LIBPATH
22692 ;;
22693
22694osf3* | osf4* | osf5*)
22695 version_type=osf
22696 need_lib_prefix=no
22697 need_version=no
22698 soname_spec='${libname}${release}${shared_ext}$major'
22699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22700 shlibpath_var=LD_LIBRARY_PATH
22701 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22702 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22703 ;;
22704
22705sco3.2v5*)
22706 version_type=osf
22707 soname_spec='${libname}${release}${shared_ext}$major'
22708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22709 shlibpath_var=LD_LIBRARY_PATH
22710 ;;
22711
22712solaris*)
22713 version_type=linux
22714 need_lib_prefix=no
22715 need_version=no
22716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22717 soname_spec='${libname}${release}${shared_ext}$major'
22718 shlibpath_var=LD_LIBRARY_PATH
22719 shlibpath_overrides_runpath=yes
22720 hardcode_into_libs=yes
22721 # ldd complains unless libraries are executable
22722 postinstall_cmds='chmod +x $lib'
22723 ;;
22724
22725sunos4*)
22726 version_type=sunos
22727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22728 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22729 shlibpath_var=LD_LIBRARY_PATH
22730 shlibpath_overrides_runpath=yes
22731 if test "$with_gnu_ld" = yes; then
22732 need_lib_prefix=no
22733 fi
22734 need_version=yes
22735 ;;
22736
22737sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22738 version_type=linux
22739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22740 soname_spec='${libname}${release}${shared_ext}$major'
22741 shlibpath_var=LD_LIBRARY_PATH
22742 case $host_vendor in
22743 sni)
22744 shlibpath_overrides_runpath=no
22745 need_lib_prefix=no
22746 export_dynamic_flag_spec='${wl}-Blargedynsym'
22747 runpath_var=LD_RUN_PATH
22748 ;;
22749 siemens)
22750 need_lib_prefix=no
22751 ;;
22752 motorola)
22753 need_lib_prefix=no
22754 need_version=no
22755 shlibpath_overrides_runpath=no
22756 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22757 ;;
22758 esac
22759 ;;
22760
22761sysv4*MP*)
22762 if test -d /usr/nec ;then
22763 version_type=linux
22764 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22765 soname_spec='$libname${shared_ext}.$major'
22766 shlibpath_var=LD_LIBRARY_PATH
22767 fi
22768 ;;
22769
22770uts4*)
22771 version_type=linux
22772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22773 soname_spec='${libname}${release}${shared_ext}$major'
22774 shlibpath_var=LD_LIBRARY_PATH
22775 ;;
22776
22777*)
22778 dynamic_linker=no
22779 ;;
22780esac
22781echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22782echo "${ECHO_T}$dynamic_linker" >&6
22783test "$dynamic_linker" = no && can_build_shared=no
22784
Reid Spencer2706f8c2004-09-19 23:53:36 +000022785echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22786echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22787hardcode_action_GCJ=
22788if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22789 test -n "$runpath_var_GCJ" || \
22790 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22791
22792 # We can hardcode non-existant directories.
22793 if test "$hardcode_direct_GCJ" != no &&
22794 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22795 # have to relink, otherwise we might link with an installed library
22796 # when we should be linking with a yet-to-be-installed one
22797 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22798 test "$hardcode_minus_L_GCJ" != no; then
22799 # Linking always hardcodes the temporary library directory.
22800 hardcode_action_GCJ=relink
22801 else
22802 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22803 hardcode_action_GCJ=immediate
22804 fi
22805else
22806 # We cannot hardcode anything, or else we can only hardcode existing
22807 # directories.
22808 hardcode_action_GCJ=unsupported
22809fi
22810echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22811echo "${ECHO_T}$hardcode_action_GCJ" >&6
22812
22813if test "$hardcode_action_GCJ" = relink; then
22814 # Fast installation is not supported
22815 enable_fast_install=no
22816elif test "$shlibpath_overrides_runpath" = yes ||
22817 test "$enable_shared" = no; then
22818 # Fast installation is not necessary
22819 enable_fast_install=needless
22820fi
22821
22822striplib=
22823old_striplib=
22824echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22825echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22826if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22827 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22828 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22829 echo "$as_me:$LINENO: result: yes" >&5
22830echo "${ECHO_T}yes" >&6
22831else
22832# FIXME - insert some real tests, host_os isn't really good enough
22833 case $host_os in
22834 darwin*)
22835 if test -n "$STRIP" ; then
22836 striplib="$STRIP -x"
22837 echo "$as_me:$LINENO: result: yes" >&5
22838echo "${ECHO_T}yes" >&6
22839 else
22840 echo "$as_me:$LINENO: result: no" >&5
22841echo "${ECHO_T}no" >&6
22842fi
22843 ;;
22844 *)
22845 echo "$as_me:$LINENO: result: no" >&5
22846echo "${ECHO_T}no" >&6
22847 ;;
22848 esac
22849fi
22850
John Criswell47fdd832003-07-14 16:52:07 +000022851if test "x$enable_dlopen" != xyes; then
22852 enable_dlopen=unknown
22853 enable_dlopen_self=unknown
22854 enable_dlopen_self_static=unknown
22855else
22856 lt_cv_dlopen=no
22857 lt_cv_dlopen_libs=
22858
22859 case $host_os in
22860 beos*)
22861 lt_cv_dlopen="load_add_on"
22862 lt_cv_dlopen_libs=
22863 lt_cv_dlopen_self=yes
22864 ;;
22865
22866 mingw* | pw32*)
22867 lt_cv_dlopen="LoadLibrary"
22868 lt_cv_dlopen_libs=
22869 ;;
22870
22871 cygwin*)
22872 lt_cv_dlopen="dlopen"
22873 lt_cv_dlopen_libs=
22874 ;;
22875
22876 darwin*)
22877 # if libdl is installed we need to link against it
22878 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22879echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22880if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22881 echo $ECHO_N "(cached) $ECHO_C" >&6
22882else
22883 ac_check_lib_save_LIBS=$LIBS
22884LIBS="-ldl $LIBS"
22885cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022886/* confdefs.h. */
22887_ACEOF
22888cat confdefs.h >>conftest.$ac_ext
22889cat >>conftest.$ac_ext <<_ACEOF
22890/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022891
22892/* Override any gcc2 internal prototype to avoid an error. */
22893#ifdef __cplusplus
22894extern "C"
22895#endif
22896/* We use char because int might match the return type of a gcc2
22897 builtin and then its argument prototype would still apply. */
22898char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000022899int
22900main ()
22901{
22902dlopen ();
22903 ;
22904 return 0;
22905}
22906_ACEOF
22907rm -f conftest.$ac_objext conftest$ac_exeext
22908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022909 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022910 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022911 grep -v '^ *+' conftest.er1 >conftest.err
22912 rm -f conftest.er1
22913 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022916 { ac_try='test -z "$ac_c_werror_flag"
22917 || test ! -s conftest.err'
22918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22919 (eval $ac_try) 2>&5
22920 ac_status=$?
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); }; } &&
22923 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22925 (eval $ac_try) 2>&5
22926 ac_status=$?
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); }; }; then
22929 ac_cv_lib_dl_dlopen=yes
22930else
22931 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022932sed 's/^/| /' conftest.$ac_ext >&5
22933
John Criswell47fdd832003-07-14 16:52:07 +000022934ac_cv_lib_dl_dlopen=no
22935fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022936rm -f conftest.err conftest.$ac_objext \
22937 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022938LIBS=$ac_check_lib_save_LIBS
22939fi
22940echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22941echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22942if test $ac_cv_lib_dl_dlopen = yes; then
22943 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22944else
22945
22946 lt_cv_dlopen="dyld"
22947 lt_cv_dlopen_libs=
22948 lt_cv_dlopen_self=yes
22949
22950fi
22951
22952 ;;
22953
22954 *)
22955 echo "$as_me:$LINENO: checking for shl_load" >&5
22956echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22957if test "${ac_cv_func_shl_load+set}" = set; then
22958 echo $ECHO_N "(cached) $ECHO_C" >&6
22959else
22960 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022961/* confdefs.h. */
22962_ACEOF
22963cat confdefs.h >>conftest.$ac_ext
22964cat >>conftest.$ac_ext <<_ACEOF
22965/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022966/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22968#define shl_load innocuous_shl_load
22969
John Criswell47fdd832003-07-14 16:52:07 +000022970/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022971 which can conflict with char shl_load (); below.
22972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22973 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022974
John Criswell0c38eaf2003-09-10 15:17:25 +000022975#ifdef __STDC__
22976# include <limits.h>
22977#else
22978# include <assert.h>
22979#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000022980
22981#undef shl_load
22982
John Criswell47fdd832003-07-14 16:52:07 +000022983/* Override any gcc2 internal prototype to avoid an error. */
22984#ifdef __cplusplus
22985extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022986{
John Criswell47fdd832003-07-14 16:52:07 +000022987#endif
22988/* We use char because int might match the return type of a gcc2
22989 builtin and then its argument prototype would still apply. */
22990char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000022991/* The GNU C library defines this for functions which it implements
22992 to always fail with ENOSYS. Some functions are actually named
22993 something starting with __ and the normal name is an alias. */
22994#if defined (__stub_shl_load) || defined (__stub___shl_load)
22995choke me
22996#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022997char (*f) () = shl_load;
22998#endif
22999#ifdef __cplusplus
23000}
John Criswell47fdd832003-07-14 16:52:07 +000023001#endif
23002
John Criswell0c38eaf2003-09-10 15:17:25 +000023003int
23004main ()
23005{
23006return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000023007 ;
23008 return 0;
23009}
23010_ACEOF
23011rm -f conftest.$ac_objext conftest$ac_exeext
23012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023013 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023014 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023015 grep -v '^ *+' conftest.er1 >conftest.err
23016 rm -f conftest.er1
23017 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023020 { ac_try='test -z "$ac_c_werror_flag"
23021 || test ! -s conftest.err'
23022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23023 (eval $ac_try) 2>&5
23024 ac_status=$?
23025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026 (exit $ac_status); }; } &&
23027 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23029 (eval $ac_try) 2>&5
23030 ac_status=$?
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); }; }; then
23033 ac_cv_func_shl_load=yes
23034else
23035 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023036sed 's/^/| /' conftest.$ac_ext >&5
23037
John Criswell47fdd832003-07-14 16:52:07 +000023038ac_cv_func_shl_load=no
23039fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023040rm -f conftest.err conftest.$ac_objext \
23041 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023042fi
23043echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23044echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23045if test $ac_cv_func_shl_load = yes; then
23046 lt_cv_dlopen="shl_load"
23047else
23048 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23049echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23050if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23051 echo $ECHO_N "(cached) $ECHO_C" >&6
23052else
23053 ac_check_lib_save_LIBS=$LIBS
23054LIBS="-ldld $LIBS"
23055cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023056/* confdefs.h. */
23057_ACEOF
23058cat confdefs.h >>conftest.$ac_ext
23059cat >>conftest.$ac_ext <<_ACEOF
23060/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023061
23062/* Override any gcc2 internal prototype to avoid an error. */
23063#ifdef __cplusplus
23064extern "C"
23065#endif
23066/* We use char because int might match the return type of a gcc2
23067 builtin and then its argument prototype would still apply. */
23068char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023069int
23070main ()
23071{
23072shl_load ();
23073 ;
23074 return 0;
23075}
23076_ACEOF
23077rm -f conftest.$ac_objext conftest$ac_exeext
23078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023079 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023080 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023081 grep -v '^ *+' conftest.er1 >conftest.err
23082 rm -f conftest.er1
23083 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023086 { ac_try='test -z "$ac_c_werror_flag"
23087 || test ! -s conftest.err'
23088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089 (eval $ac_try) 2>&5
23090 ac_status=$?
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); }; } &&
23093 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23095 (eval $ac_try) 2>&5
23096 ac_status=$?
23097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098 (exit $ac_status); }; }; then
23099 ac_cv_lib_dld_shl_load=yes
23100else
23101 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023102sed 's/^/| /' conftest.$ac_ext >&5
23103
John Criswell47fdd832003-07-14 16:52:07 +000023104ac_cv_lib_dld_shl_load=no
23105fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023106rm -f conftest.err conftest.$ac_objext \
23107 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023108LIBS=$ac_check_lib_save_LIBS
23109fi
23110echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23111echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23112if test $ac_cv_lib_dld_shl_load = yes; then
23113 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23114else
23115 echo "$as_me:$LINENO: checking for dlopen" >&5
23116echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23117if test "${ac_cv_func_dlopen+set}" = set; then
23118 echo $ECHO_N "(cached) $ECHO_C" >&6
23119else
23120 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023121/* confdefs.h. */
23122_ACEOF
23123cat confdefs.h >>conftest.$ac_ext
23124cat >>conftest.$ac_ext <<_ACEOF
23125/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023126/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23128#define dlopen innocuous_dlopen
23129
John Criswell47fdd832003-07-14 16:52:07 +000023130/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023131 which can conflict with char dlopen (); below.
23132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23133 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023134
John Criswell0c38eaf2003-09-10 15:17:25 +000023135#ifdef __STDC__
23136# include <limits.h>
23137#else
23138# include <assert.h>
23139#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023140
23141#undef dlopen
23142
John Criswell47fdd832003-07-14 16:52:07 +000023143/* Override any gcc2 internal prototype to avoid an error. */
23144#ifdef __cplusplus
23145extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023146{
John Criswell47fdd832003-07-14 16:52:07 +000023147#endif
23148/* We use char because int might match the return type of a gcc2
23149 builtin and then its argument prototype would still apply. */
23150char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023151/* The GNU C library defines this for functions which it implements
23152 to always fail with ENOSYS. Some functions are actually named
23153 something starting with __ and the normal name is an alias. */
23154#if defined (__stub_dlopen) || defined (__stub___dlopen)
23155choke me
23156#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023157char (*f) () = dlopen;
23158#endif
23159#ifdef __cplusplus
23160}
John Criswell47fdd832003-07-14 16:52:07 +000023161#endif
23162
John Criswell0c38eaf2003-09-10 15:17:25 +000023163int
23164main ()
23165{
23166return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023167 ;
23168 return 0;
23169}
23170_ACEOF
23171rm -f conftest.$ac_objext conftest$ac_exeext
23172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023173 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023174 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023175 grep -v '^ *+' conftest.er1 >conftest.err
23176 rm -f conftest.er1
23177 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23179 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023180 { ac_try='test -z "$ac_c_werror_flag"
23181 || test ! -s conftest.err'
23182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23183 (eval $ac_try) 2>&5
23184 ac_status=$?
23185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186 (exit $ac_status); }; } &&
23187 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189 (eval $ac_try) 2>&5
23190 ac_status=$?
23191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192 (exit $ac_status); }; }; then
23193 ac_cv_func_dlopen=yes
23194else
23195 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023196sed 's/^/| /' conftest.$ac_ext >&5
23197
John Criswell47fdd832003-07-14 16:52:07 +000023198ac_cv_func_dlopen=no
23199fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023200rm -f conftest.err conftest.$ac_objext \
23201 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023202fi
23203echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23204echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23205if test $ac_cv_func_dlopen = yes; then
23206 lt_cv_dlopen="dlopen"
23207else
23208 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23209echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23210if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23211 echo $ECHO_N "(cached) $ECHO_C" >&6
23212else
23213 ac_check_lib_save_LIBS=$LIBS
23214LIBS="-ldl $LIBS"
23215cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023216/* confdefs.h. */
23217_ACEOF
23218cat confdefs.h >>conftest.$ac_ext
23219cat >>conftest.$ac_ext <<_ACEOF
23220/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023221
23222/* Override any gcc2 internal prototype to avoid an error. */
23223#ifdef __cplusplus
23224extern "C"
23225#endif
23226/* We use char because int might match the return type of a gcc2
23227 builtin and then its argument prototype would still apply. */
23228char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023229int
23230main ()
23231{
23232dlopen ();
23233 ;
23234 return 0;
23235}
23236_ACEOF
23237rm -f conftest.$ac_objext conftest$ac_exeext
23238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023239 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023240 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023241 grep -v '^ *+' conftest.er1 >conftest.err
23242 rm -f conftest.er1
23243 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023246 { ac_try='test -z "$ac_c_werror_flag"
23247 || test ! -s conftest.err'
23248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23249 (eval $ac_try) 2>&5
23250 ac_status=$?
23251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252 (exit $ac_status); }; } &&
23253 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23255 (eval $ac_try) 2>&5
23256 ac_status=$?
23257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258 (exit $ac_status); }; }; then
23259 ac_cv_lib_dl_dlopen=yes
23260else
23261 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023262sed 's/^/| /' conftest.$ac_ext >&5
23263
John Criswell47fdd832003-07-14 16:52:07 +000023264ac_cv_lib_dl_dlopen=no
23265fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023266rm -f conftest.err conftest.$ac_objext \
23267 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023268LIBS=$ac_check_lib_save_LIBS
23269fi
23270echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23271echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23272if test $ac_cv_lib_dl_dlopen = yes; then
23273 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23274else
23275 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23276echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23277if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23278 echo $ECHO_N "(cached) $ECHO_C" >&6
23279else
23280 ac_check_lib_save_LIBS=$LIBS
23281LIBS="-lsvld $LIBS"
23282cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023283/* confdefs.h. */
23284_ACEOF
23285cat confdefs.h >>conftest.$ac_ext
23286cat >>conftest.$ac_ext <<_ACEOF
23287/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023288
23289/* Override any gcc2 internal prototype to avoid an error. */
23290#ifdef __cplusplus
23291extern "C"
23292#endif
23293/* We use char because int might match the return type of a gcc2
23294 builtin and then its argument prototype would still apply. */
23295char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023296int
23297main ()
23298{
23299dlopen ();
23300 ;
23301 return 0;
23302}
23303_ACEOF
23304rm -f conftest.$ac_objext conftest$ac_exeext
23305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023306 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023307 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023308 grep -v '^ *+' conftest.er1 >conftest.err
23309 rm -f conftest.er1
23310 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023313 { ac_try='test -z "$ac_c_werror_flag"
23314 || test ! -s conftest.err'
23315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23316 (eval $ac_try) 2>&5
23317 ac_status=$?
23318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319 (exit $ac_status); }; } &&
23320 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23322 (eval $ac_try) 2>&5
23323 ac_status=$?
23324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325 (exit $ac_status); }; }; then
23326 ac_cv_lib_svld_dlopen=yes
23327else
23328 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023329sed 's/^/| /' conftest.$ac_ext >&5
23330
John Criswell47fdd832003-07-14 16:52:07 +000023331ac_cv_lib_svld_dlopen=no
23332fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023333rm -f conftest.err conftest.$ac_objext \
23334 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023335LIBS=$ac_check_lib_save_LIBS
23336fi
23337echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23338echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23339if test $ac_cv_lib_svld_dlopen = yes; then
23340 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23341else
23342 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23343echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23344if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23345 echo $ECHO_N "(cached) $ECHO_C" >&6
23346else
23347 ac_check_lib_save_LIBS=$LIBS
23348LIBS="-ldld $LIBS"
23349cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023350/* confdefs.h. */
23351_ACEOF
23352cat confdefs.h >>conftest.$ac_ext
23353cat >>conftest.$ac_ext <<_ACEOF
23354/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023355
23356/* Override any gcc2 internal prototype to avoid an error. */
23357#ifdef __cplusplus
23358extern "C"
23359#endif
23360/* We use char because int might match the return type of a gcc2
23361 builtin and then its argument prototype would still apply. */
23362char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023363int
23364main ()
23365{
23366dld_link ();
23367 ;
23368 return 0;
23369}
23370_ACEOF
23371rm -f conftest.$ac_objext conftest$ac_exeext
23372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023373 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023374 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023375 grep -v '^ *+' conftest.er1 >conftest.err
23376 rm -f conftest.er1
23377 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023380 { ac_try='test -z "$ac_c_werror_flag"
23381 || test ! -s conftest.err'
23382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23383 (eval $ac_try) 2>&5
23384 ac_status=$?
23385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386 (exit $ac_status); }; } &&
23387 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23389 (eval $ac_try) 2>&5
23390 ac_status=$?
23391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392 (exit $ac_status); }; }; then
23393 ac_cv_lib_dld_dld_link=yes
23394else
23395 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023396sed 's/^/| /' conftest.$ac_ext >&5
23397
John Criswell47fdd832003-07-14 16:52:07 +000023398ac_cv_lib_dld_dld_link=no
23399fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023400rm -f conftest.err conftest.$ac_objext \
23401 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023402LIBS=$ac_check_lib_save_LIBS
23403fi
23404echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23405echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23406if test $ac_cv_lib_dld_dld_link = yes; then
23407 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23408fi
23409
23410
23411fi
23412
23413
23414fi
23415
23416
23417fi
23418
23419
23420fi
23421
23422
23423fi
23424
23425 ;;
23426 esac
23427
23428 if test "x$lt_cv_dlopen" != xno; then
23429 enable_dlopen=yes
23430 else
23431 enable_dlopen=no
23432 fi
23433
23434 case $lt_cv_dlopen in
23435 dlopen)
23436 save_CPPFLAGS="$CPPFLAGS"
23437 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23438
23439 save_LDFLAGS="$LDFLAGS"
23440 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23441
23442 save_LIBS="$LIBS"
23443 LIBS="$lt_cv_dlopen_libs $LIBS"
23444
23445 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23446echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23447if test "${lt_cv_dlopen_self+set}" = set; then
23448 echo $ECHO_N "(cached) $ECHO_C" >&6
23449else
23450 if test "$cross_compiling" = yes; then :
23451 lt_cv_dlopen_self=cross
23452else
23453 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23454 lt_status=$lt_dlunknown
23455 cat > conftest.$ac_ext <<EOF
Reid Spencer0fcb9412004-11-30 08:11:54 +000023456#line 23456 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023457#include "confdefs.h"
23458
23459#if HAVE_DLFCN_H
23460#include <dlfcn.h>
23461#endif
23462
23463#include <stdio.h>
23464
23465#ifdef RTLD_GLOBAL
23466# define LT_DLGLOBAL RTLD_GLOBAL
23467#else
23468# ifdef DL_GLOBAL
23469# define LT_DLGLOBAL DL_GLOBAL
23470# else
23471# define LT_DLGLOBAL 0
23472# endif
23473#endif
23474
23475/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23476 find out it does not work in some platform. */
23477#ifndef LT_DLLAZY_OR_NOW
23478# ifdef RTLD_LAZY
23479# define LT_DLLAZY_OR_NOW RTLD_LAZY
23480# else
23481# ifdef DL_LAZY
23482# define LT_DLLAZY_OR_NOW DL_LAZY
23483# else
23484# ifdef RTLD_NOW
23485# define LT_DLLAZY_OR_NOW RTLD_NOW
23486# else
23487# ifdef DL_NOW
23488# define LT_DLLAZY_OR_NOW DL_NOW
23489# else
23490# define LT_DLLAZY_OR_NOW 0
23491# endif
23492# endif
23493# endif
23494# endif
23495#endif
23496
23497#ifdef __cplusplus
23498extern "C" void exit (int);
23499#endif
23500
23501void fnord() { int i=42;}
23502int main ()
23503{
23504 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23505 int status = $lt_dlunknown;
23506
23507 if (self)
23508 {
23509 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23510 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23511 /* dlclose (self); */
23512 }
23513
23514 exit (status);
23515}
23516EOF
23517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23518 (eval $ac_link) 2>&5
23519 ac_status=$?
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23522 (./conftest; exit; ) 2>/dev/null
23523 lt_status=$?
23524 case x$lt_status in
23525 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23526 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23527 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23528 esac
23529 else :
23530 # compilation failed
23531 lt_cv_dlopen_self=no
23532 fi
23533fi
23534rm -fr conftest*
23535
23536
23537fi
23538echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23539echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23540
23541 if test "x$lt_cv_dlopen_self" = xyes; then
23542 LDFLAGS="$LDFLAGS $link_static_flag"
23543 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23544echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23545if test "${lt_cv_dlopen_self_static+set}" = set; then
23546 echo $ECHO_N "(cached) $ECHO_C" >&6
23547else
23548 if test "$cross_compiling" = yes; then :
23549 lt_cv_dlopen_self_static=cross
23550else
23551 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23552 lt_status=$lt_dlunknown
23553 cat > conftest.$ac_ext <<EOF
Reid Spencer0fcb9412004-11-30 08:11:54 +000023554#line 23554 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023555#include "confdefs.h"
23556
23557#if HAVE_DLFCN_H
23558#include <dlfcn.h>
23559#endif
23560
23561#include <stdio.h>
23562
23563#ifdef RTLD_GLOBAL
23564# define LT_DLGLOBAL RTLD_GLOBAL
23565#else
23566# ifdef DL_GLOBAL
23567# define LT_DLGLOBAL DL_GLOBAL
23568# else
23569# define LT_DLGLOBAL 0
23570# endif
23571#endif
23572
23573/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23574 find out it does not work in some platform. */
23575#ifndef LT_DLLAZY_OR_NOW
23576# ifdef RTLD_LAZY
23577# define LT_DLLAZY_OR_NOW RTLD_LAZY
23578# else
23579# ifdef DL_LAZY
23580# define LT_DLLAZY_OR_NOW DL_LAZY
23581# else
23582# ifdef RTLD_NOW
23583# define LT_DLLAZY_OR_NOW RTLD_NOW
23584# else
23585# ifdef DL_NOW
23586# define LT_DLLAZY_OR_NOW DL_NOW
23587# else
23588# define LT_DLLAZY_OR_NOW 0
23589# endif
23590# endif
23591# endif
23592# endif
23593#endif
23594
23595#ifdef __cplusplus
23596extern "C" void exit (int);
23597#endif
23598
23599void fnord() { int i=42;}
23600int main ()
23601{
23602 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23603 int status = $lt_dlunknown;
23604
23605 if (self)
23606 {
23607 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23608 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23609 /* dlclose (self); */
23610 }
23611
23612 exit (status);
23613}
23614EOF
23615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23616 (eval $ac_link) 2>&5
23617 ac_status=$?
23618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23620 (./conftest; exit; ) 2>/dev/null
23621 lt_status=$?
23622 case x$lt_status in
23623 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23624 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23625 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23626 esac
23627 else :
23628 # compilation failed
23629 lt_cv_dlopen_self_static=no
23630 fi
23631fi
23632rm -fr conftest*
23633
23634
23635fi
23636echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23637echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23638 fi
23639
23640 CPPFLAGS="$save_CPPFLAGS"
23641 LDFLAGS="$save_LDFLAGS"
23642 LIBS="$save_LIBS"
23643 ;;
23644 esac
23645
23646 case $lt_cv_dlopen_self in
23647 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23648 *) enable_dlopen_self=unknown ;;
23649 esac
23650
23651 case $lt_cv_dlopen_self_static in
23652 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23653 *) enable_dlopen_self_static=unknown ;;
23654 esac
23655fi
23656
23657
23658# The else clause should only fire when bootstrapping the
23659# libtool distribution, otherwise you forgot to ship ltmain.sh
23660# with your package, and you will get complaints that there are
23661# no rules to generate ltmain.sh.
23662if test -f "$ltmain"; then
23663 # See if we are running on zsh, and set the options which allow our commands through
23664 # without removal of \ escapes.
23665 if test -n "${ZSH_VERSION+set}" ; then
23666 setopt NO_GLOB_SUBST
23667 fi
23668 # Now quote all the things that may contain metacharacters while being
23669 # careful not to overquote the AC_SUBSTed values. We take copies of the
23670 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023671 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23672 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023673 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23674 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23675 deplibs_check_method reload_flag reload_cmds need_locks \
23676 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23677 lt_cv_sys_global_symbol_to_c_name_address \
23678 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23679 old_postinstall_cmds old_postuninstall_cmds \
23680 compiler_GCJ \
23681 CC_GCJ \
23682 LD_GCJ \
23683 lt_prog_compiler_wl_GCJ \
23684 lt_prog_compiler_pic_GCJ \
23685 lt_prog_compiler_static_GCJ \
23686 lt_prog_compiler_no_builtin_flag_GCJ \
23687 export_dynamic_flag_spec_GCJ \
23688 thread_safe_flag_spec_GCJ \
23689 whole_archive_flag_spec_GCJ \
23690 enable_shared_with_static_runtimes_GCJ \
23691 old_archive_cmds_GCJ \
23692 old_archive_from_new_cmds_GCJ \
23693 predep_objects_GCJ \
23694 postdep_objects_GCJ \
23695 predeps_GCJ \
23696 postdeps_GCJ \
23697 compiler_lib_search_path_GCJ \
23698 archive_cmds_GCJ \
23699 archive_expsym_cmds_GCJ \
23700 postinstall_cmds_GCJ \
23701 postuninstall_cmds_GCJ \
23702 old_archive_from_expsyms_cmds_GCJ \
23703 allow_undefined_flag_GCJ \
23704 no_undefined_flag_GCJ \
23705 export_symbols_cmds_GCJ \
23706 hardcode_libdir_flag_spec_GCJ \
23707 hardcode_libdir_flag_spec_ld_GCJ \
23708 hardcode_libdir_separator_GCJ \
23709 hardcode_automatic_GCJ \
23710 module_cmds_GCJ \
23711 module_expsym_cmds_GCJ \
23712 lt_cv_prog_compiler_c_o_GCJ \
23713 exclude_expsyms_GCJ \
23714 include_expsyms_GCJ; do
23715
23716 case $var in
23717 old_archive_cmds_GCJ | \
23718 old_archive_from_new_cmds_GCJ | \
23719 archive_cmds_GCJ | \
23720 archive_expsym_cmds_GCJ | \
23721 module_cmds_GCJ | \
23722 module_expsym_cmds_GCJ | \
23723 old_archive_from_expsyms_cmds_GCJ | \
23724 export_symbols_cmds_GCJ | \
23725 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23726 postinstall_cmds | postuninstall_cmds | \
23727 old_postinstall_cmds | old_postuninstall_cmds | \
23728 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23729 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023730 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 +000023731 ;;
23732 *)
23733 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23734 ;;
23735 esac
23736 done
23737
23738 case $lt_echo in
23739 *'\$0 --fallback-echo"')
23740 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23741 ;;
23742 esac
23743
23744cfgfile="$ofile"
23745
23746 cat <<__EOF__ >> "$cfgfile"
23747# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23748
23749# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23750
23751# Shell to use when invoking shell scripts.
23752SHELL=$lt_SHELL
23753
23754# Whether or not to build shared libraries.
23755build_libtool_libs=$enable_shared
23756
23757# Whether or not to build static libraries.
23758build_old_libs=$enable_static
23759
23760# Whether or not to add -lc for building shared libraries.
23761build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23762
23763# Whether or not to disallow shared libs when runtime libs are static
23764allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23765
23766# Whether or not to optimize for fast installation.
23767fast_install=$enable_fast_install
23768
23769# The host system.
23770host_alias=$host_alias
23771host=$host
23772
23773# An echo program that does not interpret backslashes.
23774echo=$lt_echo
23775
23776# The archiver.
23777AR=$lt_AR
23778AR_FLAGS=$lt_AR_FLAGS
23779
23780# A C compiler.
23781LTCC=$lt_LTCC
23782
23783# A language-specific compiler.
23784CC=$lt_compiler_GCJ
23785
23786# Is the compiler the GNU C compiler?
23787with_gcc=$GCC_GCJ
23788
23789# An ERE matcher.
23790EGREP=$lt_EGREP
23791
23792# The linker used to build libraries.
23793LD=$lt_LD_GCJ
23794
23795# Whether we need hard or soft links.
23796LN_S=$lt_LN_S
23797
23798# A BSD-compatible nm program.
23799NM=$lt_NM
23800
23801# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023802STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023803
23804# Used to examine libraries when file_magic_cmd begins "file"
23805MAGIC_CMD=$MAGIC_CMD
23806
23807# Used on cygwin: DLL creation program.
23808DLLTOOL="$DLLTOOL"
23809
23810# Used on cygwin: object dumper.
23811OBJDUMP="$OBJDUMP"
23812
23813# Used on cygwin: assembler.
23814AS="$AS"
23815
23816# The name of the directory that contains temporary libtool files.
23817objdir=$objdir
23818
23819# How to create reloadable object files.
23820reload_flag=$lt_reload_flag
23821reload_cmds=$lt_reload_cmds
23822
23823# How to pass a linker flag through the compiler.
23824wl=$lt_lt_prog_compiler_wl_GCJ
23825
23826# Object file suffix (normally "o").
23827objext="$ac_objext"
23828
23829# Old archive suffix (normally "a").
23830libext="$libext"
23831
23832# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023833shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023834
23835# Executable file suffix (normally "").
23836exeext="$exeext"
23837
23838# Additional compiler flags for building library objects.
23839pic_flag=$lt_lt_prog_compiler_pic_GCJ
23840pic_mode=$pic_mode
23841
23842# What is the maximum length of a command?
23843max_cmd_len=$lt_cv_sys_max_cmd_len
23844
23845# Does compiler simultaneously support -c and -o options?
23846compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23847
23848# Must we lock files when doing compilation ?
23849need_locks=$lt_need_locks
23850
23851# Do we need the lib prefix for modules?
23852need_lib_prefix=$need_lib_prefix
23853
23854# Do we need a version for libraries?
23855need_version=$need_version
23856
23857# Whether dlopen is supported.
23858dlopen_support=$enable_dlopen
23859
23860# Whether dlopen of programs is supported.
23861dlopen_self=$enable_dlopen_self
23862
23863# Whether dlopen of statically linked programs is supported.
23864dlopen_self_static=$enable_dlopen_self_static
23865
23866# Compiler flag to prevent dynamic linking.
23867link_static_flag=$lt_lt_prog_compiler_static_GCJ
23868
23869# Compiler flag to turn off builtin functions.
23870no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23871
23872# Compiler flag to allow reflexive dlopens.
23873export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23874
23875# Compiler flag to generate shared objects directly from archives.
23876whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23877
23878# Compiler flag to generate thread-safe objects.
23879thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23880
23881# Library versioning type.
23882version_type=$version_type
23883
23884# Format of library name prefix.
23885libname_spec=$lt_libname_spec
23886
23887# List of archive names. First name is the real one, the rest are links.
23888# The last name is the one that the linker finds with -lNAME.
23889library_names_spec=$lt_library_names_spec
23890
23891# The coded name of the library, if different from the real name.
23892soname_spec=$lt_soname_spec
23893
23894# Commands used to build and install an old-style archive.
23895RANLIB=$lt_RANLIB
23896old_archive_cmds=$lt_old_archive_cmds_GCJ
23897old_postinstall_cmds=$lt_old_postinstall_cmds
23898old_postuninstall_cmds=$lt_old_postuninstall_cmds
23899
23900# Create an old-style archive from a shared archive.
23901old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23902
23903# Create a temporary old-style archive to link instead of a shared archive.
23904old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23905
23906# Commands used to build and install a shared archive.
23907archive_cmds=$lt_archive_cmds_GCJ
23908archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23909postinstall_cmds=$lt_postinstall_cmds
23910postuninstall_cmds=$lt_postuninstall_cmds
23911
23912# Commands used to build a loadable module (assumed same as above if empty)
23913module_cmds=$lt_module_cmds_GCJ
23914module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23915
23916# Commands to strip libraries.
23917old_striplib=$lt_old_striplib
23918striplib=$lt_striplib
23919
23920# Dependencies to place before the objects being linked to create a
23921# shared library.
23922predep_objects=$lt_predep_objects_GCJ
23923
23924# Dependencies to place after the objects being linked to create a
23925# shared library.
23926postdep_objects=$lt_postdep_objects_GCJ
23927
23928# Dependencies to place before the objects being linked to create a
23929# shared library.
23930predeps=$lt_predeps_GCJ
23931
23932# Dependencies to place after the objects being linked to create a
23933# shared library.
23934postdeps=$lt_postdeps_GCJ
23935
23936# The library search path used internally by the compiler when linking
23937# a shared library.
23938compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23939
23940# Method to check whether dependent libraries are shared objects.
23941deplibs_check_method=$lt_deplibs_check_method
23942
23943# Command to use when deplibs_check_method == file_magic.
23944file_magic_cmd=$lt_file_magic_cmd
23945
23946# Flag that allows shared libraries with undefined symbols to be built.
23947allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23948
23949# Flag that forces no undefined symbols.
23950no_undefined_flag=$lt_no_undefined_flag_GCJ
23951
23952# Commands used to finish a libtool library installation in a directory.
23953finish_cmds=$lt_finish_cmds
23954
23955# Same as above, but a single script fragment to be evaled but not shown.
23956finish_eval=$lt_finish_eval
23957
23958# Take the output of nm and produce a listing of raw symbols and C names.
23959global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23960
23961# Transform the output of nm in a proper C declaration
23962global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23963
23964# Transform the output of nm in a C name address pair
23965global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23966
23967# This is the shared library runtime path variable.
23968runpath_var=$runpath_var
23969
23970# This is the shared library path variable.
23971shlibpath_var=$shlibpath_var
23972
23973# Is shlibpath searched before the hard-coded library search path?
23974shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23975
23976# How to hardcode a shared library path into an executable.
23977hardcode_action=$hardcode_action_GCJ
23978
23979# Whether we should hardcode library paths into libraries.
23980hardcode_into_libs=$hardcode_into_libs
23981
23982# Flag to hardcode \$libdir into a binary during linking.
23983# This must work even if \$libdir does not exist.
23984hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23985
23986# If ld is used when linking, flag to hardcode \$libdir into
23987# a binary during linking. This must work even if \$libdir does
23988# not exist.
23989hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23990
23991# Whether we need a single -rpath flag with a separated argument.
23992hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23993
23994# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23995# resulting binary.
23996hardcode_direct=$hardcode_direct_GCJ
23997
23998# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23999# resulting binary.
24000hardcode_minus_L=$hardcode_minus_L_GCJ
24001
24002# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24003# the resulting binary.
24004hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24005
24006# Set to yes if building a shared library automatically hardcodes DIR into the library
24007# and all subsequent libraries and executables linked against it.
24008hardcode_automatic=$hardcode_automatic_GCJ
24009
24010# Variables whose values should be saved in libtool wrapper scripts and
24011# restored at relink time.
24012variables_saved_for_relink="$variables_saved_for_relink"
24013
24014# Whether libtool must link a program against all its dependency libraries.
24015link_all_deplibs=$link_all_deplibs_GCJ
24016
24017# Compile-time system search path for libraries
24018sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24019
24020# Run-time system search path for libraries
24021sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24022
24023# Fix the shell variable \$srcfile for the compiler.
24024fix_srcfile_path="$fix_srcfile_path_GCJ"
24025
24026# Set to yes if exported symbols are required.
24027always_export_symbols=$always_export_symbols_GCJ
24028
24029# The commands to list exported symbols.
24030export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24031
24032# The commands to extract the exported symbol list from a shared archive.
24033extract_expsyms_cmds=$lt_extract_expsyms_cmds
24034
24035# Symbols that should not be listed in the preloaded symbols.
24036exclude_expsyms=$lt_exclude_expsyms_GCJ
24037
24038# Symbols that must always be exported.
24039include_expsyms=$lt_include_expsyms_GCJ
24040
24041# ### END LIBTOOL TAG CONFIG: $tagname
24042
24043__EOF__
24044
24045
24046else
24047 # If there is no Makefile yet, we rely on a make rule to execute
24048 # `config.status --recheck' to rerun these tests and create the
24049 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024050 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24051 if test -f "$ltmain_in"; then
24052 test -f Makefile && make "$ltmain"
24053 fi
John Criswell47fdd832003-07-14 16:52:07 +000024054fi
24055
24056
24057ac_ext=c
24058ac_cpp='$CPP $CPPFLAGS'
24059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24061ac_compiler_gnu=$ac_cv_c_compiler_gnu
24062
24063CC="$lt_save_CC"
24064
24065 else
24066 tagname=""
24067 fi
24068 ;;
24069
24070 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024071 ac_ext=c
24072ac_cpp='$CPP $CPPFLAGS'
24073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24075ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024076
24077
24078# Source file extension for RC test sources.
24079ac_ext=rc
24080
24081# Object file extension for compiled RC test sources.
24082objext=o
24083objext_RC=$objext
24084
24085# Code to be used in simple compile tests
24086lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24087
24088# Code to be used in simple link tests
24089lt_simple_link_test_code="$lt_simple_compile_test_code"
24090
24091# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24092
24093# If no C compiler was specified, use CC.
24094LTCC=${LTCC-"$CC"}
24095
24096# Allow CC to be a program name with arguments.
24097compiler=$CC
24098
24099
24100# Allow CC to be a program name with arguments.
24101lt_save_CC="$CC"
24102CC=${RC-"windres"}
24103compiler=$CC
24104compiler_RC=$CC
24105lt_cv_prog_compiler_c_o_RC=yes
24106
24107# The else clause should only fire when bootstrapping the
24108# libtool distribution, otherwise you forgot to ship ltmain.sh
24109# with your package, and you will get complaints that there are
24110# no rules to generate ltmain.sh.
24111if test -f "$ltmain"; then
24112 # See if we are running on zsh, and set the options which allow our commands through
24113 # without removal of \ escapes.
24114 if test -n "${ZSH_VERSION+set}" ; then
24115 setopt NO_GLOB_SUBST
24116 fi
24117 # Now quote all the things that may contain metacharacters while being
24118 # careful not to overquote the AC_SUBSTed values. We take copies of the
24119 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024120 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24121 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024122 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24123 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24124 deplibs_check_method reload_flag reload_cmds need_locks \
24125 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24126 lt_cv_sys_global_symbol_to_c_name_address \
24127 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24128 old_postinstall_cmds old_postuninstall_cmds \
24129 compiler_RC \
24130 CC_RC \
24131 LD_RC \
24132 lt_prog_compiler_wl_RC \
24133 lt_prog_compiler_pic_RC \
24134 lt_prog_compiler_static_RC \
24135 lt_prog_compiler_no_builtin_flag_RC \
24136 export_dynamic_flag_spec_RC \
24137 thread_safe_flag_spec_RC \
24138 whole_archive_flag_spec_RC \
24139 enable_shared_with_static_runtimes_RC \
24140 old_archive_cmds_RC \
24141 old_archive_from_new_cmds_RC \
24142 predep_objects_RC \
24143 postdep_objects_RC \
24144 predeps_RC \
24145 postdeps_RC \
24146 compiler_lib_search_path_RC \
24147 archive_cmds_RC \
24148 archive_expsym_cmds_RC \
24149 postinstall_cmds_RC \
24150 postuninstall_cmds_RC \
24151 old_archive_from_expsyms_cmds_RC \
24152 allow_undefined_flag_RC \
24153 no_undefined_flag_RC \
24154 export_symbols_cmds_RC \
24155 hardcode_libdir_flag_spec_RC \
24156 hardcode_libdir_flag_spec_ld_RC \
24157 hardcode_libdir_separator_RC \
24158 hardcode_automatic_RC \
24159 module_cmds_RC \
24160 module_expsym_cmds_RC \
24161 lt_cv_prog_compiler_c_o_RC \
24162 exclude_expsyms_RC \
24163 include_expsyms_RC; do
24164
24165 case $var in
24166 old_archive_cmds_RC | \
24167 old_archive_from_new_cmds_RC | \
24168 archive_cmds_RC | \
24169 archive_expsym_cmds_RC | \
24170 module_cmds_RC | \
24171 module_expsym_cmds_RC | \
24172 old_archive_from_expsyms_cmds_RC | \
24173 export_symbols_cmds_RC | \
24174 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24175 postinstall_cmds | postuninstall_cmds | \
24176 old_postinstall_cmds | old_postuninstall_cmds | \
24177 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24178 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024179 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 +000024180 ;;
24181 *)
24182 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24183 ;;
24184 esac
24185 done
24186
24187 case $lt_echo in
24188 *'\$0 --fallback-echo"')
24189 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24190 ;;
24191 esac
24192
24193cfgfile="$ofile"
24194
24195 cat <<__EOF__ >> "$cfgfile"
24196# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24197
24198# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24199
24200# Shell to use when invoking shell scripts.
24201SHELL=$lt_SHELL
24202
24203# Whether or not to build shared libraries.
24204build_libtool_libs=$enable_shared
24205
24206# Whether or not to build static libraries.
24207build_old_libs=$enable_static
24208
24209# Whether or not to add -lc for building shared libraries.
24210build_libtool_need_lc=$archive_cmds_need_lc_RC
24211
24212# Whether or not to disallow shared libs when runtime libs are static
24213allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24214
24215# Whether or not to optimize for fast installation.
24216fast_install=$enable_fast_install
24217
24218# The host system.
24219host_alias=$host_alias
24220host=$host
24221
24222# An echo program that does not interpret backslashes.
24223echo=$lt_echo
24224
24225# The archiver.
24226AR=$lt_AR
24227AR_FLAGS=$lt_AR_FLAGS
24228
24229# A C compiler.
24230LTCC=$lt_LTCC
24231
24232# A language-specific compiler.
24233CC=$lt_compiler_RC
24234
24235# Is the compiler the GNU C compiler?
24236with_gcc=$GCC_RC
24237
24238# An ERE matcher.
24239EGREP=$lt_EGREP
24240
24241# The linker used to build libraries.
24242LD=$lt_LD_RC
24243
24244# Whether we need hard or soft links.
24245LN_S=$lt_LN_S
24246
24247# A BSD-compatible nm program.
24248NM=$lt_NM
24249
24250# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024251STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024252
24253# Used to examine libraries when file_magic_cmd begins "file"
24254MAGIC_CMD=$MAGIC_CMD
24255
24256# Used on cygwin: DLL creation program.
24257DLLTOOL="$DLLTOOL"
24258
24259# Used on cygwin: object dumper.
24260OBJDUMP="$OBJDUMP"
24261
24262# Used on cygwin: assembler.
24263AS="$AS"
24264
24265# The name of the directory that contains temporary libtool files.
24266objdir=$objdir
24267
24268# How to create reloadable object files.
24269reload_flag=$lt_reload_flag
24270reload_cmds=$lt_reload_cmds
24271
24272# How to pass a linker flag through the compiler.
24273wl=$lt_lt_prog_compiler_wl_RC
24274
24275# Object file suffix (normally "o").
24276objext="$ac_objext"
24277
24278# Old archive suffix (normally "a").
24279libext="$libext"
24280
24281# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024282shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024283
24284# Executable file suffix (normally "").
24285exeext="$exeext"
24286
24287# Additional compiler flags for building library objects.
24288pic_flag=$lt_lt_prog_compiler_pic_RC
24289pic_mode=$pic_mode
24290
24291# What is the maximum length of a command?
24292max_cmd_len=$lt_cv_sys_max_cmd_len
24293
24294# Does compiler simultaneously support -c and -o options?
24295compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24296
24297# Must we lock files when doing compilation ?
24298need_locks=$lt_need_locks
24299
24300# Do we need the lib prefix for modules?
24301need_lib_prefix=$need_lib_prefix
24302
24303# Do we need a version for libraries?
24304need_version=$need_version
24305
24306# Whether dlopen is supported.
24307dlopen_support=$enable_dlopen
24308
24309# Whether dlopen of programs is supported.
24310dlopen_self=$enable_dlopen_self
24311
24312# Whether dlopen of statically linked programs is supported.
24313dlopen_self_static=$enable_dlopen_self_static
24314
24315# Compiler flag to prevent dynamic linking.
24316link_static_flag=$lt_lt_prog_compiler_static_RC
24317
24318# Compiler flag to turn off builtin functions.
24319no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24320
24321# Compiler flag to allow reflexive dlopens.
24322export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24323
24324# Compiler flag to generate shared objects directly from archives.
24325whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24326
24327# Compiler flag to generate thread-safe objects.
24328thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24329
24330# Library versioning type.
24331version_type=$version_type
24332
24333# Format of library name prefix.
24334libname_spec=$lt_libname_spec
24335
24336# List of archive names. First name is the real one, the rest are links.
24337# The last name is the one that the linker finds with -lNAME.
24338library_names_spec=$lt_library_names_spec
24339
24340# The coded name of the library, if different from the real name.
24341soname_spec=$lt_soname_spec
24342
24343# Commands used to build and install an old-style archive.
24344RANLIB=$lt_RANLIB
24345old_archive_cmds=$lt_old_archive_cmds_RC
24346old_postinstall_cmds=$lt_old_postinstall_cmds
24347old_postuninstall_cmds=$lt_old_postuninstall_cmds
24348
24349# Create an old-style archive from a shared archive.
24350old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24351
24352# Create a temporary old-style archive to link instead of a shared archive.
24353old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24354
24355# Commands used to build and install a shared archive.
24356archive_cmds=$lt_archive_cmds_RC
24357archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24358postinstall_cmds=$lt_postinstall_cmds
24359postuninstall_cmds=$lt_postuninstall_cmds
24360
24361# Commands used to build a loadable module (assumed same as above if empty)
24362module_cmds=$lt_module_cmds_RC
24363module_expsym_cmds=$lt_module_expsym_cmds_RC
24364
24365# Commands to strip libraries.
24366old_striplib=$lt_old_striplib
24367striplib=$lt_striplib
24368
24369# Dependencies to place before the objects being linked to create a
24370# shared library.
24371predep_objects=$lt_predep_objects_RC
24372
24373# Dependencies to place after the objects being linked to create a
24374# shared library.
24375postdep_objects=$lt_postdep_objects_RC
24376
24377# Dependencies to place before the objects being linked to create a
24378# shared library.
24379predeps=$lt_predeps_RC
24380
24381# Dependencies to place after the objects being linked to create a
24382# shared library.
24383postdeps=$lt_postdeps_RC
24384
24385# The library search path used internally by the compiler when linking
24386# a shared library.
24387compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24388
24389# Method to check whether dependent libraries are shared objects.
24390deplibs_check_method=$lt_deplibs_check_method
24391
24392# Command to use when deplibs_check_method == file_magic.
24393file_magic_cmd=$lt_file_magic_cmd
24394
24395# Flag that allows shared libraries with undefined symbols to be built.
24396allow_undefined_flag=$lt_allow_undefined_flag_RC
24397
24398# Flag that forces no undefined symbols.
24399no_undefined_flag=$lt_no_undefined_flag_RC
24400
24401# Commands used to finish a libtool library installation in a directory.
24402finish_cmds=$lt_finish_cmds
24403
24404# Same as above, but a single script fragment to be evaled but not shown.
24405finish_eval=$lt_finish_eval
24406
24407# Take the output of nm and produce a listing of raw symbols and C names.
24408global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24409
24410# Transform the output of nm in a proper C declaration
24411global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24412
24413# Transform the output of nm in a C name address pair
24414global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24415
24416# This is the shared library runtime path variable.
24417runpath_var=$runpath_var
24418
24419# This is the shared library path variable.
24420shlibpath_var=$shlibpath_var
24421
24422# Is shlibpath searched before the hard-coded library search path?
24423shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24424
24425# How to hardcode a shared library path into an executable.
24426hardcode_action=$hardcode_action_RC
24427
24428# Whether we should hardcode library paths into libraries.
24429hardcode_into_libs=$hardcode_into_libs
24430
24431# Flag to hardcode \$libdir into a binary during linking.
24432# This must work even if \$libdir does not exist.
24433hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24434
24435# If ld is used when linking, flag to hardcode \$libdir into
24436# a binary during linking. This must work even if \$libdir does
24437# not exist.
24438hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24439
24440# Whether we need a single -rpath flag with a separated argument.
24441hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24442
24443# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24444# resulting binary.
24445hardcode_direct=$hardcode_direct_RC
24446
24447# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24448# resulting binary.
24449hardcode_minus_L=$hardcode_minus_L_RC
24450
24451# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24452# the resulting binary.
24453hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24454
24455# Set to yes if building a shared library automatically hardcodes DIR into the library
24456# and all subsequent libraries and executables linked against it.
24457hardcode_automatic=$hardcode_automatic_RC
24458
24459# Variables whose values should be saved in libtool wrapper scripts and
24460# restored at relink time.
24461variables_saved_for_relink="$variables_saved_for_relink"
24462
24463# Whether libtool must link a program against all its dependency libraries.
24464link_all_deplibs=$link_all_deplibs_RC
24465
24466# Compile-time system search path for libraries
24467sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24468
24469# Run-time system search path for libraries
24470sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24471
24472# Fix the shell variable \$srcfile for the compiler.
24473fix_srcfile_path="$fix_srcfile_path_RC"
24474
24475# Set to yes if exported symbols are required.
24476always_export_symbols=$always_export_symbols_RC
24477
24478# The commands to list exported symbols.
24479export_symbols_cmds=$lt_export_symbols_cmds_RC
24480
24481# The commands to extract the exported symbol list from a shared archive.
24482extract_expsyms_cmds=$lt_extract_expsyms_cmds
24483
24484# Symbols that should not be listed in the preloaded symbols.
24485exclude_expsyms=$lt_exclude_expsyms_RC
24486
24487# Symbols that must always be exported.
24488include_expsyms=$lt_include_expsyms_RC
24489
24490# ### END LIBTOOL TAG CONFIG: $tagname
24491
24492__EOF__
24493
24494
24495else
24496 # If there is no Makefile yet, we rely on a make rule to execute
24497 # `config.status --recheck' to rerun these tests and create the
24498 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024499 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24500 if test -f "$ltmain_in"; then
24501 test -f Makefile && make "$ltmain"
24502 fi
John Criswell47fdd832003-07-14 16:52:07 +000024503fi
24504
24505
24506ac_ext=c
24507ac_cpp='$CPP $CPPFLAGS'
24508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24510ac_compiler_gnu=$ac_cv_c_compiler_gnu
24511
24512CC="$lt_save_CC"
24513
24514 ;;
24515
24516 *)
24517 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24518echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24519 { (exit 1); exit 1; }; }
24520 ;;
24521 esac
24522
24523 # Append the new tag name to the list of available tags.
24524 if test -n "$tagname" ; then
24525 available_tags="$available_tags $tagname"
24526 fi
24527 fi
24528 done
24529 IFS="$lt_save_ifs"
24530
24531 # Now substitute the updated list of available tags.
24532 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24533 mv "${ofile}T" "$ofile"
24534 chmod +x "$ofile"
24535 else
24536 rm -f "${ofile}T"
24537 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24538echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24539 { (exit 1); exit 1; }; }
24540 fi
24541fi
John Criswell7a73b802003-06-30 21:59:07 +000024542
24543
24544
24545# This can be used to rebuild libtool when needed
24546LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24547
24548# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024549LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024550
24551# Prevent multiple expansion
24552
24553
24554
John Criswell47fdd832003-07-14 16:52:07 +000024555
24556
24557
24558
24559
24560
24561
24562
24563
24564
24565
24566
24567
24568
24569
24570
24571
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024572
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024573etags_version=`$ETAGS --version 2>&1`
24574case "$etags_version" in
24575 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24576 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24577 *) ETAGSFLAGS="" ;;
24578esac
24579ETAGSFLAGS=$ETAGSFLAGS
24580
24581
24582echo "$as_me:$LINENO: checking tool compatibility" >&5
24583echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24584
24585if test "$GCC" != "yes"
24586then
24587 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
24588echo "$as_me: error: gcc required but not found" >&2;}
24589 { (exit 1); exit 1; }; }
24590fi
24591if test "$GXX" != "yes"
24592then
24593 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
24594echo "$as_me: error: g++ required but not found" >&2;}
24595 { (exit 1); exit 1; }; }
24596fi
24597
24598gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24599if test "$gccmajor" -lt "3"
24600then
24601 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24602echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24603 { (exit 1); exit 1; }; }
24604fi
24605
24606if test -z "$llvm_cv_gnu_make_command"
24607then
24608 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24609echo "$as_me: error: GNU Make required but not found" >&2;}
24610 { (exit 1); exit 1; }; }
24611fi
24612
24613echo "$as_me:$LINENO: result: ok" >&5
24614echo "${ECHO_T}ok" >&6
24615
24616if test "$PYTHON" = "false" ; then
24617 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
24618echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
24619fi
24620if test "$QMTEST" = "false" ; then
24621 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
24622echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
24623fi
Reid Spencer4b8f82f2004-11-07 23:29:39 +000024624if test "$RUNTEST" = "false" ; then
24625 { echo "$as_me:$LINENO: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&5
24626echo "$as_me: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&2;}
24627fi
John Criswellde00db22003-08-25 16:49:54 +000024628pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
24629pymajor=`echo $pyversion | cut -d. -f1`
24630pyminor=`echo $pyversion | cut -d. -f2`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024631if test "$pymajor" -ge "2" ; then
24632 if test "$pymajor" -eq "2" ; then
24633 if test "$pyminor" -lt "2" ; then
24634 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
Brian Gaeke26be9c52004-01-13 06:43:16 +000024635echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024636 fi
24637 fi
John Criswellde00db22003-08-25 16:49:54 +000024638else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024639 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
Brian Gaeke26be9c52004-01-13 06:43:16 +000024640echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000024641fi
John Criswell7a73b802003-06-30 21:59:07 +000024642
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024643echo "$as_me:$LINENO: result: " >&5
24644echo "${ECHO_T}" >&6
24645
24646
John Criswell7a73b802003-06-30 21:59:07 +000024647
John Criswell7a73b802003-06-30 21:59:07 +000024648echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24649echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24650if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24651 echo $ECHO_N "(cached) $ECHO_C" >&6
24652else
24653 ac_check_lib_save_LIBS=$LIBS
24654LIBS="-lelf $LIBS"
24655cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024656/* confdefs.h. */
24657_ACEOF
24658cat confdefs.h >>conftest.$ac_ext
24659cat >>conftest.$ac_ext <<_ACEOF
24660/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024661
24662/* Override any gcc2 internal prototype to avoid an error. */
24663#ifdef __cplusplus
24664extern "C"
24665#endif
24666/* We use char because int might match the return type of a gcc2
24667 builtin and then its argument prototype would still apply. */
24668char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000024669int
24670main ()
24671{
24672elf_begin ();
24673 ;
24674 return 0;
24675}
24676_ACEOF
24677rm -f conftest.$ac_objext conftest$ac_exeext
24678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024679 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024680 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024681 grep -v '^ *+' conftest.er1 >conftest.err
24682 rm -f conftest.er1
24683 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024686 { ac_try='test -z "$ac_c_werror_flag"
24687 || test ! -s conftest.err'
24688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24689 (eval $ac_try) 2>&5
24690 ac_status=$?
24691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692 (exit $ac_status); }; } &&
24693 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24695 (eval $ac_try) 2>&5
24696 ac_status=$?
24697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698 (exit $ac_status); }; }; then
24699 ac_cv_lib_elf_elf_begin=yes
24700else
24701 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024702sed 's/^/| /' conftest.$ac_ext >&5
24703
John Criswell7a73b802003-06-30 21:59:07 +000024704ac_cv_lib_elf_elf_begin=no
24705fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024706rm -f conftest.err conftest.$ac_objext \
24707 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024708LIBS=$ac_check_lib_save_LIBS
24709fi
24710echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24711echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24712if test $ac_cv_lib_elf_elf_begin = yes; then
24713 cat >>confdefs.h <<_ACEOF
24714#define HAVE_LIBELF 1
24715_ACEOF
24716
24717 LIBS="-lelf $LIBS"
24718
24719fi
24720
24721
Reid Spencer17795972004-11-18 09:47:37 +000024722echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24723echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24724if test "${ac_cv_search_lt_dlopen+set}" = set; then
24725 echo $ECHO_N "(cached) $ECHO_C" >&6
24726else
24727 ac_func_search_save_LIBS=$LIBS
24728ac_cv_search_lt_dlopen=no
24729cat >conftest.$ac_ext <<_ACEOF
24730/* confdefs.h. */
24731_ACEOF
24732cat confdefs.h >>conftest.$ac_ext
24733cat >>conftest.$ac_ext <<_ACEOF
24734/* end confdefs.h. */
24735
24736/* Override any gcc2 internal prototype to avoid an error. */
24737#ifdef __cplusplus
24738extern "C"
24739#endif
24740/* We use char because int might match the return type of a gcc2
24741 builtin and then its argument prototype would still apply. */
24742char lt_dlopen ();
24743int
24744main ()
24745{
24746lt_dlopen ();
24747 ;
24748 return 0;
24749}
24750_ACEOF
24751rm -f conftest.$ac_objext conftest$ac_exeext
24752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24753 (eval $ac_link) 2>conftest.er1
24754 ac_status=$?
24755 grep -v '^ *+' conftest.er1 >conftest.err
24756 rm -f conftest.er1
24757 cat conftest.err >&5
24758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759 (exit $ac_status); } &&
24760 { ac_try='test -z "$ac_c_werror_flag"
24761 || test ! -s conftest.err'
24762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24763 (eval $ac_try) 2>&5
24764 ac_status=$?
24765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24766 (exit $ac_status); }; } &&
24767 { ac_try='test -s conftest$ac_exeext'
24768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24769 (eval $ac_try) 2>&5
24770 ac_status=$?
24771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772 (exit $ac_status); }; }; then
24773 ac_cv_search_lt_dlopen="none required"
24774else
24775 echo "$as_me: failed program was:" >&5
24776sed 's/^/| /' conftest.$ac_ext >&5
24777
24778fi
24779rm -f conftest.err conftest.$ac_objext \
24780 conftest$ac_exeext conftest.$ac_ext
24781if test "$ac_cv_search_lt_dlopen" = no; then
24782 for ac_lib in ltdl; do
24783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24784 cat >conftest.$ac_ext <<_ACEOF
24785/* confdefs.h. */
24786_ACEOF
24787cat confdefs.h >>conftest.$ac_ext
24788cat >>conftest.$ac_ext <<_ACEOF
24789/* end confdefs.h. */
24790
24791/* Override any gcc2 internal prototype to avoid an error. */
24792#ifdef __cplusplus
24793extern "C"
24794#endif
24795/* We use char because int might match the return type of a gcc2
24796 builtin and then its argument prototype would still apply. */
24797char lt_dlopen ();
24798int
24799main ()
24800{
24801lt_dlopen ();
24802 ;
24803 return 0;
24804}
24805_ACEOF
24806rm -f conftest.$ac_objext conftest$ac_exeext
24807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24808 (eval $ac_link) 2>conftest.er1
24809 ac_status=$?
24810 grep -v '^ *+' conftest.er1 >conftest.err
24811 rm -f conftest.er1
24812 cat conftest.err >&5
24813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814 (exit $ac_status); } &&
24815 { ac_try='test -z "$ac_c_werror_flag"
24816 || test ! -s conftest.err'
24817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24818 (eval $ac_try) 2>&5
24819 ac_status=$?
24820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821 (exit $ac_status); }; } &&
24822 { ac_try='test -s conftest$ac_exeext'
24823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24824 (eval $ac_try) 2>&5
24825 ac_status=$?
24826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24827 (exit $ac_status); }; }; then
24828 ac_cv_search_lt_dlopen="-l$ac_lib"
24829break
24830else
24831 echo "$as_me: failed program was:" >&5
24832sed 's/^/| /' conftest.$ac_ext >&5
24833
24834fi
24835rm -f conftest.err conftest.$ac_objext \
24836 conftest$ac_exeext conftest.$ac_ext
24837 done
24838fi
24839LIBS=$ac_func_search_save_LIBS
24840fi
24841echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24842echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24843if test "$ac_cv_search_lt_dlopen" != no; then
24844 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24845
24846cat >>confdefs.h <<\_ACEOF
24847#define HAVE_LT_DLOPEN 1
24848_ACEOF
24849
24850else
24851 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24852 not be available" >&5
24853echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24854 not be available" >&2;}
24855fi
24856
24857
John Criswell7a73b802003-06-30 21:59:07 +000024858echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24859echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24860if test "${ac_cv_search_dlopen+set}" = set; then
24861 echo $ECHO_N "(cached) $ECHO_C" >&6
24862else
24863 ac_func_search_save_LIBS=$LIBS
24864ac_cv_search_dlopen=no
24865cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024866/* confdefs.h. */
24867_ACEOF
24868cat confdefs.h >>conftest.$ac_ext
24869cat >>conftest.$ac_ext <<_ACEOF
24870/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024871
24872/* Override any gcc2 internal prototype to avoid an error. */
24873#ifdef __cplusplus
24874extern "C"
24875#endif
24876/* We use char because int might match the return type of a gcc2
24877 builtin and then its argument prototype would still apply. */
24878char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000024879int
24880main ()
24881{
24882dlopen ();
24883 ;
24884 return 0;
24885}
24886_ACEOF
24887rm -f conftest.$ac_objext conftest$ac_exeext
24888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024889 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024890 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024891 grep -v '^ *+' conftest.er1 >conftest.err
24892 rm -f conftest.er1
24893 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024896 { ac_try='test -z "$ac_c_werror_flag"
24897 || test ! -s conftest.err'
24898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24899 (eval $ac_try) 2>&5
24900 ac_status=$?
24901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24902 (exit $ac_status); }; } &&
24903 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24905 (eval $ac_try) 2>&5
24906 ac_status=$?
24907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908 (exit $ac_status); }; }; then
24909 ac_cv_search_dlopen="none required"
24910else
24911 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024912sed 's/^/| /' conftest.$ac_ext >&5
24913
John Criswell7a73b802003-06-30 21:59:07 +000024914fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024915rm -f conftest.err conftest.$ac_objext \
24916 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024917if test "$ac_cv_search_dlopen" = no; then
24918 for ac_lib in dl; do
24919 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24920 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024921/* confdefs.h. */
24922_ACEOF
24923cat confdefs.h >>conftest.$ac_ext
24924cat >>conftest.$ac_ext <<_ACEOF
24925/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024926
24927/* Override any gcc2 internal prototype to avoid an error. */
24928#ifdef __cplusplus
24929extern "C"
24930#endif
24931/* We use char because int might match the return type of a gcc2
24932 builtin and then its argument prototype would still apply. */
24933char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000024934int
24935main ()
24936{
24937dlopen ();
24938 ;
24939 return 0;
24940}
24941_ACEOF
24942rm -f conftest.$ac_objext conftest$ac_exeext
24943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024944 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024945 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024946 grep -v '^ *+' conftest.er1 >conftest.err
24947 rm -f conftest.er1
24948 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024951 { ac_try='test -z "$ac_c_werror_flag"
24952 || test ! -s conftest.err'
24953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24954 (eval $ac_try) 2>&5
24955 ac_status=$?
24956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957 (exit $ac_status); }; } &&
24958 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24960 (eval $ac_try) 2>&5
24961 ac_status=$?
24962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24963 (exit $ac_status); }; }; then
24964 ac_cv_search_dlopen="-l$ac_lib"
24965break
24966else
24967 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024968sed 's/^/| /' conftest.$ac_ext >&5
24969
John Criswell7a73b802003-06-30 21:59:07 +000024970fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024971rm -f conftest.err conftest.$ac_objext \
24972 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024973 done
24974fi
24975LIBS=$ac_func_search_save_LIBS
24976fi
24977echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
24978echo "${ECHO_T}$ac_cv_search_dlopen" >&6
24979if test "$ac_cv_search_dlopen" != no; then
24980 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000024981
24982cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000024983#define HAVE_DLOPEN 1
24984_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024985
24986else
Brian Gaekec45be042003-10-07 06:01:34 +000024987 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
24988echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000024989fi
24990
24991
24992echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
24993echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
24994if test "${ac_cv_search_mallinfo+set}" = set; then
24995 echo $ECHO_N "(cached) $ECHO_C" >&6
24996else
24997 ac_func_search_save_LIBS=$LIBS
24998ac_cv_search_mallinfo=no
24999cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025000/* confdefs.h. */
25001_ACEOF
25002cat confdefs.h >>conftest.$ac_ext
25003cat >>conftest.$ac_ext <<_ACEOF
25004/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025005
25006/* Override any gcc2 internal prototype to avoid an error. */
25007#ifdef __cplusplus
25008extern "C"
25009#endif
25010/* We use char because int might match the return type of a gcc2
25011 builtin and then its argument prototype would still apply. */
25012char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025013int
25014main ()
25015{
25016mallinfo ();
25017 ;
25018 return 0;
25019}
25020_ACEOF
25021rm -f conftest.$ac_objext conftest$ac_exeext
25022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025023 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025024 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025025 grep -v '^ *+' conftest.er1 >conftest.err
25026 rm -f conftest.er1
25027 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025030 { ac_try='test -z "$ac_c_werror_flag"
25031 || test ! -s conftest.err'
25032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25033 (eval $ac_try) 2>&5
25034 ac_status=$?
25035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); }; } &&
25037 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25039 (eval $ac_try) 2>&5
25040 ac_status=$?
25041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25042 (exit $ac_status); }; }; then
25043 ac_cv_search_mallinfo="none required"
25044else
25045 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025046sed 's/^/| /' conftest.$ac_ext >&5
25047
John Criswell7a73b802003-06-30 21:59:07 +000025048fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025049rm -f conftest.err conftest.$ac_objext \
25050 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025051if test "$ac_cv_search_mallinfo" = no; then
25052 for ac_lib in malloc; do
25053 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25054 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025055/* confdefs.h. */
25056_ACEOF
25057cat confdefs.h >>conftest.$ac_ext
25058cat >>conftest.$ac_ext <<_ACEOF
25059/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025060
25061/* Override any gcc2 internal prototype to avoid an error. */
25062#ifdef __cplusplus
25063extern "C"
25064#endif
25065/* We use char because int might match the return type of a gcc2
25066 builtin and then its argument prototype would still apply. */
25067char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025068int
25069main ()
25070{
25071mallinfo ();
25072 ;
25073 return 0;
25074}
25075_ACEOF
25076rm -f conftest.$ac_objext conftest$ac_exeext
25077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025078 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025079 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025080 grep -v '^ *+' conftest.er1 >conftest.err
25081 rm -f conftest.er1
25082 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25084 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025085 { ac_try='test -z "$ac_c_werror_flag"
25086 || test ! -s conftest.err'
25087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25088 (eval $ac_try) 2>&5
25089 ac_status=$?
25090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091 (exit $ac_status); }; } &&
25092 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25094 (eval $ac_try) 2>&5
25095 ac_status=$?
25096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25097 (exit $ac_status); }; }; then
25098 ac_cv_search_mallinfo="-l$ac_lib"
25099break
25100else
25101 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025102sed 's/^/| /' conftest.$ac_ext >&5
25103
John Criswell7a73b802003-06-30 21:59:07 +000025104fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025105rm -f conftest.err conftest.$ac_objext \
25106 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025107 done
25108fi
25109LIBS=$ac_func_search_save_LIBS
25110fi
25111echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25112echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25113if test "$ac_cv_search_mallinfo" != no; then
25114 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025115
25116cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025117#define HAVE_MALLINFO 1
25118_ACEOF
25119
25120fi
25121
25122
Brian Gaeke5f268f72003-12-05 19:29:01 +000025123echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25124echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25125if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25126 echo $ECHO_N "(cached) $ECHO_C" >&6
25127else
25128 ac_func_search_save_LIBS=$LIBS
25129ac_cv_search_pthread_mutex_lock=no
25130cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025131/* confdefs.h. */
25132_ACEOF
25133cat confdefs.h >>conftest.$ac_ext
25134cat >>conftest.$ac_ext <<_ACEOF
25135/* end confdefs.h. */
25136
25137/* Override any gcc2 internal prototype to avoid an error. */
25138#ifdef __cplusplus
25139extern "C"
25140#endif
25141/* We use char because int might match the return type of a gcc2
25142 builtin and then its argument prototype would still apply. */
25143char pthread_mutex_lock ();
25144int
25145main ()
25146{
25147pthread_mutex_lock ();
25148 ;
25149 return 0;
25150}
25151_ACEOF
25152rm -f conftest.$ac_objext conftest$ac_exeext
25153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025154 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025155 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025156 grep -v '^ *+' conftest.er1 >conftest.err
25157 rm -f conftest.er1
25158 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25160 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025161 { ac_try='test -z "$ac_c_werror_flag"
25162 || test ! -s conftest.err'
25163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25164 (eval $ac_try) 2>&5
25165 ac_status=$?
25166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25167 (exit $ac_status); }; } &&
25168 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25170 (eval $ac_try) 2>&5
25171 ac_status=$?
25172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173 (exit $ac_status); }; }; then
25174 ac_cv_search_pthread_mutex_lock="none required"
25175else
25176 echo "$as_me: failed program was:" >&5
25177sed 's/^/| /' conftest.$ac_ext >&5
25178
25179fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025180rm -f conftest.err conftest.$ac_objext \
25181 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025182if test "$ac_cv_search_pthread_mutex_lock" = no; then
25183 for ac_lib in pthread; do
25184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25185 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025186/* confdefs.h. */
25187_ACEOF
25188cat confdefs.h >>conftest.$ac_ext
25189cat >>conftest.$ac_ext <<_ACEOF
25190/* end confdefs.h. */
25191
25192/* Override any gcc2 internal prototype to avoid an error. */
25193#ifdef __cplusplus
25194extern "C"
25195#endif
25196/* We use char because int might match the return type of a gcc2
25197 builtin and then its argument prototype would still apply. */
25198char pthread_mutex_lock ();
25199int
25200main ()
25201{
25202pthread_mutex_lock ();
25203 ;
25204 return 0;
25205}
25206_ACEOF
25207rm -f conftest.$ac_objext conftest$ac_exeext
25208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025209 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025210 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025211 grep -v '^ *+' conftest.er1 >conftest.err
25212 rm -f conftest.er1
25213 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025216 { ac_try='test -z "$ac_c_werror_flag"
25217 || test ! -s conftest.err'
25218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25219 (eval $ac_try) 2>&5
25220 ac_status=$?
25221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); }; } &&
25223 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25225 (eval $ac_try) 2>&5
25226 ac_status=$?
25227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25228 (exit $ac_status); }; }; then
25229 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25230break
25231else
25232 echo "$as_me: failed program was:" >&5
25233sed 's/^/| /' conftest.$ac_ext >&5
25234
25235fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025236rm -f conftest.err conftest.$ac_objext \
25237 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025238 done
25239fi
25240LIBS=$ac_func_search_save_LIBS
25241fi
25242echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25243echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25244if test "$ac_cv_search_pthread_mutex_lock" != no; then
25245 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025246
John Criswell40468462004-09-24 21:19:06 +000025247cat >>confdefs.h <<\_ACEOF
25248#define HAVE_PTHREAD_MUTEX_LOCK 1
25249_ACEOF
25250
25251fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025252
Brian Gaekec9a410c2004-02-23 21:30:37 +000025253
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025254
John Criswell7a73b802003-06-30 21:59:07 +000025255echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25256echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25257if test "${ac_cv_header_stdc+set}" = set; then
25258 echo $ECHO_N "(cached) $ECHO_C" >&6
25259else
25260 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025261/* confdefs.h. */
25262_ACEOF
25263cat confdefs.h >>conftest.$ac_ext
25264cat >>conftest.$ac_ext <<_ACEOF
25265/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025266#include <stdlib.h>
25267#include <stdarg.h>
25268#include <string.h>
25269#include <float.h>
25270
John Criswell0c38eaf2003-09-10 15:17:25 +000025271int
25272main ()
25273{
25274
25275 ;
25276 return 0;
25277}
John Criswell7a73b802003-06-30 21:59:07 +000025278_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025279rm -f conftest.$ac_objext
25280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025281 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025282 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025283 grep -v '^ *+' conftest.er1 >conftest.err
25284 rm -f conftest.er1
25285 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025287 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025288 { ac_try='test -z "$ac_c_werror_flag"
25289 || test ! -s conftest.err'
25290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25291 (eval $ac_try) 2>&5
25292 ac_status=$?
25293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294 (exit $ac_status); }; } &&
25295 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000025296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25297 (eval $ac_try) 2>&5
25298 ac_status=$?
25299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000025301 ac_cv_header_stdc=yes
25302else
25303 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025304sed 's/^/| /' conftest.$ac_ext >&5
25305
25306ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000025307fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025309
25310if test $ac_cv_header_stdc = yes; then
25311 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25312 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025313/* confdefs.h. */
25314_ACEOF
25315cat confdefs.h >>conftest.$ac_ext
25316cat >>conftest.$ac_ext <<_ACEOF
25317/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025318#include <string.h>
25319
25320_ACEOF
25321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025322 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025323 :
25324else
25325 ac_cv_header_stdc=no
25326fi
25327rm -f conftest*
25328
25329fi
25330
25331if test $ac_cv_header_stdc = yes; then
25332 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25333 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025334/* confdefs.h. */
25335_ACEOF
25336cat confdefs.h >>conftest.$ac_ext
25337cat >>conftest.$ac_ext <<_ACEOF
25338/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025339#include <stdlib.h>
25340
25341_ACEOF
25342if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025343 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025344 :
25345else
25346 ac_cv_header_stdc=no
25347fi
25348rm -f conftest*
25349
25350fi
25351
25352if test $ac_cv_header_stdc = yes; then
25353 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25354 if test "$cross_compiling" = yes; then
25355 :
25356else
25357 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025358/* confdefs.h. */
25359_ACEOF
25360cat confdefs.h >>conftest.$ac_ext
25361cat >>conftest.$ac_ext <<_ACEOF
25362/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025363#include <ctype.h>
25364#if ((' ' & 0x0FF) == 0x020)
25365# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25366# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25367#else
John Criswell0c38eaf2003-09-10 15:17:25 +000025368# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025369 (('a' <= (c) && (c) <= 'i') \
25370 || ('j' <= (c) && (c) <= 'r') \
25371 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000025372# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25373#endif
25374
25375#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25376int
25377main ()
25378{
25379 int i;
25380 for (i = 0; i < 256; i++)
25381 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000025382 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000025383 exit(2);
25384 exit (0);
25385}
25386_ACEOF
25387rm -f conftest$ac_exeext
25388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25389 (eval $ac_link) 2>&5
25390 ac_status=$?
25391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25394 (eval $ac_try) 2>&5
25395 ac_status=$?
25396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397 (exit $ac_status); }; }; then
25398 :
25399else
25400 echo "$as_me: program exited with status $ac_status" >&5
25401echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025402sed 's/^/| /' conftest.$ac_ext >&5
25403
John Criswell7a73b802003-06-30 21:59:07 +000025404( exit $ac_status )
25405ac_cv_header_stdc=no
25406fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025407rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025408fi
25409fi
25410fi
25411echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25412echo "${ECHO_T}$ac_cv_header_stdc" >&6
25413if test $ac_cv_header_stdc = yes; then
25414
25415cat >>confdefs.h <<\_ACEOF
25416#define STDC_HEADERS 1
25417_ACEOF
25418
25419fi
25420
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025421
John Criswell7a73b802003-06-30 21:59:07 +000025422echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25423echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25424if test "${ac_cv_header_sys_wait_h+set}" = set; then
25425 echo $ECHO_N "(cached) $ECHO_C" >&6
25426else
25427 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025428/* confdefs.h. */
25429_ACEOF
25430cat confdefs.h >>conftest.$ac_ext
25431cat >>conftest.$ac_ext <<_ACEOF
25432/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025433#include <sys/types.h>
25434#include <sys/wait.h>
25435#ifndef WEXITSTATUS
25436# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25437#endif
25438#ifndef WIFEXITED
25439# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25440#endif
25441
John Criswell7a73b802003-06-30 21:59:07 +000025442int
25443main ()
25444{
25445 int s;
25446 wait (&s);
25447 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25448 ;
25449 return 0;
25450}
25451_ACEOF
25452rm -f conftest.$ac_objext
25453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025454 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025455 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025456 grep -v '^ *+' conftest.er1 >conftest.err
25457 rm -f conftest.er1
25458 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025461 { ac_try='test -z "$ac_c_werror_flag"
25462 || test ! -s conftest.err'
25463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25464 (eval $ac_try) 2>&5
25465 ac_status=$?
25466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467 (exit $ac_status); }; } &&
25468 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000025469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25470 (eval $ac_try) 2>&5
25471 ac_status=$?
25472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25473 (exit $ac_status); }; }; then
25474 ac_cv_header_sys_wait_h=yes
25475else
25476 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025477sed 's/^/| /' conftest.$ac_ext >&5
25478
John Criswell7a73b802003-06-30 21:59:07 +000025479ac_cv_header_sys_wait_h=no
25480fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025482fi
25483echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25484echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
25485if test $ac_cv_header_sys_wait_h = yes; then
25486
25487cat >>confdefs.h <<\_ACEOF
25488#define HAVE_SYS_WAIT_H 1
25489_ACEOF
25490
25491fi
25492
25493
25494
25495
25496
25497
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025498for 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 +000025499do
25500as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25501if eval "test \"\${$as_ac_Header+set}\" = set"; then
25502 echo "$as_me:$LINENO: checking for $ac_header" >&5
25503echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25504if eval "test \"\${$as_ac_Header+set}\" = set"; then
25505 echo $ECHO_N "(cached) $ECHO_C" >&6
25506fi
25507echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25508echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25509else
25510 # Is the header compilable?
25511echo "$as_me:$LINENO: checking $ac_header usability" >&5
25512echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25513cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025514/* confdefs.h. */
25515_ACEOF
25516cat confdefs.h >>conftest.$ac_ext
25517cat >>conftest.$ac_ext <<_ACEOF
25518/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025519$ac_includes_default
25520#include <$ac_header>
25521_ACEOF
25522rm -f conftest.$ac_objext
25523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025524 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025525 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025526 grep -v '^ *+' conftest.er1 >conftest.err
25527 rm -f conftest.er1
25528 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025531 { ac_try='test -z "$ac_c_werror_flag"
25532 || test ! -s conftest.err'
25533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25534 (eval $ac_try) 2>&5
25535 ac_status=$?
25536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537 (exit $ac_status); }; } &&
25538 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000025539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25540 (eval $ac_try) 2>&5
25541 ac_status=$?
25542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543 (exit $ac_status); }; }; then
25544 ac_header_compiler=yes
25545else
25546 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025547sed 's/^/| /' conftest.$ac_ext >&5
25548
John Criswell7a73b802003-06-30 21:59:07 +000025549ac_header_compiler=no
25550fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025552echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25553echo "${ECHO_T}$ac_header_compiler" >&6
25554
25555# Is the header present?
25556echo "$as_me:$LINENO: checking $ac_header presence" >&5
25557echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25558cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025559/* confdefs.h. */
25560_ACEOF
25561cat confdefs.h >>conftest.$ac_ext
25562cat >>conftest.$ac_ext <<_ACEOF
25563/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025564#include <$ac_header>
25565_ACEOF
25566if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25568 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000025569 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000025570 rm -f conftest.er1
25571 cat conftest.err >&5
25572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573 (exit $ac_status); } >/dev/null; then
25574 if test -s conftest.err; then
25575 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000025576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000025577 else
25578 ac_cpp_err=
25579 fi
25580else
25581 ac_cpp_err=yes
25582fi
25583if test -z "$ac_cpp_err"; then
25584 ac_header_preproc=yes
25585else
25586 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025587sed 's/^/| /' conftest.$ac_ext >&5
25588
John Criswell7a73b802003-06-30 21:59:07 +000025589 ac_header_preproc=no
25590fi
25591rm -f conftest.err conftest.$ac_ext
25592echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25593echo "${ECHO_T}$ac_header_preproc" >&6
25594
25595# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025596case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25597 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000025598 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25599echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25601echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25602 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000025603 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000025604 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000025605 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25606echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025607 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25608echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25609 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25610echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25611 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25612echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000025613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25614echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025615 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25616echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000025617 (
25618 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000025619## ----------------------------------- ##
25620## Report this to llvmbugs@cs.uiuc.edu ##
25621## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000025622_ASBOX
25623 ) |
25624 sed "s/^/$as_me: WARNING: /" >&2
25625 ;;
John Criswell7a73b802003-06-30 21:59:07 +000025626esac
25627echo "$as_me:$LINENO: checking for $ac_header" >&5
25628echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25629if eval "test \"\${$as_ac_Header+set}\" = set"; then
25630 echo $ECHO_N "(cached) $ECHO_C" >&6
25631else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025632 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000025633fi
25634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25635echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25636
25637fi
25638if test `eval echo '${'$as_ac_Header'}'` = yes; then
25639 cat >>confdefs.h <<_ACEOF
25640#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25641_ACEOF
25642
25643fi
25644
25645done
25646
25647
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025648
25649
25650
25651
Reid Spencer2bc7bd52004-11-29 12:29:58 +000025652for ac_header in dlfcn.h execinfo.h fcntl.h limits.h link.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025653do
25654as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25655if eval "test \"\${$as_ac_Header+set}\" = set"; then
25656 echo "$as_me:$LINENO: checking for $ac_header" >&5
25657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25658if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025659 echo $ECHO_N "(cached) $ECHO_C" >&6
25660fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025661echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25662echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025663else
25664 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025665echo "$as_me:$LINENO: checking $ac_header usability" >&5
25666echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025667cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025668/* confdefs.h. */
25669_ACEOF
25670cat confdefs.h >>conftest.$ac_ext
25671cat >>conftest.$ac_ext <<_ACEOF
25672/* end confdefs.h. */
25673$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025674#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025675_ACEOF
25676rm -f conftest.$ac_objext
25677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025678 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025679 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025680 grep -v '^ *+' conftest.er1 >conftest.err
25681 rm -f conftest.er1
25682 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025685 { ac_try='test -z "$ac_c_werror_flag"
25686 || test ! -s conftest.err'
25687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25688 (eval $ac_try) 2>&5
25689 ac_status=$?
25690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25691 (exit $ac_status); }; } &&
25692 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25694 (eval $ac_try) 2>&5
25695 ac_status=$?
25696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697 (exit $ac_status); }; }; then
25698 ac_header_compiler=yes
25699else
25700 echo "$as_me: failed program was:" >&5
25701sed 's/^/| /' conftest.$ac_ext >&5
25702
25703ac_header_compiler=no
25704fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025706echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25707echo "${ECHO_T}$ac_header_compiler" >&6
25708
25709# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025710echo "$as_me:$LINENO: checking $ac_header presence" >&5
25711echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025712cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025713/* confdefs.h. */
25714_ACEOF
25715cat confdefs.h >>conftest.$ac_ext
25716cat >>conftest.$ac_ext <<_ACEOF
25717/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025718#include <$ac_header>
25719_ACEOF
25720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25722 ac_status=$?
25723 grep -v '^ *+' conftest.er1 >conftest.err
25724 rm -f conftest.er1
25725 cat conftest.err >&5
25726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727 (exit $ac_status); } >/dev/null; then
25728 if test -s conftest.err; then
25729 ac_cpp_err=$ac_c_preproc_warn_flag
25730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25731 else
25732 ac_cpp_err=
25733 fi
25734else
25735 ac_cpp_err=yes
25736fi
25737if test -z "$ac_cpp_err"; then
25738 ac_header_preproc=yes
25739else
25740 echo "$as_me: failed program was:" >&5
25741sed 's/^/| /' conftest.$ac_ext >&5
25742
25743 ac_header_preproc=no
25744fi
25745rm -f conftest.err conftest.$ac_ext
25746echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25747echo "${ECHO_T}$ac_header_preproc" >&6
25748
25749# So? What about this header?
25750case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25751 yes:no: )
25752 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25753echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25755echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25756 ac_header_preproc=yes
25757 ;;
25758 no:yes:* )
25759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25760echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25762echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25763 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25764echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25765 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25766echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25768echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25769 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25770echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25771 (
25772 cat <<\_ASBOX
25773## ----------------------------------- ##
25774## Report this to llvmbugs@cs.uiuc.edu ##
25775## ----------------------------------- ##
25776_ASBOX
25777 ) |
25778 sed "s/^/$as_me: WARNING: /" >&2
25779 ;;
25780esac
25781echo "$as_me:$LINENO: checking for $ac_header" >&5
25782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25783if eval "test \"\${$as_ac_Header+set}\" = set"; then
25784 echo $ECHO_N "(cached) $ECHO_C" >&6
25785else
25786 eval "$as_ac_Header=\$ac_header_preproc"
25787fi
25788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25790
25791fi
25792if test `eval echo '${'$as_ac_Header'}'` = yes; then
25793 cat >>confdefs.h <<_ACEOF
25794#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25795_ACEOF
25796
25797fi
25798
25799done
25800
25801
25802
25803
Reid Spencer2bc7bd52004-11-29 12:29:58 +000025804for ac_header in malloc.h unistd.h windows.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025805do
25806as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25807if eval "test \"\${$as_ac_Header+set}\" = set"; then
25808 echo "$as_me:$LINENO: checking for $ac_header" >&5
25809echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25810if eval "test \"\${$as_ac_Header+set}\" = set"; then
25811 echo $ECHO_N "(cached) $ECHO_C" >&6
25812fi
25813echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25814echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25815else
25816 # Is the header compilable?
25817echo "$as_me:$LINENO: checking $ac_header usability" >&5
25818echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25819cat >conftest.$ac_ext <<_ACEOF
25820/* confdefs.h. */
25821_ACEOF
25822cat confdefs.h >>conftest.$ac_ext
25823cat >>conftest.$ac_ext <<_ACEOF
25824/* end confdefs.h. */
25825$ac_includes_default
25826#include <$ac_header>
25827_ACEOF
25828rm -f conftest.$ac_objext
25829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25830 (eval $ac_compile) 2>conftest.er1
25831 ac_status=$?
25832 grep -v '^ *+' conftest.er1 >conftest.err
25833 rm -f conftest.er1
25834 cat conftest.err >&5
25835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25836 (exit $ac_status); } &&
25837 { ac_try='test -z "$ac_c_werror_flag"
25838 || test ! -s conftest.err'
25839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25840 (eval $ac_try) 2>&5
25841 ac_status=$?
25842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843 (exit $ac_status); }; } &&
25844 { ac_try='test -s conftest.$ac_objext'
25845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25846 (eval $ac_try) 2>&5
25847 ac_status=$?
25848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849 (exit $ac_status); }; }; then
25850 ac_header_compiler=yes
25851else
25852 echo "$as_me: failed program was:" >&5
25853sed 's/^/| /' conftest.$ac_ext >&5
25854
25855ac_header_compiler=no
25856fi
25857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25858echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25859echo "${ECHO_T}$ac_header_compiler" >&6
25860
25861# Is the header present?
25862echo "$as_me:$LINENO: checking $ac_header presence" >&5
25863echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25864cat >conftest.$ac_ext <<_ACEOF
25865/* confdefs.h. */
25866_ACEOF
25867cat confdefs.h >>conftest.$ac_ext
25868cat >>conftest.$ac_ext <<_ACEOF
25869/* end confdefs.h. */
25870#include <$ac_header>
25871_ACEOF
25872if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25874 ac_status=$?
25875 grep -v '^ *+' conftest.er1 >conftest.err
25876 rm -f conftest.er1
25877 cat conftest.err >&5
25878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879 (exit $ac_status); } >/dev/null; then
25880 if test -s conftest.err; then
25881 ac_cpp_err=$ac_c_preproc_warn_flag
25882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25883 else
25884 ac_cpp_err=
25885 fi
25886else
25887 ac_cpp_err=yes
25888fi
25889if test -z "$ac_cpp_err"; then
25890 ac_header_preproc=yes
25891else
25892 echo "$as_me: failed program was:" >&5
25893sed 's/^/| /' conftest.$ac_ext >&5
25894
25895 ac_header_preproc=no
25896fi
25897rm -f conftest.err conftest.$ac_ext
25898echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25899echo "${ECHO_T}$ac_header_preproc" >&6
25900
25901# So? What about this header?
25902case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25903 yes:no: )
25904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25905echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25907echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25908 ac_header_preproc=yes
25909 ;;
25910 no:yes:* )
25911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25912echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25914echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25916echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25918echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25920echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25922echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25923 (
25924 cat <<\_ASBOX
25925## ----------------------------------- ##
25926## Report this to llvmbugs@cs.uiuc.edu ##
25927## ----------------------------------- ##
25928_ASBOX
25929 ) |
25930 sed "s/^/$as_me: WARNING: /" >&2
25931 ;;
25932esac
25933echo "$as_me:$LINENO: checking for $ac_header" >&5
25934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25935if eval "test \"\${$as_ac_Header+set}\" = set"; then
25936 echo $ECHO_N "(cached) $ECHO_C" >&6
25937else
25938 eval "$as_ac_Header=\$ac_header_preproc"
25939fi
25940echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25941echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25942
25943fi
25944if test `eval echo '${'$as_ac_Header'}'` = yes; then
25945 cat >>confdefs.h <<_ACEOF
25946#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25947_ACEOF
25948
25949fi
25950
25951done
25952
25953echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25954echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
25955if test "${ac_cv_header_time+set}" = set; then
25956 echo $ECHO_N "(cached) $ECHO_C" >&6
25957else
25958 cat >conftest.$ac_ext <<_ACEOF
25959/* confdefs.h. */
25960_ACEOF
25961cat confdefs.h >>conftest.$ac_ext
25962cat >>conftest.$ac_ext <<_ACEOF
25963/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025964#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025965#include <sys/time.h>
25966#include <time.h>
25967
25968int
25969main ()
25970{
25971if ((struct tm *) 0)
25972return 0;
25973 ;
25974 return 0;
25975}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025976_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025977rm -f conftest.$ac_objext
25978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25979 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025980 ac_status=$?
25981 grep -v '^ *+' conftest.er1 >conftest.err
25982 rm -f conftest.er1
25983 cat conftest.err >&5
25984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025985 (exit $ac_status); } &&
25986 { ac_try='test -z "$ac_c_werror_flag"
25987 || test ! -s conftest.err'
25988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25989 (eval $ac_try) 2>&5
25990 ac_status=$?
25991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992 (exit $ac_status); }; } &&
25993 { ac_try='test -s conftest.$ac_objext'
25994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25995 (eval $ac_try) 2>&5
25996 ac_status=$?
25997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998 (exit $ac_status); }; }; then
25999 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026000else
26001 echo "$as_me: failed program was:" >&5
26002sed 's/^/| /' conftest.$ac_ext >&5
26003
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026004ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026005fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26007fi
26008echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26009echo "${ECHO_T}$ac_cv_header_time" >&6
26010if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026011
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026012cat >>confdefs.h <<\_ACEOF
26013#define TIME_WITH_SYS_TIME 1
26014_ACEOF
26015
26016fi
26017
26018echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26019echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26020if test "${ac_cv_header_mmap_anon+set}" = set; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026021 echo $ECHO_N "(cached) $ECHO_C" >&6
26022else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026023 ac_ext=c
26024ac_cpp='$CPP $CPPFLAGS'
26025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26027ac_compiler_gnu=$ac_cv_c_compiler_gnu
26028
26029 cat >conftest.$ac_ext <<_ACEOF
26030/* confdefs.h. */
26031_ACEOF
26032cat confdefs.h >>conftest.$ac_ext
26033cat >>conftest.$ac_ext <<_ACEOF
26034/* end confdefs.h. */
26035#include <sys/mman.h>
26036#include <unistd.h>
26037#include <fcntl.h>
26038int
26039main ()
26040{
26041mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26042 ;
26043 return 0;
26044}
26045_ACEOF
26046rm -f conftest.$ac_objext
26047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26048 (eval $ac_compile) 2>conftest.er1
26049 ac_status=$?
26050 grep -v '^ *+' conftest.er1 >conftest.err
26051 rm -f conftest.er1
26052 cat conftest.err >&5
26053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054 (exit $ac_status); } &&
26055 { ac_try='test -z "$ac_c_werror_flag"
26056 || test ! -s conftest.err'
26057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26058 (eval $ac_try) 2>&5
26059 ac_status=$?
26060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26061 (exit $ac_status); }; } &&
26062 { ac_try='test -s conftest.$ac_objext'
26063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26064 (eval $ac_try) 2>&5
26065 ac_status=$?
26066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26067 (exit $ac_status); }; }; then
26068 ac_cv_header_mmap_anon=yes
26069else
26070 echo "$as_me: failed program was:" >&5
26071sed 's/^/| /' conftest.$ac_ext >&5
26072
26073ac_cv_header_mmap_anon=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026074fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26076 ac_ext=c
26077ac_cpp='$CPP $CPPFLAGS'
26078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26080ac_compiler_gnu=$ac_cv_c_compiler_gnu
26081
26082
26083fi
26084echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26085echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26086if test "$ac_cv_header_mmap_anon" = yes; then
26087
26088cat >>confdefs.h <<\_ACEOF
26089#define HAVE_MMAP_ANONYMOUS
26090_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026091
26092fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026093
26094
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026095
26096
26097for ac_header in inttypes.h stdint.h
26098do
26099as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26100if eval "test \"\${$as_ac_Header+set}\" = set"; then
26101 echo "$as_me:$LINENO: checking for $ac_header" >&5
26102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26103if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026104 echo $ECHO_N "(cached) $ECHO_C" >&6
26105fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026106echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26107echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026108else
26109 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026110echo "$as_me:$LINENO: checking $ac_header usability" >&5
26111echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026112cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026113/* confdefs.h. */
26114_ACEOF
26115cat confdefs.h >>conftest.$ac_ext
26116cat >>conftest.$ac_ext <<_ACEOF
26117/* end confdefs.h. */
26118$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026119#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026120_ACEOF
26121rm -f conftest.$ac_objext
26122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026123 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026124 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026125 grep -v '^ *+' conftest.er1 >conftest.err
26126 rm -f conftest.er1
26127 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26129 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026130 { ac_try='test -z "$ac_c_werror_flag"
26131 || test ! -s conftest.err'
26132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26133 (eval $ac_try) 2>&5
26134 ac_status=$?
26135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136 (exit $ac_status); }; } &&
26137 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26139 (eval $ac_try) 2>&5
26140 ac_status=$?
26141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26142 (exit $ac_status); }; }; then
26143 ac_header_compiler=yes
26144else
26145 echo "$as_me: failed program was:" >&5
26146sed 's/^/| /' conftest.$ac_ext >&5
26147
26148ac_header_compiler=no
26149fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026151echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26152echo "${ECHO_T}$ac_header_compiler" >&6
26153
26154# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026155echo "$as_me:$LINENO: checking $ac_header presence" >&5
26156echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026157cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026158/* confdefs.h. */
26159_ACEOF
26160cat confdefs.h >>conftest.$ac_ext
26161cat >>conftest.$ac_ext <<_ACEOF
26162/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026163#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026164_ACEOF
26165if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26167 ac_status=$?
26168 grep -v '^ *+' conftest.er1 >conftest.err
26169 rm -f conftest.er1
26170 cat conftest.err >&5
26171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26172 (exit $ac_status); } >/dev/null; then
26173 if test -s conftest.err; then
26174 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026176 else
26177 ac_cpp_err=
26178 fi
26179else
26180 ac_cpp_err=yes
26181fi
26182if test -z "$ac_cpp_err"; then
26183 ac_header_preproc=yes
26184else
26185 echo "$as_me: failed program was:" >&5
26186sed 's/^/| /' conftest.$ac_ext >&5
26187
26188 ac_header_preproc=no
26189fi
26190rm -f conftest.err conftest.$ac_ext
26191echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26192echo "${ECHO_T}$ac_header_preproc" >&6
26193
26194# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026195case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26196 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26198echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26200echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026201 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026202 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026203 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26205echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26207echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26209echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26211echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26213echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26215echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026216 (
26217 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026218## ----------------------------------- ##
26219## Report this to llvmbugs@cs.uiuc.edu ##
26220## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026221_ASBOX
26222 ) |
26223 sed "s/^/$as_me: WARNING: /" >&2
26224 ;;
26225esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026226echo "$as_me:$LINENO: checking for $ac_header" >&5
26227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26228if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026229 echo $ECHO_N "(cached) $ECHO_C" >&6
26230else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026231 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026232fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026233echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26234echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026235
26236fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026237if test `eval echo '${'$as_ac_Header'}'` = yes; then
26238 cat >>confdefs.h <<_ACEOF
26239#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026240_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026241
26242fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026243
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026244done
26245
John Criswell7ed43ad2004-07-19 16:12:29 +000026246
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026247
John Criswell7a73b802003-06-30 21:59:07 +000026248echo "$as_me:$LINENO: checking for pid_t" >&5
26249echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26250if test "${ac_cv_type_pid_t+set}" = set; then
26251 echo $ECHO_N "(cached) $ECHO_C" >&6
26252else
26253 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026254/* confdefs.h. */
26255_ACEOF
26256cat confdefs.h >>conftest.$ac_ext
26257cat >>conftest.$ac_ext <<_ACEOF
26258/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026259$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026260int
26261main ()
26262{
26263if ((pid_t *) 0)
26264 return 0;
26265if (sizeof (pid_t))
26266 return 0;
26267 ;
26268 return 0;
26269}
26270_ACEOF
26271rm -f conftest.$ac_objext
26272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026273 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026274 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026275 grep -v '^ *+' conftest.er1 >conftest.err
26276 rm -f conftest.er1
26277 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26279 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026280 { ac_try='test -z "$ac_c_werror_flag"
26281 || test ! -s conftest.err'
26282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26283 (eval $ac_try) 2>&5
26284 ac_status=$?
26285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26286 (exit $ac_status); }; } &&
26287 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26289 (eval $ac_try) 2>&5
26290 ac_status=$?
26291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26292 (exit $ac_status); }; }; then
26293 ac_cv_type_pid_t=yes
26294else
26295 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026296sed 's/^/| /' conftest.$ac_ext >&5
26297
John Criswell7a73b802003-06-30 21:59:07 +000026298ac_cv_type_pid_t=no
26299fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026301fi
26302echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26303echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26304if test $ac_cv_type_pid_t = yes; then
26305 :
26306else
26307
26308cat >>confdefs.h <<_ACEOF
26309#define pid_t int
26310_ACEOF
26311
26312fi
26313
26314echo "$as_me:$LINENO: checking for size_t" >&5
26315echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26316if test "${ac_cv_type_size_t+set}" = set; then
26317 echo $ECHO_N "(cached) $ECHO_C" >&6
26318else
26319 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026320/* confdefs.h. */
26321_ACEOF
26322cat confdefs.h >>conftest.$ac_ext
26323cat >>conftest.$ac_ext <<_ACEOF
26324/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026325$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026326int
26327main ()
26328{
26329if ((size_t *) 0)
26330 return 0;
26331if (sizeof (size_t))
26332 return 0;
26333 ;
26334 return 0;
26335}
26336_ACEOF
26337rm -f conftest.$ac_objext
26338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026339 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026340 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026341 grep -v '^ *+' conftest.er1 >conftest.err
26342 rm -f conftest.er1
26343 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026346 { ac_try='test -z "$ac_c_werror_flag"
26347 || test ! -s conftest.err'
26348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26349 (eval $ac_try) 2>&5
26350 ac_status=$?
26351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26352 (exit $ac_status); }; } &&
26353 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26355 (eval $ac_try) 2>&5
26356 ac_status=$?
26357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26358 (exit $ac_status); }; }; then
26359 ac_cv_type_size_t=yes
26360else
26361 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026362sed 's/^/| /' conftest.$ac_ext >&5
26363
John Criswell7a73b802003-06-30 21:59:07 +000026364ac_cv_type_size_t=no
26365fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026367fi
26368echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26369echo "${ECHO_T}$ac_cv_type_size_t" >&6
26370if test $ac_cv_type_size_t = yes; then
26371 :
26372else
26373
26374cat >>confdefs.h <<_ACEOF
26375#define size_t unsigned
26376_ACEOF
26377
26378fi
26379
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026380echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26381echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26382if test "${ac_cv_type_signal+set}" = set; then
26383 echo $ECHO_N "(cached) $ECHO_C" >&6
26384else
26385 cat >conftest.$ac_ext <<_ACEOF
26386/* confdefs.h. */
26387_ACEOF
26388cat confdefs.h >>conftest.$ac_ext
26389cat >>conftest.$ac_ext <<_ACEOF
26390/* end confdefs.h. */
26391#include <sys/types.h>
26392#include <signal.h>
26393#ifdef signal
26394# undef signal
26395#endif
26396#ifdef __cplusplus
26397extern "C" void (*signal (int, void (*)(int)))(int);
26398#else
26399void (*signal ()) ();
26400#endif
26401
26402int
26403main ()
26404{
26405int i;
26406 ;
26407 return 0;
26408}
26409_ACEOF
26410rm -f conftest.$ac_objext
26411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26412 (eval $ac_compile) 2>conftest.er1
26413 ac_status=$?
26414 grep -v '^ *+' conftest.er1 >conftest.err
26415 rm -f conftest.er1
26416 cat conftest.err >&5
26417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418 (exit $ac_status); } &&
26419 { ac_try='test -z "$ac_c_werror_flag"
26420 || test ! -s conftest.err'
26421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26422 (eval $ac_try) 2>&5
26423 ac_status=$?
26424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425 (exit $ac_status); }; } &&
26426 { ac_try='test -s conftest.$ac_objext'
26427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26428 (eval $ac_try) 2>&5
26429 ac_status=$?
26430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26431 (exit $ac_status); }; }; then
26432 ac_cv_type_signal=void
26433else
26434 echo "$as_me: failed program was:" >&5
26435sed 's/^/| /' conftest.$ac_ext >&5
26436
26437ac_cv_type_signal=int
26438fi
26439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26440fi
26441echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26442echo "${ECHO_T}$ac_cv_type_signal" >&6
26443
26444cat >>confdefs.h <<_ACEOF
26445#define RETSIGTYPE $ac_cv_type_signal
26446_ACEOF
26447
26448
26449echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26450echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26451if test "${ac_cv_struct_tm+set}" = set; then
26452 echo $ECHO_N "(cached) $ECHO_C" >&6
26453else
26454 cat >conftest.$ac_ext <<_ACEOF
26455/* confdefs.h. */
26456_ACEOF
26457cat confdefs.h >>conftest.$ac_ext
26458cat >>conftest.$ac_ext <<_ACEOF
26459/* end confdefs.h. */
26460#include <sys/types.h>
26461#include <time.h>
26462
26463int
26464main ()
26465{
26466struct tm *tp; tp->tm_sec;
26467 ;
26468 return 0;
26469}
26470_ACEOF
26471rm -f conftest.$ac_objext
26472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26473 (eval $ac_compile) 2>conftest.er1
26474 ac_status=$?
26475 grep -v '^ *+' conftest.er1 >conftest.err
26476 rm -f conftest.er1
26477 cat conftest.err >&5
26478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); } &&
26480 { ac_try='test -z "$ac_c_werror_flag"
26481 || test ! -s conftest.err'
26482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26483 (eval $ac_try) 2>&5
26484 ac_status=$?
26485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486 (exit $ac_status); }; } &&
26487 { ac_try='test -s conftest.$ac_objext'
26488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489 (eval $ac_try) 2>&5
26490 ac_status=$?
26491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 (exit $ac_status); }; }; then
26493 ac_cv_struct_tm=time.h
26494else
26495 echo "$as_me: failed program was:" >&5
26496sed 's/^/| /' conftest.$ac_ext >&5
26497
26498ac_cv_struct_tm=sys/time.h
26499fi
26500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26501fi
26502echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26503echo "${ECHO_T}$ac_cv_struct_tm" >&6
26504if test $ac_cv_struct_tm = sys/time.h; then
26505
26506cat >>confdefs.h <<\_ACEOF
26507#define TM_IN_SYS_TIME 1
26508_ACEOF
26509
26510fi
26511
John Criswell7a73b802003-06-30 21:59:07 +000026512echo "$as_me:$LINENO: checking for int64_t" >&5
26513echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26514if test "${ac_cv_type_int64_t+set}" = set; then
26515 echo $ECHO_N "(cached) $ECHO_C" >&6
26516else
26517 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026518/* confdefs.h. */
26519_ACEOF
26520cat confdefs.h >>conftest.$ac_ext
26521cat >>conftest.$ac_ext <<_ACEOF
26522/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026523$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026524int
26525main ()
26526{
26527if ((int64_t *) 0)
26528 return 0;
26529if (sizeof (int64_t))
26530 return 0;
26531 ;
26532 return 0;
26533}
26534_ACEOF
26535rm -f conftest.$ac_objext
26536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026537 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026538 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026539 grep -v '^ *+' conftest.er1 >conftest.err
26540 rm -f conftest.er1
26541 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026544 { ac_try='test -z "$ac_c_werror_flag"
26545 || test ! -s conftest.err'
26546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26547 (eval $ac_try) 2>&5
26548 ac_status=$?
26549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550 (exit $ac_status); }; } &&
26551 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26553 (eval $ac_try) 2>&5
26554 ac_status=$?
26555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556 (exit $ac_status); }; }; then
26557 ac_cv_type_int64_t=yes
26558else
26559 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026560sed 's/^/| /' conftest.$ac_ext >&5
26561
John Criswell7a73b802003-06-30 21:59:07 +000026562ac_cv_type_int64_t=no
26563fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026565fi
26566echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26567echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26568if test $ac_cv_type_int64_t = yes; then
26569
26570cat >>confdefs.h <<_ACEOF
26571#define HAVE_INT64_T 1
26572_ACEOF
26573
26574
26575else
26576 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26577echo "$as_me: error: Type int64_t required but not found" >&2;}
26578 { (exit 1); exit 1; }; }
26579fi
26580
26581echo "$as_me:$LINENO: checking for uint64_t" >&5
26582echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26583if test "${ac_cv_type_uint64_t+set}" = set; then
26584 echo $ECHO_N "(cached) $ECHO_C" >&6
26585else
26586 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026587/* confdefs.h. */
26588_ACEOF
26589cat confdefs.h >>conftest.$ac_ext
26590cat >>conftest.$ac_ext <<_ACEOF
26591/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026592$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026593int
26594main ()
26595{
26596if ((uint64_t *) 0)
26597 return 0;
26598if (sizeof (uint64_t))
26599 return 0;
26600 ;
26601 return 0;
26602}
26603_ACEOF
26604rm -f conftest.$ac_objext
26605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026606 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026607 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026608 grep -v '^ *+' conftest.er1 >conftest.err
26609 rm -f conftest.er1
26610 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26612 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026613 { ac_try='test -z "$ac_c_werror_flag"
26614 || test ! -s conftest.err'
26615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26616 (eval $ac_try) 2>&5
26617 ac_status=$?
26618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619 (exit $ac_status); }; } &&
26620 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26622 (eval $ac_try) 2>&5
26623 ac_status=$?
26624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625 (exit $ac_status); }; }; then
26626 ac_cv_type_uint64_t=yes
26627else
26628 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026629sed 's/^/| /' conftest.$ac_ext >&5
26630
John Criswell7a73b802003-06-30 21:59:07 +000026631ac_cv_type_uint64_t=no
26632fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026634fi
26635echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26636echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26637if test $ac_cv_type_uint64_t = yes; then
26638
26639cat >>confdefs.h <<_ACEOF
26640#define HAVE_UINT64_T 1
26641_ACEOF
26642
26643
26644else
Misha Brukmanceca9042004-09-02 23:02:30 +000026645 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000026646echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26647if test "${ac_cv_type_u_int64_t+set}" = set; then
26648 echo $ECHO_N "(cached) $ECHO_C" >&6
26649else
26650 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000026651/* confdefs.h. */
26652_ACEOF
26653cat confdefs.h >>conftest.$ac_ext
26654cat >>conftest.$ac_ext <<_ACEOF
26655/* end confdefs.h. */
26656$ac_includes_default
26657int
26658main ()
26659{
26660if ((u_int64_t *) 0)
26661 return 0;
26662if (sizeof (u_int64_t))
26663 return 0;
26664 ;
26665 return 0;
26666}
26667_ACEOF
26668rm -f conftest.$ac_objext
26669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026670 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000026671 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026672 grep -v '^ *+' conftest.er1 >conftest.err
26673 rm -f conftest.er1
26674 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000026675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026677 { ac_try='test -z "$ac_c_werror_flag"
26678 || test ! -s conftest.err'
26679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26680 (eval $ac_try) 2>&5
26681 ac_status=$?
26682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683 (exit $ac_status); }; } &&
26684 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000026685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26686 (eval $ac_try) 2>&5
26687 ac_status=$?
26688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689 (exit $ac_status); }; }; then
26690 ac_cv_type_u_int64_t=yes
26691else
26692 echo "$as_me: failed program was:" >&5
26693sed 's/^/| /' conftest.$ac_ext >&5
26694
26695ac_cv_type_u_int64_t=no
26696fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000026698fi
26699echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
26700echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
26701if test $ac_cv_type_u_int64_t = yes; then
26702
26703cat >>confdefs.h <<_ACEOF
26704#define HAVE_U_INT64_T 1
26705_ACEOF
26706
26707
Misha Brukmanceca9042004-09-02 23:02:30 +000026708else
26709 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
26710echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
26711 { (exit 1); exit 1; }; }
26712fi
26713
John Criswell679ff312004-09-02 18:44:44 +000026714fi
26715
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026716
26717
26718
26719
26720
26721
26722
26723
26724for ac_func in backtrace getcwd gettimeofday isatty getrusage mkstemp
26725do
26726as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26727echo "$as_me:$LINENO: checking for $ac_func" >&5
26728echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26729if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000026730 echo $ECHO_N "(cached) $ECHO_C" >&6
26731else
26732 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026733/* confdefs.h. */
26734_ACEOF
26735cat confdefs.h >>conftest.$ac_ext
26736cat >>conftest.$ac_ext <<_ACEOF
26737/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026738/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26740#define $ac_func innocuous_$ac_func
26741
26742/* System header to define __stub macros and hopefully few prototypes,
26743 which can conflict with char $ac_func (); below.
26744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26745 <limits.h> exists even on freestanding compilers. */
26746
26747#ifdef __STDC__
26748# include <limits.h>
26749#else
26750# include <assert.h>
26751#endif
26752
26753#undef $ac_func
26754
26755/* Override any gcc2 internal prototype to avoid an error. */
26756#ifdef __cplusplus
26757extern "C"
26758{
26759#endif
26760/* We use char because int might match the return type of a gcc2
26761 builtin and then its argument prototype would still apply. */
26762char $ac_func ();
26763/* The GNU C library defines this for functions which it implements
26764 to always fail with ENOSYS. Some functions are actually named
26765 something starting with __ and the normal name is an alias. */
26766#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26767choke me
26768#else
26769char (*f) () = $ac_func;
26770#endif
26771#ifdef __cplusplus
26772}
26773#endif
John Criswell7a73b802003-06-30 21:59:07 +000026774
John Criswell7a73b802003-06-30 21:59:07 +000026775int
26776main ()
26777{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026778return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000026779 ;
26780 return 0;
26781}
26782_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026783rm -f conftest.$ac_objext conftest$ac_exeext
26784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26785 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026786 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026787 grep -v '^ *+' conftest.er1 >conftest.err
26788 rm -f conftest.er1
26789 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026792 { ac_try='test -z "$ac_c_werror_flag"
26793 || test ! -s conftest.err'
26794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26795 (eval $ac_try) 2>&5
26796 ac_status=$?
26797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026799 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000026800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26801 (eval $ac_try) 2>&5
26802 ac_status=$?
26803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026805 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000026806else
26807 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026808sed 's/^/| /' conftest.$ac_ext >&5
26809
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026810eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000026811fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026812rm -f conftest.err conftest.$ac_objext \
26813 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026814fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026815echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26816echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26817if test `eval echo '${'$as_ac_var'}'` = yes; then
26818 cat >>confdefs.h <<_ACEOF
26819#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000026820_ACEOF
26821
26822fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026823done
John Criswell7a73b802003-06-30 21:59:07 +000026824
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026825
26826
26827
26828for ac_func in strdup strtoq strtoll
26829do
26830as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26831echo "$as_me:$LINENO: checking for $ac_func" >&5
26832echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26833if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000026834 echo $ECHO_N "(cached) $ECHO_C" >&6
26835else
26836 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026837/* confdefs.h. */
26838_ACEOF
26839cat confdefs.h >>conftest.$ac_ext
26840cat >>conftest.$ac_ext <<_ACEOF
26841/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026842/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26844#define $ac_func innocuous_$ac_func
26845
26846/* System header to define __stub macros and hopefully few prototypes,
26847 which can conflict with char $ac_func (); below.
26848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26849 <limits.h> exists even on freestanding compilers. */
26850
26851#ifdef __STDC__
26852# include <limits.h>
26853#else
26854# include <assert.h>
26855#endif
26856
26857#undef $ac_func
26858
26859/* Override any gcc2 internal prototype to avoid an error. */
26860#ifdef __cplusplus
26861extern "C"
26862{
26863#endif
26864/* We use char because int might match the return type of a gcc2
26865 builtin and then its argument prototype would still apply. */
26866char $ac_func ();
26867/* The GNU C library defines this for functions which it implements
26868 to always fail with ENOSYS. Some functions are actually named
26869 something starting with __ and the normal name is an alias. */
26870#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26871choke me
26872#else
26873char (*f) () = $ac_func;
26874#endif
26875#ifdef __cplusplus
26876}
26877#endif
John Criswell7a73b802003-06-30 21:59:07 +000026878
John Criswell7a73b802003-06-30 21:59:07 +000026879int
26880main ()
26881{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026882return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000026883 ;
26884 return 0;
26885}
26886_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026887rm -f conftest.$ac_objext conftest$ac_exeext
26888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26889 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026890 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026891 grep -v '^ *+' conftest.er1 >conftest.err
26892 rm -f conftest.er1
26893 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26895 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026896 { ac_try='test -z "$ac_c_werror_flag"
26897 || test ! -s conftest.err'
26898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26899 (eval $ac_try) 2>&5
26900 ac_status=$?
26901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026903 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000026904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26905 (eval $ac_try) 2>&5
26906 ac_status=$?
26907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026909 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000026910else
26911 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026912sed 's/^/| /' conftest.$ac_ext >&5
26913
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026914eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000026915fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026916rm -f conftest.err conftest.$ac_objext \
26917 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026918fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026919echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26920echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26921if test `eval echo '${'$as_ac_var'}'` = yes; then
26922 cat >>confdefs.h <<_ACEOF
26923#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000026924_ACEOF
26925
26926fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026927done
John Criswell7a73b802003-06-30 21:59:07 +000026928
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026929echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
26930echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000026931if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026932 echo $ECHO_N "(cached) $ECHO_C" >&6
26933else
Reid Spencer2706f8c2004-09-19 23:53:36 +000026934 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000026935ac_cpp='$CPP $CPPFLAGS'
26936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26938ac_compiler_gnu=$ac_cv_c_compiler_gnu
26939
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026940 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000026941 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000026942else
26943 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000026944
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026945 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000026946_ACEOF
26947cat confdefs.h >>conftest.$ac_ext
26948cat >>conftest.$ac_ext <<_ACEOF
26949/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000026950
John Criswella0137d32003-10-13 16:22:01 +000026951#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000026952#include <stdlib.h>
26953
John Criswella0137d32003-10-13 16:22:01 +000026954int
26955main ()
26956{
26957
Reid Spencer2706f8c2004-09-19 23:53:36 +000026958volatile double A, B;
26959char Buffer[100];
26960A = 1;
26961A /= 10.0;
26962sprintf(Buffer, "%a", A);
26963B = atof(Buffer);
26964if (A != B)
26965 return (1);
26966if (A != 0x1.999999999999ap-4)
26967 return (1);
26968return (0);
John Criswella0137d32003-10-13 16:22:01 +000026969 ;
26970 return 0;
26971}
26972_ACEOF
26973rm -f conftest$ac_exeext
26974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26975 (eval $ac_link) 2>&5
26976 ac_status=$?
26977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26980 (eval $ac_try) 2>&5
26981 ac_status=$?
26982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26983 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000026984 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000026985else
26986 echo "$as_me: program exited with status $ac_status" >&5
26987echo "$as_me: failed program was:" >&5
26988sed 's/^/| /' conftest.$ac_ext >&5
26989
26990( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000026991llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000026992fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026993rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000026994fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026995 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000026996ac_cpp='$CPP $CPPFLAGS'
26997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26999ac_compiler_gnu=$ac_cv_c_compiler_gnu
27000
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027001fi
Reid Spencer3be58f92004-11-27 22:01:43 +000027002echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27003echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27004 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000027005
27006cat >>confdefs.h <<\_ACEOF
27007#define HAVE_PRINTF_A 1
27008_ACEOF
27009
Reid Spencer2706f8c2004-09-19 23:53:36 +000027010 fi
John Criswella0137d32003-10-13 16:22:01 +000027011
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027012# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27013# for constant arguments. Useless!
27014echo "$as_me:$LINENO: checking for working alloca.h" >&5
27015echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27016if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000027017 echo $ECHO_N "(cached) $ECHO_C" >&6
27018else
John Criswell0021c312004-02-13 21:57:29 +000027019 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000027020/* confdefs.h. */
27021_ACEOF
27022cat confdefs.h >>conftest.$ac_ext
27023cat >>conftest.$ac_ext <<_ACEOF
27024/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027025#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000027026int
27027main ()
27028{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027029char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000027030 ;
27031 return 0;
27032}
27033_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027034rm -f conftest.$ac_objext conftest$ac_exeext
27035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27036 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000027037 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027038 grep -v '^ *+' conftest.er1 >conftest.err
27039 rm -f conftest.er1
27040 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000027041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027043 { ac_try='test -z "$ac_c_werror_flag"
27044 || test ! -s conftest.err'
27045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27046 (eval $ac_try) 2>&5
27047 ac_status=$?
27048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027050 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000027051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27052 (eval $ac_try) 2>&5
27053 ac_status=$?
27054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27055 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027056 ac_cv_working_alloca_h=yes
27057else
27058 echo "$as_me: failed program was:" >&5
27059sed 's/^/| /' conftest.$ac_ext >&5
27060
27061ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000027062fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027063rm -f conftest.err conftest.$ac_objext \
27064 conftest$ac_exeext conftest.$ac_ext
27065fi
27066echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27067echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27068if test $ac_cv_working_alloca_h = yes; then
27069
27070cat >>confdefs.h <<\_ACEOF
27071#define HAVE_ALLOCA_H 1
27072_ACEOF
27073
27074fi
27075
27076echo "$as_me:$LINENO: checking for alloca" >&5
27077echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27078if test "${ac_cv_func_alloca_works+set}" = set; then
27079 echo $ECHO_N "(cached) $ECHO_C" >&6
27080else
27081 cat >conftest.$ac_ext <<_ACEOF
27082/* confdefs.h. */
27083_ACEOF
27084cat confdefs.h >>conftest.$ac_ext
27085cat >>conftest.$ac_ext <<_ACEOF
27086/* end confdefs.h. */
27087#ifdef __GNUC__
27088# define alloca __builtin_alloca
27089#else
27090# ifdef _MSC_VER
27091# include <malloc.h>
27092# define alloca _alloca
27093# else
27094# if HAVE_ALLOCA_H
27095# include <alloca.h>
27096# else
27097# ifdef _AIX
27098 #pragma alloca
27099# else
27100# ifndef alloca /* predefined by HP cc +Olibcalls */
27101char *alloca ();
27102# endif
27103# endif
27104# endif
27105# endif
27106#endif
27107
27108int
27109main ()
27110{
27111char *p = (char *) alloca (1);
27112 ;
27113 return 0;
27114}
27115_ACEOF
27116rm -f conftest.$ac_objext conftest$ac_exeext
27117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27118 (eval $ac_link) 2>conftest.er1
27119 ac_status=$?
27120 grep -v '^ *+' conftest.er1 >conftest.err
27121 rm -f conftest.er1
27122 cat conftest.err >&5
27123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124 (exit $ac_status); } &&
27125 { ac_try='test -z "$ac_c_werror_flag"
27126 || test ! -s conftest.err'
27127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27128 (eval $ac_try) 2>&5
27129 ac_status=$?
27130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131 (exit $ac_status); }; } &&
27132 { ac_try='test -s conftest$ac_exeext'
27133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27134 (eval $ac_try) 2>&5
27135 ac_status=$?
27136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137 (exit $ac_status); }; }; then
27138 ac_cv_func_alloca_works=yes
27139else
27140 echo "$as_me: failed program was:" >&5
27141sed 's/^/| /' conftest.$ac_ext >&5
27142
27143ac_cv_func_alloca_works=no
27144fi
27145rm -f conftest.err conftest.$ac_objext \
27146 conftest$ac_exeext conftest.$ac_ext
27147fi
27148echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27149echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27150
27151if test $ac_cv_func_alloca_works = yes; then
27152
27153cat >>confdefs.h <<\_ACEOF
27154#define HAVE_ALLOCA 1
27155_ACEOF
27156
27157else
27158 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27159# that cause trouble. Some versions do not even contain alloca or
27160# contain a buggy version. If you still want to use their alloca,
27161# use ar to extract alloca.o from them instead of compiling alloca.c.
27162
27163ALLOCA=alloca.$ac_objext
27164
27165cat >>confdefs.h <<\_ACEOF
27166#define C_ALLOCA 1
27167_ACEOF
27168
27169
27170echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27171echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27172if test "${ac_cv_os_cray+set}" = set; then
27173 echo $ECHO_N "(cached) $ECHO_C" >&6
27174else
27175 cat >conftest.$ac_ext <<_ACEOF
27176/* confdefs.h. */
27177_ACEOF
27178cat confdefs.h >>conftest.$ac_ext
27179cat >>conftest.$ac_ext <<_ACEOF
27180/* end confdefs.h. */
27181#if defined(CRAY) && ! defined(CRAY2)
27182webecray
27183#else
27184wenotbecray
27185#endif
27186
27187_ACEOF
27188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27189 $EGREP "webecray" >/dev/null 2>&1; then
27190 ac_cv_os_cray=yes
27191else
27192 ac_cv_os_cray=no
27193fi
27194rm -f conftest*
27195
27196fi
27197echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27198echo "${ECHO_T}$ac_cv_os_cray" >&6
27199if test $ac_cv_os_cray = yes; then
27200 for ac_func in _getb67 GETB67 getb67; do
27201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27202echo "$as_me:$LINENO: checking for $ac_func" >&5
27203echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27204if eval "test \"\${$as_ac_var+set}\" = set"; then
27205 echo $ECHO_N "(cached) $ECHO_C" >&6
27206else
27207 cat >conftest.$ac_ext <<_ACEOF
27208/* confdefs.h. */
27209_ACEOF
27210cat confdefs.h >>conftest.$ac_ext
27211cat >>conftest.$ac_ext <<_ACEOF
27212/* end confdefs.h. */
27213/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27215#define $ac_func innocuous_$ac_func
27216
27217/* System header to define __stub macros and hopefully few prototypes,
27218 which can conflict with char $ac_func (); below.
27219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27220 <limits.h> exists even on freestanding compilers. */
27221
27222#ifdef __STDC__
27223# include <limits.h>
27224#else
27225# include <assert.h>
27226#endif
27227
27228#undef $ac_func
27229
27230/* Override any gcc2 internal prototype to avoid an error. */
27231#ifdef __cplusplus
27232extern "C"
27233{
27234#endif
27235/* We use char because int might match the return type of a gcc2
27236 builtin and then its argument prototype would still apply. */
27237char $ac_func ();
27238/* The GNU C library defines this for functions which it implements
27239 to always fail with ENOSYS. Some functions are actually named
27240 something starting with __ and the normal name is an alias. */
27241#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27242choke me
27243#else
27244char (*f) () = $ac_func;
27245#endif
27246#ifdef __cplusplus
27247}
27248#endif
27249
27250int
27251main ()
27252{
27253return f != $ac_func;
27254 ;
27255 return 0;
27256}
27257_ACEOF
27258rm -f conftest.$ac_objext conftest$ac_exeext
27259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27260 (eval $ac_link) 2>conftest.er1
27261 ac_status=$?
27262 grep -v '^ *+' conftest.er1 >conftest.err
27263 rm -f conftest.er1
27264 cat conftest.err >&5
27265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); } &&
27267 { ac_try='test -z "$ac_c_werror_flag"
27268 || test ! -s conftest.err'
27269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27270 (eval $ac_try) 2>&5
27271 ac_status=$?
27272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273 (exit $ac_status); }; } &&
27274 { ac_try='test -s conftest$ac_exeext'
27275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27276 (eval $ac_try) 2>&5
27277 ac_status=$?
27278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27279 (exit $ac_status); }; }; then
27280 eval "$as_ac_var=yes"
27281else
27282 echo "$as_me: failed program was:" >&5
27283sed 's/^/| /' conftest.$ac_ext >&5
27284
27285eval "$as_ac_var=no"
27286fi
27287rm -f conftest.err conftest.$ac_objext \
27288 conftest$ac_exeext conftest.$ac_ext
27289fi
27290echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27291echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27292if test `eval echo '${'$as_ac_var'}'` = yes; then
27293
27294cat >>confdefs.h <<_ACEOF
27295#define CRAY_STACKSEG_END $ac_func
27296_ACEOF
27297
27298 break
27299fi
27300
27301 done
27302fi
27303
27304echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27305echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27306if test "${ac_cv_c_stack_direction+set}" = set; then
27307 echo $ECHO_N "(cached) $ECHO_C" >&6
27308else
27309 if test "$cross_compiling" = yes; then
27310 ac_cv_c_stack_direction=0
27311else
27312 cat >conftest.$ac_ext <<_ACEOF
27313/* confdefs.h. */
27314_ACEOF
27315cat confdefs.h >>conftest.$ac_ext
27316cat >>conftest.$ac_ext <<_ACEOF
27317/* end confdefs.h. */
27318int
27319find_stack_direction ()
27320{
27321 static char *addr = 0;
27322 auto char dummy;
27323 if (addr == 0)
27324 {
27325 addr = &dummy;
27326 return find_stack_direction ();
27327 }
John Criswell0021c312004-02-13 21:57:29 +000027328 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027329 return (&dummy > addr) ? 1 : -1;
27330}
John Criswell0021c312004-02-13 21:57:29 +000027331
John Criswell0021c312004-02-13 21:57:29 +000027332int
27333main ()
27334{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027335 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000027336}
27337_ACEOF
27338rm -f conftest$ac_exeext
27339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27340 (eval $ac_link) 2>&5
27341 ac_status=$?
27342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27345 (eval $ac_try) 2>&5
27346 ac_status=$?
27347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27348 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027349 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000027350else
27351 echo "$as_me: program exited with status $ac_status" >&5
27352echo "$as_me: failed program was:" >&5
27353sed 's/^/| /' conftest.$ac_ext >&5
27354
27355( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027356ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000027357fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027358rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000027359fi
27360fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027361echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27362echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27363
27364cat >>confdefs.h <<_ACEOF
27365#define STACK_DIRECTION $ac_cv_c_stack_direction
27366_ACEOF
27367
27368
John Criswell0021c312004-02-13 21:57:29 +000027369fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027370
27371
27372echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27373echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27374if test "${ac_cv_func_rand48+set}" = set; then
27375 echo $ECHO_N "(cached) $ECHO_C" >&6
27376else
27377 ac_ext=cc
27378ac_cpp='$CXXCPP $CPPFLAGS'
27379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27382
27383 cat >conftest.$ac_ext <<_ACEOF
27384/* confdefs.h. */
27385_ACEOF
27386cat confdefs.h >>conftest.$ac_ext
27387cat >>conftest.$ac_ext <<_ACEOF
27388/* end confdefs.h. */
27389#include <stdlib.h>
27390int
27391main ()
27392{
27393srand48(0);lrand48();drand48();
27394 ;
27395 return 0;
27396}
27397_ACEOF
27398rm -f conftest.$ac_objext
27399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27400 (eval $ac_compile) 2>conftest.er1
27401 ac_status=$?
27402 grep -v '^ *+' conftest.er1 >conftest.err
27403 rm -f conftest.er1
27404 cat conftest.err >&5
27405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406 (exit $ac_status); } &&
27407 { ac_try='test -z "$ac_cxx_werror_flag"
27408 || test ! -s conftest.err'
27409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27410 (eval $ac_try) 2>&5
27411 ac_status=$?
27412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413 (exit $ac_status); }; } &&
27414 { ac_try='test -s conftest.$ac_objext'
27415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27416 (eval $ac_try) 2>&5
27417 ac_status=$?
27418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27419 (exit $ac_status); }; }; then
27420 ac_cv_func_rand48=yes
27421else
27422 echo "$as_me: failed program was:" >&5
27423sed 's/^/| /' conftest.$ac_ext >&5
27424
27425ac_cv_func_rand48=no
27426fi
27427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27428 ac_ext=c
27429ac_cpp='$CPP $CPPFLAGS'
27430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27432ac_compiler_gnu=$ac_cv_c_compiler_gnu
27433
27434fi
27435echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27436echo "${ECHO_T}$ac_cv_func_rand48" >&6
27437
27438if test "$ac_cv_func_rand48" = "yes" ; then
27439
27440cat >>confdefs.h <<\_ACEOF
27441#define HAVE_RAND48 1
27442_ACEOF
27443
27444fi
John Criswell0021c312004-02-13 21:57:29 +000027445
27446
John Criswell7a73b802003-06-30 21:59:07 +000027447echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27448echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27449if test "${ac_cv_cxx_namespaces+set}" = set; then
27450 echo $ECHO_N "(cached) $ECHO_C" >&6
27451else
Reid Spencer2706f8c2004-09-19 23:53:36 +000027452 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000027453ac_cpp='$CXXCPP $CPPFLAGS'
27454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27457
27458 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027459/* confdefs.h. */
27460_ACEOF
27461cat confdefs.h >>conftest.$ac_ext
27462cat >>conftest.$ac_ext <<_ACEOF
27463/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027464namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000027465int
27466main ()
27467{
27468using namespace Outer::Inner; return i;
27469 ;
27470 return 0;
27471}
27472_ACEOF
27473rm -f conftest.$ac_objext
27474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027475 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027476 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027477 grep -v '^ *+' conftest.er1 >conftest.err
27478 rm -f conftest.er1
27479 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27481 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027482 { ac_try='test -z "$ac_cxx_werror_flag"
27483 || test ! -s conftest.err'
27484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27485 (eval $ac_try) 2>&5
27486 ac_status=$?
27487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488 (exit $ac_status); }; } &&
27489 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27491 (eval $ac_try) 2>&5
27492 ac_status=$?
27493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); }; }; then
27495 ac_cv_cxx_namespaces=yes
27496else
27497 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027498sed 's/^/| /' conftest.$ac_ext >&5
27499
John Criswell7a73b802003-06-30 21:59:07 +000027500ac_cv_cxx_namespaces=no
27501fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027503 ac_ext=c
27504ac_cpp='$CPP $CPPFLAGS'
27505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27507ac_compiler_gnu=$ac_cv_c_compiler_gnu
27508
27509
27510fi
27511echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
27512echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
27513if test "$ac_cv_cxx_namespaces" = yes; then
27514
27515cat >>confdefs.h <<\_ACEOF
27516#define HAVE_NAMESPACES
27517_ACEOF
27518
27519fi
27520
Brian Gaeke90583492003-11-10 03:06:28 +000027521echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
27522echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
27523if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000027524 echo $ECHO_N "(cached) $ECHO_C" >&6
27525else
27526
John Criswell7a73b802003-06-30 21:59:07 +000027527 ac_ext=cc
27528ac_cpp='$CXXCPP $CPPFLAGS'
27529ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27530ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27531ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27532
27533 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027534/* confdefs.h. */
27535_ACEOF
27536cat confdefs.h >>conftest.$ac_ext
27537cat >>conftest.$ac_ext <<_ACEOF
27538/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027539#include <ext/hash_map>
27540#ifdef HAVE_NAMESPACES
27541using namespace std;
27542#endif
John Criswell7a73b802003-06-30 21:59:07 +000027543int
27544main ()
27545{
Brian Gaeke90583492003-11-10 03:06:28 +000027546hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000027547 ;
27548 return 0;
27549}
27550_ACEOF
27551rm -f conftest.$ac_objext
27552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027553 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027554 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027555 grep -v '^ *+' conftest.er1 >conftest.err
27556 rm -f conftest.er1
27557 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027560 { ac_try='test -z "$ac_cxx_werror_flag"
27561 || test ! -s conftest.err'
27562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27563 (eval $ac_try) 2>&5
27564 ac_status=$?
27565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566 (exit $ac_status); }; } &&
27567 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27569 (eval $ac_try) 2>&5
27570 ac_status=$?
27571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000027573 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000027574else
27575 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027576sed 's/^/| /' conftest.$ac_ext >&5
27577
Brian Gaeke90583492003-11-10 03:06:28 +000027578ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000027579fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027581 ac_ext=c
27582ac_cpp='$CPP $CPPFLAGS'
27583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27585ac_compiler_gnu=$ac_cv_c_compiler_gnu
27586
John Criswell7a73b802003-06-30 21:59:07 +000027587fi
Brian Gaeke90583492003-11-10 03:06:28 +000027588echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
27589echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027590 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
27591 then
John Criswell9f011862004-09-24 18:28:00 +000027592
27593cat >>confdefs.h <<\_ACEOF
27594#define HAVE_STD_EXT_HASH_MAP 1
27595_ACEOF
27596
27597 else
27598
27599cat >>confdefs.h <<\_ACEOF
27600#define HAVE_STD_EXT_HASH_MAP 0
27601_ACEOF
27602
Brian Gaeke90583492003-11-10 03:06:28 +000027603 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027604
Brian Gaeke90583492003-11-10 03:06:28 +000027605 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
27606echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
27607if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
27608 echo $ECHO_N "(cached) $ECHO_C" >&6
27609else
27610
Brian Gaeke90583492003-11-10 03:06:28 +000027611 ac_ext=cc
27612ac_cpp='$CXXCPP $CPPFLAGS'
27613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27616
27617 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000027618/* confdefs.h. */
27619_ACEOF
27620cat confdefs.h >>conftest.$ac_ext
27621cat >>conftest.$ac_ext <<_ACEOF
27622/* end confdefs.h. */
27623#include <ext/hash_map>
27624#ifdef HAVE_NAMESPACES
27625using namespace __gnu_cxx;
27626#endif
27627int
27628main ()
27629{
27630hash_map<int,int> t;
27631 ;
27632 return 0;
27633}
27634_ACEOF
27635rm -f conftest.$ac_objext
27636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027637 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000027638 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027639 grep -v '^ *+' conftest.er1 >conftest.err
27640 rm -f conftest.er1
27641 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000027642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027644 { ac_try='test -z "$ac_cxx_werror_flag"
27645 || test ! -s conftest.err'
27646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27647 (eval $ac_try) 2>&5
27648 ac_status=$?
27649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650 (exit $ac_status); }; } &&
27651 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000027652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27653 (eval $ac_try) 2>&5
27654 ac_status=$?
27655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656 (exit $ac_status); }; }; then
27657 ac_cv_cxx_have_gnu_ext_hash_map=yes
27658else
27659 echo "$as_me: failed program was:" >&5
27660sed 's/^/| /' conftest.$ac_ext >&5
27661
27662ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000027663fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027665 ac_ext=c
27666ac_cpp='$CPP $CPPFLAGS'
27667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27669ac_compiler_gnu=$ac_cv_c_compiler_gnu
27670
27671fi
27672echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
27673echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027674 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
27675 then
John Criswell9f011862004-09-24 18:28:00 +000027676
27677cat >>confdefs.h <<\_ACEOF
27678#define HAVE_GNU_EXT_HASH_MAP 1
27679_ACEOF
27680
27681 else
27682
27683cat >>confdefs.h <<\_ACEOF
27684#define HAVE_GNU_EXT_HASH_MAP 0
27685_ACEOF
27686
Brian Gaeke90583492003-11-10 03:06:28 +000027687 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027688
Brian Gaeke90583492003-11-10 03:06:28 +000027689 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
27690echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
27691if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
27692 echo $ECHO_N "(cached) $ECHO_C" >&6
27693else
John Criswell7a73b802003-06-30 21:59:07 +000027694
Brian Gaeke90583492003-11-10 03:06:28 +000027695 ac_ext=cc
27696ac_cpp='$CXXCPP $CPPFLAGS'
27697ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27698ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27699ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27700
27701 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000027702/* confdefs.h. */
27703_ACEOF
27704cat confdefs.h >>conftest.$ac_ext
27705cat >>conftest.$ac_ext <<_ACEOF
27706/* end confdefs.h. */
27707#include <hash_map>
27708int
27709main ()
27710{
27711hash_map<int,int> t;
27712 ;
27713 return 0;
27714}
27715_ACEOF
27716rm -f conftest.$ac_objext
27717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027718 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000027719 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027720 grep -v '^ *+' conftest.er1 >conftest.err
27721 rm -f conftest.er1
27722 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000027723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27724 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027725 { ac_try='test -z "$ac_cxx_werror_flag"
27726 || test ! -s conftest.err'
27727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27728 (eval $ac_try) 2>&5
27729 ac_status=$?
27730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731 (exit $ac_status); }; } &&
27732 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000027733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27734 (eval $ac_try) 2>&5
27735 ac_status=$?
27736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737 (exit $ac_status); }; }; then
27738 ac_cv_cxx_have_global_hash_map=yes
27739else
27740 echo "$as_me: failed program was:" >&5
27741sed 's/^/| /' conftest.$ac_ext >&5
27742
27743ac_cv_cxx_have_global_hash_map=no
27744fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027746 ac_ext=c
27747ac_cpp='$CPP $CPPFLAGS'
27748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27750ac_compiler_gnu=$ac_cv_c_compiler_gnu
27751
27752fi
27753echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
27754echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027755 if test "$ac_cv_cxx_have_global_hash_map" = yes
27756 then
John Criswell9f011862004-09-24 18:28:00 +000027757
27758cat >>confdefs.h <<\_ACEOF
27759#define HAVE_GLOBAL_HASH_MAP 1
27760_ACEOF
27761
27762 else
27763
27764cat >>confdefs.h <<\_ACEOF
27765#define HAVE_GLOBAL_HASH_MAP 0
27766_ACEOF
27767
Brian Gaeke90583492003-11-10 03:06:28 +000027768 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027769
Brian Gaeke90583492003-11-10 03:06:28 +000027770echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
27771echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
27772if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000027773 echo $ECHO_N "(cached) $ECHO_C" >&6
27774else
27775
John Criswell7a73b802003-06-30 21:59:07 +000027776 ac_ext=cc
27777ac_cpp='$CXXCPP $CPPFLAGS'
27778ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27779ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27780ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27781
27782 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027783/* confdefs.h. */
27784_ACEOF
27785cat confdefs.h >>conftest.$ac_ext
27786cat >>conftest.$ac_ext <<_ACEOF
27787/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027788#include <ext/hash_set>
27789#ifdef HAVE_NAMESPACES
27790using namespace std;
27791#endif
John Criswell7a73b802003-06-30 21:59:07 +000027792int
27793main ()
27794{
Brian Gaeke90583492003-11-10 03:06:28 +000027795hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000027796 ;
27797 return 0;
27798}
27799_ACEOF
27800rm -f conftest.$ac_objext
27801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027802 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027803 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027804 grep -v '^ *+' conftest.er1 >conftest.err
27805 rm -f conftest.er1
27806 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27808 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027809 { ac_try='test -z "$ac_cxx_werror_flag"
27810 || test ! -s conftest.err'
27811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27812 (eval $ac_try) 2>&5
27813 ac_status=$?
27814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815 (exit $ac_status); }; } &&
27816 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27818 (eval $ac_try) 2>&5
27819 ac_status=$?
27820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000027822 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000027823else
27824 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027825sed 's/^/| /' conftest.$ac_ext >&5
27826
Brian Gaeke90583492003-11-10 03:06:28 +000027827ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000027828fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027830 ac_ext=c
27831ac_cpp='$CPP $CPPFLAGS'
27832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27834ac_compiler_gnu=$ac_cv_c_compiler_gnu
27835
27836fi
27837echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
27838echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027839 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
27840 then
John Criswell9f011862004-09-24 18:28:00 +000027841
27842cat >>confdefs.h <<\_ACEOF
27843#define HAVE_STD_EXT_HASH_SET 1
27844_ACEOF
27845
27846 else
27847
27848cat >>confdefs.h <<\_ACEOF
27849#define HAVE_STD_EXT_HASH_SET 0
27850_ACEOF
27851
Brian Gaeke90583492003-11-10 03:06:28 +000027852 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027853
Brian Gaeke90583492003-11-10 03:06:28 +000027854 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
27855echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
27856if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
27857 echo $ECHO_N "(cached) $ECHO_C" >&6
27858else
27859
Brian Gaeke90583492003-11-10 03:06:28 +000027860 ac_ext=cc
27861ac_cpp='$CXXCPP $CPPFLAGS'
27862ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27863ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27864ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27865
John Criswell7a73b802003-06-30 21:59:07 +000027866 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027867/* confdefs.h. */
27868_ACEOF
27869cat confdefs.h >>conftest.$ac_ext
27870cat >>conftest.$ac_ext <<_ACEOF
27871/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027872#include <ext/hash_set>
27873#ifdef HAVE_NAMESPACES
27874using namespace __gnu_cxx;
27875#endif
John Criswell7a73b802003-06-30 21:59:07 +000027876int
27877main ()
27878{
Brian Gaeke90583492003-11-10 03:06:28 +000027879hash_set<int> t;
27880 ;
27881 return 0;
27882}
27883_ACEOF
27884rm -f conftest.$ac_objext
27885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027886 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000027887 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027888 grep -v '^ *+' conftest.er1 >conftest.err
27889 rm -f conftest.er1
27890 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000027891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027893 { ac_try='test -z "$ac_cxx_werror_flag"
27894 || test ! -s conftest.err'
27895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27896 (eval $ac_try) 2>&5
27897 ac_status=$?
27898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899 (exit $ac_status); }; } &&
27900 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000027901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27902 (eval $ac_try) 2>&5
27903 ac_status=$?
27904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27905 (exit $ac_status); }; }; then
27906 ac_cv_cxx_have_gnu_ext_hash_set=yes
27907else
27908 echo "$as_me: failed program was:" >&5
27909sed 's/^/| /' conftest.$ac_ext >&5
27910
27911ac_cv_cxx_have_gnu_ext_hash_set=no
27912fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027914 ac_ext=c
27915ac_cpp='$CPP $CPPFLAGS'
27916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27918ac_compiler_gnu=$ac_cv_c_compiler_gnu
27919
27920fi
27921echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
27922echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027923 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
27924 then
John Criswell9f011862004-09-24 18:28:00 +000027925
27926cat >>confdefs.h <<\_ACEOF
27927#define HAVE_GNU_EXT_HASH_SET 1
27928_ACEOF
27929
27930 else
27931
27932cat >>confdefs.h <<\_ACEOF
27933#define HAVE_GNU_EXT_HASH_SET 0
27934_ACEOF
27935
Brian Gaeke90583492003-11-10 03:06:28 +000027936 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027937
Brian Gaeke90583492003-11-10 03:06:28 +000027938 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
27939echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
27940if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
27941 echo $ECHO_N "(cached) $ECHO_C" >&6
27942else
27943
Brian Gaeke90583492003-11-10 03:06:28 +000027944 ac_ext=cc
27945ac_cpp='$CXXCPP $CPPFLAGS'
27946ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27947ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27948ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27949
27950 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000027951/* confdefs.h. */
27952_ACEOF
27953cat confdefs.h >>conftest.$ac_ext
27954cat >>conftest.$ac_ext <<_ACEOF
27955/* end confdefs.h. */
27956#include <hash_set>
27957int
27958main ()
27959{
John Criswell7a73b802003-06-30 21:59:07 +000027960hash_set<int> t; return 0;
27961 ;
27962 return 0;
27963}
27964_ACEOF
27965rm -f conftest.$ac_objext
27966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027967 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027968 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027969 grep -v '^ *+' conftest.er1 >conftest.err
27970 rm -f conftest.er1
27971 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027974 { ac_try='test -z "$ac_cxx_werror_flag"
27975 || test ! -s conftest.err'
27976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27977 (eval $ac_try) 2>&5
27978 ac_status=$?
27979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27980 (exit $ac_status); }; } &&
27981 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27983 (eval $ac_try) 2>&5
27984 ac_status=$?
27985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000027987 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000027988else
27989 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027990sed 's/^/| /' conftest.$ac_ext >&5
27991
Brian Gaeke90583492003-11-10 03:06:28 +000027992ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000027993fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027995 ac_ext=c
27996ac_cpp='$CPP $CPPFLAGS'
27997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27999ac_compiler_gnu=$ac_cv_c_compiler_gnu
28000
John Criswell7a73b802003-06-30 21:59:07 +000028001fi
Brian Gaeke90583492003-11-10 03:06:28 +000028002echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28003echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028004 if test "$ac_cv_cxx_have_global_hash_set" = yes
28005 then
John Criswell9f011862004-09-24 18:28:00 +000028006
28007cat >>confdefs.h <<\_ACEOF
28008#define HAVE_GLOBAL_HASH_SET 1
28009_ACEOF
28010
28011 else
28012
28013cat >>confdefs.h <<\_ACEOF
28014#define HAVE_GLOBAL_HASH_SET 0
28015_ACEOF
28016
Brian Gaeke90583492003-11-10 03:06:28 +000028017 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028018
John Criswell7a73b802003-06-30 21:59:07 +000028019echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28020echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28021if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28022 echo $ECHO_N "(cached) $ECHO_C" >&6
28023else
28024
John Criswell7a73b802003-06-30 21:59:07 +000028025 ac_ext=cc
28026ac_cpp='$CXXCPP $CPPFLAGS'
28027ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28028ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28029ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28030
28031 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028032/* confdefs.h. */
28033_ACEOF
28034cat confdefs.h >>conftest.$ac_ext
28035cat >>conftest.$ac_ext <<_ACEOF
28036/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028037#include <iterator>
28038#ifdef HAVE_NAMESPACES
28039using namespace std;
28040#endif
John Criswell7a73b802003-06-30 21:59:07 +000028041int
28042main ()
28043{
28044iterator<int,int,int> t; return 0;
28045 ;
28046 return 0;
28047}
28048_ACEOF
28049rm -f conftest.$ac_objext
28050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028051 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028052 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028053 grep -v '^ *+' conftest.er1 >conftest.err
28054 rm -f conftest.er1
28055 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028058 { ac_try='test -z "$ac_cxx_werror_flag"
28059 || test ! -s conftest.err'
28060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28061 (eval $ac_try) 2>&5
28062 ac_status=$?
28063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064 (exit $ac_status); }; } &&
28065 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28067 (eval $ac_try) 2>&5
28068 ac_status=$?
28069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070 (exit $ac_status); }; }; then
28071 ac_cv_cxx_have_std_iterator=yes
28072else
28073 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028074sed 's/^/| /' conftest.$ac_ext >&5
28075
John Criswell7a73b802003-06-30 21:59:07 +000028076ac_cv_cxx_have_std_iterator=no
28077fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028079 ac_ext=c
28080ac_cpp='$CPP $CPPFLAGS'
28081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28083ac_compiler_gnu=$ac_cv_c_compiler_gnu
28084
28085
28086fi
28087echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28088echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028089if test "$ac_cv_cxx_have_std_iterator" = yes
28090then
John Criswell40468462004-09-24 21:19:06 +000028091
28092cat >>confdefs.h <<\_ACEOF
28093#define HAVE_STD_ITERATOR 1
28094_ACEOF
28095
28096else
28097
28098cat >>confdefs.h <<\_ACEOF
28099#define HAVE_STD_ITERATOR 0
28100_ACEOF
28101
John Criswell7a73b802003-06-30 21:59:07 +000028102fi
28103
28104echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28105echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28106if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28107 echo $ECHO_N "(cached) $ECHO_C" >&6
28108else
28109
John Criswell7a73b802003-06-30 21:59:07 +000028110 ac_ext=cc
28111ac_cpp='$CXXCPP $CPPFLAGS'
28112ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28113ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28114ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28115
28116 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028117/* confdefs.h. */
28118_ACEOF
28119cat confdefs.h >>conftest.$ac_ext
28120cat >>conftest.$ac_ext <<_ACEOF
28121/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028122#include <iterator>
28123#ifdef HAVE_NAMESPACES
28124using namespace std;
28125#endif
John Criswell7a73b802003-06-30 21:59:07 +000028126int
28127main ()
28128{
John Criswellc78022e2003-07-29 19:11:58 +000028129bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028130 ;
28131 return 0;
28132}
28133_ACEOF
28134rm -f conftest.$ac_objext
28135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028136 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028137 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028138 grep -v '^ *+' conftest.er1 >conftest.err
28139 rm -f conftest.er1
28140 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028143 { ac_try='test -z "$ac_cxx_werror_flag"
28144 || test ! -s conftest.err'
28145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28146 (eval $ac_try) 2>&5
28147 ac_status=$?
28148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149 (exit $ac_status); }; } &&
28150 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28152 (eval $ac_try) 2>&5
28153 ac_status=$?
28154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155 (exit $ac_status); }; }; then
28156 ac_cv_cxx_have_bi_iterator=yes
28157else
28158 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028159sed 's/^/| /' conftest.$ac_ext >&5
28160
John Criswell7a73b802003-06-30 21:59:07 +000028161ac_cv_cxx_have_bi_iterator=no
28162fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028164 ac_ext=c
28165ac_cpp='$CPP $CPPFLAGS'
28166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28168ac_compiler_gnu=$ac_cv_c_compiler_gnu
28169
28170
28171fi
28172echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28173echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028174if test "$ac_cv_cxx_have_bi_iterator" = yes
28175then
John Criswell40468462004-09-24 21:19:06 +000028176
28177cat >>confdefs.h <<\_ACEOF
28178#define HAVE_BI_ITERATOR 1
28179_ACEOF
28180
28181else
28182
28183cat >>confdefs.h <<\_ACEOF
28184#define HAVE_BI_ITERATOR 0
28185_ACEOF
28186
John Criswell7a73b802003-06-30 21:59:07 +000028187fi
28188
28189echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28190echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28191if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28192 echo $ECHO_N "(cached) $ECHO_C" >&6
28193else
28194
John Criswell7a73b802003-06-30 21:59:07 +000028195 ac_ext=cc
28196ac_cpp='$CXXCPP $CPPFLAGS'
28197ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28198ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28199ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28200
28201 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028202/* confdefs.h. */
28203_ACEOF
28204cat confdefs.h >>conftest.$ac_ext
28205cat >>conftest.$ac_ext <<_ACEOF
28206/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028207#include <iterator>
28208#ifdef HAVE_NAMESPACES
28209using namespace std;
28210#endif
John Criswell7a73b802003-06-30 21:59:07 +000028211int
28212main ()
28213{
John Criswellc78022e2003-07-29 19:11:58 +000028214forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028215 ;
28216 return 0;
28217}
28218_ACEOF
28219rm -f conftest.$ac_objext
28220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028221 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028222 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028223 grep -v '^ *+' conftest.er1 >conftest.err
28224 rm -f conftest.er1
28225 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028228 { ac_try='test -z "$ac_cxx_werror_flag"
28229 || test ! -s conftest.err'
28230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28231 (eval $ac_try) 2>&5
28232 ac_status=$?
28233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28234 (exit $ac_status); }; } &&
28235 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28237 (eval $ac_try) 2>&5
28238 ac_status=$?
28239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240 (exit $ac_status); }; }; then
28241 ac_cv_cxx_have_fwd_iterator=yes
28242else
28243 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028244sed 's/^/| /' conftest.$ac_ext >&5
28245
John Criswell7a73b802003-06-30 21:59:07 +000028246ac_cv_cxx_have_fwd_iterator=no
28247fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028249 ac_ext=c
28250ac_cpp='$CPP $CPPFLAGS'
28251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28253ac_compiler_gnu=$ac_cv_c_compiler_gnu
28254
28255
28256fi
28257echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28258echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028259if test "$ac_cv_cxx_have_fwd_iterator" = yes
28260then
John Criswell40468462004-09-24 21:19:06 +000028261
28262cat >>confdefs.h <<\_ACEOF
28263#define HAVE_FWD_ITERATOR 1
28264_ACEOF
28265
28266else
28267
28268cat >>confdefs.h <<\_ACEOF
28269#define HAVE_FWD_ITERATOR 0
28270_ACEOF
28271
John Criswell7a73b802003-06-30 21:59:07 +000028272fi
28273
28274
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028275echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28276echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28277if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28278 echo $ECHO_N "(cached) $ECHO_C" >&6
28279else
28280 ac_ext=cc
28281ac_cpp='$CXXCPP $CPPFLAGS'
28282ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28283ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28284ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28285
Reid Spencerabec8f92004-10-27 23:03:44 +000028286 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028287/* confdefs.h. */
28288_ACEOF
28289cat confdefs.h >>conftest.$ac_ext
28290cat >>conftest.$ac_ext <<_ACEOF
28291/* end confdefs.h. */
28292#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028293int
28294main ()
28295{
28296float f; isnan(f);
28297 ;
28298 return 0;
28299}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028300_ACEOF
28301rm -f conftest.$ac_objext
28302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028303 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028304 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028305 grep -v '^ *+' conftest.er1 >conftest.err
28306 rm -f conftest.er1
28307 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028310 { ac_try='test -z "$ac_cxx_werror_flag"
28311 || test ! -s conftest.err'
28312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28313 (eval $ac_try) 2>&5
28314 ac_status=$?
28315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316 (exit $ac_status); }; } &&
28317 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28319 (eval $ac_try) 2>&5
28320 ac_status=$?
28321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28322 (exit $ac_status); }; }; then
28323 ac_cv_func_isnan_in_math_h=yes
28324else
28325 echo "$as_me: failed program was:" >&5
28326sed 's/^/| /' conftest.$ac_ext >&5
28327
28328ac_cv_func_isnan_in_math_h=no
28329fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028331 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028332ac_cpp='$CPP $CPPFLAGS'
28333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28335ac_compiler_gnu=$ac_cv_c_compiler_gnu
28336
28337fi
28338echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28339echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028340
28341
28342if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028343
28344cat >>confdefs.h <<\_ACEOF
28345#define HAVE_ISNAN_IN_MATH_H 1
28346_ACEOF
28347
Reid Spencerabec8f92004-10-27 23:03:44 +000028348fi
28349
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028350echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28351echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28352if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28353 echo $ECHO_N "(cached) $ECHO_C" >&6
28354else
28355 ac_ext=cc
28356ac_cpp='$CXXCPP $CPPFLAGS'
28357ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28358ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28359ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28360
Reid Spencerabec8f92004-10-27 23:03:44 +000028361 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028362/* confdefs.h. */
28363_ACEOF
28364cat confdefs.h >>conftest.$ac_ext
28365cat >>conftest.$ac_ext <<_ACEOF
28366/* end confdefs.h. */
28367#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028368int
28369main ()
28370{
28371float f; isnan(f);
28372 ;
28373 return 0;
28374}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028375_ACEOF
28376rm -f conftest.$ac_objext
28377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028378 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028379 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028380 grep -v '^ *+' conftest.er1 >conftest.err
28381 rm -f conftest.er1
28382 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28384 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028385 { ac_try='test -z "$ac_cxx_werror_flag"
28386 || test ! -s conftest.err'
28387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28388 (eval $ac_try) 2>&5
28389 ac_status=$?
28390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391 (exit $ac_status); }; } &&
28392 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28394 (eval $ac_try) 2>&5
28395 ac_status=$?
28396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28397 (exit $ac_status); }; }; then
28398 ac_cv_func_isnan_in_cmath=yes
28399else
28400 echo "$as_me: failed program was:" >&5
28401sed 's/^/| /' conftest.$ac_ext >&5
28402
28403ac_cv_func_isnan_in_cmath=no
28404fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028406 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028407ac_cpp='$CPP $CPPFLAGS'
28408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28410ac_compiler_gnu=$ac_cv_c_compiler_gnu
28411
28412fi
28413echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28414echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028415
28416if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028417
28418cat >>confdefs.h <<\_ACEOF
28419#define HAVE_ISNAN_IN_CMATH 1
28420_ACEOF
28421
Reid Spencerabec8f92004-10-27 23:03:44 +000028422fi
28423
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028424echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28425echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28426if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28427 echo $ECHO_N "(cached) $ECHO_C" >&6
28428else
28429 ac_ext=cc
28430ac_cpp='$CXXCPP $CPPFLAGS'
28431ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28432ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28433ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28434
Reid Spencerabec8f92004-10-27 23:03:44 +000028435 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028436/* confdefs.h. */
28437_ACEOF
28438cat confdefs.h >>conftest.$ac_ext
28439cat >>conftest.$ac_ext <<_ACEOF
28440/* end confdefs.h. */
28441#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028442int
28443main ()
28444{
28445float f; std::isnan(f);
28446 ;
28447 return 0;
28448}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028449_ACEOF
28450rm -f conftest.$ac_objext
28451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028452 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028453 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028454 grep -v '^ *+' conftest.er1 >conftest.err
28455 rm -f conftest.er1
28456 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028459 { ac_try='test -z "$ac_cxx_werror_flag"
28460 || test ! -s conftest.err'
28461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28462 (eval $ac_try) 2>&5
28463 ac_status=$?
28464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28465 (exit $ac_status); }; } &&
28466 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28468 (eval $ac_try) 2>&5
28469 ac_status=$?
28470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); }; }; then
28472 ac_cv_func_std_isnan_in_cmath=yes
28473else
28474 echo "$as_me: failed program was:" >&5
28475sed 's/^/| /' conftest.$ac_ext >&5
28476
28477ac_cv_func_std_isnan_in_cmath=no
28478fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028480 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028481ac_cpp='$CPP $CPPFLAGS'
28482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28484ac_compiler_gnu=$ac_cv_c_compiler_gnu
28485
28486fi
28487echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
28488echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028489
28490if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028491
28492cat >>confdefs.h <<\_ACEOF
28493#define HAVE_STD_ISNAN_IN_CMATH 1
28494_ACEOF
28495
Reid Spencerabec8f92004-10-27 23:03:44 +000028496fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028497
28498
Brian Gaeke52a551d2004-07-21 03:14:12 +000028499echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
28500echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
28501if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
28502 echo $ECHO_N "(cached) $ECHO_C" >&6
28503else
28504 ac_ext=cc
28505ac_cpp='$CXXCPP $CPPFLAGS'
28506ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28507ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28508ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28509
Reid Spencerabec8f92004-10-27 23:03:44 +000028510 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028511/* confdefs.h. */
28512_ACEOF
28513cat confdefs.h >>conftest.$ac_ext
28514cat >>conftest.$ac_ext <<_ACEOF
28515/* end confdefs.h. */
28516#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028517int
28518main ()
28519{
28520float f; isinf(f);
28521 ;
28522 return 0;
28523}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028524_ACEOF
28525rm -f conftest.$ac_objext
28526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028527 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028528 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028529 grep -v '^ *+' conftest.er1 >conftest.err
28530 rm -f conftest.er1
28531 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028534 { ac_try='test -z "$ac_cxx_werror_flag"
28535 || test ! -s conftest.err'
28536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28537 (eval $ac_try) 2>&5
28538 ac_status=$?
28539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28540 (exit $ac_status); }; } &&
28541 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28543 (eval $ac_try) 2>&5
28544 ac_status=$?
28545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546 (exit $ac_status); }; }; then
28547 ac_cv_func_isinf_in_math_h=yes
28548else
28549 echo "$as_me: failed program was:" >&5
28550sed 's/^/| /' conftest.$ac_ext >&5
28551
28552ac_cv_func_isinf_in_math_h=no
28553fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028555 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000028556ac_cpp='$CPP $CPPFLAGS'
28557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28559ac_compiler_gnu=$ac_cv_c_compiler_gnu
28560
28561fi
28562echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
28563echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028564
28565if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000028566
28567cat >>confdefs.h <<\_ACEOF
28568#define HAVE_ISINF_IN_MATH_H 1
28569_ACEOF
28570
Reid Spencerabec8f92004-10-27 23:03:44 +000028571fi
28572
Brian Gaeke52a551d2004-07-21 03:14:12 +000028573echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
28574echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
28575if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
28576 echo $ECHO_N "(cached) $ECHO_C" >&6
28577else
28578 ac_ext=cc
28579ac_cpp='$CXXCPP $CPPFLAGS'
28580ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28581ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28582ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28583
Reid Spencerabec8f92004-10-27 23:03:44 +000028584 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028585/* confdefs.h. */
28586_ACEOF
28587cat confdefs.h >>conftest.$ac_ext
28588cat >>conftest.$ac_ext <<_ACEOF
28589/* end confdefs.h. */
28590#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028591int
28592main ()
28593{
28594float f; isinf(f);
28595 ;
28596 return 0;
28597}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028598_ACEOF
28599rm -f conftest.$ac_objext
28600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028601 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028602 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028603 grep -v '^ *+' conftest.er1 >conftest.err
28604 rm -f conftest.er1
28605 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028608 { ac_try='test -z "$ac_cxx_werror_flag"
28609 || test ! -s conftest.err'
28610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28611 (eval $ac_try) 2>&5
28612 ac_status=$?
28613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614 (exit $ac_status); }; } &&
28615 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28617 (eval $ac_try) 2>&5
28618 ac_status=$?
28619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28620 (exit $ac_status); }; }; then
28621 ac_cv_func_isinf_in_cmath=yes
28622else
28623 echo "$as_me: failed program was:" >&5
28624sed 's/^/| /' conftest.$ac_ext >&5
28625
28626ac_cv_func_isinf_in_cmath=no
28627fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028629 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000028630ac_cpp='$CPP $CPPFLAGS'
28631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28633ac_compiler_gnu=$ac_cv_c_compiler_gnu
28634
28635fi
28636echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
28637echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028638
28639if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000028640
28641cat >>confdefs.h <<\_ACEOF
28642#define HAVE_ISINF_IN_CMATH 1
28643_ACEOF
28644
Reid Spencerabec8f92004-10-27 23:03:44 +000028645fi
28646
Brian Gaeke52a551d2004-07-21 03:14:12 +000028647echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
28648echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
28649if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
28650 echo $ECHO_N "(cached) $ECHO_C" >&6
28651else
28652 ac_ext=cc
28653ac_cpp='$CXXCPP $CPPFLAGS'
28654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28657
Reid Spencerabec8f92004-10-27 23:03:44 +000028658 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028659/* confdefs.h. */
28660_ACEOF
28661cat confdefs.h >>conftest.$ac_ext
28662cat >>conftest.$ac_ext <<_ACEOF
28663/* end confdefs.h. */
28664#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028665int
28666main ()
28667{
28668float f; std::isinf(f)}
28669 ;
28670 return 0;
28671}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028672_ACEOF
28673rm -f conftest.$ac_objext
28674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028675 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028676 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028677 grep -v '^ *+' conftest.er1 >conftest.err
28678 rm -f conftest.er1
28679 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028682 { ac_try='test -z "$ac_cxx_werror_flag"
28683 || test ! -s conftest.err'
28684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28685 (eval $ac_try) 2>&5
28686 ac_status=$?
28687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); }; } &&
28689 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28691 (eval $ac_try) 2>&5
28692 ac_status=$?
28693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694 (exit $ac_status); }; }; then
28695 ac_cv_func_std_isinf_in_cmath=yes
28696else
28697 echo "$as_me: failed program was:" >&5
28698sed 's/^/| /' conftest.$ac_ext >&5
28699
28700ac_cv_func_std_isinf_in_cmath=no
28701fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028703 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000028704ac_cpp='$CPP $CPPFLAGS'
28705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28707ac_compiler_gnu=$ac_cv_c_compiler_gnu
28708
28709fi
28710echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
28711echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028712
28713if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000028714
28715cat >>confdefs.h <<\_ACEOF
28716#define HAVE_STD_ISINF_IN_CMATH 1
28717_ACEOF
28718
Reid Spencerabec8f92004-10-27 23:03:44 +000028719fi
28720
Brian Gaeked59a6472004-07-21 03:33:58 +000028721echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
28722echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
28723if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
28724 echo $ECHO_N "(cached) $ECHO_C" >&6
28725else
28726 ac_ext=cc
28727ac_cpp='$CXXCPP $CPPFLAGS'
28728ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28729ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28730ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28731
Reid Spencerabec8f92004-10-27 23:03:44 +000028732 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000028733/* confdefs.h. */
28734_ACEOF
28735cat confdefs.h >>conftest.$ac_ext
28736cat >>conftest.$ac_ext <<_ACEOF
28737/* end confdefs.h. */
28738#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028739int
28740main ()
28741{
28742float f; finite(f);
28743 ;
28744 return 0;
28745}
Brian Gaeked59a6472004-07-21 03:33:58 +000028746_ACEOF
28747rm -f conftest.$ac_objext
28748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028749 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000028750 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028751 grep -v '^ *+' conftest.er1 >conftest.err
28752 rm -f conftest.er1
28753 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000028754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28755 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028756 { ac_try='test -z "$ac_cxx_werror_flag"
28757 || test ! -s conftest.err'
28758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28759 (eval $ac_try) 2>&5
28760 ac_status=$?
28761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762 (exit $ac_status); }; } &&
28763 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000028764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28765 (eval $ac_try) 2>&5
28766 ac_status=$?
28767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28768 (exit $ac_status); }; }; then
28769 ac_cv_func_finite_in_ieeefp_h=yes
28770else
28771 echo "$as_me: failed program was:" >&5
28772sed 's/^/| /' conftest.$ac_ext >&5
28773
28774ac_cv_func_finite_in_ieeefp_h=no
28775fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028777 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000028778ac_cpp='$CPP $CPPFLAGS'
28779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28781ac_compiler_gnu=$ac_cv_c_compiler_gnu
28782
28783fi
28784echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
28785echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028786
Brian Gaeke6802b552004-10-28 05:06:45 +000028787if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000028788
28789cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000028790#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000028791_ACEOF
28792
Reid Spencerabec8f92004-10-27 23:03:44 +000028793fi
28794
28795
28796
John Criswell7a73b802003-06-30 21:59:07 +000028797
28798
28799for ac_header in stdlib.h unistd.h
28800do
28801as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28802if eval "test \"\${$as_ac_Header+set}\" = set"; then
28803 echo "$as_me:$LINENO: checking for $ac_header" >&5
28804echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28805if eval "test \"\${$as_ac_Header+set}\" = set"; then
28806 echo $ECHO_N "(cached) $ECHO_C" >&6
28807fi
28808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28809echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28810else
28811 # Is the header compilable?
28812echo "$as_me:$LINENO: checking $ac_header usability" >&5
28813echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28814cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028815/* confdefs.h. */
28816_ACEOF
28817cat confdefs.h >>conftest.$ac_ext
28818cat >>conftest.$ac_ext <<_ACEOF
28819/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028820$ac_includes_default
28821#include <$ac_header>
28822_ACEOF
28823rm -f conftest.$ac_objext
28824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028825 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028826 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028827 grep -v '^ *+' conftest.er1 >conftest.err
28828 rm -f conftest.er1
28829 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28831 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028832 { ac_try='test -z "$ac_c_werror_flag"
28833 || test ! -s conftest.err'
28834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28835 (eval $ac_try) 2>&5
28836 ac_status=$?
28837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838 (exit $ac_status); }; } &&
28839 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28841 (eval $ac_try) 2>&5
28842 ac_status=$?
28843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844 (exit $ac_status); }; }; then
28845 ac_header_compiler=yes
28846else
28847 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028848sed 's/^/| /' conftest.$ac_ext >&5
28849
John Criswell7a73b802003-06-30 21:59:07 +000028850ac_header_compiler=no
28851fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028853echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28854echo "${ECHO_T}$ac_header_compiler" >&6
28855
28856# Is the header present?
28857echo "$as_me:$LINENO: checking $ac_header presence" >&5
28858echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28859cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028860/* confdefs.h. */
28861_ACEOF
28862cat confdefs.h >>conftest.$ac_ext
28863cat >>conftest.$ac_ext <<_ACEOF
28864/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028865#include <$ac_header>
28866_ACEOF
28867if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28869 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000028870 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000028871 rm -f conftest.er1
28872 cat conftest.err >&5
28873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874 (exit $ac_status); } >/dev/null; then
28875 if test -s conftest.err; then
28876 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000028877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000028878 else
28879 ac_cpp_err=
28880 fi
28881else
28882 ac_cpp_err=yes
28883fi
28884if test -z "$ac_cpp_err"; then
28885 ac_header_preproc=yes
28886else
28887 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028888sed 's/^/| /' conftest.$ac_ext >&5
28889
John Criswell7a73b802003-06-30 21:59:07 +000028890 ac_header_preproc=no
28891fi
28892rm -f conftest.err conftest.$ac_ext
28893echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28894echo "${ECHO_T}$ac_header_preproc" >&6
28895
28896# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028897case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28898 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000028899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28900echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28902echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28903 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000028904 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000028905 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000028906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28907echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28909echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28911echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28913echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000028914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28915echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28917echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000028918 (
28919 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000028920## ----------------------------------- ##
28921## Report this to llvmbugs@cs.uiuc.edu ##
28922## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000028923_ASBOX
28924 ) |
28925 sed "s/^/$as_me: WARNING: /" >&2
28926 ;;
John Criswell7a73b802003-06-30 21:59:07 +000028927esac
28928echo "$as_me:$LINENO: checking for $ac_header" >&5
28929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28930if eval "test \"\${$as_ac_Header+set}\" = set"; then
28931 echo $ECHO_N "(cached) $ECHO_C" >&6
28932else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028933 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000028934fi
28935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28936echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28937
28938fi
28939if test `eval echo '${'$as_ac_Header'}'` = yes; then
28940 cat >>confdefs.h <<_ACEOF
28941#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28942_ACEOF
28943
28944fi
28945
28946done
28947
28948
28949for ac_func in getpagesize
28950do
28951as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28952echo "$as_me:$LINENO: checking for $ac_func" >&5
28953echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28954if eval "test \"\${$as_ac_var+set}\" = set"; then
28955 echo $ECHO_N "(cached) $ECHO_C" >&6
28956else
28957 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028958/* confdefs.h. */
28959_ACEOF
28960cat confdefs.h >>conftest.$ac_ext
28961cat >>conftest.$ac_ext <<_ACEOF
28962/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000028963/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28965#define $ac_func innocuous_$ac_func
28966
John Criswell7a73b802003-06-30 21:59:07 +000028967/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000028968 which can conflict with char $ac_func (); below.
28969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28970 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000028971
John Criswell0c38eaf2003-09-10 15:17:25 +000028972#ifdef __STDC__
28973# include <limits.h>
28974#else
28975# include <assert.h>
28976#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000028977
28978#undef $ac_func
28979
John Criswell7a73b802003-06-30 21:59:07 +000028980/* Override any gcc2 internal prototype to avoid an error. */
28981#ifdef __cplusplus
28982extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000028983{
John Criswell7a73b802003-06-30 21:59:07 +000028984#endif
28985/* We use char because int might match the return type of a gcc2
28986 builtin and then its argument prototype would still apply. */
28987char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000028988/* The GNU C library defines this for functions which it implements
28989 to always fail with ENOSYS. Some functions are actually named
28990 something starting with __ and the normal name is an alias. */
28991#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28992choke me
28993#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028994char (*f) () = $ac_func;
28995#endif
28996#ifdef __cplusplus
28997}
John Criswell7a73b802003-06-30 21:59:07 +000028998#endif
28999
John Criswell0c38eaf2003-09-10 15:17:25 +000029000int
29001main ()
29002{
29003return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000029004 ;
29005 return 0;
29006}
29007_ACEOF
29008rm -f conftest.$ac_objext conftest$ac_exeext
29009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029010 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029011 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029012 grep -v '^ *+' conftest.er1 >conftest.err
29013 rm -f conftest.er1
29014 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29016 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029017 { ac_try='test -z "$ac_c_werror_flag"
29018 || test ! -s conftest.err'
29019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29020 (eval $ac_try) 2>&5
29021 ac_status=$?
29022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29023 (exit $ac_status); }; } &&
29024 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29026 (eval $ac_try) 2>&5
29027 ac_status=$?
29028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29029 (exit $ac_status); }; }; then
29030 eval "$as_ac_var=yes"
29031else
29032 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029033sed 's/^/| /' conftest.$ac_ext >&5
29034
John Criswell7a73b802003-06-30 21:59:07 +000029035eval "$as_ac_var=no"
29036fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029037rm -f conftest.err conftest.$ac_objext \
29038 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029039fi
29040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29041echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29042if test `eval echo '${'$as_ac_var'}'` = yes; then
29043 cat >>confdefs.h <<_ACEOF
29044#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29045_ACEOF
29046
29047fi
29048done
29049
29050echo "$as_me:$LINENO: checking for working mmap" >&5
29051echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29052if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29053 echo $ECHO_N "(cached) $ECHO_C" >&6
29054else
29055 if test "$cross_compiling" = yes; then
29056 ac_cv_func_mmap_fixed_mapped=no
29057else
29058 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029059/* confdefs.h. */
29060_ACEOF
29061cat confdefs.h >>conftest.$ac_ext
29062cat >>conftest.$ac_ext <<_ACEOF
29063/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029064$ac_includes_default
29065/* malloc might have been renamed as rpl_malloc. */
29066#undef malloc
29067
29068/* Thanks to Mike Haertel and Jim Avera for this test.
29069 Here is a matrix of mmap possibilities:
29070 mmap private not fixed
29071 mmap private fixed at somewhere currently unmapped
29072 mmap private fixed at somewhere already mapped
29073 mmap shared not fixed
29074 mmap shared fixed at somewhere currently unmapped
29075 mmap shared fixed at somewhere already mapped
29076 For private mappings, we should verify that changes cannot be read()
29077 back from the file, nor mmap's back from the file at a different
29078 address. (There have been systems where private was not correctly
29079 implemented like the infamous i386 svr4.0, and systems where the
29080 VM page cache was not coherent with the file system buffer cache
29081 like early versions of FreeBSD and possibly contemporary NetBSD.)
29082 For shared mappings, we should conversely verify that changes get
29083 propagated back to all the places they're supposed to be.
29084
29085 Grep wants private fixed already mapped.
29086 The main things grep needs to know about mmap are:
29087 * does it exist and is it safe to write into the mmap'd area
29088 * how to use it (BSD variants) */
29089
29090#include <fcntl.h>
29091#include <sys/mman.h>
29092
29093#if !STDC_HEADERS && !HAVE_STDLIB_H
29094char *malloc ();
29095#endif
29096
29097/* This mess was copied from the GNU getpagesize.h. */
29098#if !HAVE_GETPAGESIZE
29099/* Assume that all systems that can run configure have sys/param.h. */
29100# if !HAVE_SYS_PARAM_H
29101# define HAVE_SYS_PARAM_H 1
29102# endif
29103
29104# ifdef _SC_PAGESIZE
29105# define getpagesize() sysconf(_SC_PAGESIZE)
29106# else /* no _SC_PAGESIZE */
29107# if HAVE_SYS_PARAM_H
29108# include <sys/param.h>
29109# ifdef EXEC_PAGESIZE
29110# define getpagesize() EXEC_PAGESIZE
29111# else /* no EXEC_PAGESIZE */
29112# ifdef NBPG
29113# define getpagesize() NBPG * CLSIZE
29114# ifndef CLSIZE
29115# define CLSIZE 1
29116# endif /* no CLSIZE */
29117# else /* no NBPG */
29118# ifdef NBPC
29119# define getpagesize() NBPC
29120# else /* no NBPC */
29121# ifdef PAGESIZE
29122# define getpagesize() PAGESIZE
29123# endif /* PAGESIZE */
29124# endif /* no NBPC */
29125# endif /* no NBPG */
29126# endif /* no EXEC_PAGESIZE */
29127# else /* no HAVE_SYS_PARAM_H */
29128# define getpagesize() 8192 /* punt totally */
29129# endif /* no HAVE_SYS_PARAM_H */
29130# endif /* no _SC_PAGESIZE */
29131
29132#endif /* no HAVE_GETPAGESIZE */
29133
29134int
29135main ()
29136{
29137 char *data, *data2, *data3;
29138 int i, pagesize;
29139 int fd;
29140
29141 pagesize = getpagesize ();
29142
29143 /* First, make a file with some known garbage in it. */
29144 data = (char *) malloc (pagesize);
29145 if (!data)
29146 exit (1);
29147 for (i = 0; i < pagesize; ++i)
29148 *(data + i) = rand ();
29149 umask (0);
29150 fd = creat ("conftest.mmap", 0600);
29151 if (fd < 0)
29152 exit (1);
29153 if (write (fd, data, pagesize) != pagesize)
29154 exit (1);
29155 close (fd);
29156
29157 /* Next, try to mmap the file at a fixed address which already has
29158 something else allocated at it. If we can, also make sure that
29159 we see the same garbage. */
29160 fd = open ("conftest.mmap", O_RDWR);
29161 if (fd < 0)
29162 exit (1);
29163 data2 = (char *) malloc (2 * pagesize);
29164 if (!data2)
29165 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000029166 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000029167 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000029168 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000029169 exit (1);
29170 for (i = 0; i < pagesize; ++i)
29171 if (*(data + i) != *(data2 + i))
29172 exit (1);
29173
29174 /* Finally, make sure that changes to the mapped area do not
29175 percolate back to the file as seen by read(). (This is a bug on
29176 some variants of i386 svr4.0.) */
29177 for (i = 0; i < pagesize; ++i)
29178 *(data2 + i) = *(data2 + i) + 1;
29179 data3 = (char *) malloc (pagesize);
29180 if (!data3)
29181 exit (1);
29182 if (read (fd, data3, pagesize) != pagesize)
29183 exit (1);
29184 for (i = 0; i < pagesize; ++i)
29185 if (*(data + i) != *(data3 + i))
29186 exit (1);
29187 close (fd);
29188 exit (0);
29189}
29190_ACEOF
29191rm -f conftest$ac_exeext
29192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29193 (eval $ac_link) 2>&5
29194 ac_status=$?
29195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29198 (eval $ac_try) 2>&5
29199 ac_status=$?
29200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29201 (exit $ac_status); }; }; then
29202 ac_cv_func_mmap_fixed_mapped=yes
29203else
29204 echo "$as_me: program exited with status $ac_status" >&5
29205echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029206sed 's/^/| /' conftest.$ac_ext >&5
29207
John Criswell7a73b802003-06-30 21:59:07 +000029208( exit $ac_status )
29209ac_cv_func_mmap_fixed_mapped=no
29210fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029211rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029212fi
29213fi
29214echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29215echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29216if test $ac_cv_func_mmap_fixed_mapped = yes; then
29217
29218cat >>confdefs.h <<\_ACEOF
29219#define HAVE_MMAP 1
29220_ACEOF
29221
29222fi
29223rm -f conftest.mmap
29224
29225echo "$as_me:$LINENO: checking for mmap of files" >&5
29226echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29227if test "${ac_cv_func_mmap_file+set}" = set; then
29228 echo $ECHO_N "(cached) $ECHO_C" >&6
29229else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029230 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000029231ac_cpp='$CPP $CPPFLAGS'
29232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29234ac_compiler_gnu=$ac_cv_c_compiler_gnu
29235
29236 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029237 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000029238else
29239 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000029240
Reid Spencer777ce172004-09-20 04:09:56 +000029241 /* confdefs.h. */
29242_ACEOF
29243cat confdefs.h >>conftest.$ac_ext
29244cat >>conftest.$ac_ext <<_ACEOF
29245/* end confdefs.h. */
29246
John Criswell7a73b802003-06-30 21:59:07 +000029247#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000029248#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000029249#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000029250
29251int
29252main ()
29253{
John Criswell7a73b802003-06-30 21:59:07 +000029254
29255 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000029256 fd = creat ("foo",0777);
29257 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29258 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029259 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000029260 ;
29261 return 0;
29262}
John Criswell7a73b802003-06-30 21:59:07 +000029263_ACEOF
29264rm -f conftest$ac_exeext
29265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29266 (eval $ac_link) 2>&5
29267 ac_status=$?
29268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29271 (eval $ac_try) 2>&5
29272 ac_status=$?
29273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274 (exit $ac_status); }; }; then
29275 ac_cv_func_mmap_file=yes
29276else
29277 echo "$as_me: program exited with status $ac_status" >&5
29278echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029279sed 's/^/| /' conftest.$ac_ext >&5
29280
John Criswell7a73b802003-06-30 21:59:07 +000029281( exit $ac_status )
29282ac_cv_func_mmap_file=no
29283fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029284rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029285fi
29286 ac_ext=c
29287ac_cpp='$CPP $CPPFLAGS'
29288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29290ac_compiler_gnu=$ac_cv_c_compiler_gnu
29291
29292
29293fi
29294echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29295echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29296if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000029297
29298cat >>confdefs.h <<\_ACEOF
29299#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000029300_ACEOF
29301
29302 MMAP_FILE=yes
29303
29304fi
29305
John Criswell7a73b802003-06-30 21:59:07 +000029306echo "$as_me:$LINENO: checking for mprotect" >&5
29307echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29308if test "${ac_cv_func_mprotect+set}" = set; then
29309 echo $ECHO_N "(cached) $ECHO_C" >&6
29310else
29311 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029312/* confdefs.h. */
29313_ACEOF
29314cat confdefs.h >>conftest.$ac_ext
29315cat >>conftest.$ac_ext <<_ACEOF
29316/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029317/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29319#define mprotect innocuous_mprotect
29320
John Criswell7a73b802003-06-30 21:59:07 +000029321/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000029322 which can conflict with char mprotect (); below.
29323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29324 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029325
John Criswell0c38eaf2003-09-10 15:17:25 +000029326#ifdef __STDC__
29327# include <limits.h>
29328#else
29329# include <assert.h>
29330#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000029331
29332#undef mprotect
29333
John Criswell7a73b802003-06-30 21:59:07 +000029334/* Override any gcc2 internal prototype to avoid an error. */
29335#ifdef __cplusplus
29336extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000029337{
John Criswell7a73b802003-06-30 21:59:07 +000029338#endif
29339/* We use char because int might match the return type of a gcc2
29340 builtin and then its argument prototype would still apply. */
29341char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000029342/* The GNU C library defines this for functions which it implements
29343 to always fail with ENOSYS. Some functions are actually named
29344 something starting with __ and the normal name is an alias. */
29345#if defined (__stub_mprotect) || defined (__stub___mprotect)
29346choke me
29347#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029348char (*f) () = mprotect;
29349#endif
29350#ifdef __cplusplus
29351}
John Criswell7a73b802003-06-30 21:59:07 +000029352#endif
29353
John Criswell0c38eaf2003-09-10 15:17:25 +000029354int
29355main ()
29356{
29357return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000029358 ;
29359 return 0;
29360}
29361_ACEOF
29362rm -f conftest.$ac_objext conftest$ac_exeext
29363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029364 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029365 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029366 grep -v '^ *+' conftest.er1 >conftest.err
29367 rm -f conftest.er1
29368 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29370 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029371 { ac_try='test -z "$ac_c_werror_flag"
29372 || test ! -s conftest.err'
29373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29374 (eval $ac_try) 2>&5
29375 ac_status=$?
29376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29377 (exit $ac_status); }; } &&
29378 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29380 (eval $ac_try) 2>&5
29381 ac_status=$?
29382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29383 (exit $ac_status); }; }; then
29384 ac_cv_func_mprotect=yes
29385else
29386 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029387sed 's/^/| /' conftest.$ac_ext >&5
29388
John Criswell7a73b802003-06-30 21:59:07 +000029389ac_cv_func_mprotect=no
29390fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029391rm -f conftest.err conftest.$ac_objext \
29392 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029393fi
29394echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29395echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29396if test $ac_cv_func_mprotect = yes; then
29397 :
29398else
29399 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29400echo "$as_me: error: Function mprotect() required but not found" >&2;}
29401 { (exit 1); exit 1; }; }
29402fi
29403
29404
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029405if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000029406then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029407 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29408echo "$as_me: WARNING: mmap() required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000029409fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029410if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000029411then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029412 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29413echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000029414fi
John Criswell7a73b802003-06-30 21:59:07 +000029415
29416
Brian Gaekef3b24102003-11-16 18:38:14 +000029417echo "$as_me:$LINENO: checking for llvm-gcc" >&5
29418echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029419if test "${llvm_cv_llvmgcc+set}" = set; then
29420 echo $ECHO_N "(cached) $ECHO_C" >&6
29421else
29422 llvm_cv_llvmgcc='llvmgcc_not_found'
29423if test -d "$LLVMGCCDIR" ; then
29424 if test -x "$LLVMGCCDIR/bin/gcc" ; then
29425 llvm_cv_llvmgcc="$LLVMGCCDIR/bin/gcc"
29426 fi
Brian Gaekef3b24102003-11-16 18:38:14 +000029427fi
Brian Gaekef3b24102003-11-16 18:38:14 +000029428fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029429echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc" >&5
29430echo "${ECHO_T}$llvm_cv_llvmgcc" >&6
29431
Brian Gaekef3b24102003-11-16 18:38:14 +000029432echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29433echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029434if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29435 echo $ECHO_N "(cached) $ECHO_C" >&6
29436else
29437 llvm_cv_llvmgcc_sanity="no"
29438if test -x "$llvm_cv_llvmgcc" ; then
29439 cp /dev/null conftest.c
29440 "$llvm_cv_llvmgcc" -S -o - conftest.c | grep implementation > /dev/null 2>&1
29441 if test $? -eq 0 ; then
29442 llvm_cv_llvmgcc_sanity="yes"
29443 fi
29444 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000029445fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029446fi
29447echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
29448echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
29449
29450if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
29451 LLVMGCC="$llvm_cv_llvmgcc"
29452
29453 llvmcc1path=`"$llvm_cv_llvmgcc" --print-prog-name=cc1`
29454 LLVMCC1=$llvmcc1path
29455
29456 llvmcc1pluspath=`"$llvm_cv_llvmgcc" --print-prog-name=cc1plus`
29457 LLVMCC1PLUS=$llvmcc1pluspath
29458
Brian Gaekef3b24102003-11-16 18:38:14 +000029459fi
29460
Reid Spencer2bc7bd52004-11-29 12:29:58 +000029461SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000029462
29463
Reid Spencere9de0912004-08-20 09:03:57 +000029464# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029465# information into substitutions that will end up in Makefile.config.in
29466# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000029467eval LLVM_PREFIX="${prefix}";
29468eval LLVM_BINDIR="${prefix}/bin";
29469eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000029470eval LLVM_DATADIR="${prefix}/share/llvm";
29471eval LLVM_DOCSDIR="${prefix}/docs/llvm";
29472eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000029473eval LLVM_INCLUDEDIR="${prefix}/include";
29474eval LLVM_INFODIR="${prefix}/info";
29475eval LLVM_MANDIR="${prefix}/man";
29476LLVM_CONFIGTIME=`date`
29477
29478
29479
29480
29481
29482
29483
29484
29485
29486
29487
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029488# Place the various directores into the config.h file as #defines so that we
29489# can know about the installation paths within LLVM.
29490
Reid Spencere9de0912004-08-20 09:03:57 +000029491cat >>confdefs.h <<_ACEOF
29492#define LLVM_PREFIX "$LLVM_PREFIX"
29493_ACEOF
29494
29495
29496cat >>confdefs.h <<_ACEOF
29497#define LLVM_BINDIR "$LLVM_BINDIR"
29498_ACEOF
29499
29500
29501cat >>confdefs.h <<_ACEOF
29502#define LLVM_LIBDIR "$LLVM_LIBDIR"
29503_ACEOF
29504
29505
29506cat >>confdefs.h <<_ACEOF
29507#define LLVM_DATADIR "$LLVM_DATADIR"
29508_ACEOF
29509
29510
29511cat >>confdefs.h <<_ACEOF
29512#define LLVM_DATADIR "$LLVM_DOCSDIR"
29513_ACEOF
29514
29515
29516cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000029517#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000029518_ACEOF
29519
29520
29521cat >>confdefs.h <<_ACEOF
29522#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
29523_ACEOF
29524
29525
29526cat >>confdefs.h <<_ACEOF
29527#define LLVM_INFODIR "$LLVM_INFODIR"
29528_ACEOF
29529
29530
29531cat >>confdefs.h <<_ACEOF
29532#define LLVM_MANDIR "$LLVM_MANDIR"
29533_ACEOF
29534
29535
29536cat >>confdefs.h <<_ACEOF
29537#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
29538_ACEOF
29539
29540
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029541
29542 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
29543
29544
29545 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
29546
29547 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
29548
29549 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
29550
29551 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
29552
29553 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
29554
29555
29556 ac_config_files="$ac_config_files Makefile.config"
29557
29558
29559 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
29560
29561
Reid Spencer1f319422004-11-29 04:56:35 +000029562 ac_config_files="$ac_config_files docs/doxygen.cfg"
29563
29564
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029565 ac_config_commands="$ac_config_commands Makefile"
29566
29567
29568 ac_config_commands="$ac_config_commands Makefile.common"
29569
29570
29571 ac_config_commands="$ac_config_commands examples/Makefile"
29572
29573
29574 ac_config_commands="$ac_config_commands lib/Makefile"
29575
29576
29577 ac_config_commands="$ac_config_commands runtime/Makefile"
29578
29579
29580 ac_config_commands="$ac_config_commands test/Makefile"
29581
29582
29583 ac_config_commands="$ac_config_commands test/Makefile.tests"
29584
29585
29586 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
29587
29588
29589 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
29590
29591
29592 ac_config_commands="$ac_config_commands tools/Makefile"
29593
29594
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029595 ac_config_commands="$ac_config_commands utils/Makefile"
29596
29597
29598 ac_config_commands="$ac_config_commands projects/Makefile"
29599
29600
29601
John Criswell7a73b802003-06-30 21:59:07 +000029602cat >confcache <<\_ACEOF
29603# This file is a shell script that caches the results of configure
29604# tests run on this system so they can be shared between configure
29605# scripts and configure runs, see configure's option --config-cache.
29606# It is not useful on other systems. If it contains results you don't
29607# want to keep, you may remove or edit it.
29608#
29609# config.status only pays attention to the cache file if you give it
29610# the --recheck option to rerun configure.
29611#
John Criswell0c38eaf2003-09-10 15:17:25 +000029612# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000029613# loading this file, other *unset* `ac_cv_foo' will be assigned the
29614# following values.
29615
29616_ACEOF
29617
29618# The following way of writing the cache mishandles newlines in values,
29619# but we know of no workaround that is simple, portable, and efficient.
29620# So, don't put newlines in cache variables' values.
29621# Ultrix sh set writes to stderr and can't be redirected directly,
29622# and sets the high bit in the cache file unless we assign to the vars.
29623{
29624 (set) 2>&1 |
29625 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29626 *ac_space=\ *)
29627 # `set' does not quote correctly, so add quotes (double-quote
29628 # substitution turns \\\\ into \\, and sed turns \\ into \).
29629 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029630 "s/'/'\\\\''/g;
29631 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000029632 ;;
29633 *)
29634 # `set' quotes correctly as required by POSIX, so do not add quotes.
29635 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029636 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000029637 ;;
29638 esac;
29639} |
29640 sed '
29641 t clear
29642 : clear
29643 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29644 t end
29645 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29646 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000029647if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000029648 if test -w $cache_file; then
29649 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29650 cat confcache >$cache_file
29651 else
29652 echo "not updating unwritable cache $cache_file"
29653 fi
29654fi
29655rm -f confcache
29656
29657test "x$prefix" = xNONE && prefix=$ac_default_prefix
29658# Let make expand exec_prefix.
29659test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29660
29661# VPATH may cause trouble with some makes, so we remove $(srcdir),
29662# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29663# trailing colons and then remove the whole line if VPATH becomes empty
29664# (actually we leave an empty line to preserve line numbers).
29665if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000029666 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000029667s/:*\$(srcdir):*/:/;
29668s/:*\${srcdir}:*/:/;
29669s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029670s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000029671s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029672s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000029673}'
29674fi
29675
29676DEFS=-DHAVE_CONFIG_H
29677
John Criswell0c38eaf2003-09-10 15:17:25 +000029678ac_libobjs=
29679ac_ltlibobjs=
29680for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29681 # 1. Remove the extension, and $U if already installed.
29682 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000029683 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000029684 # 2. Add them.
29685 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29686 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29687done
29688LIBOBJS=$ac_libobjs
29689
29690LTLIBOBJS=$ac_ltlibobjs
29691
29692
Reid Spencer2bc7bd52004-11-29 12:29:58 +000029693if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
29694 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
29695Usually this means the macro was only invoked conditionally." >&5
29696echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
29697Usually this means the macro was only invoked conditionally." >&2;}
29698 { (exit 1); exit 1; }; }
29699fi
29700if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
29701 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29702Usually this means the macro was only invoked conditionally." >&5
29703echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29704Usually this means the macro was only invoked conditionally." >&2;}
29705 { (exit 1); exit 1; }; }
29706fi
John Criswell7a73b802003-06-30 21:59:07 +000029707
29708: ${CONFIG_STATUS=./config.status}
29709ac_clean_files_save=$ac_clean_files
29710ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29711{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29712echo "$as_me: creating $CONFIG_STATUS" >&6;}
29713cat >$CONFIG_STATUS <<_ACEOF
29714#! $SHELL
29715# Generated by $as_me.
29716# Run this file to recreate the current configuration.
29717# Compiler output produced by configure, useful for debugging
29718# configure, is in config.log if it exists.
29719
29720debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000029721ac_cs_recheck=false
29722ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000029723SHELL=\${CONFIG_SHELL-$SHELL}
29724_ACEOF
29725
29726cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000029727## --------------------- ##
29728## M4sh Initialization. ##
29729## --------------------- ##
29730
29731# Be Bourne compatible
29732if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29733 emulate sh
29734 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000029735 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29736 # is contrary to our usage. Disable this feature.
29737 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000029738elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29739 set -o posix
29740fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029741DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000029742
John Criswell7a73b802003-06-30 21:59:07 +000029743# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029744if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029745 as_unset=unset
29746else
29747 as_unset=false
29748fi
29749
John Criswell0c38eaf2003-09-10 15:17:25 +000029750
29751# Work around bugs in pre-3.0 UWIN ksh.
29752$as_unset ENV MAIL MAILPATH
29753PS1='$ '
29754PS2='> '
29755PS4='+ '
29756
29757# NLS nuisances.
29758for as_var in \
29759 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29760 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29761 LC_TELEPHONE LC_TIME
29762do
Reid Spencer2706f8c2004-09-19 23:53:36 +000029763 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000029764 eval $as_var=C; export $as_var
29765 else
29766 $as_unset $as_var
29767 fi
29768done
29769
29770# Required to use basename.
29771if expr a : '\(a\)' >/dev/null 2>&1; then
29772 as_expr=expr
29773else
29774 as_expr=false
29775fi
29776
29777if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29778 as_basename=basename
29779else
29780 as_basename=false
29781fi
John Criswell7a73b802003-06-30 21:59:07 +000029782
29783
29784# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000029785as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000029786$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29787 X"$0" : 'X\(//\)$' \| \
29788 X"$0" : 'X\(/\)$' \| \
29789 . : '\(.\)' 2>/dev/null ||
29790echo X/"$0" |
29791 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29792 /^X\/\(\/\/\)$/{ s//\1/; q; }
29793 /^X\/\(\/\).*/{ s//\1/; q; }
29794 s/.*/./; q'`
29795
John Criswell0c38eaf2003-09-10 15:17:25 +000029796
John Criswell7a73b802003-06-30 21:59:07 +000029797# PATH needs CR, and LINENO needs CR and PATH.
29798# Avoid depending upon Character Ranges.
29799as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29800as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29801as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29802as_cr_digits='0123456789'
29803as_cr_alnum=$as_cr_Letters$as_cr_digits
29804
29805# The user is always right.
29806if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000029807 echo "#! /bin/sh" >conf$$.sh
29808 echo "exit 0" >>conf$$.sh
29809 chmod +x conf$$.sh
29810 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029811 PATH_SEPARATOR=';'
29812 else
29813 PATH_SEPARATOR=:
29814 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000029815 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000029816fi
29817
29818
29819 as_lineno_1=$LINENO
29820 as_lineno_2=$LINENO
29821 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29822 test "x$as_lineno_1" != "x$as_lineno_2" &&
29823 test "x$as_lineno_3" = "x$as_lineno_2" || {
29824 # Find who we are. Look in the path if we contain no path at all
29825 # relative or not.
29826 case $0 in
29827 *[\\/]* ) as_myself=$0 ;;
29828 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29829for as_dir in $PATH
29830do
29831 IFS=$as_save_IFS
29832 test -z "$as_dir" && as_dir=.
29833 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29834done
29835
29836 ;;
29837 esac
29838 # We did not find ourselves, most probably we were run as `sh COMMAND'
29839 # in which case we are not to be found in the path.
29840 if test "x$as_myself" = x; then
29841 as_myself=$0
29842 fi
29843 if test ! -f "$as_myself"; then
29844 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29845echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29846 { (exit 1); exit 1; }; }
29847 fi
29848 case $CONFIG_SHELL in
29849 '')
29850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29851for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29852do
29853 IFS=$as_save_IFS
29854 test -z "$as_dir" && as_dir=.
29855 for as_base in sh bash ksh sh5; do
29856 case $as_dir in
29857 /*)
29858 if ("$as_dir/$as_base" -c '
29859 as_lineno_1=$LINENO
29860 as_lineno_2=$LINENO
29861 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29862 test "x$as_lineno_1" != "x$as_lineno_2" &&
29863 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000029864 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29865 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000029866 CONFIG_SHELL=$as_dir/$as_base
29867 export CONFIG_SHELL
29868 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29869 fi;;
29870 esac
29871 done
29872done
29873;;
29874 esac
29875
29876 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29877 # uniformly replaced by the line number. The first 'sed' inserts a
29878 # line-number line before each line; the second 'sed' does the real
29879 # work. The second script uses 'N' to pair each line-number line
29880 # with the numbered line, and appends trailing '-' during
29881 # substitution so that $LINENO is not a special case at line end.
29882 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29883 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29884 sed '=' <$as_myself |
29885 sed '
29886 N
29887 s,$,-,
29888 : loop
29889 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29890 t loop
29891 s,-$,,
29892 s,^['$as_cr_digits']*\n,,
29893 ' >$as_me.lineno &&
29894 chmod +x $as_me.lineno ||
29895 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29896echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29897 { (exit 1); exit 1; }; }
29898
29899 # Don't try to exec as it changes $[0], causing all sort of problems
29900 # (the dirname of $[0] is not the place where we might find the
29901 # original and so on. Autoconf is especially sensible to this).
29902 . ./$as_me.lineno
29903 # Exit status is that of the last command.
29904 exit
29905}
29906
29907
29908case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29909 *c*,-n*) ECHO_N= ECHO_C='
29910' ECHO_T=' ' ;;
29911 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29912 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
29913esac
29914
29915if expr a : '\(a\)' >/dev/null 2>&1; then
29916 as_expr=expr
29917else
29918 as_expr=false
29919fi
29920
29921rm -f conf$$ conf$$.exe conf$$.file
29922echo >conf$$.file
29923if ln -s conf$$.file conf$$ 2>/dev/null; then
29924 # We could just check for DJGPP; but this test a) works b) is more generic
29925 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29926 if test -f conf$$.exe; then
29927 # Don't use ln at all; we don't have any links
29928 as_ln_s='cp -p'
29929 else
29930 as_ln_s='ln -s'
29931 fi
29932elif ln conf$$.file conf$$ 2>/dev/null; then
29933 as_ln_s=ln
29934else
29935 as_ln_s='cp -p'
29936fi
29937rm -f conf$$ conf$$.exe conf$$.file
29938
John Criswell0c38eaf2003-09-10 15:17:25 +000029939if mkdir -p . 2>/dev/null; then
29940 as_mkdir_p=:
29941else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029942 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000029943 as_mkdir_p=false
29944fi
29945
John Criswell7a73b802003-06-30 21:59:07 +000029946as_executable_p="test -f"
29947
29948# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029949as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000029950
29951# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029952as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000029953
29954
29955# IFS
29956# We need space, tab and new line, in precisely that order.
29957as_nl='
29958'
29959IFS=" $as_nl"
29960
29961# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000029962$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000029963
29964exec 6>&1
29965
29966# Open the log real soon, to keep \$[0] and so on meaningful, and to
29967# report actual input values of CONFIG_FILES etc. instead of their
29968# values after options handling. Logging --version etc. is OK.
29969exec 5>>config.log
29970{
29971 echo
29972 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29973## Running $as_me. ##
29974_ASBOX
29975} >&5
29976cat >&5 <<_CSEOF
29977
Reid Spencerabec8f92004-10-27 23:03:44 +000029978This file was extended by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000029979generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000029980
29981 CONFIG_FILES = $CONFIG_FILES
29982 CONFIG_HEADERS = $CONFIG_HEADERS
29983 CONFIG_LINKS = $CONFIG_LINKS
29984 CONFIG_COMMANDS = $CONFIG_COMMANDS
29985 $ $0 $@
29986
29987_CSEOF
29988echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29989echo >&5
29990_ACEOF
29991
29992# Files that config.status was made for.
29993if test -n "$ac_config_files"; then
29994 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29995fi
29996
29997if test -n "$ac_config_headers"; then
29998 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29999fi
30000
30001if test -n "$ac_config_links"; then
30002 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30003fi
30004
30005if test -n "$ac_config_commands"; then
30006 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30007fi
30008
30009cat >>$CONFIG_STATUS <<\_ACEOF
30010
30011ac_cs_usage="\
30012\`$as_me' instantiates files from templates according to the
30013current configuration.
30014
30015Usage: $0 [OPTIONS] [FILE]...
30016
30017 -h, --help print this help, then exit
30018 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000030019 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000030020 -d, --debug don't remove temporary files
30021 --recheck update $as_me by reconfiguring in the same conditions
30022 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030023 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000030024 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030025 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000030026
30027Configuration files:
30028$config_files
30029
30030Configuration headers:
30031$config_headers
30032
Reid Spencerde8c47f2004-08-29 19:35:28 +000030033Configuration links:
30034$config_links
30035
John Criswellc764fbc2003-09-06 15:17:13 +000030036Configuration commands:
30037$config_commands
30038
John Criswell7a73b802003-06-30 21:59:07 +000030039Report bugs to <bug-autoconf@gnu.org>."
30040_ACEOF
30041
30042cat >>$CONFIG_STATUS <<_ACEOF
30043ac_cs_version="\\
Reid Spencerabec8f92004-10-27 23:03:44 +000030044llvm config.status 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +000030045configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000030046 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30047
Reid Spencer2706f8c2004-09-19 23:53:36 +000030048Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000030049This config.status script is free software; the Free Software Foundation
30050gives unlimited permission to copy, distribute and modify it."
30051srcdir=$srcdir
30052INSTALL="$INSTALL"
30053_ACEOF
30054
30055cat >>$CONFIG_STATUS <<\_ACEOF
30056# If no file are specified by the user, then we need to provide default
30057# value. By we need to know if files were specified by the user.
30058ac_need_defaults=:
30059while test $# != 0
30060do
30061 case $1 in
30062 --*=*)
30063 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30064 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030065 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000030066 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030067 -*)
30068 ac_option=$1
30069 ac_optarg=$2
30070 ac_shift=shift
30071 ;;
John Criswell7a73b802003-06-30 21:59:07 +000030072 *) # This is not an option, so the user has probably given explicit
30073 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000030074 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000030075 ac_need_defaults=false;;
30076 esac
30077
John Criswell0c38eaf2003-09-10 15:17:25 +000030078 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000030079 # Handling of the options.
30080_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000030081cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030082 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30083 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030084 --version | --vers* | -V )
30085 echo "$ac_cs_version"; exit 0 ;;
30086 --he | --h)
30087 # Conflict between --help and --header
30088 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30089Try \`$0 --help' for more information." >&5
30090echo "$as_me: error: ambiguous option: $1
30091Try \`$0 --help' for more information." >&2;}
30092 { (exit 1); exit 1; }; };;
30093 --help | --hel | -h )
30094 echo "$ac_cs_usage"; exit 0 ;;
30095 --debug | --d* | -d )
30096 debug=: ;;
30097 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000030098 $ac_shift
30099 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030100 ac_need_defaults=false;;
30101 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000030102 $ac_shift
30103 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030104 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30106 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30107 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030108
30109 # This is an error.
30110 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30111Try \`$0 --help' for more information." >&5
30112echo "$as_me: error: unrecognized option: $1
30113Try \`$0 --help' for more information." >&2;}
30114 { (exit 1); exit 1; }; } ;;
30115
30116 *) ac_config_targets="$ac_config_targets $1" ;;
30117
30118 esac
30119 shift
30120done
30121
John Criswell0c38eaf2003-09-10 15:17:25 +000030122ac_configure_extra_args=
30123
30124if $ac_cs_silent; then
30125 exec 6>/dev/null
30126 ac_configure_extra_args="$ac_configure_extra_args --silent"
30127fi
30128
30129_ACEOF
30130cat >>$CONFIG_STATUS <<_ACEOF
30131if \$ac_cs_recheck; then
30132 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30133 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30134fi
30135
John Criswell7a73b802003-06-30 21:59:07 +000030136_ACEOF
30137
John Criswellc764fbc2003-09-06 15:17:13 +000030138cat >>$CONFIG_STATUS <<_ACEOF
30139#
30140# INIT-COMMANDS section.
30141#
John Criswell7a73b802003-06-30 21:59:07 +000030142
John Criswellc764fbc2003-09-06 15:17:13 +000030143${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30144${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000030145${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030146${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030147${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030148${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30149${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000030150${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
30151${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000030152${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000030153${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030154${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030155
30156_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030157
30158
30159
30160cat >>$CONFIG_STATUS <<\_ACEOF
30161for ac_config_target in $ac_config_targets
30162do
30163 case "$ac_config_target" in
30164 # Handling of arguments.
30165 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer0acd65f2004-11-23 23:48:45 +000030166 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30167 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30168 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30169 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000030170 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spenceredd01b92004-11-25 06:03:14 +000030171 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030172 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30173 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000030174 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030175 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030176 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030177 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30178 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000030179 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
30180 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030181 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000030182 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030183 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000030184 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000030185 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000030186 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30187 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000030188 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30189 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000030190 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30191echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30192 { (exit 1); exit 1; }; };;
30193 esac
30194done
30195
30196# If the user did not use the arguments to specify the items to instantiate,
30197# then the envvar interface is used. Set only those that are not.
30198# We use the long form for the default assignment because of an extremely
30199# bizarre bug on SunOS 4.1.3.
30200if $ac_need_defaults; then
30201 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30202 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Reid Spencerde8c47f2004-08-29 19:35:28 +000030203 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
John Criswellc764fbc2003-09-06 15:17:13 +000030204 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000030205fi
30206
John Criswell0c38eaf2003-09-10 15:17:25 +000030207# Have a temporary directory for convenience. Make it in the build tree
30208# simply because there is no reason to put it here, and in addition,
30209# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000030210# Create a temporary directory, and hook for its removal unless debugging.
30211$debug ||
30212{
30213 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30214 trap '{ (exit 1); exit 1; }' 1 2 13 15
30215}
30216
30217# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000030218
John Criswell7a73b802003-06-30 21:59:07 +000030219{
John Criswell0c38eaf2003-09-10 15:17:25 +000030220 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000030221 test -n "$tmp" && test -d "$tmp"
30222} ||
30223{
John Criswell0c38eaf2003-09-10 15:17:25 +000030224 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000030225 (umask 077 && mkdir $tmp)
30226} ||
30227{
John Criswell0c38eaf2003-09-10 15:17:25 +000030228 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000030229 { (exit 1); exit 1; }
30230}
30231
30232_ACEOF
30233
30234cat >>$CONFIG_STATUS <<_ACEOF
30235
30236#
30237# CONFIG_FILES section.
30238#
30239
30240# No need to generate the scripts if there are no CONFIG_FILES.
30241# This happens for instance when ./config.status config.h
30242if test -n "\$CONFIG_FILES"; then
30243 # Protect against being on the right side of a sed subst in config.status.
30244 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30245 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30246s,@SHELL@,$SHELL,;t t
30247s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30248s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30249s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30250s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30251s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30252s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30253s,@exec_prefix@,$exec_prefix,;t t
30254s,@prefix@,$prefix,;t t
30255s,@program_transform_name@,$program_transform_name,;t t
30256s,@bindir@,$bindir,;t t
30257s,@sbindir@,$sbindir,;t t
30258s,@libexecdir@,$libexecdir,;t t
30259s,@datadir@,$datadir,;t t
30260s,@sysconfdir@,$sysconfdir,;t t
30261s,@sharedstatedir@,$sharedstatedir,;t t
30262s,@localstatedir@,$localstatedir,;t t
30263s,@libdir@,$libdir,;t t
30264s,@includedir@,$includedir,;t t
30265s,@oldincludedir@,$oldincludedir,;t t
30266s,@infodir@,$infodir,;t t
30267s,@mandir@,$mandir,;t t
30268s,@build_alias@,$build_alias,;t t
30269s,@host_alias@,$host_alias,;t t
30270s,@target_alias@,$target_alias,;t t
30271s,@DEFS@,$DEFS,;t t
30272s,@ECHO_C@,$ECHO_C,;t t
30273s,@ECHO_N@,$ECHO_N,;t t
30274s,@ECHO_T@,$ECHO_T,;t t
30275s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030276s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000030277s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030278s,@build@,$build,;t t
30279s,@build_cpu@,$build_cpu,;t t
30280s,@build_vendor@,$build_vendor,;t t
30281s,@build_os@,$build_os,;t t
30282s,@host@,$host,;t t
30283s,@host_cpu@,$host_cpu,;t t
30284s,@host_vendor@,$host_vendor,;t t
30285s,@host_os@,$host_os,;t t
30286s,@target@,$target,;t t
30287s,@target_cpu@,$target_cpu,;t t
30288s,@target_vendor@,$target_vendor,;t t
30289s,@target_os@,$target_os,;t t
30290s,@OS@,$OS,;t t
John Criswell76595452003-07-01 22:07:39 +000030291s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030292s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030293s,@CC@,$CC,;t t
30294s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030295s,@LDFLAGS@,$LDFLAGS,;t t
30296s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030297s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030298s,@EXEEXT@,$EXEEXT,;t t
30299s,@OBJEXT@,$OBJEXT,;t t
30300s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30301s,@JIT@,$JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030302s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030303s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030304s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030305s,@CXX@,$CXX,;t t
30306s,@CXXFLAGS@,$CXXFLAGS,;t t
30307s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030308s,@LEX@,$LEX,;t t
30309s,@LEXLIB@,$LEXLIB,;t t
30310s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000030311s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030312s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000030313s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030314s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030315s,@LN_S@,$LN_S,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030316s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030317s,@FIND@,$FIND,;t t
30318s,@GREP@,$GREP,;t t
30319s,@MKDIR@,$MKDIR,;t t
30320s,@MV@,$MV,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030321s,@PAX@,$PAX,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030322s,@RANLIB@,$RANLIB,;t t
30323s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030324s,@RM@,$RM,;t t
30325s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000030326s,@TAR@,$TAR,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030327s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30328s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30329s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030330s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030331s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030332s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030333s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030334s,@GROFF@,$GROFF,;t t
30335s,@GZIP@,$GZIP,;t t
30336s,@POD2HTML@,$POD2HTML,;t t
30337s,@POD2MAN@,$POD2MAN,;t t
John Criswellde00db22003-08-25 16:49:54 +000030338s,@PYTHON@,$PYTHON,;t t
30339s,@QMTEST@,$QMTEST,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000030340s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000030341s,@tclsh@,$tclsh,;t t
30342s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030343s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030344s,@EGREP@,$EGREP,;t t
30345s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30346s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30347s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30348s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30349s,@LIBADD_DL@,$LIBADD_DL,;t t
30350s,@ECHO@,$ECHO,;t t
30351s,@AR@,$AR,;t t
30352s,@ac_ct_AR@,$ac_ct_AR,;t t
30353s,@STRIP@,$STRIP,;t t
30354s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30355s,@CXXCPP@,$CXXCPP,;t t
30356s,@F77@,$F77,;t t
30357s,@FFLAGS@,$FFLAGS,;t t
30358s,@ac_ct_F77@,$ac_ct_F77,;t t
30359s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030360s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030361s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030362s,@MMAP_FILE@,$MMAP_FILE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030363s,@LLVMGCC@,$LLVMGCC,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000030364s,@LLVMCC1@,$LLVMCC1,;t t
30365s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000030366s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000030367s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30368s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30369s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30370s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30371s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30372s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30373s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30374s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30375s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30376s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000030377s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000030378s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030379CEOF
30380
30381_ACEOF
30382
30383 cat >>$CONFIG_STATUS <<\_ACEOF
30384 # Split the substitutions into bite-sized pieces for seds with
30385 # small command number limits, like on Digital OSF/1 and HP-UX.
30386 ac_max_sed_lines=48
30387 ac_sed_frag=1 # Number of current file.
30388 ac_beg=1 # First line for current file.
30389 ac_end=$ac_max_sed_lines # Line after last line for current file.
30390 ac_more_lines=:
30391 ac_sed_cmds=
30392 while $ac_more_lines; do
30393 if test $ac_beg -gt 1; then
30394 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30395 else
30396 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30397 fi
30398 if test ! -s $tmp/subs.frag; then
30399 ac_more_lines=false
30400 else
30401 # The purpose of the label and of the branching condition is to
30402 # speed up the sed processing (if there are no `@' at all, there
30403 # is no need to browse any of the substitutions).
30404 # These are the two extra sed commands mentioned above.
30405 (echo ':t
30406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30407 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030408 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000030409 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030410 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000030411 fi
30412 ac_sed_frag=`expr $ac_sed_frag + 1`
30413 ac_beg=$ac_end
30414 ac_end=`expr $ac_end + $ac_max_sed_lines`
30415 fi
30416 done
30417 if test -z "$ac_sed_cmds"; then
30418 ac_sed_cmds=cat
30419 fi
30420fi # test -n "$CONFIG_FILES"
30421
30422_ACEOF
30423cat >>$CONFIG_STATUS <<\_ACEOF
30424for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30425 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30426 case $ac_file in
30427 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000030428 cat >$tmp/stdin
30429 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30430 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030431 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000030432 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030433 * ) ac_file_in=$ac_file.in ;;
30434 esac
30435
30436 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30437 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30438$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030439 X"$ac_file" : 'X\(//\)[^/]' \| \
30440 X"$ac_file" : 'X\(//\)$' \| \
30441 X"$ac_file" : 'X\(/\)' \| \
30442 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000030443echo X"$ac_file" |
30444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30445 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30446 /^X\(\/\/\)$/{ s//\1/; q; }
30447 /^X\(\/\).*/{ s//\1/; q; }
30448 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030449 { if $as_mkdir_p; then
30450 mkdir -p "$ac_dir"
30451 else
30452 as_dir="$ac_dir"
30453 as_dirs=
30454 while test ! -d "$as_dir"; do
30455 as_dirs="$as_dir $as_dirs"
30456 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30457$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030458 X"$as_dir" : 'X\(//\)[^/]' \| \
30459 X"$as_dir" : 'X\(//\)$' \| \
30460 X"$as_dir" : 'X\(/\)' \| \
30461 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000030462echo X"$as_dir" |
30463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30464 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30465 /^X\(\/\/\)$/{ s//\1/; q; }
30466 /^X\(\/\).*/{ s//\1/; q; }
30467 s/.*/./; q'`
30468 done
30469 test ! -n "$as_dirs" || mkdir $as_dirs
30470 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30471echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30472 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000030473
30474 ac_builddir=.
30475
30476if test "$ac_dir" != .; then
30477 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30478 # A "../" for each directory in $ac_dir_suffix.
30479 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30480else
30481 ac_dir_suffix= ac_top_builddir=
30482fi
30483
30484case $srcdir in
30485 .) # No --srcdir option. We are building in place.
30486 ac_srcdir=.
30487 if test -z "$ac_top_builddir"; then
30488 ac_top_srcdir=.
30489 else
30490 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30491 fi ;;
30492 [\\/]* | ?:[\\/]* ) # Absolute path.
30493 ac_srcdir=$srcdir$ac_dir_suffix;
30494 ac_top_srcdir=$srcdir ;;
30495 *) # Relative path.
30496 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30497 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30498esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000030499
30500# Do not use `cd foo && pwd` to compute absolute paths, because
30501# the directories may not exist.
30502case `pwd` in
30503.) ac_abs_builddir="$ac_dir";;
30504*)
30505 case "$ac_dir" in
30506 .) ac_abs_builddir=`pwd`;;
30507 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30508 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30509 esac;;
30510esac
30511case $ac_abs_builddir in
30512.) ac_abs_top_builddir=${ac_top_builddir}.;;
30513*)
30514 case ${ac_top_builddir}. in
30515 .) ac_abs_top_builddir=$ac_abs_builddir;;
30516 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30517 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30518 esac;;
30519esac
30520case $ac_abs_builddir in
30521.) ac_abs_srcdir=$ac_srcdir;;
30522*)
30523 case $ac_srcdir in
30524 .) ac_abs_srcdir=$ac_abs_builddir;;
30525 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30526 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30527 esac;;
30528esac
30529case $ac_abs_builddir in
30530.) ac_abs_top_srcdir=$ac_top_srcdir;;
30531*)
30532 case $ac_top_srcdir in
30533 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30534 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30535 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30536 esac;;
30537esac
John Criswell7a73b802003-06-30 21:59:07 +000030538
30539
30540 case $INSTALL in
30541 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30542 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30543 esac
30544
30545 if test x"$ac_file" != x-; then
30546 { echo "$as_me:$LINENO: creating $ac_file" >&5
30547echo "$as_me: creating $ac_file" >&6;}
30548 rm -f "$ac_file"
30549 fi
30550 # Let's still pretend it is `configure' which instantiates (i.e., don't
30551 # use $as_me), people would be surprised to read:
30552 # /* config.h. Generated by config.status. */
30553 if test x"$ac_file" = x-; then
30554 configure_input=
30555 else
30556 configure_input="$ac_file. "
30557 fi
30558 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030559 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000030560
30561 # First look for the input files in the build tree, otherwise in the
30562 # src tree.
30563 ac_file_inputs=`IFS=:
30564 for f in $ac_file_in; do
30565 case $f in
30566 -) echo $tmp/stdin ;;
30567 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000030568 # Absolute (can't be DOS-style, as IFS=:)
30569 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030570echo "$as_me: error: cannot find input file: $f" >&2;}
30571 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030572 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000030573 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000030574 if test -f "$f"; then
30575 # Build tree
30576 echo "$f"
30577 elif test -f "$srcdir/$f"; then
30578 # Source tree
30579 echo "$srcdir/$f"
30580 else
30581 # /dev/null tree
30582 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030583echo "$as_me: error: cannot find input file: $f" >&2;}
30584 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030585 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000030586 esac
30587 done` || { (exit 1); exit 1; }
30588_ACEOF
30589cat >>$CONFIG_STATUS <<_ACEOF
30590 sed "$ac_vpsub
30591$extrasub
30592_ACEOF
30593cat >>$CONFIG_STATUS <<\_ACEOF
30594:t
30595/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30596s,@configure_input@,$configure_input,;t t
30597s,@srcdir@,$ac_srcdir,;t t
30598s,@abs_srcdir@,$ac_abs_srcdir,;t t
30599s,@top_srcdir@,$ac_top_srcdir,;t t
30600s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30601s,@builddir@,$ac_builddir,;t t
30602s,@abs_builddir@,$ac_abs_builddir,;t t
30603s,@top_builddir@,$ac_top_builddir,;t t
30604s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30605s,@INSTALL@,$ac_INSTALL,;t t
30606" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30607 rm -f $tmp/stdin
30608 if test x"$ac_file" != x-; then
30609 mv $tmp/out $ac_file
30610 else
30611 cat $tmp/out
30612 rm -f $tmp/out
30613 fi
30614
30615done
30616_ACEOF
30617cat >>$CONFIG_STATUS <<\_ACEOF
30618
30619#
30620# CONFIG_HEADER section.
30621#
30622
30623# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30624# NAME is the cpp macro being defined and VALUE is the value it is being given.
30625#
30626# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030627ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30628ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000030629ac_dC=' '
30630ac_dD=',;t'
30631# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000030632ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000030633ac_uB='$,\1#\2define\3'
30634ac_uC=' '
30635ac_uD=',;t'
30636
30637for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30638 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30639 case $ac_file in
30640 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000030641 cat >$tmp/stdin
30642 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30643 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030644 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000030645 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030646 * ) ac_file_in=$ac_file.in ;;
30647 esac
30648
30649 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30650echo "$as_me: creating $ac_file" >&6;}
30651
30652 # First look for the input files in the build tree, otherwise in the
30653 # src tree.
30654 ac_file_inputs=`IFS=:
30655 for f in $ac_file_in; do
30656 case $f in
30657 -) echo $tmp/stdin ;;
30658 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000030659 # Absolute (can't be DOS-style, as IFS=:)
30660 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030661echo "$as_me: error: cannot find input file: $f" >&2;}
30662 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030663 # Do quote $f, to prevent DOS paths from being IFS'd.
30664 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000030665 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000030666 if test -f "$f"; then
30667 # Build tree
30668 echo "$f"
30669 elif test -f "$srcdir/$f"; then
30670 # Source tree
30671 echo "$srcdir/$f"
30672 else
30673 # /dev/null tree
30674 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030675echo "$as_me: error: cannot find input file: $f" >&2;}
30676 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030677 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000030678 esac
30679 done` || { (exit 1); exit 1; }
30680 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030681 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000030682
30683_ACEOF
30684
30685# Transform confdefs.h into two sed scripts, `conftest.defines' and
30686# `conftest.undefs', that substitutes the proper values into
30687# config.h.in to produce config.h. The first handles `#define'
30688# templates, and the second `#undef' templates.
30689# And first: Protect against being on the right side of a sed subst in
30690# config.status. Protect against being in an unquoted here document
30691# in config.status.
30692rm -f conftest.defines conftest.undefs
30693# Using a here document instead of a string reduces the quoting nightmare.
30694# Putting comments in sed scripts is not portable.
30695#
30696# `end' is used to avoid that the second main sed command (meant for
30697# 0-ary CPP macros) applies to n-ary macro definitions.
30698# See the Autoconf documentation for `clear'.
30699cat >confdef2sed.sed <<\_ACEOF
30700s/[\\&,]/\\&/g
30701s,[\\$`],\\&,g
30702t clear
30703: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000030704s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000030705t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000030706s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000030707: end
30708_ACEOF
30709# If some macros were called several times there might be several times
30710# the same #defines, which is useless. Nevertheless, we may not want to
30711# sort them, since we want the *last* AC-DEFINE to be honored.
30712uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30713sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30714rm -f confdef2sed.sed
30715
30716# This sed command replaces #undef with comments. This is necessary, for
30717# example, in the case of _POSIX_SOURCE, which is predefined and required
30718# on some systems where configure will not decide to define it.
30719cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000030720s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000030721_ACEOF
30722
30723# Break up conftest.defines because some shells have a limit on the size
30724# of here documents, and old seds have small limits too (100 cmds).
30725echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000030726echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030727echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30728echo ' :' >>$CONFIG_STATUS
30729rm -f conftest.tail
30730while grep . conftest.defines >/dev/null
30731do
30732 # Write a limited-size here document to $tmp/defines.sed.
30733 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30734 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030735 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030736 # Work around the forget-to-reset-the-flag bug.
30737 echo 't clr' >>$CONFIG_STATUS
30738 echo ': clr' >>$CONFIG_STATUS
30739 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30740 echo 'CEOF
30741 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30742 rm -f $tmp/in
30743 mv $tmp/out $tmp/in
30744' >>$CONFIG_STATUS
30745 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30746 rm -f conftest.defines
30747 mv conftest.tail conftest.defines
30748done
30749rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000030750echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030751echo >>$CONFIG_STATUS
30752
30753# Break up conftest.undefs because some shells have a limit on the size
30754# of here documents, and old seds have small limits too (100 cmds).
30755echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30756rm -f conftest.tail
30757while grep . conftest.undefs >/dev/null
30758do
30759 # Write a limited-size here document to $tmp/undefs.sed.
30760 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30761 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000030762 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030763 # Work around the forget-to-reset-the-flag bug.
30764 echo 't clr' >>$CONFIG_STATUS
30765 echo ': clr' >>$CONFIG_STATUS
30766 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30767 echo 'CEOF
30768 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30769 rm -f $tmp/in
30770 mv $tmp/out $tmp/in
30771' >>$CONFIG_STATUS
30772 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30773 rm -f conftest.undefs
30774 mv conftest.tail conftest.undefs
30775done
30776rm -f conftest.undefs
30777
30778cat >>$CONFIG_STATUS <<\_ACEOF
30779 # Let's still pretend it is `configure' which instantiates (i.e., don't
30780 # use $as_me), people would be surprised to read:
30781 # /* config.h. Generated by config.status. */
30782 if test x"$ac_file" = x-; then
30783 echo "/* Generated by configure. */" >$tmp/config.h
30784 else
30785 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30786 fi
30787 cat $tmp/in >>$tmp/config.h
30788 rm -f $tmp/in
30789 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030790 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030791 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30792echo "$as_me: $ac_file is unchanged" >&6;}
30793 else
30794 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30795$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030796 X"$ac_file" : 'X\(//\)[^/]' \| \
30797 X"$ac_file" : 'X\(//\)$' \| \
30798 X"$ac_file" : 'X\(/\)' \| \
30799 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000030800echo X"$ac_file" |
30801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30802 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30803 /^X\(\/\/\)$/{ s//\1/; q; }
30804 /^X\(\/\).*/{ s//\1/; q; }
30805 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030806 { if $as_mkdir_p; then
30807 mkdir -p "$ac_dir"
30808 else
30809 as_dir="$ac_dir"
30810 as_dirs=
30811 while test ! -d "$as_dir"; do
30812 as_dirs="$as_dir $as_dirs"
30813 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30814$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030815 X"$as_dir" : 'X\(//\)[^/]' \| \
30816 X"$as_dir" : 'X\(//\)$' \| \
30817 X"$as_dir" : 'X\(/\)' \| \
30818 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000030819echo X"$as_dir" |
30820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30821 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30822 /^X\(\/\/\)$/{ s//\1/; q; }
30823 /^X\(\/\).*/{ s//\1/; q; }
30824 s/.*/./; q'`
30825 done
30826 test ! -n "$as_dirs" || mkdir $as_dirs
30827 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30828echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30829 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000030830
30831 rm -f $ac_file
30832 mv $tmp/config.h $ac_file
30833 fi
30834 else
30835 cat $tmp/config.h
30836 rm -f $tmp/config.h
30837 fi
30838done
30839_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000030840cat >>$CONFIG_STATUS <<\_ACEOF
30841
30842#
Reid Spencerde8c47f2004-08-29 19:35:28 +000030843# CONFIG_LINKS section.
30844#
30845
30846for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30847 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30848 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30849
30850 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30851echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30852
30853 if test ! -r $srcdir/$ac_source; then
30854 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30855echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30856 { (exit 1); exit 1; }; }
30857 fi
30858 rm -f $ac_dest
30859
30860 # Make relative symlinks.
30861 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30862$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030863 X"$ac_dest" : 'X\(//\)[^/]' \| \
30864 X"$ac_dest" : 'X\(//\)$' \| \
30865 X"$ac_dest" : 'X\(/\)' \| \
30866 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000030867echo X"$ac_dest" |
30868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30869 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30870 /^X\(\/\/\)$/{ s//\1/; q; }
30871 /^X\(\/\).*/{ s//\1/; q; }
30872 s/.*/./; q'`
30873 { if $as_mkdir_p; then
30874 mkdir -p "$ac_dest_dir"
30875 else
30876 as_dir="$ac_dest_dir"
30877 as_dirs=
30878 while test ! -d "$as_dir"; do
30879 as_dirs="$as_dir $as_dirs"
30880 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30881$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030882 X"$as_dir" : 'X\(//\)[^/]' \| \
30883 X"$as_dir" : 'X\(//\)$' \| \
30884 X"$as_dir" : 'X\(/\)' \| \
30885 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000030886echo X"$as_dir" |
30887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30888 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30889 /^X\(\/\/\)$/{ s//\1/; q; }
30890 /^X\(\/\).*/{ s//\1/; q; }
30891 s/.*/./; q'`
30892 done
30893 test ! -n "$as_dirs" || mkdir $as_dirs
30894 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30895echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30896 { (exit 1); exit 1; }; }; }
30897
30898 ac_builddir=.
30899
30900if test "$ac_dest_dir" != .; then
30901 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30902 # A "../" for each directory in $ac_dir_suffix.
30903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30904else
30905 ac_dir_suffix= ac_top_builddir=
30906fi
30907
30908case $srcdir in
30909 .) # No --srcdir option. We are building in place.
30910 ac_srcdir=.
30911 if test -z "$ac_top_builddir"; then
30912 ac_top_srcdir=.
30913 else
30914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30915 fi ;;
30916 [\\/]* | ?:[\\/]* ) # Absolute path.
30917 ac_srcdir=$srcdir$ac_dir_suffix;
30918 ac_top_srcdir=$srcdir ;;
30919 *) # Relative path.
30920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30922esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000030923
30924# Do not use `cd foo && pwd` to compute absolute paths, because
30925# the directories may not exist.
30926case `pwd` in
30927.) ac_abs_builddir="$ac_dest_dir";;
30928*)
30929 case "$ac_dest_dir" in
30930 .) ac_abs_builddir=`pwd`;;
30931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30932 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30933 esac;;
30934esac
30935case $ac_abs_builddir in
30936.) ac_abs_top_builddir=${ac_top_builddir}.;;
30937*)
30938 case ${ac_top_builddir}. in
30939 .) ac_abs_top_builddir=$ac_abs_builddir;;
30940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30942 esac;;
30943esac
30944case $ac_abs_builddir in
30945.) ac_abs_srcdir=$ac_srcdir;;
30946*)
30947 case $ac_srcdir in
30948 .) ac_abs_srcdir=$ac_abs_builddir;;
30949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30951 esac;;
30952esac
30953case $ac_abs_builddir in
30954.) ac_abs_top_srcdir=$ac_top_srcdir;;
30955*)
30956 case $ac_top_srcdir in
30957 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30960 esac;;
30961esac
Reid Spencerde8c47f2004-08-29 19:35:28 +000030962
30963
30964 case $srcdir in
30965 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30966 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30967 esac
30968
30969 # Try a symlink, then a hard link, then a copy.
30970 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30971 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30972 cp -p $srcdir/$ac_source $ac_dest ||
30973 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30974echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30975 { (exit 1); exit 1; }; }
30976done
30977_ACEOF
30978cat >>$CONFIG_STATUS <<\_ACEOF
30979
30980#
John Criswellc764fbc2003-09-06 15:17:13 +000030981# CONFIG_COMMANDS section.
30982#
30983for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30984 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30985 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30986 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30987$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030988 X"$ac_dest" : 'X\(//\)[^/]' \| \
30989 X"$ac_dest" : 'X\(//\)$' \| \
30990 X"$ac_dest" : 'X\(/\)' \| \
30991 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000030992echo X"$ac_dest" |
30993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30994 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30995 /^X\(\/\/\)$/{ s//\1/; q; }
30996 /^X\(\/\).*/{ s//\1/; q; }
30997 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000030998 { if $as_mkdir_p; then
30999 mkdir -p "$ac_dir"
31000 else
31001 as_dir="$ac_dir"
31002 as_dirs=
31003 while test ! -d "$as_dir"; do
31004 as_dirs="$as_dir $as_dirs"
31005 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31006$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31007 X"$as_dir" : 'X\(//\)[^/]' \| \
31008 X"$as_dir" : 'X\(//\)$' \| \
31009 X"$as_dir" : 'X\(/\)' \| \
31010 . : '\(.\)' 2>/dev/null ||
31011echo X"$as_dir" |
31012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31013 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31014 /^X\(\/\/\)$/{ s//\1/; q; }
31015 /^X\(\/\).*/{ s//\1/; q; }
31016 s/.*/./; q'`
31017 done
31018 test ! -n "$as_dirs" || mkdir $as_dirs
31019 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31020echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31021 { (exit 1); exit 1; }; }; }
31022
John Criswellc764fbc2003-09-06 15:17:13 +000031023 ac_builddir=.
31024
31025if test "$ac_dir" != .; then
31026 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31027 # A "../" for each directory in $ac_dir_suffix.
31028 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31029else
31030 ac_dir_suffix= ac_top_builddir=
31031fi
31032
31033case $srcdir in
31034 .) # No --srcdir option. We are building in place.
31035 ac_srcdir=.
31036 if test -z "$ac_top_builddir"; then
31037 ac_top_srcdir=.
31038 else
31039 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31040 fi ;;
31041 [\\/]* | ?:[\\/]* ) # Absolute path.
31042 ac_srcdir=$srcdir$ac_dir_suffix;
31043 ac_top_srcdir=$srcdir ;;
31044 *) # Relative path.
31045 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31046 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31047esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031048
31049# Do not use `cd foo && pwd` to compute absolute paths, because
31050# the directories may not exist.
31051case `pwd` in
31052.) ac_abs_builddir="$ac_dir";;
31053*)
31054 case "$ac_dir" in
31055 .) ac_abs_builddir=`pwd`;;
31056 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31057 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31058 esac;;
31059esac
31060case $ac_abs_builddir in
31061.) ac_abs_top_builddir=${ac_top_builddir}.;;
31062*)
31063 case ${ac_top_builddir}. in
31064 .) ac_abs_top_builddir=$ac_abs_builddir;;
31065 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31066 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31067 esac;;
31068esac
31069case $ac_abs_builddir in
31070.) ac_abs_srcdir=$ac_srcdir;;
31071*)
31072 case $ac_srcdir in
31073 .) ac_abs_srcdir=$ac_abs_builddir;;
31074 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31075 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31076 esac;;
31077esac
31078case $ac_abs_builddir in
31079.) ac_abs_top_srcdir=$ac_top_srcdir;;
31080*)
31081 case $ac_top_srcdir in
31082 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31083 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31084 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31085 esac;;
31086esac
John Criswellc764fbc2003-09-06 15:17:13 +000031087
31088
31089 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31090echo "$as_me: executing $ac_dest commands" >&6;}
31091 case $ac_dest in
31092 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31093 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000031094 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031095 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031096 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031097 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31098 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000031099 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
31100 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031101 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000031102 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031103 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031104 esac
31105done
31106_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031107
31108cat >>$CONFIG_STATUS <<\_ACEOF
31109
31110{ (exit 0); exit 0; }
31111_ACEOF
31112chmod +x $CONFIG_STATUS
31113ac_clean_files=$ac_clean_files_save
31114
31115
31116# configure is writing to config.log, and then calls config.status.
31117# config.status does its own redirection, appending to config.log.
31118# Unfortunately, on DOS this fails, as config.log is still kept open
31119# by configure, so config.status won't be able to write to it; its
31120# output is simply discarded. So we exec the FD to /dev/null,
31121# effectively closing config.log, so it can be properly (re)opened and
31122# appended to by config.status. When coming back to configure, we
31123# need to make the FD available again.
31124if test "$no_create" != yes; then
31125 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031126 ac_config_status_args=
31127 test "$silent" = yes &&
31128 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000031129 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000031130 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000031131 exec 5>>config.log
31132 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31133 # would make configure fail if this is the last instruction.
31134 $ac_cs_success || { (exit 1); exit 1; }
31135fi
31136
John Criswell12399a12003-09-30 15:55:44 +000031137#
31138# CONFIG_SUBDIRS section.
31139#
31140if test "$no_recursion" != yes; then
31141
31142 # Remove --cache-file and --srcdir arguments so they do not pile up.
31143 ac_sub_configure_args=
31144 ac_prev=
31145 for ac_arg in $ac_configure_args; do
31146 if test -n "$ac_prev"; then
31147 ac_prev=
31148 continue
31149 fi
31150 case $ac_arg in
31151 -cache-file | --cache-file | --cache-fil | --cache-fi \
31152 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31153 ac_prev=cache_file ;;
31154 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31155 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31156 | --c=*)
31157 ;;
31158 --config-cache | -C)
31159 ;;
31160 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31161 ac_prev=srcdir ;;
31162 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31163 ;;
31164 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31165 ac_prev=prefix ;;
31166 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31167 ;;
31168 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31169 esac
31170 done
31171
31172 # Always prepend --prefix to ensure using the same prefix
31173 # in subdir configurations.
31174 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31175
31176 ac_popdir=`pwd`
31177 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31178
31179 # Do not complain, so a configure script can configure whichever
31180 # parts of a large source tree are present.
31181 test -d $srcdir/$ac_dir || continue
31182
31183 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31184echo "$as_me: configuring in $ac_dir" >&6;}
31185 { if $as_mkdir_p; then
31186 mkdir -p "$ac_dir"
31187 else
31188 as_dir="$ac_dir"
31189 as_dirs=
31190 while test ! -d "$as_dir"; do
31191 as_dirs="$as_dir $as_dirs"
31192 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31193$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031194 X"$as_dir" : 'X\(//\)[^/]' \| \
31195 X"$as_dir" : 'X\(//\)$' \| \
31196 X"$as_dir" : 'X\(/\)' \| \
31197 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000031198echo X"$as_dir" |
31199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31200 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31201 /^X\(\/\/\)$/{ s//\1/; q; }
31202 /^X\(\/\).*/{ s//\1/; q; }
31203 s/.*/./; q'`
31204 done
31205 test ! -n "$as_dirs" || mkdir $as_dirs
31206 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31207echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31208 { (exit 1); exit 1; }; }; }
31209
31210 ac_builddir=.
31211
31212if test "$ac_dir" != .; then
31213 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31214 # A "../" for each directory in $ac_dir_suffix.
31215 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31216else
31217 ac_dir_suffix= ac_top_builddir=
31218fi
31219
31220case $srcdir in
31221 .) # No --srcdir option. We are building in place.
31222 ac_srcdir=.
31223 if test -z "$ac_top_builddir"; then
31224 ac_top_srcdir=.
31225 else
31226 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31227 fi ;;
31228 [\\/]* | ?:[\\/]* ) # Absolute path.
31229 ac_srcdir=$srcdir$ac_dir_suffix;
31230 ac_top_srcdir=$srcdir ;;
31231 *) # Relative path.
31232 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31233 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31234esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031235
31236# Do not use `cd foo && pwd` to compute absolute paths, because
31237# the directories may not exist.
31238case `pwd` in
31239.) ac_abs_builddir="$ac_dir";;
31240*)
31241 case "$ac_dir" in
31242 .) ac_abs_builddir=`pwd`;;
31243 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31244 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31245 esac;;
31246esac
31247case $ac_abs_builddir in
31248.) ac_abs_top_builddir=${ac_top_builddir}.;;
31249*)
31250 case ${ac_top_builddir}. in
31251 .) ac_abs_top_builddir=$ac_abs_builddir;;
31252 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31253 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31254 esac;;
31255esac
31256case $ac_abs_builddir in
31257.) ac_abs_srcdir=$ac_srcdir;;
31258*)
31259 case $ac_srcdir in
31260 .) ac_abs_srcdir=$ac_abs_builddir;;
31261 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31262 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31263 esac;;
31264esac
31265case $ac_abs_builddir in
31266.) ac_abs_top_srcdir=$ac_top_srcdir;;
31267*)
31268 case $ac_top_srcdir in
31269 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31270 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31271 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31272 esac;;
31273esac
John Criswell12399a12003-09-30 15:55:44 +000031274
31275
31276 cd $ac_dir
31277
31278 # Check for guested configure; otherwise get Cygnus style configure.
31279 if test -f $ac_srcdir/configure.gnu; then
31280 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31281 elif test -f $ac_srcdir/configure; then
31282 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31283 elif test -f $ac_srcdir/configure.in; then
31284 ac_sub_configure=$ac_configure
31285 else
31286 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31287echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31288 ac_sub_configure=
31289 fi
31290
31291 # The recursion is here.
31292 if test -n "$ac_sub_configure"; then
31293 # Make the cache file name correct relative to the subdirectory.
31294 case $cache_file in
31295 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31296 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031297 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000031298 esac
31299
31300 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31301echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31302 # The eval makes quoting arguments work.
31303 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031304 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31305 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000031306echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31307 { (exit 1); exit 1; }; }
31308 fi
31309
31310 cd $ac_popdir
31311 done
31312fi
31313
Brian Gaekef3b24102003-11-16 18:38:14 +000031314
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031315if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31316 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031317echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031318 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031319echo "$as_me: WARNING: ***** appear to be working." >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031320 { echo "$as_me:$LINENO: WARNING: ***** " >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031321echo "$as_me: WARNING: ***** " >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031322 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031323echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031324 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031325echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031326 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031327echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
31328fi