blob: 82105d5a75880fd1e78167826c7892013ea656cc [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
John Criswell5690c532005-05-18 20:18:40 +00003# Generated by GNU Autoconf 2.59 for llvm 1.6cvs.
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-'
John Criswell5690c532005-05-18 20:18:40 +0000428PACKAGE_VERSION='1.6cvs'
429PACKAGE_STRING='llvm 1.6cvs'
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"
Alkis Evlogimenoseadc9ef2005-01-05 17:57:28 +0000438ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000439ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +0000440ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
John Criswell7a73b802003-06-30 21:59:07 +0000441# Factoring default headers for most tests.
442ac_includes_default="\
443#include <stdio.h>
444#if HAVE_SYS_TYPES_H
445# include <sys/types.h>
446#endif
447#if HAVE_SYS_STAT_H
448# include <sys/stat.h>
449#endif
450#if STDC_HEADERS
451# include <stdlib.h>
452# include <stddef.h>
453#else
454# if HAVE_STDLIB_H
455# include <stdlib.h>
456# endif
457#endif
458#if HAVE_STRING_H
459# if !STDC_HEADERS && HAVE_MEMORY_H
460# include <memory.h>
461# endif
462# include <string.h>
463#endif
464#if HAVE_STRINGS_H
465# include <strings.h>
466#endif
467#if HAVE_INTTYPES_H
468# include <inttypes.h>
469#else
470# if HAVE_STDINT_H
471# include <stdint.h>
472# endif
473#endif
474#if HAVE_UNISTD_H
475# include <unistd.h>
476#endif"
477
Reid Spencer945de9b2005-04-22 07:27:28 +0000478ac_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 LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000479ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000480
481# Initialize some variables set by options.
482ac_init_help=
483ac_init_version=false
484# The variables have the same names as the options, with
485# dashes changed to underlines.
486cache_file=/dev/null
487exec_prefix=NONE
488no_create=
489no_recursion=
490prefix=NONE
491program_prefix=NONE
492program_suffix=NONE
493program_transform_name=s,x,x,
494silent=
495site=
496srcdir=
497verbose=
498x_includes=NONE
499x_libraries=NONE
500
501# Installation directory options.
502# These are left unexpanded so users can "make install exec_prefix=/foo"
503# and all the variables that are supposed to be based on exec_prefix
504# by default will actually change.
505# Use braces instead of parens because sh, perl, etc. also accept them.
506bindir='${exec_prefix}/bin'
507sbindir='${exec_prefix}/sbin'
508libexecdir='${exec_prefix}/libexec'
509datadir='${prefix}/share'
510sysconfdir='${prefix}/etc'
511sharedstatedir='${prefix}/com'
512localstatedir='${prefix}/var'
513libdir='${exec_prefix}/lib'
514includedir='${prefix}/include'
515oldincludedir='/usr/include'
516infodir='${prefix}/info'
517mandir='${prefix}/man'
518
519ac_prev=
520for ac_option
521do
522 # If the previous option needs an argument, assign it.
523 if test -n "$ac_prev"; then
524 eval "$ac_prev=\$ac_option"
525 ac_prev=
526 continue
527 fi
528
529 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
530
531 # Accept the important Cygnus configure options, so we can diagnose typos.
532
533 case $ac_option in
534
535 -bindir | --bindir | --bindi | --bind | --bin | --bi)
536 ac_prev=bindir ;;
537 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
538 bindir=$ac_optarg ;;
539
540 -build | --build | --buil | --bui | --bu)
541 ac_prev=build_alias ;;
542 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
543 build_alias=$ac_optarg ;;
544
545 -cache-file | --cache-file | --cache-fil | --cache-fi \
546 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
547 ac_prev=cache_file ;;
548 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
549 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
550 cache_file=$ac_optarg ;;
551
552 --config-cache | -C)
553 cache_file=config.cache ;;
554
555 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
556 ac_prev=datadir ;;
557 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
558 | --da=*)
559 datadir=$ac_optarg ;;
560
561 -disable-* | --disable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 eval "enable_$ac_feature=no" ;;
569
570 -enable-* | --enable-*)
571 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
572 # Reject names that are not valid shell variable names.
573 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
574 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
575 { (exit 1); exit 1; }; }
576 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
577 case $ac_option in
578 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
579 *) ac_optarg=yes ;;
580 esac
581 eval "enable_$ac_feature='$ac_optarg'" ;;
582
583 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
584 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
585 | --exec | --exe | --ex)
586 ac_prev=exec_prefix ;;
587 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
588 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
589 | --exec=* | --exe=* | --ex=*)
590 exec_prefix=$ac_optarg ;;
591
592 -gas | --gas | --ga | --g)
593 # Obsolete; use --with-gas.
594 with_gas=yes ;;
595
596 -help | --help | --hel | --he | -h)
597 ac_init_help=long ;;
598 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
599 ac_init_help=recursive ;;
600 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
601 ac_init_help=short ;;
602
603 -host | --host | --hos | --ho)
604 ac_prev=host_alias ;;
605 -host=* | --host=* | --hos=* | --ho=*)
606 host_alias=$ac_optarg ;;
607
608 -includedir | --includedir | --includedi | --included | --include \
609 | --includ | --inclu | --incl | --inc)
610 ac_prev=includedir ;;
611 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
612 | --includ=* | --inclu=* | --incl=* | --inc=*)
613 includedir=$ac_optarg ;;
614
615 -infodir | --infodir | --infodi | --infod | --info | --inf)
616 ac_prev=infodir ;;
617 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
618 infodir=$ac_optarg ;;
619
620 -libdir | --libdir | --libdi | --libd)
621 ac_prev=libdir ;;
622 -libdir=* | --libdir=* | --libdi=* | --libd=*)
623 libdir=$ac_optarg ;;
624
625 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
626 | --libexe | --libex | --libe)
627 ac_prev=libexecdir ;;
628 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
629 | --libexe=* | --libex=* | --libe=*)
630 libexecdir=$ac_optarg ;;
631
632 -localstatedir | --localstatedir | --localstatedi | --localstated \
633 | --localstate | --localstat | --localsta | --localst \
634 | --locals | --local | --loca | --loc | --lo)
635 ac_prev=localstatedir ;;
636 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
637 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
638 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
639 localstatedir=$ac_optarg ;;
640
641 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
642 ac_prev=mandir ;;
643 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
644 mandir=$ac_optarg ;;
645
646 -nfp | --nfp | --nf)
647 # Obsolete; use --without-fp.
648 with_fp=no ;;
649
650 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
651 | --no-cr | --no-c | -n)
652 no_create=yes ;;
653
654 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
655 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
656 no_recursion=yes ;;
657
658 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
659 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
660 | --oldin | --oldi | --old | --ol | --o)
661 ac_prev=oldincludedir ;;
662 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
663 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
664 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
665 oldincludedir=$ac_optarg ;;
666
667 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
668 ac_prev=prefix ;;
669 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
670 prefix=$ac_optarg ;;
671
672 -program-prefix | --program-prefix | --program-prefi | --program-pref \
673 | --program-pre | --program-pr | --program-p)
674 ac_prev=program_prefix ;;
675 -program-prefix=* | --program-prefix=* | --program-prefi=* \
676 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
677 program_prefix=$ac_optarg ;;
678
679 -program-suffix | --program-suffix | --program-suffi | --program-suff \
680 | --program-suf | --program-su | --program-s)
681 ac_prev=program_suffix ;;
682 -program-suffix=* | --program-suffix=* | --program-suffi=* \
683 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
684 program_suffix=$ac_optarg ;;
685
686 -program-transform-name | --program-transform-name \
687 | --program-transform-nam | --program-transform-na \
688 | --program-transform-n | --program-transform- \
689 | --program-transform | --program-transfor \
690 | --program-transfo | --program-transf \
691 | --program-trans | --program-tran \
692 | --progr-tra | --program-tr | --program-t)
693 ac_prev=program_transform_name ;;
694 -program-transform-name=* | --program-transform-name=* \
695 | --program-transform-nam=* | --program-transform-na=* \
696 | --program-transform-n=* | --program-transform-=* \
697 | --program-transform=* | --program-transfor=* \
698 | --program-transfo=* | --program-transf=* \
699 | --program-trans=* | --program-tran=* \
700 | --progr-tra=* | --program-tr=* | --program-t=*)
701 program_transform_name=$ac_optarg ;;
702
703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
704 | -silent | --silent | --silen | --sile | --sil)
705 silent=yes ;;
706
707 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
708 ac_prev=sbindir ;;
709 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
710 | --sbi=* | --sb=*)
711 sbindir=$ac_optarg ;;
712
713 -sharedstatedir | --sharedstatedir | --sharedstatedi \
714 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
715 | --sharedst | --shareds | --shared | --share | --shar \
716 | --sha | --sh)
717 ac_prev=sharedstatedir ;;
718 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
719 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
720 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
721 | --sha=* | --sh=*)
722 sharedstatedir=$ac_optarg ;;
723
724 -site | --site | --sit)
725 ac_prev=site ;;
726 -site=* | --site=* | --sit=*)
727 site=$ac_optarg ;;
728
729 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
730 ac_prev=srcdir ;;
731 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
732 srcdir=$ac_optarg ;;
733
734 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
735 | --syscon | --sysco | --sysc | --sys | --sy)
736 ac_prev=sysconfdir ;;
737 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
738 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
739 sysconfdir=$ac_optarg ;;
740
741 -target | --target | --targe | --targ | --tar | --ta | --t)
742 ac_prev=target_alias ;;
743 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
744 target_alias=$ac_optarg ;;
745
746 -v | -verbose | --verbose | --verbos | --verbo | --verb)
747 verbose=yes ;;
748
749 -version | --version | --versio | --versi | --vers | -V)
750 ac_init_version=: ;;
751
752 -with-* | --with-*)
753 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
754 # Reject names that are not valid shell variable names.
755 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756 { echo "$as_me: error: invalid package name: $ac_package" >&2
757 { (exit 1); exit 1; }; }
758 ac_package=`echo $ac_package| sed 's/-/_/g'`
759 case $ac_option in
760 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
761 *) ac_optarg=yes ;;
762 esac
763 eval "with_$ac_package='$ac_optarg'" ;;
764
765 -without-* | --without-*)
766 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
767 # Reject names that are not valid shell variable names.
768 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
769 { echo "$as_me: error: invalid package name: $ac_package" >&2
770 { (exit 1); exit 1; }; }
771 ac_package=`echo $ac_package | sed 's/-/_/g'`
772 eval "with_$ac_package=no" ;;
773
774 --x)
775 # Obsolete; use --with-x.
776 with_x=yes ;;
777
778 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
779 | --x-incl | --x-inc | --x-in | --x-i)
780 ac_prev=x_includes ;;
781 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
782 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
783 x_includes=$ac_optarg ;;
784
785 -x-libraries | --x-libraries | --x-librarie | --x-librari \
786 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
787 ac_prev=x_libraries ;;
788 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
789 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
790 x_libraries=$ac_optarg ;;
791
792 -*) { echo "$as_me: error: unrecognized option: $ac_option
793Try \`$0 --help' for more information." >&2
794 { (exit 1); exit 1; }; }
795 ;;
796
797 *=*)
798 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
799 # Reject names that are not valid shell variable names.
800 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
801 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
802 { (exit 1); exit 1; }; }
803 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
804 eval "$ac_envvar='$ac_optarg'"
805 export $ac_envvar ;;
806
807 *)
808 # FIXME: should be removed in autoconf 3.0.
809 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
810 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
811 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
812 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
813 ;;
814
815 esac
816done
817
818if test -n "$ac_prev"; then
819 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
820 { echo "$as_me: error: missing argument to $ac_option" >&2
821 { (exit 1); exit 1; }; }
822fi
823
824# Be sure to have absolute paths.
825for ac_var in exec_prefix prefix
826do
827 eval ac_val=$`echo $ac_var`
828 case $ac_val in
829 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
832 esac
833done
834
835# Be sure to have absolute paths.
836for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000837 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000838do
839 eval ac_val=$`echo $ac_var`
840 case $ac_val in
841 [\\/$]* | ?:[\\/]* ) ;;
842 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
843 { (exit 1); exit 1; }; };;
844 esac
845done
846
847# There might be people who depend on the old broken behavior: `$host'
848# used to hold the argument of --host etc.
849# FIXME: To remove some day.
850build=$build_alias
851host=$host_alias
852target=$target_alias
853
854# FIXME: To remove some day.
855if test "x$host_alias" != x; then
856 if test "x$build_alias" = x; then
857 cross_compiling=maybe
858 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
859 If a cross compiler is detected then cross compile mode will be used." >&2
860 elif test "x$build_alias" != "x$host_alias"; then
861 cross_compiling=yes
862 fi
863fi
864
865ac_tool_prefix=
866test -n "$host_alias" && ac_tool_prefix=$host_alias-
867
868test "$silent" = yes && exec 6>/dev/null
869
870
871# Find the source files, if location was not specified.
872if test -z "$srcdir"; then
873 ac_srcdir_defaulted=yes
874 # Try the directory containing this script, then its parent.
875 ac_confdir=`(dirname "$0") 2>/dev/null ||
876$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000877 X"$0" : 'X\(//\)[^/]' \| \
878 X"$0" : 'X\(//\)$' \| \
879 X"$0" : 'X\(/\)' \| \
880 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000881echo X"$0" |
882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
884 /^X\(\/\/\)$/{ s//\1/; q; }
885 /^X\(\/\).*/{ s//\1/; q; }
886 s/.*/./; q'`
887 srcdir=$ac_confdir
888 if test ! -r $srcdir/$ac_unique_file; then
889 srcdir=..
890 fi
891else
892 ac_srcdir_defaulted=no
893fi
894if test ! -r $srcdir/$ac_unique_file; then
895 if test "$ac_srcdir_defaulted" = yes; then
896 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
897 { (exit 1); exit 1; }; }
898 else
899 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
900 { (exit 1); exit 1; }; }
901 fi
902fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000903(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
904 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
905 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000906srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
907ac_env_build_alias_set=${build_alias+set}
908ac_env_build_alias_value=$build_alias
909ac_cv_env_build_alias_set=${build_alias+set}
910ac_cv_env_build_alias_value=$build_alias
911ac_env_host_alias_set=${host_alias+set}
912ac_env_host_alias_value=$host_alias
913ac_cv_env_host_alias_set=${host_alias+set}
914ac_cv_env_host_alias_value=$host_alias
915ac_env_target_alias_set=${target_alias+set}
916ac_env_target_alias_value=$target_alias
917ac_cv_env_target_alias_set=${target_alias+set}
918ac_cv_env_target_alias_value=$target_alias
John Criswell7a73b802003-06-30 21:59:07 +0000919ac_env_CC_set=${CC+set}
920ac_env_CC_value=$CC
921ac_cv_env_CC_set=${CC+set}
922ac_cv_env_CC_value=$CC
923ac_env_CFLAGS_set=${CFLAGS+set}
924ac_env_CFLAGS_value=$CFLAGS
925ac_cv_env_CFLAGS_set=${CFLAGS+set}
926ac_cv_env_CFLAGS_value=$CFLAGS
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000927ac_env_LDFLAGS_set=${LDFLAGS+set}
928ac_env_LDFLAGS_value=$LDFLAGS
929ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
930ac_cv_env_LDFLAGS_value=$LDFLAGS
931ac_env_CPPFLAGS_set=${CPPFLAGS+set}
932ac_env_CPPFLAGS_value=$CPPFLAGS
933ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
934ac_cv_env_CPPFLAGS_value=$CPPFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000935ac_env_CPP_set=${CPP+set}
936ac_env_CPP_value=$CPP
937ac_cv_env_CPP_set=${CPP+set}
938ac_cv_env_CPP_value=$CPP
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000939ac_env_CXX_set=${CXX+set}
940ac_env_CXX_value=$CXX
941ac_cv_env_CXX_set=${CXX+set}
942ac_cv_env_CXX_value=$CXX
943ac_env_CXXFLAGS_set=${CXXFLAGS+set}
944ac_env_CXXFLAGS_value=$CXXFLAGS
945ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
946ac_cv_env_CXXFLAGS_value=$CXXFLAGS
John Criswell47fdd832003-07-14 16:52:07 +0000947ac_env_CXXCPP_set=${CXXCPP+set}
948ac_env_CXXCPP_value=$CXXCPP
949ac_cv_env_CXXCPP_set=${CXXCPP+set}
950ac_cv_env_CXXCPP_value=$CXXCPP
951ac_env_F77_set=${F77+set}
952ac_env_F77_value=$F77
953ac_cv_env_F77_set=${F77+set}
954ac_cv_env_F77_value=$F77
955ac_env_FFLAGS_set=${FFLAGS+set}
956ac_env_FFLAGS_value=$FFLAGS
957ac_cv_env_FFLAGS_set=${FFLAGS+set}
958ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000959
960#
961# Report the --help message.
962#
963if test "$ac_init_help" = "long"; then
964 # Omit some internal or obsolete options to make the list less imposing.
965 # This message is too long to be a string in the A/UX 3.1 sh.
966 cat <<_ACEOF
John Criswell5690c532005-05-18 20:18:40 +0000967\`configure' configures llvm 1.6cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000968
969Usage: $0 [OPTION]... [VAR=VALUE]...
970
971To assign environment variables (e.g., CC, CFLAGS...), specify them as
972VAR=VALUE. See below for descriptions of some of the useful variables.
973
974Defaults for the options are specified in brackets.
975
976Configuration:
977 -h, --help display this help and exit
978 --help=short display options specific to this package
979 --help=recursive display the short help of all the included packages
980 -V, --version display version information and exit
981 -q, --quiet, --silent do not print \`checking...' messages
982 --cache-file=FILE cache test results in FILE [disabled]
983 -C, --config-cache alias for \`--cache-file=config.cache'
984 -n, --no-create do not create output files
985 --srcdir=DIR find the sources in DIR [configure dir or \`..']
986
987_ACEOF
988
989 cat <<_ACEOF
990Installation directories:
991 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000992 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000993 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000994 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000995
996By default, \`make install' will install all the files in
997\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
998an installation prefix other than \`$ac_default_prefix' using \`--prefix',
999for instance \`--prefix=\$HOME'.
1000
1001For better control, use the options below.
1002
1003Fine tuning of the installation directories:
1004 --bindir=DIR user executables [EPREFIX/bin]
1005 --sbindir=DIR system admin executables [EPREFIX/sbin]
1006 --libexecdir=DIR program executables [EPREFIX/libexec]
1007 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1008 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1009 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1010 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1011 --libdir=DIR object code libraries [EPREFIX/lib]
1012 --includedir=DIR C header files [PREFIX/include]
1013 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1014 --infodir=DIR info documentation [PREFIX/info]
1015 --mandir=DIR man documentation [PREFIX/man]
1016_ACEOF
1017
1018 cat <<\_ACEOF
1019
1020System types:
1021 --build=BUILD configure for building on BUILD [guessed]
1022 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1023 --target=TARGET configure for building compilers for TARGET [HOST]
1024_ACEOF
1025fi
1026
1027if test -n "$ac_init_help"; then
1028 case $ac_init_help in
John Criswell5690c532005-05-18 20:18:40 +00001029 short | recursive ) echo "Configuration of llvm 1.6cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001030 esac
1031 cat <<\_ACEOF
1032
1033Optional Features:
1034 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1035 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001036 --enable-optimized
1037 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001038 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001039 --enable-target Build specific host targets:
1040 all,host-only,{target-name} (default=all)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001041 --enable-ltdl-install install libltdl
John Criswell47fdd832003-07-14 16:52:07 +00001042 --enable-shared[=PKGS]
1043 build shared libraries [default=yes]
1044 --enable-static[=PKGS]
1045 build static libraries [default=yes]
1046 --enable-fast-install[=PKGS]
1047 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001048 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001049
1050Optional Packages:
1051 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1052 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001053 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1054 searches PATH)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001055 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001056 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1057 --with-pic try to use only PIC/non-PIC objects [default=use
1058 both]
1059 --with-tags[=TAGS]
1060 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001061
1062Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001063 CC C compiler command
1064 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001065 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1066 nonstandard directory <lib dir>
1067 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1068 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001069 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001070 CXX C++ compiler command
1071 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001072 CXXCPP C++ preprocessor
1073 F77 Fortran 77 compiler command
1074 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001075
1076Use these variables to override the choices made by `configure' or to help
1077it to find libraries and programs with nonstandard names/locations.
1078
1079Report bugs to <llvmbugs@cs.uiuc.edu>.
1080_ACEOF
1081fi
1082
1083if test "$ac_init_help" = "recursive"; then
1084 # If there are subdirs, report their specific --help.
1085 ac_popdir=`pwd`
1086 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1087 test -d $ac_dir || continue
1088 ac_builddir=.
1089
1090if test "$ac_dir" != .; then
1091 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1092 # A "../" for each directory in $ac_dir_suffix.
1093 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1094else
1095 ac_dir_suffix= ac_top_builddir=
1096fi
1097
1098case $srcdir in
1099 .) # No --srcdir option. We are building in place.
1100 ac_srcdir=.
1101 if test -z "$ac_top_builddir"; then
1102 ac_top_srcdir=.
1103 else
1104 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1105 fi ;;
1106 [\\/]* | ?:[\\/]* ) # Absolute path.
1107 ac_srcdir=$srcdir$ac_dir_suffix;
1108 ac_top_srcdir=$srcdir ;;
1109 *) # Relative path.
1110 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1111 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1112esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001113
1114# Do not use `cd foo && pwd` to compute absolute paths, because
1115# the directories may not exist.
1116case `pwd` in
1117.) ac_abs_builddir="$ac_dir";;
1118*)
1119 case "$ac_dir" in
1120 .) ac_abs_builddir=`pwd`;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1122 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1123 esac;;
1124esac
1125case $ac_abs_builddir in
1126.) ac_abs_top_builddir=${ac_top_builddir}.;;
1127*)
1128 case ${ac_top_builddir}. in
1129 .) ac_abs_top_builddir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1131 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1132 esac;;
1133esac
1134case $ac_abs_builddir in
1135.) ac_abs_srcdir=$ac_srcdir;;
1136*)
1137 case $ac_srcdir in
1138 .) ac_abs_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1140 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1141 esac;;
1142esac
1143case $ac_abs_builddir in
1144.) ac_abs_top_srcdir=$ac_top_srcdir;;
1145*)
1146 case $ac_top_srcdir in
1147 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1148 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1149 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1150 esac;;
1151esac
John Criswell7a73b802003-06-30 21:59:07 +00001152
1153 cd $ac_dir
1154 # Check for guested configure; otherwise get Cygnus style configure.
1155 if test -f $ac_srcdir/configure.gnu; then
1156 echo
1157 $SHELL $ac_srcdir/configure.gnu --help=recursive
1158 elif test -f $ac_srcdir/configure; then
1159 echo
1160 $SHELL $ac_srcdir/configure --help=recursive
1161 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001162 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001163 echo
1164 $ac_configure --help
1165 else
1166 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1167 fi
1168 cd $ac_popdir
1169 done
1170fi
1171
1172test -n "$ac_init_help" && exit 0
1173if $ac_init_version; then
1174 cat <<\_ACEOF
John Criswell5690c532005-05-18 20:18:40 +00001175llvm configure 1.6cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +00001176generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001177
Reid Spencer2706f8c2004-09-19 23:53:36 +00001178Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001179This configure script is free software; the Free Software Foundation
1180gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001181
1182$LLVM_COPYRIGHT
John Criswell7a73b802003-06-30 21:59:07 +00001183_ACEOF
1184 exit 0
1185fi
1186exec 5>config.log
1187cat >&5 <<_ACEOF
1188This file contains any messages produced by compilers while
1189running configure, to aid debugging if configure makes a mistake.
1190
John Criswell5690c532005-05-18 20:18:40 +00001191It was created by llvm $as_me 1.6cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001192generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001193
1194 $ $0 $@
1195
1196_ACEOF
1197{
1198cat <<_ASUNAME
1199## --------- ##
1200## Platform. ##
1201## --------- ##
1202
1203hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1204uname -m = `(uname -m) 2>/dev/null || echo unknown`
1205uname -r = `(uname -r) 2>/dev/null || echo unknown`
1206uname -s = `(uname -s) 2>/dev/null || echo unknown`
1207uname -v = `(uname -v) 2>/dev/null || echo unknown`
1208
1209/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1210/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1211
1212/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1213/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1214/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1215hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1216/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1217/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1218/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1219
1220_ASUNAME
1221
1222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1223for as_dir in $PATH
1224do
1225 IFS=$as_save_IFS
1226 test -z "$as_dir" && as_dir=.
1227 echo "PATH: $as_dir"
1228done
1229
1230} >&5
1231
1232cat >&5 <<_ACEOF
1233
1234
1235## ----------- ##
1236## Core tests. ##
1237## ----------- ##
1238
1239_ACEOF
1240
1241
1242# Keep a trace of the command line.
1243# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001244# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001245# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001246# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001247ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001248ac_configure_args0=
1249ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001250ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001251ac_must_keep_next=false
1252for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001253do
John Criswell0c38eaf2003-09-10 15:17:25 +00001254 for ac_arg
1255 do
1256 case $ac_arg in
1257 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1259 | -silent | --silent | --silen | --sile | --sil)
1260 continue ;;
1261 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1262 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1263 esac
1264 case $ac_pass in
1265 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1266 2)
1267 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1268 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001269 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001270 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001271 case $ac_arg in
1272 *=* | --config-cache | -C | -disable-* | --disable-* \
1273 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1274 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1275 | -with-* | --with-* | -without-* | --without-* | --x)
1276 case "$ac_configure_args0 " in
1277 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1278 esac
1279 ;;
1280 -* ) ac_must_keep_next=true ;;
1281 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001282 fi
1283 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1284 # Get rid of the leading space.
1285 ac_sep=" "
1286 ;;
1287 esac
1288 done
John Criswell7a73b802003-06-30 21:59:07 +00001289done
John Criswell0c38eaf2003-09-10 15:17:25 +00001290$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1291$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 +00001292
1293# When interrupted or exit'd, cleanup temporary files, and complete
1294# config.log. We remove comments because anyway the quotes in there
1295# would cause problems or look ugly.
1296# WARNING: Be sure not to use single quotes in there, as some shells,
1297# such as our DU 5.0 friend, will then `close' the trap.
1298trap 'exit_status=$?
1299 # Save into config.log some information that might help in debugging.
1300 {
1301 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001302
John Criswell7a73b802003-06-30 21:59:07 +00001303 cat <<\_ASBOX
1304## ---------------- ##
1305## Cache variables. ##
1306## ---------------- ##
1307_ASBOX
1308 echo
1309 # The following way of writing the cache mishandles newlines in values,
1310{
1311 (set) 2>&1 |
1312 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1313 *ac_space=\ *)
1314 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001315 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001317 ;;
1318 *)
1319 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001320 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001321 ;;
1322 esac;
1323}
1324 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001325
1326 cat <<\_ASBOX
1327## ----------------- ##
1328## Output variables. ##
1329## ----------------- ##
1330_ASBOX
1331 echo
1332 for ac_var in $ac_subst_vars
1333 do
1334 eval ac_val=$`echo $ac_var`
1335 echo "$ac_var='"'"'$ac_val'"'"'"
1336 done | sort
1337 echo
1338
1339 if test -n "$ac_subst_files"; then
1340 cat <<\_ASBOX
1341## ------------- ##
1342## Output files. ##
1343## ------------- ##
1344_ASBOX
1345 echo
1346 for ac_var in $ac_subst_files
1347 do
1348 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001349 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001350 done | sort
1351 echo
1352 fi
1353
John Criswell7a73b802003-06-30 21:59:07 +00001354 if test -s confdefs.h; then
1355 cat <<\_ASBOX
1356## ----------- ##
1357## confdefs.h. ##
1358## ----------- ##
1359_ASBOX
1360 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001361 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001362 echo
1363 fi
1364 test "$ac_signal" != 0 &&
1365 echo "$as_me: caught signal $ac_signal"
1366 echo "$as_me: exit $exit_status"
1367 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001368 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001369 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1370 exit $exit_status
1371 ' 0
1372for ac_signal in 1 2 13 15; do
1373 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1374done
1375ac_signal=0
1376
1377# confdefs.h avoids OS command line length limits that DEFS can exceed.
1378rm -rf conftest* confdefs.h
1379# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1380echo >confdefs.h
1381
1382# Predefined preprocessor variables.
1383
1384cat >>confdefs.h <<_ACEOF
1385#define PACKAGE_NAME "$PACKAGE_NAME"
1386_ACEOF
1387
1388
1389cat >>confdefs.h <<_ACEOF
1390#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1391_ACEOF
1392
1393
1394cat >>confdefs.h <<_ACEOF
1395#define PACKAGE_VERSION "$PACKAGE_VERSION"
1396_ACEOF
1397
1398
1399cat >>confdefs.h <<_ACEOF
1400#define PACKAGE_STRING "$PACKAGE_STRING"
1401_ACEOF
1402
1403
1404cat >>confdefs.h <<_ACEOF
1405#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1406_ACEOF
1407
1408
1409# Let the site file select an alternate cache file if it wants to.
1410# Prefer explicitly selected file to automatically selected ones.
1411if test -z "$CONFIG_SITE"; then
1412 if test "x$prefix" != xNONE; then
1413 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1414 else
1415 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1416 fi
1417fi
1418for ac_site_file in $CONFIG_SITE; do
1419 if test -r "$ac_site_file"; then
1420 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1421echo "$as_me: loading site script $ac_site_file" >&6;}
1422 sed 's/^/| /' "$ac_site_file" >&5
1423 . "$ac_site_file"
1424 fi
1425done
1426
1427if test -r "$cache_file"; then
1428 # Some versions of bash will fail to source /dev/null (special
1429 # files actually), so we avoid doing that.
1430 if test -f "$cache_file"; then
1431 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1432echo "$as_me: loading cache $cache_file" >&6;}
1433 case $cache_file in
1434 [\\/]* | ?:[\\/]* ) . $cache_file;;
1435 *) . ./$cache_file;;
1436 esac
1437 fi
1438else
1439 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1440echo "$as_me: creating cache $cache_file" >&6;}
1441 >$cache_file
1442fi
1443
1444# Check that the precious variables saved in the cache have kept the same
1445# value.
1446ac_cache_corrupted=false
1447for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001448 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001449 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1450 eval ac_new_set=\$ac_env_${ac_var}_set
1451 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1452 eval ac_new_val="\$ac_env_${ac_var}_value"
1453 case $ac_old_set,$ac_new_set in
1454 set,)
1455 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1456echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1457 ac_cache_corrupted=: ;;
1458 ,set)
1459 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1460echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1461 ac_cache_corrupted=: ;;
1462 ,);;
1463 *)
1464 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001465 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001466echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001467 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001468echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001469 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001470echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001471 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001472 fi;;
1473 esac
1474 # Pass precious variables to config.status.
1475 if test "$ac_new_set" = set; then
1476 case $ac_new_val in
1477 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1478 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1479 *) ac_arg=$ac_var=$ac_new_val ;;
1480 esac
1481 case " $ac_configure_args " in
1482 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1483 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1484 esac
1485 fi
1486done
1487if $ac_cache_corrupted; then
1488 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1489echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1490 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1491echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1492 { (exit 1); exit 1; }; }
1493fi
1494
1495ac_ext=c
1496ac_cpp='$CPP $CPPFLAGS'
1497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1499ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1525
1526
John Criswell0c38eaf2003-09-10 15:17:25 +00001527
Misha Brukman19098e52005-05-12 22:15:34 +00001528LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001529
1530
1531
1532
1533
1534
1535
John Criswell7a73b802003-06-30 21:59:07 +00001536ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001537for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001538 if test -f $ac_dir/install-sh; then
1539 ac_aux_dir=$ac_dir
1540 ac_install_sh="$ac_aux_dir/install-sh -c"
1541 break
1542 elif test -f $ac_dir/install.sh; then
1543 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/install.sh -c"
1545 break
1546 elif test -f $ac_dir/shtool; then
1547 ac_aux_dir=$ac_dir
1548 ac_install_sh="$ac_aux_dir/shtool install -c"
1549 break
1550 fi
1551done
1552if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001553 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1554echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001555 { (exit 1); exit 1; }; }
1556fi
1557ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1558ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1559ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1560
John Criswell392aaa32003-07-22 19:18:09 +00001561
Reid Spencer2706f8c2004-09-19 23:53:36 +00001562if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001563 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1564 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001565echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1566 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001567 fi
John Criswell93e1c722003-09-15 17:04:06 +00001568fi
1569
John Criswell33a911a2003-11-25 20:36:46 +00001570for i in `ls ${srcdir}/projects`
1571do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001572 if test -d ${srcdir}/projects/${i} ; then
1573 case ${i} in
1574 "CVS") ;;
1575 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001576
Reid Spencer4d68ba22004-09-07 16:35:45 +00001577subdirs="$subdirs projects/sample"
1578 ;;
1579 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001580
Reid Spencer4d68ba22004-09-07 16:35:45 +00001581subdirs="$subdirs projects/Stacker"
1582 ;;
1583 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001584
Reid Spencer4d68ba22004-09-07 16:35:45 +00001585subdirs="$subdirs projects/llvm-test"
1586 ;;
1587 "llvm-reopt")
1588
1589subdirs="$subdirs projects/llvm-reopt"
1590;;
1591 "llvm-gcc")
1592
1593subdirs="$subdirs projects/llvm-gcc"
1594 ;;
Alkis Evlogimenos7bd1ede2005-01-16 09:44:58 +00001595 "llvm-java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001596
Alkis Evlogimenosae192d32005-01-14 07:52:28 +00001597subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001598 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001599 "llvm-tv")
1600
1601subdirs="$subdirs projects/llvm-tv"
1602 ;;
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001603 "llvm-poolalloc")
John Criswelle96aa1c2004-10-28 13:35:00 +00001604
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001605subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00001606 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001607 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001608 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1609echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001610 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001611 esac
John Criswell33a911a2003-11-25 20:36:46 +00001612 fi
1613done
John Criswell559a6c12003-09-30 16:31:48 +00001614
John Criswell7a73b802003-06-30 21:59:07 +00001615
1616# Make sure we can run config.sub.
1617$ac_config_sub sun4 >/dev/null 2>&1 ||
1618 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1619echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1620 { (exit 1); exit 1; }; }
1621
1622echo "$as_me:$LINENO: checking build system type" >&5
1623echo $ECHO_N "checking build system type... $ECHO_C" >&6
1624if test "${ac_cv_build+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626else
1627 ac_cv_build_alias=$build_alias
1628test -z "$ac_cv_build_alias" &&
1629 ac_cv_build_alias=`$ac_config_guess`
1630test -z "$ac_cv_build_alias" &&
1631 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1632echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1633 { (exit 1); exit 1; }; }
1634ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1635 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1636echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1637 { (exit 1); exit 1; }; }
1638
1639fi
1640echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1641echo "${ECHO_T}$ac_cv_build" >&6
1642build=$ac_cv_build
1643build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1646
1647
1648echo "$as_me:$LINENO: checking host system type" >&5
1649echo $ECHO_N "checking host system type... $ECHO_C" >&6
1650if test "${ac_cv_host+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1652else
1653 ac_cv_host_alias=$host_alias
1654test -z "$ac_cv_host_alias" &&
1655 ac_cv_host_alias=$ac_cv_build_alias
1656ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1657 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1658echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1659 { (exit 1); exit 1; }; }
1660
1661fi
1662echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1663echo "${ECHO_T}$ac_cv_host" >&6
1664host=$ac_cv_host
1665host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1666host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1667host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1668
1669
1670echo "$as_me:$LINENO: checking target system type" >&5
1671echo $ECHO_N "checking target system type... $ECHO_C" >&6
1672if test "${ac_cv_target+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1674else
1675 ac_cv_target_alias=$target_alias
1676test "x$ac_cv_target_alias" = "x" &&
1677 ac_cv_target_alias=$ac_cv_host_alias
1678ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1679 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1680echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1681 { (exit 1); exit 1; }; }
1682
1683fi
1684echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1685echo "${ECHO_T}$ac_cv_target" >&6
1686target=$ac_cv_target
1687target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1688target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1689target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1690
1691
1692# The aliases save the names the user supplied, while $host etc.
1693# will get canonicalized.
1694test -n "$target_alias" &&
1695 test "$program_prefix$program_suffix$program_transform_name" = \
1696 NONENONEs,x,x, &&
1697 program_prefix=${target_alias}-
1698
Reid Spencer7b3e8512004-12-24 06:29:05 +00001699echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1700echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1701if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001702 echo $ECHO_N "(cached) $ECHO_C" >&6
1703else
1704 case $build in
Reid Spencer7b3e8512004-12-24 06:29:05 +00001705 *-*-aix*)
1706 llvm_cv_os_type="AIX"
1707 llvm_cv_platform_type="Unix" ;;
1708 *-*-cygwin*)
1709 llvm_cv_os_type="Cygwin"
1710 llvm_cv_platform_type="Unix" ;;
1711 *-*-darwin*)
1712 llvm_cv_os_type="Darwin"
1713 llvm_cv_platform_type="Unix" ;;
1714 *-*-freebsd*)
1715 llvm_cv_os_type="FreeBSD"
1716 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00001717 *-*-hpux*)
1718 llvm_cv_os_type="HP-UX"
1719 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00001720 *-*-interix*)
1721 llvm_cv_os_type="Interix"
1722 llvm_cv_platform_type="Unix" ;;
1723 *-*-linux*)
1724 llvm_cv_os_type="Linux"
1725 llvm_cv_platform_type="Unix" ;;
1726 *-*-solaris*)
1727 llvm_cv_os_type="SunOS"
1728 llvm_cv_platform_type="Unix" ;;
1729 *-*-win32*)
1730 llvm_cv_os_type="Win32"
1731 llvm_cv_platform_type="Win32" ;;
1732 *-*-mingw*)
1733 llvm_cv_os_type="MingW"
1734 llvm_cv_platform_type="Win32" ;;
1735 *)
1736 llvm_cv_os_type="Unknown"
1737 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001738esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001739fi
Reid Spencer7b3e8512004-12-24 06:29:05 +00001740echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1741echo "${ECHO_T}$llvm_cv_os_type" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001742
Reid Spencer7b3e8512004-12-24 06:29:05 +00001743if test "$llvm_cv_os_type" = "Unknown" ; then
1744 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1745echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00001746 { (exit 1); exit 1; }; }
1747fi
1748
Reid Spencer7b3e8512004-12-24 06:29:05 +00001749OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001750
1751
Reid Spencer7b3e8512004-12-24 06:29:05 +00001752case $llvm_cv_platform_type in
1753 Unix)
1754
1755cat >>confdefs.h <<\_ACEOF
1756#define LLVM_ON_UNIX 1
1757_ACEOF
1758
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001759 LLVM_ON_UNIX=1
1760
1761 LLVM_ON_WIN32=0
1762
Reid Spencer7b3e8512004-12-24 06:29:05 +00001763 ;;
1764 Win32)
1765
1766cat >>confdefs.h <<\_ACEOF
1767#define LLVM_ON_WIN32 1
1768_ACEOF
1769
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001770 LLVM_ON_UNIX=0
1771
1772 LLVM_ON_WIN32=1
1773
Reid Spencer7b3e8512004-12-24 06:29:05 +00001774 ;;
1775esac
1776
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001777case $target in
1778 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1779
1780 ;;
1781esac
Reid Spencer73fb5482004-08-31 14:20:36 +00001782
1783echo "$as_me:$LINENO: checking target architecture" >&5
1784echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001785if test "${llvm_cv_target_arch+set}" = set; then
1786 echo $ECHO_N "(cached) $ECHO_C" >&6
1787else
1788 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00001789 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00001790 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001791 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1792 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00001793 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00001794 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001795 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001796esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001797fi
1798echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1799echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001800
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001801if test "$llvm_cv_target_arch" = "Unknown" ; then
1802 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1803echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1804fi
John Criswell76595452003-07-01 22:07:39 +00001805
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001806ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001807
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001808
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001809ac_ext=c
1810ac_cpp='$CPP $CPPFLAGS'
1811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1813ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001814if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001815 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1816set dummy ${ac_tool_prefix}gcc; ac_word=$2
1817echo "$as_me:$LINENO: checking for $ac_word" >&5
1818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819if test "${ac_cv_prog_CC+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1821else
1822 if test -n "$CC"; then
1823 ac_cv_prog_CC="$CC" # Let the user override the test.
1824else
1825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826for as_dir in $PATH
1827do
1828 IFS=$as_save_IFS
1829 test -z "$as_dir" && as_dir=.
1830 for ac_exec_ext in '' $ac_executable_extensions; do
1831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 break 2
1835 fi
1836done
1837done
1838
1839fi
1840fi
1841CC=$ac_cv_prog_CC
1842if test -n "$CC"; then
1843 echo "$as_me:$LINENO: result: $CC" >&5
1844echo "${ECHO_T}$CC" >&6
1845else
1846 echo "$as_me:$LINENO: result: no" >&5
1847echo "${ECHO_T}no" >&6
1848fi
1849
1850fi
1851if test -z "$ac_cv_prog_CC"; then
1852 ac_ct_CC=$CC
1853 # Extract the first word of "gcc", so it can be a program name with args.
1854set dummy gcc; ac_word=$2
1855echo "$as_me:$LINENO: checking for $ac_word" >&5
1856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1859else
1860 if test -n "$ac_ct_CC"; then
1861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1862else
1863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864for as_dir in $PATH
1865do
1866 IFS=$as_save_IFS
1867 test -z "$as_dir" && as_dir=.
1868 for ac_exec_ext in '' $ac_executable_extensions; do
1869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870 ac_cv_prog_ac_ct_CC="gcc"
1871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1872 break 2
1873 fi
1874done
1875done
1876
1877fi
1878fi
1879ac_ct_CC=$ac_cv_prog_ac_ct_CC
1880if test -n "$ac_ct_CC"; then
1881 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1882echo "${ECHO_T}$ac_ct_CC" >&6
1883else
1884 echo "$as_me:$LINENO: result: no" >&5
1885echo "${ECHO_T}no" >&6
1886fi
1887
1888 CC=$ac_ct_CC
1889else
1890 CC="$ac_cv_prog_CC"
1891fi
1892
1893if test -z "$CC"; then
1894 if test -n "$ac_tool_prefix"; then
1895 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1896set dummy ${ac_tool_prefix}cc; ac_word=$2
1897echo "$as_me:$LINENO: checking for $ac_word" >&5
1898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899if test "${ac_cv_prog_CC+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1901else
1902 if test -n "$CC"; then
1903 ac_cv_prog_CC="$CC" # Let the user override the test.
1904else
1905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906for as_dir in $PATH
1907do
1908 IFS=$as_save_IFS
1909 test -z "$as_dir" && as_dir=.
1910 for ac_exec_ext in '' $ac_executable_extensions; do
1911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912 ac_cv_prog_CC="${ac_tool_prefix}cc"
1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914 break 2
1915 fi
1916done
1917done
1918
1919fi
1920fi
1921CC=$ac_cv_prog_CC
1922if test -n "$CC"; then
1923 echo "$as_me:$LINENO: result: $CC" >&5
1924echo "${ECHO_T}$CC" >&6
1925else
1926 echo "$as_me:$LINENO: result: no" >&5
1927echo "${ECHO_T}no" >&6
1928fi
1929
1930fi
1931if test -z "$ac_cv_prog_CC"; then
1932 ac_ct_CC=$CC
1933 # Extract the first word of "cc", so it can be a program name with args.
1934set dummy cc; ac_word=$2
1935echo "$as_me:$LINENO: checking for $ac_word" >&5
1936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1939else
1940 if test -n "$ac_ct_CC"; then
1941 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1942else
1943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944for as_dir in $PATH
1945do
1946 IFS=$as_save_IFS
1947 test -z "$as_dir" && as_dir=.
1948 for ac_exec_ext in '' $ac_executable_extensions; do
1949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950 ac_cv_prog_ac_ct_CC="cc"
1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952 break 2
1953 fi
1954done
1955done
1956
1957fi
1958fi
1959ac_ct_CC=$ac_cv_prog_ac_ct_CC
1960if test -n "$ac_ct_CC"; then
1961 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1962echo "${ECHO_T}$ac_ct_CC" >&6
1963else
1964 echo "$as_me:$LINENO: result: no" >&5
1965echo "${ECHO_T}no" >&6
1966fi
1967
1968 CC=$ac_ct_CC
1969else
1970 CC="$ac_cv_prog_CC"
1971fi
1972
1973fi
1974if test -z "$CC"; then
1975 # Extract the first word of "cc", so it can be a program name with args.
1976set dummy cc; ac_word=$2
1977echo "$as_me:$LINENO: checking for $ac_word" >&5
1978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979if test "${ac_cv_prog_CC+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1981else
1982 if test -n "$CC"; then
1983 ac_cv_prog_CC="$CC" # Let the user override the test.
1984else
1985 ac_prog_rejected=no
1986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987for as_dir in $PATH
1988do
1989 IFS=$as_save_IFS
1990 test -z "$as_dir" && as_dir=.
1991 for ac_exec_ext in '' $ac_executable_extensions; do
1992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1993 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1994 ac_prog_rejected=yes
1995 continue
1996 fi
1997 ac_cv_prog_CC="cc"
1998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999 break 2
2000 fi
2001done
2002done
2003
2004if test $ac_prog_rejected = yes; then
2005 # We found a bogon in the path, so make sure we never use it.
2006 set dummy $ac_cv_prog_CC
2007 shift
2008 if test $# != 0; then
2009 # We chose a different compiler from the bogus one.
2010 # However, it has the same basename, so the bogon will be chosen
2011 # first if we set CC to just the basename; use the full file name.
2012 shift
2013 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2014 fi
2015fi
2016fi
2017fi
2018CC=$ac_cv_prog_CC
2019if test -n "$CC"; then
2020 echo "$as_me:$LINENO: result: $CC" >&5
2021echo "${ECHO_T}$CC" >&6
2022else
2023 echo "$as_me:$LINENO: result: no" >&5
2024echo "${ECHO_T}no" >&6
2025fi
2026
2027fi
2028if test -z "$CC"; then
2029 if test -n "$ac_tool_prefix"; then
2030 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002031 do
2032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2033set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2034echo "$as_me:$LINENO: checking for $ac_word" >&5
2035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002036if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002037 echo $ECHO_N "(cached) $ECHO_C" >&6
2038else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002039 if test -n "$CC"; then
2040 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002041else
2042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043for as_dir in $PATH
2044do
2045 IFS=$as_save_IFS
2046 test -z "$as_dir" && as_dir=.
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002049 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051 break 2
2052 fi
2053done
2054done
2055
2056fi
2057fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002058CC=$ac_cv_prog_CC
2059if test -n "$CC"; then
2060 echo "$as_me:$LINENO: result: $CC" >&5
2061echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002062else
2063 echo "$as_me:$LINENO: result: no" >&5
2064echo "${ECHO_T}no" >&6
2065fi
2066
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002067 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002068 done
2069fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002070if test -z "$CC"; then
2071 ac_ct_CC=$CC
2072 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002073do
2074 # Extract the first word of "$ac_prog", so it can be a program name with args.
2075set dummy $ac_prog; ac_word=$2
2076echo "$as_me:$LINENO: checking for $ac_word" >&5
2077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002078if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002079 echo $ECHO_N "(cached) $ECHO_C" >&6
2080else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002081 if test -n "$ac_ct_CC"; then
2082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002083else
2084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085for as_dir in $PATH
2086do
2087 IFS=$as_save_IFS
2088 test -z "$as_dir" && as_dir=.
2089 for ac_exec_ext in '' $ac_executable_extensions; do
2090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002091 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2093 break 2
2094 fi
2095done
2096done
2097
2098fi
2099fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002100ac_ct_CC=$ac_cv_prog_ac_ct_CC
2101if test -n "$ac_ct_CC"; then
2102 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2103echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002104else
2105 echo "$as_me:$LINENO: result: no" >&5
2106echo "${ECHO_T}no" >&6
2107fi
2108
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002109 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002110done
John Criswell7a73b802003-06-30 21:59:07 +00002111
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002112 CC=$ac_ct_CC
2113fi
2114
John Criswell7a73b802003-06-30 21:59:07 +00002115fi
2116
2117
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002118test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2119See \`config.log' for more details." >&5
2120echo "$as_me: error: no acceptable C compiler found in \$PATH
2121See \`config.log' for more details." >&2;}
2122 { (exit 1); exit 1; }; }
2123
John Criswell7a73b802003-06-30 21:59:07 +00002124# Provide some information about the compiler.
2125echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002126 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002127ac_compiler=`set X $ac_compile; echo $2`
2128{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2129 (eval $ac_compiler --version </dev/null >&5) 2>&5
2130 ac_status=$?
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }
2133{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2134 (eval $ac_compiler -v </dev/null >&5) 2>&5
2135 ac_status=$?
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }
2138{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2139 (eval $ac_compiler -V </dev/null >&5) 2>&5
2140 ac_status=$?
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
2143
2144cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002145/* confdefs.h. */
2146_ACEOF
2147cat confdefs.h >>conftest.$ac_ext
2148cat >>conftest.$ac_ext <<_ACEOF
2149/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002150
John Criswell7a73b802003-06-30 21:59:07 +00002151int
2152main ()
2153{
2154
2155 ;
2156 return 0;
2157}
2158_ACEOF
2159ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002160ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002161# Try to create an executable without -o first, disregard a.out.
2162# It will help us diagnose broken compilers, and finding out an intuition
2163# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002164echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2165echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002166ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2167if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2168 (eval $ac_link_default) 2>&5
2169 ac_status=$?
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; then
2172 # Find the output, starting from the most likely. This scheme is
2173# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2174# resort.
2175
2176# Be careful to initialize this variable, since it used to be cached.
2177# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2178ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002179# b.out is created by i960 compilers.
2180for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2181do
2182 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002183 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002185 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002186 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002187 # This is the source file.
2188 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002189 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002190 # We found the default executable, but exeext='' is most
2191 # certainly right.
2192 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002193 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002194 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2195 # FIXME: I believe we export ac_cv_exeext for Libtool,
2196 # but it would be cool to find out if it's true. Does anybody
2197 # maintain Libtool? --akim.
2198 export ac_cv_exeext
2199 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002200 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002201 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002202 esac
2203done
2204else
2205 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002206sed 's/^/| /' conftest.$ac_ext >&5
2207
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002208{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002209See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002210echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002211See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002212 { (exit 77); exit 77; }; }
2213fi
2214
2215ac_exeext=$ac_cv_exeext
2216echo "$as_me:$LINENO: result: $ac_file" >&5
2217echo "${ECHO_T}$ac_file" >&6
2218
2219# Check the compiler produces executables we can run. If not, either
2220# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002221echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2222echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002223# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2224# If not cross compiling, check that we can run a simple program.
2225if test "$cross_compiling" != yes; then
2226 if { ac_try='./$ac_file'
2227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 (eval $ac_try) 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; }; then
2232 cross_compiling=no
2233 else
2234 if test "$cross_compiling" = maybe; then
2235 cross_compiling=yes
2236 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002237 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002238If you meant to cross compile, use \`--host'.
2239See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002240echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002241If you meant to cross compile, use \`--host'.
2242See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002243 { (exit 1); exit 1; }; }
2244 fi
2245 fi
2246fi
2247echo "$as_me:$LINENO: result: yes" >&5
2248echo "${ECHO_T}yes" >&6
2249
John Criswell0c38eaf2003-09-10 15:17:25 +00002250rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002251ac_clean_files=$ac_clean_files_save
2252# Check the compiler produces executables we can run. If not, either
2253# the compiler is broken, or we cross compile.
2254echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2255echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2256echo "$as_me:$LINENO: result: $cross_compiling" >&5
2257echo "${ECHO_T}$cross_compiling" >&6
2258
2259echo "$as_me:$LINENO: checking for suffix of executables" >&5
2260echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2262 (eval $ac_link) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; then
2266 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2267# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2268# work properly (i.e., refer to `conftest.exe'), while it won't with
2269# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002270for ac_file in conftest.exe conftest conftest.*; do
2271 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002272 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002274 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002275 export ac_cv_exeext
2276 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002277 * ) break;;
2278 esac
2279done
2280else
John Criswell0c38eaf2003-09-10 15:17:25 +00002281 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2282See \`config.log' for more details." >&5
2283echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2284See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002285 { (exit 1); exit 1; }; }
2286fi
2287
2288rm -f conftest$ac_cv_exeext
2289echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2290echo "${ECHO_T}$ac_cv_exeext" >&6
2291
2292rm -f conftest.$ac_ext
2293EXEEXT=$ac_cv_exeext
2294ac_exeext=$EXEEXT
2295echo "$as_me:$LINENO: checking for suffix of object files" >&5
2296echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2297if test "${ac_cv_objext+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2299else
2300 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002301/* confdefs.h. */
2302_ACEOF
2303cat confdefs.h >>conftest.$ac_ext
2304cat >>conftest.$ac_ext <<_ACEOF
2305/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002306
John Criswell7a73b802003-06-30 21:59:07 +00002307int
2308main ()
2309{
2310
2311 ;
2312 return 0;
2313}
2314_ACEOF
2315rm -f conftest.o conftest.obj
2316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317 (eval $ac_compile) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; then
2321 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2322 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002324 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2325 break;;
2326 esac
2327done
2328else
2329 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002330sed 's/^/| /' conftest.$ac_ext >&5
2331
2332{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2333See \`config.log' for more details." >&5
2334echo "$as_me: error: cannot compute suffix of object files: cannot compile
2335See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002336 { (exit 1); exit 1; }; }
2337fi
2338
2339rm -f conftest.$ac_cv_objext conftest.$ac_ext
2340fi
2341echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2342echo "${ECHO_T}$ac_cv_objext" >&6
2343OBJEXT=$ac_cv_objext
2344ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002345echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2346echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2347if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002348 echo $ECHO_N "(cached) $ECHO_C" >&6
2349else
2350 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002351/* confdefs.h. */
2352_ACEOF
2353cat confdefs.h >>conftest.$ac_ext
2354cat >>conftest.$ac_ext <<_ACEOF
2355/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002356
John Criswell7a73b802003-06-30 21:59:07 +00002357int
2358main ()
2359{
2360#ifndef __GNUC__
2361 choke me
2362#endif
2363
2364 ;
2365 return 0;
2366}
2367_ACEOF
2368rm -f conftest.$ac_objext
2369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002370 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002371 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002372 grep -v '^ *+' conftest.er1 >conftest.err
2373 rm -f conftest.er1
2374 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002377 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002378 || test ! -s conftest.err'
2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380 (eval $ac_try) 2>&5
2381 ac_status=$?
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; } &&
2384 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386 (eval $ac_try) 2>&5
2387 ac_status=$?
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; }; then
2390 ac_compiler_gnu=yes
2391else
2392 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002393sed 's/^/| /' conftest.$ac_ext >&5
2394
John Criswell7a73b802003-06-30 21:59:07 +00002395ac_compiler_gnu=no
2396fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002398ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002399
2400fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002401echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2402echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2403GCC=`test $ac_compiler_gnu = yes && echo yes`
2404ac_test_CFLAGS=${CFLAGS+set}
2405ac_save_CFLAGS=$CFLAGS
2406CFLAGS="-g"
2407echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2408echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2409if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002410 echo $ECHO_N "(cached) $ECHO_C" >&6
2411else
2412 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002413/* confdefs.h. */
2414_ACEOF
2415cat confdefs.h >>conftest.$ac_ext
2416cat >>conftest.$ac_ext <<_ACEOF
2417/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002418
John Criswell7a73b802003-06-30 21:59:07 +00002419int
2420main ()
2421{
2422
2423 ;
2424 return 0;
2425}
2426_ACEOF
2427rm -f conftest.$ac_objext
2428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002429 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002430 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002431 grep -v '^ *+' conftest.er1 >conftest.err
2432 rm -f conftest.er1
2433 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002436 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002437 || test ! -s conftest.err'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 (eval $ac_try) 2>&5
2440 ac_status=$?
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; } &&
2443 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445 (eval $ac_try) 2>&5
2446 ac_status=$?
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002449 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002450else
2451 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002452sed 's/^/| /' conftest.$ac_ext >&5
2453
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002454ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002455fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002457fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002458echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2459echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2460if test "$ac_test_CFLAGS" = set; then
2461 CFLAGS=$ac_save_CFLAGS
2462elif test $ac_cv_prog_cc_g = yes; then
2463 if test "$GCC" = yes; then
2464 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002465 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002466 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002467 fi
2468else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002469 if test "$GCC" = yes; then
2470 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002471 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002472 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002473 fi
2474fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002475echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2476echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2477if test "${ac_cv_prog_cc_stdc+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2479else
2480 ac_cv_prog_cc_stdc=no
2481ac_save_CC=$CC
2482cat >conftest.$ac_ext <<_ACEOF
2483/* confdefs.h. */
2484_ACEOF
2485cat confdefs.h >>conftest.$ac_ext
2486cat >>conftest.$ac_ext <<_ACEOF
2487/* end confdefs.h. */
2488#include <stdarg.h>
2489#include <stdio.h>
2490#include <sys/types.h>
2491#include <sys/stat.h>
2492/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2493struct buf { int x; };
2494FILE * (*rcsopen) (struct buf *, struct stat *, int);
2495static char *e (p, i)
2496 char **p;
2497 int i;
2498{
2499 return p[i];
2500}
2501static char *f (char * (*g) (char **, int), char **p, ...)
2502{
2503 char *s;
2504 va_list v;
2505 va_start (v,p);
2506 s = g (p, va_arg (v,int));
2507 va_end (v);
2508 return s;
2509}
2510
2511/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2512 function prototypes and stuff, but not '\xHH' hex character constants.
2513 These don't provoke an error unfortunately, instead are silently treated
2514 as 'x'. The following induces an error, until -std1 is added to get
2515 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2516 array size at least. It's necessary to write '\x00'==0 to get something
2517 that's true only with -std1. */
2518int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2519
2520int test (int i, double x);
2521struct s1 {int (*f) (int a);};
2522struct s2 {int (*f) (double a);};
2523int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2524int argc;
2525char **argv;
2526int
2527main ()
2528{
2529return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2530 ;
2531 return 0;
2532}
2533_ACEOF
2534# Don't try gcc -ansi; that turns off useful extensions and
2535# breaks some systems' header files.
2536# AIX -qlanglvl=ansi
2537# Ultrix and OSF/1 -std1
2538# HP-UX 10.20 and later -Ae
2539# HP-UX older versions -Aa -D_HPUX_SOURCE
2540# SVR4 -Xc -D__EXTENSIONS__
2541for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2542do
2543 CC="$ac_save_CC $ac_arg"
2544 rm -f conftest.$ac_objext
2545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546 (eval $ac_compile) 2>conftest.er1
2547 ac_status=$?
2548 grep -v '^ *+' conftest.er1 >conftest.err
2549 rm -f conftest.er1
2550 cat conftest.err >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try='test -z "$ac_c_werror_flag"
2554 || test ! -s conftest.err'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 (eval $ac_try) 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; } &&
2560 { ac_try='test -s conftest.$ac_objext'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 (eval $ac_try) 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2566 ac_cv_prog_cc_stdc=$ac_arg
2567break
2568else
2569 echo "$as_me: failed program was:" >&5
2570sed 's/^/| /' conftest.$ac_ext >&5
2571
2572fi
2573rm -f conftest.err conftest.$ac_objext
2574done
2575rm -f conftest.$ac_ext conftest.$ac_objext
2576CC=$ac_save_CC
2577
2578fi
2579
2580case "x$ac_cv_prog_cc_stdc" in
2581 x|xno)
2582 echo "$as_me:$LINENO: result: none needed" >&5
2583echo "${ECHO_T}none needed" >&6 ;;
2584 *)
2585 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2586echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2587 CC="$CC $ac_cv_prog_cc_stdc" ;;
2588esac
2589
2590# Some people use a C++ compiler to compile C. Since we use `exit',
2591# in C++ we need to declare it. In case someone uses the same compiler
2592# for both compiling C and C++ we need to have the C++ compiler decide
2593# the declaration of exit, since it's the most demanding environment.
2594cat >conftest.$ac_ext <<_ACEOF
2595#ifndef __cplusplus
2596 choke me
2597#endif
2598_ACEOF
2599rm -f conftest.$ac_objext
2600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>conftest.er1
2602 ac_status=$?
2603 grep -v '^ *+' conftest.er1 >conftest.err
2604 rm -f conftest.er1
2605 cat conftest.err >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try='test -z "$ac_c_werror_flag"
2609 || 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'
2616 { (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 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002622 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002623 'extern "C" void std::exit (int) throw (); using std::exit;' \
2624 'extern "C" void std::exit (int); using std::exit;' \
2625 'extern "C" void exit (int) throw ();' \
2626 'extern "C" void exit (int);' \
2627 'void exit (int);'
2628do
2629 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. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002635$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002636#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002637int
2638main ()
2639{
2640exit (42);
2641 ;
2642 return 0;
2643}
2644_ACEOF
2645rm -f conftest.$ac_objext
2646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002647 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002648 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002649 grep -v '^ *+' conftest.er1 >conftest.err
2650 rm -f conftest.er1
2651 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002654 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002655 || test ! -s conftest.err'
2656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 (eval $ac_try) 2>&5
2658 ac_status=$?
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; } &&
2661 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 (eval $ac_try) 2>&5
2664 ac_status=$?
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; }; then
2667 :
2668else
2669 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002670sed 's/^/| /' conftest.$ac_ext >&5
2671
John Criswell7a73b802003-06-30 21:59:07 +00002672continue
2673fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002675 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002676/* confdefs.h. */
2677_ACEOF
2678cat confdefs.h >>conftest.$ac_ext
2679cat >>conftest.$ac_ext <<_ACEOF
2680/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002681$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002682int
2683main ()
2684{
2685exit (42);
2686 ;
2687 return 0;
2688}
2689_ACEOF
2690rm -f conftest.$ac_objext
2691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002692 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002693 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002694 grep -v '^ *+' conftest.er1 >conftest.err
2695 rm -f conftest.er1
2696 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002699 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002700 || test ! -s conftest.err'
2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702 (eval $ac_try) 2>&5
2703 ac_status=$?
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; } &&
2706 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 (eval $ac_try) 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; }; then
2712 break
2713else
2714 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002715sed 's/^/| /' conftest.$ac_ext >&5
2716
John Criswell7a73b802003-06-30 21:59:07 +00002717fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002719done
2720rm -f conftest*
2721if test -n "$ac_declaration"; then
2722 echo '#ifdef __cplusplus' >>confdefs.h
2723 echo $ac_declaration >>confdefs.h
2724 echo '#endif' >>confdefs.h
2725fi
2726
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002727else
2728 echo "$as_me: failed program was:" >&5
2729sed 's/^/| /' conftest.$ac_ext >&5
2730
2731fi
2732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733ac_ext=c
2734ac_cpp='$CPP $CPPFLAGS'
2735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738
2739
2740echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2741echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2742if test "${ac_cv_c_bigendian+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2744else
2745 # See if sys/param.h defines the BYTE_ORDER macro.
2746cat >conftest.$ac_ext <<_ACEOF
2747/* confdefs.h. */
2748_ACEOF
2749cat confdefs.h >>conftest.$ac_ext
2750cat >>conftest.$ac_ext <<_ACEOF
2751/* end confdefs.h. */
2752#include <sys/types.h>
2753#include <sys/param.h>
2754
2755int
2756main ()
2757{
2758#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2759 bogus endian macros
2760#endif
2761
2762 ;
2763 return 0;
2764}
2765_ACEOF
2766rm -f conftest.$ac_objext
2767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768 (eval $ac_compile) 2>conftest.er1
2769 ac_status=$?
2770 grep -v '^ *+' conftest.er1 >conftest.err
2771 rm -f conftest.er1
2772 cat conftest.err >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } &&
2775 { ac_try='test -z "$ac_c_werror_flag"
2776 || test ! -s conftest.err'
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 (eval $ac_try) 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; } &&
2782 { ac_try='test -s conftest.$ac_objext'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 (eval $ac_try) 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; }; then
2788 # It does; now see whether it defined to BIG_ENDIAN or not.
2789cat >conftest.$ac_ext <<_ACEOF
2790/* confdefs.h. */
2791_ACEOF
2792cat confdefs.h >>conftest.$ac_ext
2793cat >>conftest.$ac_ext <<_ACEOF
2794/* end confdefs.h. */
2795#include <sys/types.h>
2796#include <sys/param.h>
2797
2798int
2799main ()
2800{
2801#if BYTE_ORDER != BIG_ENDIAN
2802 not big endian
2803#endif
2804
2805 ;
2806 return 0;
2807}
2808_ACEOF
2809rm -f conftest.$ac_objext
2810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2811 (eval $ac_compile) 2>conftest.er1
2812 ac_status=$?
2813 grep -v '^ *+' conftest.er1 >conftest.err
2814 rm -f conftest.er1
2815 cat conftest.err >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } &&
2818 { ac_try='test -z "$ac_c_werror_flag"
2819 || test ! -s conftest.err'
2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821 (eval $ac_try) 2>&5
2822 ac_status=$?
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; } &&
2825 { ac_try='test -s conftest.$ac_objext'
2826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2827 (eval $ac_try) 2>&5
2828 ac_status=$?
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; }; then
2831 ac_cv_c_bigendian=yes
2832else
2833 echo "$as_me: failed program was:" >&5
2834sed 's/^/| /' conftest.$ac_ext >&5
2835
2836ac_cv_c_bigendian=no
2837fi
2838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2839else
2840 echo "$as_me: failed program was:" >&5
2841sed 's/^/| /' conftest.$ac_ext >&5
2842
2843# It does not; compile a test program.
2844if test "$cross_compiling" = yes; then
2845 # try to guess the endianness by grepping values into an object file
2846 ac_cv_c_bigendian=unknown
2847 cat >conftest.$ac_ext <<_ACEOF
2848/* confdefs.h. */
2849_ACEOF
2850cat confdefs.h >>conftest.$ac_ext
2851cat >>conftest.$ac_ext <<_ACEOF
2852/* end confdefs.h. */
2853short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2854short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2855void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2856short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2857short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2858void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2859int
2860main ()
2861{
2862 _ascii (); _ebcdic ();
2863 ;
2864 return 0;
2865}
2866_ACEOF
2867rm -f conftest.$ac_objext
2868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2869 (eval $ac_compile) 2>conftest.er1
2870 ac_status=$?
2871 grep -v '^ *+' conftest.er1 >conftest.err
2872 rm -f conftest.er1
2873 cat conftest.err >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); } &&
2876 { ac_try='test -z "$ac_c_werror_flag"
2877 || test ! -s conftest.err'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 (eval $ac_try) 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; } &&
2883 { ac_try='test -s conftest.$ac_objext'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 (eval $ac_try) 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; }; then
2889 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2890 ac_cv_c_bigendian=yes
2891fi
2892if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2893 if test "$ac_cv_c_bigendian" = unknown; then
2894 ac_cv_c_bigendian=no
2895 else
2896 # finding both strings is unlikely to happen, but who knows?
2897 ac_cv_c_bigendian=unknown
2898 fi
2899fi
2900else
2901 echo "$as_me: failed program was:" >&5
2902sed 's/^/| /' conftest.$ac_ext >&5
2903
2904fi
2905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2906else
2907 cat >conftest.$ac_ext <<_ACEOF
2908/* confdefs.h. */
2909_ACEOF
2910cat confdefs.h >>conftest.$ac_ext
2911cat >>conftest.$ac_ext <<_ACEOF
2912/* end confdefs.h. */
2913int
2914main ()
2915{
2916 /* Are we little or big endian? From Harbison&Steele. */
2917 union
2918 {
2919 long l;
2920 char c[sizeof (long)];
2921 } u;
2922 u.l = 1;
2923 exit (u.c[sizeof (long) - 1] == 1);
2924}
2925_ACEOF
2926rm -f conftest$ac_exeext
2927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2928 (eval $ac_link) 2>&5
2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933 (eval $ac_try) 2>&5
2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; }; then
2937 ac_cv_c_bigendian=no
2938else
2939 echo "$as_me: program exited with status $ac_status" >&5
2940echo "$as_me: failed program was:" >&5
2941sed 's/^/| /' conftest.$ac_ext >&5
2942
2943( exit $ac_status )
2944ac_cv_c_bigendian=yes
2945fi
2946rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2947fi
2948fi
2949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2950fi
2951echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2952echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2953case $ac_cv_c_bigendian in
2954 yes)
2955 ENDIAN=big
2956 ;;
2957 no)
2958 ENDIAN=little
2959 ;;
2960 *)
2961 { { echo "$as_me:$LINENO: error: unknown endianness
2962presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2963echo "$as_me: error: unknown endianness
2964presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2965 { (exit 1); exit 1; }; } ;;
2966esac
2967
2968
2969
2970# Check whether --enable-optimized or --disable-optimized was given.
2971if test "${enable_optimized+set}" = set; then
2972 enableval="$enable_optimized"
2973
2974else
2975 enableval=no
2976fi;
2977if test ${enableval} = "no" ; then
2978 ENABLE_OPTIMIZED=
2979
2980else
2981 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2982
2983fi
2984
2985# Check whether --enable-jit or --disable-jit was given.
2986if test "${enable_jit+set}" = set; then
2987 enableval="$enable_jit"
2988
2989else
2990 enableval=default
2991fi;
2992if test ${enableval} = "no"
2993then
2994 JIT=
2995
2996else
Reid Spencerefbe40a2004-11-25 07:28:19 +00002997 case "$llvm_cv_target_arch" in
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002998 x86) JIT=TARGET_HAS_JIT=1
2999 ;;
3000 Sparc) JIT=TARGET_HAS_JIT=1
3001 ;;
3002 PowerPC) JIT=TARGET_HAS_JIT=1
3003 ;;
Reid Spencerbe41b252004-12-28 06:34:11 +00003004 x86_64) JIT=
Reid Spencer95ed8432004-12-23 06:22:33 +00003005 ;;
Reid Spencer945de9b2005-04-22 07:27:28 +00003006 Alpha) JIT=
3007 ;;
3008 IA64) JIT=
3009 ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003010 *) JIT=
3011 ;;
3012 esac
3013fi
3014
Reid Spencer1f319422004-11-29 04:56:35 +00003015# Check whether --enable-doxygen or --disable-doxygen was given.
3016if test "${enable_doxygen+set}" = set; then
3017 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003018
Reid Spencer1f319422004-11-29 04:56:35 +00003019else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003020 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00003021fi;
3022case "$enableval" in
3023 yes) ENABLE_DOXYGEN=1
3024 ;;
3025 no) ENABLE_DOXYGEN=0
3026 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003027 default) ENABLE_DOXYGEN=0
3028 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00003029 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3030echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3031 { (exit 1); exit 1; }; } ;;
3032esac
3033
Reid Spencer945de9b2005-04-22 07:27:28 +00003034TARGETS_TO_BUILD=""
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003035# Check whether --enable-targets or --disable-targets was given.
3036if test "${enable_targets+set}" = set; then
3037 enableval="$enable_targets"
Reid Spencer945de9b2005-04-22 07:27:28 +00003038
3039else
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003040 enableval=all
Reid Spencer945de9b2005-04-22 07:27:28 +00003041fi;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003042case "$enableval" in
Misha Brukmanccc1c162005-04-22 18:00:34 +00003043 all) TARGETS_TO_BUILD="X86 SparcV8 SparcV9 PowerPC Alpha IA64 Skeleton" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003044 host-only)
3045 case "$llvm_cv_target_arch" in
3046 x86) TARGETS_TO_BUILD="X86" ;;
3047 x86_64) TARGETS_TO_BUILD="X86" ;;
3048 Sparc) TARGETS_TO_BUILD="SparcV8 SparcV9" ;;
3049 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3050 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3051 IA64) TARGETS_TO_BUILD="IA64" ;;
3052 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
Reid Spencer945de9b2005-04-22 07:27:28 +00003053echo "$as_me: error: Can not set target to build" >&2;}
3054 { (exit 1); exit 1; }; } ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003055 esac
3056 ;;
3057 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3058 case "$a_target" in
3059 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3060 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3061 sparc) TARGETS_TO_BUILD="SparcV8 SparcV9 $TARGETS_TO_BUILD" ;;
3062 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3063 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3064 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3065 skeleton)TARGETS_TO_BUILD="Skeleton $TARGETS_TO_BUILD";;
3066 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3067echo "$as_me: error: Unrecognized target $a_target" >&2;}
3068 { (exit 1); exit 1; }; } ;;
3069 esac
3070 done
3071 ;;
3072esac
Reid Spencer675f0922005-04-22 17:06:18 +00003073TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
Reid Spencer945de9b2005-04-22 07:27:28 +00003074TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3075
3076
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003077
Reid Spencer59473af2004-12-25 07:31:29 +00003078# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3079if test "${with_llvmgccdir+set}" = set; then
3080 withval="$with_llvmgccdir"
3081
3082else
3083 withval=default
3084fi;
3085case "$withval" in
3086 default) WITH_LLVMGCCDIR=default ;;
3087 /*) WITH_LLVMGCCDIR=$withval ;;
3088 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3089echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3090 { (exit 1); exit 1; }; } ;;
3091esac
3092
3093
Reid Spencer945de9b2005-04-22 07:27:28 +00003094
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003095ac_ext=c
3096ac_cpp='$CPP $CPPFLAGS'
3097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3099ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3101echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3102# On Suns, sometimes $CPP names a directory.
3103if test -n "$CPP" && test -d "$CPP"; then
3104 CPP=
3105fi
3106if test -z "$CPP"; then
3107 if test "${ac_cv_prog_CPP+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3109else
3110 # Double quotes because CPP needs to be expanded
3111 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3112 do
3113 ac_preproc_ok=false
3114for ac_c_preproc_warn_flag in '' yes
3115do
3116 # Use a header file that comes with gcc, so configuring glibc
3117 # with a fresh cross-compiler works.
3118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3119 # <limits.h> exists even on freestanding compilers.
3120 # On the NeXT, cc -E runs the code through the compiler's parser,
3121 # not just through cpp. "Syntax error" is here to catch this case.
3122 cat >conftest.$ac_ext <<_ACEOF
3123/* confdefs.h. */
3124_ACEOF
3125cat confdefs.h >>conftest.$ac_ext
3126cat >>conftest.$ac_ext <<_ACEOF
3127/* end confdefs.h. */
3128#ifdef __STDC__
3129# include <limits.h>
3130#else
3131# include <assert.h>
3132#endif
3133 Syntax error
3134_ACEOF
3135if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } >/dev/null; then
3143 if test -s conftest.err; then
3144 ac_cpp_err=$ac_c_preproc_warn_flag
3145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3146 else
3147 ac_cpp_err=
3148 fi
3149else
3150 ac_cpp_err=yes
3151fi
3152if test -z "$ac_cpp_err"; then
3153 :
3154else
3155 echo "$as_me: failed program was:" >&5
3156sed 's/^/| /' conftest.$ac_ext >&5
3157
3158 # Broken: fails on valid input.
3159continue
3160fi
3161rm -f conftest.err conftest.$ac_ext
3162
3163 # OK, works on sane cases. Now check whether non-existent headers
3164 # can be detected and how.
3165 cat >conftest.$ac_ext <<_ACEOF
3166/* confdefs.h. */
3167_ACEOF
3168cat confdefs.h >>conftest.$ac_ext
3169cat >>conftest.$ac_ext <<_ACEOF
3170/* end confdefs.h. */
3171#include <ac_nonexistent.h>
3172_ACEOF
3173if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3175 ac_status=$?
3176 grep -v '^ *+' conftest.er1 >conftest.err
3177 rm -f conftest.er1
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } >/dev/null; then
3181 if test -s conftest.err; then
3182 ac_cpp_err=$ac_c_preproc_warn_flag
3183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3184 else
3185 ac_cpp_err=
3186 fi
3187else
3188 ac_cpp_err=yes
3189fi
3190if test -z "$ac_cpp_err"; then
3191 # Broken: success on invalid input.
3192continue
3193else
3194 echo "$as_me: failed program was:" >&5
3195sed 's/^/| /' conftest.$ac_ext >&5
3196
3197 # Passes both tests.
3198ac_preproc_ok=:
3199break
3200fi
3201rm -f conftest.err conftest.$ac_ext
3202
3203done
3204# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3205rm -f conftest.err conftest.$ac_ext
3206if $ac_preproc_ok; then
3207 break
3208fi
3209
3210 done
3211 ac_cv_prog_CPP=$CPP
3212
3213fi
3214 CPP=$ac_cv_prog_CPP
3215else
3216 ac_cv_prog_CPP=$CPP
3217fi
3218echo "$as_me:$LINENO: result: $CPP" >&5
3219echo "${ECHO_T}$CPP" >&6
3220ac_preproc_ok=false
3221for ac_c_preproc_warn_flag in '' yes
3222do
3223 # Use a header file that comes with gcc, so configuring glibc
3224 # with a fresh cross-compiler works.
3225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3226 # <limits.h> exists even on freestanding compilers.
3227 # On the NeXT, cc -E runs the code through the compiler's parser,
3228 # not just through cpp. "Syntax error" is here to catch this case.
3229 cat >conftest.$ac_ext <<_ACEOF
3230/* confdefs.h. */
3231_ACEOF
3232cat confdefs.h >>conftest.$ac_ext
3233cat >>conftest.$ac_ext <<_ACEOF
3234/* end confdefs.h. */
3235#ifdef __STDC__
3236# include <limits.h>
3237#else
3238# include <assert.h>
3239#endif
3240 Syntax error
3241_ACEOF
3242if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3244 ac_status=$?
3245 grep -v '^ *+' conftest.er1 >conftest.err
3246 rm -f conftest.er1
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } >/dev/null; then
3250 if test -s conftest.err; then
3251 ac_cpp_err=$ac_c_preproc_warn_flag
3252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3253 else
3254 ac_cpp_err=
3255 fi
3256else
3257 ac_cpp_err=yes
3258fi
3259if test -z "$ac_cpp_err"; then
3260 :
3261else
3262 echo "$as_me: failed program was:" >&5
3263sed 's/^/| /' conftest.$ac_ext >&5
3264
3265 # Broken: fails on valid input.
3266continue
3267fi
3268rm -f conftest.err conftest.$ac_ext
3269
3270 # OK, works on sane cases. Now check whether non-existent headers
3271 # can be detected and how.
3272 cat >conftest.$ac_ext <<_ACEOF
3273/* confdefs.h. */
3274_ACEOF
3275cat confdefs.h >>conftest.$ac_ext
3276cat >>conftest.$ac_ext <<_ACEOF
3277/* end confdefs.h. */
3278#include <ac_nonexistent.h>
3279_ACEOF
3280if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3282 ac_status=$?
3283 grep -v '^ *+' conftest.er1 >conftest.err
3284 rm -f conftest.er1
3285 cat conftest.err >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); } >/dev/null; then
3288 if test -s conftest.err; then
3289 ac_cpp_err=$ac_c_preproc_warn_flag
3290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3291 else
3292 ac_cpp_err=
3293 fi
3294else
3295 ac_cpp_err=yes
3296fi
3297if test -z "$ac_cpp_err"; then
3298 # Broken: success on invalid input.
3299continue
3300else
3301 echo "$as_me: failed program was:" >&5
3302sed 's/^/| /' conftest.$ac_ext >&5
3303
3304 # Passes both tests.
3305ac_preproc_ok=:
3306break
3307fi
3308rm -f conftest.err conftest.$ac_ext
3309
3310done
3311# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3312rm -f conftest.err conftest.$ac_ext
3313if $ac_preproc_ok; then
3314 :
3315else
3316 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3317See \`config.log' for more details." >&5
3318echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3319See \`config.log' for more details." >&2;}
3320 { (exit 1); exit 1; }; }
3321fi
3322
John Criswell7a73b802003-06-30 21:59:07 +00003323ac_ext=c
3324ac_cpp='$CPP $CPPFLAGS'
3325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327ac_compiler_gnu=$ac_cv_c_compiler_gnu
3328
3329ac_ext=c
3330ac_cpp='$CPP $CPPFLAGS'
3331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333ac_compiler_gnu=$ac_cv_c_compiler_gnu
3334if test -n "$ac_tool_prefix"; then
3335 for ac_prog in gcc
3336 do
3337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3338set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3339echo "$as_me:$LINENO: checking for $ac_word" >&5
3340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3341if test "${ac_cv_prog_CC+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3343else
3344 if test -n "$CC"; then
3345 ac_cv_prog_CC="$CC" # Let the user override the test.
3346else
3347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348for as_dir in $PATH
3349do
3350 IFS=$as_save_IFS
3351 test -z "$as_dir" && as_dir=.
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 break 2
3357 fi
3358done
3359done
3360
3361fi
3362fi
3363CC=$ac_cv_prog_CC
3364if test -n "$CC"; then
3365 echo "$as_me:$LINENO: result: $CC" >&5
3366echo "${ECHO_T}$CC" >&6
3367else
3368 echo "$as_me:$LINENO: result: no" >&5
3369echo "${ECHO_T}no" >&6
3370fi
3371
3372 test -n "$CC" && break
3373 done
3374fi
3375if test -z "$CC"; then
3376 ac_ct_CC=$CC
3377 for ac_prog in gcc
3378do
3379 # Extract the first word of "$ac_prog", so it can be a program name with args.
3380set dummy $ac_prog; ac_word=$2
3381echo "$as_me:$LINENO: checking for $ac_word" >&5
3382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3383if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3385else
3386 if test -n "$ac_ct_CC"; then
3387 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3388else
3389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390for as_dir in $PATH
3391do
3392 IFS=$as_save_IFS
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3396 ac_cv_prog_ac_ct_CC="$ac_prog"
3397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 break 2
3399 fi
3400done
3401done
3402
3403fi
3404fi
3405ac_ct_CC=$ac_cv_prog_ac_ct_CC
3406if test -n "$ac_ct_CC"; then
3407 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3408echo "${ECHO_T}$ac_ct_CC" >&6
3409else
3410 echo "$as_me:$LINENO: result: no" >&5
3411echo "${ECHO_T}no" >&6
3412fi
3413
3414 test -n "$ac_ct_CC" && break
3415done
3416
3417 CC=$ac_ct_CC
3418fi
3419
3420
John Criswell0c38eaf2003-09-10 15:17:25 +00003421test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3422See \`config.log' for more details." >&5
3423echo "$as_me: error: no acceptable C compiler found in \$PATH
3424See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003425 { (exit 1); exit 1; }; }
3426
3427# Provide some information about the compiler.
3428echo "$as_me:$LINENO:" \
3429 "checking for C compiler version" >&5
3430ac_compiler=`set X $ac_compile; echo $2`
3431{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3432 (eval $ac_compiler --version </dev/null >&5) 2>&5
3433 ac_status=$?
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }
3436{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3437 (eval $ac_compiler -v </dev/null >&5) 2>&5
3438 ac_status=$?
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); }
3441{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3442 (eval $ac_compiler -V </dev/null >&5) 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }
3446
3447echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3448echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3449if test "${ac_cv_c_compiler_gnu+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451else
3452 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003453/* confdefs.h. */
3454_ACEOF
3455cat confdefs.h >>conftest.$ac_ext
3456cat >>conftest.$ac_ext <<_ACEOF
3457/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003458
John Criswell7a73b802003-06-30 21:59:07 +00003459int
3460main ()
3461{
3462#ifndef __GNUC__
3463 choke me
3464#endif
3465
3466 ;
3467 return 0;
3468}
3469_ACEOF
3470rm -f conftest.$ac_objext
3471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003472 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003473 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003474 grep -v '^ *+' conftest.er1 >conftest.err
3475 rm -f conftest.er1
3476 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003479 { ac_try='test -z "$ac_c_werror_flag"
3480 || test ! -s conftest.err'
3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482 (eval $ac_try) 2>&5
3483 ac_status=$?
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; } &&
3486 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488 (eval $ac_try) 2>&5
3489 ac_status=$?
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }; }; then
3492 ac_compiler_gnu=yes
3493else
3494 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003495sed 's/^/| /' conftest.$ac_ext >&5
3496
John Criswell7a73b802003-06-30 21:59:07 +00003497ac_compiler_gnu=no
3498fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003500ac_cv_c_compiler_gnu=$ac_compiler_gnu
3501
3502fi
3503echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3504echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3505GCC=`test $ac_compiler_gnu = yes && echo yes`
3506ac_test_CFLAGS=${CFLAGS+set}
3507ac_save_CFLAGS=$CFLAGS
3508CFLAGS="-g"
3509echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3510echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3511if test "${ac_cv_prog_cc_g+set}" = set; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3513else
3514 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003515/* confdefs.h. */
3516_ACEOF
3517cat confdefs.h >>conftest.$ac_ext
3518cat >>conftest.$ac_ext <<_ACEOF
3519/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003520
John Criswell7a73b802003-06-30 21:59:07 +00003521int
3522main ()
3523{
3524
3525 ;
3526 return 0;
3527}
3528_ACEOF
3529rm -f conftest.$ac_objext
3530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003531 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003532 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003533 grep -v '^ *+' conftest.er1 >conftest.err
3534 rm -f conftest.er1
3535 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003538 { ac_try='test -z "$ac_c_werror_flag"
3539 || test ! -s conftest.err'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 (eval $ac_try) 2>&5
3542 ac_status=$?
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; } &&
3545 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 (eval $ac_try) 2>&5
3548 ac_status=$?
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; }; then
3551 ac_cv_prog_cc_g=yes
3552else
3553 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003554sed 's/^/| /' conftest.$ac_ext >&5
3555
John Criswell7a73b802003-06-30 21:59:07 +00003556ac_cv_prog_cc_g=no
3557fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003559fi
3560echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3561echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3562if test "$ac_test_CFLAGS" = set; then
3563 CFLAGS=$ac_save_CFLAGS
3564elif test $ac_cv_prog_cc_g = yes; then
3565 if test "$GCC" = yes; then
3566 CFLAGS="-g -O2"
3567 else
3568 CFLAGS="-g"
3569 fi
3570else
3571 if test "$GCC" = yes; then
3572 CFLAGS="-O2"
3573 else
3574 CFLAGS=
3575 fi
3576fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003577echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3578echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3579if test "${ac_cv_prog_cc_stdc+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3581else
3582 ac_cv_prog_cc_stdc=no
3583ac_save_CC=$CC
3584cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003585/* confdefs.h. */
3586_ACEOF
3587cat confdefs.h >>conftest.$ac_ext
3588cat >>conftest.$ac_ext <<_ACEOF
3589/* end confdefs.h. */
3590#include <stdarg.h>
3591#include <stdio.h>
3592#include <sys/types.h>
3593#include <sys/stat.h>
3594/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3595struct buf { int x; };
3596FILE * (*rcsopen) (struct buf *, struct stat *, int);
3597static char *e (p, i)
3598 char **p;
3599 int i;
3600{
3601 return p[i];
3602}
3603static char *f (char * (*g) (char **, int), char **p, ...)
3604{
3605 char *s;
3606 va_list v;
3607 va_start (v,p);
3608 s = g (p, va_arg (v,int));
3609 va_end (v);
3610 return s;
3611}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003612
3613/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3614 function prototypes and stuff, but not '\xHH' hex character constants.
3615 These don't provoke an error unfortunately, instead are silently treated
3616 as 'x'. The following induces an error, until -std1 is added to get
3617 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3618 array size at least. It's necessary to write '\x00'==0 to get something
3619 that's true only with -std1. */
3620int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3621
John Criswell0c38eaf2003-09-10 15:17:25 +00003622int test (int i, double x);
3623struct s1 {int (*f) (int a);};
3624struct s2 {int (*f) (double a);};
3625int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3626int argc;
3627char **argv;
3628int
3629main ()
3630{
3631return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3632 ;
3633 return 0;
3634}
3635_ACEOF
3636# Don't try gcc -ansi; that turns off useful extensions and
3637# breaks some systems' header files.
3638# AIX -qlanglvl=ansi
3639# Ultrix and OSF/1 -std1
3640# HP-UX 10.20 and later -Ae
3641# HP-UX older versions -Aa -D_HPUX_SOURCE
3642# SVR4 -Xc -D__EXTENSIONS__
3643for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3644do
3645 CC="$ac_save_CC $ac_arg"
3646 rm -f conftest.$ac_objext
3647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003648 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003649 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003650 grep -v '^ *+' conftest.er1 >conftest.err
3651 rm -f conftest.er1
3652 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003655 { ac_try='test -z "$ac_c_werror_flag"
3656 || test ! -s conftest.err'
3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 (eval $ac_try) 2>&5
3659 ac_status=$?
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; } &&
3662 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 (eval $ac_try) 2>&5
3665 ac_status=$?
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; }; then
3668 ac_cv_prog_cc_stdc=$ac_arg
3669break
3670else
3671 echo "$as_me: failed program was:" >&5
3672sed 's/^/| /' conftest.$ac_ext >&5
3673
3674fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003675rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003676done
3677rm -f conftest.$ac_ext conftest.$ac_objext
3678CC=$ac_save_CC
3679
3680fi
3681
3682case "x$ac_cv_prog_cc_stdc" in
3683 x|xno)
3684 echo "$as_me:$LINENO: result: none needed" >&5
3685echo "${ECHO_T}none needed" >&6 ;;
3686 *)
3687 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3688echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3689 CC="$CC $ac_cv_prog_cc_stdc" ;;
3690esac
3691
John Criswell7a73b802003-06-30 21:59:07 +00003692# Some people use a C++ compiler to compile C. Since we use `exit',
3693# in C++ we need to declare it. In case someone uses the same compiler
3694# for both compiling C and C++ we need to have the C++ compiler decide
3695# the declaration of exit, since it's the most demanding environment.
3696cat >conftest.$ac_ext <<_ACEOF
3697#ifndef __cplusplus
3698 choke me
3699#endif
3700_ACEOF
3701rm -f conftest.$ac_objext
3702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003703 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003704 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003705 grep -v '^ *+' conftest.er1 >conftest.err
3706 rm -f conftest.er1
3707 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003710 { ac_try='test -z "$ac_c_werror_flag"
3711 || test ! -s conftest.err'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 (eval $ac_try) 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; } &&
3717 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719 (eval $ac_try) 2>&5
3720 ac_status=$?
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; }; then
3723 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003724 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003725 'extern "C" void std::exit (int) throw (); using std::exit;' \
3726 'extern "C" void std::exit (int); using std::exit;' \
3727 'extern "C" void exit (int) throw ();' \
3728 'extern "C" void exit (int);' \
3729 'void exit (int);'
3730do
3731 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003732/* confdefs.h. */
3733_ACEOF
3734cat confdefs.h >>conftest.$ac_ext
3735cat >>conftest.$ac_ext <<_ACEOF
3736/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003737$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003738#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003739int
3740main ()
3741{
3742exit (42);
3743 ;
3744 return 0;
3745}
3746_ACEOF
3747rm -f conftest.$ac_objext
3748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003749 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003750 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003751 grep -v '^ *+' conftest.er1 >conftest.err
3752 rm -f conftest.er1
3753 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003756 { ac_try='test -z "$ac_c_werror_flag"
3757 || test ! -s conftest.err'
3758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759 (eval $ac_try) 2>&5
3760 ac_status=$?
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; } &&
3763 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765 (eval $ac_try) 2>&5
3766 ac_status=$?
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; }; then
3769 :
3770else
3771 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003772sed 's/^/| /' conftest.$ac_ext >&5
3773
John Criswell7a73b802003-06-30 21:59:07 +00003774continue
3775fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003777 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003778/* confdefs.h. */
3779_ACEOF
3780cat confdefs.h >>conftest.$ac_ext
3781cat >>conftest.$ac_ext <<_ACEOF
3782/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003783$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003784int
3785main ()
3786{
3787exit (42);
3788 ;
3789 return 0;
3790}
3791_ACEOF
3792rm -f conftest.$ac_objext
3793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003794 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003795 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003796 grep -v '^ *+' conftest.er1 >conftest.err
3797 rm -f conftest.er1
3798 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003801 { ac_try='test -z "$ac_c_werror_flag"
3802 || test ! -s conftest.err'
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 (eval $ac_try) 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; } &&
3808 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810 (eval $ac_try) 2>&5
3811 ac_status=$?
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; }; then
3814 break
3815else
3816 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003817sed 's/^/| /' conftest.$ac_ext >&5
3818
John Criswell7a73b802003-06-30 21:59:07 +00003819fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003821done
3822rm -f conftest*
3823if test -n "$ac_declaration"; then
3824 echo '#ifdef __cplusplus' >>confdefs.h
3825 echo $ac_declaration >>confdefs.h
3826 echo '#endif' >>confdefs.h
3827fi
3828
3829else
3830 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003831sed 's/^/| /' conftest.$ac_ext >&5
3832
John Criswell7a73b802003-06-30 21:59:07 +00003833fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003835ac_ext=c
3836ac_cpp='$CPP $CPPFLAGS'
3837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839ac_compiler_gnu=$ac_cv_c_compiler_gnu
3840
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003841ac_ext=cc
3842ac_cpp='$CXXCPP $CPPFLAGS'
3843ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3844ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3845ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3846if test -n "$ac_tool_prefix"; then
3847 for ac_prog in $CCC g++
3848 do
3849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3850set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3851echo "$as_me:$LINENO: checking for $ac_word" >&5
3852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3853if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003856 if test -n "$CXX"; then
3857 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3858else
3859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003861do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3866 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 break 2
3869 fi
3870done
3871done
3872
3873fi
3874fi
3875CXX=$ac_cv_prog_CXX
3876if test -n "$CXX"; then
3877 echo "$as_me:$LINENO: result: $CXX" >&5
3878echo "${ECHO_T}$CXX" >&6
3879else
3880 echo "$as_me:$LINENO: result: no" >&5
3881echo "${ECHO_T}no" >&6
3882fi
3883
3884 test -n "$CXX" && break
3885 done
3886fi
3887if test -z "$CXX"; then
3888 ac_ct_CXX=$CXX
3889 for ac_prog in $CCC g++
3890do
3891 # Extract the first word of "$ac_prog", so it can be a program name with args.
3892set dummy $ac_prog; ac_word=$2
3893echo "$as_me:$LINENO: checking for $ac_word" >&5
3894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3895if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3897else
3898 if test -n "$ac_ct_CXX"; then
3899 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3900else
3901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902for as_dir in $PATH
3903do
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908 ac_cv_prog_ac_ct_CXX="$ac_prog"
3909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 break 2
3911 fi
3912done
3913done
3914
3915fi
3916fi
3917ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3918if test -n "$ac_ct_CXX"; then
3919 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3920echo "${ECHO_T}$ac_ct_CXX" >&6
3921else
3922 echo "$as_me:$LINENO: result: no" >&5
3923echo "${ECHO_T}no" >&6
3924fi
3925
3926 test -n "$ac_ct_CXX" && break
3927done
3928test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3929
3930 CXX=$ac_ct_CXX
3931fi
3932
3933
3934# Provide some information about the compiler.
3935echo "$as_me:$LINENO:" \
3936 "checking for C++ compiler version" >&5
3937ac_compiler=`set X $ac_compile; echo $2`
3938{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3939 (eval $ac_compiler --version </dev/null >&5) 2>&5
3940 ac_status=$?
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }
3943{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3944 (eval $ac_compiler -v </dev/null >&5) 2>&5
3945 ac_status=$?
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }
3948{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3949 (eval $ac_compiler -V </dev/null >&5) 2>&5
3950 ac_status=$?
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); }
3953
3954echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3955echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3956if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3957 echo $ECHO_N "(cached) $ECHO_C" >&6
3958else
John Criswell7a73b802003-06-30 21:59:07 +00003959 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003960/* confdefs.h. */
3961_ACEOF
3962cat confdefs.h >>conftest.$ac_ext
3963cat >>conftest.$ac_ext <<_ACEOF
3964/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003965
3966int
3967main ()
3968{
3969#ifndef __GNUC__
3970 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00003971#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003972
3973 ;
3974 return 0;
3975}
John Criswell7a73b802003-06-30 21:59:07 +00003976_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003977rm -f conftest.$ac_objext
3978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3979 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003980 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003981 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003982 rm -f conftest.er1
3983 cat conftest.err >&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003985 (exit $ac_status); } &&
3986 { ac_try='test -z "$ac_cxx_werror_flag"
3987 || test ! -s conftest.err'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 (eval $ac_try) 2>&5
3990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; } &&
3993 { ac_try='test -s conftest.$ac_objext'
3994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995 (eval $ac_try) 2>&5
3996 ac_status=$?
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; }; then
3999 ac_compiler_gnu=yes
4000else
4001 echo "$as_me: failed program was:" >&5
4002sed 's/^/| /' conftest.$ac_ext >&5
4003
4004ac_compiler_gnu=no
4005fi
4006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4007ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4008
4009fi
4010echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4011echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4012GXX=`test $ac_compiler_gnu = yes && echo yes`
4013ac_test_CXXFLAGS=${CXXFLAGS+set}
4014ac_save_CXXFLAGS=$CXXFLAGS
4015CXXFLAGS="-g"
4016echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4017echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4018if test "${ac_cv_prog_cxx_g+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020else
4021 cat >conftest.$ac_ext <<_ACEOF
4022/* confdefs.h. */
4023_ACEOF
4024cat confdefs.h >>conftest.$ac_ext
4025cat >>conftest.$ac_ext <<_ACEOF
4026/* end confdefs.h. */
4027
4028int
4029main ()
4030{
4031
4032 ;
4033 return 0;
4034}
4035_ACEOF
4036rm -f conftest.$ac_objext
4037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>conftest.er1
4039 ac_status=$?
4040 grep -v '^ *+' conftest.er1 >conftest.err
4041 rm -f conftest.er1
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try='test -z "$ac_cxx_werror_flag"
4046 || test ! -s conftest.err'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 (eval $ac_try) 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try='test -s conftest.$ac_objext'
4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054 (eval $ac_try) 2>&5
4055 ac_status=$?
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; }; then
4058 ac_cv_prog_cxx_g=yes
4059else
4060 echo "$as_me: failed program was:" >&5
4061sed 's/^/| /' conftest.$ac_ext >&5
4062
4063ac_cv_prog_cxx_g=no
4064fi
4065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4066fi
4067echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4068echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4069if test "$ac_test_CXXFLAGS" = set; then
4070 CXXFLAGS=$ac_save_CXXFLAGS
4071elif test $ac_cv_prog_cxx_g = yes; then
4072 if test "$GXX" = yes; then
4073 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00004074 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004075 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00004076 fi
4077else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004078 if test "$GXX" = yes; then
4079 CXXFLAGS="-O2"
4080 else
4081 CXXFLAGS=
4082 fi
John Criswell7a73b802003-06-30 21:59:07 +00004083fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004084for ac_declaration in \
4085 '' \
4086 'extern "C" void std::exit (int) throw (); using std::exit;' \
4087 'extern "C" void std::exit (int); using std::exit;' \
4088 'extern "C" void exit (int) throw ();' \
4089 'extern "C" void exit (int);' \
4090 'void exit (int);'
4091do
4092 cat >conftest.$ac_ext <<_ACEOF
4093/* confdefs.h. */
4094_ACEOF
4095cat confdefs.h >>conftest.$ac_ext
4096cat >>conftest.$ac_ext <<_ACEOF
4097/* end confdefs.h. */
4098$ac_declaration
4099#include <stdlib.h>
4100int
4101main ()
4102{
4103exit (42);
4104 ;
4105 return 0;
4106}
4107_ACEOF
4108rm -f conftest.$ac_objext
4109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4110 (eval $ac_compile) 2>conftest.er1
4111 ac_status=$?
4112 grep -v '^ *+' conftest.er1 >conftest.err
4113 rm -f conftest.er1
4114 cat conftest.err >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } &&
4117 { ac_try='test -z "$ac_cxx_werror_flag"
4118 || test ! -s conftest.err'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120 (eval $ac_try) 2>&5
4121 ac_status=$?
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; } &&
4124 { ac_try='test -s conftest.$ac_objext'
4125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126 (eval $ac_try) 2>&5
4127 ac_status=$?
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004130 :
4131else
4132 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004133sed 's/^/| /' conftest.$ac_ext >&5
4134
John Criswell7a73b802003-06-30 21:59:07 +00004135continue
4136fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004138 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004139/* confdefs.h. */
4140_ACEOF
4141cat confdefs.h >>conftest.$ac_ext
4142cat >>conftest.$ac_ext <<_ACEOF
4143/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004144$ac_declaration
4145int
4146main ()
4147{
4148exit (42);
4149 ;
4150 return 0;
4151}
John Criswell7a73b802003-06-30 21:59:07 +00004152_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004153rm -f conftest.$ac_objext
4154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4155 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004156 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004157 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004158 rm -f conftest.er1
4159 cat conftest.err >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004161 (exit $ac_status); } &&
4162 { ac_try='test -z "$ac_cxx_werror_flag"
4163 || test ! -s conftest.err'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 (eval $ac_try) 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; } &&
4169 { ac_try='test -s conftest.$ac_objext'
4170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171 (eval $ac_try) 2>&5
4172 ac_status=$?
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004175 break
John Criswell7a73b802003-06-30 21:59:07 +00004176else
4177 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004178sed 's/^/| /' conftest.$ac_ext >&5
4179
John Criswell7a73b802003-06-30 21:59:07 +00004180fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004182done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004183rm -f conftest*
4184if test -n "$ac_declaration"; then
4185 echo '#ifdef __cplusplus' >>confdefs.h
4186 echo $ac_declaration >>confdefs.h
4187 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004188fi
4189
4190ac_ext=c
4191ac_cpp='$CPP $CPPFLAGS'
4192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4194ac_compiler_gnu=$ac_cv_c_compiler_gnu
4195
John Criswell7a73b802003-06-30 21:59:07 +00004196echo "$as_me:$LINENO: checking " >&5
4197echo $ECHO_N "checking ... $ECHO_C" >&6
4198if test "${ac_cv_has_flex+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4200else
4201 for ac_prog in flex lex
4202do
4203 # Extract the first word of "$ac_prog", so it can be a program name with args.
4204set dummy $ac_prog; ac_word=$2
4205echo "$as_me:$LINENO: checking for $ac_word" >&5
4206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4207if test "${ac_cv_prog_LEX+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4209else
4210 if test -n "$LEX"; then
4211 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4212else
4213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214for as_dir in $PATH
4215do
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220 ac_cv_prog_LEX="$ac_prog"
4221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 break 2
4223 fi
4224done
4225done
4226
4227fi
4228fi
4229LEX=$ac_cv_prog_LEX
4230if test -n "$LEX"; then
4231 echo "$as_me:$LINENO: result: $LEX" >&5
4232echo "${ECHO_T}$LEX" >&6
4233else
4234 echo "$as_me:$LINENO: result: no" >&5
4235echo "${ECHO_T}no" >&6
4236fi
4237
4238 test -n "$LEX" && break
4239done
4240test -n "$LEX" || LEX=":"
4241
4242if test -z "$LEXLIB"
4243then
4244 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4245echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4246if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248else
4249 ac_check_lib_save_LIBS=$LIBS
4250LIBS="-lfl $LIBS"
4251cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004252/* confdefs.h. */
4253_ACEOF
4254cat confdefs.h >>conftest.$ac_ext
4255cat >>conftest.$ac_ext <<_ACEOF
4256/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004257
4258/* Override any gcc2 internal prototype to avoid an error. */
4259#ifdef __cplusplus
4260extern "C"
4261#endif
4262/* We use char because int might match the return type of a gcc2
4263 builtin and then its argument prototype would still apply. */
4264char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004265int
4266main ()
4267{
4268yywrap ();
4269 ;
4270 return 0;
4271}
4272_ACEOF
4273rm -f conftest.$ac_objext conftest$ac_exeext
4274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004275 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004276 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004277 grep -v '^ *+' conftest.er1 >conftest.err
4278 rm -f conftest.er1
4279 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004282 { ac_try='test -z "$ac_c_werror_flag"
4283 || test ! -s conftest.err'
4284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 (eval $ac_try) 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; } &&
4289 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 (eval $ac_try) 2>&5
4292 ac_status=$?
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
4295 ac_cv_lib_fl_yywrap=yes
4296else
4297 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004298sed 's/^/| /' conftest.$ac_ext >&5
4299
John Criswell7a73b802003-06-30 21:59:07 +00004300ac_cv_lib_fl_yywrap=no
4301fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004302rm -f conftest.err conftest.$ac_objext \
4303 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004304LIBS=$ac_check_lib_save_LIBS
4305fi
4306echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4307echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4308if test $ac_cv_lib_fl_yywrap = yes; then
4309 LEXLIB="-lfl"
4310else
4311 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4312echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4313if test "${ac_cv_lib_l_yywrap+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4315else
4316 ac_check_lib_save_LIBS=$LIBS
4317LIBS="-ll $LIBS"
4318cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004319/* confdefs.h. */
4320_ACEOF
4321cat confdefs.h >>conftest.$ac_ext
4322cat >>conftest.$ac_ext <<_ACEOF
4323/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004324
4325/* Override any gcc2 internal prototype to avoid an error. */
4326#ifdef __cplusplus
4327extern "C"
4328#endif
4329/* We use char because int might match the return type of a gcc2
4330 builtin and then its argument prototype would still apply. */
4331char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004332int
4333main ()
4334{
4335yywrap ();
4336 ;
4337 return 0;
4338}
4339_ACEOF
4340rm -f conftest.$ac_objext conftest$ac_exeext
4341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004342 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004343 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004344 grep -v '^ *+' conftest.er1 >conftest.err
4345 rm -f conftest.er1
4346 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004349 { ac_try='test -z "$ac_c_werror_flag"
4350 || test ! -s conftest.err'
4351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352 (eval $ac_try) 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; } &&
4356 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 (eval $ac_try) 2>&5
4359 ac_status=$?
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; }; then
4362 ac_cv_lib_l_yywrap=yes
4363else
4364 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004365sed 's/^/| /' conftest.$ac_ext >&5
4366
John Criswell7a73b802003-06-30 21:59:07 +00004367ac_cv_lib_l_yywrap=no
4368fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004369rm -f conftest.err conftest.$ac_objext \
4370 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004371LIBS=$ac_check_lib_save_LIBS
4372fi
4373echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4374echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4375if test $ac_cv_lib_l_yywrap = yes; then
4376 LEXLIB="-ll"
4377fi
4378
4379fi
4380
4381fi
4382
4383if test "x$LEX" != "x:"; then
4384 echo "$as_me:$LINENO: checking lex output file root" >&5
4385echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4386if test "${ac_cv_prog_lex_root+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4388else
4389 # The minimal lex program is just a single line: %%. But some broken lexes
4390# (Solaris, I think it was) want two %% lines, so accommodate them.
4391cat >conftest.l <<_ACEOF
4392%%
4393%%
4394_ACEOF
4395{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4396 (eval $LEX conftest.l) 2>&5
4397 ac_status=$?
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }
4400if test -f lex.yy.c; then
4401 ac_cv_prog_lex_root=lex.yy
4402elif test -f lexyy.c; then
4403 ac_cv_prog_lex_root=lexyy
4404else
4405 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4406echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4407 { (exit 1); exit 1; }; }
4408fi
4409fi
4410echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4411echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4412rm -f conftest.l
4413LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4414
4415echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4416echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4417if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4419else
4420 # POSIX says lex can declare yytext either as a pointer or an array; the
4421# default is implementation-dependent. Figure out which it is, since
4422# not all implementations provide the %pointer and %array declarations.
4423ac_cv_prog_lex_yytext_pointer=no
4424echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4425ac_save_LIBS=$LIBS
4426LIBS="$LIBS $LEXLIB"
4427cat >conftest.$ac_ext <<_ACEOF
4428`cat $LEX_OUTPUT_ROOT.c`
4429_ACEOF
4430rm -f conftest.$ac_objext conftest$ac_exeext
4431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004432 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004433 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004434 grep -v '^ *+' conftest.er1 >conftest.err
4435 rm -f conftest.er1
4436 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004439 { ac_try='test -z "$ac_c_werror_flag"
4440 || test ! -s conftest.err'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 (eval $ac_try) 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; } &&
4446 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 (eval $ac_try) 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
4452 ac_cv_prog_lex_yytext_pointer=yes
4453else
4454 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004455sed 's/^/| /' conftest.$ac_ext >&5
4456
John Criswell7a73b802003-06-30 21:59:07 +00004457fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004458rm -f conftest.err conftest.$ac_objext \
4459 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004460LIBS=$ac_save_LIBS
4461rm -f "${LEX_OUTPUT_ROOT}.c"
4462
4463fi
4464echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4465echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4466if test $ac_cv_prog_lex_yytext_pointer = yes; then
4467
4468cat >>confdefs.h <<\_ACEOF
4469#define YYTEXT_POINTER 1
4470_ACEOF
4471
4472fi
4473
4474fi
4475
4476fi
4477echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4478echo "${ECHO_T}$ac_cv_has_flex" >&6
4479if test "$LEX" != "flex"; then
4480 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4481echo "$as_me: error: flex not found but required" >&2;}
4482 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004483else
4484 FLEX=flex
4485
John Criswell7a73b802003-06-30 21:59:07 +00004486fi
4487
4488echo "$as_me:$LINENO: checking " >&5
4489echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004490if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004491 echo $ECHO_N "(cached) $ECHO_C" >&6
4492else
4493 for ac_prog in 'bison -y' byacc
4494do
4495 # Extract the first word of "$ac_prog", so it can be a program name with args.
4496set dummy $ac_prog; ac_word=$2
4497echo "$as_me:$LINENO: checking for $ac_word" >&5
4498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4499if test "${ac_cv_prog_YACC+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4501else
4502 if test -n "$YACC"; then
4503 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4504else
4505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506for as_dir in $PATH
4507do
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4512 ac_cv_prog_YACC="$ac_prog"
4513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4514 break 2
4515 fi
4516done
4517done
4518
4519fi
4520fi
4521YACC=$ac_cv_prog_YACC
4522if test -n "$YACC"; then
4523 echo "$as_me:$LINENO: result: $YACC" >&5
4524echo "${ECHO_T}$YACC" >&6
4525else
4526 echo "$as_me:$LINENO: result: no" >&5
4527echo "${ECHO_T}no" >&6
4528fi
4529
4530 test -n "$YACC" && break
4531done
4532test -n "$YACC" || YACC="yacc"
4533
John Criswell7a73b802003-06-30 21:59:07 +00004534fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004535echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4536echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004537if test "$YACC" != "bison -y"; then
4538 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4539echo "$as_me: error: bison not found but required" >&2;}
4540 { (exit 1); exit 1; }; }
4541else
Brian Gaeke12810632004-01-13 06:52:10 +00004542 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004543
4544fi
4545
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004546echo "$as_me:$LINENO: checking for GNU make" >&5
4547echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4548if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004551 llvm_cv_gnu_make_command=''
4552 for a in "$MAKE" make gmake gnumake ; do
4553 if test -z "$a" ; then continue ; fi ;
4554 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4555 then
4556 llvm_cv_gnu_make_command=$a ;
4557 break;
John Criswell47fdd832003-07-14 16:52:07 +00004558 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004559 done
John Criswell7a73b802003-06-30 21:59:07 +00004560fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004561echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4562echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4563 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4564 ifGNUmake='' ;
4565 else
4566 ifGNUmake='#' ;
4567 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4568echo "${ECHO_T}\"Not found\"" >&6;
4569 fi
John Criswell7a73b802003-06-30 21:59:07 +00004570
John Criswell7a73b802003-06-30 21:59:07 +00004571
4572echo "$as_me:$LINENO: checking whether ln -s works" >&5
4573echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4574LN_S=$as_ln_s
4575if test "$LN_S" = "ln -s"; then
4576 echo "$as_me:$LINENO: result: yes" >&5
4577echo "${ECHO_T}yes" >&6
4578else
4579 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4580echo "${ECHO_T}no, using $LN_S" >&6
4581fi
4582
Reid Spencer8a2d4712004-12-16 17:48:14 +00004583# Extract the first word of "cmp", so it can be a program name with args.
4584set dummy cmp; ac_word=$2
4585echo "$as_me:$LINENO: checking for $ac_word" >&5
4586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4587if test "${ac_cv_path_CMP+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4589else
4590 case $CMP in
4591 [\\/]* | ?:[\\/]*)
4592 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4593 ;;
4594 *)
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596for as_dir in $PATH
4597do
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4602 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 break 2
4605 fi
4606done
4607done
4608
4609 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4610 ;;
4611esac
4612fi
4613CMP=$ac_cv_path_CMP
4614
4615if test -n "$CMP"; then
4616 echo "$as_me:$LINENO: result: $CMP" >&5
4617echo "${ECHO_T}$CMP" >&6
4618else
4619 echo "$as_me:$LINENO: result: no" >&5
4620echo "${ECHO_T}no" >&6
4621fi
4622
4623# Extract the first word of "cp", so it can be a program name with args.
4624set dummy cp; ac_word=$2
4625echo "$as_me:$LINENO: checking for $ac_word" >&5
4626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4627if test "${ac_cv_path_CP+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4629else
4630 case $CP in
4631 [\\/]* | ?:[\\/]*)
4632 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4633 ;;
4634 *)
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636for as_dir in $PATH
4637do
4638 IFS=$as_save_IFS
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4642 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 break 2
4645 fi
4646done
4647done
4648
4649 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4650 ;;
4651esac
4652fi
4653CP=$ac_cv_path_CP
4654
4655if test -n "$CP"; then
4656 echo "$as_me:$LINENO: result: $CP" >&5
4657echo "${ECHO_T}$CP" >&6
4658else
4659 echo "$as_me:$LINENO: result: no" >&5
4660echo "${ECHO_T}no" >&6
4661fi
4662
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004663# Extract the first word of "date", so it can be a program name with args.
4664set dummy date; ac_word=$2
4665echo "$as_me:$LINENO: checking for $ac_word" >&5
4666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4667if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004668 echo $ECHO_N "(cached) $ECHO_C" >&6
4669else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004670 case $DATE in
4671 [\\/]* | ?:[\\/]*)
4672 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004673 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004674 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676for as_dir in $PATH
4677do
4678 IFS=$as_save_IFS
4679 test -z "$as_dir" && as_dir=.
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4682 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004685 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004686done
4687done
John Criswell7a73b802003-06-30 21:59:07 +00004688
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004689 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004690 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004691esac
John Criswell7a73b802003-06-30 21:59:07 +00004692fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004693DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004694
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004695if test -n "$DATE"; then
4696 echo "$as_me:$LINENO: result: $DATE" >&5
4697echo "${ECHO_T}$DATE" >&6
4698else
4699 echo "$as_me:$LINENO: result: no" >&5
4700echo "${ECHO_T}no" >&6
4701fi
John Criswell7a73b802003-06-30 21:59:07 +00004702
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004703# Extract the first word of "find", so it can be a program name with args.
4704set dummy find; ac_word=$2
4705echo "$as_me:$LINENO: checking for $ac_word" >&5
4706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4707if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004708 echo $ECHO_N "(cached) $ECHO_C" >&6
4709else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004710 case $FIND in
4711 [\\/]* | ?:[\\/]*)
4712 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4713 ;;
4714 *)
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716for as_dir in $PATH
4717do
4718 IFS=$as_save_IFS
4719 test -z "$as_dir" && as_dir=.
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4722 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 break 2
4725 fi
4726done
4727done
4728
4729 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4730 ;;
4731esac
4732fi
4733FIND=$ac_cv_path_FIND
4734
4735if test -n "$FIND"; then
4736 echo "$as_me:$LINENO: result: $FIND" >&5
4737echo "${ECHO_T}$FIND" >&6
4738else
4739 echo "$as_me:$LINENO: result: no" >&5
4740echo "${ECHO_T}no" >&6
4741fi
4742
4743# Extract the first word of "grep", so it can be a program name with args.
4744set dummy grep; ac_word=$2
4745echo "$as_me:$LINENO: checking for $ac_word" >&5
4746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4747if test "${ac_cv_path_GREP+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4749else
4750 case $GREP in
4751 [\\/]* | ?:[\\/]*)
4752 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4753 ;;
4754 *)
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756for as_dir in $PATH
4757do
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4762 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 break 2
4765 fi
4766done
4767done
4768
4769 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4770 ;;
4771esac
4772fi
4773GREP=$ac_cv_path_GREP
4774
4775if test -n "$GREP"; then
4776 echo "$as_me:$LINENO: result: $GREP" >&5
4777echo "${ECHO_T}$GREP" >&6
4778else
4779 echo "$as_me:$LINENO: result: no" >&5
4780echo "${ECHO_T}no" >&6
4781fi
4782
4783# Extract the first word of "mkdir", so it can be a program name with args.
4784set dummy mkdir; ac_word=$2
4785echo "$as_me:$LINENO: checking for $ac_word" >&5
4786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4787if test "${ac_cv_path_MKDIR+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4789else
4790 case $MKDIR in
4791 [\\/]* | ?:[\\/]*)
4792 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4793 ;;
4794 *)
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796for as_dir in $PATH
4797do
4798 IFS=$as_save_IFS
4799 test -z "$as_dir" && as_dir=.
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4802 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4804 break 2
4805 fi
4806done
4807done
4808
4809 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4810 ;;
4811esac
4812fi
4813MKDIR=$ac_cv_path_MKDIR
4814
4815if test -n "$MKDIR"; then
4816 echo "$as_me:$LINENO: result: $MKDIR" >&5
4817echo "${ECHO_T}$MKDIR" >&6
4818else
4819 echo "$as_me:$LINENO: result: no" >&5
4820echo "${ECHO_T}no" >&6
4821fi
4822
4823# Extract the first word of "mv", so it can be a program name with args.
4824set dummy mv; ac_word=$2
4825echo "$as_me:$LINENO: checking for $ac_word" >&5
4826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4827if test "${ac_cv_path_MV+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4829else
4830 case $MV in
4831 [\\/]* | ?:[\\/]*)
4832 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4833 ;;
4834 *)
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836for as_dir in $PATH
4837do
4838 IFS=$as_save_IFS
4839 test -z "$as_dir" && as_dir=.
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4842 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 break 2
4845 fi
4846done
4847done
4848
4849 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4850 ;;
4851esac
4852fi
4853MV=$ac_cv_path_MV
4854
4855if test -n "$MV"; then
4856 echo "$as_me:$LINENO: result: $MV" >&5
4857echo "${ECHO_T}$MV" >&6
4858else
4859 echo "$as_me:$LINENO: result: no" >&5
4860echo "${ECHO_T}no" >&6
4861fi
4862
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004863if test -n "$ac_tool_prefix"; then
4864 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4865set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4866echo "$as_me:$LINENO: checking for $ac_word" >&5
4867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4868if test "${ac_cv_prog_RANLIB+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4870else
4871 if test -n "$RANLIB"; then
4872 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4873else
4874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875for as_dir in $PATH
4876do
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4881 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 break 2
4884 fi
4885done
4886done
4887
4888fi
4889fi
4890RANLIB=$ac_cv_prog_RANLIB
4891if test -n "$RANLIB"; then
4892 echo "$as_me:$LINENO: result: $RANLIB" >&5
4893echo "${ECHO_T}$RANLIB" >&6
4894else
4895 echo "$as_me:$LINENO: result: no" >&5
4896echo "${ECHO_T}no" >&6
4897fi
4898
4899fi
4900if test -z "$ac_cv_prog_RANLIB"; then
4901 ac_ct_RANLIB=$RANLIB
4902 # Extract the first word of "ranlib", so it can be a program name with args.
4903set dummy ranlib; ac_word=$2
4904echo "$as_me:$LINENO: checking for $ac_word" >&5
4905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4906if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4908else
4909 if test -n "$ac_ct_RANLIB"; then
4910 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4911else
4912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913for as_dir in $PATH
4914do
4915 IFS=$as_save_IFS
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4919 ac_cv_prog_ac_ct_RANLIB="ranlib"
4920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 break 2
4922 fi
4923done
4924done
4925
4926 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4927fi
4928fi
4929ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4930if test -n "$ac_ct_RANLIB"; then
4931 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4932echo "${ECHO_T}$ac_ct_RANLIB" >&6
4933else
4934 echo "$as_me:$LINENO: result: no" >&5
4935echo "${ECHO_T}no" >&6
4936fi
4937
4938 RANLIB=$ac_ct_RANLIB
4939else
4940 RANLIB="$ac_cv_prog_RANLIB"
4941fi
4942
4943# Extract the first word of "rm", so it can be a program name with args.
4944set dummy rm; ac_word=$2
4945echo "$as_me:$LINENO: checking for $ac_word" >&5
4946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4947if test "${ac_cv_path_RM+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4949else
4950 case $RM in
4951 [\\/]* | ?:[\\/]*)
4952 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4953 ;;
4954 *)
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956for as_dir in $PATH
4957do
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4962 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 break 2
4965 fi
4966done
4967done
4968
4969 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4970 ;;
4971esac
4972fi
4973RM=$ac_cv_path_RM
4974
4975if test -n "$RM"; then
4976 echo "$as_me:$LINENO: result: $RM" >&5
4977echo "${ECHO_T}$RM" >&6
4978else
4979 echo "$as_me:$LINENO: result: no" >&5
4980echo "${ECHO_T}no" >&6
4981fi
4982
4983# Extract the first word of "sed", so it can be a program name with args.
4984set dummy sed; ac_word=$2
4985echo "$as_me:$LINENO: checking for $ac_word" >&5
4986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4987if test "${ac_cv_path_SED+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4989else
4990 case $SED in
4991 [\\/]* | ?:[\\/]*)
4992 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4993 ;;
4994 *)
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996for as_dir in $PATH
4997do
4998 IFS=$as_save_IFS
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5002 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 break 2
5005 fi
5006done
5007done
5008
5009 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5010 ;;
5011esac
5012fi
5013SED=$ac_cv_path_SED
5014
5015if test -n "$SED"; then
5016 echo "$as_me:$LINENO: result: $SED" >&5
5017echo "${ECHO_T}$SED" >&6
5018else
5019 echo "$as_me:$LINENO: result: no" >&5
5020echo "${ECHO_T}no" >&6
5021fi
5022
5023# Extract the first word of "tar", so it can be a program name with args.
5024set dummy tar; ac_word=$2
5025echo "$as_me:$LINENO: checking for $ac_word" >&5
5026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5027if test "${ac_cv_path_TAR+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5029else
5030 case $TAR in
5031 [\\/]* | ?:[\\/]*)
5032 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5033 ;;
5034 *)
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036for as_dir in $PATH
5037do
5038 IFS=$as_save_IFS
5039 test -z "$as_dir" && as_dir=.
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5042 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 break 2
5045 fi
5046done
5047done
5048
5049 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5050 ;;
5051esac
5052fi
5053TAR=$ac_cv_path_TAR
5054
5055if test -n "$TAR"; then
5056 echo "$as_me:$LINENO: result: $TAR" >&5
5057echo "${ECHO_T}$TAR" >&6
5058else
5059 echo "$as_me:$LINENO: result: no" >&5
5060echo "${ECHO_T}no" >&6
5061fi
5062
5063
5064# Find a good install program. We prefer a C program (faster),
5065# so one script is as good as another. But avoid the broken or
5066# incompatible versions:
5067# SysV /etc/install, /usr/sbin/install
5068# SunOS /usr/etc/install
5069# IRIX /sbin/install
5070# AIX /bin/install
5071# AmigaOS /C/install, which installs bootblocks on floppy discs
5072# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5073# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5074# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5075# OS/2's system install, which has a completely different semantic
5076# ./install, which can be erroneously created by make from ./install.sh.
5077echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5078echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5079if test -z "$INSTALL"; then
5080if test "${ac_cv_path_install+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5082else
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084for as_dir in $PATH
5085do
5086 IFS=$as_save_IFS
5087 test -z "$as_dir" && as_dir=.
5088 # Account for people who put trailing slashes in PATH elements.
5089case $as_dir/ in
5090 ./ | .// | /cC/* | \
5091 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5092 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5093 /usr/ucb/* ) ;;
5094 *)
5095 # OSF1 and SCO ODT 3.0 have their own names for install.
5096 # Don't use installbsd from OSF since it installs stuff as root
5097 # by default.
5098 for ac_prog in ginstall scoinst install; do
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5101 if test $ac_prog = install &&
5102 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5103 # AIX install. It has an incompatible calling convention.
5104 :
5105 elif test $ac_prog = install &&
5106 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5107 # program-specific install script used by HP pwplus--don't use.
5108 :
5109 else
5110 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5111 break 3
5112 fi
5113 fi
5114 done
5115 done
5116 ;;
5117esac
5118done
5119
5120
5121fi
5122 if test "${ac_cv_path_install+set}" = set; then
5123 INSTALL=$ac_cv_path_install
5124 else
5125 # As a last resort, use the slow shell script. We don't cache a
5126 # path for INSTALL within a source directory, because that will
5127 # break other packages using the cache if that directory is
5128 # removed, or if the path is relative.
5129 INSTALL=$ac_install_sh
5130 fi
5131fi
5132echo "$as_me:$LINENO: result: $INSTALL" >&5
5133echo "${ECHO_T}$INSTALL" >&6
5134
5135# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5136# It thinks the first close brace ends the variable substitution.
5137test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5138
5139test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5140
5141test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5142
5143
5144# Extract the first word of "bzip2", so it can be a program name with args.
5145set dummy bzip2; ac_word=$2
5146echo "$as_me:$LINENO: checking for $ac_word" >&5
5147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5148if test "${ac_cv_path_BZIP2+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5150else
5151 case $BZIP2 in
5152 [\\/]* | ?:[\\/]*)
5153 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5154 ;;
5155 *)
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157for as_dir in $PATH
5158do
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 break 2
5166 fi
5167done
5168done
5169
5170 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5171 ;;
5172esac
5173fi
5174BZIP2=$ac_cv_path_BZIP2
5175
5176if test -n "$BZIP2"; then
5177 echo "$as_me:$LINENO: result: $BZIP2" >&5
5178echo "${ECHO_T}$BZIP2" >&6
5179else
5180 echo "$as_me:$LINENO: result: no" >&5
5181echo "${ECHO_T}no" >&6
5182fi
5183
5184# Extract the first word of "dot", so it can be a program name with args.
5185set dummy dot; ac_word=$2
5186echo "$as_me:$LINENO: checking for $ac_word" >&5
5187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5188if test "${ac_cv_path_DOT+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5190else
5191 case $DOT in
5192 [\\/]* | ?:[\\/]*)
5193 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5194 ;;
5195 *)
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197for as_dir in $PATH
5198do
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 break 2
5206 fi
5207done
5208done
5209
5210 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5211 ;;
5212esac
5213fi
5214DOT=$ac_cv_path_DOT
5215
5216if test -n "$DOT"; then
5217 echo "$as_me:$LINENO: result: $DOT" >&5
5218echo "${ECHO_T}$DOT" >&6
5219else
5220 echo "$as_me:$LINENO: result: no" >&5
5221echo "${ECHO_T}no" >&6
5222fi
5223
5224# Extract the first word of "doxygen", so it can be a program name with args.
5225set dummy doxygen; ac_word=$2
5226echo "$as_me:$LINENO: checking for $ac_word" >&5
5227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5228if test "${ac_cv_path_DOXYGEN+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5230else
5231 case $DOXYGEN in
5232 [\\/]* | ?:[\\/]*)
5233 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5234 ;;
5235 *)
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237for as_dir in $PATH
5238do
5239 IFS=$as_save_IFS
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5243 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 break 2
5246 fi
5247done
5248done
5249
5250 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5251 ;;
5252esac
5253fi
5254DOXYGEN=$ac_cv_path_DOXYGEN
5255
5256if test -n "$DOXYGEN"; then
5257 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5258echo "${ECHO_T}$DOXYGEN" >&6
5259else
5260 echo "$as_me:$LINENO: result: no" >&5
5261echo "${ECHO_T}no" >&6
5262fi
5263
5264# Extract the first word of "etags", so it can be a program name with args.
5265set dummy etags; ac_word=$2
5266echo "$as_me:$LINENO: checking for $ac_word" >&5
5267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5268if test "${ac_cv_path_ETAGS+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5270else
5271 case $ETAGS in
5272 [\\/]* | ?:[\\/]*)
5273 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5274 ;;
5275 *)
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277for as_dir in $PATH
5278do
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 break 2
5286 fi
5287done
5288done
5289
5290 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5291 ;;
5292esac
5293fi
5294ETAGS=$ac_cv_path_ETAGS
5295
5296if test -n "$ETAGS"; then
5297 echo "$as_me:$LINENO: result: $ETAGS" >&5
5298echo "${ECHO_T}$ETAGS" >&6
5299else
5300 echo "$as_me:$LINENO: result: no" >&5
5301echo "${ECHO_T}no" >&6
5302fi
5303
5304# Extract the first word of "groff", so it can be a program name with args.
5305set dummy groff; ac_word=$2
5306echo "$as_me:$LINENO: checking for $ac_word" >&5
5307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5308if test "${ac_cv_path_GROFF+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5310else
5311 case $GROFF in
5312 [\\/]* | ?:[\\/]*)
5313 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5314 ;;
5315 *)
5316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317for as_dir in $PATH
5318do
5319 IFS=$as_save_IFS
5320 test -z "$as_dir" && as_dir=.
5321 for ac_exec_ext in '' $ac_executable_extensions; do
5322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5323 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5325 break 2
5326 fi
5327done
5328done
5329
5330 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5331 ;;
5332esac
5333fi
5334GROFF=$ac_cv_path_GROFF
5335
5336if test -n "$GROFF"; then
5337 echo "$as_me:$LINENO: result: $GROFF" >&5
5338echo "${ECHO_T}$GROFF" >&6
5339else
5340 echo "$as_me:$LINENO: result: no" >&5
5341echo "${ECHO_T}no" >&6
5342fi
5343
5344# Extract the first word of "gzip", so it can be a program name with args.
5345set dummy gzip; ac_word=$2
5346echo "$as_me:$LINENO: checking for $ac_word" >&5
5347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5348if test "${ac_cv_path_GZIP+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5350else
5351 case $GZIP in
5352 [\\/]* | ?:[\\/]*)
5353 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5354 ;;
5355 *)
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357for as_dir in $PATH
5358do
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5363 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 break 2
5366 fi
5367done
5368done
5369
5370 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5371 ;;
5372esac
5373fi
5374GZIP=$ac_cv_path_GZIP
5375
5376if test -n "$GZIP"; then
5377 echo "$as_me:$LINENO: result: $GZIP" >&5
5378echo "${ECHO_T}$GZIP" >&6
5379else
5380 echo "$as_me:$LINENO: result: no" >&5
5381echo "${ECHO_T}no" >&6
5382fi
5383
5384# Extract the first word of "pod2html", so it can be a program name with args.
5385set dummy pod2html; ac_word=$2
5386echo "$as_me:$LINENO: checking for $ac_word" >&5
5387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5388if test "${ac_cv_path_POD2HTML+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5390else
5391 case $POD2HTML in
5392 [\\/]* | ?:[\\/]*)
5393 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5394 ;;
5395 *)
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397for as_dir in $PATH
5398do
5399 IFS=$as_save_IFS
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5403 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5405 break 2
5406 fi
5407done
5408done
5409
5410 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5411 ;;
5412esac
5413fi
5414POD2HTML=$ac_cv_path_POD2HTML
5415
5416if test -n "$POD2HTML"; then
5417 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5418echo "${ECHO_T}$POD2HTML" >&6
5419else
5420 echo "$as_me:$LINENO: result: no" >&5
5421echo "${ECHO_T}no" >&6
5422fi
5423
5424# Extract the first word of "pod2man", so it can be a program name with args.
5425set dummy pod2man; ac_word=$2
5426echo "$as_me:$LINENO: checking for $ac_word" >&5
5427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5428if test "${ac_cv_path_POD2MAN+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5430else
5431 case $POD2MAN in
5432 [\\/]* | ?:[\\/]*)
5433 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5434 ;;
5435 *)
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437for as_dir in $PATH
5438do
5439 IFS=$as_save_IFS
5440 test -z "$as_dir" && as_dir=.
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5443 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5445 break 2
5446 fi
5447done
5448done
5449
5450 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5451 ;;
5452esac
5453fi
5454POD2MAN=$ac_cv_path_POD2MAN
5455
5456if test -n "$POD2MAN"; then
5457 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5458echo "${ECHO_T}$POD2MAN" >&6
5459else
5460 echo "$as_me:$LINENO: result: no" >&5
5461echo "${ECHO_T}no" >&6
5462fi
5463
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005464# Extract the first word of "runtest", so it can be a program name with args.
5465set dummy runtest; ac_word=$2
5466echo "$as_me:$LINENO: checking for $ac_word" >&5
5467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5468if test "${ac_cv_path_RUNTEST+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5470else
5471 case $RUNTEST in
5472 [\\/]* | ?:[\\/]*)
5473 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5474 ;;
5475 *)
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477for as_dir in $PATH
5478do
5479 IFS=$as_save_IFS
5480 test -z "$as_dir" && as_dir=.
5481 for ac_exec_ext in '' $ac_executable_extensions; do
5482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5483 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5485 break 2
5486 fi
5487done
5488done
5489
5490 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5491 ;;
5492esac
5493fi
5494RUNTEST=$ac_cv_path_RUNTEST
5495
5496if test -n "$RUNTEST"; then
5497 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5498echo "${ECHO_T}$RUNTEST" >&6
5499else
5500 echo "$as_me:$LINENO: result: no" >&5
5501echo "${ECHO_T}no" >&6
5502fi
5503
Reid Spencer0fcb9412004-11-30 08:11:54 +00005504
Reid Spencer0fcb9412004-11-30 08:11:54 +00005505no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005506echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5507echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005508
5509# Check whether --with-tclinclude or --without-tclinclude was given.
5510if test "${with_tclinclude+set}" = set; then
5511 withval="$with_tclinclude"
5512 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005513else
5514 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005515fi;
5516if test "${ac_cv_path_tclsh+set}" = set; then
5517 echo $ECHO_N "(cached) $ECHO_C" >&6
5518else
5519
5520if test x"${with_tclinclude}" != x ; then
5521 if test -f ${with_tclinclude}/tclsh ; then
5522 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5523 elif test -f ${with_tclinclude}/src/tclsh ; then
5524 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5525 else
5526 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5527echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5528 { (exit 1); exit 1; }; }
5529 fi
5530fi
5531
Reid Spencer0fcb9412004-11-30 08:11:54 +00005532if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005533 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005534echo "${ECHO_T}none" >&6
Reid Spencer582a23c2004-12-29 07:07:57 +00005535 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
Reid Spencercda35f82004-12-02 04:17:20 +00005536do
5537 # Extract the first word of "$ac_prog", so it can be a program name with args.
5538set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005539echo "$as_me:$LINENO: checking for $ac_word" >&5
5540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005541if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005542 echo $ECHO_N "(cached) $ECHO_C" >&6
5543else
Reid Spencercda35f82004-12-02 04:17:20 +00005544 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005545 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005546 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005547 ;;
5548 *)
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550for as_dir in $PATH
5551do
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005556 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 break 2
5559 fi
5560done
5561done
5562
5563 ;;
5564esac
5565fi
Reid Spencercda35f82004-12-02 04:17:20 +00005566TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005567
Reid Spencercda35f82004-12-02 04:17:20 +00005568if test -n "$TCLSH"; then
5569 echo "$as_me:$LINENO: result: $TCLSH" >&5
5570echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005571else
5572 echo "$as_me:$LINENO: result: no" >&5
5573echo "${ECHO_T}no" >&6
5574fi
5575
Reid Spencercda35f82004-12-02 04:17:20 +00005576 test -n "$TCLSH" && break
5577done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005578
Reid Spencercda35f82004-12-02 04:17:20 +00005579 if test x"${TCLSH}" = x ; then
5580 ac_cv_path_tclsh='';
5581 else
5582 ac_cv_path_tclsh="${TCLSH}";
5583 fi
5584else
5585 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5586echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5587 TCLSH="${ac_cv_path_tclsh}"
5588
5589fi
5590
5591fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005592
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005593# Extract the first word of "zip", so it can be a program name with args.
5594set dummy zip; ac_word=$2
5595echo "$as_me:$LINENO: checking for $ac_word" >&5
5596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5597if test "${ac_cv_path_ZIP+set}" = set; then
5598 echo $ECHO_N "(cached) $ECHO_C" >&6
5599else
5600 case $ZIP in
5601 [\\/]* | ?:[\\/]*)
5602 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5603 ;;
5604 *)
5605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606for as_dir in $PATH
5607do
5608 IFS=$as_save_IFS
5609 test -z "$as_dir" && as_dir=.
5610 for ac_exec_ext in '' $ac_executable_extensions; do
5611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5612 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5614 break 2
5615 fi
5616done
5617done
5618
5619 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5620 ;;
5621esac
5622fi
5623ZIP=$ac_cv_path_ZIP
5624
5625if test -n "$ZIP"; then
5626 echo "$as_me:$LINENO: result: $ZIP" >&5
5627echo "${ECHO_T}$ZIP" >&6
5628else
5629 echo "$as_me:$LINENO: result: no" >&5
5630echo "${ECHO_T}no" >&6
5631fi
5632
5633
5634echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5635echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5636if test "${llvm_cv_link_use_r+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5638else
5639 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005640ac_cpp='$CPP $CPPFLAGS'
5641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5643ac_compiler_gnu=$ac_cv_c_compiler_gnu
5644
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005645 oldcflags="$CFLAGS"
5646 CFLAGS="$CFLAGS -Wl,-R."
5647 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005648/* confdefs.h. */
5649_ACEOF
5650cat confdefs.h >>conftest.$ac_ext
5651cat >>conftest.$ac_ext <<_ACEOF
5652/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005653
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005654int
5655main ()
5656{
5657int main() { return 0; }
5658 ;
5659 return 0;
5660}
John Criswell47fdd832003-07-14 16:52:07 +00005661_ACEOF
5662rm -f conftest.$ac_objext conftest$ac_exeext
5663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005664 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005665 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005666 grep -v '^ *+' conftest.er1 >conftest.err
5667 rm -f conftest.er1
5668 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005670 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005671 { ac_try='test -z "$ac_c_werror_flag"
5672 || test ! -s conftest.err'
5673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 (eval $ac_try) 2>&5
5675 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; } &&
5678 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 (eval $ac_try) 2>&5
5681 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005684 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005685else
John Criswell47fdd832003-07-14 16:52:07 +00005686 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005687sed 's/^/| /' conftest.$ac_ext >&5
5688
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005689llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005690fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005691rm -f conftest.err conftest.$ac_objext \
5692 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005693 CFLAGS="$oldcflags"
5694 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005695ac_cpp='$CPP $CPPFLAGS'
5696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5698ac_compiler_gnu=$ac_cv_c_compiler_gnu
5699
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005700
John Criswell7a73b802003-06-30 21:59:07 +00005701fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005702echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5703echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5704if test "$llvm_cv_link_use_r" = yes ; then
5705
5706cat >>confdefs.h <<\_ACEOF
5707#define HAVE_LINK_R 1
5708_ACEOF
5709
John Criswell47fdd832003-07-14 16:52:07 +00005710 fi
John Criswell47fdd832003-07-14 16:52:07 +00005711
John Criswell47fdd832003-07-14 16:52:07 +00005712
John Criswell47fdd832003-07-14 16:52:07 +00005713
John Criswell7a73b802003-06-30 21:59:07 +00005714
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005715echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5716echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5717if test "${ac_cv_c_const+set}" = set; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5719else
5720 cat >conftest.$ac_ext <<_ACEOF
5721/* confdefs.h. */
5722_ACEOF
5723cat confdefs.h >>conftest.$ac_ext
5724cat >>conftest.$ac_ext <<_ACEOF
5725/* end confdefs.h. */
5726
5727int
5728main ()
5729{
5730/* FIXME: Include the comments suggested by Paul. */
5731#ifndef __cplusplus
5732 /* Ultrix mips cc rejects this. */
5733 typedef int charset[2];
5734 const charset x;
5735 /* SunOS 4.1.1 cc rejects this. */
5736 char const *const *ccp;
5737 char **p;
5738 /* NEC SVR4.0.2 mips cc rejects this. */
5739 struct point {int x, y;};
5740 static struct point const zero = {0,0};
5741 /* AIX XL C 1.02.0.0 rejects this.
5742 It does not let you subtract one const X* pointer from another in
5743 an arm of an if-expression whose if-part is not a constant
5744 expression */
5745 const char *g = "string";
5746 ccp = &g + (g ? g-g : 0);
5747 /* HPUX 7.0 cc rejects these. */
5748 ++ccp;
5749 p = (char**) ccp;
5750 ccp = (char const *const *) p;
5751 { /* SCO 3.2v4 cc rejects this. */
5752 char *t;
5753 char const *s = 0 ? (char *) 0 : (char const *) 0;
5754
5755 *t++ = 0;
5756 }
5757 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5758 int x[] = {25, 17};
5759 const int *foo = &x[0];
5760 ++foo;
5761 }
5762 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5763 typedef const int *iptr;
5764 iptr p = 0;
5765 ++p;
5766 }
5767 { /* AIX XL C 1.02.0.0 rejects this saying
5768 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5769 struct s { int j; const int *ap[3]; };
5770 struct s *b; b->j = 5;
5771 }
5772 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5773 const int foo = 10;
5774 }
5775#endif
5776
5777 ;
5778 return 0;
5779}
5780_ACEOF
5781rm -f conftest.$ac_objext
5782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5783 (eval $ac_compile) 2>conftest.er1
5784 ac_status=$?
5785 grep -v '^ *+' conftest.er1 >conftest.err
5786 rm -f conftest.er1
5787 cat conftest.err >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } &&
5790 { ac_try='test -z "$ac_c_werror_flag"
5791 || test ! -s conftest.err'
5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793 (eval $ac_try) 2>&5
5794 ac_status=$?
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; } &&
5797 { ac_try='test -s conftest.$ac_objext'
5798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 (eval $ac_try) 2>&5
5800 ac_status=$?
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; }; then
5803 ac_cv_c_const=yes
5804else
5805 echo "$as_me: failed program was:" >&5
5806sed 's/^/| /' conftest.$ac_ext >&5
5807
5808ac_cv_c_const=no
5809fi
5810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5811fi
5812echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5813echo "${ECHO_T}$ac_cv_c_const" >&6
5814if test $ac_cv_c_const = no; then
5815
5816cat >>confdefs.h <<\_ACEOF
5817#define const
5818_ACEOF
5819
5820fi
5821
5822
5823echo "$as_me:$LINENO: checking for egrep" >&5
5824echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5825if test "${ac_cv_prog_egrep+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5827else
5828 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5829 then ac_cv_prog_egrep='grep -E'
5830 else ac_cv_prog_egrep='egrep'
5831 fi
5832fi
5833echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5834echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5835 EGREP=$ac_cv_prog_egrep
5836
John Criswell7a73b802003-06-30 21:59:07 +00005837
5838echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5839echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5840if test "${ac_cv_header_stdc+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5842else
5843 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005844/* confdefs.h. */
5845_ACEOF
5846cat confdefs.h >>conftest.$ac_ext
5847cat >>conftest.$ac_ext <<_ACEOF
5848/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005849#include <stdlib.h>
5850#include <stdarg.h>
5851#include <string.h>
5852#include <float.h>
5853
John Criswell0c38eaf2003-09-10 15:17:25 +00005854int
5855main ()
5856{
5857
5858 ;
5859 return 0;
5860}
John Criswell7a73b802003-06-30 21:59:07 +00005861_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005862rm -f conftest.$ac_objext
5863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005864 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005865 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005866 grep -v '^ *+' conftest.er1 >conftest.err
5867 rm -f conftest.er1
5868 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005870 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005871 { ac_try='test -z "$ac_c_werror_flag"
5872 || test ! -s conftest.err'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 (eval $ac_try) 2>&5
5875 ac_status=$?
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; } &&
5878 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00005879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880 (eval $ac_try) 2>&5
5881 ac_status=$?
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00005884 ac_cv_header_stdc=yes
5885else
5886 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005887sed 's/^/| /' conftest.$ac_ext >&5
5888
5889ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00005890fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005892
5893if test $ac_cv_header_stdc = yes; then
5894 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5895 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005896/* confdefs.h. */
5897_ACEOF
5898cat confdefs.h >>conftest.$ac_ext
5899cat >>conftest.$ac_ext <<_ACEOF
5900/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005901#include <string.h>
5902
5903_ACEOF
5904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005905 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005906 :
5907else
5908 ac_cv_header_stdc=no
5909fi
5910rm -f conftest*
5911
5912fi
5913
5914if test $ac_cv_header_stdc = yes; then
5915 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5916 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005917/* confdefs.h. */
5918_ACEOF
5919cat confdefs.h >>conftest.$ac_ext
5920cat >>conftest.$ac_ext <<_ACEOF
5921/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005922#include <stdlib.h>
5923
5924_ACEOF
5925if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005926 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005927 :
5928else
5929 ac_cv_header_stdc=no
5930fi
5931rm -f conftest*
5932
5933fi
5934
5935if test $ac_cv_header_stdc = yes; then
5936 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5937 if test "$cross_compiling" = yes; then
5938 :
5939else
5940 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005941/* confdefs.h. */
5942_ACEOF
5943cat confdefs.h >>conftest.$ac_ext
5944cat >>conftest.$ac_ext <<_ACEOF
5945/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005946#include <ctype.h>
5947#if ((' ' & 0x0FF) == 0x020)
5948# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5949# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5950#else
John Criswell0c38eaf2003-09-10 15:17:25 +00005951# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00005952 (('a' <= (c) && (c) <= 'i') \
5953 || ('j' <= (c) && (c) <= 'r') \
5954 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00005955# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5956#endif
5957
5958#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5959int
5960main ()
5961{
5962 int i;
5963 for (i = 0; i < 256; i++)
5964 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00005965 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00005966 exit(2);
5967 exit (0);
5968}
5969_ACEOF
5970rm -f conftest$ac_exeext
5971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5972 (eval $ac_link) 2>&5
5973 ac_status=$?
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5977 (eval $ac_try) 2>&5
5978 ac_status=$?
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); }; }; then
5981 :
5982else
5983 echo "$as_me: program exited with status $ac_status" >&5
5984echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005985sed 's/^/| /' conftest.$ac_ext >&5
5986
John Criswell7a73b802003-06-30 21:59:07 +00005987( exit $ac_status )
5988ac_cv_header_stdc=no
5989fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005990rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005991fi
5992fi
5993fi
5994echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5995echo "${ECHO_T}$ac_cv_header_stdc" >&6
5996if test $ac_cv_header_stdc = yes; then
5997
5998cat >>confdefs.h <<\_ACEOF
5999#define STDC_HEADERS 1
6000_ACEOF
6001
6002fi
6003
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006004
6005
6006
6007
6008
6009ac_header_dirent=no
6010for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6011 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6012echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6013echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6014if eval "test \"\${$as_ac_Header+set}\" = set"; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6016else
6017 cat >conftest.$ac_ext <<_ACEOF
6018/* confdefs.h. */
6019_ACEOF
6020cat confdefs.h >>conftest.$ac_ext
6021cat >>conftest.$ac_ext <<_ACEOF
6022/* end confdefs.h. */
6023#include <sys/types.h>
6024#include <$ac_hdr>
6025
6026int
6027main ()
6028{
6029if ((DIR *) 0)
6030return 0;
6031 ;
6032 return 0;
6033}
6034_ACEOF
6035rm -f conftest.$ac_objext
6036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6037 (eval $ac_compile) 2>conftest.er1
6038 ac_status=$?
6039 grep -v '^ *+' conftest.er1 >conftest.err
6040 rm -f conftest.er1
6041 cat conftest.err >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } &&
6044 { ac_try='test -z "$ac_c_werror_flag"
6045 || test ! -s conftest.err'
6046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047 (eval $ac_try) 2>&5
6048 ac_status=$?
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); }; } &&
6051 { ac_try='test -s conftest.$ac_objext'
6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053 (eval $ac_try) 2>&5
6054 ac_status=$?
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; }; then
6057 eval "$as_ac_Header=yes"
6058else
6059 echo "$as_me: failed program was:" >&5
6060sed 's/^/| /' conftest.$ac_ext >&5
6061
6062eval "$as_ac_Header=no"
6063fi
6064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6065fi
6066echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6067echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6068if test `eval echo '${'$as_ac_Header'}'` = yes; then
6069 cat >>confdefs.h <<_ACEOF
6070#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6071_ACEOF
6072
6073ac_header_dirent=$ac_hdr; break
6074fi
6075
6076done
6077# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6078if test $ac_header_dirent = dirent.h; then
6079 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6080echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6081if test "${ac_cv_search_opendir+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6083else
6084 ac_func_search_save_LIBS=$LIBS
6085ac_cv_search_opendir=no
6086cat >conftest.$ac_ext <<_ACEOF
6087/* confdefs.h. */
6088_ACEOF
6089cat confdefs.h >>conftest.$ac_ext
6090cat >>conftest.$ac_ext <<_ACEOF
6091/* end confdefs.h. */
6092
6093/* Override any gcc2 internal prototype to avoid an error. */
6094#ifdef __cplusplus
6095extern "C"
6096#endif
6097/* We use char because int might match the return type of a gcc2
6098 builtin and then its argument prototype would still apply. */
6099char opendir ();
6100int
6101main ()
6102{
6103opendir ();
6104 ;
6105 return 0;
6106}
6107_ACEOF
6108rm -f conftest.$ac_objext conftest$ac_exeext
6109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110 (eval $ac_link) 2>conftest.er1
6111 ac_status=$?
6112 grep -v '^ *+' conftest.er1 >conftest.err
6113 rm -f conftest.er1
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } &&
6117 { ac_try='test -z "$ac_c_werror_flag"
6118 || test ! -s conftest.err'
6119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120 (eval $ac_try) 2>&5
6121 ac_status=$?
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; } &&
6124 { ac_try='test -s conftest$ac_exeext'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126 (eval $ac_try) 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
6130 ac_cv_search_opendir="none required"
6131else
6132 echo "$as_me: failed program was:" >&5
6133sed 's/^/| /' conftest.$ac_ext >&5
6134
6135fi
6136rm -f conftest.err conftest.$ac_objext \
6137 conftest$ac_exeext conftest.$ac_ext
6138if test "$ac_cv_search_opendir" = no; then
6139 for ac_lib in dir; do
6140 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6141 cat >conftest.$ac_ext <<_ACEOF
6142/* confdefs.h. */
6143_ACEOF
6144cat confdefs.h >>conftest.$ac_ext
6145cat >>conftest.$ac_ext <<_ACEOF
6146/* end confdefs.h. */
6147
6148/* Override any gcc2 internal prototype to avoid an error. */
6149#ifdef __cplusplus
6150extern "C"
6151#endif
6152/* We use char because int might match the return type of a gcc2
6153 builtin and then its argument prototype would still apply. */
6154char opendir ();
6155int
6156main ()
6157{
6158opendir ();
6159 ;
6160 return 0;
6161}
6162_ACEOF
6163rm -f conftest.$ac_objext conftest$ac_exeext
6164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6165 (eval $ac_link) 2>conftest.er1
6166 ac_status=$?
6167 grep -v '^ *+' conftest.er1 >conftest.err
6168 rm -f conftest.er1
6169 cat conftest.err >&5
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); } &&
6172 { ac_try='test -z "$ac_c_werror_flag"
6173 || test ! -s conftest.err'
6174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175 (eval $ac_try) 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; } &&
6179 { ac_try='test -s conftest$ac_exeext'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 (eval $ac_try) 2>&5
6182 ac_status=$?
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; }; then
6185 ac_cv_search_opendir="-l$ac_lib"
6186break
6187else
6188 echo "$as_me: failed program was:" >&5
6189sed 's/^/| /' conftest.$ac_ext >&5
6190
6191fi
6192rm -f conftest.err conftest.$ac_objext \
6193 conftest$ac_exeext conftest.$ac_ext
6194 done
6195fi
6196LIBS=$ac_func_search_save_LIBS
6197fi
6198echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6199echo "${ECHO_T}$ac_cv_search_opendir" >&6
6200if test "$ac_cv_search_opendir" != no; then
6201 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6202
6203fi
6204
6205else
6206 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6207echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6208if test "${ac_cv_search_opendir+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6210else
6211 ac_func_search_save_LIBS=$LIBS
6212ac_cv_search_opendir=no
6213cat >conftest.$ac_ext <<_ACEOF
6214/* confdefs.h. */
6215_ACEOF
6216cat confdefs.h >>conftest.$ac_ext
6217cat >>conftest.$ac_ext <<_ACEOF
6218/* end confdefs.h. */
6219
6220/* Override any gcc2 internal prototype to avoid an error. */
6221#ifdef __cplusplus
6222extern "C"
6223#endif
6224/* We use char because int might match the return type of a gcc2
6225 builtin and then its argument prototype would still apply. */
6226char opendir ();
6227int
6228main ()
6229{
6230opendir ();
6231 ;
6232 return 0;
6233}
6234_ACEOF
6235rm -f conftest.$ac_objext conftest$ac_exeext
6236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6237 (eval $ac_link) 2>conftest.er1
6238 ac_status=$?
6239 grep -v '^ *+' conftest.er1 >conftest.err
6240 rm -f conftest.er1
6241 cat conftest.err >&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } &&
6244 { ac_try='test -z "$ac_c_werror_flag"
6245 || test ! -s conftest.err'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 (eval $ac_try) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; } &&
6251 { ac_try='test -s conftest$ac_exeext'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 (eval $ac_try) 2>&5
6254 ac_status=$?
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; }; then
6257 ac_cv_search_opendir="none required"
6258else
6259 echo "$as_me: failed program was:" >&5
6260sed 's/^/| /' conftest.$ac_ext >&5
6261
6262fi
6263rm -f conftest.err conftest.$ac_objext \
6264 conftest$ac_exeext conftest.$ac_ext
6265if test "$ac_cv_search_opendir" = no; then
6266 for ac_lib in x; do
6267 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6268 cat >conftest.$ac_ext <<_ACEOF
6269/* confdefs.h. */
6270_ACEOF
6271cat confdefs.h >>conftest.$ac_ext
6272cat >>conftest.$ac_ext <<_ACEOF
6273/* end confdefs.h. */
6274
6275/* Override any gcc2 internal prototype to avoid an error. */
6276#ifdef __cplusplus
6277extern "C"
6278#endif
6279/* We use char because int might match the return type of a gcc2
6280 builtin and then its argument prototype would still apply. */
6281char opendir ();
6282int
6283main ()
6284{
6285opendir ();
6286 ;
6287 return 0;
6288}
6289_ACEOF
6290rm -f conftest.$ac_objext conftest$ac_exeext
6291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6292 (eval $ac_link) 2>conftest.er1
6293 ac_status=$?
6294 grep -v '^ *+' conftest.er1 >conftest.err
6295 rm -f conftest.er1
6296 cat conftest.err >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } &&
6299 { ac_try='test -z "$ac_c_werror_flag"
6300 || test ! -s conftest.err'
6301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302 (eval $ac_try) 2>&5
6303 ac_status=$?
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; } &&
6306 { ac_try='test -s conftest$ac_exeext'
6307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308 (eval $ac_try) 2>&5
6309 ac_status=$?
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; }; then
6312 ac_cv_search_opendir="-l$ac_lib"
6313break
6314else
6315 echo "$as_me: failed program was:" >&5
6316sed 's/^/| /' conftest.$ac_ext >&5
6317
6318fi
6319rm -f conftest.err conftest.$ac_objext \
6320 conftest$ac_exeext conftest.$ac_ext
6321 done
6322fi
6323LIBS=$ac_func_search_save_LIBS
6324fi
6325echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6326echo "${ECHO_T}$ac_cv_search_opendir" >&6
6327if test "$ac_cv_search_opendir" != no; then
6328 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6329
6330fi
6331
6332fi
6333
John Criswell7a73b802003-06-30 21:59:07 +00006334# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006345 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006346do
6347as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6348echo "$as_me:$LINENO: checking for $ac_header" >&5
6349echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6350if eval "test \"\${$as_ac_Header+set}\" = set"; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6352else
6353 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006354/* confdefs.h. */
6355_ACEOF
6356cat confdefs.h >>conftest.$ac_ext
6357cat >>conftest.$ac_ext <<_ACEOF
6358/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006359$ac_includes_default
6360
6361#include <$ac_header>
6362_ACEOF
6363rm -f conftest.$ac_objext
6364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006365 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006366 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006367 grep -v '^ *+' conftest.er1 >conftest.err
6368 rm -f conftest.er1
6369 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006372 { ac_try='test -z "$ac_c_werror_flag"
6373 || test ! -s conftest.err'
6374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375 (eval $ac_try) 2>&5
6376 ac_status=$?
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); }; } &&
6379 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381 (eval $ac_try) 2>&5
6382 ac_status=$?
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }; }; then
6385 eval "$as_ac_Header=yes"
6386else
6387 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006388sed 's/^/| /' conftest.$ac_ext >&5
6389
John Criswell7a73b802003-06-30 21:59:07 +00006390eval "$as_ac_Header=no"
6391fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006393fi
6394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6396if test `eval echo '${'$as_ac_Header'}'` = yes; then
6397 cat >>confdefs.h <<_ACEOF
6398#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6399_ACEOF
6400
6401fi
6402
6403done
6404
6405
6406
6407for ac_header in dlfcn.h
6408do
6409as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006410if eval "test \"\${$as_ac_Header+set}\" = set"; then
6411 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6413if eval "test \"\${$as_ac_Header+set}\" = set"; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006415fi
6416echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6417echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006418else
Brian Gaeke0a621332004-09-08 20:38:05 +00006419 # Is the header compilable?
6420echo "$as_me:$LINENO: checking $ac_header usability" >&5
6421echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6422cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006423/* confdefs.h. */
6424_ACEOF
6425cat confdefs.h >>conftest.$ac_ext
6426cat >>conftest.$ac_ext <<_ACEOF
6427/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006428$ac_includes_default
6429#include <$ac_header>
6430_ACEOF
6431rm -f conftest.$ac_objext
6432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006433 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006434 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006435 grep -v '^ *+' conftest.er1 >conftest.err
6436 rm -f conftest.er1
6437 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006440 { ac_try='test -z "$ac_c_werror_flag"
6441 || test ! -s conftest.err'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443 (eval $ac_try) 2>&5
6444 ac_status=$?
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; } &&
6447 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449 (eval $ac_try) 2>&5
6450 ac_status=$?
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006453 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006454else
6455 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006456sed 's/^/| /' conftest.$ac_ext >&5
6457
Brian Gaeke0a621332004-09-08 20:38:05 +00006458ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006459fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006461echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6462echo "${ECHO_T}$ac_header_compiler" >&6
6463
6464# Is the header present?
6465echo "$as_me:$LINENO: checking $ac_header presence" >&5
6466echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6467cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006468/* confdefs.h. */
6469_ACEOF
6470cat confdefs.h >>conftest.$ac_ext
6471cat >>conftest.$ac_ext <<_ACEOF
6472/* end confdefs.h. */
6473#include <$ac_header>
6474_ACEOF
6475if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6477 ac_status=$?
6478 grep -v '^ *+' conftest.er1 >conftest.err
6479 rm -f conftest.er1
6480 cat conftest.err >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } >/dev/null; then
6483 if test -s conftest.err; then
6484 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006486 else
6487 ac_cpp_err=
6488 fi
6489else
6490 ac_cpp_err=yes
6491fi
6492if test -z "$ac_cpp_err"; then
6493 ac_header_preproc=yes
6494else
6495 echo "$as_me: failed program was:" >&5
6496sed 's/^/| /' conftest.$ac_ext >&5
6497
6498 ac_header_preproc=no
6499fi
6500rm -f conftest.err conftest.$ac_ext
6501echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6502echo "${ECHO_T}$ac_header_preproc" >&6
6503
6504# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006505case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6506 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6508echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6510echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6511 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006512 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006513 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6515echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6517echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6518 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6519echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6520 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6521echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6523echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006524 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6525echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006526 (
6527 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006528## ----------------------------------- ##
6529## Report this to llvmbugs@cs.uiuc.edu ##
6530## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006531_ASBOX
6532 ) |
6533 sed "s/^/$as_me: WARNING: /" >&2
6534 ;;
6535esac
6536echo "$as_me:$LINENO: checking for $ac_header" >&5
6537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6538if eval "test \"\${$as_ac_Header+set}\" = set"; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6540else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006541 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006542fi
6543echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6544echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006545
6546fi
John Criswell7a73b802003-06-30 21:59:07 +00006547if test `eval echo '${'$as_ac_Header'}'` = yes; then
6548 cat >>confdefs.h <<_ACEOF
6549#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6550_ACEOF
6551
6552fi
6553
6554done
6555
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006556# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6557if test "${enable_ltdl_install+set}" = set; then
6558 enableval="$enable_ltdl_install"
6559
6560fi;
6561
6562
6563
6564if test x"${enable_ltdl_install-no}" != xno; then
6565 INSTALL_LTDL_TRUE=
6566 INSTALL_LTDL_FALSE='#'
6567else
6568 INSTALL_LTDL_TRUE='#'
6569 INSTALL_LTDL_FALSE=
6570fi
6571
6572
6573
6574if test x"${enable_ltdl_convenience-no}" != xno; then
6575 CONVENIENCE_LTDL_TRUE=
6576 CONVENIENCE_LTDL_FALSE='#'
6577else
6578 CONVENIENCE_LTDL_TRUE='#'
6579 CONVENIENCE_LTDL_FALSE=
6580fi
6581
6582
6583echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6584echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6585library_names_spec=
6586libname_spec='lib$name'
6587soname_spec=
6588shrext_cmds=".so"
6589postinstall_cmds=
6590postuninstall_cmds=
6591finish_cmds=
6592finish_eval=
6593shlibpath_var=
6594shlibpath_overrides_runpath=unknown
6595version_type=none
6596dynamic_linker="$host_os ld.so"
6597sys_lib_dlsearch_path_spec="/lib /usr/lib"
6598if test "$GCC" = yes; then
6599 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6600 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6601 # if the path contains ";" then we assume it to be the separator
6602 # otherwise default to the standard path separator (i.e. ":") - it is
6603 # assumed that no part of a normal pathname contains ";" but that should
6604 # okay in the real world where ";" in dirpaths is itself problematic.
6605 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6606 else
6607 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6608 fi
6609else
6610 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6611fi
6612need_lib_prefix=unknown
6613hardcode_into_libs=no
6614
6615# when you set need_version to no, make sure it does not cause -set_version
6616# flags to be left without arguments
6617need_version=unknown
6618
6619case $host_os in
6620aix3*)
6621 version_type=linux
6622 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6623 shlibpath_var=LIBPATH
6624
6625 # AIX 3 has no versioning support, so we append a major version to the name.
6626 soname_spec='${libname}${release}${shared_ext}$major'
6627 ;;
6628
6629aix4* | aix5*)
6630 version_type=linux
6631 need_lib_prefix=no
6632 need_version=no
6633 hardcode_into_libs=yes
6634 if test "$host_cpu" = ia64; then
6635 # AIX 5 supports IA64
6636 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6637 shlibpath_var=LD_LIBRARY_PATH
6638 else
6639 # With GCC up to 2.95.x, collect2 would create an import file
6640 # for dependence libraries. The import file would start with
6641 # the line `#! .'. This would cause the generated library to
6642 # depend on `.', always an invalid library. This was fixed in
6643 # development snapshots of GCC prior to 3.0.
6644 case $host_os in
6645 aix4 | aix4.[01] | aix4.[01].*)
6646 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6647 echo ' yes '
6648 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6649 :
6650 else
6651 can_build_shared=no
6652 fi
6653 ;;
6654 esac
6655 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6656 # soname into executable. Probably we can add versioning support to
6657 # collect2, so additional links can be useful in future.
6658 if test "$aix_use_runtimelinking" = yes; then
6659 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6660 # instead of lib<name>.a to let people know that these are not
6661 # typical AIX shared libraries.
6662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6663 else
6664 # We preserve .a as extension for shared libraries through AIX4.2
6665 # and later when we are not doing run time linking.
6666 library_names_spec='${libname}${release}.a $libname.a'
6667 soname_spec='${libname}${release}${shared_ext}$major'
6668 fi
6669 shlibpath_var=LIBPATH
6670 fi
6671 ;;
6672
6673amigaos*)
6674 library_names_spec='$libname.ixlibrary $libname.a'
6675 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6676 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'
6677 ;;
6678
6679beos*)
6680 library_names_spec='${libname}${shared_ext}'
6681 dynamic_linker="$host_os ld.so"
6682 shlibpath_var=LIBRARY_PATH
6683 ;;
6684
6685bsdi[45]*)
6686 version_type=linux
6687 need_version=no
6688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6689 soname_spec='${libname}${release}${shared_ext}$major'
6690 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6691 shlibpath_var=LD_LIBRARY_PATH
6692 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6693 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6694 # the default ld.so.conf also contains /usr/contrib/lib and
6695 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6696 # libtool to hard-code these into programs
6697 ;;
6698
6699cygwin* | mingw* | pw32*)
6700 version_type=windows
6701 shrext_cmds=".dll"
6702 need_version=no
6703 need_lib_prefix=no
6704
6705 case $GCC,$host_os in
6706 yes,cygwin* | yes,mingw* | yes,pw32*)
6707 library_names_spec='$libname.dll.a'
6708 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6709 postinstall_cmds='base_file=`basename \${file}`~
6710 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6711 dldir=$destdir/`dirname \$dlpath`~
6712 test -d \$dldir || mkdir -p \$dldir~
6713 $install_prog $dir/$dlname \$dldir/$dlname'
6714 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6715 dlpath=$dir/\$dldll~
6716 $rm \$dlpath'
6717 shlibpath_overrides_runpath=yes
6718
6719 case $host_os in
6720 cygwin*)
6721 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6722 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6723 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6724 ;;
6725 mingw*)
6726 # MinGW DLLs use traditional 'lib' prefix
6727 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6728 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6729 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6730 # It is most probably a Windows format PATH printed by
6731 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6732 # path with ; separators, and with drive letters. We can handle the
6733 # drive letters (cygwin fileutils understands them), so leave them,
6734 # especially as we might pass files found there to a mingw objdump,
6735 # which wouldn't understand a cygwinified path. Ahh.
6736 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6737 else
6738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6739 fi
6740 ;;
6741 pw32*)
6742 # pw32 DLLs use 'pw' prefix rather than 'lib'
6743 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6744 ;;
6745 esac
6746 ;;
6747
6748 *)
6749 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6750 ;;
6751 esac
6752 dynamic_linker='Win32 ld.exe'
6753 # FIXME: first we should search . and the directory the executable is in
6754 shlibpath_var=PATH
6755 ;;
6756
6757darwin* | rhapsody*)
6758 dynamic_linker="$host_os dyld"
6759 version_type=darwin
6760 need_lib_prefix=no
6761 need_version=no
6762 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6763 soname_spec='${libname}${release}${major}$shared_ext'
6764 shlibpath_overrides_runpath=yes
6765 shlibpath_var=DYLD_LIBRARY_PATH
6766 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6767 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6768 if test "$GCC" = yes; then
6769 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"`
6770 else
6771 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6772 fi
6773 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6774 ;;
6775
6776dgux*)
6777 version_type=linux
6778 need_lib_prefix=no
6779 need_version=no
6780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6781 soname_spec='${libname}${release}${shared_ext}$major'
6782 shlibpath_var=LD_LIBRARY_PATH
6783 ;;
6784
6785freebsd1*)
6786 dynamic_linker=no
6787 ;;
6788
6789kfreebsd*-gnu)
6790 version_type=linux
6791 need_lib_prefix=no
6792 need_version=no
6793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6794 soname_spec='${libname}${release}${shared_ext}$major'
6795 shlibpath_var=LD_LIBRARY_PATH
6796 shlibpath_overrides_runpath=no
6797 hardcode_into_libs=yes
6798 dynamic_linker='GNU ld.so'
6799 ;;
6800
6801freebsd*)
6802 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6803 version_type=freebsd-$objformat
6804 case $version_type in
6805 freebsd-elf*)
6806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6807 need_version=no
6808 need_lib_prefix=no
6809 ;;
6810 freebsd-*)
6811 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6812 need_version=yes
6813 ;;
6814 esac
6815 shlibpath_var=LD_LIBRARY_PATH
6816 case $host_os in
6817 freebsd2*)
6818 shlibpath_overrides_runpath=yes
6819 ;;
6820 freebsd3.01* | freebsdelf3.01*)
6821 shlibpath_overrides_runpath=yes
6822 hardcode_into_libs=yes
6823 ;;
6824 *) # from 3.2 on
6825 shlibpath_overrides_runpath=no
6826 hardcode_into_libs=yes
6827 ;;
6828 esac
6829 ;;
6830
6831gnu*)
6832 version_type=linux
6833 need_lib_prefix=no
6834 need_version=no
6835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6836 soname_spec='${libname}${release}${shared_ext}$major'
6837 shlibpath_var=LD_LIBRARY_PATH
6838 hardcode_into_libs=yes
6839 ;;
6840
6841hpux9* | hpux10* | hpux11*)
6842 # Give a soname corresponding to the major version so that dld.sl refuses to
6843 # link against other versions.
6844 version_type=sunos
6845 need_lib_prefix=no
6846 need_version=no
6847 case "$host_cpu" in
6848 ia64*)
6849 shrext_cmds='.so'
6850 hardcode_into_libs=yes
6851 dynamic_linker="$host_os dld.so"
6852 shlibpath_var=LD_LIBRARY_PATH
6853 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6855 soname_spec='${libname}${release}${shared_ext}$major'
6856 if test "X$HPUX_IA64_MODE" = X32; then
6857 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6858 else
6859 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6860 fi
6861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6862 ;;
6863 hppa*64*)
6864 shrext_cmds='.sl'
6865 hardcode_into_libs=yes
6866 dynamic_linker="$host_os dld.sl"
6867 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6868 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6870 soname_spec='${libname}${release}${shared_ext}$major'
6871 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6872 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6873 ;;
6874 *)
6875 shrext_cmds='.sl'
6876 dynamic_linker="$host_os dld.sl"
6877 shlibpath_var=SHLIB_PATH
6878 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6880 soname_spec='${libname}${release}${shared_ext}$major'
6881 ;;
6882 esac
6883 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6884 postinstall_cmds='chmod 555 $lib'
6885 ;;
6886
6887irix5* | irix6* | nonstopux*)
6888 case $host_os in
6889 nonstopux*) version_type=nonstopux ;;
6890 *)
6891 if test "$lt_cv_prog_gnu_ld" = yes; then
6892 version_type=linux
6893 else
6894 version_type=irix
6895 fi ;;
6896 esac
6897 need_lib_prefix=no
6898 need_version=no
6899 soname_spec='${libname}${release}${shared_ext}$major'
6900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6901 case $host_os in
6902 irix5* | nonstopux*)
6903 libsuff= shlibsuff=
6904 ;;
6905 *)
6906 case $LD in # libtool.m4 will add one of these switches to LD
6907 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6908 libsuff= shlibsuff= libmagic=32-bit;;
6909 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6910 libsuff=32 shlibsuff=N32 libmagic=N32;;
6911 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6912 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6913 *) libsuff= shlibsuff= libmagic=never-match;;
6914 esac
6915 ;;
6916 esac
6917 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6918 shlibpath_overrides_runpath=no
6919 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6920 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6921 hardcode_into_libs=yes
6922 ;;
6923
6924# No shared lib support for Linux oldld, aout, or coff.
6925linux*oldld* | linux*aout* | linux*coff*)
6926 dynamic_linker=no
6927 ;;
6928
6929# This must be Linux ELF.
6930linux*)
6931 version_type=linux
6932 need_lib_prefix=no
6933 need_version=no
6934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6935 soname_spec='${libname}${release}${shared_ext}$major'
6936 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6937 shlibpath_var=LD_LIBRARY_PATH
6938 shlibpath_overrides_runpath=no
6939 # This implies no fast_install, which is unacceptable.
6940 # Some rework will be needed to allow for fast_install
6941 # before this can be enabled.
6942 hardcode_into_libs=yes
6943
6944 # Append ld.so.conf contents to the search path
6945 if test -f /etc/ld.so.conf; then
6946 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6947 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6948 fi
6949
6950 # We used to test for /lib/ld.so.1 and disable shared libraries on
6951 # powerpc, because MkLinux only supported shared libraries with the
6952 # GNU dynamic linker. Since this was broken with cross compilers,
6953 # most powerpc-linux boxes support dynamic linking these days and
6954 # people can always --disable-shared, the test was removed, and we
6955 # assume the GNU/Linux dynamic linker is in use.
6956 dynamic_linker='GNU/Linux ld.so'
6957 ;;
6958
6959knetbsd*-gnu)
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=no
6967 hardcode_into_libs=yes
6968 dynamic_linker='GNU ld.so'
6969 ;;
6970
6971netbsd*)
6972 version_type=sunos
6973 need_lib_prefix=no
6974 need_version=no
6975 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6978 dynamic_linker='NetBSD (a.out) ld.so'
6979 else
6980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6981 soname_spec='${libname}${release}${shared_ext}$major'
6982 dynamic_linker='NetBSD ld.elf_so'
6983 fi
6984 shlibpath_var=LD_LIBRARY_PATH
6985 shlibpath_overrides_runpath=yes
6986 hardcode_into_libs=yes
6987 ;;
6988
6989newsos6)
6990 version_type=linux
6991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6992 shlibpath_var=LD_LIBRARY_PATH
6993 shlibpath_overrides_runpath=yes
6994 ;;
6995
6996nto-qnx*)
6997 version_type=linux
6998 need_lib_prefix=no
6999 need_version=no
7000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7001 soname_spec='${libname}${release}${shared_ext}$major'
7002 shlibpath_var=LD_LIBRARY_PATH
7003 shlibpath_overrides_runpath=yes
7004 ;;
7005
7006openbsd*)
7007 version_type=sunos
7008 need_lib_prefix=no
7009 need_version=no
7010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7012 shlibpath_var=LD_LIBRARY_PATH
7013 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7014 case $host_os in
7015 openbsd2.[89] | openbsd2.[89].*)
7016 shlibpath_overrides_runpath=no
7017 ;;
7018 *)
7019 shlibpath_overrides_runpath=yes
7020 ;;
7021 esac
7022 else
7023 shlibpath_overrides_runpath=yes
7024 fi
7025 ;;
7026
7027os2*)
7028 libname_spec='$name'
7029 shrext_cmds=".dll"
7030 need_lib_prefix=no
7031 library_names_spec='$libname${shared_ext} $libname.a'
7032 dynamic_linker='OS/2 ld.exe'
7033 shlibpath_var=LIBPATH
7034 ;;
7035
7036osf3* | osf4* | osf5*)
7037 version_type=osf
7038 need_lib_prefix=no
7039 need_version=no
7040 soname_spec='${libname}${release}${shared_ext}$major'
7041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7042 shlibpath_var=LD_LIBRARY_PATH
7043 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7044 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7045 ;;
7046
7047sco3.2v5*)
7048 version_type=osf
7049 soname_spec='${libname}${release}${shared_ext}$major'
7050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7051 shlibpath_var=LD_LIBRARY_PATH
7052 ;;
7053
7054solaris*)
7055 version_type=linux
7056 need_lib_prefix=no
7057 need_version=no
7058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7059 soname_spec='${libname}${release}${shared_ext}$major'
7060 shlibpath_var=LD_LIBRARY_PATH
7061 shlibpath_overrides_runpath=yes
7062 hardcode_into_libs=yes
7063 # ldd complains unless libraries are executable
7064 postinstall_cmds='chmod +x $lib'
7065 ;;
7066
7067sunos4*)
7068 version_type=sunos
7069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7070 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7071 shlibpath_var=LD_LIBRARY_PATH
7072 shlibpath_overrides_runpath=yes
7073 if test "$with_gnu_ld" = yes; then
7074 need_lib_prefix=no
7075 fi
7076 need_version=yes
7077 ;;
7078
7079sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7080 version_type=linux
7081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7082 soname_spec='${libname}${release}${shared_ext}$major'
7083 shlibpath_var=LD_LIBRARY_PATH
7084 case $host_vendor in
7085 sni)
7086 shlibpath_overrides_runpath=no
7087 need_lib_prefix=no
7088 export_dynamic_flag_spec='${wl}-Blargedynsym'
7089 runpath_var=LD_RUN_PATH
7090 ;;
7091 siemens)
7092 need_lib_prefix=no
7093 ;;
7094 motorola)
7095 need_lib_prefix=no
7096 need_version=no
7097 shlibpath_overrides_runpath=no
7098 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7099 ;;
7100 esac
7101 ;;
7102
7103sysv4*MP*)
7104 if test -d /usr/nec ;then
7105 version_type=linux
7106 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7107 soname_spec='$libname${shared_ext}.$major'
7108 shlibpath_var=LD_LIBRARY_PATH
7109 fi
7110 ;;
7111
7112uts4*)
7113 version_type=linux
7114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7115 soname_spec='${libname}${release}${shared_ext}$major'
7116 shlibpath_var=LD_LIBRARY_PATH
7117 ;;
7118
7119*)
7120 dynamic_linker=no
7121 ;;
7122esac
7123echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7124echo "${ECHO_T}$dynamic_linker" >&6
7125test "$dynamic_linker" = no && can_build_shared=no
7126
7127
7128echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7129echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7130if test "${libltdl_cv_shlibext+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7132else
7133
7134module=yes
7135eval libltdl_cv_shlibext=$shrext_cmds
7136
7137fi
7138echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7139echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7140if test -n "$libltdl_cv_shlibext"; then
7141
7142cat >>confdefs.h <<_ACEOF
7143#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7144_ACEOF
7145
7146fi
7147
7148
7149echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7150echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7151if test "${libltdl_cv_shlibpath_var+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7153else
7154 libltdl_cv_shlibpath_var="$shlibpath_var"
7155fi
7156echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7157echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7158if test -n "$libltdl_cv_shlibpath_var"; then
7159
7160cat >>confdefs.h <<_ACEOF
7161#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7162_ACEOF
7163
7164fi
7165
7166
7167echo "$as_me:$LINENO: checking for the default library search path" >&5
7168echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7169if test "${libltdl_cv_sys_search_path+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7171else
7172 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7173fi
7174echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7175echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7176if test -n "$libltdl_cv_sys_search_path"; then
7177 sys_search_path=
7178 for dir in $libltdl_cv_sys_search_path; do
7179 if test -z "$sys_search_path"; then
7180 sys_search_path="$dir"
7181 else
7182 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7183 fi
7184 done
7185
7186cat >>confdefs.h <<_ACEOF
7187#define LTDL_SYSSEARCHPATH "$sys_search_path"
7188_ACEOF
7189
7190fi
7191
7192echo "$as_me:$LINENO: checking for objdir" >&5
7193echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7194if test "${libltdl_cv_objdir+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7196else
7197 libltdl_cv_objdir="$objdir"
7198 if test -n "$objdir"; then
7199 :
7200 else
7201 rm -f .libs 2>/dev/null
7202 mkdir .libs 2>/dev/null
7203 if test -d .libs; then
7204 libltdl_cv_objdir=.libs
7205 else
7206 # MS-DOS does not allow filenames that begin with a dot.
7207 libltdl_cv_objdir=_libs
7208 fi
7209 rmdir .libs 2>/dev/null
7210 fi
7211
7212fi
7213echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7214echo "${ECHO_T}$libltdl_cv_objdir" >&6
7215
7216cat >>confdefs.h <<_ACEOF
7217#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7218_ACEOF
7219
7220
7221echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7222echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7223if test "${lt_cv_path_NM+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7225else
7226 if test -n "$NM"; then
7227 # Let the user override the test.
7228 lt_cv_path_NM="$NM"
7229else
7230 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7231 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7232 IFS="$lt_save_ifs"
7233 test -z "$ac_dir" && ac_dir=.
7234 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7235 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7236 # Check to see if the nm accepts a BSD-compat flag.
7237 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7238 # nm: unknown option "B" ignored
7239 # Tru64's nm complains that /dev/null is an invalid object file
7240 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7241 */dev/null* | *'Invalid file or object type'*)
7242 lt_cv_path_NM="$tmp_nm -B"
7243 break
7244 ;;
7245 *)
7246 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7247 */dev/null*)
7248 lt_cv_path_NM="$tmp_nm -p"
7249 break
7250 ;;
7251 *)
7252 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7253 continue # so that we can try to find one that supports BSD flags
7254 ;;
7255 esac
7256 esac
7257 fi
7258 done
7259 IFS="$lt_save_ifs"
7260 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7261fi
7262fi
7263echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7264echo "${ECHO_T}$lt_cv_path_NM" >&6
7265NM="$lt_cv_path_NM"
7266
7267
7268
7269
7270
7271# Check for command to grab the raw symbol name followed by C symbol from nm.
7272echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7273echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7274if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7276else
7277
7278# These are sane defaults that work on at least a few old systems.
7279# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7280
7281# Character class describing NM global symbol codes.
7282symcode='[BCDEGRST]'
7283
7284# Regexp to match symbols that can be accessed directly from C.
7285sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7286
7287# Transform the above into a raw symbol and a C symbol.
7288symxfrm='\1 \2\3 \3'
7289
7290# Transform an extracted symbol line into a proper C declaration
7291lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7292
7293# Transform an extracted symbol line into symbol name and symbol address
7294lt_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'"
7295
7296# Define system-specific variables.
7297case $host_os in
7298aix*)
7299 symcode='[BCDT]'
7300 ;;
7301cygwin* | mingw* | pw32*)
7302 symcode='[ABCDGISTW]'
7303 ;;
7304hpux*) # Its linker distinguishes data from code symbols
7305 if test "$host_cpu" = ia64; then
7306 symcode='[ABCDEGRST]'
7307 fi
7308 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7309 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'"
7310 ;;
7311linux*)
7312 if test "$host_cpu" = ia64; then
7313 symcode='[ABCDGIRSTW]'
7314 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7315 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'"
7316 fi
7317 ;;
7318irix* | nonstopux*)
7319 symcode='[BCDEGRST]'
7320 ;;
7321osf*)
7322 symcode='[BCDEGQRST]'
7323 ;;
7324solaris* | sysv5*)
7325 symcode='[BDRT]'
7326 ;;
7327sysv4)
7328 symcode='[DFNSTU]'
7329 ;;
7330esac
7331
7332# Handle CRLF in mingw tool chain
7333opt_cr=
7334case $build_os in
7335mingw*)
7336 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7337 ;;
7338esac
7339
7340# If we're using GNU nm, then use its standard symbol codes.
7341case `$NM -V 2>&1` in
7342*GNU* | *'with BFD'*)
7343 symcode='[ABCDGIRSTW]' ;;
7344esac
7345
7346# Try without a prefix undercore, then with it.
7347for ac_symprfx in "" "_"; do
7348
7349 # Write the raw and C identifiers.
7350 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7351
7352 # Check to see that the pipe works correctly.
7353 pipe_works=no
7354
7355 rm -f conftest*
7356 cat > conftest.$ac_ext <<EOF
7357#ifdef __cplusplus
7358extern "C" {
7359#endif
7360char nm_test_var;
7361void nm_test_func(){}
7362#ifdef __cplusplus
7363}
7364#endif
7365int main(){nm_test_var='a';nm_test_func();return(0);}
7366EOF
7367
7368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7369 (eval $ac_compile) 2>&5
7370 ac_status=$?
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); }; then
7373 # Now try to grab the symbols.
7374 nlist=conftest.nm
7375 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7376 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7377 ac_status=$?
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } && test -s "$nlist"; then
7380 # Try sorting and uniquifying the output.
7381 if sort "$nlist" | uniq > "$nlist"T; then
7382 mv -f "$nlist"T "$nlist"
7383 else
7384 rm -f "$nlist"T
7385 fi
7386
7387 # Make sure that we snagged all the symbols we need.
7388 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7389 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7390 cat <<EOF > conftest.$ac_ext
7391#ifdef __cplusplus
7392extern "C" {
7393#endif
7394
7395EOF
7396 # Now generate the symbol file.
7397 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7398
7399 cat <<EOF >> conftest.$ac_ext
7400#if defined (__STDC__) && __STDC__
7401# define lt_ptr_t void *
7402#else
7403# define lt_ptr_t char *
7404# define const
7405#endif
7406
7407/* The mapping between symbol names and symbols. */
7408const struct {
7409 const char *name;
7410 lt_ptr_t address;
7411}
7412lt_preloaded_symbols[] =
7413{
7414EOF
7415 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7416 cat <<\EOF >> conftest.$ac_ext
7417 {0, (lt_ptr_t) 0}
7418};
7419
7420#ifdef __cplusplus
7421}
7422#endif
7423EOF
7424 # Now try linking the two files.
7425 mv conftest.$ac_objext conftstm.$ac_objext
7426 lt_save_LIBS="$LIBS"
7427 lt_save_CFLAGS="$CFLAGS"
7428 LIBS="conftstm.$ac_objext"
7429 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7431 (eval $ac_link) 2>&5
7432 ac_status=$?
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7435 pipe_works=yes
7436 fi
7437 LIBS="$lt_save_LIBS"
7438 CFLAGS="$lt_save_CFLAGS"
7439 else
7440 echo "cannot find nm_test_func in $nlist" >&5
7441 fi
7442 else
7443 echo "cannot find nm_test_var in $nlist" >&5
7444 fi
7445 else
7446 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7447 fi
7448 else
7449 echo "$progname: failed program was:" >&5
7450 cat conftest.$ac_ext >&5
7451 fi
7452 rm -f conftest* conftst*
7453
7454 # Do not use the global_symbol_pipe unless it works.
7455 if test "$pipe_works" = yes; then
7456 break
7457 else
7458 lt_cv_sys_global_symbol_pipe=
7459 fi
7460done
7461
7462fi
7463
7464if test -z "$lt_cv_sys_global_symbol_pipe"; then
7465 lt_cv_sys_global_symbol_to_cdecl=
7466fi
7467if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7468 echo "$as_me:$LINENO: result: failed" >&5
7469echo "${ECHO_T}failed" >&6
7470else
7471 echo "$as_me:$LINENO: result: ok" >&5
7472echo "${ECHO_T}ok" >&6
7473fi
7474
7475
7476echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7477echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7478if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7480else
7481 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7482 libltdl_cv_preloaded_symbols=yes
7483 else
7484 libltdl_cv_preloaded_symbols=no
7485 fi
7486
7487fi
7488echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7489echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7490if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7491
7492cat >>confdefs.h <<\_ACEOF
7493#define HAVE_PRELOADED_SYMBOLS 1
7494_ACEOF
7495
7496fi
7497
7498LIBADD_DL=
7499
7500ac_ext=c
7501ac_cpp='$CPP $CPPFLAGS'
7502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7504ac_compiler_gnu=$ac_cv_c_compiler_gnu
7505
7506
7507echo "$as_me:$LINENO: checking for shl_load" >&5
7508echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7509if test "${ac_cv_func_shl_load+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
7511else
7512 cat >conftest.$ac_ext <<_ACEOF
7513/* confdefs.h. */
7514_ACEOF
7515cat confdefs.h >>conftest.$ac_ext
7516cat >>conftest.$ac_ext <<_ACEOF
7517/* end confdefs.h. */
7518/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7520#define shl_load innocuous_shl_load
7521
7522/* System header to define __stub macros and hopefully few prototypes,
7523 which can conflict with char shl_load (); below.
7524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7525 <limits.h> exists even on freestanding compilers. */
7526
7527#ifdef __STDC__
7528# include <limits.h>
7529#else
7530# include <assert.h>
7531#endif
7532
7533#undef shl_load
7534
7535/* Override any gcc2 internal prototype to avoid an error. */
7536#ifdef __cplusplus
7537extern "C"
7538{
7539#endif
7540/* We use char because int might match the return type of a gcc2
7541 builtin and then its argument prototype would still apply. */
7542char shl_load ();
7543/* The GNU C library defines this for functions which it implements
7544 to always fail with ENOSYS. Some functions are actually named
7545 something starting with __ and the normal name is an alias. */
7546#if defined (__stub_shl_load) || defined (__stub___shl_load)
7547choke me
7548#else
7549char (*f) () = shl_load;
7550#endif
7551#ifdef __cplusplus
7552}
7553#endif
7554
7555int
7556main ()
7557{
7558return f != shl_load;
7559 ;
7560 return 0;
7561}
7562_ACEOF
7563rm -f conftest.$ac_objext conftest$ac_exeext
7564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7565 (eval $ac_link) 2>conftest.er1
7566 ac_status=$?
7567 grep -v '^ *+' conftest.er1 >conftest.err
7568 rm -f conftest.er1
7569 cat conftest.err >&5
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } &&
7572 { ac_try='test -z "$ac_c_werror_flag"
7573 || test ! -s conftest.err'
7574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575 (eval $ac_try) 2>&5
7576 ac_status=$?
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); }; } &&
7579 { ac_try='test -s conftest$ac_exeext'
7580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581 (eval $ac_try) 2>&5
7582 ac_status=$?
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); }; }; then
7585 ac_cv_func_shl_load=yes
7586else
7587 echo "$as_me: failed program was:" >&5
7588sed 's/^/| /' conftest.$ac_ext >&5
7589
7590ac_cv_func_shl_load=no
7591fi
7592rm -f conftest.err conftest.$ac_objext \
7593 conftest$ac_exeext conftest.$ac_ext
7594fi
7595echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7596echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7597if test $ac_cv_func_shl_load = yes; then
7598
7599cat >>confdefs.h <<\_ACEOF
7600#define HAVE_SHL_LOAD 1
7601_ACEOF
7602
7603else
7604 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7605echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7606if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7608else
7609 ac_check_lib_save_LIBS=$LIBS
7610LIBS="-ldld $LIBS"
7611cat >conftest.$ac_ext <<_ACEOF
7612/* confdefs.h. */
7613_ACEOF
7614cat confdefs.h >>conftest.$ac_ext
7615cat >>conftest.$ac_ext <<_ACEOF
7616/* end confdefs.h. */
7617
7618/* Override any gcc2 internal prototype to avoid an error. */
7619#ifdef __cplusplus
7620extern "C"
7621#endif
7622/* We use char because int might match the return type of a gcc2
7623 builtin and then its argument prototype would still apply. */
7624char shl_load ();
7625int
7626main ()
7627{
7628shl_load ();
7629 ;
7630 return 0;
7631}
7632_ACEOF
7633rm -f conftest.$ac_objext conftest$ac_exeext
7634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7635 (eval $ac_link) 2>conftest.er1
7636 ac_status=$?
7637 grep -v '^ *+' conftest.er1 >conftest.err
7638 rm -f conftest.er1
7639 cat conftest.err >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } &&
7642 { ac_try='test -z "$ac_c_werror_flag"
7643 || test ! -s conftest.err'
7644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645 (eval $ac_try) 2>&5
7646 ac_status=$?
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); }; } &&
7649 { ac_try='test -s conftest$ac_exeext'
7650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651 (eval $ac_try) 2>&5
7652 ac_status=$?
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); }; }; then
7655 ac_cv_lib_dld_shl_load=yes
7656else
7657 echo "$as_me: failed program was:" >&5
7658sed 's/^/| /' conftest.$ac_ext >&5
7659
7660ac_cv_lib_dld_shl_load=no
7661fi
7662rm -f conftest.err conftest.$ac_objext \
7663 conftest$ac_exeext conftest.$ac_ext
7664LIBS=$ac_check_lib_save_LIBS
7665fi
7666echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7667echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7668if test $ac_cv_lib_dld_shl_load = yes; then
7669
7670cat >>confdefs.h <<\_ACEOF
7671#define HAVE_SHL_LOAD 1
7672_ACEOF
7673
7674 LIBADD_DL="$LIBADD_DL -ldld"
7675else
7676 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7677echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7678if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7679 echo $ECHO_N "(cached) $ECHO_C" >&6
7680else
7681 ac_check_lib_save_LIBS=$LIBS
7682LIBS="-ldl $LIBS"
7683cat >conftest.$ac_ext <<_ACEOF
7684/* confdefs.h. */
7685_ACEOF
7686cat confdefs.h >>conftest.$ac_ext
7687cat >>conftest.$ac_ext <<_ACEOF
7688/* end confdefs.h. */
7689
7690/* Override any gcc2 internal prototype to avoid an error. */
7691#ifdef __cplusplus
7692extern "C"
7693#endif
7694/* We use char because int might match the return type of a gcc2
7695 builtin and then its argument prototype would still apply. */
7696char dlopen ();
7697int
7698main ()
7699{
7700dlopen ();
7701 ;
7702 return 0;
7703}
7704_ACEOF
7705rm -f conftest.$ac_objext conftest$ac_exeext
7706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7707 (eval $ac_link) 2>conftest.er1
7708 ac_status=$?
7709 grep -v '^ *+' conftest.er1 >conftest.err
7710 rm -f conftest.er1
7711 cat conftest.err >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } &&
7714 { ac_try='test -z "$ac_c_werror_flag"
7715 || test ! -s conftest.err'
7716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717 (eval $ac_try) 2>&5
7718 ac_status=$?
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); }; } &&
7721 { ac_try='test -s conftest$ac_exeext'
7722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723 (eval $ac_try) 2>&5
7724 ac_status=$?
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); }; }; then
7727 ac_cv_lib_dl_dlopen=yes
7728else
7729 echo "$as_me: failed program was:" >&5
7730sed 's/^/| /' conftest.$ac_ext >&5
7731
7732ac_cv_lib_dl_dlopen=no
7733fi
7734rm -f conftest.err conftest.$ac_objext \
7735 conftest$ac_exeext conftest.$ac_ext
7736LIBS=$ac_check_lib_save_LIBS
7737fi
7738echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7739echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7740if test $ac_cv_lib_dl_dlopen = yes; then
7741
7742cat >>confdefs.h <<\_ACEOF
7743#define HAVE_LIBDL 1
7744_ACEOF
7745
7746 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7747else
7748 cat >conftest.$ac_ext <<_ACEOF
7749/* confdefs.h. */
7750_ACEOF
7751cat confdefs.h >>conftest.$ac_ext
7752cat >>conftest.$ac_ext <<_ACEOF
7753/* end confdefs.h. */
7754#if HAVE_DLFCN_H
7755# include <dlfcn.h>
7756#endif
7757
7758int
7759main ()
7760{
7761dlopen(0, 0);
7762 ;
7763 return 0;
7764}
7765_ACEOF
7766rm -f conftest.$ac_objext conftest$ac_exeext
7767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7768 (eval $ac_link) 2>conftest.er1
7769 ac_status=$?
7770 grep -v '^ *+' conftest.er1 >conftest.err
7771 rm -f conftest.er1
7772 cat conftest.err >&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); } &&
7775 { ac_try='test -z "$ac_c_werror_flag"
7776 || test ! -s conftest.err'
7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778 (eval $ac_try) 2>&5
7779 ac_status=$?
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; } &&
7782 { ac_try='test -s conftest$ac_exeext'
7783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 (eval $ac_try) 2>&5
7785 ac_status=$?
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); }; }; then
7788
7789cat >>confdefs.h <<\_ACEOF
7790#define HAVE_LIBDL 1
7791_ACEOF
7792 libltdl_cv_func_dlopen="yes"
7793else
7794 echo "$as_me: failed program was:" >&5
7795sed 's/^/| /' conftest.$ac_ext >&5
7796
7797echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7798echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7799if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7801else
7802 ac_check_lib_save_LIBS=$LIBS
7803LIBS="-lsvld $LIBS"
7804cat >conftest.$ac_ext <<_ACEOF
7805/* confdefs.h. */
7806_ACEOF
7807cat confdefs.h >>conftest.$ac_ext
7808cat >>conftest.$ac_ext <<_ACEOF
7809/* end confdefs.h. */
7810
7811/* Override any gcc2 internal prototype to avoid an error. */
7812#ifdef __cplusplus
7813extern "C"
7814#endif
7815/* We use char because int might match the return type of a gcc2
7816 builtin and then its argument prototype would still apply. */
7817char dlopen ();
7818int
7819main ()
7820{
7821dlopen ();
7822 ;
7823 return 0;
7824}
7825_ACEOF
7826rm -f conftest.$ac_objext conftest$ac_exeext
7827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7828 (eval $ac_link) 2>conftest.er1
7829 ac_status=$?
7830 grep -v '^ *+' conftest.er1 >conftest.err
7831 rm -f conftest.er1
7832 cat conftest.err >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } &&
7835 { ac_try='test -z "$ac_c_werror_flag"
7836 || test ! -s conftest.err'
7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838 (eval $ac_try) 2>&5
7839 ac_status=$?
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; } &&
7842 { ac_try='test -s conftest$ac_exeext'
7843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844 (eval $ac_try) 2>&5
7845 ac_status=$?
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; }; then
7848 ac_cv_lib_svld_dlopen=yes
7849else
7850 echo "$as_me: failed program was:" >&5
7851sed 's/^/| /' conftest.$ac_ext >&5
7852
7853ac_cv_lib_svld_dlopen=no
7854fi
7855rm -f conftest.err conftest.$ac_objext \
7856 conftest$ac_exeext conftest.$ac_ext
7857LIBS=$ac_check_lib_save_LIBS
7858fi
7859echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7860echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7861if test $ac_cv_lib_svld_dlopen = yes; then
7862
7863cat >>confdefs.h <<\_ACEOF
7864#define HAVE_LIBDL 1
7865_ACEOF
7866
7867 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7868else
7869 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7870echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7871if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7873else
7874 ac_check_lib_save_LIBS=$LIBS
7875LIBS="-ldld $LIBS"
7876cat >conftest.$ac_ext <<_ACEOF
7877/* confdefs.h. */
7878_ACEOF
7879cat confdefs.h >>conftest.$ac_ext
7880cat >>conftest.$ac_ext <<_ACEOF
7881/* end confdefs.h. */
7882
7883/* Override any gcc2 internal prototype to avoid an error. */
7884#ifdef __cplusplus
7885extern "C"
7886#endif
7887/* We use char because int might match the return type of a gcc2
7888 builtin and then its argument prototype would still apply. */
7889char dld_link ();
7890int
7891main ()
7892{
7893dld_link ();
7894 ;
7895 return 0;
7896}
7897_ACEOF
7898rm -f conftest.$ac_objext conftest$ac_exeext
7899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7900 (eval $ac_link) 2>conftest.er1
7901 ac_status=$?
7902 grep -v '^ *+' conftest.er1 >conftest.err
7903 rm -f conftest.er1
7904 cat conftest.err >&5
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } &&
7907 { ac_try='test -z "$ac_c_werror_flag"
7908 || test ! -s conftest.err'
7909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910 (eval $ac_try) 2>&5
7911 ac_status=$?
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); }; } &&
7914 { ac_try='test -s conftest$ac_exeext'
7915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916 (eval $ac_try) 2>&5
7917 ac_status=$?
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); }; }; then
7920 ac_cv_lib_dld_dld_link=yes
7921else
7922 echo "$as_me: failed program was:" >&5
7923sed 's/^/| /' conftest.$ac_ext >&5
7924
7925ac_cv_lib_dld_dld_link=no
7926fi
7927rm -f conftest.err conftest.$ac_objext \
7928 conftest$ac_exeext conftest.$ac_ext
7929LIBS=$ac_check_lib_save_LIBS
7930fi
7931echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7932echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7933if test $ac_cv_lib_dld_dld_link = yes; then
7934
7935cat >>confdefs.h <<\_ACEOF
7936#define HAVE_DLD 1
7937_ACEOF
7938
7939 LIBADD_DL="$LIBADD_DL -ldld"
7940else
7941 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7942echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7943if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945else
7946 cat >conftest.$ac_ext <<_ACEOF
7947/* confdefs.h. */
7948_ACEOF
7949cat confdefs.h >>conftest.$ac_ext
7950cat >>conftest.$ac_ext <<_ACEOF
7951/* end confdefs.h. */
7952/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7954#define _dyld_func_lookup innocuous__dyld_func_lookup
7955
7956/* System header to define __stub macros and hopefully few prototypes,
7957 which can conflict with char _dyld_func_lookup (); below.
7958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7959 <limits.h> exists even on freestanding compilers. */
7960
7961#ifdef __STDC__
7962# include <limits.h>
7963#else
7964# include <assert.h>
7965#endif
7966
7967#undef _dyld_func_lookup
7968
7969/* Override any gcc2 internal prototype to avoid an error. */
7970#ifdef __cplusplus
7971extern "C"
7972{
7973#endif
7974/* We use char because int might match the return type of a gcc2
7975 builtin and then its argument prototype would still apply. */
7976char _dyld_func_lookup ();
7977/* The GNU C library defines this for functions which it implements
7978 to always fail with ENOSYS. Some functions are actually named
7979 something starting with __ and the normal name is an alias. */
7980#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7981choke me
7982#else
7983char (*f) () = _dyld_func_lookup;
7984#endif
7985#ifdef __cplusplus
7986}
7987#endif
7988
7989int
7990main ()
7991{
7992return f != _dyld_func_lookup;
7993 ;
7994 return 0;
7995}
7996_ACEOF
7997rm -f conftest.$ac_objext conftest$ac_exeext
7998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7999 (eval $ac_link) 2>conftest.er1
8000 ac_status=$?
8001 grep -v '^ *+' conftest.er1 >conftest.err
8002 rm -f conftest.er1
8003 cat conftest.err >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } &&
8006 { ac_try='test -z "$ac_c_werror_flag"
8007 || test ! -s conftest.err'
8008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009 (eval $ac_try) 2>&5
8010 ac_status=$?
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); }; } &&
8013 { ac_try='test -s conftest$ac_exeext'
8014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015 (eval $ac_try) 2>&5
8016 ac_status=$?
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }; }; then
8019 ac_cv_func__dyld_func_lookup=yes
8020else
8021 echo "$as_me: failed program was:" >&5
8022sed 's/^/| /' conftest.$ac_ext >&5
8023
8024ac_cv_func__dyld_func_lookup=no
8025fi
8026rm -f conftest.err conftest.$ac_objext \
8027 conftest$ac_exeext conftest.$ac_ext
8028fi
8029echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8030echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8031if test $ac_cv_func__dyld_func_lookup = yes; then
8032
8033cat >>confdefs.h <<\_ACEOF
8034#define HAVE_DYLD 1
8035_ACEOF
8036
8037fi
8038
8039
8040fi
8041
8042
8043fi
8044
8045
8046fi
8047rm -f conftest.err conftest.$ac_objext \
8048 conftest$ac_exeext conftest.$ac_ext
8049
8050fi
8051
8052
8053fi
8054
8055
8056fi
8057
8058
8059if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8060then
8061 lt_save_LIBS="$LIBS"
8062 LIBS="$LIBS $LIBADD_DL"
8063
8064for ac_func in dlerror
8065do
8066as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8067echo "$as_me:$LINENO: checking for $ac_func" >&5
8068echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8069if eval "test \"\${$as_ac_var+set}\" = set"; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8071else
8072 cat >conftest.$ac_ext <<_ACEOF
8073/* confdefs.h. */
8074_ACEOF
8075cat confdefs.h >>conftest.$ac_ext
8076cat >>conftest.$ac_ext <<_ACEOF
8077/* end confdefs.h. */
8078/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8080#define $ac_func innocuous_$ac_func
8081
8082/* System header to define __stub macros and hopefully few prototypes,
8083 which can conflict with char $ac_func (); below.
8084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8085 <limits.h> exists even on freestanding compilers. */
8086
8087#ifdef __STDC__
8088# include <limits.h>
8089#else
8090# include <assert.h>
8091#endif
8092
8093#undef $ac_func
8094
8095/* Override any gcc2 internal prototype to avoid an error. */
8096#ifdef __cplusplus
8097extern "C"
8098{
8099#endif
8100/* We use char because int might match the return type of a gcc2
8101 builtin and then its argument prototype would still apply. */
8102char $ac_func ();
8103/* The GNU C library defines this for functions which it implements
8104 to always fail with ENOSYS. Some functions are actually named
8105 something starting with __ and the normal name is an alias. */
8106#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8107choke me
8108#else
8109char (*f) () = $ac_func;
8110#endif
8111#ifdef __cplusplus
8112}
8113#endif
8114
8115int
8116main ()
8117{
8118return f != $ac_func;
8119 ;
8120 return 0;
8121}
8122_ACEOF
8123rm -f conftest.$ac_objext conftest$ac_exeext
8124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8125 (eval $ac_link) 2>conftest.er1
8126 ac_status=$?
8127 grep -v '^ *+' conftest.er1 >conftest.err
8128 rm -f conftest.er1
8129 cat conftest.err >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); } &&
8132 { ac_try='test -z "$ac_c_werror_flag"
8133 || test ! -s conftest.err'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135 (eval $ac_try) 2>&5
8136 ac_status=$?
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; } &&
8139 { ac_try='test -s conftest$ac_exeext'
8140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8141 (eval $ac_try) 2>&5
8142 ac_status=$?
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }; }; then
8145 eval "$as_ac_var=yes"
8146else
8147 echo "$as_me: failed program was:" >&5
8148sed 's/^/| /' conftest.$ac_ext >&5
8149
8150eval "$as_ac_var=no"
8151fi
8152rm -f conftest.err conftest.$ac_objext \
8153 conftest$ac_exeext conftest.$ac_ext
8154fi
8155echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8156echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8157if test `eval echo '${'$as_ac_var'}'` = yes; then
8158 cat >>confdefs.h <<_ACEOF
8159#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8160_ACEOF
8161
8162fi
8163done
8164
8165 LIBS="$lt_save_LIBS"
8166fi
8167ac_ext=c
8168ac_cpp='$CPP $CPPFLAGS'
8169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8171ac_compiler_gnu=$ac_cv_c_compiler_gnu
8172
8173
8174
8175echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8176echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8177if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8178 echo $ECHO_N "(cached) $ECHO_C" >&6
8179else
8180 ac_cv_sys_symbol_underscore=no
8181 cat > conftest.$ac_ext <<EOF
8182void nm_test_func(){}
8183int main(){nm_test_func;return 0;}
8184EOF
8185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8186 (eval $ac_compile) 2>&5
8187 ac_status=$?
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; then
8190 # Now try to grab the symbols.
8191 ac_nlist=conftest.nm
8192 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8193 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8194 ac_status=$?
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } && test -s "$ac_nlist"; then
8197 # See whether the symbols have a leading underscore.
8198 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8199 ac_cv_sys_symbol_underscore=yes
8200 else
8201 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8202 :
8203 else
8204 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8205 fi
8206 fi
8207 else
8208 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8209 fi
8210 else
8211 echo "configure: failed program was:" >&5
8212 cat conftest.c >&5
8213 fi
8214 rm -rf conftest*
8215
8216fi
8217echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8218echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8219
8220
8221if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8222 if test x"$libltdl_cv_func_dlopen" = xyes ||
8223 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8224 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8225echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8226if test "${libltdl_cv_need_uscore+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228else
8229 libltdl_cv_need_uscore=unknown
8230 save_LIBS="$LIBS"
8231 LIBS="$LIBS $LIBADD_DL"
8232 if test "$cross_compiling" = yes; then :
8233 libltdl_cv_need_uscore=cross
8234else
8235 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8236 lt_status=$lt_dlunknown
8237 cat > conftest.$ac_ext <<EOF
Duraid Madina775afa52005-05-16 16:33:34 +00008238#line 8238 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008239#include "confdefs.h"
8240
8241#if HAVE_DLFCN_H
8242#include <dlfcn.h>
8243#endif
8244
8245#include <stdio.h>
8246
8247#ifdef RTLD_GLOBAL
8248# define LT_DLGLOBAL RTLD_GLOBAL
8249#else
8250# ifdef DL_GLOBAL
8251# define LT_DLGLOBAL DL_GLOBAL
8252# else
8253# define LT_DLGLOBAL 0
8254# endif
8255#endif
8256
8257/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8258 find out it does not work in some platform. */
8259#ifndef LT_DLLAZY_OR_NOW
8260# ifdef RTLD_LAZY
8261# define LT_DLLAZY_OR_NOW RTLD_LAZY
8262# else
8263# ifdef DL_LAZY
8264# define LT_DLLAZY_OR_NOW DL_LAZY
8265# else
8266# ifdef RTLD_NOW
8267# define LT_DLLAZY_OR_NOW RTLD_NOW
8268# else
8269# ifdef DL_NOW
8270# define LT_DLLAZY_OR_NOW DL_NOW
8271# else
8272# define LT_DLLAZY_OR_NOW 0
8273# endif
8274# endif
8275# endif
8276# endif
8277#endif
8278
8279#ifdef __cplusplus
8280extern "C" void exit (int);
8281#endif
8282
8283void fnord() { int i=42;}
8284int main ()
8285{
8286 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8287 int status = $lt_dlunknown;
8288
8289 if (self)
8290 {
8291 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8292 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8293 /* dlclose (self); */
8294 }
8295
8296 exit (status);
8297}
8298EOF
8299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8300 (eval $ac_link) 2>&5
8301 ac_status=$?
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8304 (./conftest; exit; ) 2>/dev/null
8305 lt_status=$?
8306 case x$lt_status in
8307 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8308 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8309 x$lt_unknown|x*) ;;
8310 esac
8311 else :
8312 # compilation failed
8313
8314 fi
8315fi
8316rm -fr conftest*
8317
8318 LIBS="$save_LIBS"
8319
8320fi
8321echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8322echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8323 fi
8324fi
8325
8326if test x"$libltdl_cv_need_uscore" = xyes; then
8327
8328cat >>confdefs.h <<\_ACEOF
8329#define NEED_USCORE 1
8330_ACEOF
8331
8332fi
8333
8334
8335echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8336echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8337if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8339else
8340 # PORTME does your system automatically load deplibs for dlopen?
8341 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8342 # For now, we just catch OSes we know something about -- in the
8343 # future, we'll try test this programmatically.
8344 libltdl_cv_sys_dlopen_deplibs=unknown
8345 case "$host_os" in
8346 aix3*|aix4.1.*|aix4.2.*)
8347 # Unknown whether this is true for these versions of AIX, but
8348 # we want this `case' here to explicitly catch those versions.
8349 libltdl_cv_sys_dlopen_deplibs=unknown
8350 ;;
8351 aix[45]*)
8352 libltdl_cv_sys_dlopen_deplibs=yes
8353 ;;
8354 darwin*)
8355 # Assuming the user has installed a libdl from somewhere, this is true
8356 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8357 libltdl_cv_sys_dlopen_deplibs=yes
8358 ;;
8359 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8360 # GNU and its variants, using gnu ld.so (Glibc)
8361 libltdl_cv_sys_dlopen_deplibs=yes
8362 ;;
8363 hpux10*|hpux11*)
8364 libltdl_cv_sys_dlopen_deplibs=yes
8365 ;;
8366 irix[12345]*|irix6.[01]*)
8367 # Catch all versions of IRIX before 6.2, and indicate that we don't
8368 # know how it worked for any of those versions.
8369 libltdl_cv_sys_dlopen_deplibs=unknown
8370 ;;
8371 irix*)
8372 # The case above catches anything before 6.2, and it's known that
8373 # at 6.2 and later dlopen does load deplibs.
8374 libltdl_cv_sys_dlopen_deplibs=yes
8375 ;;
8376 netbsd*)
8377 libltdl_cv_sys_dlopen_deplibs=yes
8378 ;;
8379 openbsd*)
8380 libltdl_cv_sys_dlopen_deplibs=yes
8381 ;;
8382 osf[1234]*)
8383 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8384 # it did *not* use an RPATH in a shared library to find objects the
8385 # library depends on, so we explictly say `no'.
8386 libltdl_cv_sys_dlopen_deplibs=no
8387 ;;
8388 osf5.0|osf5.0a|osf5.1)
8389 # dlopen *does* load deplibs and with the right loader patch applied
8390 # it even uses RPATH in a shared library to search for shared objects
8391 # that the library depends on, but there's no easy way to know if that
8392 # patch is installed. Since this is the case, all we can really
8393 # say is unknown -- it depends on the patch being installed. If
8394 # it is, this changes to `yes'. Without it, it would be `no'.
8395 libltdl_cv_sys_dlopen_deplibs=unknown
8396 ;;
8397 osf*)
8398 # the two cases above should catch all versions of osf <= 5.1. Read
8399 # the comments above for what we know about them.
8400 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8401 # is used to find them so we can finally say `yes'.
8402 libltdl_cv_sys_dlopen_deplibs=yes
8403 ;;
8404 solaris*)
8405 libltdl_cv_sys_dlopen_deplibs=yes
8406 ;;
8407 esac
8408
8409fi
8410echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8411echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8412if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8413
8414cat >>confdefs.h <<\_ACEOF
8415#define LTDL_DLOPEN_DEPLIBS 1
8416_ACEOF
8417
8418fi
8419
8420
8421for ac_header in argz.h
8422do
8423as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8424if eval "test \"\${$as_ac_Header+set}\" = set"; then
8425 echo "$as_me:$LINENO: checking for $ac_header" >&5
8426echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8427if eval "test \"\${$as_ac_Header+set}\" = set"; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
8429fi
8430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8431echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8432else
8433 # Is the header compilable?
8434echo "$as_me:$LINENO: checking $ac_header usability" >&5
8435echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8436cat >conftest.$ac_ext <<_ACEOF
8437/* confdefs.h. */
8438_ACEOF
8439cat confdefs.h >>conftest.$ac_ext
8440cat >>conftest.$ac_ext <<_ACEOF
8441/* end confdefs.h. */
8442$ac_includes_default
8443#include <$ac_header>
8444_ACEOF
8445rm -f conftest.$ac_objext
8446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8447 (eval $ac_compile) 2>conftest.er1
8448 ac_status=$?
8449 grep -v '^ *+' conftest.er1 >conftest.err
8450 rm -f conftest.er1
8451 cat conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } &&
8454 { ac_try='test -z "$ac_c_werror_flag"
8455 || test ! -s conftest.err'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457 (eval $ac_try) 2>&5
8458 ac_status=$?
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; } &&
8461 { ac_try='test -s conftest.$ac_objext'
8462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463 (eval $ac_try) 2>&5
8464 ac_status=$?
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
8467 ac_header_compiler=yes
8468else
8469 echo "$as_me: failed program was:" >&5
8470sed 's/^/| /' conftest.$ac_ext >&5
8471
8472ac_header_compiler=no
8473fi
8474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8475echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8476echo "${ECHO_T}$ac_header_compiler" >&6
8477
8478# Is the header present?
8479echo "$as_me:$LINENO: checking $ac_header presence" >&5
8480echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8481cat >conftest.$ac_ext <<_ACEOF
8482/* confdefs.h. */
8483_ACEOF
8484cat confdefs.h >>conftest.$ac_ext
8485cat >>conftest.$ac_ext <<_ACEOF
8486/* end confdefs.h. */
8487#include <$ac_header>
8488_ACEOF
8489if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8491 ac_status=$?
8492 grep -v '^ *+' conftest.er1 >conftest.err
8493 rm -f conftest.er1
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } >/dev/null; then
8497 if test -s conftest.err; then
8498 ac_cpp_err=$ac_c_preproc_warn_flag
8499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8500 else
8501 ac_cpp_err=
8502 fi
8503else
8504 ac_cpp_err=yes
8505fi
8506if test -z "$ac_cpp_err"; then
8507 ac_header_preproc=yes
8508else
8509 echo "$as_me: failed program was:" >&5
8510sed 's/^/| /' conftest.$ac_ext >&5
8511
8512 ac_header_preproc=no
8513fi
8514rm -f conftest.err conftest.$ac_ext
8515echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8516echo "${ECHO_T}$ac_header_preproc" >&6
8517
8518# So? What about this header?
8519case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8520 yes:no: )
8521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8522echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8524echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8525 ac_header_preproc=yes
8526 ;;
8527 no:yes:* )
8528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8529echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8531echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8533echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8535echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8537echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8539echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8540 (
8541 cat <<\_ASBOX
8542## ----------------------------------- ##
8543## Report this to llvmbugs@cs.uiuc.edu ##
8544## ----------------------------------- ##
8545_ASBOX
8546 ) |
8547 sed "s/^/$as_me: WARNING: /" >&2
8548 ;;
8549esac
8550echo "$as_me:$LINENO: checking for $ac_header" >&5
8551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8552if eval "test \"\${$as_ac_Header+set}\" = set"; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
8554else
8555 eval "$as_ac_Header=\$ac_header_preproc"
8556fi
8557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8558echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8559
8560fi
8561if test `eval echo '${'$as_ac_Header'}'` = yes; then
8562 cat >>confdefs.h <<_ACEOF
8563#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8564_ACEOF
8565
8566fi
8567
8568done
8569
8570
8571echo "$as_me:$LINENO: checking for error_t" >&5
8572echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8573if test "${ac_cv_type_error_t+set}" = set; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8575else
8576 cat >conftest.$ac_ext <<_ACEOF
8577/* confdefs.h. */
8578_ACEOF
8579cat confdefs.h >>conftest.$ac_ext
8580cat >>conftest.$ac_ext <<_ACEOF
8581/* end confdefs.h. */
8582#if HAVE_ARGZ_H
8583# include <argz.h>
8584#endif
8585
8586int
8587main ()
8588{
8589if ((error_t *) 0)
8590 return 0;
8591if (sizeof (error_t))
8592 return 0;
8593 ;
8594 return 0;
8595}
8596_ACEOF
8597rm -f conftest.$ac_objext
8598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8599 (eval $ac_compile) 2>conftest.er1
8600 ac_status=$?
8601 grep -v '^ *+' conftest.er1 >conftest.err
8602 rm -f conftest.er1
8603 cat conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } &&
8606 { ac_try='test -z "$ac_c_werror_flag"
8607 || test ! -s conftest.err'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 (eval $ac_try) 2>&5
8610 ac_status=$?
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; } &&
8613 { ac_try='test -s conftest.$ac_objext'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 (eval $ac_try) 2>&5
8616 ac_status=$?
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; }; then
8619 ac_cv_type_error_t=yes
8620else
8621 echo "$as_me: failed program was:" >&5
8622sed 's/^/| /' conftest.$ac_ext >&5
8623
8624ac_cv_type_error_t=no
8625fi
8626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8627fi
8628echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8629echo "${ECHO_T}$ac_cv_type_error_t" >&6
8630if test $ac_cv_type_error_t = yes; then
8631
8632cat >>confdefs.h <<_ACEOF
8633#define HAVE_ERROR_T 1
8634_ACEOF
8635
8636
8637else
8638
8639cat >>confdefs.h <<\_ACEOF
8640#define error_t int
8641_ACEOF
8642
8643fi
8644
8645
8646
8647
8648
8649
8650
8651for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8652do
8653as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8654echo "$as_me:$LINENO: checking for $ac_func" >&5
8655echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8656if eval "test \"\${$as_ac_var+set}\" = set"; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8658else
8659 cat >conftest.$ac_ext <<_ACEOF
8660/* confdefs.h. */
8661_ACEOF
8662cat confdefs.h >>conftest.$ac_ext
8663cat >>conftest.$ac_ext <<_ACEOF
8664/* end confdefs.h. */
8665/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8667#define $ac_func innocuous_$ac_func
8668
8669/* System header to define __stub macros and hopefully few prototypes,
8670 which can conflict with char $ac_func (); below.
8671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8672 <limits.h> exists even on freestanding compilers. */
8673
8674#ifdef __STDC__
8675# include <limits.h>
8676#else
8677# include <assert.h>
8678#endif
8679
8680#undef $ac_func
8681
8682/* Override any gcc2 internal prototype to avoid an error. */
8683#ifdef __cplusplus
8684extern "C"
8685{
8686#endif
8687/* We use char because int might match the return type of a gcc2
8688 builtin and then its argument prototype would still apply. */
8689char $ac_func ();
8690/* The GNU C library defines this for functions which it implements
8691 to always fail with ENOSYS. Some functions are actually named
8692 something starting with __ and the normal name is an alias. */
8693#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8694choke me
8695#else
8696char (*f) () = $ac_func;
8697#endif
8698#ifdef __cplusplus
8699}
8700#endif
8701
8702int
8703main ()
8704{
8705return f != $ac_func;
8706 ;
8707 return 0;
8708}
8709_ACEOF
8710rm -f conftest.$ac_objext conftest$ac_exeext
8711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8712 (eval $ac_link) 2>conftest.er1
8713 ac_status=$?
8714 grep -v '^ *+' conftest.er1 >conftest.err
8715 rm -f conftest.er1
8716 cat conftest.err >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } &&
8719 { ac_try='test -z "$ac_c_werror_flag"
8720 || test ! -s conftest.err'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722 (eval $ac_try) 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; } &&
8726 { ac_try='test -s conftest$ac_exeext'
8727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728 (eval $ac_try) 2>&5
8729 ac_status=$?
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; }; then
8732 eval "$as_ac_var=yes"
8733else
8734 echo "$as_me: failed program was:" >&5
8735sed 's/^/| /' conftest.$ac_ext >&5
8736
8737eval "$as_ac_var=no"
8738fi
8739rm -f conftest.err conftest.$ac_objext \
8740 conftest$ac_exeext conftest.$ac_ext
8741fi
8742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8743echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8744if test `eval echo '${'$as_ac_var'}'` = yes; then
8745 cat >>confdefs.h <<_ACEOF
8746#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8747_ACEOF
8748
8749fi
8750done
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8780 stdio.h unistd.h
8781do
8782as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8783if eval "test \"\${$as_ac_Header+set}\" = set"; then
8784 echo "$as_me:$LINENO: checking for $ac_header" >&5
8785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8786if eval "test \"\${$as_ac_Header+set}\" = set"; then
8787 echo $ECHO_N "(cached) $ECHO_C" >&6
8788fi
8789echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8790echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8791else
8792 # Is the header compilable?
8793echo "$as_me:$LINENO: checking $ac_header usability" >&5
8794echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8795cat >conftest.$ac_ext <<_ACEOF
8796/* confdefs.h. */
8797_ACEOF
8798cat confdefs.h >>conftest.$ac_ext
8799cat >>conftest.$ac_ext <<_ACEOF
8800/* end confdefs.h. */
8801$ac_includes_default
8802#include <$ac_header>
8803_ACEOF
8804rm -f conftest.$ac_objext
8805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8806 (eval $ac_compile) 2>conftest.er1
8807 ac_status=$?
8808 grep -v '^ *+' conftest.er1 >conftest.err
8809 rm -f conftest.er1
8810 cat conftest.err >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } &&
8813 { ac_try='test -z "$ac_c_werror_flag"
8814 || test ! -s conftest.err'
8815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816 (eval $ac_try) 2>&5
8817 ac_status=$?
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; } &&
8820 { ac_try='test -s conftest.$ac_objext'
8821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822 (eval $ac_try) 2>&5
8823 ac_status=$?
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); }; }; then
8826 ac_header_compiler=yes
8827else
8828 echo "$as_me: failed program was:" >&5
8829sed 's/^/| /' conftest.$ac_ext >&5
8830
8831ac_header_compiler=no
8832fi
8833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8834echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8835echo "${ECHO_T}$ac_header_compiler" >&6
8836
8837# Is the header present?
8838echo "$as_me:$LINENO: checking $ac_header presence" >&5
8839echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8840cat >conftest.$ac_ext <<_ACEOF
8841/* confdefs.h. */
8842_ACEOF
8843cat confdefs.h >>conftest.$ac_ext
8844cat >>conftest.$ac_ext <<_ACEOF
8845/* end confdefs.h. */
8846#include <$ac_header>
8847_ACEOF
8848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8850 ac_status=$?
8851 grep -v '^ *+' conftest.er1 >conftest.err
8852 rm -f conftest.er1
8853 cat conftest.err >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } >/dev/null; then
8856 if test -s conftest.err; then
8857 ac_cpp_err=$ac_c_preproc_warn_flag
8858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8859 else
8860 ac_cpp_err=
8861 fi
8862else
8863 ac_cpp_err=yes
8864fi
8865if test -z "$ac_cpp_err"; then
8866 ac_header_preproc=yes
8867else
8868 echo "$as_me: failed program was:" >&5
8869sed 's/^/| /' conftest.$ac_ext >&5
8870
8871 ac_header_preproc=no
8872fi
8873rm -f conftest.err conftest.$ac_ext
8874echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8875echo "${ECHO_T}$ac_header_preproc" >&6
8876
8877# So? What about this header?
8878case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8879 yes:no: )
8880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8881echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8883echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8884 ac_header_preproc=yes
8885 ;;
8886 no:yes:* )
8887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8888echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8890echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8892echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8894echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8896echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8898echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8899 (
8900 cat <<\_ASBOX
8901## ----------------------------------- ##
8902## Report this to llvmbugs@cs.uiuc.edu ##
8903## ----------------------------------- ##
8904_ASBOX
8905 ) |
8906 sed "s/^/$as_me: WARNING: /" >&2
8907 ;;
8908esac
8909echo "$as_me:$LINENO: checking for $ac_header" >&5
8910echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8911if eval "test \"\${$as_ac_Header+set}\" = set"; then
8912 echo $ECHO_N "(cached) $ECHO_C" >&6
8913else
8914 eval "$as_ac_Header=\$ac_header_preproc"
8915fi
8916echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8917echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8918
8919fi
8920if test `eval echo '${'$as_ac_Header'}'` = yes; then
8921 cat >>confdefs.h <<_ACEOF
8922#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8923_ACEOF
8924
8925fi
8926
8927done
8928
8929
8930
8931
8932
8933for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8934do
8935as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8936if eval "test \"\${$as_ac_Header+set}\" = set"; then
8937 echo "$as_me:$LINENO: checking for $ac_header" >&5
8938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8939if eval "test \"\${$as_ac_Header+set}\" = set"; then
8940 echo $ECHO_N "(cached) $ECHO_C" >&6
8941fi
8942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8944else
8945 # Is the header compilable?
8946echo "$as_me:$LINENO: checking $ac_header usability" >&5
8947echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8948cat >conftest.$ac_ext <<_ACEOF
8949/* confdefs.h. */
8950_ACEOF
8951cat confdefs.h >>conftest.$ac_ext
8952cat >>conftest.$ac_ext <<_ACEOF
8953/* end confdefs.h. */
8954$ac_includes_default
8955#include <$ac_header>
8956_ACEOF
8957rm -f conftest.$ac_objext
8958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8959 (eval $ac_compile) 2>conftest.er1
8960 ac_status=$?
8961 grep -v '^ *+' conftest.er1 >conftest.err
8962 rm -f conftest.er1
8963 cat conftest.err >&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); } &&
8966 { ac_try='test -z "$ac_c_werror_flag"
8967 || test ! -s conftest.err'
8968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8969 (eval $ac_try) 2>&5
8970 ac_status=$?
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); }; } &&
8973 { ac_try='test -s conftest.$ac_objext'
8974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975 (eval $ac_try) 2>&5
8976 ac_status=$?
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; }; then
8979 ac_header_compiler=yes
8980else
8981 echo "$as_me: failed program was:" >&5
8982sed 's/^/| /' conftest.$ac_ext >&5
8983
8984ac_header_compiler=no
8985fi
8986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8987echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8988echo "${ECHO_T}$ac_header_compiler" >&6
8989
8990# Is the header present?
8991echo "$as_me:$LINENO: checking $ac_header presence" >&5
8992echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8993cat >conftest.$ac_ext <<_ACEOF
8994/* confdefs.h. */
8995_ACEOF
8996cat confdefs.h >>conftest.$ac_ext
8997cat >>conftest.$ac_ext <<_ACEOF
8998/* end confdefs.h. */
8999#include <$ac_header>
9000_ACEOF
9001if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9003 ac_status=$?
9004 grep -v '^ *+' conftest.er1 >conftest.err
9005 rm -f conftest.er1
9006 cat conftest.err >&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); } >/dev/null; then
9009 if test -s conftest.err; then
9010 ac_cpp_err=$ac_c_preproc_warn_flag
9011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9012 else
9013 ac_cpp_err=
9014 fi
9015else
9016 ac_cpp_err=yes
9017fi
9018if test -z "$ac_cpp_err"; then
9019 ac_header_preproc=yes
9020else
9021 echo "$as_me: failed program was:" >&5
9022sed 's/^/| /' conftest.$ac_ext >&5
9023
9024 ac_header_preproc=no
9025fi
9026rm -f conftest.err conftest.$ac_ext
9027echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9028echo "${ECHO_T}$ac_header_preproc" >&6
9029
9030# So? What about this header?
9031case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9032 yes:no: )
9033 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9034echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9036echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9037 ac_header_preproc=yes
9038 ;;
9039 no:yes:* )
9040 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9041echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9042 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9043echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9044 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9045echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9046 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9047echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9049echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9050 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9051echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9052 (
9053 cat <<\_ASBOX
9054## ----------------------------------- ##
9055## Report this to llvmbugs@cs.uiuc.edu ##
9056## ----------------------------------- ##
9057_ASBOX
9058 ) |
9059 sed "s/^/$as_me: WARNING: /" >&2
9060 ;;
9061esac
9062echo "$as_me:$LINENO: checking for $ac_header" >&5
9063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9064if eval "test \"\${$as_ac_Header+set}\" = set"; then
9065 echo $ECHO_N "(cached) $ECHO_C" >&6
9066else
9067 eval "$as_ac_Header=\$ac_header_preproc"
9068fi
9069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9070echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9071
9072fi
9073if test `eval echo '${'$as_ac_Header'}'` = yes; then
9074 cat >>confdefs.h <<_ACEOF
9075#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9076_ACEOF
9077
9078fi
9079
9080done
9081
9082
9083
9084for ac_header in string.h strings.h
9085do
9086as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9087if eval "test \"\${$as_ac_Header+set}\" = set"; then
9088 echo "$as_me:$LINENO: checking for $ac_header" >&5
9089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9090if eval "test \"\${$as_ac_Header+set}\" = set"; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9092fi
9093echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9094echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9095else
9096 # Is the header compilable?
9097echo "$as_me:$LINENO: checking $ac_header usability" >&5
9098echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9099cat >conftest.$ac_ext <<_ACEOF
9100/* confdefs.h. */
9101_ACEOF
9102cat confdefs.h >>conftest.$ac_ext
9103cat >>conftest.$ac_ext <<_ACEOF
9104/* end confdefs.h. */
9105$ac_includes_default
9106#include <$ac_header>
9107_ACEOF
9108rm -f conftest.$ac_objext
9109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9110 (eval $ac_compile) 2>conftest.er1
9111 ac_status=$?
9112 grep -v '^ *+' conftest.er1 >conftest.err
9113 rm -f conftest.er1
9114 cat conftest.err >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } &&
9117 { ac_try='test -z "$ac_c_werror_flag"
9118 || test ! -s conftest.err'
9119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120 (eval $ac_try) 2>&5
9121 ac_status=$?
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); }; } &&
9124 { ac_try='test -s conftest.$ac_objext'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 (eval $ac_try) 2>&5
9127 ac_status=$?
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
9130 ac_header_compiler=yes
9131else
9132 echo "$as_me: failed program was:" >&5
9133sed 's/^/| /' conftest.$ac_ext >&5
9134
9135ac_header_compiler=no
9136fi
9137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9138echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9139echo "${ECHO_T}$ac_header_compiler" >&6
9140
9141# Is the header present?
9142echo "$as_me:$LINENO: checking $ac_header presence" >&5
9143echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9144cat >conftest.$ac_ext <<_ACEOF
9145/* confdefs.h. */
9146_ACEOF
9147cat confdefs.h >>conftest.$ac_ext
9148cat >>conftest.$ac_ext <<_ACEOF
9149/* end confdefs.h. */
9150#include <$ac_header>
9151_ACEOF
9152if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9154 ac_status=$?
9155 grep -v '^ *+' conftest.er1 >conftest.err
9156 rm -f conftest.er1
9157 cat conftest.err >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); } >/dev/null; then
9160 if test -s conftest.err; then
9161 ac_cpp_err=$ac_c_preproc_warn_flag
9162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9163 else
9164 ac_cpp_err=
9165 fi
9166else
9167 ac_cpp_err=yes
9168fi
9169if test -z "$ac_cpp_err"; then
9170 ac_header_preproc=yes
9171else
9172 echo "$as_me: failed program was:" >&5
9173sed 's/^/| /' conftest.$ac_ext >&5
9174
9175 ac_header_preproc=no
9176fi
9177rm -f conftest.err conftest.$ac_ext
9178echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9179echo "${ECHO_T}$ac_header_preproc" >&6
9180
9181# So? What about this header?
9182case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9183 yes:no: )
9184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9185echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9187echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9188 ac_header_preproc=yes
9189 ;;
9190 no:yes:* )
9191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9192echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9194echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9195 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9196echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9197 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9198echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9200echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9201 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9202echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9203 (
9204 cat <<\_ASBOX
9205## ----------------------------------- ##
9206## Report this to llvmbugs@cs.uiuc.edu ##
9207## ----------------------------------- ##
9208_ASBOX
9209 ) |
9210 sed "s/^/$as_me: WARNING: /" >&2
9211 ;;
9212esac
9213echo "$as_me:$LINENO: checking for $ac_header" >&5
9214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9215if eval "test \"\${$as_ac_Header+set}\" = set"; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9217else
9218 eval "$as_ac_Header=\$ac_header_preproc"
9219fi
9220echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9221echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9222
9223fi
9224if test `eval echo '${'$as_ac_Header'}'` = yes; then
9225 cat >>confdefs.h <<_ACEOF
9226#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9227_ACEOF
9228 break
9229fi
9230
9231done
9232
9233
9234
9235
9236for ac_func in strchr index
9237do
9238as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9239echo "$as_me:$LINENO: checking for $ac_func" >&5
9240echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9241if eval "test \"\${$as_ac_var+set}\" = set"; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9243else
9244 cat >conftest.$ac_ext <<_ACEOF
9245/* confdefs.h. */
9246_ACEOF
9247cat confdefs.h >>conftest.$ac_ext
9248cat >>conftest.$ac_ext <<_ACEOF
9249/* end confdefs.h. */
9250/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9252#define $ac_func innocuous_$ac_func
9253
9254/* System header to define __stub macros and hopefully few prototypes,
9255 which can conflict with char $ac_func (); below.
9256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9257 <limits.h> exists even on freestanding compilers. */
9258
9259#ifdef __STDC__
9260# include <limits.h>
9261#else
9262# include <assert.h>
9263#endif
9264
9265#undef $ac_func
9266
9267/* Override any gcc2 internal prototype to avoid an error. */
9268#ifdef __cplusplus
9269extern "C"
9270{
9271#endif
9272/* We use char because int might match the return type of a gcc2
9273 builtin and then its argument prototype would still apply. */
9274char $ac_func ();
9275/* The GNU C library defines this for functions which it implements
9276 to always fail with ENOSYS. Some functions are actually named
9277 something starting with __ and the normal name is an alias. */
9278#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9279choke me
9280#else
9281char (*f) () = $ac_func;
9282#endif
9283#ifdef __cplusplus
9284}
9285#endif
9286
9287int
9288main ()
9289{
9290return f != $ac_func;
9291 ;
9292 return 0;
9293}
9294_ACEOF
9295rm -f conftest.$ac_objext conftest$ac_exeext
9296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9297 (eval $ac_link) 2>conftest.er1
9298 ac_status=$?
9299 grep -v '^ *+' conftest.er1 >conftest.err
9300 rm -f conftest.er1
9301 cat conftest.err >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } &&
9304 { ac_try='test -z "$ac_c_werror_flag"
9305 || test ! -s conftest.err'
9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307 (eval $ac_try) 2>&5
9308 ac_status=$?
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; } &&
9311 { ac_try='test -s conftest$ac_exeext'
9312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9313 (eval $ac_try) 2>&5
9314 ac_status=$?
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); }; }; then
9317 eval "$as_ac_var=yes"
9318else
9319 echo "$as_me: failed program was:" >&5
9320sed 's/^/| /' conftest.$ac_ext >&5
9321
9322eval "$as_ac_var=no"
9323fi
9324rm -f conftest.err conftest.$ac_objext \
9325 conftest$ac_exeext conftest.$ac_ext
9326fi
9327echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9328echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9329if test `eval echo '${'$as_ac_var'}'` = yes; then
9330 cat >>confdefs.h <<_ACEOF
9331#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9332_ACEOF
9333 break
9334fi
9335done
9336
9337
9338
9339for ac_func in strrchr rindex
9340do
9341as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9342echo "$as_me:$LINENO: checking for $ac_func" >&5
9343echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9344if eval "test \"\${$as_ac_var+set}\" = set"; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9346else
9347 cat >conftest.$ac_ext <<_ACEOF
9348/* confdefs.h. */
9349_ACEOF
9350cat confdefs.h >>conftest.$ac_ext
9351cat >>conftest.$ac_ext <<_ACEOF
9352/* end confdefs.h. */
9353/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9355#define $ac_func innocuous_$ac_func
9356
9357/* System header to define __stub macros and hopefully few prototypes,
9358 which can conflict with char $ac_func (); below.
9359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9360 <limits.h> exists even on freestanding compilers. */
9361
9362#ifdef __STDC__
9363# include <limits.h>
9364#else
9365# include <assert.h>
9366#endif
9367
9368#undef $ac_func
9369
9370/* Override any gcc2 internal prototype to avoid an error. */
9371#ifdef __cplusplus
9372extern "C"
9373{
9374#endif
9375/* We use char because int might match the return type of a gcc2
9376 builtin and then its argument prototype would still apply. */
9377char $ac_func ();
9378/* The GNU C library defines this for functions which it implements
9379 to always fail with ENOSYS. Some functions are actually named
9380 something starting with __ and the normal name is an alias. */
9381#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9382choke me
9383#else
9384char (*f) () = $ac_func;
9385#endif
9386#ifdef __cplusplus
9387}
9388#endif
9389
9390int
9391main ()
9392{
9393return f != $ac_func;
9394 ;
9395 return 0;
9396}
9397_ACEOF
9398rm -f conftest.$ac_objext conftest$ac_exeext
9399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9400 (eval $ac_link) 2>conftest.er1
9401 ac_status=$?
9402 grep -v '^ *+' conftest.er1 >conftest.err
9403 rm -f conftest.er1
9404 cat conftest.err >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } &&
9407 { ac_try='test -z "$ac_c_werror_flag"
9408 || test ! -s conftest.err'
9409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410 (eval $ac_try) 2>&5
9411 ac_status=$?
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; } &&
9414 { ac_try='test -s conftest$ac_exeext'
9415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9416 (eval $ac_try) 2>&5
9417 ac_status=$?
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); }; }; then
9420 eval "$as_ac_var=yes"
9421else
9422 echo "$as_me: failed program was:" >&5
9423sed 's/^/| /' conftest.$ac_ext >&5
9424
9425eval "$as_ac_var=no"
9426fi
9427rm -f conftest.err conftest.$ac_objext \
9428 conftest$ac_exeext conftest.$ac_ext
9429fi
9430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9431echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9432if test `eval echo '${'$as_ac_var'}'` = yes; then
9433 cat >>confdefs.h <<_ACEOF
9434#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9435_ACEOF
9436 break
9437fi
9438done
9439
9440
9441
9442for ac_func in memcpy bcopy
9443do
9444as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9445echo "$as_me:$LINENO: checking for $ac_func" >&5
9446echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9447if eval "test \"\${$as_ac_var+set}\" = set"; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
9449else
9450 cat >conftest.$ac_ext <<_ACEOF
9451/* confdefs.h. */
9452_ACEOF
9453cat confdefs.h >>conftest.$ac_ext
9454cat >>conftest.$ac_ext <<_ACEOF
9455/* end confdefs.h. */
9456/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9458#define $ac_func innocuous_$ac_func
9459
9460/* System header to define __stub macros and hopefully few prototypes,
9461 which can conflict with char $ac_func (); below.
9462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9463 <limits.h> exists even on freestanding compilers. */
9464
9465#ifdef __STDC__
9466# include <limits.h>
9467#else
9468# include <assert.h>
9469#endif
9470
9471#undef $ac_func
9472
9473/* Override any gcc2 internal prototype to avoid an error. */
9474#ifdef __cplusplus
9475extern "C"
9476{
9477#endif
9478/* We use char because int might match the return type of a gcc2
9479 builtin and then its argument prototype would still apply. */
9480char $ac_func ();
9481/* The GNU C library defines this for functions which it implements
9482 to always fail with ENOSYS. Some functions are actually named
9483 something starting with __ and the normal name is an alias. */
9484#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9485choke me
9486#else
9487char (*f) () = $ac_func;
9488#endif
9489#ifdef __cplusplus
9490}
9491#endif
9492
9493int
9494main ()
9495{
9496return f != $ac_func;
9497 ;
9498 return 0;
9499}
9500_ACEOF
9501rm -f conftest.$ac_objext conftest$ac_exeext
9502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9503 (eval $ac_link) 2>conftest.er1
9504 ac_status=$?
9505 grep -v '^ *+' conftest.er1 >conftest.err
9506 rm -f conftest.er1
9507 cat conftest.err >&5
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); } &&
9510 { ac_try='test -z "$ac_c_werror_flag"
9511 || test ! -s conftest.err'
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513 (eval $ac_try) 2>&5
9514 ac_status=$?
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; } &&
9517 { ac_try='test -s conftest$ac_exeext'
9518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519 (eval $ac_try) 2>&5
9520 ac_status=$?
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); }; }; then
9523 eval "$as_ac_var=yes"
9524else
9525 echo "$as_me: failed program was:" >&5
9526sed 's/^/| /' conftest.$ac_ext >&5
9527
9528eval "$as_ac_var=no"
9529fi
9530rm -f conftest.err conftest.$ac_objext \
9531 conftest$ac_exeext conftest.$ac_ext
9532fi
9533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9534echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9535if test `eval echo '${'$as_ac_var'}'` = yes; then
9536 cat >>confdefs.h <<_ACEOF
9537#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9538_ACEOF
9539 break
9540fi
9541done
9542
9543
9544
9545for ac_func in memmove strcmp
9546do
9547as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9548echo "$as_me:$LINENO: checking for $ac_func" >&5
9549echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9550if eval "test \"\${$as_ac_var+set}\" = set"; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9552else
9553 cat >conftest.$ac_ext <<_ACEOF
9554/* confdefs.h. */
9555_ACEOF
9556cat confdefs.h >>conftest.$ac_ext
9557cat >>conftest.$ac_ext <<_ACEOF
9558/* end confdefs.h. */
9559/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9561#define $ac_func innocuous_$ac_func
9562
9563/* System header to define __stub macros and hopefully few prototypes,
9564 which can conflict with char $ac_func (); below.
9565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9566 <limits.h> exists even on freestanding compilers. */
9567
9568#ifdef __STDC__
9569# include <limits.h>
9570#else
9571# include <assert.h>
9572#endif
9573
9574#undef $ac_func
9575
9576/* Override any gcc2 internal prototype to avoid an error. */
9577#ifdef __cplusplus
9578extern "C"
9579{
9580#endif
9581/* We use char because int might match the return type of a gcc2
9582 builtin and then its argument prototype would still apply. */
9583char $ac_func ();
9584/* The GNU C library defines this for functions which it implements
9585 to always fail with ENOSYS. Some functions are actually named
9586 something starting with __ and the normal name is an alias. */
9587#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9588choke me
9589#else
9590char (*f) () = $ac_func;
9591#endif
9592#ifdef __cplusplus
9593}
9594#endif
9595
9596int
9597main ()
9598{
9599return f != $ac_func;
9600 ;
9601 return 0;
9602}
9603_ACEOF
9604rm -f conftest.$ac_objext conftest$ac_exeext
9605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9606 (eval $ac_link) 2>conftest.er1
9607 ac_status=$?
9608 grep -v '^ *+' conftest.er1 >conftest.err
9609 rm -f conftest.er1
9610 cat conftest.err >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } &&
9613 { ac_try='test -z "$ac_c_werror_flag"
9614 || test ! -s conftest.err'
9615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616 (eval $ac_try) 2>&5
9617 ac_status=$?
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; } &&
9620 { ac_try='test -s conftest$ac_exeext'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622 (eval $ac_try) 2>&5
9623 ac_status=$?
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; }; then
9626 eval "$as_ac_var=yes"
9627else
9628 echo "$as_me: failed program was:" >&5
9629sed 's/^/| /' conftest.$ac_ext >&5
9630
9631eval "$as_ac_var=no"
9632fi
9633rm -f conftest.err conftest.$ac_objext \
9634 conftest$ac_exeext conftest.$ac_ext
9635fi
9636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9637echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9638if test `eval echo '${'$as_ac_var'}'` = yes; then
9639 cat >>confdefs.h <<_ACEOF
9640#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9641_ACEOF
9642
9643fi
9644done
9645
9646
9647
9648
9649for ac_func in closedir opendir readdir
9650do
9651as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9652echo "$as_me:$LINENO: checking for $ac_func" >&5
9653echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9654if eval "test \"\${$as_ac_var+set}\" = set"; then
9655 echo $ECHO_N "(cached) $ECHO_C" >&6
9656else
9657 cat >conftest.$ac_ext <<_ACEOF
9658/* confdefs.h. */
9659_ACEOF
9660cat confdefs.h >>conftest.$ac_ext
9661cat >>conftest.$ac_ext <<_ACEOF
9662/* end confdefs.h. */
9663/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9665#define $ac_func innocuous_$ac_func
9666
9667/* System header to define __stub macros and hopefully few prototypes,
9668 which can conflict with char $ac_func (); below.
9669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9670 <limits.h> exists even on freestanding compilers. */
9671
9672#ifdef __STDC__
9673# include <limits.h>
9674#else
9675# include <assert.h>
9676#endif
9677
9678#undef $ac_func
9679
9680/* Override any gcc2 internal prototype to avoid an error. */
9681#ifdef __cplusplus
9682extern "C"
9683{
9684#endif
9685/* We use char because int might match the return type of a gcc2
9686 builtin and then its argument prototype would still apply. */
9687char $ac_func ();
9688/* The GNU C library defines this for functions which it implements
9689 to always fail with ENOSYS. Some functions are actually named
9690 something starting with __ and the normal name is an alias. */
9691#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9692choke me
9693#else
9694char (*f) () = $ac_func;
9695#endif
9696#ifdef __cplusplus
9697}
9698#endif
9699
9700int
9701main ()
9702{
9703return f != $ac_func;
9704 ;
9705 return 0;
9706}
9707_ACEOF
9708rm -f conftest.$ac_objext conftest$ac_exeext
9709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9710 (eval $ac_link) 2>conftest.er1
9711 ac_status=$?
9712 grep -v '^ *+' conftest.er1 >conftest.err
9713 rm -f conftest.er1
9714 cat conftest.err >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } &&
9717 { ac_try='test -z "$ac_c_werror_flag"
9718 || test ! -s conftest.err'
9719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9720 (eval $ac_try) 2>&5
9721 ac_status=$?
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; } &&
9724 { ac_try='test -s conftest$ac_exeext'
9725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726 (eval $ac_try) 2>&5
9727 ac_status=$?
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); }; }; then
9730 eval "$as_ac_var=yes"
9731else
9732 echo "$as_me: failed program was:" >&5
9733sed 's/^/| /' conftest.$ac_ext >&5
9734
9735eval "$as_ac_var=no"
9736fi
9737rm -f conftest.err conftest.$ac_objext \
9738 conftest$ac_exeext conftest.$ac_ext
9739fi
9740echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9741echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9742if test `eval echo '${'$as_ac_var'}'` = yes; then
9743 cat >>confdefs.h <<_ACEOF
9744#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9745_ACEOF
9746
9747fi
9748done
9749
9750
9751# Check whether --enable-shared or --disable-shared was given.
9752if test "${enable_shared+set}" = set; then
9753 enableval="$enable_shared"
9754 p=${PACKAGE-default}
9755 case $enableval in
9756 yes) enable_shared=yes ;;
9757 no) enable_shared=no ;;
9758 *)
9759 enable_shared=no
9760 # Look at the argument we got. We use all the common list separators.
9761 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9762 for pkg in $enableval; do
9763 IFS="$lt_save_ifs"
9764 if test "X$pkg" = "X$p"; then
9765 enable_shared=yes
9766 fi
9767 done
9768 IFS="$lt_save_ifs"
9769 ;;
9770 esac
9771else
9772 enable_shared=yes
9773fi;
9774
9775# Check whether --enable-static or --disable-static was given.
9776if test "${enable_static+set}" = set; then
9777 enableval="$enable_static"
9778 p=${PACKAGE-default}
9779 case $enableval in
9780 yes) enable_static=yes ;;
9781 no) enable_static=no ;;
9782 *)
9783 enable_static=no
9784 # Look at the argument we got. We use all the common list separators.
9785 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9786 for pkg in $enableval; do
9787 IFS="$lt_save_ifs"
9788 if test "X$pkg" = "X$p"; then
9789 enable_static=yes
9790 fi
9791 done
9792 IFS="$lt_save_ifs"
9793 ;;
9794 esac
9795else
9796 enable_static=yes
9797fi;
9798
9799# Check whether --enable-fast-install or --disable-fast-install was given.
9800if test "${enable_fast_install+set}" = set; then
9801 enableval="$enable_fast_install"
9802 p=${PACKAGE-default}
9803 case $enableval in
9804 yes) enable_fast_install=yes ;;
9805 no) enable_fast_install=no ;;
9806 *)
9807 enable_fast_install=no
9808 # Look at the argument we got. We use all the common list separators.
9809 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9810 for pkg in $enableval; do
9811 IFS="$lt_save_ifs"
9812 if test "X$pkg" = "X$p"; then
9813 enable_fast_install=yes
9814 fi
9815 done
9816 IFS="$lt_save_ifs"
9817 ;;
9818 esac
9819else
9820 enable_fast_install=yes
9821fi;
9822
9823echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9824echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9825if test "${lt_cv_path_SED+set}" = set; then
9826 echo $ECHO_N "(cached) $ECHO_C" >&6
9827else
9828 # Loop through the user's path and test for sed and gsed.
9829# Then use that list of sed's as ones to test for truncation.
9830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9831for as_dir in $PATH
9832do
9833 IFS=$as_save_IFS
9834 test -z "$as_dir" && as_dir=.
9835 for lt_ac_prog in sed gsed; do
9836 for ac_exec_ext in '' $ac_executable_extensions; do
9837 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9838 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9839 fi
9840 done
9841 done
9842done
9843lt_ac_max=0
9844lt_ac_count=0
9845# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9846# along with /bin/sed that truncates output.
9847for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9848 test ! -f $lt_ac_sed && break
9849 cat /dev/null > conftest.in
9850 lt_ac_count=0
9851 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9852 # Check for GNU sed and select it if it is found.
9853 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9854 lt_cv_path_SED=$lt_ac_sed
9855 break
9856 fi
9857 while true; do
9858 cat conftest.in conftest.in >conftest.tmp
9859 mv conftest.tmp conftest.in
9860 cp conftest.in conftest.nl
9861 echo >>conftest.nl
9862 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9863 cmp -s conftest.out conftest.nl || break
9864 # 10000 chars as input seems more than enough
9865 test $lt_ac_count -gt 10 && break
9866 lt_ac_count=`expr $lt_ac_count + 1`
9867 if test $lt_ac_count -gt $lt_ac_max; then
9868 lt_ac_max=$lt_ac_count
9869 lt_cv_path_SED=$lt_ac_sed
9870 fi
9871 done
9872done
9873
9874fi
9875
9876SED=$lt_cv_path_SED
9877echo "$as_me:$LINENO: result: $SED" >&5
9878echo "${ECHO_T}$SED" >&6
9879
9880
9881# Check whether --with-gnu-ld or --without-gnu-ld was given.
9882if test "${with_gnu_ld+set}" = set; then
9883 withval="$with_gnu_ld"
9884 test "$withval" = no || with_gnu_ld=yes
9885else
9886 with_gnu_ld=no
9887fi;
9888ac_prog=ld
9889if test "$GCC" = yes; then
9890 # Check if gcc -print-prog-name=ld gives a path.
9891 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9892echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9893 case $host in
9894 *-*-mingw*)
9895 # gcc leaves a trailing carriage return which upsets mingw
9896 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9897 *)
9898 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9899 esac
9900 case $ac_prog in
9901 # Accept absolute paths.
9902 [\\/]* | ?:[\\/]*)
9903 re_direlt='/[^/][^/]*/\.\./'
9904 # Canonicalize the pathname of ld
9905 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9906 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9907 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9908 done
9909 test -z "$LD" && LD="$ac_prog"
9910 ;;
9911 "")
9912 # If it fails, then pretend we aren't using GCC.
9913 ac_prog=ld
9914 ;;
9915 *)
9916 # If it is relative, then search for the first ld in PATH.
9917 with_gnu_ld=unknown
9918 ;;
9919 esac
9920elif test "$with_gnu_ld" = yes; then
9921 echo "$as_me:$LINENO: checking for GNU ld" >&5
9922echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9923else
9924 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9925echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9926fi
9927if test "${lt_cv_path_LD+set}" = set; then
9928 echo $ECHO_N "(cached) $ECHO_C" >&6
9929else
9930 if test -z "$LD"; then
9931 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9932 for ac_dir in $PATH; do
9933 IFS="$lt_save_ifs"
9934 test -z "$ac_dir" && ac_dir=.
9935 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9936 lt_cv_path_LD="$ac_dir/$ac_prog"
9937 # Check to see if the program is GNU ld. I'd rather use --version,
9938 # but apparently some GNU ld's only accept -v.
9939 # Break only if it was the GNU/non-GNU ld that we prefer.
9940 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9941 *GNU* | *'with BFD'*)
9942 test "$with_gnu_ld" != no && break
9943 ;;
9944 *)
9945 test "$with_gnu_ld" != yes && break
9946 ;;
9947 esac
9948 fi
9949 done
9950 IFS="$lt_save_ifs"
9951else
9952 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9953fi
9954fi
9955
9956LD="$lt_cv_path_LD"
9957if test -n "$LD"; then
9958 echo "$as_me:$LINENO: result: $LD" >&5
9959echo "${ECHO_T}$LD" >&6
9960else
9961 echo "$as_me:$LINENO: result: no" >&5
9962echo "${ECHO_T}no" >&6
9963fi
9964test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9965echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9966 { (exit 1); exit 1; }; }
9967echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9968echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9969if test "${lt_cv_prog_gnu_ld+set}" = set; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9971else
9972 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9973case `$LD -v 2>&1 </dev/null` in
9974*GNU* | *'with BFD'*)
9975 lt_cv_prog_gnu_ld=yes
9976 ;;
9977*)
9978 lt_cv_prog_gnu_ld=no
9979 ;;
9980esac
9981fi
9982echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9983echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9984with_gnu_ld=$lt_cv_prog_gnu_ld
9985
9986
9987echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9988echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9989if test "${lt_cv_ld_reload_flag+set}" = set; then
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
9991else
9992 lt_cv_ld_reload_flag='-r'
9993fi
9994echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9995echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9996reload_flag=$lt_cv_ld_reload_flag
9997case $reload_flag in
9998"" | " "*) ;;
9999*) reload_flag=" $reload_flag" ;;
10000esac
10001reload_cmds='$LD$reload_flag -o $output$reload_objs'
10002case $host_os in
10003 darwin*)
10004 if test "$GCC" = yes; then
10005 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10006 else
10007 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10008 fi
10009 ;;
10010esac
10011
10012echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10013echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10014if test "${lt_cv_deplibs_check_method+set}" = set; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10016else
10017 lt_cv_file_magic_cmd='$MAGIC_CMD'
10018lt_cv_file_magic_test_file=
10019lt_cv_deplibs_check_method='unknown'
10020# Need to set the preceding variable on all platforms that support
10021# interlibrary dependencies.
10022# 'none' -- dependencies not supported.
10023# `unknown' -- same as none, but documents that we really don't know.
10024# 'pass_all' -- all dependencies passed with no checks.
10025# 'test_compile' -- check by making test program.
10026# 'file_magic [[regex]]' -- check by looking for files in library path
10027# which responds to the $file_magic_cmd with a given extended regex.
10028# If you have `file' or equivalent on your system and you're not sure
10029# whether `pass_all' will *always* work, you probably want this one.
10030
10031case $host_os in
10032aix4* | aix5*)
10033 lt_cv_deplibs_check_method=pass_all
10034 ;;
10035
10036beos*)
10037 lt_cv_deplibs_check_method=pass_all
10038 ;;
10039
10040bsdi[45]*)
10041 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10042 lt_cv_file_magic_cmd='/usr/bin/file -L'
10043 lt_cv_file_magic_test_file=/shlib/libc.so
10044 ;;
10045
10046cygwin*)
10047 # func_win32_libid is a shell function defined in ltmain.sh
10048 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10049 lt_cv_file_magic_cmd='func_win32_libid'
10050 ;;
10051
10052mingw* | pw32*)
10053 # Base MSYS/MinGW do not provide the 'file' command needed by
10054 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10055 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10056 lt_cv_file_magic_cmd='$OBJDUMP -f'
10057 ;;
10058
10059darwin* | rhapsody*)
10060 lt_cv_deplibs_check_method=pass_all
10061 ;;
10062
10063freebsd* | kfreebsd*-gnu)
10064 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10065 case $host_cpu in
10066 i*86 )
10067 # Not sure whether the presence of OpenBSD here was a mistake.
10068 # Let's accept both of them until this is cleared up.
10069 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10070 lt_cv_file_magic_cmd=/usr/bin/file
10071 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10072 ;;
10073 esac
10074 else
10075 lt_cv_deplibs_check_method=pass_all
10076 fi
10077 ;;
10078
10079gnu*)
10080 lt_cv_deplibs_check_method=pass_all
10081 ;;
10082
10083hpux10.20* | hpux11*)
10084 lt_cv_file_magic_cmd=/usr/bin/file
10085 case "$host_cpu" in
10086 ia64*)
10087 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10088 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10089 ;;
10090 hppa*64*)
10091 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]'
10092 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10093 ;;
10094 *)
10095 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10096 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10097 ;;
10098 esac
10099 ;;
10100
10101irix5* | irix6* | nonstopux*)
10102 case $LD in
10103 *-32|*"-32 ") libmagic=32-bit;;
10104 *-n32|*"-n32 ") libmagic=N32;;
10105 *-64|*"-64 ") libmagic=64-bit;;
10106 *) libmagic=never-match;;
10107 esac
10108 lt_cv_deplibs_check_method=pass_all
10109 ;;
10110
10111# This must be Linux ELF.
10112linux*)
10113 lt_cv_deplibs_check_method=pass_all
10114 ;;
10115
10116netbsd*)
10117 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10118 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10119 else
10120 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10121 fi
10122 ;;
10123
10124newos6*)
10125 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10126 lt_cv_file_magic_cmd=/usr/bin/file
10127 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10128 ;;
10129
10130nto-qnx*)
10131 lt_cv_deplibs_check_method=unknown
10132 ;;
10133
10134openbsd*)
10135 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10136 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10137 else
10138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10139 fi
10140 ;;
10141
10142osf3* | osf4* | osf5*)
10143 lt_cv_deplibs_check_method=pass_all
10144 ;;
10145
10146sco3.2v5*)
10147 lt_cv_deplibs_check_method=pass_all
10148 ;;
10149
10150solaris*)
10151 lt_cv_deplibs_check_method=pass_all
10152 ;;
10153
10154sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10155 case $host_vendor in
10156 motorola)
10157 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]'
10158 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10159 ;;
10160 ncr)
10161 lt_cv_deplibs_check_method=pass_all
10162 ;;
10163 sequent)
10164 lt_cv_file_magic_cmd='/bin/file'
10165 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10166 ;;
10167 sni)
10168 lt_cv_file_magic_cmd='/bin/file'
10169 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10170 lt_cv_file_magic_test_file=/lib/libc.so
10171 ;;
10172 siemens)
10173 lt_cv_deplibs_check_method=pass_all
10174 ;;
10175 esac
10176 ;;
10177
10178sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10179 lt_cv_deplibs_check_method=pass_all
10180 ;;
10181esac
10182
10183fi
10184echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10185echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10186file_magic_cmd=$lt_cv_file_magic_cmd
10187deplibs_check_method=$lt_cv_deplibs_check_method
10188test -z "$deplibs_check_method" && deplibs_check_method=unknown
10189
10190
10191
10192# If no C compiler was specified, use CC.
10193LTCC=${LTCC-"$CC"}
10194
10195# Allow CC to be a program name with arguments.
10196compiler=$CC
10197
10198# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10199if test "${enable_libtool_lock+set}" = set; then
10200 enableval="$enable_libtool_lock"
10201
10202fi;
10203test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10204
10205# Some flags need to be propagated to the compiler or linker for good
10206# libtool support.
10207case $host in
10208ia64-*-hpux*)
10209 # Find out which ABI we are using.
10210 echo 'int i;' > conftest.$ac_ext
10211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10212 (eval $ac_compile) 2>&5
10213 ac_status=$?
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; then
10216 case `/usr/bin/file conftest.$ac_objext` in
10217 *ELF-32*)
10218 HPUX_IA64_MODE="32"
10219 ;;
10220 *ELF-64*)
10221 HPUX_IA64_MODE="64"
10222 ;;
10223 esac
10224 fi
10225 rm -rf conftest*
10226 ;;
10227*-*-irix6*)
10228 # Find out which ABI we are using.
Duraid Madina775afa52005-05-16 16:33:34 +000010229 echo '#line 10229 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010230 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 if test "$lt_cv_prog_gnu_ld" = yes; then
10236 case `/usr/bin/file conftest.$ac_objext` in
10237 *32-bit*)
10238 LD="${LD-ld} -melf32bsmip"
10239 ;;
10240 *N32*)
10241 LD="${LD-ld} -melf32bmipn32"
10242 ;;
10243 *64-bit*)
10244 LD="${LD-ld} -melf64bmip"
10245 ;;
10246 esac
10247 else
10248 case `/usr/bin/file conftest.$ac_objext` in
10249 *32-bit*)
10250 LD="${LD-ld} -32"
10251 ;;
10252 *N32*)
10253 LD="${LD-ld} -n32"
10254 ;;
10255 *64-bit*)
10256 LD="${LD-ld} -64"
10257 ;;
10258 esac
10259 fi
10260 fi
10261 rm -rf conftest*
10262 ;;
10263
10264x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10265 # Find out which ABI we are using.
10266 echo 'int i;' > conftest.$ac_ext
10267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10268 (eval $ac_compile) 2>&5
10269 ac_status=$?
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; then
10272 case "`/usr/bin/file conftest.o`" in
10273 *32-bit*)
10274 case $host in
10275 x86_64-*linux*)
10276 LD="${LD-ld} -m elf_i386"
10277 ;;
10278 ppc64-*linux*|powerpc64-*linux*)
10279 LD="${LD-ld} -m elf32ppclinux"
10280 ;;
10281 s390x-*linux*)
10282 LD="${LD-ld} -m elf_s390"
10283 ;;
10284 sparc64-*linux*)
10285 LD="${LD-ld} -m elf32_sparc"
10286 ;;
10287 esac
10288 ;;
10289 *64-bit*)
10290 case $host in
10291 x86_64-*linux*)
10292 LD="${LD-ld} -m elf_x86_64"
10293 ;;
10294 ppc*-*linux*|powerpc*-*linux*)
10295 LD="${LD-ld} -m elf64ppc"
10296 ;;
10297 s390*-*linux*)
10298 LD="${LD-ld} -m elf64_s390"
10299 ;;
10300 sparc*-*linux*)
10301 LD="${LD-ld} -m elf64_sparc"
10302 ;;
10303 esac
10304 ;;
10305 esac
10306 fi
10307 rm -rf conftest*
10308 ;;
10309
10310*-*-sco3.2v5*)
10311 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10312 SAVE_CFLAGS="$CFLAGS"
10313 CFLAGS="$CFLAGS -belf"
10314 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10315echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10316if test "${lt_cv_cc_needs_belf+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10318else
10319 ac_ext=c
10320ac_cpp='$CPP $CPPFLAGS'
10321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10323ac_compiler_gnu=$ac_cv_c_compiler_gnu
10324
10325 cat >conftest.$ac_ext <<_ACEOF
10326/* confdefs.h. */
10327_ACEOF
10328cat confdefs.h >>conftest.$ac_ext
10329cat >>conftest.$ac_ext <<_ACEOF
10330/* end confdefs.h. */
10331
10332_ACEOF
10333rm -f conftest.$ac_objext conftest$ac_exeext
10334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10335 (eval $ac_link) 2>conftest.er1
10336 ac_status=$?
10337 grep -v '^ *+' conftest.er1 >conftest.err
10338 rm -f conftest.er1
10339 cat conftest.err >&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } &&
10342 { ac_try='test -z "$ac_c_werror_flag"
10343 || test ! -s conftest.err'
10344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345 (eval $ac_try) 2>&5
10346 ac_status=$?
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); }; } &&
10349 { ac_try='test -s conftest$ac_exeext'
10350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351 (eval $ac_try) 2>&5
10352 ac_status=$?
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); }; }; then
10355 lt_cv_cc_needs_belf=yes
10356else
10357 echo "$as_me: failed program was:" >&5
10358sed 's/^/| /' conftest.$ac_ext >&5
10359
10360lt_cv_cc_needs_belf=no
10361fi
10362rm -f conftest.err conftest.$ac_objext \
10363 conftest$ac_exeext conftest.$ac_ext
10364 ac_ext=c
10365ac_cpp='$CPP $CPPFLAGS'
10366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10368ac_compiler_gnu=$ac_cv_c_compiler_gnu
10369
10370fi
10371echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10372echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10373 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10374 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10375 CFLAGS="$SAVE_CFLAGS"
10376 fi
10377 ;;
10378
10379esac
10380
10381need_locks="$enable_libtool_lock"
10382
10383
Reid Spencer2706f8c2004-09-19 23:53:36 +000010384
10385
10386if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10387 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10388 (test "X$CXX" != "Xg++"))) ; then
10389 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010390ac_cpp='$CXXCPP $CPPFLAGS'
10391ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10392ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10393ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10394echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10395echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10396if test -z "$CXXCPP"; then
10397 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010398 echo $ECHO_N "(cached) $ECHO_C" >&6
10399else
John Criswell47fdd832003-07-14 16:52:07 +000010400 # Double quotes because CXXCPP needs to be expanded
10401 for CXXCPP in "$CXX -E" "/lib/cpp"
10402 do
10403 ac_preproc_ok=false
10404for ac_cxx_preproc_warn_flag in '' yes
10405do
10406 # Use a header file that comes with gcc, so configuring glibc
10407 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010408 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10409 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010410 # On the NeXT, cc -E runs the code through the compiler's parser,
10411 # not just through cpp. "Syntax error" is here to catch this case.
10412 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010413/* confdefs.h. */
10414_ACEOF
10415cat confdefs.h >>conftest.$ac_ext
10416cat >>conftest.$ac_ext <<_ACEOF
10417/* end confdefs.h. */
10418#ifdef __STDC__
10419# include <limits.h>
10420#else
10421# include <assert.h>
10422#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010423 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010424_ACEOF
10425if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10427 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010428 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010429 rm -f conftest.er1
10430 cat conftest.err >&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } >/dev/null; then
10433 if test -s conftest.err; then
10434 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010435 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010436 else
John Criswell47fdd832003-07-14 16:52:07 +000010437 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010438 fi
John Criswell47fdd832003-07-14 16:52:07 +000010439else
10440 ac_cpp_err=yes
10441fi
10442if test -z "$ac_cpp_err"; then
10443 :
10444else
10445 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010446sed 's/^/| /' conftest.$ac_ext >&5
10447
John Criswell47fdd832003-07-14 16:52:07 +000010448 # Broken: fails on valid input.
10449continue
10450fi
10451rm -f conftest.err conftest.$ac_ext
10452
10453 # OK, works on sane cases. Now check whether non-existent headers
10454 # can be detected and how.
10455 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010456/* confdefs.h. */
10457_ACEOF
10458cat confdefs.h >>conftest.$ac_ext
10459cat >>conftest.$ac_ext <<_ACEOF
10460/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010461#include <ac_nonexistent.h>
10462_ACEOF
10463if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10465 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010466 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010467 rm -f conftest.er1
10468 cat conftest.err >&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } >/dev/null; then
10471 if test -s conftest.err; then
10472 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010473 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010474 else
10475 ac_cpp_err=
10476 fi
10477else
10478 ac_cpp_err=yes
10479fi
10480if test -z "$ac_cpp_err"; then
10481 # Broken: success on invalid input.
10482continue
10483else
10484 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010485sed 's/^/| /' conftest.$ac_ext >&5
10486
John Criswell47fdd832003-07-14 16:52:07 +000010487 # Passes both tests.
10488ac_preproc_ok=:
10489break
10490fi
10491rm -f conftest.err conftest.$ac_ext
10492
10493done
10494# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10495rm -f conftest.err conftest.$ac_ext
10496if $ac_preproc_ok; then
10497 break
John Criswell7a73b802003-06-30 21:59:07 +000010498fi
10499
John Criswell47fdd832003-07-14 16:52:07 +000010500 done
10501 ac_cv_prog_CXXCPP=$CXXCPP
10502
10503fi
10504 CXXCPP=$ac_cv_prog_CXXCPP
10505else
10506 ac_cv_prog_CXXCPP=$CXXCPP
10507fi
10508echo "$as_me:$LINENO: result: $CXXCPP" >&5
10509echo "${ECHO_T}$CXXCPP" >&6
10510ac_preproc_ok=false
10511for ac_cxx_preproc_warn_flag in '' yes
10512do
10513 # Use a header file that comes with gcc, so configuring glibc
10514 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10516 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010517 # On the NeXT, cc -E runs the code through the compiler's parser,
10518 # not just through cpp. "Syntax error" is here to catch this case.
10519 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010520/* confdefs.h. */
10521_ACEOF
10522cat confdefs.h >>conftest.$ac_ext
10523cat >>conftest.$ac_ext <<_ACEOF
10524/* end confdefs.h. */
10525#ifdef __STDC__
10526# include <limits.h>
10527#else
10528# include <assert.h>
10529#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010530 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010531_ACEOF
10532if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10534 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010535 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010536 rm -f conftest.er1
10537 cat conftest.err >&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); } >/dev/null; then
10540 if test -s conftest.err; then
10541 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010542 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010543 else
10544 ac_cpp_err=
10545 fi
10546else
10547 ac_cpp_err=yes
10548fi
10549if test -z "$ac_cpp_err"; then
10550 :
10551else
10552 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010553sed 's/^/| /' conftest.$ac_ext >&5
10554
John Criswell47fdd832003-07-14 16:52:07 +000010555 # Broken: fails on valid input.
10556continue
10557fi
10558rm -f conftest.err conftest.$ac_ext
10559
10560 # OK, works on sane cases. Now check whether non-existent headers
10561 # can be detected and how.
10562 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010563/* confdefs.h. */
10564_ACEOF
10565cat confdefs.h >>conftest.$ac_ext
10566cat >>conftest.$ac_ext <<_ACEOF
10567/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010568#include <ac_nonexistent.h>
10569_ACEOF
10570if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10572 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010573 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010574 rm -f conftest.er1
10575 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } >/dev/null; then
10578 if test -s conftest.err; then
10579 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010580 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010581 else
10582 ac_cpp_err=
10583 fi
10584else
10585 ac_cpp_err=yes
10586fi
10587if test -z "$ac_cpp_err"; then
10588 # Broken: success on invalid input.
10589continue
10590else
10591 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010592sed 's/^/| /' conftest.$ac_ext >&5
10593
John Criswell47fdd832003-07-14 16:52:07 +000010594 # Passes both tests.
10595ac_preproc_ok=:
10596break
10597fi
10598rm -f conftest.err conftest.$ac_ext
10599
10600done
10601# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10602rm -f conftest.err conftest.$ac_ext
10603if $ac_preproc_ok; then
10604 :
10605else
John Criswell0c38eaf2003-09-10 15:17:25 +000010606 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10607See \`config.log' for more details." >&5
10608echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10609See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010610 { (exit 1); exit 1; }; }
10611fi
10612
10613ac_ext=cc
10614ac_cpp='$CXXCPP $CPPFLAGS'
10615ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10616ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10617ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10618
Reid Spencer2706f8c2004-09-19 23:53:36 +000010619fi
10620
John Criswell47fdd832003-07-14 16:52:07 +000010621
10622ac_ext=f
10623ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10624ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10625ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10626if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010627 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 +000010628 do
10629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10630set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10631echo "$as_me:$LINENO: checking for $ac_word" >&5
10632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10633if test "${ac_cv_prog_F77+set}" = set; then
10634 echo $ECHO_N "(cached) $ECHO_C" >&6
10635else
10636 if test -n "$F77"; then
10637 ac_cv_prog_F77="$F77" # Let the user override the test.
10638else
10639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10640for as_dir in $PATH
10641do
10642 IFS=$as_save_IFS
10643 test -z "$as_dir" && as_dir=.
10644 for ac_exec_ext in '' $ac_executable_extensions; do
10645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10646 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10648 break 2
10649 fi
10650done
10651done
10652
10653fi
10654fi
10655F77=$ac_cv_prog_F77
10656if test -n "$F77"; then
10657 echo "$as_me:$LINENO: result: $F77" >&5
10658echo "${ECHO_T}$F77" >&6
10659else
10660 echo "$as_me:$LINENO: result: no" >&5
10661echo "${ECHO_T}no" >&6
10662fi
10663
10664 test -n "$F77" && break
10665 done
10666fi
10667if test -z "$F77"; then
10668 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010669 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 +000010670do
10671 # Extract the first word of "$ac_prog", so it can be a program name with args.
10672set dummy $ac_prog; ac_word=$2
10673echo "$as_me:$LINENO: checking for $ac_word" >&5
10674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10675if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10676 echo $ECHO_N "(cached) $ECHO_C" >&6
10677else
10678 if test -n "$ac_ct_F77"; then
10679 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10680else
10681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10682for as_dir in $PATH
10683do
10684 IFS=$as_save_IFS
10685 test -z "$as_dir" && as_dir=.
10686 for ac_exec_ext in '' $ac_executable_extensions; do
10687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10688 ac_cv_prog_ac_ct_F77="$ac_prog"
10689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10690 break 2
10691 fi
10692done
10693done
10694
10695fi
10696fi
10697ac_ct_F77=$ac_cv_prog_ac_ct_F77
10698if test -n "$ac_ct_F77"; then
10699 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10700echo "${ECHO_T}$ac_ct_F77" >&6
10701else
10702 echo "$as_me:$LINENO: result: no" >&5
10703echo "${ECHO_T}no" >&6
10704fi
10705
10706 test -n "$ac_ct_F77" && break
10707done
10708
10709 F77=$ac_ct_F77
10710fi
10711
10712
10713# Provide some information about the compiler.
Duraid Madina775afa52005-05-16 16:33:34 +000010714echo "$as_me:10714:" \
John Criswell47fdd832003-07-14 16:52:07 +000010715 "checking for Fortran 77 compiler version" >&5
10716ac_compiler=`set X $ac_compile; echo $2`
10717{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10718 (eval $ac_compiler --version </dev/null >&5) 2>&5
10719 ac_status=$?
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }
10722{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10723 (eval $ac_compiler -v </dev/null >&5) 2>&5
10724 ac_status=$?
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); }
10727{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10728 (eval $ac_compiler -V </dev/null >&5) 2>&5
10729 ac_status=$?
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010732rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010733
10734# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010735# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010736ac_save_ext=$ac_ext
10737ac_ext=F
10738echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10739echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10740if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10742else
10743 cat >conftest.$ac_ext <<_ACEOF
10744 program main
10745#ifndef __GNUC__
10746 choke me
10747#endif
10748
10749 end
10750_ACEOF
10751rm -f conftest.$ac_objext
10752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010753 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010754 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010755 grep -v '^ *+' conftest.er1 >conftest.err
10756 rm -f conftest.er1
10757 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010760 { ac_try='test -z "$ac_f77_werror_flag"
10761 || test ! -s conftest.err'
10762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763 (eval $ac_try) 2>&5
10764 ac_status=$?
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; } &&
10767 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10769 (eval $ac_try) 2>&5
10770 ac_status=$?
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); }; }; then
10773 ac_compiler_gnu=yes
10774else
10775 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010776sed 's/^/| /' conftest.$ac_ext >&5
10777
John Criswell47fdd832003-07-14 16:52:07 +000010778ac_compiler_gnu=no
10779fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010781ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10782
10783fi
10784echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10785echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10786ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000010787ac_test_FFLAGS=${FFLAGS+set}
10788ac_save_FFLAGS=$FFLAGS
10789FFLAGS=
10790echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10791echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10792if test "${ac_cv_prog_f77_g+set}" = set; then
10793 echo $ECHO_N "(cached) $ECHO_C" >&6
10794else
10795 FFLAGS=-g
10796cat >conftest.$ac_ext <<_ACEOF
10797 program main
10798
10799 end
10800_ACEOF
10801rm -f conftest.$ac_objext
10802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010803 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010804 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010805 grep -v '^ *+' conftest.er1 >conftest.err
10806 rm -f conftest.er1
10807 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010810 { ac_try='test -z "$ac_f77_werror_flag"
10811 || test ! -s conftest.err'
10812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813 (eval $ac_try) 2>&5
10814 ac_status=$?
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; } &&
10817 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10819 (eval $ac_try) 2>&5
10820 ac_status=$?
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; }; then
10823 ac_cv_prog_f77_g=yes
10824else
10825 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010826sed 's/^/| /' conftest.$ac_ext >&5
10827
John Criswell47fdd832003-07-14 16:52:07 +000010828ac_cv_prog_f77_g=no
10829fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010831
10832fi
10833echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10834echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10835if test "$ac_test_FFLAGS" = set; then
10836 FFLAGS=$ac_save_FFLAGS
10837elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010838 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010839 FFLAGS="-g -O2"
10840 else
10841 FFLAGS="-g"
10842 fi
10843else
Reid Spencer2706f8c2004-09-19 23:53:36 +000010844 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010845 FFLAGS="-O2"
10846 else
10847 FFLAGS=
10848 fi
10849fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010850
10851G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000010852ac_ext=c
10853ac_cpp='$CPP $CPPFLAGS'
10854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10856ac_compiler_gnu=$ac_cv_c_compiler_gnu
10857
10858
10859
10860# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10861
10862# find the maximum length of command line arguments
10863echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10864echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10865if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10866 echo $ECHO_N "(cached) $ECHO_C" >&6
10867else
10868 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000010869 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000010870
10871 case $build_os in
10872 msdosdjgpp*)
10873 # On DJGPP, this test can blow up pretty badly due to problems in libc
10874 # (any single argument exceeding 2000 bytes causes a buffer overrun
10875 # during glob expansion). Even if it were fixed, the result of this
10876 # check would be larger than it should be.
10877 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10878 ;;
10879
10880 gnu*)
10881 # Under GNU Hurd, this test is not required because there is
10882 # no limit to the length of command line arguments.
10883 # Libtool will interpret -1 as no limit whatsoever
10884 lt_cv_sys_max_cmd_len=-1;
10885 ;;
10886
10887 cygwin* | mingw*)
10888 # On Win9x/ME, this test blows up -- it succeeds, but takes
10889 # about 5 minutes as the teststring grows exponentially.
10890 # Worse, since 9x/ME are not pre-emptively multitasking,
10891 # you end up with a "frozen" computer, even though with patience
10892 # the test eventually succeeds (with a max line length of 256k).
10893 # Instead, let's just punt: use the minimum linelength reported by
10894 # all of the supported platforms: 8192 (on NT/2K/XP).
10895 lt_cv_sys_max_cmd_len=8192;
10896 ;;
10897
Reid Spencer2706f8c2004-09-19 23:53:36 +000010898 amigaos*)
10899 # On AmigaOS with pdksh, this test takes hours, literally.
10900 # So we just punt and use a minimum line length of 8192.
10901 lt_cv_sys_max_cmd_len=8192;
10902 ;;
10903
10904 netbsd* | freebsd* | openbsd* | darwin* )
10905 # This has been around since 386BSD, at least. Likely further.
10906 if test -x /sbin/sysctl; then
10907 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10908 elif test -x /usr/sbin/sysctl; then
10909 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10910 else
10911 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10912 fi
10913 # And add a safety zone
10914 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10915 ;;
10916
John Criswell47fdd832003-07-14 16:52:07 +000010917 *)
10918 # If test is not a shell built-in, we'll probably end up computing a
10919 # maximum length that is only half of the actual maximum length, but
10920 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010921 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10922 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10923 = "XX$teststring") >/dev/null 2>&1 &&
10924 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000010925 lt_cv_sys_max_cmd_len=$new_result &&
10926 test $i != 17 # 1/2 MB should be enough
10927 do
10928 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000010929 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000010930 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000010931 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000010932 # Add a significant safety factor because C++ compilers can tack on massive
10933 # amounts of additional arguments before passing them to the linker.
10934 # It appears as though 1/2 is a usable value.
10935 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10936 ;;
10937 esac
10938
10939fi
10940
10941if test -n $lt_cv_sys_max_cmd_len ; then
10942 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10943echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10944else
10945 echo "$as_me:$LINENO: result: none" >&5
10946echo "${ECHO_T}none" >&6
10947fi
10948
10949
10950
10951
10952# Check for command to grab the raw symbol name followed by C symbol from nm.
10953echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10954echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10955if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10956 echo $ECHO_N "(cached) $ECHO_C" >&6
10957else
10958
10959# These are sane defaults that work on at least a few old systems.
10960# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10961
10962# Character class describing NM global symbol codes.
10963symcode='[BCDEGRST]'
10964
10965# Regexp to match symbols that can be accessed directly from C.
10966sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10967
10968# Transform the above into a raw symbol and a C symbol.
10969symxfrm='\1 \2\3 \3'
10970
10971# Transform an extracted symbol line into a proper C declaration
10972lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10973
10974# Transform an extracted symbol line into symbol name and symbol address
10975lt_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'"
10976
10977# Define system-specific variables.
10978case $host_os in
10979aix*)
10980 symcode='[BCDT]'
10981 ;;
10982cygwin* | mingw* | pw32*)
10983 symcode='[ABCDGISTW]'
10984 ;;
10985hpux*) # Its linker distinguishes data from code symbols
10986 if test "$host_cpu" = ia64; then
10987 symcode='[ABCDEGRST]'
10988 fi
10989 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10990 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'"
10991 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010992linux*)
10993 if test "$host_cpu" = ia64; then
10994 symcode='[ABCDGIRSTW]'
10995 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10996 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'"
10997 fi
10998 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010999irix* | nonstopux*)
11000 symcode='[BCDEGRST]'
11001 ;;
11002osf*)
11003 symcode='[BCDEGQRST]'
11004 ;;
11005solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011006 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000011007 ;;
11008sysv4)
11009 symcode='[DFNSTU]'
11010 ;;
11011esac
11012
11013# Handle CRLF in mingw tool chain
11014opt_cr=
11015case $build_os in
11016mingw*)
11017 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11018 ;;
11019esac
11020
11021# If we're using GNU nm, then use its standard symbol codes.
11022case `$NM -V 2>&1` in
11023*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011024 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000011025esac
11026
11027# Try without a prefix undercore, then with it.
11028for ac_symprfx in "" "_"; do
11029
11030 # Write the raw and C identifiers.
11031 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11032
11033 # Check to see that the pipe works correctly.
11034 pipe_works=no
11035
11036 rm -f conftest*
11037 cat > conftest.$ac_ext <<EOF
11038#ifdef __cplusplus
11039extern "C" {
11040#endif
11041char nm_test_var;
11042void nm_test_func(){}
11043#ifdef __cplusplus
11044}
11045#endif
11046int main(){nm_test_var='a';nm_test_func();return(0);}
11047EOF
11048
11049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11050 (eval $ac_compile) 2>&5
11051 ac_status=$?
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); }; then
11054 # Now try to grab the symbols.
11055 nlist=conftest.nm
11056 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11057 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11058 ac_status=$?
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } && test -s "$nlist"; then
11061 # Try sorting and uniquifying the output.
11062 if sort "$nlist" | uniq > "$nlist"T; then
11063 mv -f "$nlist"T "$nlist"
11064 else
11065 rm -f "$nlist"T
11066 fi
11067
11068 # Make sure that we snagged all the symbols we need.
11069 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11070 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11071 cat <<EOF > conftest.$ac_ext
11072#ifdef __cplusplus
11073extern "C" {
11074#endif
11075
11076EOF
11077 # Now generate the symbol file.
11078 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11079
11080 cat <<EOF >> conftest.$ac_ext
11081#if defined (__STDC__) && __STDC__
11082# define lt_ptr_t void *
11083#else
11084# define lt_ptr_t char *
11085# define const
11086#endif
11087
11088/* The mapping between symbol names and symbols. */
11089const struct {
11090 const char *name;
11091 lt_ptr_t address;
11092}
11093lt_preloaded_symbols[] =
11094{
11095EOF
11096 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11097 cat <<\EOF >> conftest.$ac_ext
11098 {0, (lt_ptr_t) 0}
11099};
11100
11101#ifdef __cplusplus
11102}
11103#endif
11104EOF
11105 # Now try linking the two files.
11106 mv conftest.$ac_objext conftstm.$ac_objext
11107 lt_save_LIBS="$LIBS"
11108 lt_save_CFLAGS="$CFLAGS"
11109 LIBS="conftstm.$ac_objext"
11110 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11112 (eval $ac_link) 2>&5
11113 ac_status=$?
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11116 pipe_works=yes
11117 fi
11118 LIBS="$lt_save_LIBS"
11119 CFLAGS="$lt_save_CFLAGS"
11120 else
11121 echo "cannot find nm_test_func in $nlist" >&5
11122 fi
11123 else
11124 echo "cannot find nm_test_var in $nlist" >&5
11125 fi
11126 else
11127 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11128 fi
11129 else
11130 echo "$progname: failed program was:" >&5
11131 cat conftest.$ac_ext >&5
11132 fi
11133 rm -f conftest* conftst*
11134
11135 # Do not use the global_symbol_pipe unless it works.
11136 if test "$pipe_works" = yes; then
11137 break
11138 else
11139 lt_cv_sys_global_symbol_pipe=
11140 fi
11141done
11142
11143fi
11144
11145if test -z "$lt_cv_sys_global_symbol_pipe"; then
11146 lt_cv_sys_global_symbol_to_cdecl=
11147fi
11148if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11149 echo "$as_me:$LINENO: result: failed" >&5
11150echo "${ECHO_T}failed" >&6
11151else
11152 echo "$as_me:$LINENO: result: ok" >&5
11153echo "${ECHO_T}ok" >&6
11154fi
11155
11156echo "$as_me:$LINENO: checking for objdir" >&5
11157echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11158if test "${lt_cv_objdir+set}" = set; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11160else
11161 rm -f .libs 2>/dev/null
11162mkdir .libs 2>/dev/null
11163if test -d .libs; then
11164 lt_cv_objdir=.libs
11165else
11166 # MS-DOS does not allow filenames that begin with a dot.
11167 lt_cv_objdir=_libs
11168fi
11169rmdir .libs 2>/dev/null
11170fi
11171echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11172echo "${ECHO_T}$lt_cv_objdir" >&6
11173objdir=$lt_cv_objdir
11174
11175
11176
11177
11178
11179case $host_os in
11180aix3*)
11181 # AIX sometimes has problems with the GCC collect2 program. For some
11182 # reason, if we set the COLLECT_NAMES environment variable, the problems
11183 # vanish in a puff of smoke.
11184 if test "X${COLLECT_NAMES+set}" != Xset; then
11185 COLLECT_NAMES=
11186 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011187 fi
11188 ;;
11189esac
11190
John Criswell47fdd832003-07-14 16:52:07 +000011191# Sed substitution that helps us do robust quoting. It backslashifies
11192# metacharacters that are still active within double-quoted strings.
11193Xsed='sed -e s/^X//'
11194sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11195
11196# Same as above, but do not quote variable references.
11197double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11198
11199# Sed substitution to delay expansion of an escaped shell variable in a
11200# double_quote_subst'ed string.
11201delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11202
11203# Sed substitution to avoid accidental globbing in evaled expressions
11204no_glob_subst='s/\*/\\\*/g'
11205
11206# Constants:
11207rm="rm -f"
11208
11209# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011210default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011211can_build_shared=yes
11212
11213# All known linkers require a `.a' archive for static linking (except M$VC,
11214# which needs '.lib').
11215libext=a
11216ltmain="$ac_aux_dir/ltmain.sh"
11217ofile="$default_ofile"
11218with_gnu_ld="$lt_cv_prog_gnu_ld"
11219
11220if test -n "$ac_tool_prefix"; then
11221 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11222set dummy ${ac_tool_prefix}ar; ac_word=$2
11223echo "$as_me:$LINENO: checking for $ac_word" >&5
11224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11225if test "${ac_cv_prog_AR+set}" = set; then
11226 echo $ECHO_N "(cached) $ECHO_C" >&6
11227else
11228 if test -n "$AR"; then
11229 ac_cv_prog_AR="$AR" # Let the user override the test.
11230else
11231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232for as_dir in $PATH
11233do
11234 IFS=$as_save_IFS
11235 test -z "$as_dir" && as_dir=.
11236 for ac_exec_ext in '' $ac_executable_extensions; do
11237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11238 ac_cv_prog_AR="${ac_tool_prefix}ar"
11239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11240 break 2
11241 fi
11242done
11243done
11244
11245fi
11246fi
11247AR=$ac_cv_prog_AR
11248if test -n "$AR"; then
11249 echo "$as_me:$LINENO: result: $AR" >&5
11250echo "${ECHO_T}$AR" >&6
11251else
11252 echo "$as_me:$LINENO: result: no" >&5
11253echo "${ECHO_T}no" >&6
11254fi
11255
11256fi
11257if test -z "$ac_cv_prog_AR"; then
11258 ac_ct_AR=$AR
11259 # Extract the first word of "ar", so it can be a program name with args.
11260set dummy ar; ac_word=$2
11261echo "$as_me:$LINENO: checking for $ac_word" >&5
11262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11263if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11265else
11266 if test -n "$ac_ct_AR"; then
11267 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11268else
11269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270for as_dir in $PATH
11271do
11272 IFS=$as_save_IFS
11273 test -z "$as_dir" && as_dir=.
11274 for ac_exec_ext in '' $ac_executable_extensions; do
11275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11276 ac_cv_prog_ac_ct_AR="ar"
11277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11278 break 2
11279 fi
11280done
11281done
11282
11283 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11284fi
11285fi
11286ac_ct_AR=$ac_cv_prog_ac_ct_AR
11287if test -n "$ac_ct_AR"; then
11288 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11289echo "${ECHO_T}$ac_ct_AR" >&6
11290else
11291 echo "$as_me:$LINENO: result: no" >&5
11292echo "${ECHO_T}no" >&6
11293fi
11294
11295 AR=$ac_ct_AR
11296else
11297 AR="$ac_cv_prog_AR"
11298fi
11299
John Criswell7a73b802003-06-30 21:59:07 +000011300if test -n "$ac_tool_prefix"; then
11301 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11302set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11303echo "$as_me:$LINENO: checking for $ac_word" >&5
11304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11305if test "${ac_cv_prog_RANLIB+set}" = set; then
11306 echo $ECHO_N "(cached) $ECHO_C" >&6
11307else
11308 if test -n "$RANLIB"; then
11309 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11310else
11311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11312for as_dir in $PATH
11313do
11314 IFS=$as_save_IFS
11315 test -z "$as_dir" && as_dir=.
11316 for ac_exec_ext in '' $ac_executable_extensions; do
11317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11318 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11320 break 2
11321 fi
11322done
11323done
11324
11325fi
11326fi
11327RANLIB=$ac_cv_prog_RANLIB
11328if test -n "$RANLIB"; then
11329 echo "$as_me:$LINENO: result: $RANLIB" >&5
11330echo "${ECHO_T}$RANLIB" >&6
11331else
11332 echo "$as_me:$LINENO: result: no" >&5
11333echo "${ECHO_T}no" >&6
11334fi
11335
11336fi
11337if test -z "$ac_cv_prog_RANLIB"; then
11338 ac_ct_RANLIB=$RANLIB
11339 # Extract the first word of "ranlib", so it can be a program name with args.
11340set dummy ranlib; ac_word=$2
11341echo "$as_me:$LINENO: checking for $ac_word" >&5
11342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11343if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11345else
11346 if test -n "$ac_ct_RANLIB"; then
11347 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11348else
11349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11350for as_dir in $PATH
11351do
11352 IFS=$as_save_IFS
11353 test -z "$as_dir" && as_dir=.
11354 for ac_exec_ext in '' $ac_executable_extensions; do
11355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11356 ac_cv_prog_ac_ct_RANLIB="ranlib"
11357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11358 break 2
11359 fi
11360done
11361done
11362
11363 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11364fi
11365fi
11366ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11367if test -n "$ac_ct_RANLIB"; then
11368 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11369echo "${ECHO_T}$ac_ct_RANLIB" >&6
11370else
11371 echo "$as_me:$LINENO: result: no" >&5
11372echo "${ECHO_T}no" >&6
11373fi
11374
11375 RANLIB=$ac_ct_RANLIB
11376else
11377 RANLIB="$ac_cv_prog_RANLIB"
11378fi
11379
11380if test -n "$ac_tool_prefix"; then
11381 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11382set dummy ${ac_tool_prefix}strip; ac_word=$2
11383echo "$as_me:$LINENO: checking for $ac_word" >&5
11384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11385if test "${ac_cv_prog_STRIP+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11387else
11388 if test -n "$STRIP"; then
11389 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11390else
11391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392for as_dir in $PATH
11393do
11394 IFS=$as_save_IFS
11395 test -z "$as_dir" && as_dir=.
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11398 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11400 break 2
11401 fi
11402done
11403done
11404
11405fi
11406fi
11407STRIP=$ac_cv_prog_STRIP
11408if test -n "$STRIP"; then
11409 echo "$as_me:$LINENO: result: $STRIP" >&5
11410echo "${ECHO_T}$STRIP" >&6
11411else
11412 echo "$as_me:$LINENO: result: no" >&5
11413echo "${ECHO_T}no" >&6
11414fi
11415
11416fi
11417if test -z "$ac_cv_prog_STRIP"; then
11418 ac_ct_STRIP=$STRIP
11419 # Extract the first word of "strip", so it can be a program name with args.
11420set dummy strip; ac_word=$2
11421echo "$as_me:$LINENO: checking for $ac_word" >&5
11422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11423if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11424 echo $ECHO_N "(cached) $ECHO_C" >&6
11425else
11426 if test -n "$ac_ct_STRIP"; then
11427 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11428else
11429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11430for as_dir in $PATH
11431do
11432 IFS=$as_save_IFS
11433 test -z "$as_dir" && as_dir=.
11434 for ac_exec_ext in '' $ac_executable_extensions; do
11435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11436 ac_cv_prog_ac_ct_STRIP="strip"
11437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11438 break 2
11439 fi
11440done
11441done
11442
11443 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11444fi
11445fi
11446ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11447if test -n "$ac_ct_STRIP"; then
11448 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11449echo "${ECHO_T}$ac_ct_STRIP" >&6
11450else
11451 echo "$as_me:$LINENO: result: no" >&5
11452echo "${ECHO_T}no" >&6
11453fi
11454
11455 STRIP=$ac_ct_STRIP
11456else
11457 STRIP="$ac_cv_prog_STRIP"
11458fi
11459
11460
John Criswell7a73b802003-06-30 21:59:07 +000011461old_CC="$CC"
11462old_CFLAGS="$CFLAGS"
11463
11464# Set sane defaults for various variables
11465test -z "$AR" && AR=ar
11466test -z "$AR_FLAGS" && AR_FLAGS=cru
11467test -z "$AS" && AS=as
11468test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011469test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011470test -z "$DLLTOOL" && DLLTOOL=dlltool
11471test -z "$LD" && LD=ld
11472test -z "$LN_S" && LN_S="ln -s"
11473test -z "$MAGIC_CMD" && MAGIC_CMD=file
11474test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011475test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011476test -z "$OBJDUMP" && OBJDUMP=objdump
11477test -z "$RANLIB" && RANLIB=:
11478test -z "$STRIP" && STRIP=:
11479test -z "$ac_objext" && ac_objext=o
11480
John Criswell7a73b802003-06-30 21:59:07 +000011481# Determine commands to create old-style static archives.
11482old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11483old_postinstall_cmds='chmod 644 $oldlib'
11484old_postuninstall_cmds=
11485
11486if test -n "$RANLIB"; then
11487 case $host_os in
11488 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011489 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011490 ;;
11491 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011492 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011493 ;;
11494 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011495 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011496fi
11497
Reid Spencer2706f8c2004-09-19 23:53:36 +000011498cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11499
John Criswell47fdd832003-07-14 16:52:07 +000011500# Only perform the check for file, if the check method requires it
11501case $deplibs_check_method in
11502file_magic*)
11503 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11504 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11505echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11506if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11507 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011508else
John Criswell47fdd832003-07-14 16:52:07 +000011509 case $MAGIC_CMD in
11510[\\/*] | ?:[\\/]*)
11511 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11512 ;;
11513*)
11514 lt_save_MAGIC_CMD="$MAGIC_CMD"
11515 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11516 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11517 for ac_dir in $ac_dummy; do
11518 IFS="$lt_save_ifs"
11519 test -z "$ac_dir" && ac_dir=.
11520 if test -f $ac_dir/${ac_tool_prefix}file; then
11521 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11522 if test -n "$file_magic_test_file"; then
11523 case $deplibs_check_method in
11524 "file_magic "*)
11525 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11526 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11527 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11528 $EGREP "$file_magic_regex" > /dev/null; then
11529 :
11530 else
11531 cat <<EOF 1>&2
11532
11533*** Warning: the command libtool uses to detect shared libraries,
11534*** $file_magic_cmd, produces output that libtool cannot recognize.
11535*** The result is that libtool may fail to recognize shared libraries
11536*** as such. This will affect the creation of libtool libraries that
11537*** depend on shared libraries, but programs linked with such libtool
11538*** libraries will work regardless of this problem. Nevertheless, you
11539*** may want to report the problem to your system manager and/or to
11540*** bug-libtool@gnu.org
11541
11542EOF
11543 fi ;;
11544 esac
11545 fi
11546 break
11547 fi
11548 done
11549 IFS="$lt_save_ifs"
11550 MAGIC_CMD="$lt_save_MAGIC_CMD"
11551 ;;
11552esac
John Criswell7a73b802003-06-30 21:59:07 +000011553fi
John Criswell7a73b802003-06-30 21:59:07 +000011554
John Criswell47fdd832003-07-14 16:52:07 +000011555MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11556if test -n "$MAGIC_CMD"; then
11557 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11558echo "${ECHO_T}$MAGIC_CMD" >&6
11559else
11560 echo "$as_me:$LINENO: result: no" >&5
11561echo "${ECHO_T}no" >&6
11562fi
John Criswell7a73b802003-06-30 21:59:07 +000011563
John Criswell47fdd832003-07-14 16:52:07 +000011564if test -z "$lt_cv_path_MAGIC_CMD"; then
11565 if test -n "$ac_tool_prefix"; then
11566 echo "$as_me:$LINENO: checking for file" >&5
11567echo $ECHO_N "checking for file... $ECHO_C" >&6
11568if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11569 echo $ECHO_N "(cached) $ECHO_C" >&6
11570else
11571 case $MAGIC_CMD in
11572[\\/*] | ?:[\\/]*)
11573 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11574 ;;
11575*)
11576 lt_save_MAGIC_CMD="$MAGIC_CMD"
11577 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11578 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11579 for ac_dir in $ac_dummy; do
11580 IFS="$lt_save_ifs"
11581 test -z "$ac_dir" && ac_dir=.
11582 if test -f $ac_dir/file; then
11583 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11584 if test -n "$file_magic_test_file"; then
11585 case $deplibs_check_method in
11586 "file_magic "*)
11587 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11588 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11589 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11590 $EGREP "$file_magic_regex" > /dev/null; then
11591 :
11592 else
11593 cat <<EOF 1>&2
11594
11595*** Warning: the command libtool uses to detect shared libraries,
11596*** $file_magic_cmd, produces output that libtool cannot recognize.
11597*** The result is that libtool may fail to recognize shared libraries
11598*** as such. This will affect the creation of libtool libraries that
11599*** depend on shared libraries, but programs linked with such libtool
11600*** libraries will work regardless of this problem. Nevertheless, you
11601*** may want to report the problem to your system manager and/or to
11602*** bug-libtool@gnu.org
11603
11604EOF
11605 fi ;;
11606 esac
11607 fi
11608 break
11609 fi
11610 done
11611 IFS="$lt_save_ifs"
11612 MAGIC_CMD="$lt_save_MAGIC_CMD"
11613 ;;
11614esac
11615fi
11616
11617MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11618if test -n "$MAGIC_CMD"; then
11619 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11620echo "${ECHO_T}$MAGIC_CMD" >&6
11621else
11622 echo "$as_me:$LINENO: result: no" >&5
11623echo "${ECHO_T}no" >&6
11624fi
11625
11626 else
11627 MAGIC_CMD=:
11628 fi
11629fi
11630
11631 fi
11632 ;;
11633esac
11634
Reid Spencer17795972004-11-18 09:47:37 +000011635enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011636enable_win32_dll=no
11637
11638# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11639if test "${enable_libtool_lock+set}" = set; then
11640 enableval="$enable_libtool_lock"
11641
11642fi;
11643test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11644
John Criswell7a73b802003-06-30 21:59:07 +000011645
11646# Check whether --with-pic or --without-pic was given.
11647if test "${with_pic+set}" = set; then
11648 withval="$with_pic"
11649 pic_mode="$withval"
11650else
11651 pic_mode=default
11652fi;
11653test -z "$pic_mode" && pic_mode=default
11654
John Criswell47fdd832003-07-14 16:52:07 +000011655# Use C for the default configuration in the libtool script
11656tagname=
11657lt_save_CC="$CC"
11658ac_ext=c
11659ac_cpp='$CPP $CPPFLAGS'
11660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11662ac_compiler_gnu=$ac_cv_c_compiler_gnu
11663
11664
11665# Source file extension for C test sources.
11666ac_ext=c
11667
11668# Object file extension for compiled C test sources.
11669objext=o
11670objext=$objext
11671
11672# Code to be used in simple compile tests
11673lt_simple_compile_test_code="int some_variable = 0;\n"
11674
11675# Code to be used in simple link tests
11676lt_simple_link_test_code='int main(){return(0);}\n'
11677
11678
11679# If no C compiler was specified, use CC.
11680LTCC=${LTCC-"$CC"}
11681
11682# Allow CC to be a program name with arguments.
11683compiler=$CC
11684
11685
11686#
11687# Check for any special shared library compilation flags.
11688#
11689lt_prog_cc_shlib=
11690if test "$GCC" = no; then
11691 case $host_os in
11692 sco3.2v5*)
11693 lt_prog_cc_shlib='-belf'
11694 ;;
11695 esac
11696fi
11697if test -n "$lt_prog_cc_shlib"; then
11698 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11699echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11700 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11701 else
11702 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11703echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11704 lt_cv_prog_cc_can_build_shared=no
11705 fi
11706fi
11707
11708
11709#
11710# Check to make sure the static flag actually works.
11711#
11712echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11713echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11714if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011715 echo $ECHO_N "(cached) $ECHO_C" >&6
11716else
John Criswell47fdd832003-07-14 16:52:07 +000011717 lt_prog_compiler_static_works=no
11718 save_LDFLAGS="$LDFLAGS"
11719 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11720 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11721 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11722 # The compiler can only warn and ignore the option if not recognized
11723 # So say no if there are warnings
11724 if test -s conftest.err; then
11725 # Append any errors to the config.log.
11726 cat conftest.err 1>&5
11727 else
11728 lt_prog_compiler_static_works=yes
11729 fi
11730 fi
11731 $rm conftest*
11732 LDFLAGS="$save_LDFLAGS"
11733
11734fi
11735echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11736echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11737
11738if test x"$lt_prog_compiler_static_works" = xyes; then
11739 :
11740else
11741 lt_prog_compiler_static=
11742fi
11743
11744
11745
John Criswell47fdd832003-07-14 16:52:07 +000011746
11747lt_prog_compiler_no_builtin_flag=
11748
11749if test "$GCC" = yes; then
11750 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11751
Reid Spencer2706f8c2004-09-19 23:53:36 +000011752
11753echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011754echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11755if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11756 echo $ECHO_N "(cached) $ECHO_C" >&6
11757else
11758 lt_cv_prog_compiler_rtti_exceptions=no
11759 ac_outfile=conftest.$ac_objext
11760 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11761 lt_compiler_flag="-fno-rtti -fno-exceptions"
11762 # Insert the option either (1) after the last *FLAGS variable, or
11763 # (2) before a word containing "conftest.", or (3) at the end.
11764 # Note that $ac_compile itself does not contain backslashes and begins
11765 # with a dollar sign (not a hyphen), so the echo should work correctly.
11766 # The option is referenced via a variable to avoid confusing sed.
11767 lt_compile=`echo "$ac_compile" | $SED \
11768 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11770 -e 's:$: $lt_compiler_flag:'`
Duraid Madina775afa52005-05-16 16:33:34 +000011771 (eval echo "\"\$as_me:11771: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011772 (eval "$lt_compile" 2>conftest.err)
11773 ac_status=$?
11774 cat conftest.err >&5
Duraid Madina775afa52005-05-16 16:33:34 +000011775 echo "$as_me:11775: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011776 if (exit $ac_status) && test -s "$ac_outfile"; then
11777 # The compiler can only warn and ignore the option if not recognized
11778 # So say no if there are warnings
11779 if test ! -s conftest.err; then
11780 lt_cv_prog_compiler_rtti_exceptions=yes
11781 fi
11782 fi
11783 $rm conftest*
11784
11785fi
11786echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11787echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11788
11789if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11790 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11791else
11792 :
11793fi
11794
11795fi
11796
11797lt_prog_compiler_wl=
11798lt_prog_compiler_pic=
11799lt_prog_compiler_static=
11800
11801echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11802echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011803
11804 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000011805 lt_prog_compiler_wl='-Wl,'
11806 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000011807
11808 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011809 aix*)
11810 # All AIX code is PIC.
11811 if test "$host_cpu" = ia64; then
11812 # AIX 5 now supports IA64 processor
11813 lt_prog_compiler_static='-Bstatic'
11814 fi
John Criswell7a73b802003-06-30 21:59:07 +000011815 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011816
John Criswell7a73b802003-06-30 21:59:07 +000011817 amigaos*)
11818 # FIXME: we need at least 68020 code to build shared libraries, but
11819 # adding the `-m68020' flag to GCC prevents building anything better,
11820 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000011821 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000011822 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011823
11824 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000011825 # PIC is the default for these OSes.
11826 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011827
11828 mingw* | pw32* | os2*)
11829 # This hack is so that the source file can tell whether it is being
11830 # built for inclusion in a dll (and should export symbols for example).
11831 lt_prog_compiler_pic='-DDLL_EXPORT'
11832 ;;
11833
John Criswell7a73b802003-06-30 21:59:07 +000011834 darwin* | rhapsody*)
11835 # PIC is the default on this platform
11836 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000011837 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000011838 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011839
11840 msdosdjgpp*)
11841 # Just because we use GCC doesn't mean we suddenly get shared libraries
11842 # on systems that don't support them.
11843 lt_prog_compiler_can_build_shared=no
11844 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011845 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011846
John Criswell7a73b802003-06-30 21:59:07 +000011847 sysv4*MP*)
11848 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000011849 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000011850 fi
11851 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011852
11853 hpux*)
11854 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11855 # not for PA HP-UX.
11856 case "$host_cpu" in
11857 hppa*64*|ia64*)
11858 # +Z the default
11859 ;;
11860 *)
11861 lt_prog_compiler_pic='-fPIC'
11862 ;;
11863 esac
11864 ;;
11865
John Criswell7a73b802003-06-30 21:59:07 +000011866 *)
John Criswell47fdd832003-07-14 16:52:07 +000011867 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000011868 ;;
11869 esac
11870 else
John Criswell47fdd832003-07-14 16:52:07 +000011871 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000011872 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011873 aix*)
11874 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011875 if test "$host_cpu" = ia64; then
11876 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000011877 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011878 else
John Criswell47fdd832003-07-14 16:52:07 +000011879 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000011880 fi
11881 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011882 darwin*)
11883 # PIC is the default on this platform
11884 # Common symbols not allowed in MH_DYLIB files
11885 case "$cc_basename" in
11886 xlc*)
11887 lt_prog_compiler_pic='-qnocommon'
11888 lt_prog_compiler_wl='-Wl,'
11889 ;;
11890 esac
11891 ;;
John Criswell7a73b802003-06-30 21:59:07 +000011892
John Criswell47fdd832003-07-14 16:52:07 +000011893 mingw* | pw32* | os2*)
11894 # This hack is so that the source file can tell whether it is being
11895 # built for inclusion in a dll (and should export symbols for example).
11896 lt_prog_compiler_pic='-DDLL_EXPORT'
11897 ;;
11898
John Criswell7a73b802003-06-30 21:59:07 +000011899 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000011900 lt_prog_compiler_wl='-Wl,'
11901 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11902 # not for PA HP-UX.
11903 case "$host_cpu" in
11904 hppa*64*|ia64*)
11905 # +Z the default
11906 ;;
11907 *)
11908 lt_prog_compiler_pic='+Z'
11909 ;;
11910 esac
11911 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11912 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000011913 ;;
11914
John Criswell47fdd832003-07-14 16:52:07 +000011915 irix5* | irix6* | nonstopux*)
11916 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011917 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000011918 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011919 ;;
11920
11921 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000011922 lt_prog_compiler_pic='-KPIC'
11923 lt_prog_compiler_static='-Bstatic'
11924 ;;
11925
11926 linux*)
11927 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011928 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000011929 lt_prog_compiler_wl='-Wl,'
11930 lt_prog_compiler_pic='-KPIC'
11931 lt_prog_compiler_static='-static'
11932 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011933 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000011934 lt_prog_compiler_wl='-Wl,'
11935 # All Alpha code is PIC.
11936 lt_prog_compiler_static='-non_shared'
11937 ;;
11938 esac
John Criswell7a73b802003-06-30 21:59:07 +000011939 ;;
11940
11941 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000011942 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011943 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000011944 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011945 ;;
11946
11947 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000011948 lt_prog_compiler_pic='-Kpic'
11949 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000011950 ;;
11951
11952 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000011953 lt_prog_compiler_wl='-Wl,'
11954 lt_prog_compiler_pic='-KPIC'
11955 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011956 ;;
11957
11958 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000011959 lt_prog_compiler_wl='-Qoption ld '
11960 lt_prog_compiler_pic='-PIC'
11961 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011962 ;;
11963
11964 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000011965 lt_prog_compiler_wl='-Wl,'
11966 lt_prog_compiler_pic='-KPIC'
11967 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011968 ;;
11969
11970 sysv4*MP*)
11971 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000011972 lt_prog_compiler_pic='-Kconform_pic'
11973 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011974 fi
11975 ;;
11976
John Criswell47fdd832003-07-14 16:52:07 +000011977 uts4*)
11978 lt_prog_compiler_pic='-pic'
11979 lt_prog_compiler_static='-Bstatic'
11980 ;;
11981
John Criswell7a73b802003-06-30 21:59:07 +000011982 *)
John Criswell47fdd832003-07-14 16:52:07 +000011983 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011984 ;;
11985 esac
11986 fi
11987
John Criswell47fdd832003-07-14 16:52:07 +000011988echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11989echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011990
John Criswell47fdd832003-07-14 16:52:07 +000011991#
11992# Check to make sure the PIC flag actually works.
11993#
11994if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011995
11996echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011997echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11998if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011999 echo $ECHO_N "(cached) $ECHO_C" >&6
12000else
John Criswell47fdd832003-07-14 16:52:07 +000012001 lt_prog_compiler_pic_works=no
12002 ac_outfile=conftest.$ac_objext
12003 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12004 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12005 # Insert the option either (1) after the last *FLAGS variable, or
12006 # (2) before a word containing "conftest.", or (3) at the end.
12007 # Note that $ac_compile itself does not contain backslashes and begins
12008 # with a dollar sign (not a hyphen), so the echo should work correctly.
12009 # The option is referenced via a variable to avoid confusing sed.
12010 lt_compile=`echo "$ac_compile" | $SED \
12011 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12013 -e 's:$: $lt_compiler_flag:'`
Duraid Madina775afa52005-05-16 16:33:34 +000012014 (eval echo "\"\$as_me:12014: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012015 (eval "$lt_compile" 2>conftest.err)
12016 ac_status=$?
12017 cat conftest.err >&5
Duraid Madina775afa52005-05-16 16:33:34 +000012018 echo "$as_me:12018: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012019 if (exit $ac_status) && test -s "$ac_outfile"; then
12020 # The compiler can only warn and ignore the option if not recognized
12021 # So say no if there are warnings
12022 if test ! -s conftest.err; then
12023 lt_prog_compiler_pic_works=yes
12024 fi
12025 fi
12026 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012027
John Criswell47fdd832003-07-14 16:52:07 +000012028fi
12029echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12030echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012031
John Criswell47fdd832003-07-14 16:52:07 +000012032if test x"$lt_prog_compiler_pic_works" = xyes; then
12033 case $lt_prog_compiler_pic in
12034 "" | " "*) ;;
12035 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12036 esac
John Criswell7a73b802003-06-30 21:59:07 +000012037else
John Criswell47fdd832003-07-14 16:52:07 +000012038 lt_prog_compiler_pic=
12039 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012040fi
12041
John Criswell7a73b802003-06-30 21:59:07 +000012042fi
John Criswell47fdd832003-07-14 16:52:07 +000012043case "$host_os" in
12044 # For platforms which do not support PIC, -DPIC is meaningless:
12045 *djgpp*)
12046 lt_prog_compiler_pic=
12047 ;;
12048 *)
12049 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12050 ;;
12051esac
John Criswell7a73b802003-06-30 21:59:07 +000012052
John Criswell7a73b802003-06-30 21:59:07 +000012053echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12054echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012055if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012056 echo $ECHO_N "(cached) $ECHO_C" >&6
12057else
John Criswell47fdd832003-07-14 16:52:07 +000012058 lt_cv_prog_compiler_c_o=no
12059 $rm -r conftest 2>/dev/null
12060 mkdir conftest
12061 cd conftest
12062 mkdir out
12063 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012064
John Criswell47fdd832003-07-14 16:52:07 +000012065 lt_compiler_flag="-o out/conftest2.$ac_objext"
12066 # Insert the option either (1) after the last *FLAGS variable, or
12067 # (2) before a word containing "conftest.", or (3) at the end.
12068 # Note that $ac_compile itself does not contain backslashes and begins
12069 # with a dollar sign (not a hyphen), so the echo should work correctly.
12070 lt_compile=`echo "$ac_compile" | $SED \
12071 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12073 -e 's:$: $lt_compiler_flag:'`
Duraid Madina775afa52005-05-16 16:33:34 +000012074 (eval echo "\"\$as_me:12074: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012075 (eval "$lt_compile" 2>out/conftest.err)
12076 ac_status=$?
12077 cat out/conftest.err >&5
Duraid Madina775afa52005-05-16 16:33:34 +000012078 echo "$as_me:12078: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012079 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12080 then
12081 # The compiler can only warn and ignore the option if not recognized
12082 # So say no if there are warnings
12083 if test ! -s out/conftest.err; then
12084 lt_cv_prog_compiler_c_o=yes
12085 fi
12086 fi
12087 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012088 $rm conftest*
12089 # SGI C++ compiler will create directory out/ii_files/ for
12090 # template instantiation
12091 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12092 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012093 cd ..
12094 rmdir conftest
12095 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012096
12097fi
John Criswell47fdd832003-07-14 16:52:07 +000012098echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12099echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012100
John Criswell7a73b802003-06-30 21:59:07 +000012101
John Criswell7a73b802003-06-30 21:59:07 +000012102hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012103if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012104 # do not overwrite the value of need_locks provided by the user
12105 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12106echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12107 hard_links=yes
12108 $rm conftest*
12109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12110 touch conftest.a
12111 ln conftest.a conftest.b 2>&5 || hard_links=no
12112 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12113 echo "$as_me:$LINENO: result: $hard_links" >&5
12114echo "${ECHO_T}$hard_links" >&6
12115 if test "$hard_links" = no; then
12116 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12117echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12118 need_locks=warn
12119 fi
12120else
12121 need_locks=no
12122fi
John Criswell7a73b802003-06-30 21:59:07 +000012123
John Criswell47fdd832003-07-14 16:52:07 +000012124echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12125echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12126
12127 runpath_var=
12128 allow_undefined_flag=
12129 enable_shared_with_static_runtimes=no
12130 archive_cmds=
12131 archive_expsym_cmds=
12132 old_archive_From_new_cmds=
12133 old_archive_from_expsyms_cmds=
12134 export_dynamic_flag_spec=
12135 whole_archive_flag_spec=
12136 thread_safe_flag_spec=
12137 hardcode_libdir_flag_spec=
12138 hardcode_libdir_flag_spec_ld=
12139 hardcode_libdir_separator=
12140 hardcode_direct=no
12141 hardcode_minus_L=no
12142 hardcode_shlibpath_var=unsupported
12143 link_all_deplibs=unknown
12144 hardcode_automatic=no
12145 module_cmds=
12146 module_expsym_cmds=
12147 always_export_symbols=no
12148 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12149 # include_expsyms should be a list of space-separated symbols to be *always*
12150 # included in the symbol list
12151 include_expsyms=
12152 # exclude_expsyms can be an extended regexp of symbols to exclude
12153 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12154 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12155 # as well as any symbol that contains `d'.
12156 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12157 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12158 # platforms (ab)use it in PIC code, but their linkers get confused if
12159 # the symbol is explicitly referenced. Since portable code cannot
12160 # rely on this symbol name, it's probably fine to never include it in
12161 # preloaded symbol tables.
12162 extract_expsyms_cmds=
12163
12164 case $host_os in
12165 cygwin* | mingw* | pw32*)
12166 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12167 # When not using gcc, we currently assume that we are using
12168 # Microsoft Visual C++.
12169 if test "$GCC" != yes; then
12170 with_gnu_ld=no
12171 fi
12172 ;;
12173 openbsd*)
12174 with_gnu_ld=no
12175 ;;
12176 esac
12177
12178 ld_shlibs=yes
12179 if test "$with_gnu_ld" = yes; then
12180 # If archive_cmds runs LD, not CC, wlarc should be empty
12181 wlarc='${wl}'
12182
12183 # See if GNU ld supports shared libraries.
12184 case $host_os in
12185 aix3* | aix4* | aix5*)
12186 # On AIX/PPC, the GNU linker is very broken
12187 if test "$host_cpu" != ia64; then
12188 ld_shlibs=no
12189 cat <<EOF 1>&2
12190
12191*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12192*** to be unable to reliably create shared libraries on AIX.
12193*** Therefore, libtool is disabling shared libraries support. If you
12194*** really care for shared libraries, you may want to modify your PATH
12195*** so that a non-GNU linker is found, and then restart.
12196
12197EOF
12198 fi
12199 ;;
12200
12201 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012202 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 +000012203 hardcode_libdir_flag_spec='-L$libdir'
12204 hardcode_minus_L=yes
12205
12206 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12207 # that the semantics of dynamic libraries on AmigaOS, at least up
12208 # to version 4, is to share data among multiple programs linked
12209 # with the same dynamic library. Since this doesn't match the
12210 # behavior of shared libraries on other platforms, we can't use
12211 # them.
12212 ld_shlibs=no
12213 ;;
12214
12215 beos*)
12216 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12217 allow_undefined_flag=unsupported
12218 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12219 # support --undefined. This deserves some investigation. FIXME
12220 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12221 else
12222 ld_shlibs=no
12223 fi
12224 ;;
12225
12226 cygwin* | mingw* | pw32*)
12227 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12228 # as there is no search path for DLLs.
12229 hardcode_libdir_flag_spec='-L$libdir'
12230 allow_undefined_flag=unsupported
12231 always_export_symbols=no
12232 enable_shared_with_static_runtimes=yes
12233 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12234
12235 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12236 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12237 # If the export-symbols file already is a .def file (1st line
12238 # is EXPORTS), use it as is; otherwise, prepend...
12239 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12240 cp $export_symbols $output_objdir/$soname.def;
12241 else
12242 echo EXPORTS > $output_objdir/$soname.def;
12243 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012244 fi~
12245 $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 +000012246 else
12247 ld_shlibs=no
12248 fi
12249 ;;
12250
12251 netbsd*)
12252 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12253 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12254 wlarc=
12255 else
12256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12257 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12258 fi
12259 ;;
12260
12261 solaris* | sysv5*)
12262 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12263 ld_shlibs=no
12264 cat <<EOF 1>&2
12265
12266*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12267*** create shared libraries on Solaris systems. Therefore, libtool
12268*** is disabling shared libraries support. We urge you to upgrade GNU
12269*** binutils to release 2.9.1 or newer. Another option is to modify
12270*** your PATH or compiler configuration so that the native linker is
12271*** used, and then restart.
12272
12273EOF
12274 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12276 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12277 else
12278 ld_shlibs=no
12279 fi
12280 ;;
12281
12282 sunos4*)
12283 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12284 wlarc=
12285 hardcode_direct=yes
12286 hardcode_shlibpath_var=no
12287 ;;
12288
Reid Spencer2706f8c2004-09-19 23:53:36 +000012289 linux*)
12290 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12291 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12292 archive_cmds="$tmp_archive_cmds"
12293 supports_anon_versioning=no
12294 case `$LD -v 2>/dev/null` in
12295 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12296 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12297 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12298 *\ 2.11.*) ;; # other 2.11 versions
12299 *) supports_anon_versioning=yes ;;
12300 esac
12301 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012302 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12303cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12304$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012305 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12306 else
12307 archive_expsym_cmds="$tmp_archive_cmds"
12308 fi
12309 else
12310 ld_shlibs=no
12311 fi
12312 ;;
12313
John Criswell47fdd832003-07-14 16:52:07 +000012314 *)
12315 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12317 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12318 else
12319 ld_shlibs=no
12320 fi
12321 ;;
12322 esac
12323
12324 if test "$ld_shlibs" = yes; then
12325 runpath_var=LD_RUN_PATH
12326 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12327 export_dynamic_flag_spec='${wl}--export-dynamic'
12328 # ancient GNU ld didn't support --whole-archive et. al.
12329 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12330 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12331 else
12332 whole_archive_flag_spec=
12333 fi
12334 fi
12335 else
12336 # PORTME fill in a description of your system's linker (not GNU ld)
12337 case $host_os in
12338 aix3*)
12339 allow_undefined_flag=unsupported
12340 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012341 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 +000012342 # Note: this linker hardcodes the directories in LIBPATH if there
12343 # are no directories specified by -L.
12344 hardcode_minus_L=yes
12345 if test "$GCC" = yes && test -z "$link_static_flag"; then
12346 # Neither direct hardcoding nor static linking is supported with a
12347 # broken collect2.
12348 hardcode_direct=unsupported
12349 fi
12350 ;;
12351
12352 aix4* | aix5*)
12353 if test "$host_cpu" = ia64; then
12354 # On IA64, the linker does run time linking by default, so we don't
12355 # have to do anything special.
12356 aix_use_runtimelinking=no
12357 exp_sym_flag='-Bexport'
12358 no_entry_flag=""
12359 else
12360 # If we're using GNU nm, then we don't want the "-C" option.
12361 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12362 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12363 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'
12364 else
12365 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'
12366 fi
12367 aix_use_runtimelinking=no
12368
12369 # Test if we are trying to use run time linking or normal
12370 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12371 # need to do runtime linking.
12372 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12373 for ld_flag in $LDFLAGS; do
12374 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12375 aix_use_runtimelinking=yes
12376 break
12377 fi
12378 done
12379 esac
12380
12381 exp_sym_flag='-bexport'
12382 no_entry_flag='-bnoentry'
12383 fi
12384
12385 # When large executables or shared objects are built, AIX ld can
12386 # have problems creating the table of contents. If linking a library
12387 # or program results in "error TOC overflow" add -mminimal-toc to
12388 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12389 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12390
12391 archive_cmds=''
12392 hardcode_direct=yes
12393 hardcode_libdir_separator=':'
12394 link_all_deplibs=yes
12395
12396 if test "$GCC" = yes; then
12397 case $host_os in aix4.012|aix4.012.*)
12398 # We only want to do this on AIX 4.2 and lower, the check
12399 # below for broken collect2 doesn't work under 4.3+
12400 collect2name=`${CC} -print-prog-name=collect2`
12401 if test -f "$collect2name" && \
12402 strings "$collect2name" | grep resolve_lib_name >/dev/null
12403 then
12404 # We have reworked collect2
12405 hardcode_direct=yes
12406 else
12407 # We have old collect2
12408 hardcode_direct=unsupported
12409 # It fails to find uninstalled libraries when the uninstalled
12410 # path is not listed in the libpath. Setting hardcode_minus_L
12411 # to unsupported forces relinking
12412 hardcode_minus_L=yes
12413 hardcode_libdir_flag_spec='-L$libdir'
12414 hardcode_libdir_separator=
12415 fi
12416 esac
12417 shared_flag='-shared'
12418 else
12419 # not using gcc
12420 if test "$host_cpu" = ia64; then
12421 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12422 # chokes on -Wl,-G. The following line is correct:
12423 shared_flag='-G'
12424 else
12425 if test "$aix_use_runtimelinking" = yes; then
12426 shared_flag='${wl}-G'
12427 else
12428 shared_flag='${wl}-bM:SRE'
12429 fi
12430 fi
12431 fi
12432
12433 # It seems that -bexpall does not export symbols beginning with
12434 # underscore (_), so it is better to generate a list of symbols to export.
12435 always_export_symbols=yes
12436 if test "$aix_use_runtimelinking" = yes; then
12437 # Warning - without using the other runtime loading flags (-brtl),
12438 # -berok will link without error, but may produce a broken library.
12439 allow_undefined_flag='-berok'
12440 # Determine the default libpath from the value encoded in an empty executable.
12441 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012442/* confdefs.h. */
12443_ACEOF
12444cat confdefs.h >>conftest.$ac_ext
12445cat >>conftest.$ac_ext <<_ACEOF
12446/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012447
John Criswell7a73b802003-06-30 21:59:07 +000012448int
12449main ()
12450{
John Criswell47fdd832003-07-14 16:52:07 +000012451
John Criswell7a73b802003-06-30 21:59:07 +000012452 ;
12453 return 0;
12454}
12455_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012456rm -f conftest.$ac_objext conftest$ac_exeext
12457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012458 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012459 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012460 grep -v '^ *+' conftest.er1 >conftest.err
12461 rm -f conftest.er1
12462 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012465 { ac_try='test -z "$ac_c_werror_flag"
12466 || test ! -s conftest.err'
12467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12468 (eval $ac_try) 2>&5
12469 ac_status=$?
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); }; } &&
12472 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474 (eval $ac_try) 2>&5
12475 ac_status=$?
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012478
John Criswell47fdd832003-07-14 16:52:07 +000012479aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12480}'`
12481# Check for a 64-bit object if we didn't find anything.
12482if 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; }
12483}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012484else
12485 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012486sed 's/^/| /' conftest.$ac_ext >&5
12487
John Criswell7a73b802003-06-30 21:59:07 +000012488fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012489rm -f conftest.err conftest.$ac_objext \
12490 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012491if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012492
John Criswell47fdd832003-07-14 16:52:07 +000012493 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12494 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"
12495 else
12496 if test "$host_cpu" = ia64; then
12497 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12498 allow_undefined_flag="-z nodefs"
12499 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"
12500 else
12501 # Determine the default libpath from the value encoded in an empty executable.
12502 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012503/* confdefs.h. */
12504_ACEOF
12505cat confdefs.h >>conftest.$ac_ext
12506cat >>conftest.$ac_ext <<_ACEOF
12507/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012508
John Criswell47fdd832003-07-14 16:52:07 +000012509int
12510main ()
12511{
John Criswell7a73b802003-06-30 21:59:07 +000012512
John Criswell47fdd832003-07-14 16:52:07 +000012513 ;
12514 return 0;
12515}
12516_ACEOF
12517rm -f conftest.$ac_objext conftest$ac_exeext
12518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012519 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012520 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012521 grep -v '^ *+' conftest.er1 >conftest.err
12522 rm -f conftest.er1
12523 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012526 { ac_try='test -z "$ac_c_werror_flag"
12527 || test ! -s conftest.err'
12528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12529 (eval $ac_try) 2>&5
12530 ac_status=$?
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); }; } &&
12533 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12536 ac_status=$?
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012539
John Criswell47fdd832003-07-14 16:52:07 +000012540aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12541}'`
12542# Check for a 64-bit object if we didn't find anything.
12543if 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; }
12544}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012545else
John Criswell47fdd832003-07-14 16:52:07 +000012546 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012547sed 's/^/| /' conftest.$ac_ext >&5
12548
John Criswell47fdd832003-07-14 16:52:07 +000012549fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012550rm -f conftest.err conftest.$ac_objext \
12551 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012552if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012553
John Criswell47fdd832003-07-14 16:52:07 +000012554 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12555 # Warning - without using the other run time loading flags,
12556 # -berok will link without error, but may produce a broken library.
12557 no_undefined_flag=' ${wl}-bernotok'
12558 allow_undefined_flag=' ${wl}-berok'
12559 # -bexpall does not export symbols beginning with underscore (_)
12560 always_export_symbols=yes
12561 # Exported symbols can be pulled into shared objects from archives
12562 whole_archive_flag_spec=' '
12563 archive_cmds_need_lc=yes
12564 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012565 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 +000012566 fi
12567 fi
John Criswell7a73b802003-06-30 21:59:07 +000012568 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012569
12570 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012571 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 +000012572 hardcode_libdir_flag_spec='-L$libdir'
12573 hardcode_minus_L=yes
12574 # see comment about different semantics on the GNU ld section
12575 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012576 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012577
Reid Spencer2706f8c2004-09-19 23:53:36 +000012578 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012579 export_dynamic_flag_spec=-rdynamic
12580 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012581
John Criswell47fdd832003-07-14 16:52:07 +000012582 cygwin* | mingw* | pw32*)
12583 # When not using gcc, we currently assume that we are using
12584 # Microsoft Visual C++.
12585 # hardcode_libdir_flag_spec is actually meaningless, as there is
12586 # no search path for DLLs.
12587 hardcode_libdir_flag_spec=' '
12588 allow_undefined_flag=unsupported
12589 # Tell ltmain to make .lib files, not .a files.
12590 libext=lib
12591 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012592 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012593 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012594 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012595 # The linker will automatically build a .lib file if we build a DLL.
12596 old_archive_From_new_cmds='true'
12597 # FIXME: Should let the user specify the lib program.
12598 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12599 fix_srcfile_path='`cygpath -w "$srcfile"`'
12600 enable_shared_with_static_runtimes=yes
12601 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012602
John Criswell47fdd832003-07-14 16:52:07 +000012603 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012604 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012605 rhapsody* | darwin1.[012])
12606 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12607 ;;
12608 *) # Darwin 1.3 on
12609 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12610 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12611 else
12612 case ${MACOSX_DEPLOYMENT_TARGET} in
12613 10.[012])
12614 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12615 ;;
12616 10.*)
12617 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12618 ;;
12619 esac
12620 fi
12621 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012622 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012623 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012624 hardcode_direct=no
12625 hardcode_automatic=yes
12626 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012627 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012628 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012629 if test "$GCC" = yes ; then
12630 output_verbose_link_cmd='echo'
12631 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12632 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12633 # 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 +000012634 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}'
12635 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 +000012636 else
12637 case "$cc_basename" in
12638 xlc*)
12639 output_verbose_link_cmd='echo'
12640 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12641 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12642 # 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 +000012643 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}'
12644 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 +000012645 ;;
12646 *)
12647 ld_shlibs=no
12648 ;;
12649 esac
John Criswell7a73b802003-06-30 21:59:07 +000012650 fi
John Criswell47fdd832003-07-14 16:52:07 +000012651 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012652
John Criswell47fdd832003-07-14 16:52:07 +000012653 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012655 hardcode_libdir_flag_spec='-L$libdir'
12656 hardcode_shlibpath_var=no
12657 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012658
John Criswell47fdd832003-07-14 16:52:07 +000012659 freebsd1*)
12660 ld_shlibs=no
12661 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012662
John Criswell47fdd832003-07-14 16:52:07 +000012663 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12664 # support. Future versions do this automatically, but an explicit c++rt0.o
12665 # does not break anything, and helps significantly (at the cost of a little
12666 # extra space).
12667 freebsd2.2*)
12668 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12669 hardcode_libdir_flag_spec='-R$libdir'
12670 hardcode_direct=yes
12671 hardcode_shlibpath_var=no
12672 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012673
John Criswell47fdd832003-07-14 16:52:07 +000012674 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12675 freebsd2*)
12676 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12677 hardcode_direct=yes
12678 hardcode_minus_L=yes
12679 hardcode_shlibpath_var=no
12680 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012681
John Criswell47fdd832003-07-14 16:52:07 +000012682 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012683 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012684 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12685 hardcode_libdir_flag_spec='-R$libdir'
12686 hardcode_direct=yes
12687 hardcode_shlibpath_var=no
12688 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012689
John Criswell47fdd832003-07-14 16:52:07 +000012690 hpux9*)
12691 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012692 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 +000012693 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012694 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 +000012695 fi
12696 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12697 hardcode_libdir_separator=:
12698 hardcode_direct=yes
12699
12700 # hardcode_minus_L: Not really in the search PATH,
12701 # but as the default location of the library.
12702 hardcode_minus_L=yes
12703 export_dynamic_flag_spec='${wl}-E'
12704 ;;
12705
12706 hpux10* | hpux11*)
12707 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12708 case "$host_cpu" in
12709 hppa*64*|ia64*)
12710 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12711 ;;
12712 *)
12713 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12714 ;;
12715 esac
12716 else
12717 case "$host_cpu" in
12718 hppa*64*|ia64*)
12719 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12720 ;;
12721 *)
12722 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12723 ;;
12724 esac
12725 fi
12726 if test "$with_gnu_ld" = no; then
12727 case "$host_cpu" in
12728 hppa*64*)
12729 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12730 hardcode_libdir_flag_spec_ld='+b $libdir'
12731 hardcode_libdir_separator=:
12732 hardcode_direct=no
12733 hardcode_shlibpath_var=no
12734 ;;
12735 ia64*)
12736 hardcode_libdir_flag_spec='-L$libdir'
12737 hardcode_direct=no
12738 hardcode_shlibpath_var=no
12739
12740 # hardcode_minus_L: Not really in the search PATH,
12741 # but as the default location of the library.
12742 hardcode_minus_L=yes
12743 ;;
12744 *)
12745 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12746 hardcode_libdir_separator=:
12747 hardcode_direct=yes
12748 export_dynamic_flag_spec='${wl}-E'
12749
12750 # hardcode_minus_L: Not really in the search PATH,
12751 # but as the default location of the library.
12752 hardcode_minus_L=yes
12753 ;;
12754 esac
12755 fi
12756 ;;
12757
12758 irix5* | irix6* | nonstopux*)
12759 if test "$GCC" = yes; then
12760 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'
12761 else
12762 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'
12763 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12764 fi
12765 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12766 hardcode_libdir_separator=:
12767 link_all_deplibs=yes
12768 ;;
12769
12770 netbsd*)
12771 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12772 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12773 else
12774 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12775 fi
12776 hardcode_libdir_flag_spec='-R$libdir'
12777 hardcode_direct=yes
12778 hardcode_shlibpath_var=no
12779 ;;
12780
12781 newsos6)
12782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12783 hardcode_direct=yes
12784 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12785 hardcode_libdir_separator=:
12786 hardcode_shlibpath_var=no
12787 ;;
12788
12789 openbsd*)
12790 hardcode_direct=yes
12791 hardcode_shlibpath_var=no
12792 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12793 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012794 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 +000012795 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12796 export_dynamic_flag_spec='${wl}-E'
12797 else
12798 case $host_os in
12799 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12800 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12801 hardcode_libdir_flag_spec='-R$libdir'
12802 ;;
12803 *)
12804 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12805 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12806 ;;
12807 esac
12808 fi
12809 ;;
12810
12811 os2*)
12812 hardcode_libdir_flag_spec='-L$libdir'
12813 hardcode_minus_L=yes
12814 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000012815 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 +000012816 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12817 ;;
12818
12819 osf3*)
12820 if test "$GCC" = yes; then
12821 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12822 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'
12823 else
12824 allow_undefined_flag=' -expect_unresolved \*'
12825 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'
12826 fi
12827 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12828 hardcode_libdir_separator=:
12829 ;;
12830
12831 osf4* | osf5*) # as osf3* with the addition of -msym flag
12832 if test "$GCC" = yes; then
12833 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12834 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'
12835 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12836 else
12837 allow_undefined_flag=' -expect_unresolved \*'
12838 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 +000012839 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12840 $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'
12841
John Criswell47fdd832003-07-14 16:52:07 +000012842 # Both c and cxx compiler support -rpath directly
12843 hardcode_libdir_flag_spec='-rpath $libdir'
12844 fi
12845 hardcode_libdir_separator=:
12846 ;;
12847
12848 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000012849 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12850 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000012851 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000012852 runpath_var=LD_RUN_PATH
12853 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000012854 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012855
John Criswell47fdd832003-07-14 16:52:07 +000012856 solaris*)
12857 no_undefined_flag=' -z text'
12858 if test "$GCC" = yes; then
12859 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012860 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12861 $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 +000012862 else
12863 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012864 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12865 $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 +000012866 fi
12867 hardcode_libdir_flag_spec='-R$libdir'
12868 hardcode_shlibpath_var=no
12869 case $host_os in
12870 solaris2.[0-5] | solaris2.[0-5].*) ;;
12871 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12872 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12873 esac
12874 link_all_deplibs=yes
12875 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012876
John Criswell47fdd832003-07-14 16:52:07 +000012877 sunos4*)
12878 if test "x$host_vendor" = xsequent; then
12879 # Use $CC to link under sequent, because it throws in some extra .o
12880 # files that make .init and .fini sections work.
12881 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12882 else
12883 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12884 fi
12885 hardcode_libdir_flag_spec='-L$libdir'
12886 hardcode_direct=yes
12887 hardcode_minus_L=yes
12888 hardcode_shlibpath_var=no
12889 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012890
John Criswell47fdd832003-07-14 16:52:07 +000012891 sysv4)
12892 case $host_vendor in
12893 sni)
12894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12895 hardcode_direct=yes # is this really true???
12896 ;;
12897 siemens)
12898 ## LD is ld it makes a PLAMLIB
12899 ## CC just makes a GrossModule.
12900 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12901 reload_cmds='$CC -r -o $output$reload_objs'
12902 hardcode_direct=no
12903 ;;
12904 motorola)
12905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12906 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12907 ;;
12908 esac
12909 runpath_var='LD_RUN_PATH'
12910 hardcode_shlibpath_var=no
12911 ;;
12912
12913 sysv4.3*)
12914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12915 hardcode_shlibpath_var=no
12916 export_dynamic_flag_spec='-Bexport'
12917 ;;
12918
12919 sysv4*MP*)
12920 if test -d /usr/nec; then
12921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12922 hardcode_shlibpath_var=no
12923 runpath_var=LD_RUN_PATH
12924 hardcode_runpath_var=yes
12925 ld_shlibs=yes
12926 fi
12927 ;;
12928
12929 sysv4.2uw2*)
12930 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12931 hardcode_direct=yes
12932 hardcode_minus_L=no
12933 hardcode_shlibpath_var=no
12934 hardcode_runpath_var=yes
12935 runpath_var=LD_RUN_PATH
12936 ;;
12937
12938 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12939 no_undefined_flag='${wl}-z ${wl}text'
12940 if test "$GCC" = yes; then
12941 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12942 else
12943 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12944 fi
12945 runpath_var='LD_RUN_PATH'
12946 hardcode_shlibpath_var=no
12947 ;;
12948
12949 sysv5*)
12950 no_undefined_flag=' -z text'
12951 # $CC -shared without GNU ld will not create a library from C++
12952 # object files and a static libstdc++, better avoid it by now
12953 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012954 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12955 $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 +000012956 hardcode_libdir_flag_spec=
12957 hardcode_shlibpath_var=no
12958 runpath_var='LD_RUN_PATH'
12959 ;;
12960
12961 uts4*)
12962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12963 hardcode_libdir_flag_spec='-L$libdir'
12964 hardcode_shlibpath_var=no
12965 ;;
12966
12967 *)
12968 ld_shlibs=no
12969 ;;
12970 esac
12971 fi
12972
John Criswell7a73b802003-06-30 21:59:07 +000012973echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12974echo "${ECHO_T}$ld_shlibs" >&6
12975test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012976
John Criswell47fdd832003-07-14 16:52:07 +000012977variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12978if test "$GCC" = yes; then
12979 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12980fi
12981
12982#
12983# Do we need to explicitly link libc?
12984#
12985case "x$archive_cmds_need_lc" in
12986x|xyes)
12987 # Assume -lc should be added
12988 archive_cmds_need_lc=yes
12989
12990 if test "$enable_shared" = yes && test "$GCC" = yes; then
12991 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012992 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000012993 # FIXME: we may have to deal with multi-command sequences.
12994 ;;
12995 '$CC '*)
12996 # Test whether the compiler implicitly links with -lc since on some
12997 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12998 # to ld, don't add -lc before -lgcc.
12999 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13000echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13001 $rm conftest*
13002 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13003
13004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13005 (eval $ac_compile) 2>&5
13006 ac_status=$?
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); } 2>conftest.err; then
13009 soname=conftest
13010 lib=conftest
13011 libobjs=conftest.$ac_objext
13012 deplibs=
13013 wl=$lt_prog_compiler_wl
13014 compiler_flags=-v
13015 linker_flags=-v
13016 verstring=
13017 output_objdir=.
13018 libname=conftest
13019 lt_save_allow_undefined_flag=$allow_undefined_flag
13020 allow_undefined_flag=
13021 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13022 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13023 ac_status=$?
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }
13026 then
13027 archive_cmds_need_lc=no
13028 else
13029 archive_cmds_need_lc=yes
13030 fi
13031 allow_undefined_flag=$lt_save_allow_undefined_flag
13032 else
13033 cat conftest.err 1>&5
13034 fi
13035 $rm conftest*
13036 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13037echo "${ECHO_T}$archive_cmds_need_lc" >&6
13038 ;;
13039 esac
13040 fi
13041 ;;
13042esac
13043
John Criswell7a73b802003-06-30 21:59:07 +000013044echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13045echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13046library_names_spec=
13047libname_spec='lib$name'
13048soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013049shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013050postinstall_cmds=
13051postuninstall_cmds=
13052finish_cmds=
13053finish_eval=
13054shlibpath_var=
13055shlibpath_overrides_runpath=unknown
13056version_type=none
13057dynamic_linker="$host_os ld.so"
13058sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013059if test "$GCC" = yes; then
13060 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13061 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13062 # if the path contains ";" then we assume it to be the separator
13063 # otherwise default to the standard path separator (i.e. ":") - it is
13064 # assumed that no part of a normal pathname contains ";" but that should
13065 # okay in the real world where ";" in dirpaths is itself problematic.
13066 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13067 else
13068 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13069 fi
13070else
13071 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13072fi
13073need_lib_prefix=unknown
13074hardcode_into_libs=no
13075
13076# when you set need_version to no, make sure it does not cause -set_version
13077# flags to be left without arguments
13078need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013079
13080case $host_os in
13081aix3*)
13082 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013083 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013084 shlibpath_var=LIBPATH
13085
John Criswell47fdd832003-07-14 16:52:07 +000013086 # AIX 3 has no versioning support, so we append a major version to the name.
13087 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013088 ;;
13089
13090aix4* | aix5*)
13091 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013092 need_lib_prefix=no
13093 need_version=no
13094 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013095 if test "$host_cpu" = ia64; then
13096 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013097 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013098 shlibpath_var=LD_LIBRARY_PATH
13099 else
13100 # With GCC up to 2.95.x, collect2 would create an import file
13101 # for dependence libraries. The import file would start with
13102 # the line `#! .'. This would cause the generated library to
13103 # depend on `.', always an invalid library. This was fixed in
13104 # development snapshots of GCC prior to 3.0.
13105 case $host_os in
13106 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013107 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13108 echo ' yes '
13109 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13110 :
13111 else
13112 can_build_shared=no
13113 fi
13114 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013115 esac
John Criswell47fdd832003-07-14 16:52:07 +000013116 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13117 # soname into executable. Probably we can add versioning support to
13118 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013119 if test "$aix_use_runtimelinking" = yes; then
13120 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13121 # instead of lib<name>.a to let people know that these are not
13122 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013124 else
13125 # We preserve .a as extension for shared libraries through AIX4.2
13126 # and later when we are not doing run time linking.
13127 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013128 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013129 fi
13130 shlibpath_var=LIBPATH
13131 fi
13132 ;;
13133
13134amigaos*)
13135 library_names_spec='$libname.ixlibrary $libname.a'
13136 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013137 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 +000013138 ;;
13139
13140beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013141 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013142 dynamic_linker="$host_os ld.so"
13143 shlibpath_var=LIBRARY_PATH
13144 ;;
13145
Reid Spencer2706f8c2004-09-19 23:53:36 +000013146bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013147 version_type=linux
13148 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13150 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013151 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13152 shlibpath_var=LD_LIBRARY_PATH
13153 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13154 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013155 # the default ld.so.conf also contains /usr/contrib/lib and
13156 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13157 # libtool to hard-code these into programs
13158 ;;
13159
13160cygwin* | mingw* | pw32*)
13161 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013162 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013163 need_version=no
13164 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013165
John Criswell7a73b802003-06-30 21:59:07 +000013166 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013167 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013168 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013169 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013170 postinstall_cmds='base_file=`basename \${file}`~
13171 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13172 dldir=$destdir/`dirname \$dlpath`~
13173 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013174 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013175 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13176 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013177 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013178 shlibpath_overrides_runpath=yes
13179
13180 case $host_os in
13181 cygwin*)
13182 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13183 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 +000013184 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013185 ;;
13186 mingw*)
13187 # MinGW DLLs use traditional 'lib' prefix
13188 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13189 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13190 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13191 # It is most probably a Windows format PATH printed by
13192 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13193 # path with ; separators, and with drive letters. We can handle the
13194 # drive letters (cygwin fileutils understands them), so leave them,
13195 # especially as we might pass files found there to a mingw objdump,
13196 # which wouldn't understand a cygwinified path. Ahh.
13197 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13198 else
13199 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13200 fi
13201 ;;
13202 pw32*)
13203 # pw32 DLLs use 'pw' prefix rather than 'lib'
13204 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13205 ;;
13206 esac
John Criswell7a73b802003-06-30 21:59:07 +000013207 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013208
John Criswell7a73b802003-06-30 21:59:07 +000013209 *)
John Criswell47fdd832003-07-14 16:52:07 +000013210 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013211 ;;
13212 esac
13213 dynamic_linker='Win32 ld.exe'
13214 # FIXME: first we should search . and the directory the executable is in
13215 shlibpath_var=PATH
13216 ;;
13217
13218darwin* | rhapsody*)
13219 dynamic_linker="$host_os dyld"
13220 version_type=darwin
13221 need_lib_prefix=no
13222 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013223 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013224 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013225 shlibpath_overrides_runpath=yes
13226 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013227 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013228 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013229 if test "$GCC" = yes; then
13230 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"`
13231 else
13232 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013233 fi
13234 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13235 ;;
13236
13237dgux*)
13238 version_type=linux
13239 need_lib_prefix=no
13240 need_version=no
13241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13242 soname_spec='${libname}${release}${shared_ext}$major'
13243 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013244 ;;
13245
13246freebsd1*)
13247 dynamic_linker=no
13248 ;;
13249
Reid Spencer2706f8c2004-09-19 23:53:36 +000013250kfreebsd*-gnu)
13251 version_type=linux
13252 need_lib_prefix=no
13253 need_version=no
13254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13255 soname_spec='${libname}${release}${shared_ext}$major'
13256 shlibpath_var=LD_LIBRARY_PATH
13257 shlibpath_overrides_runpath=no
13258 hardcode_into_libs=yes
13259 dynamic_linker='GNU ld.so'
13260 ;;
13261
John Criswell7a73b802003-06-30 21:59:07 +000013262freebsd*)
13263 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13264 version_type=freebsd-$objformat
13265 case $version_type in
13266 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013268 need_version=no
13269 need_lib_prefix=no
13270 ;;
13271 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013272 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013273 need_version=yes
13274 ;;
13275 esac
13276 shlibpath_var=LD_LIBRARY_PATH
13277 case $host_os in
13278 freebsd2*)
13279 shlibpath_overrides_runpath=yes
13280 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013281 freebsd3.01* | freebsdelf3.01*)
13282 shlibpath_overrides_runpath=yes
13283 hardcode_into_libs=yes
13284 ;;
13285 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013286 shlibpath_overrides_runpath=no
13287 hardcode_into_libs=yes
13288 ;;
13289 esac
13290 ;;
13291
13292gnu*)
13293 version_type=linux
13294 need_lib_prefix=no
13295 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13297 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013298 shlibpath_var=LD_LIBRARY_PATH
13299 hardcode_into_libs=yes
13300 ;;
13301
13302hpux9* | hpux10* | hpux11*)
13303 # Give a soname corresponding to the major version so that dld.sl refuses to
13304 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013305 version_type=sunos
13306 need_lib_prefix=no
13307 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013308 case "$host_cpu" in
13309 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013310 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013311 hardcode_into_libs=yes
13312 dynamic_linker="$host_os dld.so"
13313 shlibpath_var=LD_LIBRARY_PATH
13314 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13316 soname_spec='${libname}${release}${shared_ext}$major'
13317 if test "X$HPUX_IA64_MODE" = X32; then
13318 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13319 else
13320 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13321 fi
13322 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13323 ;;
13324 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013325 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013326 hardcode_into_libs=yes
13327 dynamic_linker="$host_os dld.sl"
13328 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13329 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13331 soname_spec='${libname}${release}${shared_ext}$major'
13332 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13333 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13334 ;;
13335 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013336 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013337 dynamic_linker="$host_os dld.sl"
13338 shlibpath_var=SHLIB_PATH
13339 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13341 soname_spec='${libname}${release}${shared_ext}$major'
13342 ;;
13343 esac
John Criswell7a73b802003-06-30 21:59:07 +000013344 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13345 postinstall_cmds='chmod 555 $lib'
13346 ;;
13347
John Criswell47fdd832003-07-14 16:52:07 +000013348irix5* | irix6* | nonstopux*)
13349 case $host_os in
13350 nonstopux*) version_type=nonstopux ;;
13351 *)
13352 if test "$lt_cv_prog_gnu_ld" = yes; then
13353 version_type=linux
13354 else
13355 version_type=irix
13356 fi ;;
13357 esac
John Criswell7a73b802003-06-30 21:59:07 +000013358 need_lib_prefix=no
13359 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013360 soname_spec='${libname}${release}${shared_ext}$major'
13361 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 +000013362 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013363 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013364 libsuff= shlibsuff=
13365 ;;
13366 *)
13367 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013368 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13369 libsuff= shlibsuff= libmagic=32-bit;;
13370 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13371 libsuff=32 shlibsuff=N32 libmagic=N32;;
13372 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13373 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013374 *) libsuff= shlibsuff= libmagic=never-match;;
13375 esac
13376 ;;
13377 esac
13378 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13379 shlibpath_overrides_runpath=no
13380 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13381 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013382 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013383 ;;
13384
13385# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013386linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013387 dynamic_linker=no
13388 ;;
13389
13390# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013391linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013392 version_type=linux
13393 need_lib_prefix=no
13394 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13396 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13398 shlibpath_var=LD_LIBRARY_PATH
13399 shlibpath_overrides_runpath=no
13400 # This implies no fast_install, which is unacceptable.
13401 # Some rework will be needed to allow for fast_install
13402 # before this can be enabled.
13403 hardcode_into_libs=yes
13404
Reid Spencer2706f8c2004-09-19 23:53:36 +000013405 # Append ld.so.conf contents to the search path
13406 if test -f /etc/ld.so.conf; then
13407 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13408 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13409 fi
13410
John Criswell7a73b802003-06-30 21:59:07 +000013411 # We used to test for /lib/ld.so.1 and disable shared libraries on
13412 # powerpc, because MkLinux only supported shared libraries with the
13413 # GNU dynamic linker. Since this was broken with cross compilers,
13414 # most powerpc-linux boxes support dynamic linking these days and
13415 # people can always --disable-shared, the test was removed, and we
13416 # assume the GNU/Linux dynamic linker is in use.
13417 dynamic_linker='GNU/Linux ld.so'
13418 ;;
13419
Reid Spencer2706f8c2004-09-19 23:53:36 +000013420knetbsd*-gnu)
13421 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'
13426 shlibpath_var=LD_LIBRARY_PATH
13427 shlibpath_overrides_runpath=no
13428 hardcode_into_libs=yes
13429 dynamic_linker='GNU ld.so'
13430 ;;
13431
John Criswell7a73b802003-06-30 21:59:07 +000013432netbsd*)
13433 version_type=sunos
13434 need_lib_prefix=no
13435 need_version=no
13436 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13439 dynamic_linker='NetBSD (a.out) ld.so'
13440 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013442 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013443 dynamic_linker='NetBSD ld.elf_so'
13444 fi
13445 shlibpath_var=LD_LIBRARY_PATH
13446 shlibpath_overrides_runpath=yes
13447 hardcode_into_libs=yes
13448 ;;
13449
13450newsos6)
13451 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13453 shlibpath_var=LD_LIBRARY_PATH
13454 shlibpath_overrides_runpath=yes
13455 ;;
13456
Reid Spencer2706f8c2004-09-19 23:53:36 +000013457nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013458 version_type=linux
13459 need_lib_prefix=no
13460 need_version=no
13461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13462 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013463 shlibpath_var=LD_LIBRARY_PATH
13464 shlibpath_overrides_runpath=yes
13465 ;;
13466
13467openbsd*)
13468 version_type=sunos
13469 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013470 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13473 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013474 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 +000013475 case $host_os in
13476 openbsd2.[89] | openbsd2.[89].*)
13477 shlibpath_overrides_runpath=no
13478 ;;
13479 *)
13480 shlibpath_overrides_runpath=yes
13481 ;;
13482 esac
John Criswell7a73b802003-06-30 21:59:07 +000013483 else
13484 shlibpath_overrides_runpath=yes
13485 fi
John Criswell7a73b802003-06-30 21:59:07 +000013486 ;;
13487
13488os2*)
13489 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013490 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013491 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013492 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013493 dynamic_linker='OS/2 ld.exe'
13494 shlibpath_var=LIBPATH
13495 ;;
13496
13497osf3* | osf4* | osf5*)
13498 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013499 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013500 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013501 soname_spec='${libname}${release}${shared_ext}$major'
13502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013503 shlibpath_var=LD_LIBRARY_PATH
13504 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13505 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13506 ;;
13507
13508sco3.2v5*)
13509 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013510 soname_spec='${libname}${release}${shared_ext}$major'
13511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013512 shlibpath_var=LD_LIBRARY_PATH
13513 ;;
13514
13515solaris*)
13516 version_type=linux
13517 need_lib_prefix=no
13518 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13520 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013521 shlibpath_var=LD_LIBRARY_PATH
13522 shlibpath_overrides_runpath=yes
13523 hardcode_into_libs=yes
13524 # ldd complains unless libraries are executable
13525 postinstall_cmds='chmod +x $lib'
13526 ;;
13527
13528sunos4*)
13529 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013531 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13532 shlibpath_var=LD_LIBRARY_PATH
13533 shlibpath_overrides_runpath=yes
13534 if test "$with_gnu_ld" = yes; then
13535 need_lib_prefix=no
13536 fi
13537 need_version=yes
13538 ;;
13539
13540sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13541 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13543 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013544 shlibpath_var=LD_LIBRARY_PATH
13545 case $host_vendor in
13546 sni)
13547 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013548 need_lib_prefix=no
13549 export_dynamic_flag_spec='${wl}-Blargedynsym'
13550 runpath_var=LD_RUN_PATH
13551 ;;
13552 siemens)
13553 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013554 ;;
13555 motorola)
13556 need_lib_prefix=no
13557 need_version=no
13558 shlibpath_overrides_runpath=no
13559 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13560 ;;
13561 esac
13562 ;;
13563
John Criswell7a73b802003-06-30 21:59:07 +000013564sysv4*MP*)
13565 if test -d /usr/nec ;then
13566 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013567 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13568 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013569 shlibpath_var=LD_LIBRARY_PATH
13570 fi
13571 ;;
13572
John Criswell47fdd832003-07-14 16:52:07 +000013573uts4*)
13574 version_type=linux
13575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13576 soname_spec='${libname}${release}${shared_ext}$major'
13577 shlibpath_var=LD_LIBRARY_PATH
13578 ;;
13579
John Criswell7a73b802003-06-30 21:59:07 +000013580*)
13581 dynamic_linker=no
13582 ;;
13583esac
13584echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13585echo "${ECHO_T}$dynamic_linker" >&6
13586test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013587
Reid Spencer2706f8c2004-09-19 23:53:36 +000013588echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13589echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13590hardcode_action=
13591if test -n "$hardcode_libdir_flag_spec" || \
13592 test -n "$runpath_var" || \
13593 test "X$hardcode_automatic" = "Xyes" ; then
13594
13595 # We can hardcode non-existant directories.
13596 if test "$hardcode_direct" != no &&
13597 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13598 # have to relink, otherwise we might link with an installed library
13599 # when we should be linking with a yet-to-be-installed one
13600 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13601 test "$hardcode_minus_L" != no; then
13602 # Linking always hardcodes the temporary library directory.
13603 hardcode_action=relink
13604 else
13605 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13606 hardcode_action=immediate
13607 fi
13608else
13609 # We cannot hardcode anything, or else we can only hardcode existing
13610 # directories.
13611 hardcode_action=unsupported
13612fi
13613echo "$as_me:$LINENO: result: $hardcode_action" >&5
13614echo "${ECHO_T}$hardcode_action" >&6
13615
13616if test "$hardcode_action" = relink; then
13617 # Fast installation is not supported
13618 enable_fast_install=no
13619elif test "$shlibpath_overrides_runpath" = yes ||
13620 test "$enable_shared" = no; then
13621 # Fast installation is not necessary
13622 enable_fast_install=needless
13623fi
13624
13625striplib=
13626old_striplib=
13627echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13628echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13629if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13630 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13631 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13632 echo "$as_me:$LINENO: result: yes" >&5
13633echo "${ECHO_T}yes" >&6
13634else
13635# FIXME - insert some real tests, host_os isn't really good enough
13636 case $host_os in
13637 darwin*)
13638 if test -n "$STRIP" ; then
13639 striplib="$STRIP -x"
13640 echo "$as_me:$LINENO: result: yes" >&5
13641echo "${ECHO_T}yes" >&6
13642 else
13643 echo "$as_me:$LINENO: result: no" >&5
13644echo "${ECHO_T}no" >&6
13645fi
13646 ;;
13647 *)
13648 echo "$as_me:$LINENO: result: no" >&5
13649echo "${ECHO_T}no" >&6
13650 ;;
13651 esac
13652fi
13653
John Criswell7a73b802003-06-30 21:59:07 +000013654if test "x$enable_dlopen" != xyes; then
13655 enable_dlopen=unknown
13656 enable_dlopen_self=unknown
13657 enable_dlopen_self_static=unknown
13658else
13659 lt_cv_dlopen=no
13660 lt_cv_dlopen_libs=
13661
13662 case $host_os in
13663 beos*)
13664 lt_cv_dlopen="load_add_on"
13665 lt_cv_dlopen_libs=
13666 lt_cv_dlopen_self=yes
13667 ;;
13668
John Criswell47fdd832003-07-14 16:52:07 +000013669 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013670 lt_cv_dlopen="LoadLibrary"
13671 lt_cv_dlopen_libs=
13672 ;;
13673
John Criswell47fdd832003-07-14 16:52:07 +000013674 cygwin*)
13675 lt_cv_dlopen="dlopen"
13676 lt_cv_dlopen_libs=
13677 ;;
13678
13679 darwin*)
13680 # if libdl is installed we need to link against it
13681 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13682echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13683if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13685else
13686 ac_check_lib_save_LIBS=$LIBS
13687LIBS="-ldl $LIBS"
13688cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013689/* confdefs.h. */
13690_ACEOF
13691cat confdefs.h >>conftest.$ac_ext
13692cat >>conftest.$ac_ext <<_ACEOF
13693/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013694
13695/* Override any gcc2 internal prototype to avoid an error. */
13696#ifdef __cplusplus
13697extern "C"
13698#endif
13699/* We use char because int might match the return type of a gcc2
13700 builtin and then its argument prototype would still apply. */
13701char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013702int
13703main ()
13704{
13705dlopen ();
13706 ;
13707 return 0;
13708}
13709_ACEOF
13710rm -f conftest.$ac_objext conftest$ac_exeext
13711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013712 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013713 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013714 grep -v '^ *+' conftest.er1 >conftest.err
13715 rm -f conftest.er1
13716 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013719 { ac_try='test -z "$ac_c_werror_flag"
13720 || test ! -s conftest.err'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13723 ac_status=$?
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; } &&
13726 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13729 ac_status=$?
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; }; then
13732 ac_cv_lib_dl_dlopen=yes
13733else
13734 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013735sed 's/^/| /' conftest.$ac_ext >&5
13736
John Criswell47fdd832003-07-14 16:52:07 +000013737ac_cv_lib_dl_dlopen=no
13738fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013739rm -f conftest.err conftest.$ac_objext \
13740 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013741LIBS=$ac_check_lib_save_LIBS
13742fi
13743echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13744echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13745if test $ac_cv_lib_dl_dlopen = yes; then
13746 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13747else
13748
13749 lt_cv_dlopen="dyld"
13750 lt_cv_dlopen_libs=
13751 lt_cv_dlopen_self=yes
13752
13753fi
13754
13755 ;;
13756
John Criswell7a73b802003-06-30 21:59:07 +000013757 *)
13758 echo "$as_me:$LINENO: checking for shl_load" >&5
13759echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13760if test "${ac_cv_func_shl_load+set}" = set; then
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13762else
13763 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013764/* confdefs.h. */
13765_ACEOF
13766cat confdefs.h >>conftest.$ac_ext
13767cat >>conftest.$ac_ext <<_ACEOF
13768/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013769/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13771#define shl_load innocuous_shl_load
13772
John Criswell7a73b802003-06-30 21:59:07 +000013773/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013774 which can conflict with char shl_load (); below.
13775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13776 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013777
John Criswell0c38eaf2003-09-10 15:17:25 +000013778#ifdef __STDC__
13779# include <limits.h>
13780#else
13781# include <assert.h>
13782#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013783
13784#undef shl_load
13785
John Criswell7a73b802003-06-30 21:59:07 +000013786/* Override any gcc2 internal prototype to avoid an error. */
13787#ifdef __cplusplus
13788extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013789{
John Criswell7a73b802003-06-30 21:59:07 +000013790#endif
13791/* We use char because int might match the return type of a gcc2
13792 builtin and then its argument prototype would still apply. */
13793char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013794/* The GNU C library defines this for functions which it implements
13795 to always fail with ENOSYS. Some functions are actually named
13796 something starting with __ and the normal name is an alias. */
13797#if defined (__stub_shl_load) || defined (__stub___shl_load)
13798choke me
13799#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013800char (*f) () = shl_load;
13801#endif
13802#ifdef __cplusplus
13803}
John Criswell7a73b802003-06-30 21:59:07 +000013804#endif
13805
John Criswell0c38eaf2003-09-10 15:17:25 +000013806int
13807main ()
13808{
13809return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000013810 ;
13811 return 0;
13812}
13813_ACEOF
13814rm -f conftest.$ac_objext conftest$ac_exeext
13815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013816 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013817 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013818 grep -v '^ *+' conftest.er1 >conftest.err
13819 rm -f conftest.er1
13820 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013823 { ac_try='test -z "$ac_c_werror_flag"
13824 || test ! -s conftest.err'
13825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826 (eval $ac_try) 2>&5
13827 ac_status=$?
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); }; } &&
13830 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832 (eval $ac_try) 2>&5
13833 ac_status=$?
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; }; then
13836 ac_cv_func_shl_load=yes
13837else
13838 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013839sed 's/^/| /' conftest.$ac_ext >&5
13840
John Criswell7a73b802003-06-30 21:59:07 +000013841ac_cv_func_shl_load=no
13842fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013843rm -f conftest.err conftest.$ac_objext \
13844 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013845fi
13846echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13847echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13848if test $ac_cv_func_shl_load = yes; then
13849 lt_cv_dlopen="shl_load"
13850else
13851 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13852echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13853if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13854 echo $ECHO_N "(cached) $ECHO_C" >&6
13855else
13856 ac_check_lib_save_LIBS=$LIBS
13857LIBS="-ldld $LIBS"
13858cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013859/* confdefs.h. */
13860_ACEOF
13861cat confdefs.h >>conftest.$ac_ext
13862cat >>conftest.$ac_ext <<_ACEOF
13863/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013864
13865/* Override any gcc2 internal prototype to avoid an error. */
13866#ifdef __cplusplus
13867extern "C"
13868#endif
13869/* We use char because int might match the return type of a gcc2
13870 builtin and then its argument prototype would still apply. */
13871char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013872int
13873main ()
13874{
13875shl_load ();
13876 ;
13877 return 0;
13878}
13879_ACEOF
13880rm -f conftest.$ac_objext conftest$ac_exeext
13881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013882 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013883 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013884 grep -v '^ *+' conftest.er1 >conftest.err
13885 rm -f conftest.er1
13886 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013889 { ac_try='test -z "$ac_c_werror_flag"
13890 || test ! -s conftest.err'
13891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892 (eval $ac_try) 2>&5
13893 ac_status=$?
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; } &&
13896 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898 (eval $ac_try) 2>&5
13899 ac_status=$?
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; }; then
13902 ac_cv_lib_dld_shl_load=yes
13903else
13904 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013905sed 's/^/| /' conftest.$ac_ext >&5
13906
John Criswell7a73b802003-06-30 21:59:07 +000013907ac_cv_lib_dld_shl_load=no
13908fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013909rm -f conftest.err conftest.$ac_objext \
13910 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013911LIBS=$ac_check_lib_save_LIBS
13912fi
13913echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13914echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13915if test $ac_cv_lib_dld_shl_load = yes; then
13916 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13917else
13918 echo "$as_me:$LINENO: checking for dlopen" >&5
13919echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13920if test "${ac_cv_func_dlopen+set}" = set; then
13921 echo $ECHO_N "(cached) $ECHO_C" >&6
13922else
13923 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013924/* confdefs.h. */
13925_ACEOF
13926cat confdefs.h >>conftest.$ac_ext
13927cat >>conftest.$ac_ext <<_ACEOF
13928/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013929/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13931#define dlopen innocuous_dlopen
13932
John Criswell7a73b802003-06-30 21:59:07 +000013933/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013934 which can conflict with char dlopen (); below.
13935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13936 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013937
John Criswell0c38eaf2003-09-10 15:17:25 +000013938#ifdef __STDC__
13939# include <limits.h>
13940#else
13941# include <assert.h>
13942#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013943
13944#undef dlopen
13945
John Criswell7a73b802003-06-30 21:59:07 +000013946/* Override any gcc2 internal prototype to avoid an error. */
13947#ifdef __cplusplus
13948extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013949{
John Criswell7a73b802003-06-30 21:59:07 +000013950#endif
13951/* We use char because int might match the return type of a gcc2
13952 builtin and then its argument prototype would still apply. */
13953char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013954/* The GNU C library defines this for functions which it implements
13955 to always fail with ENOSYS. Some functions are actually named
13956 something starting with __ and the normal name is an alias. */
13957#if defined (__stub_dlopen) || defined (__stub___dlopen)
13958choke me
13959#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013960char (*f) () = dlopen;
13961#endif
13962#ifdef __cplusplus
13963}
John Criswell7a73b802003-06-30 21:59:07 +000013964#endif
13965
John Criswell0c38eaf2003-09-10 15:17:25 +000013966int
13967main ()
13968{
13969return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000013970 ;
13971 return 0;
13972}
13973_ACEOF
13974rm -f conftest.$ac_objext conftest$ac_exeext
13975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013976 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013977 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013978 grep -v '^ *+' conftest.er1 >conftest.err
13979 rm -f conftest.er1
13980 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013983 { ac_try='test -z "$ac_c_werror_flag"
13984 || test ! -s conftest.err'
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; } &&
13990 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13992 (eval $ac_try) 2>&5
13993 ac_status=$?
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); }; }; then
13996 ac_cv_func_dlopen=yes
13997else
13998 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013999sed 's/^/| /' conftest.$ac_ext >&5
14000
John Criswell7a73b802003-06-30 21:59:07 +000014001ac_cv_func_dlopen=no
14002fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014003rm -f conftest.err conftest.$ac_objext \
14004 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014005fi
14006echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14007echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14008if test $ac_cv_func_dlopen = yes; then
14009 lt_cv_dlopen="dlopen"
14010else
14011 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14012echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14013if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14015else
14016 ac_check_lib_save_LIBS=$LIBS
14017LIBS="-ldl $LIBS"
14018cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014019/* confdefs.h. */
14020_ACEOF
14021cat confdefs.h >>conftest.$ac_ext
14022cat >>conftest.$ac_ext <<_ACEOF
14023/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014024
14025/* Override any gcc2 internal prototype to avoid an error. */
14026#ifdef __cplusplus
14027extern "C"
14028#endif
14029/* We use char because int might match the return type of a gcc2
14030 builtin and then its argument prototype would still apply. */
14031char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014032int
14033main ()
14034{
14035dlopen ();
14036 ;
14037 return 0;
14038}
14039_ACEOF
14040rm -f conftest.$ac_objext conftest$ac_exeext
14041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014042 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014043 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014044 grep -v '^ *+' conftest.er1 >conftest.err
14045 rm -f conftest.er1
14046 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014049 { ac_try='test -z "$ac_c_werror_flag"
14050 || test ! -s conftest.err'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14053 ac_status=$?
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; } &&
14056 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058 (eval $ac_try) 2>&5
14059 ac_status=$?
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; }; then
14062 ac_cv_lib_dl_dlopen=yes
14063else
14064 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014065sed 's/^/| /' conftest.$ac_ext >&5
14066
John Criswell7a73b802003-06-30 21:59:07 +000014067ac_cv_lib_dl_dlopen=no
14068fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014069rm -f conftest.err conftest.$ac_objext \
14070 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014071LIBS=$ac_check_lib_save_LIBS
14072fi
14073echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14074echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14075if test $ac_cv_lib_dl_dlopen = yes; then
14076 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14077else
14078 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14079echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14080if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14081 echo $ECHO_N "(cached) $ECHO_C" >&6
14082else
14083 ac_check_lib_save_LIBS=$LIBS
14084LIBS="-lsvld $LIBS"
14085cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014086/* confdefs.h. */
14087_ACEOF
14088cat confdefs.h >>conftest.$ac_ext
14089cat >>conftest.$ac_ext <<_ACEOF
14090/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014091
14092/* Override any gcc2 internal prototype to avoid an error. */
14093#ifdef __cplusplus
14094extern "C"
14095#endif
14096/* We use char because int might match the return type of a gcc2
14097 builtin and then its argument prototype would still apply. */
14098char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014099int
14100main ()
14101{
14102dlopen ();
14103 ;
14104 return 0;
14105}
14106_ACEOF
14107rm -f conftest.$ac_objext conftest$ac_exeext
14108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014109 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014110 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014111 grep -v '^ *+' conftest.er1 >conftest.err
14112 rm -f conftest.er1
14113 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014116 { ac_try='test -z "$ac_c_werror_flag"
14117 || test ! -s conftest.err'
14118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14120 ac_status=$?
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; } &&
14123 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125 (eval $ac_try) 2>&5
14126 ac_status=$?
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); }; }; then
14129 ac_cv_lib_svld_dlopen=yes
14130else
14131 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014132sed 's/^/| /' conftest.$ac_ext >&5
14133
John Criswell7a73b802003-06-30 21:59:07 +000014134ac_cv_lib_svld_dlopen=no
14135fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014136rm -f conftest.err conftest.$ac_objext \
14137 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014138LIBS=$ac_check_lib_save_LIBS
14139fi
14140echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14141echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14142if test $ac_cv_lib_svld_dlopen = yes; then
14143 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14144else
14145 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14146echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14147if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14148 echo $ECHO_N "(cached) $ECHO_C" >&6
14149else
14150 ac_check_lib_save_LIBS=$LIBS
14151LIBS="-ldld $LIBS"
14152cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014153/* confdefs.h. */
14154_ACEOF
14155cat confdefs.h >>conftest.$ac_ext
14156cat >>conftest.$ac_ext <<_ACEOF
14157/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014158
14159/* Override any gcc2 internal prototype to avoid an error. */
14160#ifdef __cplusplus
14161extern "C"
14162#endif
14163/* We use char because int might match the return type of a gcc2
14164 builtin and then its argument prototype would still apply. */
14165char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014166int
14167main ()
14168{
14169dld_link ();
14170 ;
14171 return 0;
14172}
14173_ACEOF
14174rm -f conftest.$ac_objext conftest$ac_exeext
14175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014176 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014177 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014178 grep -v '^ *+' conftest.er1 >conftest.err
14179 rm -f conftest.er1
14180 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014183 { ac_try='test -z "$ac_c_werror_flag"
14184 || test ! -s conftest.err'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14187 ac_status=$?
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; } &&
14190 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192 (eval $ac_try) 2>&5
14193 ac_status=$?
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; }; then
14196 ac_cv_lib_dld_dld_link=yes
14197else
14198 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014199sed 's/^/| /' conftest.$ac_ext >&5
14200
John Criswell7a73b802003-06-30 21:59:07 +000014201ac_cv_lib_dld_dld_link=no
14202fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014203rm -f conftest.err conftest.$ac_objext \
14204 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014205LIBS=$ac_check_lib_save_LIBS
14206fi
14207echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14208echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14209if test $ac_cv_lib_dld_dld_link = yes; then
14210 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14211fi
14212
14213
14214fi
14215
14216
14217fi
14218
14219
14220fi
14221
14222
14223fi
14224
14225
14226fi
14227
14228 ;;
14229 esac
14230
14231 if test "x$lt_cv_dlopen" != xno; then
14232 enable_dlopen=yes
14233 else
14234 enable_dlopen=no
14235 fi
14236
14237 case $lt_cv_dlopen in
14238 dlopen)
14239 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014240 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014241
14242 save_LDFLAGS="$LDFLAGS"
14243 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14244
14245 save_LIBS="$LIBS"
14246 LIBS="$lt_cv_dlopen_libs $LIBS"
14247
14248 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14249echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14250if test "${lt_cv_dlopen_self+set}" = set; then
14251 echo $ECHO_N "(cached) $ECHO_C" >&6
14252else
14253 if test "$cross_compiling" = yes; then :
14254 lt_cv_dlopen_self=cross
14255else
John Criswell47fdd832003-07-14 16:52:07 +000014256 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014257 lt_status=$lt_dlunknown
14258 cat > conftest.$ac_ext <<EOF
Duraid Madina775afa52005-05-16 16:33:34 +000014259#line 14259 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014260#include "confdefs.h"
14261
14262#if HAVE_DLFCN_H
14263#include <dlfcn.h>
14264#endif
14265
14266#include <stdio.h>
14267
14268#ifdef RTLD_GLOBAL
14269# define LT_DLGLOBAL RTLD_GLOBAL
14270#else
14271# ifdef DL_GLOBAL
14272# define LT_DLGLOBAL DL_GLOBAL
14273# else
14274# define LT_DLGLOBAL 0
14275# endif
14276#endif
14277
14278/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14279 find out it does not work in some platform. */
14280#ifndef LT_DLLAZY_OR_NOW
14281# ifdef RTLD_LAZY
14282# define LT_DLLAZY_OR_NOW RTLD_LAZY
14283# else
14284# ifdef DL_LAZY
14285# define LT_DLLAZY_OR_NOW DL_LAZY
14286# else
14287# ifdef RTLD_NOW
14288# define LT_DLLAZY_OR_NOW RTLD_NOW
14289# else
14290# ifdef DL_NOW
14291# define LT_DLLAZY_OR_NOW DL_NOW
14292# else
14293# define LT_DLLAZY_OR_NOW 0
14294# endif
14295# endif
14296# endif
14297# endif
14298#endif
14299
14300#ifdef __cplusplus
14301extern "C" void exit (int);
14302#endif
14303
14304void fnord() { int i=42;}
14305int main ()
14306{
14307 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14308 int status = $lt_dlunknown;
14309
14310 if (self)
14311 {
14312 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14313 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14314 /* dlclose (self); */
14315 }
14316
14317 exit (status);
14318}
14319EOF
14320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14321 (eval $ac_link) 2>&5
14322 ac_status=$?
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14325 (./conftest; exit; ) 2>/dev/null
14326 lt_status=$?
14327 case x$lt_status in
14328 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14329 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14330 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14331 esac
14332 else :
14333 # compilation failed
14334 lt_cv_dlopen_self=no
14335 fi
14336fi
14337rm -fr conftest*
14338
14339
14340fi
14341echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14342echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14343
14344 if test "x$lt_cv_dlopen_self" = xyes; then
14345 LDFLAGS="$LDFLAGS $link_static_flag"
14346 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14347echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14348if test "${lt_cv_dlopen_self_static+set}" = set; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14350else
14351 if test "$cross_compiling" = yes; then :
14352 lt_cv_dlopen_self_static=cross
14353else
John Criswell47fdd832003-07-14 16:52:07 +000014354 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014355 lt_status=$lt_dlunknown
14356 cat > conftest.$ac_ext <<EOF
Duraid Madina775afa52005-05-16 16:33:34 +000014357#line 14357 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014358#include "confdefs.h"
14359
14360#if HAVE_DLFCN_H
14361#include <dlfcn.h>
14362#endif
14363
14364#include <stdio.h>
14365
14366#ifdef RTLD_GLOBAL
14367# define LT_DLGLOBAL RTLD_GLOBAL
14368#else
14369# ifdef DL_GLOBAL
14370# define LT_DLGLOBAL DL_GLOBAL
14371# else
14372# define LT_DLGLOBAL 0
14373# endif
14374#endif
14375
14376/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14377 find out it does not work in some platform. */
14378#ifndef LT_DLLAZY_OR_NOW
14379# ifdef RTLD_LAZY
14380# define LT_DLLAZY_OR_NOW RTLD_LAZY
14381# else
14382# ifdef DL_LAZY
14383# define LT_DLLAZY_OR_NOW DL_LAZY
14384# else
14385# ifdef RTLD_NOW
14386# define LT_DLLAZY_OR_NOW RTLD_NOW
14387# else
14388# ifdef DL_NOW
14389# define LT_DLLAZY_OR_NOW DL_NOW
14390# else
14391# define LT_DLLAZY_OR_NOW 0
14392# endif
14393# endif
14394# endif
14395# endif
14396#endif
14397
14398#ifdef __cplusplus
14399extern "C" void exit (int);
14400#endif
14401
14402void fnord() { int i=42;}
14403int main ()
14404{
14405 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14406 int status = $lt_dlunknown;
14407
14408 if (self)
14409 {
14410 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14411 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14412 /* dlclose (self); */
14413 }
14414
14415 exit (status);
14416}
14417EOF
14418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14419 (eval $ac_link) 2>&5
14420 ac_status=$?
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14423 (./conftest; exit; ) 2>/dev/null
14424 lt_status=$?
14425 case x$lt_status in
14426 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14427 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14428 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14429 esac
14430 else :
14431 # compilation failed
14432 lt_cv_dlopen_self_static=no
14433 fi
14434fi
14435rm -fr conftest*
14436
14437
14438fi
14439echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14440echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14441 fi
14442
14443 CPPFLAGS="$save_CPPFLAGS"
14444 LDFLAGS="$save_LDFLAGS"
14445 LIBS="$save_LIBS"
14446 ;;
14447 esac
14448
14449 case $lt_cv_dlopen_self in
14450 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14451 *) enable_dlopen_self=unknown ;;
14452 esac
14453
14454 case $lt_cv_dlopen_self_static in
14455 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14456 *) enable_dlopen_self_static=unknown ;;
14457 esac
14458fi
14459
14460
John Criswell47fdd832003-07-14 16:52:07 +000014461# Report which librarie types wil actually be built
14462echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14463echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14464echo "$as_me:$LINENO: result: $can_build_shared" >&5
14465echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014466
John Criswell47fdd832003-07-14 16:52:07 +000014467echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14468echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14469test "$can_build_shared" = "no" && enable_shared=no
14470
14471# On AIX, shared libraries and static libraries use the same namespace, and
14472# are all built from PIC.
14473case "$host_os" in
14474aix3*)
14475 test "$enable_shared" = yes && enable_static=no
14476 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014477 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014478 postinstall_cmds='$RANLIB $lib'
14479 fi
14480 ;;
14481
Reid Spencer2706f8c2004-09-19 23:53:36 +000014482aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014483 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14484 test "$enable_shared" = yes && enable_static=no
14485 fi
John Criswell7a73b802003-06-30 21:59:07 +000014486 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014487esac
14488echo "$as_me:$LINENO: result: $enable_shared" >&5
14489echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014490
John Criswell47fdd832003-07-14 16:52:07 +000014491echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14492echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14493# Make sure either enable_shared or enable_static is yes.
14494test "$enable_shared" = yes || enable_static=yes
14495echo "$as_me:$LINENO: result: $enable_static" >&5
14496echo "${ECHO_T}$enable_static" >&6
14497
14498# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014499# libtool distribution, otherwise you forgot to ship ltmain.sh
14500# with your package, and you will get complaints that there are
14501# no rules to generate ltmain.sh.
14502if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014503 # See if we are running on zsh, and set the options which allow our commands through
14504 # without removal of \ escapes.
14505 if test -n "${ZSH_VERSION+set}" ; then
14506 setopt NO_GLOB_SUBST
14507 fi
John Criswell7a73b802003-06-30 21:59:07 +000014508 # Now quote all the things that may contain metacharacters while being
14509 # careful not to overquote the AC_SUBSTed values. We take copies of the
14510 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014511 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14512 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014513 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14514 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14515 deplibs_check_method reload_flag reload_cmds need_locks \
14516 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14517 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014518 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014519 old_postinstall_cmds old_postuninstall_cmds \
14520 compiler \
14521 CC \
14522 LD \
14523 lt_prog_compiler_wl \
14524 lt_prog_compiler_pic \
14525 lt_prog_compiler_static \
14526 lt_prog_compiler_no_builtin_flag \
14527 export_dynamic_flag_spec \
14528 thread_safe_flag_spec \
14529 whole_archive_flag_spec \
14530 enable_shared_with_static_runtimes \
14531 old_archive_cmds \
14532 old_archive_from_new_cmds \
14533 predep_objects \
14534 postdep_objects \
14535 predeps \
14536 postdeps \
14537 compiler_lib_search_path \
14538 archive_cmds \
14539 archive_expsym_cmds \
14540 postinstall_cmds \
14541 postuninstall_cmds \
14542 old_archive_from_expsyms_cmds \
14543 allow_undefined_flag \
14544 no_undefined_flag \
14545 export_symbols_cmds \
14546 hardcode_libdir_flag_spec \
14547 hardcode_libdir_flag_spec_ld \
14548 hardcode_libdir_separator \
14549 hardcode_automatic \
14550 module_cmds \
14551 module_expsym_cmds \
14552 lt_cv_prog_compiler_c_o \
14553 exclude_expsyms \
14554 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014555
14556 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014557 old_archive_cmds | \
14558 old_archive_from_new_cmds | \
14559 archive_cmds | \
14560 archive_expsym_cmds | \
14561 module_cmds | \
14562 module_expsym_cmds | \
14563 old_archive_from_expsyms_cmds | \
14564 export_symbols_cmds | \
14565 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014566 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014567 old_postinstall_cmds | old_postuninstall_cmds | \
14568 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014569 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014570 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 +000014571 ;;
14572 *)
14573 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14574 ;;
14575 esac
14576 done
14577
John Criswell47fdd832003-07-14 16:52:07 +000014578 case $lt_echo in
14579 *'\$0 --fallback-echo"')
14580 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14581 ;;
14582 esac
14583
14584cfgfile="${ofile}T"
14585 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14586 $rm -f "$cfgfile"
14587 { echo "$as_me:$LINENO: creating $ofile" >&5
14588echo "$as_me: creating $ofile" >&6;}
14589
14590 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014591#! $SHELL
14592
John Criswell47fdd832003-07-14 16:52:07 +000014593# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014594# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14595# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14596#
John Criswell47fdd832003-07-14 16:52:07 +000014597# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14598# Free Software Foundation, Inc.
14599#
14600# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014601# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14602#
14603# This program is free software; you can redistribute it and/or modify
14604# it under the terms of the GNU General Public License as published by
14605# the Free Software Foundation; either version 2 of the License, or
14606# (at your option) any later version.
14607#
14608# This program is distributed in the hope that it will be useful, but
14609# WITHOUT ANY WARRANTY; without even the implied warranty of
14610# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14611# General Public License for more details.
14612#
14613# You should have received a copy of the GNU General Public License
14614# along with this program; if not, write to the Free Software
14615# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14616#
14617# As a special exception to the GNU General Public License, if you
14618# distribute this file as part of a program that contains a
14619# configuration script generated by Autoconf, you may include it under
14620# the same distribution terms that you use for the rest of that program.
14621
John Criswell47fdd832003-07-14 16:52:07 +000014622# A sed program that does not truncate output.
14623SED=$lt_SED
14624
John Criswell7a73b802003-06-30 21:59:07 +000014625# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014626Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014627
14628# The HP-UX ksh and POSIX shell print the target directory to stdout
14629# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014630(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014631
John Criswell47fdd832003-07-14 16:52:07 +000014632# The names of the tagged configurations supported by this script.
14633available_tags=
14634
John Criswell7a73b802003-06-30 21:59:07 +000014635# ### BEGIN LIBTOOL CONFIG
14636
14637# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14638
14639# Shell to use when invoking shell scripts.
14640SHELL=$lt_SHELL
14641
14642# Whether or not to build shared libraries.
14643build_libtool_libs=$enable_shared
14644
14645# Whether or not to build static libraries.
14646build_old_libs=$enable_static
14647
14648# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014649build_libtool_need_lc=$archive_cmds_need_lc
14650
14651# Whether or not to disallow shared libs when runtime libs are static
14652allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014653
14654# Whether or not to optimize for fast installation.
14655fast_install=$enable_fast_install
14656
14657# The host system.
14658host_alias=$host_alias
14659host=$host
14660
14661# An echo program that does not interpret backslashes.
14662echo=$lt_echo
14663
14664# The archiver.
14665AR=$lt_AR
14666AR_FLAGS=$lt_AR_FLAGS
14667
John Criswell47fdd832003-07-14 16:52:07 +000014668# A C compiler.
14669LTCC=$lt_LTCC
14670
14671# A language-specific compiler.
14672CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014673
14674# Is the compiler the GNU C compiler?
14675with_gcc=$GCC
14676
John Criswell47fdd832003-07-14 16:52:07 +000014677# An ERE matcher.
14678EGREP=$lt_EGREP
14679
John Criswell7a73b802003-06-30 21:59:07 +000014680# The linker used to build libraries.
14681LD=$lt_LD
14682
14683# Whether we need hard or soft links.
14684LN_S=$lt_LN_S
14685
14686# A BSD-compatible nm program.
14687NM=$lt_NM
14688
14689# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014690STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014691
14692# Used to examine libraries when file_magic_cmd begins "file"
14693MAGIC_CMD=$MAGIC_CMD
14694
14695# Used on cygwin: DLL creation program.
14696DLLTOOL="$DLLTOOL"
14697
14698# Used on cygwin: object dumper.
14699OBJDUMP="$OBJDUMP"
14700
14701# Used on cygwin: assembler.
14702AS="$AS"
14703
14704# The name of the directory that contains temporary libtool files.
14705objdir=$objdir
14706
14707# How to create reloadable object files.
14708reload_flag=$lt_reload_flag
14709reload_cmds=$lt_reload_cmds
14710
14711# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014712wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014713
14714# Object file suffix (normally "o").
14715objext="$ac_objext"
14716
14717# Old archive suffix (normally "a").
14718libext="$libext"
14719
John Criswell47fdd832003-07-14 16:52:07 +000014720# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014721shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014722
John Criswell7a73b802003-06-30 21:59:07 +000014723# Executable file suffix (normally "").
14724exeext="$exeext"
14725
14726# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014727pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014728pic_mode=$pic_mode
14729
John Criswell47fdd832003-07-14 16:52:07 +000014730# What is the maximum length of a command?
14731max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014732
John Criswell47fdd832003-07-14 16:52:07 +000014733# Does compiler simultaneously support -c and -o options?
14734compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014735
14736# Must we lock files when doing compilation ?
14737need_locks=$lt_need_locks
14738
14739# Do we need the lib prefix for modules?
14740need_lib_prefix=$need_lib_prefix
14741
14742# Do we need a version for libraries?
14743need_version=$need_version
14744
14745# Whether dlopen is supported.
14746dlopen_support=$enable_dlopen
14747
14748# Whether dlopen of programs is supported.
14749dlopen_self=$enable_dlopen_self
14750
14751# Whether dlopen of statically linked programs is supported.
14752dlopen_self_static=$enable_dlopen_self_static
14753
14754# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014755link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014756
14757# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014758no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014759
14760# Compiler flag to allow reflexive dlopens.
14761export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14762
14763# Compiler flag to generate shared objects directly from archives.
14764whole_archive_flag_spec=$lt_whole_archive_flag_spec
14765
14766# Compiler flag to generate thread-safe objects.
14767thread_safe_flag_spec=$lt_thread_safe_flag_spec
14768
14769# Library versioning type.
14770version_type=$version_type
14771
14772# Format of library name prefix.
14773libname_spec=$lt_libname_spec
14774
14775# List of archive names. First name is the real one, the rest are links.
14776# The last name is the one that the linker finds with -lNAME.
14777library_names_spec=$lt_library_names_spec
14778
14779# The coded name of the library, if different from the real name.
14780soname_spec=$lt_soname_spec
14781
14782# Commands used to build and install an old-style archive.
14783RANLIB=$lt_RANLIB
14784old_archive_cmds=$lt_old_archive_cmds
14785old_postinstall_cmds=$lt_old_postinstall_cmds
14786old_postuninstall_cmds=$lt_old_postuninstall_cmds
14787
14788# Create an old-style archive from a shared archive.
14789old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14790
14791# Create a temporary old-style archive to link instead of a shared archive.
14792old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14793
14794# Commands used to build and install a shared archive.
14795archive_cmds=$lt_archive_cmds
14796archive_expsym_cmds=$lt_archive_expsym_cmds
14797postinstall_cmds=$lt_postinstall_cmds
14798postuninstall_cmds=$lt_postuninstall_cmds
14799
John Criswell47fdd832003-07-14 16:52:07 +000014800# Commands used to build a loadable module (assumed same as above if empty)
14801module_cmds=$lt_module_cmds
14802module_expsym_cmds=$lt_module_expsym_cmds
14803
John Criswell7a73b802003-06-30 21:59:07 +000014804# Commands to strip libraries.
14805old_striplib=$lt_old_striplib
14806striplib=$lt_striplib
14807
John Criswell47fdd832003-07-14 16:52:07 +000014808# Dependencies to place before the objects being linked to create a
14809# shared library.
14810predep_objects=$lt_predep_objects
14811
14812# Dependencies to place after the objects being linked to create a
14813# shared library.
14814postdep_objects=$lt_postdep_objects
14815
14816# Dependencies to place before the objects being linked to create a
14817# shared library.
14818predeps=$lt_predeps
14819
14820# Dependencies to place after the objects being linked to create a
14821# shared library.
14822postdeps=$lt_postdeps
14823
14824# The library search path used internally by the compiler when linking
14825# a shared library.
14826compiler_lib_search_path=$lt_compiler_lib_search_path
14827
John Criswell7a73b802003-06-30 21:59:07 +000014828# Method to check whether dependent libraries are shared objects.
14829deplibs_check_method=$lt_deplibs_check_method
14830
14831# Command to use when deplibs_check_method == file_magic.
14832file_magic_cmd=$lt_file_magic_cmd
14833
14834# Flag that allows shared libraries with undefined symbols to be built.
14835allow_undefined_flag=$lt_allow_undefined_flag
14836
14837# Flag that forces no undefined symbols.
14838no_undefined_flag=$lt_no_undefined_flag
14839
14840# Commands used to finish a libtool library installation in a directory.
14841finish_cmds=$lt_finish_cmds
14842
14843# Same as above, but a single script fragment to be evaled but not shown.
14844finish_eval=$lt_finish_eval
14845
14846# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000014847global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000014848
14849# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000014850global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000014851
14852# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000014853global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000014854
14855# This is the shared library runtime path variable.
14856runpath_var=$runpath_var
14857
14858# This is the shared library path variable.
14859shlibpath_var=$shlibpath_var
14860
14861# Is shlibpath searched before the hard-coded library search path?
14862shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14863
14864# How to hardcode a shared library path into an executable.
14865hardcode_action=$hardcode_action
14866
14867# Whether we should hardcode library paths into libraries.
14868hardcode_into_libs=$hardcode_into_libs
14869
14870# Flag to hardcode \$libdir into a binary during linking.
14871# This must work even if \$libdir does not exist.
14872hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14873
John Criswell47fdd832003-07-14 16:52:07 +000014874# If ld is used when linking, flag to hardcode \$libdir into
14875# a binary during linking. This must work even if \$libdir does
14876# not exist.
14877hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14878
John Criswell7a73b802003-06-30 21:59:07 +000014879# Whether we need a single -rpath flag with a separated argument.
14880hardcode_libdir_separator=$lt_hardcode_libdir_separator
14881
John Criswell47fdd832003-07-14 16:52:07 +000014882# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000014883# resulting binary.
14884hardcode_direct=$hardcode_direct
14885
14886# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14887# resulting binary.
14888hardcode_minus_L=$hardcode_minus_L
14889
14890# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14891# the resulting binary.
14892hardcode_shlibpath_var=$hardcode_shlibpath_var
14893
John Criswell47fdd832003-07-14 16:52:07 +000014894# Set to yes if building a shared library automatically hardcodes DIR into the library
14895# and all subsequent libraries and executables linked against it.
14896hardcode_automatic=$hardcode_automatic
14897
John Criswell7a73b802003-06-30 21:59:07 +000014898# Variables whose values should be saved in libtool wrapper scripts and
14899# restored at relink time.
14900variables_saved_for_relink="$variables_saved_for_relink"
14901
14902# Whether libtool must link a program against all its dependency libraries.
14903link_all_deplibs=$link_all_deplibs
14904
14905# Compile-time system search path for libraries
14906sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14907
14908# Run-time system search path for libraries
14909sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14910
14911# Fix the shell variable \$srcfile for the compiler.
14912fix_srcfile_path="$fix_srcfile_path"
14913
14914# Set to yes if exported symbols are required.
14915always_export_symbols=$always_export_symbols
14916
14917# The commands to list exported symbols.
14918export_symbols_cmds=$lt_export_symbols_cmds
14919
14920# The commands to extract the exported symbol list from a shared archive.
14921extract_expsyms_cmds=$lt_extract_expsyms_cmds
14922
14923# Symbols that should not be listed in the preloaded symbols.
14924exclude_expsyms=$lt_exclude_expsyms
14925
14926# Symbols that must always be exported.
14927include_expsyms=$lt_include_expsyms
14928
14929# ### END LIBTOOL CONFIG
14930
14931__EOF__
14932
John Criswell47fdd832003-07-14 16:52:07 +000014933
John Criswell7a73b802003-06-30 21:59:07 +000014934 case $host_os in
14935 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000014936 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014937
14938# AIX sometimes has problems with the GCC collect2 program. For some
14939# reason, if we set the COLLECT_NAMES environment variable, the problems
14940# vanish in a puff of smoke.
14941if test "X${COLLECT_NAMES+set}" != Xset; then
14942 COLLECT_NAMES=
14943 export COLLECT_NAMES
14944fi
14945EOF
14946 ;;
14947 esac
14948
John Criswell7a73b802003-06-30 21:59:07 +000014949 # We use sed instead of cat because bash on DJGPP gets confused if
14950 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14951 # text mode, it properly converts lines to CR/LF. This bash problem
14952 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000014953 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000014954
John Criswell47fdd832003-07-14 16:52:07 +000014955 mv -f "$cfgfile" "$ofile" || \
14956 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000014957 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000014958
14959else
14960 # If there is no Makefile yet, we rely on a make rule to execute
14961 # `config.status --recheck' to rerun these tests and create the
14962 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014963 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14964 if test -f "$ltmain_in"; then
14965 test -f Makefile && make "$ltmain"
14966 fi
John Criswell7a73b802003-06-30 21:59:07 +000014967fi
John Criswell7a73b802003-06-30 21:59:07 +000014968
14969
John Criswell47fdd832003-07-14 16:52:07 +000014970ac_ext=c
14971ac_cpp='$CPP $CPPFLAGS'
14972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14974ac_compiler_gnu=$ac_cv_c_compiler_gnu
14975
14976CC="$lt_save_CC"
14977
14978
14979# Check whether --with-tags or --without-tags was given.
14980if test "${with_tags+set}" = set; then
14981 withval="$with_tags"
14982 tagnames="$withval"
14983fi;
14984
14985if test -f "$ltmain" && test -n "$tagnames"; then
14986 if test ! -f "${ofile}"; then
14987 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14988echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14989 fi
14990
14991 if test -z "$LTCC"; then
14992 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14993 if test -z "$LTCC"; then
14994 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14995echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14996 else
14997 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14998echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14999 fi
15000 fi
15001
15002 # Extract list of available tagged configurations in $ofile.
15003 # Note that this assumes the entire list is on one line.
15004 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15005
15006 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15007 for tagname in $tagnames; do
15008 IFS="$lt_save_ifs"
15009 # Check whether tagname contains only valid characters
15010 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15011 "") ;;
15012 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15013echo "$as_me: error: invalid tag name: $tagname" >&2;}
15014 { (exit 1); exit 1; }; }
15015 ;;
15016 esac
15017
15018 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15019 then
15020 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15021echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15022 { (exit 1); exit 1; }; }
15023 fi
15024
15025 # Update the list of available tags.
15026 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015027 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000015028
15029 case $tagname in
15030 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015031 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15032 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15033 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000015034 ac_ext=cc
15035ac_cpp='$CXXCPP $CPPFLAGS'
15036ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15037ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15038ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15039
15040
15041
15042
15043archive_cmds_need_lc_CXX=no
15044allow_undefined_flag_CXX=
15045always_export_symbols_CXX=no
15046archive_expsym_cmds_CXX=
15047export_dynamic_flag_spec_CXX=
15048hardcode_direct_CXX=no
15049hardcode_libdir_flag_spec_CXX=
15050hardcode_libdir_flag_spec_ld_CXX=
15051hardcode_libdir_separator_CXX=
15052hardcode_minus_L_CXX=no
15053hardcode_automatic_CXX=no
15054module_cmds_CXX=
15055module_expsym_cmds_CXX=
15056link_all_deplibs_CXX=unknown
15057old_archive_cmds_CXX=$old_archive_cmds
15058no_undefined_flag_CXX=
15059whole_archive_flag_spec_CXX=
15060enable_shared_with_static_runtimes_CXX=no
15061
15062# Dependencies to place before and after the object being linked:
15063predep_objects_CXX=
15064postdep_objects_CXX=
15065predeps_CXX=
15066postdeps_CXX=
15067compiler_lib_search_path_CXX=
15068
15069# Source file extension for C++ test sources.
15070ac_ext=cc
15071
15072# Object file extension for compiled C++ test sources.
15073objext=o
15074objext_CXX=$objext
15075
15076# Code to be used in simple compile tests
15077lt_simple_compile_test_code="int some_variable = 0;\n"
15078
15079# Code to be used in simple link tests
15080lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15081
15082# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15083
15084# If no C compiler was specified, use CC.
15085LTCC=${LTCC-"$CC"}
15086
15087# Allow CC to be a program name with arguments.
15088compiler=$CC
15089
15090
15091# Allow CC to be a program name with arguments.
15092lt_save_CC=$CC
15093lt_save_LD=$LD
15094lt_save_GCC=$GCC
15095GCC=$GXX
15096lt_save_with_gnu_ld=$with_gnu_ld
15097lt_save_path_LD=$lt_cv_path_LD
15098if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15099 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15100else
15101 unset lt_cv_prog_gnu_ld
15102fi
15103if test -n "${lt_cv_path_LDCXX+set}"; then
15104 lt_cv_path_LD=$lt_cv_path_LDCXX
15105else
15106 unset lt_cv_path_LD
15107fi
15108test -z "${LDCXX+set}" || LD=$LDCXX
15109CC=${CXX-"c++"}
15110compiler=$CC
15111compiler_CXX=$CC
15112cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15113
15114# We don't want -fno-exception wen compiling C++ code, so set the
15115# no_builtin_flag separately
15116if test "$GXX" = yes; then
15117 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15118else
15119 lt_prog_compiler_no_builtin_flag_CXX=
15120fi
15121
15122if test "$GXX" = yes; then
15123 # Set up default GNU C++ configuration
15124
15125
15126# Check whether --with-gnu-ld or --without-gnu-ld was given.
15127if test "${with_gnu_ld+set}" = set; then
15128 withval="$with_gnu_ld"
15129 test "$withval" = no || with_gnu_ld=yes
15130else
15131 with_gnu_ld=no
15132fi;
15133ac_prog=ld
15134if test "$GCC" = yes; then
15135 # Check if gcc -print-prog-name=ld gives a path.
15136 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15137echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15138 case $host in
15139 *-*-mingw*)
15140 # gcc leaves a trailing carriage return which upsets mingw
15141 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15142 *)
15143 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15144 esac
15145 case $ac_prog in
15146 # Accept absolute paths.
15147 [\\/]* | ?:[\\/]*)
15148 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015149 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015150 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15151 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15152 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15153 done
15154 test -z "$LD" && LD="$ac_prog"
15155 ;;
15156 "")
15157 # If it fails, then pretend we aren't using GCC.
15158 ac_prog=ld
15159 ;;
15160 *)
15161 # If it is relative, then search for the first ld in PATH.
15162 with_gnu_ld=unknown
15163 ;;
15164 esac
15165elif test "$with_gnu_ld" = yes; then
15166 echo "$as_me:$LINENO: checking for GNU ld" >&5
15167echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15168else
15169 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15170echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15171fi
15172if test "${lt_cv_path_LD+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15174else
15175 if test -z "$LD"; then
15176 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15177 for ac_dir in $PATH; do
15178 IFS="$lt_save_ifs"
15179 test -z "$ac_dir" && ac_dir=.
15180 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15181 lt_cv_path_LD="$ac_dir/$ac_prog"
15182 # Check to see if the program is GNU ld. I'd rather use --version,
15183 # but apparently some GNU ld's only accept -v.
15184 # Break only if it was the GNU/non-GNU ld that we prefer.
15185 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15186 *GNU* | *'with BFD'*)
15187 test "$with_gnu_ld" != no && break
15188 ;;
15189 *)
15190 test "$with_gnu_ld" != yes && break
15191 ;;
15192 esac
15193 fi
15194 done
15195 IFS="$lt_save_ifs"
15196else
15197 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15198fi
15199fi
15200
15201LD="$lt_cv_path_LD"
15202if test -n "$LD"; then
15203 echo "$as_me:$LINENO: result: $LD" >&5
15204echo "${ECHO_T}$LD" >&6
15205else
15206 echo "$as_me:$LINENO: result: no" >&5
15207echo "${ECHO_T}no" >&6
15208fi
15209test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15210echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15211 { (exit 1); exit 1; }; }
15212echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15213echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15214if test "${lt_cv_prog_gnu_ld+set}" = set; then
15215 echo $ECHO_N "(cached) $ECHO_C" >&6
15216else
15217 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015218case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015219*GNU* | *'with BFD'*)
15220 lt_cv_prog_gnu_ld=yes
15221 ;;
15222*)
15223 lt_cv_prog_gnu_ld=no
15224 ;;
15225esac
15226fi
15227echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15228echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15229with_gnu_ld=$lt_cv_prog_gnu_ld
15230
15231
15232
15233 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15234 # archiving commands below assume that GNU ld is being used.
15235 if test "$with_gnu_ld" = yes; then
15236 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15237 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'
15238
15239 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15240 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15241
15242 # If archive_cmds runs LD, not CC, wlarc should be empty
15243 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15244 # investigate it a little bit more. (MM)
15245 wlarc='${wl}'
15246
15247 # ancient GNU ld didn't support --whole-archive et. al.
15248 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15249 grep 'no-whole-archive' > /dev/null; then
15250 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15251 else
15252 whole_archive_flag_spec_CXX=
15253 fi
15254 else
15255 with_gnu_ld=no
15256 wlarc=
15257
15258 # A generic and very simple default shared library creation
15259 # command for GNU C++ for the case where it uses the native
15260 # linker, instead of GNU ld. If possible, this setting should
15261 # overridden to take advantage of the native linker features on
15262 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015263 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015264 fi
15265
15266 # Commands to make compiler produce verbose output that lists
15267 # what "hidden" libraries, object files and flags are used when
15268 # linking a shared library.
15269 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15270
15271else
15272 GXX=no
15273 with_gnu_ld=no
15274 wlarc=
15275fi
15276
15277# PORTME: fill in a description of your system's C++ link characteristics
15278echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15279echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15280ld_shlibs_CXX=yes
15281case $host_os in
15282 aix3*)
15283 # FIXME: insert proper C++ library support
15284 ld_shlibs_CXX=no
15285 ;;
15286 aix4* | aix5*)
15287 if test "$host_cpu" = ia64; then
15288 # On IA64, the linker does run time linking by default, so we don't
15289 # have to do anything special.
15290 aix_use_runtimelinking=no
15291 exp_sym_flag='-Bexport'
15292 no_entry_flag=""
15293 else
15294 aix_use_runtimelinking=no
15295
15296 # Test if we are trying to use run time linking or normal
15297 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15298 # need to do runtime linking.
15299 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15300 for ld_flag in $LDFLAGS; do
15301 case $ld_flag in
15302 *-brtl*)
15303 aix_use_runtimelinking=yes
15304 break
15305 ;;
15306 esac
15307 done
15308 esac
15309
15310 exp_sym_flag='-bexport'
15311 no_entry_flag='-bnoentry'
15312 fi
15313
15314 # When large executables or shared objects are built, AIX ld can
15315 # have problems creating the table of contents. If linking a library
15316 # or program results in "error TOC overflow" add -mminimal-toc to
15317 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15318 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15319
15320 archive_cmds_CXX=''
15321 hardcode_direct_CXX=yes
15322 hardcode_libdir_separator_CXX=':'
15323 link_all_deplibs_CXX=yes
15324
15325 if test "$GXX" = yes; then
15326 case $host_os in aix4.012|aix4.012.*)
15327 # We only want to do this on AIX 4.2 and lower, the check
15328 # below for broken collect2 doesn't work under 4.3+
15329 collect2name=`${CC} -print-prog-name=collect2`
15330 if test -f "$collect2name" && \
15331 strings "$collect2name" | grep resolve_lib_name >/dev/null
15332 then
15333 # We have reworked collect2
15334 hardcode_direct_CXX=yes
15335 else
15336 # We have old collect2
15337 hardcode_direct_CXX=unsupported
15338 # It fails to find uninstalled libraries when the uninstalled
15339 # path is not listed in the libpath. Setting hardcode_minus_L
15340 # to unsupported forces relinking
15341 hardcode_minus_L_CXX=yes
15342 hardcode_libdir_flag_spec_CXX='-L$libdir'
15343 hardcode_libdir_separator_CXX=
15344 fi
15345 esac
15346 shared_flag='-shared'
15347 else
15348 # not using gcc
15349 if test "$host_cpu" = ia64; then
15350 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15351 # chokes on -Wl,-G. The following line is correct:
15352 shared_flag='-G'
15353 else
15354 if test "$aix_use_runtimelinking" = yes; then
15355 shared_flag='${wl}-G'
15356 else
15357 shared_flag='${wl}-bM:SRE'
15358 fi
15359 fi
15360 fi
15361
15362 # It seems that -bexpall does not export symbols beginning with
15363 # underscore (_), so it is better to generate a list of symbols to export.
15364 always_export_symbols_CXX=yes
15365 if test "$aix_use_runtimelinking" = yes; then
15366 # Warning - without using the other runtime loading flags (-brtl),
15367 # -berok will link without error, but may produce a broken library.
15368 allow_undefined_flag_CXX='-berok'
15369 # Determine the default libpath from the value encoded in an empty executable.
15370 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015371/* confdefs.h. */
15372_ACEOF
15373cat confdefs.h >>conftest.$ac_ext
15374cat >>conftest.$ac_ext <<_ACEOF
15375/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015376
John Criswell47fdd832003-07-14 16:52:07 +000015377int
15378main ()
15379{
15380
15381 ;
15382 return 0;
15383}
15384_ACEOF
15385rm -f conftest.$ac_objext conftest$ac_exeext
15386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015387 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015388 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015389 grep -v '^ *+' conftest.er1 >conftest.err
15390 rm -f conftest.er1
15391 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015394 { ac_try='test -z "$ac_cxx_werror_flag"
15395 || test ! -s conftest.err'
15396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15397 (eval $ac_try) 2>&5
15398 ac_status=$?
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); }; } &&
15401 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403 (eval $ac_try) 2>&5
15404 ac_status=$?
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; }; then
15407
15408aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15409}'`
15410# Check for a 64-bit object if we didn't find anything.
15411if 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; }
15412}'`; fi
15413else
15414 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015415sed 's/^/| /' conftest.$ac_ext >&5
15416
John Criswell47fdd832003-07-14 16:52:07 +000015417fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015418rm -f conftest.err conftest.$ac_objext \
15419 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015420if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15421
15422 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15423
15424 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"
15425 else
15426 if test "$host_cpu" = ia64; then
15427 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15428 allow_undefined_flag_CXX="-z nodefs"
15429 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"
15430 else
15431 # Determine the default libpath from the value encoded in an empty executable.
15432 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015433/* confdefs.h. */
15434_ACEOF
15435cat confdefs.h >>conftest.$ac_ext
15436cat >>conftest.$ac_ext <<_ACEOF
15437/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015438
John Criswell47fdd832003-07-14 16:52:07 +000015439int
15440main ()
15441{
15442
15443 ;
15444 return 0;
15445}
15446_ACEOF
15447rm -f conftest.$ac_objext conftest$ac_exeext
15448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015449 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015450 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015451 grep -v '^ *+' conftest.er1 >conftest.err
15452 rm -f conftest.er1
15453 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015456 { ac_try='test -z "$ac_cxx_werror_flag"
15457 || test ! -s conftest.err'
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15460 ac_status=$?
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; } &&
15463 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465 (eval $ac_try) 2>&5
15466 ac_status=$?
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); }; }; then
15469
15470aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15471}'`
15472# Check for a 64-bit object if we didn't find anything.
15473if 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; }
15474}'`; fi
15475else
15476 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015477sed 's/^/| /' conftest.$ac_ext >&5
15478
John Criswell47fdd832003-07-14 16:52:07 +000015479fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015480rm -f conftest.err conftest.$ac_objext \
15481 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015482if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15483
15484 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15485 # Warning - without using the other run time loading flags,
15486 # -berok will link without error, but may produce a broken library.
15487 no_undefined_flag_CXX=' ${wl}-bernotok'
15488 allow_undefined_flag_CXX=' ${wl}-berok'
15489 # -bexpall does not export symbols beginning with underscore (_)
15490 always_export_symbols_CXX=yes
15491 # Exported symbols can be pulled into shared objects from archives
15492 whole_archive_flag_spec_CXX=' '
15493 archive_cmds_need_lc_CXX=yes
15494 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015495 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 +000015496 fi
15497 fi
15498 ;;
15499 chorus*)
15500 case $cc_basename in
15501 *)
15502 # FIXME: insert proper C++ library support
15503 ld_shlibs_CXX=no
15504 ;;
15505 esac
15506 ;;
15507
Reid Spencer2706f8c2004-09-19 23:53:36 +000015508
John Criswell47fdd832003-07-14 16:52:07 +000015509 cygwin* | mingw* | pw32*)
15510 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15511 # as there is no search path for DLLs.
15512 hardcode_libdir_flag_spec_CXX='-L$libdir'
15513 allow_undefined_flag_CXX=unsupported
15514 always_export_symbols_CXX=no
15515 enable_shared_with_static_runtimes_CXX=yes
15516
15517 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15518 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'
15519 # If the export-symbols file already is a .def file (1st line
15520 # is EXPORTS), use it as is; otherwise, prepend...
15521 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15522 cp $export_symbols $output_objdir/$soname.def;
15523 else
15524 echo EXPORTS > $output_objdir/$soname.def;
15525 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015526 fi~
15527 $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 +000015528 else
15529 ld_shlibs_CXX=no
15530 fi
15531 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015532 darwin* | rhapsody*)
15533 case "$host_os" in
15534 rhapsody* | darwin1.[012])
15535 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15536 ;;
15537 *) # Darwin 1.3 on
15538 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15539 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15540 else
15541 case ${MACOSX_DEPLOYMENT_TARGET} in
15542 10.[012])
15543 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15544 ;;
15545 10.*)
15546 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15547 ;;
15548 esac
15549 fi
15550 ;;
15551 esac
15552 archive_cmds_need_lc_CXX=no
15553 hardcode_direct_CXX=no
15554 hardcode_automatic_CXX=yes
15555 hardcode_shlibpath_var_CXX=unsupported
15556 whole_archive_flag_spec_CXX=''
15557 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015558
Reid Spencer2706f8c2004-09-19 23:53:36 +000015559 if test "$GXX" = yes ; then
15560 lt_int_apple_cc_single_mod=no
15561 output_verbose_link_cmd='echo'
15562 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15563 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015564 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015565 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015566 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 +000015567 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015568 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 +000015569 fi
15570 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15571 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15572 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015573 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 +000015574 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015575 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 +000015576 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015577 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 +000015578 else
15579 case "$cc_basename" in
15580 xlc*)
15581 output_verbose_link_cmd='echo'
15582 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'
15583 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15584 # 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 +000015585 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}'
15586 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 +000015587 ;;
15588 *)
15589 ld_shlibs_CXX=no
15590 ;;
15591 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015592 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015593 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015594
15595 dgux*)
15596 case $cc_basename in
15597 ec++)
15598 # FIXME: insert proper C++ library support
15599 ld_shlibs_CXX=no
15600 ;;
15601 ghcx)
15602 # Green Hills C++ Compiler
15603 # FIXME: insert proper C++ library support
15604 ld_shlibs_CXX=no
15605 ;;
15606 *)
15607 # FIXME: insert proper C++ library support
15608 ld_shlibs_CXX=no
15609 ;;
15610 esac
15611 ;;
15612 freebsd12*)
15613 # C++ shared libraries reported to be fairly broken before switch to ELF
15614 ld_shlibs_CXX=no
15615 ;;
15616 freebsd-elf*)
15617 archive_cmds_need_lc_CXX=no
15618 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015619 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015620 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15621 # conventions
15622 ld_shlibs_CXX=yes
15623 ;;
15624 gnu*)
15625 ;;
15626 hpux9*)
15627 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15628 hardcode_libdir_separator_CXX=:
15629 export_dynamic_flag_spec_CXX='${wl}-E'
15630 hardcode_direct_CXX=yes
15631 hardcode_minus_L_CXX=yes # Not in the search PATH,
15632 # but as the default
15633 # location of the library.
15634
15635 case $cc_basename in
15636 CC)
15637 # FIXME: insert proper C++ library support
15638 ld_shlibs_CXX=no
15639 ;;
15640 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015641 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 +000015642 # Commands to make compiler produce verbose output that lists
15643 # what "hidden" libraries, object files and flags are used when
15644 # linking a shared library.
15645 #
15646 # There doesn't appear to be a way to prevent this compiler from
15647 # explicitly linking system object files so we need to strip them
15648 # from the output so that they don't get included in the library
15649 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015650 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 +000015651 ;;
15652 *)
15653 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015654 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 +000015655 else
15656 # FIXME: insert proper C++ library support
15657 ld_shlibs_CXX=no
15658 fi
15659 ;;
15660 esac
15661 ;;
15662 hpux10*|hpux11*)
15663 if test $with_gnu_ld = no; then
15664 case "$host_cpu" in
15665 hppa*64*)
15666 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15667 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15668 hardcode_libdir_separator_CXX=:
15669 ;;
15670 ia64*)
15671 hardcode_libdir_flag_spec_CXX='-L$libdir'
15672 ;;
15673 *)
15674 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15675 hardcode_libdir_separator_CXX=:
15676 export_dynamic_flag_spec_CXX='${wl}-E'
15677 ;;
15678 esac
15679 fi
15680 case "$host_cpu" in
15681 hppa*64*)
15682 hardcode_direct_CXX=no
15683 hardcode_shlibpath_var_CXX=no
15684 ;;
15685 ia64*)
15686 hardcode_direct_CXX=no
15687 hardcode_shlibpath_var_CXX=no
15688 hardcode_minus_L_CXX=yes # Not in the search PATH,
15689 # but as the default
15690 # location of the library.
15691 ;;
15692 *)
15693 hardcode_direct_CXX=yes
15694 hardcode_minus_L_CXX=yes # Not in the search PATH,
15695 # but as the default
15696 # location of the library.
15697 ;;
15698 esac
15699
15700 case $cc_basename in
15701 CC)
15702 # FIXME: insert proper C++ library support
15703 ld_shlibs_CXX=no
15704 ;;
15705 aCC)
15706 case "$host_cpu" in
15707 hppa*64*|ia64*)
15708 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15709 ;;
15710 *)
15711 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15712 ;;
15713 esac
15714 # Commands to make compiler produce verbose output that lists
15715 # what "hidden" libraries, object files and flags are used when
15716 # linking a shared library.
15717 #
15718 # There doesn't appear to be a way to prevent this compiler from
15719 # explicitly linking system object files so we need to strip them
15720 # from the output so that they don't get included in the library
15721 # dependencies.
15722 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'
15723 ;;
15724 *)
15725 if test "$GXX" = yes; then
15726 if test $with_gnu_ld = no; then
15727 case "$host_cpu" in
15728 ia64*|hppa*64*)
15729 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15730 ;;
15731 *)
15732 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'
15733 ;;
15734 esac
15735 fi
15736 else
15737 # FIXME: insert proper C++ library support
15738 ld_shlibs_CXX=no
15739 fi
15740 ;;
15741 esac
15742 ;;
15743 irix5* | irix6*)
15744 case $cc_basename in
15745 CC)
15746 # SGI C++
15747 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'
15748
15749 # Archives containing C++ object files must be created using
15750 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15751 # necessary to make sure instantiated templates are included
15752 # in the archive.
15753 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15754 ;;
15755 *)
15756 if test "$GXX" = yes; then
15757 if test "$with_gnu_ld" = no; then
15758 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'
15759 else
15760 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'
15761 fi
15762 fi
15763 link_all_deplibs_CXX=yes
15764 ;;
15765 esac
15766 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15767 hardcode_libdir_separator_CXX=:
15768 ;;
15769 linux*)
15770 case $cc_basename in
15771 KCC)
15772 # Kuck and Associates, Inc. (KAI) C++ Compiler
15773
15774 # KCC will only create a shared library if the output file
15775 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15776 # to its proper name (with version) after linking.
15777 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'
15778 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'
15779 # Commands to make compiler produce verbose output that lists
15780 # what "hidden" libraries, object files and flags are used when
15781 # linking a shared library.
15782 #
15783 # There doesn't appear to be a way to prevent this compiler from
15784 # explicitly linking system object files so we need to strip them
15785 # from the output so that they don't get included in the library
15786 # dependencies.
15787 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'
15788
15789 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15790 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15791
15792 # Archives containing C++ object files must be created using
15793 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15794 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15795 ;;
15796 icpc)
15797 # Intel C++
15798 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015799 # version 8.0 and above of icpc choke on multiply defined symbols
15800 # if we add $predep_objects and $postdep_objects, however 7.1 and
15801 # earlier do not add the objects themselves.
15802 case `$CC -V 2>&1` in
15803 *"Version 7."*)
15804 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15805 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'
15806 ;;
15807 *) # Version 8.0 or newer
15808 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15809 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15810 ;;
15811 esac
John Criswell47fdd832003-07-14 16:52:07 +000015812 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000015813 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15814 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15815 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15816 ;;
15817 cxx)
15818 # Compaq C++
15819 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15820 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'
15821
15822 runpath_var=LD_RUN_PATH
15823 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15824 hardcode_libdir_separator_CXX=:
15825
15826 # Commands to make compiler produce verbose output that lists
15827 # what "hidden" libraries, object files and flags are used when
15828 # linking a shared library.
15829 #
15830 # There doesn't appear to be a way to prevent this compiler from
15831 # explicitly linking system object files so we need to strip them
15832 # from the output so that they don't get included in the library
15833 # dependencies.
15834 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'
15835 ;;
15836 esac
15837 ;;
15838 lynxos*)
15839 # FIXME: insert proper C++ library support
15840 ld_shlibs_CXX=no
15841 ;;
15842 m88k*)
15843 # FIXME: insert proper C++ library support
15844 ld_shlibs_CXX=no
15845 ;;
15846 mvs*)
15847 case $cc_basename in
15848 cxx)
15849 # FIXME: insert proper C++ library support
15850 ld_shlibs_CXX=no
15851 ;;
15852 *)
15853 # FIXME: insert proper C++ library support
15854 ld_shlibs_CXX=no
15855 ;;
15856 esac
15857 ;;
15858 netbsd*)
15859 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15860 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15861 wlarc=
15862 hardcode_libdir_flag_spec_CXX='-R$libdir'
15863 hardcode_direct_CXX=yes
15864 hardcode_shlibpath_var_CXX=no
15865 fi
15866 # Workaround some broken pre-1.5 toolchains
15867 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15868 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015869 openbsd2*)
15870 # C++ shared libraries are fairly broken
15871 ld_shlibs_CXX=no
15872 ;;
15873 openbsd*)
15874 hardcode_direct_CXX=yes
15875 hardcode_shlibpath_var_CXX=no
15876 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15877 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15878 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15879 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15880 export_dynamic_flag_spec_CXX='${wl}-E'
15881 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15882 fi
15883 output_verbose_link_cmd='echo'
15884 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015885 osf3*)
15886 case $cc_basename in
15887 KCC)
15888 # Kuck and Associates, Inc. (KAI) C++ Compiler
15889
15890 # KCC will only create a shared library if the output file
15891 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15892 # to its proper name (with version) after linking.
15893 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'
15894
15895 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15896 hardcode_libdir_separator_CXX=:
15897
15898 # Archives containing C++ object files must be created using
15899 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15900 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15901
15902 ;;
15903 RCC)
15904 # Rational C++ 2.4.1
15905 # FIXME: insert proper C++ library support
15906 ld_shlibs_CXX=no
15907 ;;
15908 cxx)
15909 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15910 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'
15911
15912 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15913 hardcode_libdir_separator_CXX=:
15914
15915 # Commands to make compiler produce verbose output that lists
15916 # what "hidden" libraries, object files and flags are used when
15917 # linking a shared library.
15918 #
15919 # There doesn't appear to be a way to prevent this compiler from
15920 # explicitly linking system object files so we need to strip them
15921 # from the output so that they don't get included in the library
15922 # dependencies.
15923 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'
15924 ;;
15925 *)
15926 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15927 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15928 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'
15929
15930 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15931 hardcode_libdir_separator_CXX=:
15932
15933 # Commands to make compiler produce verbose output that lists
15934 # what "hidden" libraries, object files and flags are used when
15935 # linking a shared library.
15936 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15937
15938 else
15939 # FIXME: insert proper C++ library support
15940 ld_shlibs_CXX=no
15941 fi
15942 ;;
15943 esac
15944 ;;
15945 osf4* | osf5*)
15946 case $cc_basename in
15947 KCC)
15948 # Kuck and Associates, Inc. (KAI) C++ Compiler
15949
15950 # KCC will only create a shared library if the output file
15951 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15952 # to its proper name (with version) after linking.
15953 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'
15954
15955 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15956 hardcode_libdir_separator_CXX=:
15957
15958 # Archives containing C++ object files must be created using
15959 # the KAI C++ compiler.
15960 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15961 ;;
15962 RCC)
15963 # Rational C++ 2.4.1
15964 # FIXME: insert proper C++ library support
15965 ld_shlibs_CXX=no
15966 ;;
15967 cxx)
15968 allow_undefined_flag_CXX=' -expect_unresolved \*'
15969 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 +000015970 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15971 echo "-hidden">> $lib.exp~
15972 $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~
15973 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000015974
15975 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15976 hardcode_libdir_separator_CXX=:
15977
15978 # Commands to make compiler produce verbose output that lists
15979 # what "hidden" libraries, object files and flags are used when
15980 # linking a shared library.
15981 #
15982 # There doesn't appear to be a way to prevent this compiler from
15983 # explicitly linking system object files so we need to strip them
15984 # from the output so that they don't get included in the library
15985 # dependencies.
15986 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'
15987 ;;
15988 *)
15989 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15990 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15991 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'
15992
15993 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15994 hardcode_libdir_separator_CXX=:
15995
15996 # Commands to make compiler produce verbose output that lists
15997 # what "hidden" libraries, object files and flags are used when
15998 # linking a shared library.
15999 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16000
16001 else
16002 # FIXME: insert proper C++ library support
16003 ld_shlibs_CXX=no
16004 fi
16005 ;;
16006 esac
16007 ;;
16008 psos*)
16009 # FIXME: insert proper C++ library support
16010 ld_shlibs_CXX=no
16011 ;;
16012 sco*)
16013 archive_cmds_need_lc_CXX=no
16014 case $cc_basename in
16015 CC)
16016 # FIXME: insert proper C++ library support
16017 ld_shlibs_CXX=no
16018 ;;
16019 *)
16020 # FIXME: insert proper C++ library support
16021 ld_shlibs_CXX=no
16022 ;;
16023 esac
16024 ;;
16025 sunos4*)
16026 case $cc_basename in
16027 CC)
16028 # Sun C++ 4.x
16029 # FIXME: insert proper C++ library support
16030 ld_shlibs_CXX=no
16031 ;;
16032 lcc)
16033 # Lucid
16034 # FIXME: insert proper C++ library support
16035 ld_shlibs_CXX=no
16036 ;;
16037 *)
16038 # FIXME: insert proper C++ library support
16039 ld_shlibs_CXX=no
16040 ;;
16041 esac
16042 ;;
16043 solaris*)
16044 case $cc_basename in
16045 CC)
16046 # Sun C++ 4.2, 5.x and Centerline C++
16047 no_undefined_flag_CXX=' -zdefs'
16048 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 +000016049 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16050 $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 +000016051
16052 hardcode_libdir_flag_spec_CXX='-R$libdir'
16053 hardcode_shlibpath_var_CXX=no
16054 case $host_os in
16055 solaris2.0-5 | solaris2.0-5.*) ;;
16056 *)
16057 # The C++ compiler is used as linker so we must use $wl
16058 # flag to pass the commands to the underlying system
16059 # linker.
16060 # Supported since Solaris 2.6 (maybe 2.5.1?)
16061 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16062 ;;
16063 esac
16064 link_all_deplibs_CXX=yes
16065
16066 # Commands to make compiler produce verbose output that lists
16067 # what "hidden" libraries, object files and flags are used when
16068 # linking a shared library.
16069 #
16070 # There doesn't appear to be a way to prevent this compiler from
16071 # explicitly linking system object files so we need to strip them
16072 # from the output so that they don't get included in the library
16073 # dependencies.
16074 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'
16075
16076 # Archives containing C++ object files must be created using
16077 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16078 # necessary to make sure instantiated templates are included
16079 # in the archive.
16080 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16081 ;;
16082 gcx)
16083 # Green Hills C++ Compiler
16084 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16085
16086 # The C++ compiler must be used to create the archive.
16087 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16088 ;;
16089 *)
16090 # GNU C++ compiler with Solaris linker
16091 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16092 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16093 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016094 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 +000016095 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16096 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16097
John Criswell47fdd832003-07-14 16:52:07 +000016098 # Commands to make compiler produce verbose output that lists
16099 # what "hidden" libraries, object files and flags are used when
16100 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016101 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016102 else
16103 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16104 # platform.
16105 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 +000016106 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16107 $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 +000016108
16109 # Commands to make compiler produce verbose output that lists
16110 # what "hidden" libraries, object files and flags are used when
16111 # linking a shared library.
16112 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16113 fi
16114
16115 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16116 fi
16117 ;;
16118 esac
16119 ;;
16120 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16121 archive_cmds_need_lc_CXX=no
16122 ;;
16123 tandem*)
16124 case $cc_basename in
16125 NCC)
16126 # NonStop-UX NCC 3.20
16127 # FIXME: insert proper C++ library support
16128 ld_shlibs_CXX=no
16129 ;;
16130 *)
16131 # FIXME: insert proper C++ library support
16132 ld_shlibs_CXX=no
16133 ;;
16134 esac
16135 ;;
16136 vxworks*)
16137 # FIXME: insert proper C++ library support
16138 ld_shlibs_CXX=no
16139 ;;
16140 *)
16141 # FIXME: insert proper C++ library support
16142 ld_shlibs_CXX=no
16143 ;;
16144esac
16145echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16146echo "${ECHO_T}$ld_shlibs_CXX" >&6
16147test "$ld_shlibs_CXX" = no && can_build_shared=no
16148
16149GCC_CXX="$GXX"
16150LD_CXX="$LD"
16151
John Criswell47fdd832003-07-14 16:52:07 +000016152
16153cat > conftest.$ac_ext <<EOF
16154class Foo
16155{
16156public:
16157 Foo (void) { a = 0; }
16158private:
16159 int a;
16160};
16161EOF
16162
16163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16164 (eval $ac_compile) 2>&5
16165 ac_status=$?
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); }; then
16168 # Parse the compiler output and extract the necessary
16169 # objects, libraries and library flags.
16170
16171 # Sentinel used to keep track of whether or not we are before
16172 # the conftest object file.
16173 pre_test_object_deps_done=no
16174
16175 # The `*' in the case matches for architectures that use `case' in
16176 # $output_verbose_cmd can trigger glob expansion during the loop
16177 # eval without this substitution.
16178 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16179
16180 for p in `eval $output_verbose_link_cmd`; do
16181 case $p in
16182
16183 -L* | -R* | -l*)
16184 # Some compilers place space between "-{L,R}" and the path.
16185 # Remove the space.
16186 if test $p = "-L" \
16187 || test $p = "-R"; then
16188 prev=$p
16189 continue
16190 else
16191 prev=
16192 fi
16193
16194 if test "$pre_test_object_deps_done" = no; then
16195 case $p in
16196 -L* | -R*)
16197 # Internal compiler library paths should come after those
16198 # provided the user. The postdeps already come after the
16199 # user supplied libs so there is no need to process them.
16200 if test -z "$compiler_lib_search_path_CXX"; then
16201 compiler_lib_search_path_CXX="${prev}${p}"
16202 else
16203 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16204 fi
16205 ;;
16206 # The "-l" case would never come before the object being
16207 # linked, so don't bother handling this case.
16208 esac
16209 else
16210 if test -z "$postdeps_CXX"; then
16211 postdeps_CXX="${prev}${p}"
16212 else
16213 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16214 fi
16215 fi
16216 ;;
16217
16218 *.$objext)
16219 # This assumes that the test object file only shows up
16220 # once in the compiler output.
16221 if test "$p" = "conftest.$objext"; then
16222 pre_test_object_deps_done=yes
16223 continue
16224 fi
16225
16226 if test "$pre_test_object_deps_done" = no; then
16227 if test -z "$predep_objects_CXX"; then
16228 predep_objects_CXX="$p"
16229 else
16230 predep_objects_CXX="$predep_objects_CXX $p"
16231 fi
16232 else
16233 if test -z "$postdep_objects_CXX"; then
16234 postdep_objects_CXX="$p"
16235 else
16236 postdep_objects_CXX="$postdep_objects_CXX $p"
16237 fi
16238 fi
16239 ;;
16240
16241 *) ;; # Ignore the rest.
16242
16243 esac
16244 done
16245
16246 # Clean up.
16247 rm -f a.out a.exe
16248else
16249 echo "libtool.m4: error: problem compiling CXX test program"
16250fi
16251
16252$rm -f confest.$objext
16253
16254case " $postdeps_CXX " in
16255*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16256esac
16257
16258lt_prog_compiler_wl_CXX=
16259lt_prog_compiler_pic_CXX=
16260lt_prog_compiler_static_CXX=
16261
16262echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16263echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16264
16265 # C++ specific cases for pic, static, wl, etc.
16266 if test "$GXX" = yes; then
16267 lt_prog_compiler_wl_CXX='-Wl,'
16268 lt_prog_compiler_static_CXX='-static'
16269
16270 case $host_os in
16271 aix*)
16272 # All AIX code is PIC.
16273 if test "$host_cpu" = ia64; then
16274 # AIX 5 now supports IA64 processor
16275 lt_prog_compiler_static_CXX='-Bstatic'
16276 fi
16277 ;;
16278 amigaos*)
16279 # FIXME: we need at least 68020 code to build shared libraries, but
16280 # adding the `-m68020' flag to GCC prevents building anything better,
16281 # like `-m68040'.
16282 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16283 ;;
16284 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16285 # PIC is the default for these OSes.
16286 ;;
16287 mingw* | os2* | pw32*)
16288 # This hack is so that the source file can tell whether it is being
16289 # built for inclusion in a dll (and should export symbols for example).
16290 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16291 ;;
16292 darwin* | rhapsody*)
16293 # PIC is the default on this platform
16294 # Common symbols not allowed in MH_DYLIB files
16295 lt_prog_compiler_pic_CXX='-fno-common'
16296 ;;
16297 *djgpp*)
16298 # DJGPP does not support shared libraries at all
16299 lt_prog_compiler_pic_CXX=
16300 ;;
16301 sysv4*MP*)
16302 if test -d /usr/nec; then
16303 lt_prog_compiler_pic_CXX=-Kconform_pic
16304 fi
16305 ;;
16306 hpux*)
16307 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16308 # not for PA HP-UX.
16309 case "$host_cpu" in
16310 hppa*64*|ia64*)
16311 ;;
16312 *)
16313 lt_prog_compiler_pic_CXX='-fPIC'
16314 ;;
16315 esac
16316 ;;
16317 *)
16318 lt_prog_compiler_pic_CXX='-fPIC'
16319 ;;
16320 esac
16321 else
16322 case $host_os in
16323 aix4* | aix5*)
16324 # All AIX code is PIC.
16325 if test "$host_cpu" = ia64; then
16326 # AIX 5 now supports IA64 processor
16327 lt_prog_compiler_static_CXX='-Bstatic'
16328 else
16329 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16330 fi
16331 ;;
16332 chorus*)
16333 case $cc_basename in
16334 cxch68)
16335 # Green Hills C++ Compiler
16336 # _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"
16337 ;;
16338 esac
16339 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016340 darwin*)
16341 # PIC is the default on this platform
16342 # Common symbols not allowed in MH_DYLIB files
16343 case "$cc_basename" in
16344 xlc*)
16345 lt_prog_compiler_pic_CXX='-qnocommon'
16346 lt_prog_compiler_wl_CXX='-Wl,'
16347 ;;
16348 esac
16349 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016350 dgux*)
16351 case $cc_basename in
16352 ec++)
16353 lt_prog_compiler_pic_CXX='-KPIC'
16354 ;;
16355 ghcx)
16356 # Green Hills C++ Compiler
16357 lt_prog_compiler_pic_CXX='-pic'
16358 ;;
16359 *)
16360 ;;
16361 esac
16362 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016363 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016364 # FreeBSD uses GNU C++
16365 ;;
16366 hpux9* | hpux10* | hpux11*)
16367 case $cc_basename in
16368 CC)
16369 lt_prog_compiler_wl_CXX='-Wl,'
16370 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16371 if test "$host_cpu" != ia64; then
16372 lt_prog_compiler_pic_CXX='+Z'
16373 fi
16374 ;;
16375 aCC)
16376 lt_prog_compiler_wl_CXX='-Wl,'
16377 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16378 case "$host_cpu" in
16379 hppa*64*|ia64*)
16380 # +Z the default
16381 ;;
16382 *)
16383 lt_prog_compiler_pic_CXX='+Z'
16384 ;;
16385 esac
16386 ;;
16387 *)
16388 ;;
16389 esac
16390 ;;
16391 irix5* | irix6* | nonstopux*)
16392 case $cc_basename in
16393 CC)
16394 lt_prog_compiler_wl_CXX='-Wl,'
16395 lt_prog_compiler_static_CXX='-non_shared'
16396 # CC pic flag -KPIC is the default.
16397 ;;
16398 *)
16399 ;;
16400 esac
16401 ;;
16402 linux*)
16403 case $cc_basename in
16404 KCC)
16405 # KAI C++ Compiler
16406 lt_prog_compiler_wl_CXX='--backend -Wl,'
16407 lt_prog_compiler_pic_CXX='-fPIC'
16408 ;;
16409 icpc)
16410 # Intel C++
16411 lt_prog_compiler_wl_CXX='-Wl,'
16412 lt_prog_compiler_pic_CXX='-KPIC'
16413 lt_prog_compiler_static_CXX='-static'
16414 ;;
16415 cxx)
16416 # Compaq C++
16417 # Make sure the PIC flag is empty. It appears that all Alpha
16418 # Linux and Compaq Tru64 Unix objects are PIC.
16419 lt_prog_compiler_pic_CXX=
16420 lt_prog_compiler_static_CXX='-non_shared'
16421 ;;
16422 *)
16423 ;;
16424 esac
16425 ;;
16426 lynxos*)
16427 ;;
16428 m88k*)
16429 ;;
16430 mvs*)
16431 case $cc_basename in
16432 cxx)
16433 lt_prog_compiler_pic_CXX='-W c,exportall'
16434 ;;
16435 *)
16436 ;;
16437 esac
16438 ;;
16439 netbsd*)
16440 ;;
16441 osf3* | osf4* | osf5*)
16442 case $cc_basename in
16443 KCC)
16444 lt_prog_compiler_wl_CXX='--backend -Wl,'
16445 ;;
16446 RCC)
16447 # Rational C++ 2.4.1
16448 lt_prog_compiler_pic_CXX='-pic'
16449 ;;
16450 cxx)
16451 # Digital/Compaq C++
16452 lt_prog_compiler_wl_CXX='-Wl,'
16453 # Make sure the PIC flag is empty. It appears that all Alpha
16454 # Linux and Compaq Tru64 Unix objects are PIC.
16455 lt_prog_compiler_pic_CXX=
16456 lt_prog_compiler_static_CXX='-non_shared'
16457 ;;
16458 *)
16459 ;;
16460 esac
16461 ;;
16462 psos*)
16463 ;;
16464 sco*)
16465 case $cc_basename in
16466 CC)
16467 lt_prog_compiler_pic_CXX='-fPIC'
16468 ;;
16469 *)
16470 ;;
16471 esac
16472 ;;
16473 solaris*)
16474 case $cc_basename in
16475 CC)
16476 # Sun C++ 4.2, 5.x and Centerline C++
16477 lt_prog_compiler_pic_CXX='-KPIC'
16478 lt_prog_compiler_static_CXX='-Bstatic'
16479 lt_prog_compiler_wl_CXX='-Qoption ld '
16480 ;;
16481 gcx)
16482 # Green Hills C++ Compiler
16483 lt_prog_compiler_pic_CXX='-PIC'
16484 ;;
16485 *)
16486 ;;
16487 esac
16488 ;;
16489 sunos4*)
16490 case $cc_basename in
16491 CC)
16492 # Sun C++ 4.x
16493 lt_prog_compiler_pic_CXX='-pic'
16494 lt_prog_compiler_static_CXX='-Bstatic'
16495 ;;
16496 lcc)
16497 # Lucid
16498 lt_prog_compiler_pic_CXX='-pic'
16499 ;;
16500 *)
16501 ;;
16502 esac
16503 ;;
16504 tandem*)
16505 case $cc_basename in
16506 NCC)
16507 # NonStop-UX NCC 3.20
16508 lt_prog_compiler_pic_CXX='-KPIC'
16509 ;;
16510 *)
16511 ;;
16512 esac
16513 ;;
16514 unixware*)
16515 ;;
16516 vxworks*)
16517 ;;
16518 *)
16519 lt_prog_compiler_can_build_shared_CXX=no
16520 ;;
16521 esac
16522 fi
16523
16524echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16525echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16526
16527#
16528# Check to make sure the PIC flag actually works.
16529#
16530if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016531
16532echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016533echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16534if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16535 echo $ECHO_N "(cached) $ECHO_C" >&6
16536else
16537 lt_prog_compiler_pic_works_CXX=no
16538 ac_outfile=conftest.$ac_objext
16539 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16540 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16541 # Insert the option either (1) after the last *FLAGS variable, or
16542 # (2) before a word containing "conftest.", or (3) at the end.
16543 # Note that $ac_compile itself does not contain backslashes and begins
16544 # with a dollar sign (not a hyphen), so the echo should work correctly.
16545 # The option is referenced via a variable to avoid confusing sed.
16546 lt_compile=`echo "$ac_compile" | $SED \
16547 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16549 -e 's:$: $lt_compiler_flag:'`
Duraid Madina775afa52005-05-16 16:33:34 +000016550 (eval echo "\"\$as_me:16550: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016551 (eval "$lt_compile" 2>conftest.err)
16552 ac_status=$?
16553 cat conftest.err >&5
Duraid Madina775afa52005-05-16 16:33:34 +000016554 echo "$as_me:16554: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016555 if (exit $ac_status) && test -s "$ac_outfile"; then
16556 # The compiler can only warn and ignore the option if not recognized
16557 # So say no if there are warnings
16558 if test ! -s conftest.err; then
16559 lt_prog_compiler_pic_works_CXX=yes
16560 fi
16561 fi
16562 $rm conftest*
16563
16564fi
16565echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16566echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16567
16568if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16569 case $lt_prog_compiler_pic_CXX in
16570 "" | " "*) ;;
16571 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16572 esac
16573else
16574 lt_prog_compiler_pic_CXX=
16575 lt_prog_compiler_can_build_shared_CXX=no
16576fi
16577
16578fi
16579case "$host_os" in
16580 # For platforms which do not support PIC, -DPIC is meaningless:
16581 *djgpp*)
16582 lt_prog_compiler_pic_CXX=
16583 ;;
16584 *)
16585 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16586 ;;
16587esac
16588
16589echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16590echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16591if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16592 echo $ECHO_N "(cached) $ECHO_C" >&6
16593else
16594 lt_cv_prog_compiler_c_o_CXX=no
16595 $rm -r conftest 2>/dev/null
16596 mkdir conftest
16597 cd conftest
16598 mkdir out
16599 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16600
John Criswell47fdd832003-07-14 16:52:07 +000016601 lt_compiler_flag="-o out/conftest2.$ac_objext"
16602 # Insert the option either (1) after the last *FLAGS variable, or
16603 # (2) before a word containing "conftest.", or (3) at the end.
16604 # Note that $ac_compile itself does not contain backslashes and begins
16605 # with a dollar sign (not a hyphen), so the echo should work correctly.
16606 lt_compile=`echo "$ac_compile" | $SED \
16607 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16609 -e 's:$: $lt_compiler_flag:'`
Duraid Madina775afa52005-05-16 16:33:34 +000016610 (eval echo "\"\$as_me:16610: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016611 (eval "$lt_compile" 2>out/conftest.err)
16612 ac_status=$?
16613 cat out/conftest.err >&5
Duraid Madina775afa52005-05-16 16:33:34 +000016614 echo "$as_me:16614: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016615 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16616 then
16617 # The compiler can only warn and ignore the option if not recognized
16618 # So say no if there are warnings
16619 if test ! -s out/conftest.err; then
16620 lt_cv_prog_compiler_c_o_CXX=yes
16621 fi
16622 fi
16623 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016624 $rm conftest*
16625 # SGI C++ compiler will create directory out/ii_files/ for
16626 # template instantiation
16627 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16628 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016629 cd ..
16630 rmdir conftest
16631 $rm conftest*
16632
16633fi
16634echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16635echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16636
16637
16638hard_links="nottested"
16639if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16640 # do not overwrite the value of need_locks provided by the user
16641 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16642echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16643 hard_links=yes
16644 $rm conftest*
16645 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16646 touch conftest.a
16647 ln conftest.a conftest.b 2>&5 || hard_links=no
16648 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16649 echo "$as_me:$LINENO: result: $hard_links" >&5
16650echo "${ECHO_T}$hard_links" >&6
16651 if test "$hard_links" = no; then
16652 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16653echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16654 need_locks=warn
16655 fi
16656else
16657 need_locks=no
16658fi
16659
16660echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16661echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16662
16663 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16664 case $host_os in
16665 aix4* | aix5*)
16666 # If we're using GNU nm, then we don't want the "-C" option.
16667 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16668 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16669 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'
16670 else
16671 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'
16672 fi
16673 ;;
16674 pw32*)
16675 export_symbols_cmds_CXX="$ltdll_cmds"
16676 ;;
16677 cygwin* | mingw*)
16678 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16679 ;;
16680 *)
16681 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16682 ;;
16683 esac
16684
16685echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16686echo "${ECHO_T}$ld_shlibs_CXX" >&6
16687test "$ld_shlibs_CXX" = no && can_build_shared=no
16688
16689variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16690if test "$GCC" = yes; then
16691 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16692fi
16693
16694#
16695# Do we need to explicitly link libc?
16696#
16697case "x$archive_cmds_need_lc_CXX" in
16698x|xyes)
16699 # Assume -lc should be added
16700 archive_cmds_need_lc_CXX=yes
16701
16702 if test "$enable_shared" = yes && test "$GCC" = yes; then
16703 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016704 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016705 # FIXME: we may have to deal with multi-command sequences.
16706 ;;
16707 '$CC '*)
16708 # Test whether the compiler implicitly links with -lc since on some
16709 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16710 # to ld, don't add -lc before -lgcc.
16711 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16712echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16713 $rm conftest*
16714 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16715
16716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16717 (eval $ac_compile) 2>&5
16718 ac_status=$?
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } 2>conftest.err; then
16721 soname=conftest
16722 lib=conftest
16723 libobjs=conftest.$ac_objext
16724 deplibs=
16725 wl=$lt_prog_compiler_wl_CXX
16726 compiler_flags=-v
16727 linker_flags=-v
16728 verstring=
16729 output_objdir=.
16730 libname=conftest
16731 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16732 allow_undefined_flag_CXX=
16733 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16734 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16735 ac_status=$?
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); }
16738 then
16739 archive_cmds_need_lc_CXX=no
16740 else
16741 archive_cmds_need_lc_CXX=yes
16742 fi
16743 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16744 else
16745 cat conftest.err 1>&5
16746 fi
16747 $rm conftest*
16748 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16749echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16750 ;;
16751 esac
16752 fi
16753 ;;
16754esac
16755
John Criswell47fdd832003-07-14 16:52:07 +000016756echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16757echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16758library_names_spec=
16759libname_spec='lib$name'
16760soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016761shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016762postinstall_cmds=
16763postuninstall_cmds=
16764finish_cmds=
16765finish_eval=
16766shlibpath_var=
16767shlibpath_overrides_runpath=unknown
16768version_type=none
16769dynamic_linker="$host_os ld.so"
16770sys_lib_dlsearch_path_spec="/lib /usr/lib"
16771if test "$GCC" = yes; then
16772 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16773 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16774 # if the path contains ";" then we assume it to be the separator
16775 # otherwise default to the standard path separator (i.e. ":") - it is
16776 # assumed that no part of a normal pathname contains ";" but that should
16777 # okay in the real world where ";" in dirpaths is itself problematic.
16778 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16779 else
16780 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16781 fi
16782else
16783 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16784fi
16785need_lib_prefix=unknown
16786hardcode_into_libs=no
16787
16788# when you set need_version to no, make sure it does not cause -set_version
16789# flags to be left without arguments
16790need_version=unknown
16791
16792case $host_os in
16793aix3*)
16794 version_type=linux
16795 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16796 shlibpath_var=LIBPATH
16797
16798 # AIX 3 has no versioning support, so we append a major version to the name.
16799 soname_spec='${libname}${release}${shared_ext}$major'
16800 ;;
16801
16802aix4* | aix5*)
16803 version_type=linux
16804 need_lib_prefix=no
16805 need_version=no
16806 hardcode_into_libs=yes
16807 if test "$host_cpu" = ia64; then
16808 # AIX 5 supports IA64
16809 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16810 shlibpath_var=LD_LIBRARY_PATH
16811 else
16812 # With GCC up to 2.95.x, collect2 would create an import file
16813 # for dependence libraries. The import file would start with
16814 # the line `#! .'. This would cause the generated library to
16815 # depend on `.', always an invalid library. This was fixed in
16816 # development snapshots of GCC prior to 3.0.
16817 case $host_os in
16818 aix4 | aix4.[01] | aix4.[01].*)
16819 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16820 echo ' yes '
16821 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16822 :
16823 else
16824 can_build_shared=no
16825 fi
16826 ;;
16827 esac
16828 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16829 # soname into executable. Probably we can add versioning support to
16830 # collect2, so additional links can be useful in future.
16831 if test "$aix_use_runtimelinking" = yes; then
16832 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16833 # instead of lib<name>.a to let people know that these are not
16834 # typical AIX shared libraries.
16835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16836 else
16837 # We preserve .a as extension for shared libraries through AIX4.2
16838 # and later when we are not doing run time linking.
16839 library_names_spec='${libname}${release}.a $libname.a'
16840 soname_spec='${libname}${release}${shared_ext}$major'
16841 fi
16842 shlibpath_var=LIBPATH
16843 fi
16844 ;;
16845
16846amigaos*)
16847 library_names_spec='$libname.ixlibrary $libname.a'
16848 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016849 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 +000016850 ;;
16851
16852beos*)
16853 library_names_spec='${libname}${shared_ext}'
16854 dynamic_linker="$host_os ld.so"
16855 shlibpath_var=LIBRARY_PATH
16856 ;;
16857
Reid Spencer2706f8c2004-09-19 23:53:36 +000016858bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016859 version_type=linux
16860 need_version=no
16861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16862 soname_spec='${libname}${release}${shared_ext}$major'
16863 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16864 shlibpath_var=LD_LIBRARY_PATH
16865 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16866 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16867 # the default ld.so.conf also contains /usr/contrib/lib and
16868 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16869 # libtool to hard-code these into programs
16870 ;;
16871
16872cygwin* | mingw* | pw32*)
16873 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016874 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016875 need_version=no
16876 need_lib_prefix=no
16877
16878 case $GCC,$host_os in
16879 yes,cygwin* | yes,mingw* | yes,pw32*)
16880 library_names_spec='$libname.dll.a'
16881 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016882 postinstall_cmds='base_file=`basename \${file}`~
16883 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16884 dldir=$destdir/`dirname \$dlpath`~
16885 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000016886 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016887 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16888 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000016889 $rm \$dlpath'
16890 shlibpath_overrides_runpath=yes
16891
16892 case $host_os in
16893 cygwin*)
16894 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16895 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016896 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016897 ;;
16898 mingw*)
16899 # MinGW DLLs use traditional 'lib' prefix
16900 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16901 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16902 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16903 # It is most probably a Windows format PATH printed by
16904 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16905 # path with ; separators, and with drive letters. We can handle the
16906 # drive letters (cygwin fileutils understands them), so leave them,
16907 # especially as we might pass files found there to a mingw objdump,
16908 # which wouldn't understand a cygwinified path. Ahh.
16909 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16910 else
16911 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16912 fi
16913 ;;
16914 pw32*)
16915 # pw32 DLLs use 'pw' prefix rather than 'lib'
16916 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16917 ;;
16918 esac
16919 ;;
16920
16921 *)
16922 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16923 ;;
16924 esac
16925 dynamic_linker='Win32 ld.exe'
16926 # FIXME: first we should search . and the directory the executable is in
16927 shlibpath_var=PATH
16928 ;;
16929
16930darwin* | rhapsody*)
16931 dynamic_linker="$host_os dyld"
16932 version_type=darwin
16933 need_lib_prefix=no
16934 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016935 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016936 soname_spec='${libname}${release}${major}$shared_ext'
16937 shlibpath_overrides_runpath=yes
16938 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000016939 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000016940 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016941 if test "$GCC" = yes; then
16942 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16943 else
16944 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016945 fi
16946 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16947 ;;
16948
16949dgux*)
16950 version_type=linux
16951 need_lib_prefix=no
16952 need_version=no
16953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16954 soname_spec='${libname}${release}${shared_ext}$major'
16955 shlibpath_var=LD_LIBRARY_PATH
16956 ;;
16957
16958freebsd1*)
16959 dynamic_linker=no
16960 ;;
16961
Reid Spencer2706f8c2004-09-19 23:53:36 +000016962kfreebsd*-gnu)
16963 version_type=linux
16964 need_lib_prefix=no
16965 need_version=no
16966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16967 soname_spec='${libname}${release}${shared_ext}$major'
16968 shlibpath_var=LD_LIBRARY_PATH
16969 shlibpath_overrides_runpath=no
16970 hardcode_into_libs=yes
16971 dynamic_linker='GNU ld.so'
16972 ;;
16973
John Criswell47fdd832003-07-14 16:52:07 +000016974freebsd*)
16975 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16976 version_type=freebsd-$objformat
16977 case $version_type in
16978 freebsd-elf*)
16979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16980 need_version=no
16981 need_lib_prefix=no
16982 ;;
16983 freebsd-*)
16984 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16985 need_version=yes
16986 ;;
16987 esac
16988 shlibpath_var=LD_LIBRARY_PATH
16989 case $host_os in
16990 freebsd2*)
16991 shlibpath_overrides_runpath=yes
16992 ;;
16993 freebsd3.01* | freebsdelf3.01*)
16994 shlibpath_overrides_runpath=yes
16995 hardcode_into_libs=yes
16996 ;;
16997 *) # from 3.2 on
16998 shlibpath_overrides_runpath=no
16999 hardcode_into_libs=yes
17000 ;;
17001 esac
17002 ;;
17003
17004gnu*)
17005 version_type=linux
17006 need_lib_prefix=no
17007 need_version=no
17008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17009 soname_spec='${libname}${release}${shared_ext}$major'
17010 shlibpath_var=LD_LIBRARY_PATH
17011 hardcode_into_libs=yes
17012 ;;
17013
17014hpux9* | hpux10* | hpux11*)
17015 # Give a soname corresponding to the major version so that dld.sl refuses to
17016 # link against other versions.
17017 version_type=sunos
17018 need_lib_prefix=no
17019 need_version=no
17020 case "$host_cpu" in
17021 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017022 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017023 hardcode_into_libs=yes
17024 dynamic_linker="$host_os dld.so"
17025 shlibpath_var=LD_LIBRARY_PATH
17026 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17028 soname_spec='${libname}${release}${shared_ext}$major'
17029 if test "X$HPUX_IA64_MODE" = X32; then
17030 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17031 else
17032 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17033 fi
17034 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17035 ;;
17036 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017037 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017038 hardcode_into_libs=yes
17039 dynamic_linker="$host_os dld.sl"
17040 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17041 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17043 soname_spec='${libname}${release}${shared_ext}$major'
17044 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17045 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17046 ;;
17047 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017048 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017049 dynamic_linker="$host_os dld.sl"
17050 shlibpath_var=SHLIB_PATH
17051 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17053 soname_spec='${libname}${release}${shared_ext}$major'
17054 ;;
17055 esac
17056 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17057 postinstall_cmds='chmod 555 $lib'
17058 ;;
17059
17060irix5* | irix6* | nonstopux*)
17061 case $host_os in
17062 nonstopux*) version_type=nonstopux ;;
17063 *)
17064 if test "$lt_cv_prog_gnu_ld" = yes; then
17065 version_type=linux
17066 else
17067 version_type=irix
17068 fi ;;
17069 esac
17070 need_lib_prefix=no
17071 need_version=no
17072 soname_spec='${libname}${release}${shared_ext}$major'
17073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17074 case $host_os in
17075 irix5* | nonstopux*)
17076 libsuff= shlibsuff=
17077 ;;
17078 *)
17079 case $LD in # libtool.m4 will add one of these switches to LD
17080 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17081 libsuff= shlibsuff= libmagic=32-bit;;
17082 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17083 libsuff=32 shlibsuff=N32 libmagic=N32;;
17084 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17085 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17086 *) libsuff= shlibsuff= libmagic=never-match;;
17087 esac
17088 ;;
17089 esac
17090 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17091 shlibpath_overrides_runpath=no
17092 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17093 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17094 hardcode_into_libs=yes
17095 ;;
17096
17097# No shared lib support for Linux oldld, aout, or coff.
17098linux*oldld* | linux*aout* | linux*coff*)
17099 dynamic_linker=no
17100 ;;
17101
17102# This must be Linux ELF.
17103linux*)
17104 version_type=linux
17105 need_lib_prefix=no
17106 need_version=no
17107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17108 soname_spec='${libname}${release}${shared_ext}$major'
17109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17110 shlibpath_var=LD_LIBRARY_PATH
17111 shlibpath_overrides_runpath=no
17112 # This implies no fast_install, which is unacceptable.
17113 # Some rework will be needed to allow for fast_install
17114 # before this can be enabled.
17115 hardcode_into_libs=yes
17116
Reid Spencer2706f8c2004-09-19 23:53:36 +000017117 # Append ld.so.conf contents to the search path
17118 if test -f /etc/ld.so.conf; then
17119 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17120 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17121 fi
17122
John Criswell47fdd832003-07-14 16:52:07 +000017123 # We used to test for /lib/ld.so.1 and disable shared libraries on
17124 # powerpc, because MkLinux only supported shared libraries with the
17125 # GNU dynamic linker. Since this was broken with cross compilers,
17126 # most powerpc-linux boxes support dynamic linking these days and
17127 # people can always --disable-shared, the test was removed, and we
17128 # assume the GNU/Linux dynamic linker is in use.
17129 dynamic_linker='GNU/Linux ld.so'
17130 ;;
17131
Reid Spencer2706f8c2004-09-19 23:53:36 +000017132knetbsd*-gnu)
17133 version_type=linux
17134 need_lib_prefix=no
17135 need_version=no
17136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17137 soname_spec='${libname}${release}${shared_ext}$major'
17138 shlibpath_var=LD_LIBRARY_PATH
17139 shlibpath_overrides_runpath=no
17140 hardcode_into_libs=yes
17141 dynamic_linker='GNU ld.so'
17142 ;;
17143
John Criswell47fdd832003-07-14 16:52:07 +000017144netbsd*)
17145 version_type=sunos
17146 need_lib_prefix=no
17147 need_version=no
17148 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17151 dynamic_linker='NetBSD (a.out) ld.so'
17152 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017154 soname_spec='${libname}${release}${shared_ext}$major'
17155 dynamic_linker='NetBSD ld.elf_so'
17156 fi
17157 shlibpath_var=LD_LIBRARY_PATH
17158 shlibpath_overrides_runpath=yes
17159 hardcode_into_libs=yes
17160 ;;
17161
17162newsos6)
17163 version_type=linux
17164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17165 shlibpath_var=LD_LIBRARY_PATH
17166 shlibpath_overrides_runpath=yes
17167 ;;
17168
Reid Spencer2706f8c2004-09-19 23:53:36 +000017169nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017170 version_type=linux
17171 need_lib_prefix=no
17172 need_version=no
17173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17174 soname_spec='${libname}${release}${shared_ext}$major'
17175 shlibpath_var=LD_LIBRARY_PATH
17176 shlibpath_overrides_runpath=yes
17177 ;;
17178
17179openbsd*)
17180 version_type=sunos
17181 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017182 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17185 shlibpath_var=LD_LIBRARY_PATH
17186 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17187 case $host_os in
17188 openbsd2.[89] | openbsd2.[89].*)
17189 shlibpath_overrides_runpath=no
17190 ;;
17191 *)
17192 shlibpath_overrides_runpath=yes
17193 ;;
17194 esac
17195 else
17196 shlibpath_overrides_runpath=yes
17197 fi
17198 ;;
17199
17200os2*)
17201 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017202 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017203 need_lib_prefix=no
17204 library_names_spec='$libname${shared_ext} $libname.a'
17205 dynamic_linker='OS/2 ld.exe'
17206 shlibpath_var=LIBPATH
17207 ;;
17208
17209osf3* | osf4* | osf5*)
17210 version_type=osf
17211 need_lib_prefix=no
17212 need_version=no
17213 soname_spec='${libname}${release}${shared_ext}$major'
17214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17215 shlibpath_var=LD_LIBRARY_PATH
17216 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17217 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17218 ;;
17219
17220sco3.2v5*)
17221 version_type=osf
17222 soname_spec='${libname}${release}${shared_ext}$major'
17223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17224 shlibpath_var=LD_LIBRARY_PATH
17225 ;;
17226
17227solaris*)
17228 version_type=linux
17229 need_lib_prefix=no
17230 need_version=no
17231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17232 soname_spec='${libname}${release}${shared_ext}$major'
17233 shlibpath_var=LD_LIBRARY_PATH
17234 shlibpath_overrides_runpath=yes
17235 hardcode_into_libs=yes
17236 # ldd complains unless libraries are executable
17237 postinstall_cmds='chmod +x $lib'
17238 ;;
17239
17240sunos4*)
17241 version_type=sunos
17242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17243 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17244 shlibpath_var=LD_LIBRARY_PATH
17245 shlibpath_overrides_runpath=yes
17246 if test "$with_gnu_ld" = yes; then
17247 need_lib_prefix=no
17248 fi
17249 need_version=yes
17250 ;;
17251
17252sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17253 version_type=linux
17254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17255 soname_spec='${libname}${release}${shared_ext}$major'
17256 shlibpath_var=LD_LIBRARY_PATH
17257 case $host_vendor in
17258 sni)
17259 shlibpath_overrides_runpath=no
17260 need_lib_prefix=no
17261 export_dynamic_flag_spec='${wl}-Blargedynsym'
17262 runpath_var=LD_RUN_PATH
17263 ;;
17264 siemens)
17265 need_lib_prefix=no
17266 ;;
17267 motorola)
17268 need_lib_prefix=no
17269 need_version=no
17270 shlibpath_overrides_runpath=no
17271 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17272 ;;
17273 esac
17274 ;;
17275
17276sysv4*MP*)
17277 if test -d /usr/nec ;then
17278 version_type=linux
17279 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17280 soname_spec='$libname${shared_ext}.$major'
17281 shlibpath_var=LD_LIBRARY_PATH
17282 fi
17283 ;;
17284
17285uts4*)
17286 version_type=linux
17287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17288 soname_spec='${libname}${release}${shared_ext}$major'
17289 shlibpath_var=LD_LIBRARY_PATH
17290 ;;
17291
17292*)
17293 dynamic_linker=no
17294 ;;
17295esac
17296echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17297echo "${ECHO_T}$dynamic_linker" >&6
17298test "$dynamic_linker" = no && can_build_shared=no
17299
Reid Spencer2706f8c2004-09-19 23:53:36 +000017300echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17301echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17302hardcode_action_CXX=
17303if test -n "$hardcode_libdir_flag_spec_CXX" || \
17304 test -n "$runpath_var_CXX" || \
17305 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17306
17307 # We can hardcode non-existant directories.
17308 if test "$hardcode_direct_CXX" != no &&
17309 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17310 # have to relink, otherwise we might link with an installed library
17311 # when we should be linking with a yet-to-be-installed one
17312 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17313 test "$hardcode_minus_L_CXX" != no; then
17314 # Linking always hardcodes the temporary library directory.
17315 hardcode_action_CXX=relink
17316 else
17317 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17318 hardcode_action_CXX=immediate
17319 fi
17320else
17321 # We cannot hardcode anything, or else we can only hardcode existing
17322 # directories.
17323 hardcode_action_CXX=unsupported
17324fi
17325echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17326echo "${ECHO_T}$hardcode_action_CXX" >&6
17327
17328if test "$hardcode_action_CXX" = relink; then
17329 # Fast installation is not supported
17330 enable_fast_install=no
17331elif test "$shlibpath_overrides_runpath" = yes ||
17332 test "$enable_shared" = no; then
17333 # Fast installation is not necessary
17334 enable_fast_install=needless
17335fi
17336
17337striplib=
17338old_striplib=
17339echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17340echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17341if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17342 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17343 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17344 echo "$as_me:$LINENO: result: yes" >&5
17345echo "${ECHO_T}yes" >&6
17346else
17347# FIXME - insert some real tests, host_os isn't really good enough
17348 case $host_os in
17349 darwin*)
17350 if test -n "$STRIP" ; then
17351 striplib="$STRIP -x"
17352 echo "$as_me:$LINENO: result: yes" >&5
17353echo "${ECHO_T}yes" >&6
17354 else
17355 echo "$as_me:$LINENO: result: no" >&5
17356echo "${ECHO_T}no" >&6
17357fi
17358 ;;
17359 *)
17360 echo "$as_me:$LINENO: result: no" >&5
17361echo "${ECHO_T}no" >&6
17362 ;;
17363 esac
17364fi
17365
John Criswell47fdd832003-07-14 16:52:07 +000017366if test "x$enable_dlopen" != xyes; then
17367 enable_dlopen=unknown
17368 enable_dlopen_self=unknown
17369 enable_dlopen_self_static=unknown
17370else
17371 lt_cv_dlopen=no
17372 lt_cv_dlopen_libs=
17373
17374 case $host_os in
17375 beos*)
17376 lt_cv_dlopen="load_add_on"
17377 lt_cv_dlopen_libs=
17378 lt_cv_dlopen_self=yes
17379 ;;
17380
17381 mingw* | pw32*)
17382 lt_cv_dlopen="LoadLibrary"
17383 lt_cv_dlopen_libs=
17384 ;;
17385
17386 cygwin*)
17387 lt_cv_dlopen="dlopen"
17388 lt_cv_dlopen_libs=
17389 ;;
17390
17391 darwin*)
17392 # if libdl is installed we need to link against it
17393 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17394echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17395if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17397else
17398 ac_check_lib_save_LIBS=$LIBS
17399LIBS="-ldl $LIBS"
17400cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017401/* confdefs.h. */
17402_ACEOF
17403cat confdefs.h >>conftest.$ac_ext
17404cat >>conftest.$ac_ext <<_ACEOF
17405/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017406
17407/* Override any gcc2 internal prototype to avoid an error. */
17408#ifdef __cplusplus
17409extern "C"
17410#endif
17411/* We use char because int might match the return type of a gcc2
17412 builtin and then its argument prototype would still apply. */
17413char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017414int
17415main ()
17416{
17417dlopen ();
17418 ;
17419 return 0;
17420}
17421_ACEOF
17422rm -f conftest.$ac_objext conftest$ac_exeext
17423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017424 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017425 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017426 grep -v '^ *+' conftest.er1 >conftest.err
17427 rm -f conftest.er1
17428 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017431 { ac_try='test -z "$ac_cxx_werror_flag"
17432 || test ! -s conftest.err'
17433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17434 (eval $ac_try) 2>&5
17435 ac_status=$?
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; } &&
17438 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17440 (eval $ac_try) 2>&5
17441 ac_status=$?
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); }; }; then
17444 ac_cv_lib_dl_dlopen=yes
17445else
17446 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017447sed 's/^/| /' conftest.$ac_ext >&5
17448
John Criswell47fdd832003-07-14 16:52:07 +000017449ac_cv_lib_dl_dlopen=no
17450fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017451rm -f conftest.err conftest.$ac_objext \
17452 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017453LIBS=$ac_check_lib_save_LIBS
17454fi
17455echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17456echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17457if test $ac_cv_lib_dl_dlopen = yes; then
17458 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17459else
17460
17461 lt_cv_dlopen="dyld"
17462 lt_cv_dlopen_libs=
17463 lt_cv_dlopen_self=yes
17464
17465fi
17466
17467 ;;
17468
17469 *)
17470 echo "$as_me:$LINENO: checking for shl_load" >&5
17471echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17472if test "${ac_cv_func_shl_load+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17474else
17475 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017476/* confdefs.h. */
17477_ACEOF
17478cat confdefs.h >>conftest.$ac_ext
17479cat >>conftest.$ac_ext <<_ACEOF
17480/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017481/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17483#define shl_load innocuous_shl_load
17484
John Criswell47fdd832003-07-14 16:52:07 +000017485/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017486 which can conflict with char shl_load (); below.
17487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17488 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017489
John Criswell0c38eaf2003-09-10 15:17:25 +000017490#ifdef __STDC__
17491# include <limits.h>
17492#else
17493# include <assert.h>
17494#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017495
17496#undef shl_load
17497
John Criswell47fdd832003-07-14 16:52:07 +000017498/* Override any gcc2 internal prototype to avoid an error. */
17499#ifdef __cplusplus
17500extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017501{
John Criswell47fdd832003-07-14 16:52:07 +000017502#endif
17503/* We use char because int might match the return type of a gcc2
17504 builtin and then its argument prototype would still apply. */
17505char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017506/* The GNU C library defines this for functions which it implements
17507 to always fail with ENOSYS. Some functions are actually named
17508 something starting with __ and the normal name is an alias. */
17509#if defined (__stub_shl_load) || defined (__stub___shl_load)
17510choke me
17511#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017512char (*f) () = shl_load;
17513#endif
17514#ifdef __cplusplus
17515}
John Criswell47fdd832003-07-14 16:52:07 +000017516#endif
17517
John Criswell0c38eaf2003-09-10 15:17:25 +000017518int
17519main ()
17520{
17521return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017522 ;
17523 return 0;
17524}
17525_ACEOF
17526rm -f conftest.$ac_objext conftest$ac_exeext
17527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017528 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017529 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017530 grep -v '^ *+' conftest.er1 >conftest.err
17531 rm -f conftest.er1
17532 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017535 { ac_try='test -z "$ac_cxx_werror_flag"
17536 || test ! -s conftest.err'
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17539 ac_status=$?
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; } &&
17542 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544 (eval $ac_try) 2>&5
17545 ac_status=$?
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; }; then
17548 ac_cv_func_shl_load=yes
17549else
17550 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017551sed 's/^/| /' conftest.$ac_ext >&5
17552
John Criswell47fdd832003-07-14 16:52:07 +000017553ac_cv_func_shl_load=no
17554fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017555rm -f conftest.err conftest.$ac_objext \
17556 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017557fi
17558echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17559echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17560if test $ac_cv_func_shl_load = yes; then
17561 lt_cv_dlopen="shl_load"
17562else
17563 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17564echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17565if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17566 echo $ECHO_N "(cached) $ECHO_C" >&6
17567else
17568 ac_check_lib_save_LIBS=$LIBS
17569LIBS="-ldld $LIBS"
17570cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017571/* confdefs.h. */
17572_ACEOF
17573cat confdefs.h >>conftest.$ac_ext
17574cat >>conftest.$ac_ext <<_ACEOF
17575/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017576
17577/* Override any gcc2 internal prototype to avoid an error. */
17578#ifdef __cplusplus
17579extern "C"
17580#endif
17581/* We use char because int might match the return type of a gcc2
17582 builtin and then its argument prototype would still apply. */
17583char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017584int
17585main ()
17586{
17587shl_load ();
17588 ;
17589 return 0;
17590}
17591_ACEOF
17592rm -f conftest.$ac_objext conftest$ac_exeext
17593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017594 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017595 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017596 grep -v '^ *+' conftest.er1 >conftest.err
17597 rm -f conftest.er1
17598 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017601 { ac_try='test -z "$ac_cxx_werror_flag"
17602 || test ! -s conftest.err'
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17605 ac_status=$?
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; } &&
17608 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610 (eval $ac_try) 2>&5
17611 ac_status=$?
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); }; }; then
17614 ac_cv_lib_dld_shl_load=yes
17615else
17616 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017617sed 's/^/| /' conftest.$ac_ext >&5
17618
John Criswell47fdd832003-07-14 16:52:07 +000017619ac_cv_lib_dld_shl_load=no
17620fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017621rm -f conftest.err conftest.$ac_objext \
17622 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017623LIBS=$ac_check_lib_save_LIBS
17624fi
17625echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17626echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17627if test $ac_cv_lib_dld_shl_load = yes; then
17628 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17629else
17630 echo "$as_me:$LINENO: checking for dlopen" >&5
17631echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17632if test "${ac_cv_func_dlopen+set}" = set; then
17633 echo $ECHO_N "(cached) $ECHO_C" >&6
17634else
17635 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017636/* confdefs.h. */
17637_ACEOF
17638cat confdefs.h >>conftest.$ac_ext
17639cat >>conftest.$ac_ext <<_ACEOF
17640/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017641/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17643#define dlopen innocuous_dlopen
17644
John Criswell47fdd832003-07-14 16:52:07 +000017645/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017646 which can conflict with char dlopen (); below.
17647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17648 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017649
John Criswell0c38eaf2003-09-10 15:17:25 +000017650#ifdef __STDC__
17651# include <limits.h>
17652#else
17653# include <assert.h>
17654#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017655
17656#undef dlopen
17657
John Criswell47fdd832003-07-14 16:52:07 +000017658/* Override any gcc2 internal prototype to avoid an error. */
17659#ifdef __cplusplus
17660extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017661{
John Criswell47fdd832003-07-14 16:52:07 +000017662#endif
17663/* We use char because int might match the return type of a gcc2
17664 builtin and then its argument prototype would still apply. */
17665char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017666/* The GNU C library defines this for functions which it implements
17667 to always fail with ENOSYS. Some functions are actually named
17668 something starting with __ and the normal name is an alias. */
17669#if defined (__stub_dlopen) || defined (__stub___dlopen)
17670choke me
17671#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017672char (*f) () = dlopen;
17673#endif
17674#ifdef __cplusplus
17675}
John Criswell47fdd832003-07-14 16:52:07 +000017676#endif
17677
John Criswell0c38eaf2003-09-10 15:17:25 +000017678int
17679main ()
17680{
17681return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017682 ;
17683 return 0;
17684}
17685_ACEOF
17686rm -f conftest.$ac_objext conftest$ac_exeext
17687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017688 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017689 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017690 grep -v '^ *+' conftest.er1 >conftest.err
17691 rm -f conftest.er1
17692 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017695 { ac_try='test -z "$ac_cxx_werror_flag"
17696 || test ! -s conftest.err'
17697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698 (eval $ac_try) 2>&5
17699 ac_status=$?
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; } &&
17702 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704 (eval $ac_try) 2>&5
17705 ac_status=$?
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; }; then
17708 ac_cv_func_dlopen=yes
17709else
17710 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017711sed 's/^/| /' conftest.$ac_ext >&5
17712
John Criswell47fdd832003-07-14 16:52:07 +000017713ac_cv_func_dlopen=no
17714fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017715rm -f conftest.err conftest.$ac_objext \
17716 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017717fi
17718echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17719echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17720if test $ac_cv_func_dlopen = yes; then
17721 lt_cv_dlopen="dlopen"
17722else
17723 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17724echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17725if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17726 echo $ECHO_N "(cached) $ECHO_C" >&6
17727else
17728 ac_check_lib_save_LIBS=$LIBS
17729LIBS="-ldl $LIBS"
17730cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017731/* confdefs.h. */
17732_ACEOF
17733cat confdefs.h >>conftest.$ac_ext
17734cat >>conftest.$ac_ext <<_ACEOF
17735/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017736
17737/* Override any gcc2 internal prototype to avoid an error. */
17738#ifdef __cplusplus
17739extern "C"
17740#endif
17741/* We use char because int might match the return type of a gcc2
17742 builtin and then its argument prototype would still apply. */
17743char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017744int
17745main ()
17746{
17747dlopen ();
17748 ;
17749 return 0;
17750}
17751_ACEOF
17752rm -f conftest.$ac_objext conftest$ac_exeext
17753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017754 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017755 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017756 grep -v '^ *+' conftest.er1 >conftest.err
17757 rm -f conftest.er1
17758 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017761 { ac_try='test -z "$ac_cxx_werror_flag"
17762 || test ! -s conftest.err'
17763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764 (eval $ac_try) 2>&5
17765 ac_status=$?
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; } &&
17768 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770 (eval $ac_try) 2>&5
17771 ac_status=$?
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; }; then
17774 ac_cv_lib_dl_dlopen=yes
17775else
17776 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017777sed 's/^/| /' conftest.$ac_ext >&5
17778
John Criswell47fdd832003-07-14 16:52:07 +000017779ac_cv_lib_dl_dlopen=no
17780fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017781rm -f conftest.err conftest.$ac_objext \
17782 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017783LIBS=$ac_check_lib_save_LIBS
17784fi
17785echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17786echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17787if test $ac_cv_lib_dl_dlopen = yes; then
17788 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17789else
17790 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17791echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17792if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17793 echo $ECHO_N "(cached) $ECHO_C" >&6
17794else
17795 ac_check_lib_save_LIBS=$LIBS
17796LIBS="-lsvld $LIBS"
17797cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017798/* confdefs.h. */
17799_ACEOF
17800cat confdefs.h >>conftest.$ac_ext
17801cat >>conftest.$ac_ext <<_ACEOF
17802/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017803
17804/* Override any gcc2 internal prototype to avoid an error. */
17805#ifdef __cplusplus
17806extern "C"
17807#endif
17808/* We use char because int might match the return type of a gcc2
17809 builtin and then its argument prototype would still apply. */
17810char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017811int
17812main ()
17813{
17814dlopen ();
17815 ;
17816 return 0;
17817}
17818_ACEOF
17819rm -f conftest.$ac_objext conftest$ac_exeext
17820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017821 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017822 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017823 grep -v '^ *+' conftest.er1 >conftest.err
17824 rm -f conftest.er1
17825 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017828 { ac_try='test -z "$ac_cxx_werror_flag"
17829 || test ! -s conftest.err'
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17832 ac_status=$?
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; } &&
17835 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837 (eval $ac_try) 2>&5
17838 ac_status=$?
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; }; then
17841 ac_cv_lib_svld_dlopen=yes
17842else
17843 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017844sed 's/^/| /' conftest.$ac_ext >&5
17845
John Criswell47fdd832003-07-14 16:52:07 +000017846ac_cv_lib_svld_dlopen=no
17847fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017848rm -f conftest.err conftest.$ac_objext \
17849 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017850LIBS=$ac_check_lib_save_LIBS
17851fi
17852echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17853echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17854if test $ac_cv_lib_svld_dlopen = yes; then
17855 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17856else
17857 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17858echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17859if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17860 echo $ECHO_N "(cached) $ECHO_C" >&6
17861else
17862 ac_check_lib_save_LIBS=$LIBS
17863LIBS="-ldld $LIBS"
17864cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017865/* confdefs.h. */
17866_ACEOF
17867cat confdefs.h >>conftest.$ac_ext
17868cat >>conftest.$ac_ext <<_ACEOF
17869/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017870
17871/* Override any gcc2 internal prototype to avoid an error. */
17872#ifdef __cplusplus
17873extern "C"
17874#endif
17875/* We use char because int might match the return type of a gcc2
17876 builtin and then its argument prototype would still apply. */
17877char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017878int
17879main ()
17880{
17881dld_link ();
17882 ;
17883 return 0;
17884}
17885_ACEOF
17886rm -f conftest.$ac_objext conftest$ac_exeext
17887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017888 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017889 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017890 grep -v '^ *+' conftest.er1 >conftest.err
17891 rm -f conftest.er1
17892 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017895 { ac_try='test -z "$ac_cxx_werror_flag"
17896 || test ! -s conftest.err'
17897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17898 (eval $ac_try) 2>&5
17899 ac_status=$?
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; } &&
17902 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17904 (eval $ac_try) 2>&5
17905 ac_status=$?
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); }; }; then
17908 ac_cv_lib_dld_dld_link=yes
17909else
17910 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017911sed 's/^/| /' conftest.$ac_ext >&5
17912
John Criswell47fdd832003-07-14 16:52:07 +000017913ac_cv_lib_dld_dld_link=no
17914fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017915rm -f conftest.err conftest.$ac_objext \
17916 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017917LIBS=$ac_check_lib_save_LIBS
17918fi
17919echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17920echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17921if test $ac_cv_lib_dld_dld_link = yes; then
17922 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17923fi
17924
17925
17926fi
17927
17928
17929fi
17930
17931
17932fi
17933
17934
17935fi
17936
17937
17938fi
17939
17940 ;;
17941 esac
17942
17943 if test "x$lt_cv_dlopen" != xno; then
17944 enable_dlopen=yes
17945 else
17946 enable_dlopen=no
17947 fi
17948
17949 case $lt_cv_dlopen in
17950 dlopen)
17951 save_CPPFLAGS="$CPPFLAGS"
17952 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17953
17954 save_LDFLAGS="$LDFLAGS"
17955 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17956
17957 save_LIBS="$LIBS"
17958 LIBS="$lt_cv_dlopen_libs $LIBS"
17959
17960 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17961echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17962if test "${lt_cv_dlopen_self+set}" = set; then
17963 echo $ECHO_N "(cached) $ECHO_C" >&6
17964else
17965 if test "$cross_compiling" = yes; then :
17966 lt_cv_dlopen_self=cross
17967else
17968 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17969 lt_status=$lt_dlunknown
17970 cat > conftest.$ac_ext <<EOF
Duraid Madina775afa52005-05-16 16:33:34 +000017971#line 17971 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017972#include "confdefs.h"
17973
17974#if HAVE_DLFCN_H
17975#include <dlfcn.h>
17976#endif
17977
17978#include <stdio.h>
17979
17980#ifdef RTLD_GLOBAL
17981# define LT_DLGLOBAL RTLD_GLOBAL
17982#else
17983# ifdef DL_GLOBAL
17984# define LT_DLGLOBAL DL_GLOBAL
17985# else
17986# define LT_DLGLOBAL 0
17987# endif
17988#endif
17989
17990/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17991 find out it does not work in some platform. */
17992#ifndef LT_DLLAZY_OR_NOW
17993# ifdef RTLD_LAZY
17994# define LT_DLLAZY_OR_NOW RTLD_LAZY
17995# else
17996# ifdef DL_LAZY
17997# define LT_DLLAZY_OR_NOW DL_LAZY
17998# else
17999# ifdef RTLD_NOW
18000# define LT_DLLAZY_OR_NOW RTLD_NOW
18001# else
18002# ifdef DL_NOW
18003# define LT_DLLAZY_OR_NOW DL_NOW
18004# else
18005# define LT_DLLAZY_OR_NOW 0
18006# endif
18007# endif
18008# endif
18009# endif
18010#endif
18011
18012#ifdef __cplusplus
18013extern "C" void exit (int);
18014#endif
18015
18016void fnord() { int i=42;}
18017int main ()
18018{
18019 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18020 int status = $lt_dlunknown;
18021
18022 if (self)
18023 {
18024 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18025 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18026 /* dlclose (self); */
18027 }
18028
18029 exit (status);
18030}
18031EOF
18032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18033 (eval $ac_link) 2>&5
18034 ac_status=$?
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18037 (./conftest; exit; ) 2>/dev/null
18038 lt_status=$?
18039 case x$lt_status in
18040 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18041 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18042 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18043 esac
18044 else :
18045 # compilation failed
18046 lt_cv_dlopen_self=no
18047 fi
18048fi
18049rm -fr conftest*
18050
18051
18052fi
18053echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18054echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18055
18056 if test "x$lt_cv_dlopen_self" = xyes; then
18057 LDFLAGS="$LDFLAGS $link_static_flag"
18058 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18059echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18060if test "${lt_cv_dlopen_self_static+set}" = set; then
18061 echo $ECHO_N "(cached) $ECHO_C" >&6
18062else
18063 if test "$cross_compiling" = yes; then :
18064 lt_cv_dlopen_self_static=cross
18065else
18066 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18067 lt_status=$lt_dlunknown
18068 cat > conftest.$ac_ext <<EOF
Duraid Madina775afa52005-05-16 16:33:34 +000018069#line 18069 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018070#include "confdefs.h"
18071
18072#if HAVE_DLFCN_H
18073#include <dlfcn.h>
18074#endif
18075
18076#include <stdio.h>
18077
18078#ifdef RTLD_GLOBAL
18079# define LT_DLGLOBAL RTLD_GLOBAL
18080#else
18081# ifdef DL_GLOBAL
18082# define LT_DLGLOBAL DL_GLOBAL
18083# else
18084# define LT_DLGLOBAL 0
18085# endif
18086#endif
18087
18088/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18089 find out it does not work in some platform. */
18090#ifndef LT_DLLAZY_OR_NOW
18091# ifdef RTLD_LAZY
18092# define LT_DLLAZY_OR_NOW RTLD_LAZY
18093# else
18094# ifdef DL_LAZY
18095# define LT_DLLAZY_OR_NOW DL_LAZY
18096# else
18097# ifdef RTLD_NOW
18098# define LT_DLLAZY_OR_NOW RTLD_NOW
18099# else
18100# ifdef DL_NOW
18101# define LT_DLLAZY_OR_NOW DL_NOW
18102# else
18103# define LT_DLLAZY_OR_NOW 0
18104# endif
18105# endif
18106# endif
18107# endif
18108#endif
18109
18110#ifdef __cplusplus
18111extern "C" void exit (int);
18112#endif
18113
18114void fnord() { int i=42;}
18115int main ()
18116{
18117 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18118 int status = $lt_dlunknown;
18119
18120 if (self)
18121 {
18122 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18123 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18124 /* dlclose (self); */
18125 }
18126
18127 exit (status);
18128}
18129EOF
18130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18131 (eval $ac_link) 2>&5
18132 ac_status=$?
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18135 (./conftest; exit; ) 2>/dev/null
18136 lt_status=$?
18137 case x$lt_status in
18138 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18139 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18140 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18141 esac
18142 else :
18143 # compilation failed
18144 lt_cv_dlopen_self_static=no
18145 fi
18146fi
18147rm -fr conftest*
18148
18149
18150fi
18151echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18152echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18153 fi
18154
18155 CPPFLAGS="$save_CPPFLAGS"
18156 LDFLAGS="$save_LDFLAGS"
18157 LIBS="$save_LIBS"
18158 ;;
18159 esac
18160
18161 case $lt_cv_dlopen_self in
18162 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18163 *) enable_dlopen_self=unknown ;;
18164 esac
18165
18166 case $lt_cv_dlopen_self_static in
18167 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18168 *) enable_dlopen_self_static=unknown ;;
18169 esac
18170fi
18171
18172
18173# The else clause should only fire when bootstrapping the
18174# libtool distribution, otherwise you forgot to ship ltmain.sh
18175# with your package, and you will get complaints that there are
18176# no rules to generate ltmain.sh.
18177if test -f "$ltmain"; then
18178 # See if we are running on zsh, and set the options which allow our commands through
18179 # without removal of \ escapes.
18180 if test -n "${ZSH_VERSION+set}" ; then
18181 setopt NO_GLOB_SUBST
18182 fi
18183 # Now quote all the things that may contain metacharacters while being
18184 # careful not to overquote the AC_SUBSTed values. We take copies of the
18185 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018186 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18187 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018188 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18189 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18190 deplibs_check_method reload_flag reload_cmds need_locks \
18191 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18192 lt_cv_sys_global_symbol_to_c_name_address \
18193 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18194 old_postinstall_cmds old_postuninstall_cmds \
18195 compiler_CXX \
18196 CC_CXX \
18197 LD_CXX \
18198 lt_prog_compiler_wl_CXX \
18199 lt_prog_compiler_pic_CXX \
18200 lt_prog_compiler_static_CXX \
18201 lt_prog_compiler_no_builtin_flag_CXX \
18202 export_dynamic_flag_spec_CXX \
18203 thread_safe_flag_spec_CXX \
18204 whole_archive_flag_spec_CXX \
18205 enable_shared_with_static_runtimes_CXX \
18206 old_archive_cmds_CXX \
18207 old_archive_from_new_cmds_CXX \
18208 predep_objects_CXX \
18209 postdep_objects_CXX \
18210 predeps_CXX \
18211 postdeps_CXX \
18212 compiler_lib_search_path_CXX \
18213 archive_cmds_CXX \
18214 archive_expsym_cmds_CXX \
18215 postinstall_cmds_CXX \
18216 postuninstall_cmds_CXX \
18217 old_archive_from_expsyms_cmds_CXX \
18218 allow_undefined_flag_CXX \
18219 no_undefined_flag_CXX \
18220 export_symbols_cmds_CXX \
18221 hardcode_libdir_flag_spec_CXX \
18222 hardcode_libdir_flag_spec_ld_CXX \
18223 hardcode_libdir_separator_CXX \
18224 hardcode_automatic_CXX \
18225 module_cmds_CXX \
18226 module_expsym_cmds_CXX \
18227 lt_cv_prog_compiler_c_o_CXX \
18228 exclude_expsyms_CXX \
18229 include_expsyms_CXX; do
18230
18231 case $var in
18232 old_archive_cmds_CXX | \
18233 old_archive_from_new_cmds_CXX | \
18234 archive_cmds_CXX | \
18235 archive_expsym_cmds_CXX | \
18236 module_cmds_CXX | \
18237 module_expsym_cmds_CXX | \
18238 old_archive_from_expsyms_cmds_CXX | \
18239 export_symbols_cmds_CXX | \
18240 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18241 postinstall_cmds | postuninstall_cmds | \
18242 old_postinstall_cmds | old_postuninstall_cmds | \
18243 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18244 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018245 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 +000018246 ;;
18247 *)
18248 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18249 ;;
18250 esac
18251 done
18252
18253 case $lt_echo in
18254 *'\$0 --fallback-echo"')
18255 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18256 ;;
18257 esac
18258
18259cfgfile="$ofile"
18260
18261 cat <<__EOF__ >> "$cfgfile"
18262# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18263
18264# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18265
18266# Shell to use when invoking shell scripts.
18267SHELL=$lt_SHELL
18268
18269# Whether or not to build shared libraries.
18270build_libtool_libs=$enable_shared
18271
18272# Whether or not to build static libraries.
18273build_old_libs=$enable_static
18274
18275# Whether or not to add -lc for building shared libraries.
18276build_libtool_need_lc=$archive_cmds_need_lc_CXX
18277
18278# Whether or not to disallow shared libs when runtime libs are static
18279allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18280
18281# Whether or not to optimize for fast installation.
18282fast_install=$enable_fast_install
18283
18284# The host system.
18285host_alias=$host_alias
18286host=$host
18287
18288# An echo program that does not interpret backslashes.
18289echo=$lt_echo
18290
18291# The archiver.
18292AR=$lt_AR
18293AR_FLAGS=$lt_AR_FLAGS
18294
18295# A C compiler.
18296LTCC=$lt_LTCC
18297
18298# A language-specific compiler.
18299CC=$lt_compiler_CXX
18300
18301# Is the compiler the GNU C compiler?
18302with_gcc=$GCC_CXX
18303
18304# An ERE matcher.
18305EGREP=$lt_EGREP
18306
18307# The linker used to build libraries.
18308LD=$lt_LD_CXX
18309
18310# Whether we need hard or soft links.
18311LN_S=$lt_LN_S
18312
18313# A BSD-compatible nm program.
18314NM=$lt_NM
18315
18316# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018317STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018318
18319# Used to examine libraries when file_magic_cmd begins "file"
18320MAGIC_CMD=$MAGIC_CMD
18321
18322# Used on cygwin: DLL creation program.
18323DLLTOOL="$DLLTOOL"
18324
18325# Used on cygwin: object dumper.
18326OBJDUMP="$OBJDUMP"
18327
18328# Used on cygwin: assembler.
18329AS="$AS"
18330
18331# The name of the directory that contains temporary libtool files.
18332objdir=$objdir
18333
18334# How to create reloadable object files.
18335reload_flag=$lt_reload_flag
18336reload_cmds=$lt_reload_cmds
18337
18338# How to pass a linker flag through the compiler.
18339wl=$lt_lt_prog_compiler_wl_CXX
18340
18341# Object file suffix (normally "o").
18342objext="$ac_objext"
18343
18344# Old archive suffix (normally "a").
18345libext="$libext"
18346
18347# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018348shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018349
18350# Executable file suffix (normally "").
18351exeext="$exeext"
18352
18353# Additional compiler flags for building library objects.
18354pic_flag=$lt_lt_prog_compiler_pic_CXX
18355pic_mode=$pic_mode
18356
18357# What is the maximum length of a command?
18358max_cmd_len=$lt_cv_sys_max_cmd_len
18359
18360# Does compiler simultaneously support -c and -o options?
18361compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18362
18363# Must we lock files when doing compilation ?
18364need_locks=$lt_need_locks
18365
18366# Do we need the lib prefix for modules?
18367need_lib_prefix=$need_lib_prefix
18368
18369# Do we need a version for libraries?
18370need_version=$need_version
18371
18372# Whether dlopen is supported.
18373dlopen_support=$enable_dlopen
18374
18375# Whether dlopen of programs is supported.
18376dlopen_self=$enable_dlopen_self
18377
18378# Whether dlopen of statically linked programs is supported.
18379dlopen_self_static=$enable_dlopen_self_static
18380
18381# Compiler flag to prevent dynamic linking.
18382link_static_flag=$lt_lt_prog_compiler_static_CXX
18383
18384# Compiler flag to turn off builtin functions.
18385no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18386
18387# Compiler flag to allow reflexive dlopens.
18388export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18389
18390# Compiler flag to generate shared objects directly from archives.
18391whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18392
18393# Compiler flag to generate thread-safe objects.
18394thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18395
18396# Library versioning type.
18397version_type=$version_type
18398
18399# Format of library name prefix.
18400libname_spec=$lt_libname_spec
18401
18402# List of archive names. First name is the real one, the rest are links.
18403# The last name is the one that the linker finds with -lNAME.
18404library_names_spec=$lt_library_names_spec
18405
18406# The coded name of the library, if different from the real name.
18407soname_spec=$lt_soname_spec
18408
18409# Commands used to build and install an old-style archive.
18410RANLIB=$lt_RANLIB
18411old_archive_cmds=$lt_old_archive_cmds_CXX
18412old_postinstall_cmds=$lt_old_postinstall_cmds
18413old_postuninstall_cmds=$lt_old_postuninstall_cmds
18414
18415# Create an old-style archive from a shared archive.
18416old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18417
18418# Create a temporary old-style archive to link instead of a shared archive.
18419old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18420
18421# Commands used to build and install a shared archive.
18422archive_cmds=$lt_archive_cmds_CXX
18423archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18424postinstall_cmds=$lt_postinstall_cmds
18425postuninstall_cmds=$lt_postuninstall_cmds
18426
18427# Commands used to build a loadable module (assumed same as above if empty)
18428module_cmds=$lt_module_cmds_CXX
18429module_expsym_cmds=$lt_module_expsym_cmds_CXX
18430
18431# Commands to strip libraries.
18432old_striplib=$lt_old_striplib
18433striplib=$lt_striplib
18434
18435# Dependencies to place before the objects being linked to create a
18436# shared library.
18437predep_objects=$lt_predep_objects_CXX
18438
18439# Dependencies to place after the objects being linked to create a
18440# shared library.
18441postdep_objects=$lt_postdep_objects_CXX
18442
18443# Dependencies to place before the objects being linked to create a
18444# shared library.
18445predeps=$lt_predeps_CXX
18446
18447# Dependencies to place after the objects being linked to create a
18448# shared library.
18449postdeps=$lt_postdeps_CXX
18450
18451# The library search path used internally by the compiler when linking
18452# a shared library.
18453compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18454
18455# Method to check whether dependent libraries are shared objects.
18456deplibs_check_method=$lt_deplibs_check_method
18457
18458# Command to use when deplibs_check_method == file_magic.
18459file_magic_cmd=$lt_file_magic_cmd
18460
18461# Flag that allows shared libraries with undefined symbols to be built.
18462allow_undefined_flag=$lt_allow_undefined_flag_CXX
18463
18464# Flag that forces no undefined symbols.
18465no_undefined_flag=$lt_no_undefined_flag_CXX
18466
18467# Commands used to finish a libtool library installation in a directory.
18468finish_cmds=$lt_finish_cmds
18469
18470# Same as above, but a single script fragment to be evaled but not shown.
18471finish_eval=$lt_finish_eval
18472
18473# Take the output of nm and produce a listing of raw symbols and C names.
18474global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18475
18476# Transform the output of nm in a proper C declaration
18477global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18478
18479# Transform the output of nm in a C name address pair
18480global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18481
18482# This is the shared library runtime path variable.
18483runpath_var=$runpath_var
18484
18485# This is the shared library path variable.
18486shlibpath_var=$shlibpath_var
18487
18488# Is shlibpath searched before the hard-coded library search path?
18489shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18490
18491# How to hardcode a shared library path into an executable.
18492hardcode_action=$hardcode_action_CXX
18493
18494# Whether we should hardcode library paths into libraries.
18495hardcode_into_libs=$hardcode_into_libs
18496
18497# Flag to hardcode \$libdir into a binary during linking.
18498# This must work even if \$libdir does not exist.
18499hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18500
18501# If ld is used when linking, flag to hardcode \$libdir into
18502# a binary during linking. This must work even if \$libdir does
18503# not exist.
18504hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18505
18506# Whether we need a single -rpath flag with a separated argument.
18507hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18508
18509# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18510# resulting binary.
18511hardcode_direct=$hardcode_direct_CXX
18512
18513# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18514# resulting binary.
18515hardcode_minus_L=$hardcode_minus_L_CXX
18516
18517# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18518# the resulting binary.
18519hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18520
18521# Set to yes if building a shared library automatically hardcodes DIR into the library
18522# and all subsequent libraries and executables linked against it.
18523hardcode_automatic=$hardcode_automatic_CXX
18524
18525# Variables whose values should be saved in libtool wrapper scripts and
18526# restored at relink time.
18527variables_saved_for_relink="$variables_saved_for_relink"
18528
18529# Whether libtool must link a program against all its dependency libraries.
18530link_all_deplibs=$link_all_deplibs_CXX
18531
18532# Compile-time system search path for libraries
18533sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18534
18535# Run-time system search path for libraries
18536sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18537
18538# Fix the shell variable \$srcfile for the compiler.
18539fix_srcfile_path="$fix_srcfile_path_CXX"
18540
18541# Set to yes if exported symbols are required.
18542always_export_symbols=$always_export_symbols_CXX
18543
18544# The commands to list exported symbols.
18545export_symbols_cmds=$lt_export_symbols_cmds_CXX
18546
18547# The commands to extract the exported symbol list from a shared archive.
18548extract_expsyms_cmds=$lt_extract_expsyms_cmds
18549
18550# Symbols that should not be listed in the preloaded symbols.
18551exclude_expsyms=$lt_exclude_expsyms_CXX
18552
18553# Symbols that must always be exported.
18554include_expsyms=$lt_include_expsyms_CXX
18555
18556# ### END LIBTOOL TAG CONFIG: $tagname
18557
18558__EOF__
18559
18560
18561else
18562 # If there is no Makefile yet, we rely on a make rule to execute
18563 # `config.status --recheck' to rerun these tests and create the
18564 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018565 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18566 if test -f "$ltmain_in"; then
18567 test -f Makefile && make "$ltmain"
18568 fi
John Criswell47fdd832003-07-14 16:52:07 +000018569fi
18570
18571
18572ac_ext=c
18573ac_cpp='$CPP $CPPFLAGS'
18574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18576ac_compiler_gnu=$ac_cv_c_compiler_gnu
18577
18578CC=$lt_save_CC
18579LDCXX=$LD
18580LD=$lt_save_LD
18581GCC=$lt_save_GCC
18582with_gnu_ldcxx=$with_gnu_ld
18583with_gnu_ld=$lt_save_with_gnu_ld
18584lt_cv_path_LDCXX=$lt_cv_path_LD
18585lt_cv_path_LD=$lt_save_path_LD
18586lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18587lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18588
18589 else
18590 tagname=""
18591 fi
18592 ;;
18593
18594 F77)
18595 if test -n "$F77" && test "X$F77" != "Xno"; then
18596
18597ac_ext=f
18598ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18599ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18600ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18601
18602
18603archive_cmds_need_lc_F77=no
18604allow_undefined_flag_F77=
18605always_export_symbols_F77=no
18606archive_expsym_cmds_F77=
18607export_dynamic_flag_spec_F77=
18608hardcode_direct_F77=no
18609hardcode_libdir_flag_spec_F77=
18610hardcode_libdir_flag_spec_ld_F77=
18611hardcode_libdir_separator_F77=
18612hardcode_minus_L_F77=no
18613hardcode_automatic_F77=no
18614module_cmds_F77=
18615module_expsym_cmds_F77=
18616link_all_deplibs_F77=unknown
18617old_archive_cmds_F77=$old_archive_cmds
18618no_undefined_flag_F77=
18619whole_archive_flag_spec_F77=
18620enable_shared_with_static_runtimes_F77=no
18621
18622# Source file extension for f77 test sources.
18623ac_ext=f
18624
18625# Object file extension for compiled f77 test sources.
18626objext=o
18627objext_F77=$objext
18628
18629# Code to be used in simple compile tests
18630lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18631
18632# Code to be used in simple link tests
18633lt_simple_link_test_code=" program t\n end\n"
18634
18635# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18636
18637# If no C compiler was specified, use CC.
18638LTCC=${LTCC-"$CC"}
18639
18640# Allow CC to be a program name with arguments.
18641compiler=$CC
18642
18643
18644# Allow CC to be a program name with arguments.
18645lt_save_CC="$CC"
18646CC=${F77-"f77"}
18647compiler=$CC
18648compiler_F77=$CC
18649cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18650
18651echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18652echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18653echo "$as_me:$LINENO: result: $can_build_shared" >&5
18654echo "${ECHO_T}$can_build_shared" >&6
18655
18656echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18657echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18658test "$can_build_shared" = "no" && enable_shared=no
18659
18660# On AIX, shared libraries and static libraries use the same namespace, and
18661# are all built from PIC.
18662case "$host_os" in
18663aix3*)
18664 test "$enable_shared" = yes && enable_static=no
18665 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018666 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018667 postinstall_cmds='$RANLIB $lib'
18668 fi
18669 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018670aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018671 test "$enable_shared" = yes && enable_static=no
18672 ;;
18673esac
18674echo "$as_me:$LINENO: result: $enable_shared" >&5
18675echo "${ECHO_T}$enable_shared" >&6
18676
18677echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18678echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18679# Make sure either enable_shared or enable_static is yes.
18680test "$enable_shared" = yes || enable_static=yes
18681echo "$as_me:$LINENO: result: $enable_static" >&5
18682echo "${ECHO_T}$enable_static" >&6
18683
18684test "$ld_shlibs_F77" = no && can_build_shared=no
18685
18686GCC_F77="$G77"
18687LD_F77="$LD"
18688
18689lt_prog_compiler_wl_F77=
18690lt_prog_compiler_pic_F77=
18691lt_prog_compiler_static_F77=
18692
18693echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18694echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18695
18696 if test "$GCC" = yes; then
18697 lt_prog_compiler_wl_F77='-Wl,'
18698 lt_prog_compiler_static_F77='-static'
18699
18700 case $host_os in
18701 aix*)
18702 # All AIX code is PIC.
18703 if test "$host_cpu" = ia64; then
18704 # AIX 5 now supports IA64 processor
18705 lt_prog_compiler_static_F77='-Bstatic'
18706 fi
18707 ;;
18708
18709 amigaos*)
18710 # FIXME: we need at least 68020 code to build shared libraries, but
18711 # adding the `-m68020' flag to GCC prevents building anything better,
18712 # like `-m68040'.
18713 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18714 ;;
18715
18716 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18717 # PIC is the default for these OSes.
18718 ;;
18719
18720 mingw* | pw32* | os2*)
18721 # This hack is so that the source file can tell whether it is being
18722 # built for inclusion in a dll (and should export symbols for example).
18723 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18724 ;;
18725
18726 darwin* | rhapsody*)
18727 # PIC is the default on this platform
18728 # Common symbols not allowed in MH_DYLIB files
18729 lt_prog_compiler_pic_F77='-fno-common'
18730 ;;
18731
18732 msdosdjgpp*)
18733 # Just because we use GCC doesn't mean we suddenly get shared libraries
18734 # on systems that don't support them.
18735 lt_prog_compiler_can_build_shared_F77=no
18736 enable_shared=no
18737 ;;
18738
18739 sysv4*MP*)
18740 if test -d /usr/nec; then
18741 lt_prog_compiler_pic_F77=-Kconform_pic
18742 fi
18743 ;;
18744
18745 hpux*)
18746 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18747 # not for PA HP-UX.
18748 case "$host_cpu" in
18749 hppa*64*|ia64*)
18750 # +Z the default
18751 ;;
18752 *)
18753 lt_prog_compiler_pic_F77='-fPIC'
18754 ;;
18755 esac
18756 ;;
18757
18758 *)
18759 lt_prog_compiler_pic_F77='-fPIC'
18760 ;;
18761 esac
18762 else
18763 # PORTME Check for flag to pass linker flags through the system compiler.
18764 case $host_os in
18765 aix*)
18766 lt_prog_compiler_wl_F77='-Wl,'
18767 if test "$host_cpu" = ia64; then
18768 # AIX 5 now supports IA64 processor
18769 lt_prog_compiler_static_F77='-Bstatic'
18770 else
18771 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18772 fi
18773 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018774 darwin*)
18775 # PIC is the default on this platform
18776 # Common symbols not allowed in MH_DYLIB files
18777 case "$cc_basename" in
18778 xlc*)
18779 lt_prog_compiler_pic_F77='-qnocommon'
18780 lt_prog_compiler_wl_F77='-Wl,'
18781 ;;
18782 esac
18783 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018784
18785 mingw* | pw32* | os2*)
18786 # This hack is so that the source file can tell whether it is being
18787 # built for inclusion in a dll (and should export symbols for example).
18788 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18789 ;;
18790
18791 hpux9* | hpux10* | hpux11*)
18792 lt_prog_compiler_wl_F77='-Wl,'
18793 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18794 # not for PA HP-UX.
18795 case "$host_cpu" in
18796 hppa*64*|ia64*)
18797 # +Z the default
18798 ;;
18799 *)
18800 lt_prog_compiler_pic_F77='+Z'
18801 ;;
18802 esac
18803 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18804 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18805 ;;
18806
18807 irix5* | irix6* | nonstopux*)
18808 lt_prog_compiler_wl_F77='-Wl,'
18809 # PIC (with -KPIC) is the default.
18810 lt_prog_compiler_static_F77='-non_shared'
18811 ;;
18812
18813 newsos6)
18814 lt_prog_compiler_pic_F77='-KPIC'
18815 lt_prog_compiler_static_F77='-Bstatic'
18816 ;;
18817
18818 linux*)
18819 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018820 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000018821 lt_prog_compiler_wl_F77='-Wl,'
18822 lt_prog_compiler_pic_F77='-KPIC'
18823 lt_prog_compiler_static_F77='-static'
18824 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018825 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000018826 lt_prog_compiler_wl_F77='-Wl,'
18827 # All Alpha code is PIC.
18828 lt_prog_compiler_static_F77='-non_shared'
18829 ;;
18830 esac
18831 ;;
18832
18833 osf3* | osf4* | osf5*)
18834 lt_prog_compiler_wl_F77='-Wl,'
18835 # All OSF/1 code is PIC.
18836 lt_prog_compiler_static_F77='-non_shared'
18837 ;;
18838
18839 sco3.2v5*)
18840 lt_prog_compiler_pic_F77='-Kpic'
18841 lt_prog_compiler_static_F77='-dn'
18842 ;;
18843
18844 solaris*)
18845 lt_prog_compiler_wl_F77='-Wl,'
18846 lt_prog_compiler_pic_F77='-KPIC'
18847 lt_prog_compiler_static_F77='-Bstatic'
18848 ;;
18849
18850 sunos4*)
18851 lt_prog_compiler_wl_F77='-Qoption ld '
18852 lt_prog_compiler_pic_F77='-PIC'
18853 lt_prog_compiler_static_F77='-Bstatic'
18854 ;;
18855
18856 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18857 lt_prog_compiler_wl_F77='-Wl,'
18858 lt_prog_compiler_pic_F77='-KPIC'
18859 lt_prog_compiler_static_F77='-Bstatic'
18860 ;;
18861
18862 sysv4*MP*)
18863 if test -d /usr/nec ;then
18864 lt_prog_compiler_pic_F77='-Kconform_pic'
18865 lt_prog_compiler_static_F77='-Bstatic'
18866 fi
18867 ;;
18868
18869 uts4*)
18870 lt_prog_compiler_pic_F77='-pic'
18871 lt_prog_compiler_static_F77='-Bstatic'
18872 ;;
18873
18874 *)
18875 lt_prog_compiler_can_build_shared_F77=no
18876 ;;
18877 esac
18878 fi
18879
18880echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18881echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18882
18883#
18884# Check to make sure the PIC flag actually works.
18885#
18886if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018887
18888echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018889echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18890if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18891 echo $ECHO_N "(cached) $ECHO_C" >&6
18892else
18893 lt_prog_compiler_pic_works_F77=no
18894 ac_outfile=conftest.$ac_objext
18895 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18896 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18897 # Insert the option either (1) after the last *FLAGS variable, or
18898 # (2) before a word containing "conftest.", or (3) at the end.
18899 # Note that $ac_compile itself does not contain backslashes and begins
18900 # with a dollar sign (not a hyphen), so the echo should work correctly.
18901 # The option is referenced via a variable to avoid confusing sed.
18902 lt_compile=`echo "$ac_compile" | $SED \
18903 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18905 -e 's:$: $lt_compiler_flag:'`
Duraid Madina775afa52005-05-16 16:33:34 +000018906 (eval echo "\"\$as_me:18906: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018907 (eval "$lt_compile" 2>conftest.err)
18908 ac_status=$?
18909 cat conftest.err >&5
Duraid Madina775afa52005-05-16 16:33:34 +000018910 echo "$as_me:18910: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018911 if (exit $ac_status) && test -s "$ac_outfile"; then
18912 # The compiler can only warn and ignore the option if not recognized
18913 # So say no if there are warnings
18914 if test ! -s conftest.err; then
18915 lt_prog_compiler_pic_works_F77=yes
18916 fi
18917 fi
18918 $rm conftest*
18919
18920fi
18921echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18922echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18923
18924if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18925 case $lt_prog_compiler_pic_F77 in
18926 "" | " "*) ;;
18927 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18928 esac
18929else
18930 lt_prog_compiler_pic_F77=
18931 lt_prog_compiler_can_build_shared_F77=no
18932fi
18933
18934fi
18935case "$host_os" in
18936 # For platforms which do not support PIC, -DPIC is meaningless:
18937 *djgpp*)
18938 lt_prog_compiler_pic_F77=
18939 ;;
18940 *)
18941 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18942 ;;
18943esac
18944
18945echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18946echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18947if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18948 echo $ECHO_N "(cached) $ECHO_C" >&6
18949else
18950 lt_cv_prog_compiler_c_o_F77=no
18951 $rm -r conftest 2>/dev/null
18952 mkdir conftest
18953 cd conftest
18954 mkdir out
18955 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18956
John Criswell47fdd832003-07-14 16:52:07 +000018957 lt_compiler_flag="-o out/conftest2.$ac_objext"
18958 # Insert the option either (1) after the last *FLAGS variable, or
18959 # (2) before a word containing "conftest.", or (3) at the end.
18960 # Note that $ac_compile itself does not contain backslashes and begins
18961 # with a dollar sign (not a hyphen), so the echo should work correctly.
18962 lt_compile=`echo "$ac_compile" | $SED \
18963 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18965 -e 's:$: $lt_compiler_flag:'`
Duraid Madina775afa52005-05-16 16:33:34 +000018966 (eval echo "\"\$as_me:18966: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018967 (eval "$lt_compile" 2>out/conftest.err)
18968 ac_status=$?
18969 cat out/conftest.err >&5
Duraid Madina775afa52005-05-16 16:33:34 +000018970 echo "$as_me:18970: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018971 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18972 then
18973 # The compiler can only warn and ignore the option if not recognized
18974 # So say no if there are warnings
18975 if test ! -s out/conftest.err; then
18976 lt_cv_prog_compiler_c_o_F77=yes
18977 fi
18978 fi
18979 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000018980 $rm conftest*
18981 # SGI C++ compiler will create directory out/ii_files/ for
18982 # template instantiation
18983 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18984 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000018985 cd ..
18986 rmdir conftest
18987 $rm conftest*
18988
18989fi
18990echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18991echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18992
18993
18994hard_links="nottested"
18995if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18996 # do not overwrite the value of need_locks provided by the user
18997 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18998echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18999 hard_links=yes
19000 $rm conftest*
19001 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19002 touch conftest.a
19003 ln conftest.a conftest.b 2>&5 || hard_links=no
19004 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19005 echo "$as_me:$LINENO: result: $hard_links" >&5
19006echo "${ECHO_T}$hard_links" >&6
19007 if test "$hard_links" = no; then
19008 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19009echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19010 need_locks=warn
19011 fi
19012else
19013 need_locks=no
19014fi
19015
19016echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19017echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19018
19019 runpath_var=
19020 allow_undefined_flag_F77=
19021 enable_shared_with_static_runtimes_F77=no
19022 archive_cmds_F77=
19023 archive_expsym_cmds_F77=
19024 old_archive_From_new_cmds_F77=
19025 old_archive_from_expsyms_cmds_F77=
19026 export_dynamic_flag_spec_F77=
19027 whole_archive_flag_spec_F77=
19028 thread_safe_flag_spec_F77=
19029 hardcode_libdir_flag_spec_F77=
19030 hardcode_libdir_flag_spec_ld_F77=
19031 hardcode_libdir_separator_F77=
19032 hardcode_direct_F77=no
19033 hardcode_minus_L_F77=no
19034 hardcode_shlibpath_var_F77=unsupported
19035 link_all_deplibs_F77=unknown
19036 hardcode_automatic_F77=no
19037 module_cmds_F77=
19038 module_expsym_cmds_F77=
19039 always_export_symbols_F77=no
19040 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19041 # include_expsyms should be a list of space-separated symbols to be *always*
19042 # included in the symbol list
19043 include_expsyms_F77=
19044 # exclude_expsyms can be an extended regexp of symbols to exclude
19045 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19046 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19047 # as well as any symbol that contains `d'.
19048 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19049 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19050 # platforms (ab)use it in PIC code, but their linkers get confused if
19051 # the symbol is explicitly referenced. Since portable code cannot
19052 # rely on this symbol name, it's probably fine to never include it in
19053 # preloaded symbol tables.
19054 extract_expsyms_cmds=
19055
19056 case $host_os in
19057 cygwin* | mingw* | pw32*)
19058 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19059 # When not using gcc, we currently assume that we are using
19060 # Microsoft Visual C++.
19061 if test "$GCC" != yes; then
19062 with_gnu_ld=no
19063 fi
19064 ;;
19065 openbsd*)
19066 with_gnu_ld=no
19067 ;;
19068 esac
19069
19070 ld_shlibs_F77=yes
19071 if test "$with_gnu_ld" = yes; then
19072 # If archive_cmds runs LD, not CC, wlarc should be empty
19073 wlarc='${wl}'
19074
19075 # See if GNU ld supports shared libraries.
19076 case $host_os in
19077 aix3* | aix4* | aix5*)
19078 # On AIX/PPC, the GNU linker is very broken
19079 if test "$host_cpu" != ia64; then
19080 ld_shlibs_F77=no
19081 cat <<EOF 1>&2
19082
19083*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19084*** to be unable to reliably create shared libraries on AIX.
19085*** Therefore, libtool is disabling shared libraries support. If you
19086*** really care for shared libraries, you may want to modify your PATH
19087*** so that a non-GNU linker is found, and then restart.
19088
19089EOF
19090 fi
19091 ;;
19092
19093 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019094 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 +000019095 hardcode_libdir_flag_spec_F77='-L$libdir'
19096 hardcode_minus_L_F77=yes
19097
19098 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19099 # that the semantics of dynamic libraries on AmigaOS, at least up
19100 # to version 4, is to share data among multiple programs linked
19101 # with the same dynamic library. Since this doesn't match the
19102 # behavior of shared libraries on other platforms, we can't use
19103 # them.
19104 ld_shlibs_F77=no
19105 ;;
19106
19107 beos*)
19108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19109 allow_undefined_flag_F77=unsupported
19110 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19111 # support --undefined. This deserves some investigation. FIXME
19112 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19113 else
19114 ld_shlibs_F77=no
19115 fi
19116 ;;
19117
19118 cygwin* | mingw* | pw32*)
19119 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19120 # as there is no search path for DLLs.
19121 hardcode_libdir_flag_spec_F77='-L$libdir'
19122 allow_undefined_flag_F77=unsupported
19123 always_export_symbols_F77=no
19124 enable_shared_with_static_runtimes_F77=yes
19125 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19126
19127 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19128 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19129 # If the export-symbols file already is a .def file (1st line
19130 # is EXPORTS), use it as is; otherwise, prepend...
19131 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19132 cp $export_symbols $output_objdir/$soname.def;
19133 else
19134 echo EXPORTS > $output_objdir/$soname.def;
19135 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019136 fi~
19137 $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 +000019138 else
19139 ld_shlibs=no
19140 fi
19141 ;;
19142
19143 netbsd*)
19144 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19145 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19146 wlarc=
19147 else
19148 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19149 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19150 fi
19151 ;;
19152
19153 solaris* | sysv5*)
19154 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19155 ld_shlibs_F77=no
19156 cat <<EOF 1>&2
19157
19158*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19159*** create shared libraries on Solaris systems. Therefore, libtool
19160*** is disabling shared libraries support. We urge you to upgrade GNU
19161*** binutils to release 2.9.1 or newer. Another option is to modify
19162*** your PATH or compiler configuration so that the native linker is
19163*** used, and then restart.
19164
19165EOF
19166 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19167 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19168 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19169 else
19170 ld_shlibs_F77=no
19171 fi
19172 ;;
19173
19174 sunos4*)
19175 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19176 wlarc=
19177 hardcode_direct_F77=yes
19178 hardcode_shlibpath_var_F77=no
19179 ;;
19180
Reid Spencer2706f8c2004-09-19 23:53:36 +000019181 linux*)
19182 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19183 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19184 archive_cmds_F77="$tmp_archive_cmds"
19185 supports_anon_versioning=no
19186 case `$LD -v 2>/dev/null` in
19187 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19188 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19189 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19190 *\ 2.11.*) ;; # other 2.11 versions
19191 *) supports_anon_versioning=yes ;;
19192 esac
19193 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019194 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19195cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19196$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019197 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19198 else
19199 archive_expsym_cmds_F77="$tmp_archive_cmds"
19200 fi
19201 else
19202 ld_shlibs_F77=no
19203 fi
19204 ;;
19205
John Criswell47fdd832003-07-14 16:52:07 +000019206 *)
19207 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19208 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19209 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19210 else
19211 ld_shlibs_F77=no
19212 fi
19213 ;;
19214 esac
19215
19216 if test "$ld_shlibs_F77" = yes; then
19217 runpath_var=LD_RUN_PATH
19218 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19219 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19220 # ancient GNU ld didn't support --whole-archive et. al.
19221 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19222 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19223 else
19224 whole_archive_flag_spec_F77=
19225 fi
19226 fi
19227 else
19228 # PORTME fill in a description of your system's linker (not GNU ld)
19229 case $host_os in
19230 aix3*)
19231 allow_undefined_flag_F77=unsupported
19232 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019233 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 +000019234 # Note: this linker hardcodes the directories in LIBPATH if there
19235 # are no directories specified by -L.
19236 hardcode_minus_L_F77=yes
19237 if test "$GCC" = yes && test -z "$link_static_flag"; then
19238 # Neither direct hardcoding nor static linking is supported with a
19239 # broken collect2.
19240 hardcode_direct_F77=unsupported
19241 fi
19242 ;;
19243
19244 aix4* | aix5*)
19245 if test "$host_cpu" = ia64; then
19246 # On IA64, the linker does run time linking by default, so we don't
19247 # have to do anything special.
19248 aix_use_runtimelinking=no
19249 exp_sym_flag='-Bexport'
19250 no_entry_flag=""
19251 else
19252 # If we're using GNU nm, then we don't want the "-C" option.
19253 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19254 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19255 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'
19256 else
19257 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'
19258 fi
19259 aix_use_runtimelinking=no
19260
19261 # Test if we are trying to use run time linking or normal
19262 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19263 # need to do runtime linking.
19264 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19265 for ld_flag in $LDFLAGS; do
19266 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19267 aix_use_runtimelinking=yes
19268 break
19269 fi
19270 done
19271 esac
19272
19273 exp_sym_flag='-bexport'
19274 no_entry_flag='-bnoentry'
19275 fi
19276
19277 # When large executables or shared objects are built, AIX ld can
19278 # have problems creating the table of contents. If linking a library
19279 # or program results in "error TOC overflow" add -mminimal-toc to
19280 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19281 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19282
19283 archive_cmds_F77=''
19284 hardcode_direct_F77=yes
19285 hardcode_libdir_separator_F77=':'
19286 link_all_deplibs_F77=yes
19287
19288 if test "$GCC" = yes; then
19289 case $host_os in aix4.012|aix4.012.*)
19290 # We only want to do this on AIX 4.2 and lower, the check
19291 # below for broken collect2 doesn't work under 4.3+
19292 collect2name=`${CC} -print-prog-name=collect2`
19293 if test -f "$collect2name" && \
19294 strings "$collect2name" | grep resolve_lib_name >/dev/null
19295 then
19296 # We have reworked collect2
19297 hardcode_direct_F77=yes
19298 else
19299 # We have old collect2
19300 hardcode_direct_F77=unsupported
19301 # It fails to find uninstalled libraries when the uninstalled
19302 # path is not listed in the libpath. Setting hardcode_minus_L
19303 # to unsupported forces relinking
19304 hardcode_minus_L_F77=yes
19305 hardcode_libdir_flag_spec_F77='-L$libdir'
19306 hardcode_libdir_separator_F77=
19307 fi
19308 esac
19309 shared_flag='-shared'
19310 else
19311 # not using gcc
19312 if test "$host_cpu" = ia64; then
19313 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19314 # chokes on -Wl,-G. The following line is correct:
19315 shared_flag='-G'
19316 else
19317 if test "$aix_use_runtimelinking" = yes; then
19318 shared_flag='${wl}-G'
19319 else
19320 shared_flag='${wl}-bM:SRE'
19321 fi
19322 fi
19323 fi
19324
19325 # It seems that -bexpall does not export symbols beginning with
19326 # underscore (_), so it is better to generate a list of symbols to export.
19327 always_export_symbols_F77=yes
19328 if test "$aix_use_runtimelinking" = yes; then
19329 # Warning - without using the other runtime loading flags (-brtl),
19330 # -berok will link without error, but may produce a broken library.
19331 allow_undefined_flag_F77='-berok'
19332 # Determine the default libpath from the value encoded in an empty executable.
19333 cat >conftest.$ac_ext <<_ACEOF
19334 program main
19335
19336 end
19337_ACEOF
19338rm -f conftest.$ac_objext conftest$ac_exeext
19339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019340 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019341 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019342 grep -v '^ *+' conftest.er1 >conftest.err
19343 rm -f conftest.er1
19344 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019347 { ac_try='test -z "$ac_f77_werror_flag"
19348 || test ! -s conftest.err'
19349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19350 (eval $ac_try) 2>&5
19351 ac_status=$?
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); }; } &&
19354 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19356 (eval $ac_try) 2>&5
19357 ac_status=$?
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); }; }; then
19360
19361aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19362}'`
19363# Check for a 64-bit object if we didn't find anything.
19364if 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; }
19365}'`; fi
19366else
19367 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019368sed 's/^/| /' conftest.$ac_ext >&5
19369
John Criswell47fdd832003-07-14 16:52:07 +000019370fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019371rm -f conftest.err conftest.$ac_objext \
19372 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019373if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19374
19375 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19376 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"
19377 else
19378 if test "$host_cpu" = ia64; then
19379 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19380 allow_undefined_flag_F77="-z nodefs"
19381 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"
19382 else
19383 # Determine the default libpath from the value encoded in an empty executable.
19384 cat >conftest.$ac_ext <<_ACEOF
19385 program main
19386
19387 end
19388_ACEOF
19389rm -f conftest.$ac_objext conftest$ac_exeext
19390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019391 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019392 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019393 grep -v '^ *+' conftest.er1 >conftest.err
19394 rm -f conftest.er1
19395 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019398 { ac_try='test -z "$ac_f77_werror_flag"
19399 || test ! -s conftest.err'
19400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19401 (eval $ac_try) 2>&5
19402 ac_status=$?
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); }; } &&
19405 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19407 (eval $ac_try) 2>&5
19408 ac_status=$?
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); }; }; then
19411
19412aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19413}'`
19414# Check for a 64-bit object if we didn't find anything.
19415if 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; }
19416}'`; fi
19417else
19418 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019419sed 's/^/| /' conftest.$ac_ext >&5
19420
John Criswell47fdd832003-07-14 16:52:07 +000019421fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019422rm -f conftest.err conftest.$ac_objext \
19423 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019424if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19425
19426 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19427 # Warning - without using the other run time loading flags,
19428 # -berok will link without error, but may produce a broken library.
19429 no_undefined_flag_F77=' ${wl}-bernotok'
19430 allow_undefined_flag_F77=' ${wl}-berok'
19431 # -bexpall does not export symbols beginning with underscore (_)
19432 always_export_symbols_F77=yes
19433 # Exported symbols can be pulled into shared objects from archives
19434 whole_archive_flag_spec_F77=' '
19435 archive_cmds_need_lc_F77=yes
19436 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019437 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 +000019438 fi
19439 fi
19440 ;;
19441
19442 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019443 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 +000019444 hardcode_libdir_flag_spec_F77='-L$libdir'
19445 hardcode_minus_L_F77=yes
19446 # see comment about different semantics on the GNU ld section
19447 ld_shlibs_F77=no
19448 ;;
19449
Reid Spencer2706f8c2004-09-19 23:53:36 +000019450 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019451 export_dynamic_flag_spec_F77=-rdynamic
19452 ;;
19453
19454 cygwin* | mingw* | pw32*)
19455 # When not using gcc, we currently assume that we are using
19456 # Microsoft Visual C++.
19457 # hardcode_libdir_flag_spec is actually meaningless, as there is
19458 # no search path for DLLs.
19459 hardcode_libdir_flag_spec_F77=' '
19460 allow_undefined_flag_F77=unsupported
19461 # Tell ltmain to make .lib files, not .a files.
19462 libext=lib
19463 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019464 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019465 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019466 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 +000019467 # The linker will automatically build a .lib file if we build a DLL.
19468 old_archive_From_new_cmds_F77='true'
19469 # FIXME: Should let the user specify the lib program.
19470 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19471 fix_srcfile_path='`cygpath -w "$srcfile"`'
19472 enable_shared_with_static_runtimes_F77=yes
19473 ;;
19474
19475 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019476 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019477 rhapsody* | darwin1.[012])
19478 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19479 ;;
19480 *) # Darwin 1.3 on
19481 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19482 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19483 else
19484 case ${MACOSX_DEPLOYMENT_TARGET} in
19485 10.[012])
19486 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19487 ;;
19488 10.*)
19489 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19490 ;;
19491 esac
19492 fi
19493 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019494 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019495 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019496 hardcode_direct_F77=no
19497 hardcode_automatic_F77=yes
19498 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019499 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019500 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019501 if test "$GCC" = yes ; then
19502 output_verbose_link_cmd='echo'
19503 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19504 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19505 # 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 +000019506 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}'
19507 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 +000019508 else
19509 case "$cc_basename" in
19510 xlc*)
19511 output_verbose_link_cmd='echo'
19512 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19513 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19514 # 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 +000019515 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}'
19516 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 +000019517 ;;
19518 *)
19519 ld_shlibs_F77=no
19520 ;;
19521 esac
John Criswell47fdd832003-07-14 16:52:07 +000019522 fi
19523 ;;
19524
19525 dgux*)
19526 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19527 hardcode_libdir_flag_spec_F77='-L$libdir'
19528 hardcode_shlibpath_var_F77=no
19529 ;;
19530
19531 freebsd1*)
19532 ld_shlibs_F77=no
19533 ;;
19534
19535 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19536 # support. Future versions do this automatically, but an explicit c++rt0.o
19537 # does not break anything, and helps significantly (at the cost of a little
19538 # extra space).
19539 freebsd2.2*)
19540 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19541 hardcode_libdir_flag_spec_F77='-R$libdir'
19542 hardcode_direct_F77=yes
19543 hardcode_shlibpath_var_F77=no
19544 ;;
19545
19546 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19547 freebsd2*)
19548 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19549 hardcode_direct_F77=yes
19550 hardcode_minus_L_F77=yes
19551 hardcode_shlibpath_var_F77=no
19552 ;;
19553
19554 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019555 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019556 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19557 hardcode_libdir_flag_spec_F77='-R$libdir'
19558 hardcode_direct_F77=yes
19559 hardcode_shlibpath_var_F77=no
19560 ;;
19561
19562 hpux9*)
19563 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019564 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 +000019565 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019566 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 +000019567 fi
19568 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19569 hardcode_libdir_separator_F77=:
19570 hardcode_direct_F77=yes
19571
19572 # hardcode_minus_L: Not really in the search PATH,
19573 # but as the default location of the library.
19574 hardcode_minus_L_F77=yes
19575 export_dynamic_flag_spec_F77='${wl}-E'
19576 ;;
19577
19578 hpux10* | hpux11*)
19579 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19580 case "$host_cpu" in
19581 hppa*64*|ia64*)
19582 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19583 ;;
19584 *)
19585 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19586 ;;
19587 esac
19588 else
19589 case "$host_cpu" in
19590 hppa*64*|ia64*)
19591 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19592 ;;
19593 *)
19594 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19595 ;;
19596 esac
19597 fi
19598 if test "$with_gnu_ld" = no; then
19599 case "$host_cpu" in
19600 hppa*64*)
19601 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19602 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19603 hardcode_libdir_separator_F77=:
19604 hardcode_direct_F77=no
19605 hardcode_shlibpath_var_F77=no
19606 ;;
19607 ia64*)
19608 hardcode_libdir_flag_spec_F77='-L$libdir'
19609 hardcode_direct_F77=no
19610 hardcode_shlibpath_var_F77=no
19611
19612 # hardcode_minus_L: Not really in the search PATH,
19613 # but as the default location of the library.
19614 hardcode_minus_L_F77=yes
19615 ;;
19616 *)
19617 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19618 hardcode_libdir_separator_F77=:
19619 hardcode_direct_F77=yes
19620 export_dynamic_flag_spec_F77='${wl}-E'
19621
19622 # hardcode_minus_L: Not really in the search PATH,
19623 # but as the default location of the library.
19624 hardcode_minus_L_F77=yes
19625 ;;
19626 esac
19627 fi
19628 ;;
19629
19630 irix5* | irix6* | nonstopux*)
19631 if test "$GCC" = yes; then
19632 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'
19633 else
19634 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'
19635 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19636 fi
19637 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19638 hardcode_libdir_separator_F77=:
19639 link_all_deplibs_F77=yes
19640 ;;
19641
19642 netbsd*)
19643 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19644 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19645 else
19646 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19647 fi
19648 hardcode_libdir_flag_spec_F77='-R$libdir'
19649 hardcode_direct_F77=yes
19650 hardcode_shlibpath_var_F77=no
19651 ;;
19652
19653 newsos6)
19654 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19655 hardcode_direct_F77=yes
19656 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19657 hardcode_libdir_separator_F77=:
19658 hardcode_shlibpath_var_F77=no
19659 ;;
19660
19661 openbsd*)
19662 hardcode_direct_F77=yes
19663 hardcode_shlibpath_var_F77=no
19664 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19665 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019666 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 +000019667 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19668 export_dynamic_flag_spec_F77='${wl}-E'
19669 else
19670 case $host_os in
19671 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19672 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19673 hardcode_libdir_flag_spec_F77='-R$libdir'
19674 ;;
19675 *)
19676 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19677 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19678 ;;
19679 esac
19680 fi
19681 ;;
19682
19683 os2*)
19684 hardcode_libdir_flag_spec_F77='-L$libdir'
19685 hardcode_minus_L_F77=yes
19686 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019687 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 +000019688 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19689 ;;
19690
19691 osf3*)
19692 if test "$GCC" = yes; then
19693 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19694 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'
19695 else
19696 allow_undefined_flag_F77=' -expect_unresolved \*'
19697 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'
19698 fi
19699 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19700 hardcode_libdir_separator_F77=:
19701 ;;
19702
19703 osf4* | osf5*) # as osf3* with the addition of -msym flag
19704 if test "$GCC" = yes; then
19705 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19706 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'
19707 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19708 else
19709 allow_undefined_flag_F77=' -expect_unresolved \*'
19710 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 +000019711 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~
19712 $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'
19713
John Criswell47fdd832003-07-14 16:52:07 +000019714 # Both c and cxx compiler support -rpath directly
19715 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19716 fi
19717 hardcode_libdir_separator_F77=:
19718 ;;
19719
19720 sco3.2v5*)
19721 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19722 hardcode_shlibpath_var_F77=no
19723 export_dynamic_flag_spec_F77='${wl}-Bexport'
19724 runpath_var=LD_RUN_PATH
19725 hardcode_runpath_var=yes
19726 ;;
19727
19728 solaris*)
19729 no_undefined_flag_F77=' -z text'
19730 if test "$GCC" = yes; then
19731 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019732 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19733 $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 +000019734 else
19735 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019736 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19737 $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 +000019738 fi
19739 hardcode_libdir_flag_spec_F77='-R$libdir'
19740 hardcode_shlibpath_var_F77=no
19741 case $host_os in
19742 solaris2.[0-5] | solaris2.[0-5].*) ;;
19743 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19744 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19745 esac
19746 link_all_deplibs_F77=yes
19747 ;;
19748
19749 sunos4*)
19750 if test "x$host_vendor" = xsequent; then
19751 # Use $CC to link under sequent, because it throws in some extra .o
19752 # files that make .init and .fini sections work.
19753 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19754 else
19755 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19756 fi
19757 hardcode_libdir_flag_spec_F77='-L$libdir'
19758 hardcode_direct_F77=yes
19759 hardcode_minus_L_F77=yes
19760 hardcode_shlibpath_var_F77=no
19761 ;;
19762
19763 sysv4)
19764 case $host_vendor in
19765 sni)
19766 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19767 hardcode_direct_F77=yes # is this really true???
19768 ;;
19769 siemens)
19770 ## LD is ld it makes a PLAMLIB
19771 ## CC just makes a GrossModule.
19772 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19773 reload_cmds_F77='$CC -r -o $output$reload_objs'
19774 hardcode_direct_F77=no
19775 ;;
19776 motorola)
19777 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19778 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19779 ;;
19780 esac
19781 runpath_var='LD_RUN_PATH'
19782 hardcode_shlibpath_var_F77=no
19783 ;;
19784
19785 sysv4.3*)
19786 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19787 hardcode_shlibpath_var_F77=no
19788 export_dynamic_flag_spec_F77='-Bexport'
19789 ;;
19790
19791 sysv4*MP*)
19792 if test -d /usr/nec; then
19793 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19794 hardcode_shlibpath_var_F77=no
19795 runpath_var=LD_RUN_PATH
19796 hardcode_runpath_var=yes
19797 ld_shlibs_F77=yes
19798 fi
19799 ;;
19800
19801 sysv4.2uw2*)
19802 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19803 hardcode_direct_F77=yes
19804 hardcode_minus_L_F77=no
19805 hardcode_shlibpath_var_F77=no
19806 hardcode_runpath_var=yes
19807 runpath_var=LD_RUN_PATH
19808 ;;
19809
19810 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19811 no_undefined_flag_F77='${wl}-z ${wl}text'
19812 if test "$GCC" = yes; then
19813 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19814 else
19815 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19816 fi
19817 runpath_var='LD_RUN_PATH'
19818 hardcode_shlibpath_var_F77=no
19819 ;;
19820
19821 sysv5*)
19822 no_undefined_flag_F77=' -z text'
19823 # $CC -shared without GNU ld will not create a library from C++
19824 # object files and a static libstdc++, better avoid it by now
19825 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019826 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19827 $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 +000019828 hardcode_libdir_flag_spec_F77=
19829 hardcode_shlibpath_var_F77=no
19830 runpath_var='LD_RUN_PATH'
19831 ;;
19832
19833 uts4*)
19834 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19835 hardcode_libdir_flag_spec_F77='-L$libdir'
19836 hardcode_shlibpath_var_F77=no
19837 ;;
19838
19839 *)
19840 ld_shlibs_F77=no
19841 ;;
19842 esac
19843 fi
19844
19845echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19846echo "${ECHO_T}$ld_shlibs_F77" >&6
19847test "$ld_shlibs_F77" = no && can_build_shared=no
19848
19849variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19850if test "$GCC" = yes; then
19851 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19852fi
19853
19854#
19855# Do we need to explicitly link libc?
19856#
19857case "x$archive_cmds_need_lc_F77" in
19858x|xyes)
19859 # Assume -lc should be added
19860 archive_cmds_need_lc_F77=yes
19861
19862 if test "$enable_shared" = yes && test "$GCC" = yes; then
19863 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019864 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019865 # FIXME: we may have to deal with multi-command sequences.
19866 ;;
19867 '$CC '*)
19868 # Test whether the compiler implicitly links with -lc since on some
19869 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19870 # to ld, don't add -lc before -lgcc.
19871 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19872echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19873 $rm conftest*
19874 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19875
19876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19877 (eval $ac_compile) 2>&5
19878 ac_status=$?
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } 2>conftest.err; then
19881 soname=conftest
19882 lib=conftest
19883 libobjs=conftest.$ac_objext
19884 deplibs=
19885 wl=$lt_prog_compiler_wl_F77
19886 compiler_flags=-v
19887 linker_flags=-v
19888 verstring=
19889 output_objdir=.
19890 libname=conftest
19891 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19892 allow_undefined_flag_F77=
19893 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19894 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19895 ac_status=$?
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); }
19898 then
19899 archive_cmds_need_lc_F77=no
19900 else
19901 archive_cmds_need_lc_F77=yes
19902 fi
19903 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19904 else
19905 cat conftest.err 1>&5
19906 fi
19907 $rm conftest*
19908 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19909echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19910 ;;
19911 esac
19912 fi
19913 ;;
19914esac
19915
John Criswell47fdd832003-07-14 16:52:07 +000019916echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19917echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19918library_names_spec=
19919libname_spec='lib$name'
19920soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019921shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019922postinstall_cmds=
19923postuninstall_cmds=
19924finish_cmds=
19925finish_eval=
19926shlibpath_var=
19927shlibpath_overrides_runpath=unknown
19928version_type=none
19929dynamic_linker="$host_os ld.so"
19930sys_lib_dlsearch_path_spec="/lib /usr/lib"
19931if test "$GCC" = yes; then
19932 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19933 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19934 # if the path contains ";" then we assume it to be the separator
19935 # otherwise default to the standard path separator (i.e. ":") - it is
19936 # assumed that no part of a normal pathname contains ";" but that should
19937 # okay in the real world where ";" in dirpaths is itself problematic.
19938 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19939 else
19940 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19941 fi
19942else
19943 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19944fi
19945need_lib_prefix=unknown
19946hardcode_into_libs=no
19947
19948# when you set need_version to no, make sure it does not cause -set_version
19949# flags to be left without arguments
19950need_version=unknown
19951
19952case $host_os in
19953aix3*)
19954 version_type=linux
19955 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19956 shlibpath_var=LIBPATH
19957
19958 # AIX 3 has no versioning support, so we append a major version to the name.
19959 soname_spec='${libname}${release}${shared_ext}$major'
19960 ;;
19961
19962aix4* | aix5*)
19963 version_type=linux
19964 need_lib_prefix=no
19965 need_version=no
19966 hardcode_into_libs=yes
19967 if test "$host_cpu" = ia64; then
19968 # AIX 5 supports IA64
19969 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19970 shlibpath_var=LD_LIBRARY_PATH
19971 else
19972 # With GCC up to 2.95.x, collect2 would create an import file
19973 # for dependence libraries. The import file would start with
19974 # the line `#! .'. This would cause the generated library to
19975 # depend on `.', always an invalid library. This was fixed in
19976 # development snapshots of GCC prior to 3.0.
19977 case $host_os in
19978 aix4 | aix4.[01] | aix4.[01].*)
19979 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19980 echo ' yes '
19981 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19982 :
19983 else
19984 can_build_shared=no
19985 fi
19986 ;;
19987 esac
19988 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19989 # soname into executable. Probably we can add versioning support to
19990 # collect2, so additional links can be useful in future.
19991 if test "$aix_use_runtimelinking" = yes; then
19992 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19993 # instead of lib<name>.a to let people know that these are not
19994 # typical AIX shared libraries.
19995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19996 else
19997 # We preserve .a as extension for shared libraries through AIX4.2
19998 # and later when we are not doing run time linking.
19999 library_names_spec='${libname}${release}.a $libname.a'
20000 soname_spec='${libname}${release}${shared_ext}$major'
20001 fi
20002 shlibpath_var=LIBPATH
20003 fi
20004 ;;
20005
20006amigaos*)
20007 library_names_spec='$libname.ixlibrary $libname.a'
20008 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020009 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 +000020010 ;;
20011
20012beos*)
20013 library_names_spec='${libname}${shared_ext}'
20014 dynamic_linker="$host_os ld.so"
20015 shlibpath_var=LIBRARY_PATH
20016 ;;
20017
Reid Spencer2706f8c2004-09-19 23:53:36 +000020018bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020019 version_type=linux
20020 need_version=no
20021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20022 soname_spec='${libname}${release}${shared_ext}$major'
20023 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20024 shlibpath_var=LD_LIBRARY_PATH
20025 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20026 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20027 # the default ld.so.conf also contains /usr/contrib/lib and
20028 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20029 # libtool to hard-code these into programs
20030 ;;
20031
20032cygwin* | mingw* | pw32*)
20033 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020034 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020035 need_version=no
20036 need_lib_prefix=no
20037
20038 case $GCC,$host_os in
20039 yes,cygwin* | yes,mingw* | yes,pw32*)
20040 library_names_spec='$libname.dll.a'
20041 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020042 postinstall_cmds='base_file=`basename \${file}`~
20043 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20044 dldir=$destdir/`dirname \$dlpath`~
20045 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020046 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020047 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20048 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020049 $rm \$dlpath'
20050 shlibpath_overrides_runpath=yes
20051
20052 case $host_os in
20053 cygwin*)
20054 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20055 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 +000020056 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020057 ;;
20058 mingw*)
20059 # MinGW DLLs use traditional 'lib' prefix
20060 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20061 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20062 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20063 # It is most probably a Windows format PATH printed by
20064 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20065 # path with ; separators, and with drive letters. We can handle the
20066 # drive letters (cygwin fileutils understands them), so leave them,
20067 # especially as we might pass files found there to a mingw objdump,
20068 # which wouldn't understand a cygwinified path. Ahh.
20069 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20070 else
20071 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20072 fi
20073 ;;
20074 pw32*)
20075 # pw32 DLLs use 'pw' prefix rather than 'lib'
20076 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20077 ;;
20078 esac
20079 ;;
20080
20081 *)
20082 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20083 ;;
20084 esac
20085 dynamic_linker='Win32 ld.exe'
20086 # FIXME: first we should search . and the directory the executable is in
20087 shlibpath_var=PATH
20088 ;;
20089
20090darwin* | rhapsody*)
20091 dynamic_linker="$host_os dyld"
20092 version_type=darwin
20093 need_lib_prefix=no
20094 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020095 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020096 soname_spec='${libname}${release}${major}$shared_ext'
20097 shlibpath_overrides_runpath=yes
20098 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020099 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020100 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020101 if test "$GCC" = yes; then
20102 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"`
20103 else
20104 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020105 fi
20106 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20107 ;;
20108
20109dgux*)
20110 version_type=linux
20111 need_lib_prefix=no
20112 need_version=no
20113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20114 soname_spec='${libname}${release}${shared_ext}$major'
20115 shlibpath_var=LD_LIBRARY_PATH
20116 ;;
20117
20118freebsd1*)
20119 dynamic_linker=no
20120 ;;
20121
Reid Spencer2706f8c2004-09-19 23:53:36 +000020122kfreebsd*-gnu)
20123 version_type=linux
20124 need_lib_prefix=no
20125 need_version=no
20126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20127 soname_spec='${libname}${release}${shared_ext}$major'
20128 shlibpath_var=LD_LIBRARY_PATH
20129 shlibpath_overrides_runpath=no
20130 hardcode_into_libs=yes
20131 dynamic_linker='GNU ld.so'
20132 ;;
20133
John Criswell47fdd832003-07-14 16:52:07 +000020134freebsd*)
20135 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20136 version_type=freebsd-$objformat
20137 case $version_type in
20138 freebsd-elf*)
20139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20140 need_version=no
20141 need_lib_prefix=no
20142 ;;
20143 freebsd-*)
20144 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20145 need_version=yes
20146 ;;
20147 esac
20148 shlibpath_var=LD_LIBRARY_PATH
20149 case $host_os in
20150 freebsd2*)
20151 shlibpath_overrides_runpath=yes
20152 ;;
20153 freebsd3.01* | freebsdelf3.01*)
20154 shlibpath_overrides_runpath=yes
20155 hardcode_into_libs=yes
20156 ;;
20157 *) # from 3.2 on
20158 shlibpath_overrides_runpath=no
20159 hardcode_into_libs=yes
20160 ;;
20161 esac
20162 ;;
20163
20164gnu*)
20165 version_type=linux
20166 need_lib_prefix=no
20167 need_version=no
20168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20169 soname_spec='${libname}${release}${shared_ext}$major'
20170 shlibpath_var=LD_LIBRARY_PATH
20171 hardcode_into_libs=yes
20172 ;;
20173
20174hpux9* | hpux10* | hpux11*)
20175 # Give a soname corresponding to the major version so that dld.sl refuses to
20176 # link against other versions.
20177 version_type=sunos
20178 need_lib_prefix=no
20179 need_version=no
20180 case "$host_cpu" in
20181 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020182 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020183 hardcode_into_libs=yes
20184 dynamic_linker="$host_os dld.so"
20185 shlibpath_var=LD_LIBRARY_PATH
20186 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20188 soname_spec='${libname}${release}${shared_ext}$major'
20189 if test "X$HPUX_IA64_MODE" = X32; then
20190 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20191 else
20192 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20193 fi
20194 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20195 ;;
20196 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020197 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020198 hardcode_into_libs=yes
20199 dynamic_linker="$host_os dld.sl"
20200 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20201 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20203 soname_spec='${libname}${release}${shared_ext}$major'
20204 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20205 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20206 ;;
20207 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020208 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020209 dynamic_linker="$host_os dld.sl"
20210 shlibpath_var=SHLIB_PATH
20211 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20213 soname_spec='${libname}${release}${shared_ext}$major'
20214 ;;
20215 esac
20216 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20217 postinstall_cmds='chmod 555 $lib'
20218 ;;
20219
20220irix5* | irix6* | nonstopux*)
20221 case $host_os in
20222 nonstopux*) version_type=nonstopux ;;
20223 *)
20224 if test "$lt_cv_prog_gnu_ld" = yes; then
20225 version_type=linux
20226 else
20227 version_type=irix
20228 fi ;;
20229 esac
20230 need_lib_prefix=no
20231 need_version=no
20232 soname_spec='${libname}${release}${shared_ext}$major'
20233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20234 case $host_os in
20235 irix5* | nonstopux*)
20236 libsuff= shlibsuff=
20237 ;;
20238 *)
20239 case $LD in # libtool.m4 will add one of these switches to LD
20240 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20241 libsuff= shlibsuff= libmagic=32-bit;;
20242 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20243 libsuff=32 shlibsuff=N32 libmagic=N32;;
20244 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20245 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20246 *) libsuff= shlibsuff= libmagic=never-match;;
20247 esac
20248 ;;
20249 esac
20250 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20251 shlibpath_overrides_runpath=no
20252 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20253 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20254 hardcode_into_libs=yes
20255 ;;
20256
20257# No shared lib support for Linux oldld, aout, or coff.
20258linux*oldld* | linux*aout* | linux*coff*)
20259 dynamic_linker=no
20260 ;;
20261
20262# This must be Linux ELF.
20263linux*)
20264 version_type=linux
20265 need_lib_prefix=no
20266 need_version=no
20267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20268 soname_spec='${libname}${release}${shared_ext}$major'
20269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20270 shlibpath_var=LD_LIBRARY_PATH
20271 shlibpath_overrides_runpath=no
20272 # This implies no fast_install, which is unacceptable.
20273 # Some rework will be needed to allow for fast_install
20274 # before this can be enabled.
20275 hardcode_into_libs=yes
20276
Reid Spencer2706f8c2004-09-19 23:53:36 +000020277 # Append ld.so.conf contents to the search path
20278 if test -f /etc/ld.so.conf; then
20279 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20280 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20281 fi
20282
John Criswell47fdd832003-07-14 16:52:07 +000020283 # We used to test for /lib/ld.so.1 and disable shared libraries on
20284 # powerpc, because MkLinux only supported shared libraries with the
20285 # GNU dynamic linker. Since this was broken with cross compilers,
20286 # most powerpc-linux boxes support dynamic linking these days and
20287 # people can always --disable-shared, the test was removed, and we
20288 # assume the GNU/Linux dynamic linker is in use.
20289 dynamic_linker='GNU/Linux ld.so'
20290 ;;
20291
Reid Spencer2706f8c2004-09-19 23:53:36 +000020292knetbsd*-gnu)
20293 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=no
20300 hardcode_into_libs=yes
20301 dynamic_linker='GNU ld.so'
20302 ;;
20303
John Criswell47fdd832003-07-14 16:52:07 +000020304netbsd*)
20305 version_type=sunos
20306 need_lib_prefix=no
20307 need_version=no
20308 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20311 dynamic_linker='NetBSD (a.out) ld.so'
20312 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020314 soname_spec='${libname}${release}${shared_ext}$major'
20315 dynamic_linker='NetBSD ld.elf_so'
20316 fi
20317 shlibpath_var=LD_LIBRARY_PATH
20318 shlibpath_overrides_runpath=yes
20319 hardcode_into_libs=yes
20320 ;;
20321
20322newsos6)
20323 version_type=linux
20324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20325 shlibpath_var=LD_LIBRARY_PATH
20326 shlibpath_overrides_runpath=yes
20327 ;;
20328
Reid Spencer2706f8c2004-09-19 23:53:36 +000020329nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020330 version_type=linux
20331 need_lib_prefix=no
20332 need_version=no
20333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20334 soname_spec='${libname}${release}${shared_ext}$major'
20335 shlibpath_var=LD_LIBRARY_PATH
20336 shlibpath_overrides_runpath=yes
20337 ;;
20338
20339openbsd*)
20340 version_type=sunos
20341 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020342 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20345 shlibpath_var=LD_LIBRARY_PATH
20346 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20347 case $host_os in
20348 openbsd2.[89] | openbsd2.[89].*)
20349 shlibpath_overrides_runpath=no
20350 ;;
20351 *)
20352 shlibpath_overrides_runpath=yes
20353 ;;
20354 esac
20355 else
20356 shlibpath_overrides_runpath=yes
20357 fi
20358 ;;
20359
20360os2*)
20361 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020362 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020363 need_lib_prefix=no
20364 library_names_spec='$libname${shared_ext} $libname.a'
20365 dynamic_linker='OS/2 ld.exe'
20366 shlibpath_var=LIBPATH
20367 ;;
20368
20369osf3* | osf4* | osf5*)
20370 version_type=osf
20371 need_lib_prefix=no
20372 need_version=no
20373 soname_spec='${libname}${release}${shared_ext}$major'
20374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20375 shlibpath_var=LD_LIBRARY_PATH
20376 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20377 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20378 ;;
20379
20380sco3.2v5*)
20381 version_type=osf
20382 soname_spec='${libname}${release}${shared_ext}$major'
20383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20384 shlibpath_var=LD_LIBRARY_PATH
20385 ;;
20386
20387solaris*)
20388 version_type=linux
20389 need_lib_prefix=no
20390 need_version=no
20391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20392 soname_spec='${libname}${release}${shared_ext}$major'
20393 shlibpath_var=LD_LIBRARY_PATH
20394 shlibpath_overrides_runpath=yes
20395 hardcode_into_libs=yes
20396 # ldd complains unless libraries are executable
20397 postinstall_cmds='chmod +x $lib'
20398 ;;
20399
20400sunos4*)
20401 version_type=sunos
20402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20403 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20404 shlibpath_var=LD_LIBRARY_PATH
20405 shlibpath_overrides_runpath=yes
20406 if test "$with_gnu_ld" = yes; then
20407 need_lib_prefix=no
20408 fi
20409 need_version=yes
20410 ;;
20411
20412sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20413 version_type=linux
20414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20415 soname_spec='${libname}${release}${shared_ext}$major'
20416 shlibpath_var=LD_LIBRARY_PATH
20417 case $host_vendor in
20418 sni)
20419 shlibpath_overrides_runpath=no
20420 need_lib_prefix=no
20421 export_dynamic_flag_spec='${wl}-Blargedynsym'
20422 runpath_var=LD_RUN_PATH
20423 ;;
20424 siemens)
20425 need_lib_prefix=no
20426 ;;
20427 motorola)
20428 need_lib_prefix=no
20429 need_version=no
20430 shlibpath_overrides_runpath=no
20431 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20432 ;;
20433 esac
20434 ;;
20435
20436sysv4*MP*)
20437 if test -d /usr/nec ;then
20438 version_type=linux
20439 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20440 soname_spec='$libname${shared_ext}.$major'
20441 shlibpath_var=LD_LIBRARY_PATH
20442 fi
20443 ;;
20444
20445uts4*)
20446 version_type=linux
20447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20448 soname_spec='${libname}${release}${shared_ext}$major'
20449 shlibpath_var=LD_LIBRARY_PATH
20450 ;;
20451
20452*)
20453 dynamic_linker=no
20454 ;;
20455esac
20456echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20457echo "${ECHO_T}$dynamic_linker" >&6
20458test "$dynamic_linker" = no && can_build_shared=no
20459
Reid Spencer2706f8c2004-09-19 23:53:36 +000020460echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20461echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20462hardcode_action_F77=
20463if test -n "$hardcode_libdir_flag_spec_F77" || \
20464 test -n "$runpath_var_F77" || \
20465 test "X$hardcode_automatic_F77" = "Xyes" ; then
20466
20467 # We can hardcode non-existant directories.
20468 if test "$hardcode_direct_F77" != no &&
20469 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20470 # have to relink, otherwise we might link with an installed library
20471 # when we should be linking with a yet-to-be-installed one
20472 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20473 test "$hardcode_minus_L_F77" != no; then
20474 # Linking always hardcodes the temporary library directory.
20475 hardcode_action_F77=relink
20476 else
20477 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20478 hardcode_action_F77=immediate
20479 fi
20480else
20481 # We cannot hardcode anything, or else we can only hardcode existing
20482 # directories.
20483 hardcode_action_F77=unsupported
20484fi
20485echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20486echo "${ECHO_T}$hardcode_action_F77" >&6
20487
20488if test "$hardcode_action_F77" = relink; then
20489 # Fast installation is not supported
20490 enable_fast_install=no
20491elif test "$shlibpath_overrides_runpath" = yes ||
20492 test "$enable_shared" = no; then
20493 # Fast installation is not necessary
20494 enable_fast_install=needless
20495fi
20496
20497striplib=
20498old_striplib=
20499echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20500echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20501if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20502 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20503 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20504 echo "$as_me:$LINENO: result: yes" >&5
20505echo "${ECHO_T}yes" >&6
20506else
20507# FIXME - insert some real tests, host_os isn't really good enough
20508 case $host_os in
20509 darwin*)
20510 if test -n "$STRIP" ; then
20511 striplib="$STRIP -x"
20512 echo "$as_me:$LINENO: result: yes" >&5
20513echo "${ECHO_T}yes" >&6
20514 else
20515 echo "$as_me:$LINENO: result: no" >&5
20516echo "${ECHO_T}no" >&6
20517fi
20518 ;;
20519 *)
20520 echo "$as_me:$LINENO: result: no" >&5
20521echo "${ECHO_T}no" >&6
20522 ;;
20523 esac
20524fi
20525
20526
John Criswell47fdd832003-07-14 16:52:07 +000020527
20528# The else clause should only fire when bootstrapping the
20529# libtool distribution, otherwise you forgot to ship ltmain.sh
20530# with your package, and you will get complaints that there are
20531# no rules to generate ltmain.sh.
20532if test -f "$ltmain"; then
20533 # See if we are running on zsh, and set the options which allow our commands through
20534 # without removal of \ escapes.
20535 if test -n "${ZSH_VERSION+set}" ; then
20536 setopt NO_GLOB_SUBST
20537 fi
20538 # Now quote all the things that may contain metacharacters while being
20539 # careful not to overquote the AC_SUBSTed values. We take copies of the
20540 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020541 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20542 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020543 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20544 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20545 deplibs_check_method reload_flag reload_cmds need_locks \
20546 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20547 lt_cv_sys_global_symbol_to_c_name_address \
20548 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20549 old_postinstall_cmds old_postuninstall_cmds \
20550 compiler_F77 \
20551 CC_F77 \
20552 LD_F77 \
20553 lt_prog_compiler_wl_F77 \
20554 lt_prog_compiler_pic_F77 \
20555 lt_prog_compiler_static_F77 \
20556 lt_prog_compiler_no_builtin_flag_F77 \
20557 export_dynamic_flag_spec_F77 \
20558 thread_safe_flag_spec_F77 \
20559 whole_archive_flag_spec_F77 \
20560 enable_shared_with_static_runtimes_F77 \
20561 old_archive_cmds_F77 \
20562 old_archive_from_new_cmds_F77 \
20563 predep_objects_F77 \
20564 postdep_objects_F77 \
20565 predeps_F77 \
20566 postdeps_F77 \
20567 compiler_lib_search_path_F77 \
20568 archive_cmds_F77 \
20569 archive_expsym_cmds_F77 \
20570 postinstall_cmds_F77 \
20571 postuninstall_cmds_F77 \
20572 old_archive_from_expsyms_cmds_F77 \
20573 allow_undefined_flag_F77 \
20574 no_undefined_flag_F77 \
20575 export_symbols_cmds_F77 \
20576 hardcode_libdir_flag_spec_F77 \
20577 hardcode_libdir_flag_spec_ld_F77 \
20578 hardcode_libdir_separator_F77 \
20579 hardcode_automatic_F77 \
20580 module_cmds_F77 \
20581 module_expsym_cmds_F77 \
20582 lt_cv_prog_compiler_c_o_F77 \
20583 exclude_expsyms_F77 \
20584 include_expsyms_F77; do
20585
20586 case $var in
20587 old_archive_cmds_F77 | \
20588 old_archive_from_new_cmds_F77 | \
20589 archive_cmds_F77 | \
20590 archive_expsym_cmds_F77 | \
20591 module_cmds_F77 | \
20592 module_expsym_cmds_F77 | \
20593 old_archive_from_expsyms_cmds_F77 | \
20594 export_symbols_cmds_F77 | \
20595 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20596 postinstall_cmds | postuninstall_cmds | \
20597 old_postinstall_cmds | old_postuninstall_cmds | \
20598 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20599 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020600 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 +000020601 ;;
20602 *)
20603 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20604 ;;
20605 esac
20606 done
20607
20608 case $lt_echo in
20609 *'\$0 --fallback-echo"')
20610 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20611 ;;
20612 esac
20613
20614cfgfile="$ofile"
20615
20616 cat <<__EOF__ >> "$cfgfile"
20617# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20618
20619# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20620
20621# Shell to use when invoking shell scripts.
20622SHELL=$lt_SHELL
20623
20624# Whether or not to build shared libraries.
20625build_libtool_libs=$enable_shared
20626
20627# Whether or not to build static libraries.
20628build_old_libs=$enable_static
20629
20630# Whether or not to add -lc for building shared libraries.
20631build_libtool_need_lc=$archive_cmds_need_lc_F77
20632
20633# Whether or not to disallow shared libs when runtime libs are static
20634allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20635
20636# Whether or not to optimize for fast installation.
20637fast_install=$enable_fast_install
20638
20639# The host system.
20640host_alias=$host_alias
20641host=$host
20642
20643# An echo program that does not interpret backslashes.
20644echo=$lt_echo
20645
20646# The archiver.
20647AR=$lt_AR
20648AR_FLAGS=$lt_AR_FLAGS
20649
20650# A C compiler.
20651LTCC=$lt_LTCC
20652
20653# A language-specific compiler.
20654CC=$lt_compiler_F77
20655
20656# Is the compiler the GNU C compiler?
20657with_gcc=$GCC_F77
20658
20659# An ERE matcher.
20660EGREP=$lt_EGREP
20661
20662# The linker used to build libraries.
20663LD=$lt_LD_F77
20664
20665# Whether we need hard or soft links.
20666LN_S=$lt_LN_S
20667
20668# A BSD-compatible nm program.
20669NM=$lt_NM
20670
20671# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020672STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020673
20674# Used to examine libraries when file_magic_cmd begins "file"
20675MAGIC_CMD=$MAGIC_CMD
20676
20677# Used on cygwin: DLL creation program.
20678DLLTOOL="$DLLTOOL"
20679
20680# Used on cygwin: object dumper.
20681OBJDUMP="$OBJDUMP"
20682
20683# Used on cygwin: assembler.
20684AS="$AS"
20685
20686# The name of the directory that contains temporary libtool files.
20687objdir=$objdir
20688
20689# How to create reloadable object files.
20690reload_flag=$lt_reload_flag
20691reload_cmds=$lt_reload_cmds
20692
20693# How to pass a linker flag through the compiler.
20694wl=$lt_lt_prog_compiler_wl_F77
20695
20696# Object file suffix (normally "o").
20697objext="$ac_objext"
20698
20699# Old archive suffix (normally "a").
20700libext="$libext"
20701
20702# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020703shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020704
20705# Executable file suffix (normally "").
20706exeext="$exeext"
20707
20708# Additional compiler flags for building library objects.
20709pic_flag=$lt_lt_prog_compiler_pic_F77
20710pic_mode=$pic_mode
20711
20712# What is the maximum length of a command?
20713max_cmd_len=$lt_cv_sys_max_cmd_len
20714
20715# Does compiler simultaneously support -c and -o options?
20716compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20717
20718# Must we lock files when doing compilation ?
20719need_locks=$lt_need_locks
20720
20721# Do we need the lib prefix for modules?
20722need_lib_prefix=$need_lib_prefix
20723
20724# Do we need a version for libraries?
20725need_version=$need_version
20726
20727# Whether dlopen is supported.
20728dlopen_support=$enable_dlopen
20729
20730# Whether dlopen of programs is supported.
20731dlopen_self=$enable_dlopen_self
20732
20733# Whether dlopen of statically linked programs is supported.
20734dlopen_self_static=$enable_dlopen_self_static
20735
20736# Compiler flag to prevent dynamic linking.
20737link_static_flag=$lt_lt_prog_compiler_static_F77
20738
20739# Compiler flag to turn off builtin functions.
20740no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20741
20742# Compiler flag to allow reflexive dlopens.
20743export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20744
20745# Compiler flag to generate shared objects directly from archives.
20746whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20747
20748# Compiler flag to generate thread-safe objects.
20749thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20750
20751# Library versioning type.
20752version_type=$version_type
20753
20754# Format of library name prefix.
20755libname_spec=$lt_libname_spec
20756
20757# List of archive names. First name is the real one, the rest are links.
20758# The last name is the one that the linker finds with -lNAME.
20759library_names_spec=$lt_library_names_spec
20760
20761# The coded name of the library, if different from the real name.
20762soname_spec=$lt_soname_spec
20763
20764# Commands used to build and install an old-style archive.
20765RANLIB=$lt_RANLIB
20766old_archive_cmds=$lt_old_archive_cmds_F77
20767old_postinstall_cmds=$lt_old_postinstall_cmds
20768old_postuninstall_cmds=$lt_old_postuninstall_cmds
20769
20770# Create an old-style archive from a shared archive.
20771old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20772
20773# Create a temporary old-style archive to link instead of a shared archive.
20774old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20775
20776# Commands used to build and install a shared archive.
20777archive_cmds=$lt_archive_cmds_F77
20778archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20779postinstall_cmds=$lt_postinstall_cmds
20780postuninstall_cmds=$lt_postuninstall_cmds
20781
20782# Commands used to build a loadable module (assumed same as above if empty)
20783module_cmds=$lt_module_cmds_F77
20784module_expsym_cmds=$lt_module_expsym_cmds_F77
20785
20786# Commands to strip libraries.
20787old_striplib=$lt_old_striplib
20788striplib=$lt_striplib
20789
20790# Dependencies to place before the objects being linked to create a
20791# shared library.
20792predep_objects=$lt_predep_objects_F77
20793
20794# Dependencies to place after the objects being linked to create a
20795# shared library.
20796postdep_objects=$lt_postdep_objects_F77
20797
20798# Dependencies to place before the objects being linked to create a
20799# shared library.
20800predeps=$lt_predeps_F77
20801
20802# Dependencies to place after the objects being linked to create a
20803# shared library.
20804postdeps=$lt_postdeps_F77
20805
20806# The library search path used internally by the compiler when linking
20807# a shared library.
20808compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20809
20810# Method to check whether dependent libraries are shared objects.
20811deplibs_check_method=$lt_deplibs_check_method
20812
20813# Command to use when deplibs_check_method == file_magic.
20814file_magic_cmd=$lt_file_magic_cmd
20815
20816# Flag that allows shared libraries with undefined symbols to be built.
20817allow_undefined_flag=$lt_allow_undefined_flag_F77
20818
20819# Flag that forces no undefined symbols.
20820no_undefined_flag=$lt_no_undefined_flag_F77
20821
20822# Commands used to finish a libtool library installation in a directory.
20823finish_cmds=$lt_finish_cmds
20824
20825# Same as above, but a single script fragment to be evaled but not shown.
20826finish_eval=$lt_finish_eval
20827
20828# Take the output of nm and produce a listing of raw symbols and C names.
20829global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20830
20831# Transform the output of nm in a proper C declaration
20832global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20833
20834# Transform the output of nm in a C name address pair
20835global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20836
20837# This is the shared library runtime path variable.
20838runpath_var=$runpath_var
20839
20840# This is the shared library path variable.
20841shlibpath_var=$shlibpath_var
20842
20843# Is shlibpath searched before the hard-coded library search path?
20844shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20845
20846# How to hardcode a shared library path into an executable.
20847hardcode_action=$hardcode_action_F77
20848
20849# Whether we should hardcode library paths into libraries.
20850hardcode_into_libs=$hardcode_into_libs
20851
20852# Flag to hardcode \$libdir into a binary during linking.
20853# This must work even if \$libdir does not exist.
20854hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20855
20856# If ld is used when linking, flag to hardcode \$libdir into
20857# a binary during linking. This must work even if \$libdir does
20858# not exist.
20859hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20860
20861# Whether we need a single -rpath flag with a separated argument.
20862hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20863
20864# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20865# resulting binary.
20866hardcode_direct=$hardcode_direct_F77
20867
20868# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20869# resulting binary.
20870hardcode_minus_L=$hardcode_minus_L_F77
20871
20872# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20873# the resulting binary.
20874hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20875
20876# Set to yes if building a shared library automatically hardcodes DIR into the library
20877# and all subsequent libraries and executables linked against it.
20878hardcode_automatic=$hardcode_automatic_F77
20879
20880# Variables whose values should be saved in libtool wrapper scripts and
20881# restored at relink time.
20882variables_saved_for_relink="$variables_saved_for_relink"
20883
20884# Whether libtool must link a program against all its dependency libraries.
20885link_all_deplibs=$link_all_deplibs_F77
20886
20887# Compile-time system search path for libraries
20888sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20889
20890# Run-time system search path for libraries
20891sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20892
20893# Fix the shell variable \$srcfile for the compiler.
20894fix_srcfile_path="$fix_srcfile_path_F77"
20895
20896# Set to yes if exported symbols are required.
20897always_export_symbols=$always_export_symbols_F77
20898
20899# The commands to list exported symbols.
20900export_symbols_cmds=$lt_export_symbols_cmds_F77
20901
20902# The commands to extract the exported symbol list from a shared archive.
20903extract_expsyms_cmds=$lt_extract_expsyms_cmds
20904
20905# Symbols that should not be listed in the preloaded symbols.
20906exclude_expsyms=$lt_exclude_expsyms_F77
20907
20908# Symbols that must always be exported.
20909include_expsyms=$lt_include_expsyms_F77
20910
20911# ### END LIBTOOL TAG CONFIG: $tagname
20912
20913__EOF__
20914
20915
20916else
20917 # If there is no Makefile yet, we rely on a make rule to execute
20918 # `config.status --recheck' to rerun these tests and create the
20919 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020920 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20921 if test -f "$ltmain_in"; then
20922 test -f Makefile && make "$ltmain"
20923 fi
John Criswell47fdd832003-07-14 16:52:07 +000020924fi
20925
20926
20927ac_ext=c
20928ac_cpp='$CPP $CPPFLAGS'
20929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20931ac_compiler_gnu=$ac_cv_c_compiler_gnu
20932
20933CC="$lt_save_CC"
20934
20935 else
20936 tagname=""
20937 fi
20938 ;;
20939
20940 GCJ)
20941 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020942 ac_ext=c
20943ac_cpp='$CPP $CPPFLAGS'
20944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20946ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000020947
20948
20949# Source file extension for Java test sources.
20950ac_ext=java
20951
20952# Object file extension for compiled Java test sources.
20953objext=o
20954objext_GCJ=$objext
20955
20956# Code to be used in simple compile tests
20957lt_simple_compile_test_code="class foo {}\n"
20958
20959# Code to be used in simple link tests
20960lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20961
20962# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20963
20964# If no C compiler was specified, use CC.
20965LTCC=${LTCC-"$CC"}
20966
20967# Allow CC to be a program name with arguments.
20968compiler=$CC
20969
20970
20971# Allow CC to be a program name with arguments.
20972lt_save_CC="$CC"
20973CC=${GCJ-"gcj"}
20974compiler=$CC
20975compiler_GCJ=$CC
20976
20977# GCJ did not exist at the time GCC didn't implicitly link libc in.
20978archive_cmds_need_lc_GCJ=no
20979
John Criswell47fdd832003-07-14 16:52:07 +000020980
20981lt_prog_compiler_no_builtin_flag_GCJ=
20982
20983if test "$GCC" = yes; then
20984 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20985
Reid Spencer2706f8c2004-09-19 23:53:36 +000020986
20987echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020988echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20989if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20990 echo $ECHO_N "(cached) $ECHO_C" >&6
20991else
20992 lt_cv_prog_compiler_rtti_exceptions=no
20993 ac_outfile=conftest.$ac_objext
20994 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20995 lt_compiler_flag="-fno-rtti -fno-exceptions"
20996 # Insert the option either (1) after the last *FLAGS variable, or
20997 # (2) before a word containing "conftest.", or (3) at the end.
20998 # Note that $ac_compile itself does not contain backslashes and begins
20999 # with a dollar sign (not a hyphen), so the echo should work correctly.
21000 # The option is referenced via a variable to avoid confusing sed.
21001 lt_compile=`echo "$ac_compile" | $SED \
21002 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21003 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21004 -e 's:$: $lt_compiler_flag:'`
Duraid Madina775afa52005-05-16 16:33:34 +000021005 (eval echo "\"\$as_me:21005: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021006 (eval "$lt_compile" 2>conftest.err)
21007 ac_status=$?
21008 cat conftest.err >&5
Duraid Madina775afa52005-05-16 16:33:34 +000021009 echo "$as_me:21009: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021010 if (exit $ac_status) && test -s "$ac_outfile"; then
21011 # The compiler can only warn and ignore the option if not recognized
21012 # So say no if there are warnings
21013 if test ! -s conftest.err; then
21014 lt_cv_prog_compiler_rtti_exceptions=yes
21015 fi
21016 fi
21017 $rm conftest*
21018
21019fi
21020echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21021echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21022
21023if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21024 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21025else
21026 :
21027fi
21028
21029fi
21030
21031lt_prog_compiler_wl_GCJ=
21032lt_prog_compiler_pic_GCJ=
21033lt_prog_compiler_static_GCJ=
21034
21035echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21036echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21037
21038 if test "$GCC" = yes; then
21039 lt_prog_compiler_wl_GCJ='-Wl,'
21040 lt_prog_compiler_static_GCJ='-static'
21041
21042 case $host_os in
21043 aix*)
21044 # All AIX code is PIC.
21045 if test "$host_cpu" = ia64; then
21046 # AIX 5 now supports IA64 processor
21047 lt_prog_compiler_static_GCJ='-Bstatic'
21048 fi
21049 ;;
21050
21051 amigaos*)
21052 # FIXME: we need at least 68020 code to build shared libraries, but
21053 # adding the `-m68020' flag to GCC prevents building anything better,
21054 # like `-m68040'.
21055 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21056 ;;
21057
21058 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21059 # PIC is the default for these OSes.
21060 ;;
21061
21062 mingw* | pw32* | os2*)
21063 # This hack is so that the source file can tell whether it is being
21064 # built for inclusion in a dll (and should export symbols for example).
21065 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21066 ;;
21067
21068 darwin* | rhapsody*)
21069 # PIC is the default on this platform
21070 # Common symbols not allowed in MH_DYLIB files
21071 lt_prog_compiler_pic_GCJ='-fno-common'
21072 ;;
21073
21074 msdosdjgpp*)
21075 # Just because we use GCC doesn't mean we suddenly get shared libraries
21076 # on systems that don't support them.
21077 lt_prog_compiler_can_build_shared_GCJ=no
21078 enable_shared=no
21079 ;;
21080
21081 sysv4*MP*)
21082 if test -d /usr/nec; then
21083 lt_prog_compiler_pic_GCJ=-Kconform_pic
21084 fi
21085 ;;
21086
21087 hpux*)
21088 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21089 # not for PA HP-UX.
21090 case "$host_cpu" in
21091 hppa*64*|ia64*)
21092 # +Z the default
21093 ;;
21094 *)
21095 lt_prog_compiler_pic_GCJ='-fPIC'
21096 ;;
21097 esac
21098 ;;
21099
21100 *)
21101 lt_prog_compiler_pic_GCJ='-fPIC'
21102 ;;
21103 esac
21104 else
21105 # PORTME Check for flag to pass linker flags through the system compiler.
21106 case $host_os in
21107 aix*)
21108 lt_prog_compiler_wl_GCJ='-Wl,'
21109 if test "$host_cpu" = ia64; then
21110 # AIX 5 now supports IA64 processor
21111 lt_prog_compiler_static_GCJ='-Bstatic'
21112 else
21113 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21114 fi
21115 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021116 darwin*)
21117 # PIC is the default on this platform
21118 # Common symbols not allowed in MH_DYLIB files
21119 case "$cc_basename" in
21120 xlc*)
21121 lt_prog_compiler_pic_GCJ='-qnocommon'
21122 lt_prog_compiler_wl_GCJ='-Wl,'
21123 ;;
21124 esac
21125 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021126
21127 mingw* | pw32* | os2*)
21128 # This hack is so that the source file can tell whether it is being
21129 # built for inclusion in a dll (and should export symbols for example).
21130 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21131 ;;
21132
21133 hpux9* | hpux10* | hpux11*)
21134 lt_prog_compiler_wl_GCJ='-Wl,'
21135 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21136 # not for PA HP-UX.
21137 case "$host_cpu" in
21138 hppa*64*|ia64*)
21139 # +Z the default
21140 ;;
21141 *)
21142 lt_prog_compiler_pic_GCJ='+Z'
21143 ;;
21144 esac
21145 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21146 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21147 ;;
21148
21149 irix5* | irix6* | nonstopux*)
21150 lt_prog_compiler_wl_GCJ='-Wl,'
21151 # PIC (with -KPIC) is the default.
21152 lt_prog_compiler_static_GCJ='-non_shared'
21153 ;;
21154
21155 newsos6)
21156 lt_prog_compiler_pic_GCJ='-KPIC'
21157 lt_prog_compiler_static_GCJ='-Bstatic'
21158 ;;
21159
21160 linux*)
21161 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021162 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021163 lt_prog_compiler_wl_GCJ='-Wl,'
21164 lt_prog_compiler_pic_GCJ='-KPIC'
21165 lt_prog_compiler_static_GCJ='-static'
21166 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021167 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021168 lt_prog_compiler_wl_GCJ='-Wl,'
21169 # All Alpha code is PIC.
21170 lt_prog_compiler_static_GCJ='-non_shared'
21171 ;;
21172 esac
21173 ;;
21174
21175 osf3* | osf4* | osf5*)
21176 lt_prog_compiler_wl_GCJ='-Wl,'
21177 # All OSF/1 code is PIC.
21178 lt_prog_compiler_static_GCJ='-non_shared'
21179 ;;
21180
21181 sco3.2v5*)
21182 lt_prog_compiler_pic_GCJ='-Kpic'
21183 lt_prog_compiler_static_GCJ='-dn'
21184 ;;
21185
21186 solaris*)
21187 lt_prog_compiler_wl_GCJ='-Wl,'
21188 lt_prog_compiler_pic_GCJ='-KPIC'
21189 lt_prog_compiler_static_GCJ='-Bstatic'
21190 ;;
21191
21192 sunos4*)
21193 lt_prog_compiler_wl_GCJ='-Qoption ld '
21194 lt_prog_compiler_pic_GCJ='-PIC'
21195 lt_prog_compiler_static_GCJ='-Bstatic'
21196 ;;
21197
21198 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21199 lt_prog_compiler_wl_GCJ='-Wl,'
21200 lt_prog_compiler_pic_GCJ='-KPIC'
21201 lt_prog_compiler_static_GCJ='-Bstatic'
21202 ;;
21203
21204 sysv4*MP*)
21205 if test -d /usr/nec ;then
21206 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21207 lt_prog_compiler_static_GCJ='-Bstatic'
21208 fi
21209 ;;
21210
21211 uts4*)
21212 lt_prog_compiler_pic_GCJ='-pic'
21213 lt_prog_compiler_static_GCJ='-Bstatic'
21214 ;;
21215
21216 *)
21217 lt_prog_compiler_can_build_shared_GCJ=no
21218 ;;
21219 esac
21220 fi
21221
21222echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21223echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21224
21225#
21226# Check to make sure the PIC flag actually works.
21227#
21228if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021229
21230echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021231echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21232if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21233 echo $ECHO_N "(cached) $ECHO_C" >&6
21234else
21235 lt_prog_compiler_pic_works_GCJ=no
21236 ac_outfile=conftest.$ac_objext
21237 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21238 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21239 # Insert the option either (1) after the last *FLAGS variable, or
21240 # (2) before a word containing "conftest.", or (3) at the end.
21241 # Note that $ac_compile itself does not contain backslashes and begins
21242 # with a dollar sign (not a hyphen), so the echo should work correctly.
21243 # The option is referenced via a variable to avoid confusing sed.
21244 lt_compile=`echo "$ac_compile" | $SED \
21245 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21246 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21247 -e 's:$: $lt_compiler_flag:'`
Duraid Madina775afa52005-05-16 16:33:34 +000021248 (eval echo "\"\$as_me:21248: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021249 (eval "$lt_compile" 2>conftest.err)
21250 ac_status=$?
21251 cat conftest.err >&5
Duraid Madina775afa52005-05-16 16:33:34 +000021252 echo "$as_me:21252: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021253 if (exit $ac_status) && test -s "$ac_outfile"; then
21254 # The compiler can only warn and ignore the option if not recognized
21255 # So say no if there are warnings
21256 if test ! -s conftest.err; then
21257 lt_prog_compiler_pic_works_GCJ=yes
21258 fi
21259 fi
21260 $rm conftest*
21261
21262fi
21263echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21264echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21265
21266if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21267 case $lt_prog_compiler_pic_GCJ in
21268 "" | " "*) ;;
21269 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21270 esac
21271else
21272 lt_prog_compiler_pic_GCJ=
21273 lt_prog_compiler_can_build_shared_GCJ=no
21274fi
21275
21276fi
21277case "$host_os" in
21278 # For platforms which do not support PIC, -DPIC is meaningless:
21279 *djgpp*)
21280 lt_prog_compiler_pic_GCJ=
21281 ;;
21282 *)
21283 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21284 ;;
21285esac
21286
21287echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21288echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21289if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21290 echo $ECHO_N "(cached) $ECHO_C" >&6
21291else
21292 lt_cv_prog_compiler_c_o_GCJ=no
21293 $rm -r conftest 2>/dev/null
21294 mkdir conftest
21295 cd conftest
21296 mkdir out
21297 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21298
John Criswell47fdd832003-07-14 16:52:07 +000021299 lt_compiler_flag="-o out/conftest2.$ac_objext"
21300 # Insert the option either (1) after the last *FLAGS variable, or
21301 # (2) before a word containing "conftest.", or (3) at the end.
21302 # Note that $ac_compile itself does not contain backslashes and begins
21303 # with a dollar sign (not a hyphen), so the echo should work correctly.
21304 lt_compile=`echo "$ac_compile" | $SED \
21305 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21307 -e 's:$: $lt_compiler_flag:'`
Duraid Madina775afa52005-05-16 16:33:34 +000021308 (eval echo "\"\$as_me:21308: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021309 (eval "$lt_compile" 2>out/conftest.err)
21310 ac_status=$?
21311 cat out/conftest.err >&5
Duraid Madina775afa52005-05-16 16:33:34 +000021312 echo "$as_me:21312: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021313 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21314 then
21315 # The compiler can only warn and ignore the option if not recognized
21316 # So say no if there are warnings
21317 if test ! -s out/conftest.err; then
21318 lt_cv_prog_compiler_c_o_GCJ=yes
21319 fi
21320 fi
21321 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021322 $rm conftest*
21323 # SGI C++ compiler will create directory out/ii_files/ for
21324 # template instantiation
21325 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21326 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021327 cd ..
21328 rmdir conftest
21329 $rm conftest*
21330
21331fi
21332echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21333echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21334
21335
21336hard_links="nottested"
21337if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21338 # do not overwrite the value of need_locks provided by the user
21339 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21340echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21341 hard_links=yes
21342 $rm conftest*
21343 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21344 touch conftest.a
21345 ln conftest.a conftest.b 2>&5 || hard_links=no
21346 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21347 echo "$as_me:$LINENO: result: $hard_links" >&5
21348echo "${ECHO_T}$hard_links" >&6
21349 if test "$hard_links" = no; then
21350 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21351echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21352 need_locks=warn
21353 fi
21354else
21355 need_locks=no
21356fi
21357
21358echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21359echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21360
21361 runpath_var=
21362 allow_undefined_flag_GCJ=
21363 enable_shared_with_static_runtimes_GCJ=no
21364 archive_cmds_GCJ=
21365 archive_expsym_cmds_GCJ=
21366 old_archive_From_new_cmds_GCJ=
21367 old_archive_from_expsyms_cmds_GCJ=
21368 export_dynamic_flag_spec_GCJ=
21369 whole_archive_flag_spec_GCJ=
21370 thread_safe_flag_spec_GCJ=
21371 hardcode_libdir_flag_spec_GCJ=
21372 hardcode_libdir_flag_spec_ld_GCJ=
21373 hardcode_libdir_separator_GCJ=
21374 hardcode_direct_GCJ=no
21375 hardcode_minus_L_GCJ=no
21376 hardcode_shlibpath_var_GCJ=unsupported
21377 link_all_deplibs_GCJ=unknown
21378 hardcode_automatic_GCJ=no
21379 module_cmds_GCJ=
21380 module_expsym_cmds_GCJ=
21381 always_export_symbols_GCJ=no
21382 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21383 # include_expsyms should be a list of space-separated symbols to be *always*
21384 # included in the symbol list
21385 include_expsyms_GCJ=
21386 # exclude_expsyms can be an extended regexp of symbols to exclude
21387 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21388 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21389 # as well as any symbol that contains `d'.
21390 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21391 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21392 # platforms (ab)use it in PIC code, but their linkers get confused if
21393 # the symbol is explicitly referenced. Since portable code cannot
21394 # rely on this symbol name, it's probably fine to never include it in
21395 # preloaded symbol tables.
21396 extract_expsyms_cmds=
21397
21398 case $host_os in
21399 cygwin* | mingw* | pw32*)
21400 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21401 # When not using gcc, we currently assume that we are using
21402 # Microsoft Visual C++.
21403 if test "$GCC" != yes; then
21404 with_gnu_ld=no
21405 fi
21406 ;;
21407 openbsd*)
21408 with_gnu_ld=no
21409 ;;
21410 esac
21411
21412 ld_shlibs_GCJ=yes
21413 if test "$with_gnu_ld" = yes; then
21414 # If archive_cmds runs LD, not CC, wlarc should be empty
21415 wlarc='${wl}'
21416
21417 # See if GNU ld supports shared libraries.
21418 case $host_os in
21419 aix3* | aix4* | aix5*)
21420 # On AIX/PPC, the GNU linker is very broken
21421 if test "$host_cpu" != ia64; then
21422 ld_shlibs_GCJ=no
21423 cat <<EOF 1>&2
21424
21425*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21426*** to be unable to reliably create shared libraries on AIX.
21427*** Therefore, libtool is disabling shared libraries support. If you
21428*** really care for shared libraries, you may want to modify your PATH
21429*** so that a non-GNU linker is found, and then restart.
21430
21431EOF
21432 fi
21433 ;;
21434
21435 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021436 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 +000021437 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21438 hardcode_minus_L_GCJ=yes
21439
21440 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21441 # that the semantics of dynamic libraries on AmigaOS, at least up
21442 # to version 4, is to share data among multiple programs linked
21443 # with the same dynamic library. Since this doesn't match the
21444 # behavior of shared libraries on other platforms, we can't use
21445 # them.
21446 ld_shlibs_GCJ=no
21447 ;;
21448
21449 beos*)
21450 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21451 allow_undefined_flag_GCJ=unsupported
21452 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21453 # support --undefined. This deserves some investigation. FIXME
21454 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21455 else
21456 ld_shlibs_GCJ=no
21457 fi
21458 ;;
21459
21460 cygwin* | mingw* | pw32*)
21461 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21462 # as there is no search path for DLLs.
21463 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21464 allow_undefined_flag_GCJ=unsupported
21465 always_export_symbols_GCJ=no
21466 enable_shared_with_static_runtimes_GCJ=yes
21467 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21468
21469 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21470 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21471 # If the export-symbols file already is a .def file (1st line
21472 # is EXPORTS), use it as is; otherwise, prepend...
21473 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21474 cp $export_symbols $output_objdir/$soname.def;
21475 else
21476 echo EXPORTS > $output_objdir/$soname.def;
21477 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021478 fi~
21479 $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 +000021480 else
21481 ld_shlibs=no
21482 fi
21483 ;;
21484
21485 netbsd*)
21486 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21487 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21488 wlarc=
21489 else
21490 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21491 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21492 fi
21493 ;;
21494
21495 solaris* | sysv5*)
21496 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21497 ld_shlibs_GCJ=no
21498 cat <<EOF 1>&2
21499
21500*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21501*** create shared libraries on Solaris systems. Therefore, libtool
21502*** is disabling shared libraries support. We urge you to upgrade GNU
21503*** binutils to release 2.9.1 or newer. Another option is to modify
21504*** your PATH or compiler configuration so that the native linker is
21505*** used, and then restart.
21506
21507EOF
21508 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21509 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21510 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21511 else
21512 ld_shlibs_GCJ=no
21513 fi
21514 ;;
21515
21516 sunos4*)
21517 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21518 wlarc=
21519 hardcode_direct_GCJ=yes
21520 hardcode_shlibpath_var_GCJ=no
21521 ;;
21522
Reid Spencer2706f8c2004-09-19 23:53:36 +000021523 linux*)
21524 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21525 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21526 archive_cmds_GCJ="$tmp_archive_cmds"
21527 supports_anon_versioning=no
21528 case `$LD -v 2>/dev/null` in
21529 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21530 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21531 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21532 *\ 2.11.*) ;; # other 2.11 versions
21533 *) supports_anon_versioning=yes ;;
21534 esac
21535 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021536 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21537cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21538$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021539 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21540 else
21541 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21542 fi
21543 else
21544 ld_shlibs_GCJ=no
21545 fi
21546 ;;
21547
John Criswell47fdd832003-07-14 16:52:07 +000021548 *)
21549 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21550 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21551 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21552 else
21553 ld_shlibs_GCJ=no
21554 fi
21555 ;;
21556 esac
21557
21558 if test "$ld_shlibs_GCJ" = yes; then
21559 runpath_var=LD_RUN_PATH
21560 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21561 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21562 # ancient GNU ld didn't support --whole-archive et. al.
21563 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21564 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21565 else
21566 whole_archive_flag_spec_GCJ=
21567 fi
21568 fi
21569 else
21570 # PORTME fill in a description of your system's linker (not GNU ld)
21571 case $host_os in
21572 aix3*)
21573 allow_undefined_flag_GCJ=unsupported
21574 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021575 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 +000021576 # Note: this linker hardcodes the directories in LIBPATH if there
21577 # are no directories specified by -L.
21578 hardcode_minus_L_GCJ=yes
21579 if test "$GCC" = yes && test -z "$link_static_flag"; then
21580 # Neither direct hardcoding nor static linking is supported with a
21581 # broken collect2.
21582 hardcode_direct_GCJ=unsupported
21583 fi
21584 ;;
21585
21586 aix4* | aix5*)
21587 if test "$host_cpu" = ia64; then
21588 # On IA64, the linker does run time linking by default, so we don't
21589 # have to do anything special.
21590 aix_use_runtimelinking=no
21591 exp_sym_flag='-Bexport'
21592 no_entry_flag=""
21593 else
21594 # If we're using GNU nm, then we don't want the "-C" option.
21595 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21596 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21597 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'
21598 else
21599 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'
21600 fi
21601 aix_use_runtimelinking=no
21602
21603 # Test if we are trying to use run time linking or normal
21604 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21605 # need to do runtime linking.
21606 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21607 for ld_flag in $LDFLAGS; do
21608 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21609 aix_use_runtimelinking=yes
21610 break
21611 fi
21612 done
21613 esac
21614
21615 exp_sym_flag='-bexport'
21616 no_entry_flag='-bnoentry'
21617 fi
21618
21619 # When large executables or shared objects are built, AIX ld can
21620 # have problems creating the table of contents. If linking a library
21621 # or program results in "error TOC overflow" add -mminimal-toc to
21622 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21623 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21624
21625 archive_cmds_GCJ=''
21626 hardcode_direct_GCJ=yes
21627 hardcode_libdir_separator_GCJ=':'
21628 link_all_deplibs_GCJ=yes
21629
21630 if test "$GCC" = yes; then
21631 case $host_os in aix4.012|aix4.012.*)
21632 # We only want to do this on AIX 4.2 and lower, the check
21633 # below for broken collect2 doesn't work under 4.3+
21634 collect2name=`${CC} -print-prog-name=collect2`
21635 if test -f "$collect2name" && \
21636 strings "$collect2name" | grep resolve_lib_name >/dev/null
21637 then
21638 # We have reworked collect2
21639 hardcode_direct_GCJ=yes
21640 else
21641 # We have old collect2
21642 hardcode_direct_GCJ=unsupported
21643 # It fails to find uninstalled libraries when the uninstalled
21644 # path is not listed in the libpath. Setting hardcode_minus_L
21645 # to unsupported forces relinking
21646 hardcode_minus_L_GCJ=yes
21647 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21648 hardcode_libdir_separator_GCJ=
21649 fi
21650 esac
21651 shared_flag='-shared'
21652 else
21653 # not using gcc
21654 if test "$host_cpu" = ia64; then
21655 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21656 # chokes on -Wl,-G. The following line is correct:
21657 shared_flag='-G'
21658 else
21659 if test "$aix_use_runtimelinking" = yes; then
21660 shared_flag='${wl}-G'
21661 else
21662 shared_flag='${wl}-bM:SRE'
21663 fi
21664 fi
21665 fi
21666
21667 # It seems that -bexpall does not export symbols beginning with
21668 # underscore (_), so it is better to generate a list of symbols to export.
21669 always_export_symbols_GCJ=yes
21670 if test "$aix_use_runtimelinking" = yes; then
21671 # Warning - without using the other runtime loading flags (-brtl),
21672 # -berok will link without error, but may produce a broken library.
21673 allow_undefined_flag_GCJ='-berok'
21674 # Determine the default libpath from the value encoded in an empty executable.
21675 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021676/* confdefs.h. */
21677_ACEOF
21678cat confdefs.h >>conftest.$ac_ext
21679cat >>conftest.$ac_ext <<_ACEOF
21680/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021681
John Criswell47fdd832003-07-14 16:52:07 +000021682int
21683main ()
21684{
21685
21686 ;
21687 return 0;
21688}
21689_ACEOF
21690rm -f conftest.$ac_objext conftest$ac_exeext
21691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021692 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021693 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021694 grep -v '^ *+' conftest.er1 >conftest.err
21695 rm -f conftest.er1
21696 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021699 { ac_try='test -z "$ac_c_werror_flag"
21700 || test ! -s conftest.err'
21701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21702 (eval $ac_try) 2>&5
21703 ac_status=$?
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); }; } &&
21706 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21708 (eval $ac_try) 2>&5
21709 ac_status=$?
21710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711 (exit $ac_status); }; }; then
21712
21713aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21714}'`
21715# Check for a 64-bit object if we didn't find anything.
21716if 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; }
21717}'`; fi
21718else
21719 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021720sed 's/^/| /' conftest.$ac_ext >&5
21721
John Criswell47fdd832003-07-14 16:52:07 +000021722fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021723rm -f conftest.err conftest.$ac_objext \
21724 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021725if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21726
21727 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21728 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"
21729 else
21730 if test "$host_cpu" = ia64; then
21731 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21732 allow_undefined_flag_GCJ="-z nodefs"
21733 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"
21734 else
21735 # Determine the default libpath from the value encoded in an empty executable.
21736 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021737/* confdefs.h. */
21738_ACEOF
21739cat confdefs.h >>conftest.$ac_ext
21740cat >>conftest.$ac_ext <<_ACEOF
21741/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021742
John Criswell47fdd832003-07-14 16:52:07 +000021743int
21744main ()
21745{
21746
21747 ;
21748 return 0;
21749}
21750_ACEOF
21751rm -f conftest.$ac_objext conftest$ac_exeext
21752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021753 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021754 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021755 grep -v '^ *+' conftest.er1 >conftest.err
21756 rm -f conftest.er1
21757 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021760 { ac_try='test -z "$ac_c_werror_flag"
21761 || test ! -s conftest.err'
21762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21763 (eval $ac_try) 2>&5
21764 ac_status=$?
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); }; } &&
21767 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21769 (eval $ac_try) 2>&5
21770 ac_status=$?
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); }; }; then
21773
21774aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21775}'`
21776# Check for a 64-bit object if we didn't find anything.
21777if 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; }
21778}'`; fi
21779else
21780 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021781sed 's/^/| /' conftest.$ac_ext >&5
21782
John Criswell47fdd832003-07-14 16:52:07 +000021783fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021784rm -f conftest.err conftest.$ac_objext \
21785 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021786if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21787
21788 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21789 # Warning - without using the other run time loading flags,
21790 # -berok will link without error, but may produce a broken library.
21791 no_undefined_flag_GCJ=' ${wl}-bernotok'
21792 allow_undefined_flag_GCJ=' ${wl}-berok'
21793 # -bexpall does not export symbols beginning with underscore (_)
21794 always_export_symbols_GCJ=yes
21795 # Exported symbols can be pulled into shared objects from archives
21796 whole_archive_flag_spec_GCJ=' '
21797 archive_cmds_need_lc_GCJ=yes
21798 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000021799 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 +000021800 fi
21801 fi
21802 ;;
21803
21804 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021805 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 +000021806 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21807 hardcode_minus_L_GCJ=yes
21808 # see comment about different semantics on the GNU ld section
21809 ld_shlibs_GCJ=no
21810 ;;
21811
Reid Spencer2706f8c2004-09-19 23:53:36 +000021812 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021813 export_dynamic_flag_spec_GCJ=-rdynamic
21814 ;;
21815
21816 cygwin* | mingw* | pw32*)
21817 # When not using gcc, we currently assume that we are using
21818 # Microsoft Visual C++.
21819 # hardcode_libdir_flag_spec is actually meaningless, as there is
21820 # no search path for DLLs.
21821 hardcode_libdir_flag_spec_GCJ=' '
21822 allow_undefined_flag_GCJ=unsupported
21823 # Tell ltmain to make .lib files, not .a files.
21824 libext=lib
21825 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021826 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021827 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021828 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 +000021829 # The linker will automatically build a .lib file if we build a DLL.
21830 old_archive_From_new_cmds_GCJ='true'
21831 # FIXME: Should let the user specify the lib program.
21832 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21833 fix_srcfile_path='`cygpath -w "$srcfile"`'
21834 enable_shared_with_static_runtimes_GCJ=yes
21835 ;;
21836
21837 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000021838 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021839 rhapsody* | darwin1.[012])
21840 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21841 ;;
21842 *) # Darwin 1.3 on
21843 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21844 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21845 else
21846 case ${MACOSX_DEPLOYMENT_TARGET} in
21847 10.[012])
21848 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21849 ;;
21850 10.*)
21851 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21852 ;;
21853 esac
21854 fi
21855 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021856 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021857 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000021858 hardcode_direct_GCJ=no
21859 hardcode_automatic_GCJ=yes
21860 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021861 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000021862 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021863 if test "$GCC" = yes ; then
21864 output_verbose_link_cmd='echo'
21865 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21866 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21867 # 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 +000021868 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}'
21869 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 +000021870 else
21871 case "$cc_basename" in
21872 xlc*)
21873 output_verbose_link_cmd='echo'
21874 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21875 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21876 # 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 +000021877 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}'
21878 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 +000021879 ;;
21880 *)
21881 ld_shlibs_GCJ=no
21882 ;;
21883 esac
John Criswell47fdd832003-07-14 16:52:07 +000021884 fi
21885 ;;
21886
21887 dgux*)
21888 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21889 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21890 hardcode_shlibpath_var_GCJ=no
21891 ;;
21892
21893 freebsd1*)
21894 ld_shlibs_GCJ=no
21895 ;;
21896
21897 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21898 # support. Future versions do this automatically, but an explicit c++rt0.o
21899 # does not break anything, and helps significantly (at the cost of a little
21900 # extra space).
21901 freebsd2.2*)
21902 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21903 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21904 hardcode_direct_GCJ=yes
21905 hardcode_shlibpath_var_GCJ=no
21906 ;;
21907
21908 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21909 freebsd2*)
21910 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21911 hardcode_direct_GCJ=yes
21912 hardcode_minus_L_GCJ=yes
21913 hardcode_shlibpath_var_GCJ=no
21914 ;;
21915
21916 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021917 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000021918 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21919 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21920 hardcode_direct_GCJ=yes
21921 hardcode_shlibpath_var_GCJ=no
21922 ;;
21923
21924 hpux9*)
21925 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021926 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 +000021927 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021928 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 +000021929 fi
21930 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21931 hardcode_libdir_separator_GCJ=:
21932 hardcode_direct_GCJ=yes
21933
21934 # hardcode_minus_L: Not really in the search PATH,
21935 # but as the default location of the library.
21936 hardcode_minus_L_GCJ=yes
21937 export_dynamic_flag_spec_GCJ='${wl}-E'
21938 ;;
21939
21940 hpux10* | hpux11*)
21941 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21942 case "$host_cpu" in
21943 hppa*64*|ia64*)
21944 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21945 ;;
21946 *)
21947 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21948 ;;
21949 esac
21950 else
21951 case "$host_cpu" in
21952 hppa*64*|ia64*)
21953 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21954 ;;
21955 *)
21956 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21957 ;;
21958 esac
21959 fi
21960 if test "$with_gnu_ld" = no; then
21961 case "$host_cpu" in
21962 hppa*64*)
21963 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21964 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21965 hardcode_libdir_separator_GCJ=:
21966 hardcode_direct_GCJ=no
21967 hardcode_shlibpath_var_GCJ=no
21968 ;;
21969 ia64*)
21970 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21971 hardcode_direct_GCJ=no
21972 hardcode_shlibpath_var_GCJ=no
21973
21974 # hardcode_minus_L: Not really in the search PATH,
21975 # but as the default location of the library.
21976 hardcode_minus_L_GCJ=yes
21977 ;;
21978 *)
21979 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21980 hardcode_libdir_separator_GCJ=:
21981 hardcode_direct_GCJ=yes
21982 export_dynamic_flag_spec_GCJ='${wl}-E'
21983
21984 # hardcode_minus_L: Not really in the search PATH,
21985 # but as the default location of the library.
21986 hardcode_minus_L_GCJ=yes
21987 ;;
21988 esac
21989 fi
21990 ;;
21991
21992 irix5* | irix6* | nonstopux*)
21993 if test "$GCC" = yes; then
21994 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'
21995 else
21996 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'
21997 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21998 fi
21999 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22000 hardcode_libdir_separator_GCJ=:
22001 link_all_deplibs_GCJ=yes
22002 ;;
22003
22004 netbsd*)
22005 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22006 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22007 else
22008 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22009 fi
22010 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22011 hardcode_direct_GCJ=yes
22012 hardcode_shlibpath_var_GCJ=no
22013 ;;
22014
22015 newsos6)
22016 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22017 hardcode_direct_GCJ=yes
22018 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22019 hardcode_libdir_separator_GCJ=:
22020 hardcode_shlibpath_var_GCJ=no
22021 ;;
22022
22023 openbsd*)
22024 hardcode_direct_GCJ=yes
22025 hardcode_shlibpath_var_GCJ=no
22026 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22027 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022028 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 +000022029 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22030 export_dynamic_flag_spec_GCJ='${wl}-E'
22031 else
22032 case $host_os in
22033 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22034 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22035 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22036 ;;
22037 *)
22038 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22039 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22040 ;;
22041 esac
22042 fi
22043 ;;
22044
22045 os2*)
22046 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22047 hardcode_minus_L_GCJ=yes
22048 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022049 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 +000022050 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22051 ;;
22052
22053 osf3*)
22054 if test "$GCC" = yes; then
22055 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22056 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'
22057 else
22058 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22059 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'
22060 fi
22061 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22062 hardcode_libdir_separator_GCJ=:
22063 ;;
22064
22065 osf4* | osf5*) # as osf3* with the addition of -msym flag
22066 if test "$GCC" = yes; then
22067 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22068 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'
22069 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22070 else
22071 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22072 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 +000022073 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~
22074 $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'
22075
John Criswell47fdd832003-07-14 16:52:07 +000022076 # Both c and cxx compiler support -rpath directly
22077 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22078 fi
22079 hardcode_libdir_separator_GCJ=:
22080 ;;
22081
22082 sco3.2v5*)
22083 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22084 hardcode_shlibpath_var_GCJ=no
22085 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22086 runpath_var=LD_RUN_PATH
22087 hardcode_runpath_var=yes
22088 ;;
22089
22090 solaris*)
22091 no_undefined_flag_GCJ=' -z text'
22092 if test "$GCC" = yes; then
22093 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022094 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22095 $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 +000022096 else
22097 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022098 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22099 $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 +000022100 fi
22101 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22102 hardcode_shlibpath_var_GCJ=no
22103 case $host_os in
22104 solaris2.[0-5] | solaris2.[0-5].*) ;;
22105 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22106 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22107 esac
22108 link_all_deplibs_GCJ=yes
22109 ;;
22110
22111 sunos4*)
22112 if test "x$host_vendor" = xsequent; then
22113 # Use $CC to link under sequent, because it throws in some extra .o
22114 # files that make .init and .fini sections work.
22115 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22116 else
22117 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22118 fi
22119 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22120 hardcode_direct_GCJ=yes
22121 hardcode_minus_L_GCJ=yes
22122 hardcode_shlibpath_var_GCJ=no
22123 ;;
22124
22125 sysv4)
22126 case $host_vendor in
22127 sni)
22128 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22129 hardcode_direct_GCJ=yes # is this really true???
22130 ;;
22131 siemens)
22132 ## LD is ld it makes a PLAMLIB
22133 ## CC just makes a GrossModule.
22134 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22135 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22136 hardcode_direct_GCJ=no
22137 ;;
22138 motorola)
22139 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22140 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22141 ;;
22142 esac
22143 runpath_var='LD_RUN_PATH'
22144 hardcode_shlibpath_var_GCJ=no
22145 ;;
22146
22147 sysv4.3*)
22148 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22149 hardcode_shlibpath_var_GCJ=no
22150 export_dynamic_flag_spec_GCJ='-Bexport'
22151 ;;
22152
22153 sysv4*MP*)
22154 if test -d /usr/nec; then
22155 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22156 hardcode_shlibpath_var_GCJ=no
22157 runpath_var=LD_RUN_PATH
22158 hardcode_runpath_var=yes
22159 ld_shlibs_GCJ=yes
22160 fi
22161 ;;
22162
22163 sysv4.2uw2*)
22164 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22165 hardcode_direct_GCJ=yes
22166 hardcode_minus_L_GCJ=no
22167 hardcode_shlibpath_var_GCJ=no
22168 hardcode_runpath_var=yes
22169 runpath_var=LD_RUN_PATH
22170 ;;
22171
22172 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22173 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22174 if test "$GCC" = yes; then
22175 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22176 else
22177 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22178 fi
22179 runpath_var='LD_RUN_PATH'
22180 hardcode_shlibpath_var_GCJ=no
22181 ;;
22182
22183 sysv5*)
22184 no_undefined_flag_GCJ=' -z text'
22185 # $CC -shared without GNU ld will not create a library from C++
22186 # object files and a static libstdc++, better avoid it by now
22187 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022188 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22189 $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 +000022190 hardcode_libdir_flag_spec_GCJ=
22191 hardcode_shlibpath_var_GCJ=no
22192 runpath_var='LD_RUN_PATH'
22193 ;;
22194
22195 uts4*)
22196 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22197 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22198 hardcode_shlibpath_var_GCJ=no
22199 ;;
22200
22201 *)
22202 ld_shlibs_GCJ=no
22203 ;;
22204 esac
22205 fi
22206
22207echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22208echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22209test "$ld_shlibs_GCJ" = no && can_build_shared=no
22210
22211variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22212if test "$GCC" = yes; then
22213 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22214fi
22215
22216#
22217# Do we need to explicitly link libc?
22218#
22219case "x$archive_cmds_need_lc_GCJ" in
22220x|xyes)
22221 # Assume -lc should be added
22222 archive_cmds_need_lc_GCJ=yes
22223
22224 if test "$enable_shared" = yes && test "$GCC" = yes; then
22225 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022226 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022227 # FIXME: we may have to deal with multi-command sequences.
22228 ;;
22229 '$CC '*)
22230 # Test whether the compiler implicitly links with -lc since on some
22231 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22232 # to ld, don't add -lc before -lgcc.
22233 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22234echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22235 $rm conftest*
22236 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22237
22238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22239 (eval $ac_compile) 2>&5
22240 ac_status=$?
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); } 2>conftest.err; then
22243 soname=conftest
22244 lib=conftest
22245 libobjs=conftest.$ac_objext
22246 deplibs=
22247 wl=$lt_prog_compiler_wl_GCJ
22248 compiler_flags=-v
22249 linker_flags=-v
22250 verstring=
22251 output_objdir=.
22252 libname=conftest
22253 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22254 allow_undefined_flag_GCJ=
22255 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22256 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22257 ac_status=$?
22258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259 (exit $ac_status); }
22260 then
22261 archive_cmds_need_lc_GCJ=no
22262 else
22263 archive_cmds_need_lc_GCJ=yes
22264 fi
22265 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22266 else
22267 cat conftest.err 1>&5
22268 fi
22269 $rm conftest*
22270 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22271echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22272 ;;
22273 esac
22274 fi
22275 ;;
22276esac
22277
John Criswell47fdd832003-07-14 16:52:07 +000022278echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22279echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22280library_names_spec=
22281libname_spec='lib$name'
22282soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022283shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022284postinstall_cmds=
22285postuninstall_cmds=
22286finish_cmds=
22287finish_eval=
22288shlibpath_var=
22289shlibpath_overrides_runpath=unknown
22290version_type=none
22291dynamic_linker="$host_os ld.so"
22292sys_lib_dlsearch_path_spec="/lib /usr/lib"
22293if test "$GCC" = yes; then
22294 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22295 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22296 # if the path contains ";" then we assume it to be the separator
22297 # otherwise default to the standard path separator (i.e. ":") - it is
22298 # assumed that no part of a normal pathname contains ";" but that should
22299 # okay in the real world where ";" in dirpaths is itself problematic.
22300 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22301 else
22302 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22303 fi
22304else
22305 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22306fi
22307need_lib_prefix=unknown
22308hardcode_into_libs=no
22309
22310# when you set need_version to no, make sure it does not cause -set_version
22311# flags to be left without arguments
22312need_version=unknown
22313
22314case $host_os in
22315aix3*)
22316 version_type=linux
22317 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22318 shlibpath_var=LIBPATH
22319
22320 # AIX 3 has no versioning support, so we append a major version to the name.
22321 soname_spec='${libname}${release}${shared_ext}$major'
22322 ;;
22323
22324aix4* | aix5*)
22325 version_type=linux
22326 need_lib_prefix=no
22327 need_version=no
22328 hardcode_into_libs=yes
22329 if test "$host_cpu" = ia64; then
22330 # AIX 5 supports IA64
22331 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22332 shlibpath_var=LD_LIBRARY_PATH
22333 else
22334 # With GCC up to 2.95.x, collect2 would create an import file
22335 # for dependence libraries. The import file would start with
22336 # the line `#! .'. This would cause the generated library to
22337 # depend on `.', always an invalid library. This was fixed in
22338 # development snapshots of GCC prior to 3.0.
22339 case $host_os in
22340 aix4 | aix4.[01] | aix4.[01].*)
22341 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22342 echo ' yes '
22343 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22344 :
22345 else
22346 can_build_shared=no
22347 fi
22348 ;;
22349 esac
22350 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22351 # soname into executable. Probably we can add versioning support to
22352 # collect2, so additional links can be useful in future.
22353 if test "$aix_use_runtimelinking" = yes; then
22354 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22355 # instead of lib<name>.a to let people know that these are not
22356 # typical AIX shared libraries.
22357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22358 else
22359 # We preserve .a as extension for shared libraries through AIX4.2
22360 # and later when we are not doing run time linking.
22361 library_names_spec='${libname}${release}.a $libname.a'
22362 soname_spec='${libname}${release}${shared_ext}$major'
22363 fi
22364 shlibpath_var=LIBPATH
22365 fi
22366 ;;
22367
22368amigaos*)
22369 library_names_spec='$libname.ixlibrary $libname.a'
22370 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022371 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 +000022372 ;;
22373
22374beos*)
22375 library_names_spec='${libname}${shared_ext}'
22376 dynamic_linker="$host_os ld.so"
22377 shlibpath_var=LIBRARY_PATH
22378 ;;
22379
Reid Spencer2706f8c2004-09-19 23:53:36 +000022380bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022381 version_type=linux
22382 need_version=no
22383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22384 soname_spec='${libname}${release}${shared_ext}$major'
22385 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22386 shlibpath_var=LD_LIBRARY_PATH
22387 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22388 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22389 # the default ld.so.conf also contains /usr/contrib/lib and
22390 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22391 # libtool to hard-code these into programs
22392 ;;
22393
22394cygwin* | mingw* | pw32*)
22395 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022396 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022397 need_version=no
22398 need_lib_prefix=no
22399
22400 case $GCC,$host_os in
22401 yes,cygwin* | yes,mingw* | yes,pw32*)
22402 library_names_spec='$libname.dll.a'
22403 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022404 postinstall_cmds='base_file=`basename \${file}`~
22405 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22406 dldir=$destdir/`dirname \$dlpath`~
22407 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022408 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022409 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22410 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022411 $rm \$dlpath'
22412 shlibpath_overrides_runpath=yes
22413
22414 case $host_os in
22415 cygwin*)
22416 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22417 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 +000022418 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022419 ;;
22420 mingw*)
22421 # MinGW DLLs use traditional 'lib' prefix
22422 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22423 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22424 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22425 # It is most probably a Windows format PATH printed by
22426 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22427 # path with ; separators, and with drive letters. We can handle the
22428 # drive letters (cygwin fileutils understands them), so leave them,
22429 # especially as we might pass files found there to a mingw objdump,
22430 # which wouldn't understand a cygwinified path. Ahh.
22431 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22432 else
22433 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22434 fi
22435 ;;
22436 pw32*)
22437 # pw32 DLLs use 'pw' prefix rather than 'lib'
22438 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22439 ;;
22440 esac
22441 ;;
22442
22443 *)
22444 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22445 ;;
22446 esac
22447 dynamic_linker='Win32 ld.exe'
22448 # FIXME: first we should search . and the directory the executable is in
22449 shlibpath_var=PATH
22450 ;;
22451
22452darwin* | rhapsody*)
22453 dynamic_linker="$host_os dyld"
22454 version_type=darwin
22455 need_lib_prefix=no
22456 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022457 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022458 soname_spec='${libname}${release}${major}$shared_ext'
22459 shlibpath_overrides_runpath=yes
22460 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022461 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022462 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022463 if test "$GCC" = yes; then
22464 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"`
22465 else
22466 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022467 fi
22468 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22469 ;;
22470
22471dgux*)
22472 version_type=linux
22473 need_lib_prefix=no
22474 need_version=no
22475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22476 soname_spec='${libname}${release}${shared_ext}$major'
22477 shlibpath_var=LD_LIBRARY_PATH
22478 ;;
22479
22480freebsd1*)
22481 dynamic_linker=no
22482 ;;
22483
Reid Spencer2706f8c2004-09-19 23:53:36 +000022484kfreebsd*-gnu)
22485 version_type=linux
22486 need_lib_prefix=no
22487 need_version=no
22488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22489 soname_spec='${libname}${release}${shared_ext}$major'
22490 shlibpath_var=LD_LIBRARY_PATH
22491 shlibpath_overrides_runpath=no
22492 hardcode_into_libs=yes
22493 dynamic_linker='GNU ld.so'
22494 ;;
22495
John Criswell47fdd832003-07-14 16:52:07 +000022496freebsd*)
22497 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22498 version_type=freebsd-$objformat
22499 case $version_type in
22500 freebsd-elf*)
22501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22502 need_version=no
22503 need_lib_prefix=no
22504 ;;
22505 freebsd-*)
22506 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22507 need_version=yes
22508 ;;
22509 esac
22510 shlibpath_var=LD_LIBRARY_PATH
22511 case $host_os in
22512 freebsd2*)
22513 shlibpath_overrides_runpath=yes
22514 ;;
22515 freebsd3.01* | freebsdelf3.01*)
22516 shlibpath_overrides_runpath=yes
22517 hardcode_into_libs=yes
22518 ;;
22519 *) # from 3.2 on
22520 shlibpath_overrides_runpath=no
22521 hardcode_into_libs=yes
22522 ;;
22523 esac
22524 ;;
22525
22526gnu*)
22527 version_type=linux
22528 need_lib_prefix=no
22529 need_version=no
22530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22531 soname_spec='${libname}${release}${shared_ext}$major'
22532 shlibpath_var=LD_LIBRARY_PATH
22533 hardcode_into_libs=yes
22534 ;;
22535
22536hpux9* | hpux10* | hpux11*)
22537 # Give a soname corresponding to the major version so that dld.sl refuses to
22538 # link against other versions.
22539 version_type=sunos
22540 need_lib_prefix=no
22541 need_version=no
22542 case "$host_cpu" in
22543 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022544 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022545 hardcode_into_libs=yes
22546 dynamic_linker="$host_os dld.so"
22547 shlibpath_var=LD_LIBRARY_PATH
22548 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22550 soname_spec='${libname}${release}${shared_ext}$major'
22551 if test "X$HPUX_IA64_MODE" = X32; then
22552 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22553 else
22554 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22555 fi
22556 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22557 ;;
22558 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022559 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022560 hardcode_into_libs=yes
22561 dynamic_linker="$host_os dld.sl"
22562 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22563 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22565 soname_spec='${libname}${release}${shared_ext}$major'
22566 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22567 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22568 ;;
22569 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022570 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022571 dynamic_linker="$host_os dld.sl"
22572 shlibpath_var=SHLIB_PATH
22573 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22575 soname_spec='${libname}${release}${shared_ext}$major'
22576 ;;
22577 esac
22578 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22579 postinstall_cmds='chmod 555 $lib'
22580 ;;
22581
22582irix5* | irix6* | nonstopux*)
22583 case $host_os in
22584 nonstopux*) version_type=nonstopux ;;
22585 *)
22586 if test "$lt_cv_prog_gnu_ld" = yes; then
22587 version_type=linux
22588 else
22589 version_type=irix
22590 fi ;;
22591 esac
22592 need_lib_prefix=no
22593 need_version=no
22594 soname_spec='${libname}${release}${shared_ext}$major'
22595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22596 case $host_os in
22597 irix5* | nonstopux*)
22598 libsuff= shlibsuff=
22599 ;;
22600 *)
22601 case $LD in # libtool.m4 will add one of these switches to LD
22602 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22603 libsuff= shlibsuff= libmagic=32-bit;;
22604 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22605 libsuff=32 shlibsuff=N32 libmagic=N32;;
22606 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22607 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22608 *) libsuff= shlibsuff= libmagic=never-match;;
22609 esac
22610 ;;
22611 esac
22612 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22613 shlibpath_overrides_runpath=no
22614 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22615 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22616 hardcode_into_libs=yes
22617 ;;
22618
22619# No shared lib support for Linux oldld, aout, or coff.
22620linux*oldld* | linux*aout* | linux*coff*)
22621 dynamic_linker=no
22622 ;;
22623
22624# This must be Linux ELF.
22625linux*)
22626 version_type=linux
22627 need_lib_prefix=no
22628 need_version=no
22629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22630 soname_spec='${libname}${release}${shared_ext}$major'
22631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22632 shlibpath_var=LD_LIBRARY_PATH
22633 shlibpath_overrides_runpath=no
22634 # This implies no fast_install, which is unacceptable.
22635 # Some rework will be needed to allow for fast_install
22636 # before this can be enabled.
22637 hardcode_into_libs=yes
22638
Reid Spencer2706f8c2004-09-19 23:53:36 +000022639 # Append ld.so.conf contents to the search path
22640 if test -f /etc/ld.so.conf; then
22641 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22642 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22643 fi
22644
John Criswell47fdd832003-07-14 16:52:07 +000022645 # We used to test for /lib/ld.so.1 and disable shared libraries on
22646 # powerpc, because MkLinux only supported shared libraries with the
22647 # GNU dynamic linker. Since this was broken with cross compilers,
22648 # most powerpc-linux boxes support dynamic linking these days and
22649 # people can always --disable-shared, the test was removed, and we
22650 # assume the GNU/Linux dynamic linker is in use.
22651 dynamic_linker='GNU/Linux ld.so'
22652 ;;
22653
Reid Spencer2706f8c2004-09-19 23:53:36 +000022654knetbsd*-gnu)
22655 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=no
22662 hardcode_into_libs=yes
22663 dynamic_linker='GNU ld.so'
22664 ;;
22665
John Criswell47fdd832003-07-14 16:52:07 +000022666netbsd*)
22667 version_type=sunos
22668 need_lib_prefix=no
22669 need_version=no
22670 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22672 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22673 dynamic_linker='NetBSD (a.out) ld.so'
22674 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022676 soname_spec='${libname}${release}${shared_ext}$major'
22677 dynamic_linker='NetBSD ld.elf_so'
22678 fi
22679 shlibpath_var=LD_LIBRARY_PATH
22680 shlibpath_overrides_runpath=yes
22681 hardcode_into_libs=yes
22682 ;;
22683
22684newsos6)
22685 version_type=linux
22686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22687 shlibpath_var=LD_LIBRARY_PATH
22688 shlibpath_overrides_runpath=yes
22689 ;;
22690
Reid Spencer2706f8c2004-09-19 23:53:36 +000022691nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022692 version_type=linux
22693 need_lib_prefix=no
22694 need_version=no
22695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22696 soname_spec='${libname}${release}${shared_ext}$major'
22697 shlibpath_var=LD_LIBRARY_PATH
22698 shlibpath_overrides_runpath=yes
22699 ;;
22700
22701openbsd*)
22702 version_type=sunos
22703 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022704 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22707 shlibpath_var=LD_LIBRARY_PATH
22708 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22709 case $host_os in
22710 openbsd2.[89] | openbsd2.[89].*)
22711 shlibpath_overrides_runpath=no
22712 ;;
22713 *)
22714 shlibpath_overrides_runpath=yes
22715 ;;
22716 esac
22717 else
22718 shlibpath_overrides_runpath=yes
22719 fi
22720 ;;
22721
22722os2*)
22723 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022724 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022725 need_lib_prefix=no
22726 library_names_spec='$libname${shared_ext} $libname.a'
22727 dynamic_linker='OS/2 ld.exe'
22728 shlibpath_var=LIBPATH
22729 ;;
22730
22731osf3* | osf4* | osf5*)
22732 version_type=osf
22733 need_lib_prefix=no
22734 need_version=no
22735 soname_spec='${libname}${release}${shared_ext}$major'
22736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22737 shlibpath_var=LD_LIBRARY_PATH
22738 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22739 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22740 ;;
22741
22742sco3.2v5*)
22743 version_type=osf
22744 soname_spec='${libname}${release}${shared_ext}$major'
22745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22746 shlibpath_var=LD_LIBRARY_PATH
22747 ;;
22748
22749solaris*)
22750 version_type=linux
22751 need_lib_prefix=no
22752 need_version=no
22753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22754 soname_spec='${libname}${release}${shared_ext}$major'
22755 shlibpath_var=LD_LIBRARY_PATH
22756 shlibpath_overrides_runpath=yes
22757 hardcode_into_libs=yes
22758 # ldd complains unless libraries are executable
22759 postinstall_cmds='chmod +x $lib'
22760 ;;
22761
22762sunos4*)
22763 version_type=sunos
22764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22765 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22766 shlibpath_var=LD_LIBRARY_PATH
22767 shlibpath_overrides_runpath=yes
22768 if test "$with_gnu_ld" = yes; then
22769 need_lib_prefix=no
22770 fi
22771 need_version=yes
22772 ;;
22773
22774sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22775 version_type=linux
22776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22777 soname_spec='${libname}${release}${shared_ext}$major'
22778 shlibpath_var=LD_LIBRARY_PATH
22779 case $host_vendor in
22780 sni)
22781 shlibpath_overrides_runpath=no
22782 need_lib_prefix=no
22783 export_dynamic_flag_spec='${wl}-Blargedynsym'
22784 runpath_var=LD_RUN_PATH
22785 ;;
22786 siemens)
22787 need_lib_prefix=no
22788 ;;
22789 motorola)
22790 need_lib_prefix=no
22791 need_version=no
22792 shlibpath_overrides_runpath=no
22793 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22794 ;;
22795 esac
22796 ;;
22797
22798sysv4*MP*)
22799 if test -d /usr/nec ;then
22800 version_type=linux
22801 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22802 soname_spec='$libname${shared_ext}.$major'
22803 shlibpath_var=LD_LIBRARY_PATH
22804 fi
22805 ;;
22806
22807uts4*)
22808 version_type=linux
22809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22810 soname_spec='${libname}${release}${shared_ext}$major'
22811 shlibpath_var=LD_LIBRARY_PATH
22812 ;;
22813
22814*)
22815 dynamic_linker=no
22816 ;;
22817esac
22818echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22819echo "${ECHO_T}$dynamic_linker" >&6
22820test "$dynamic_linker" = no && can_build_shared=no
22821
Reid Spencer2706f8c2004-09-19 23:53:36 +000022822echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22823echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22824hardcode_action_GCJ=
22825if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22826 test -n "$runpath_var_GCJ" || \
22827 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22828
22829 # We can hardcode non-existant directories.
22830 if test "$hardcode_direct_GCJ" != no &&
22831 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22832 # have to relink, otherwise we might link with an installed library
22833 # when we should be linking with a yet-to-be-installed one
22834 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22835 test "$hardcode_minus_L_GCJ" != no; then
22836 # Linking always hardcodes the temporary library directory.
22837 hardcode_action_GCJ=relink
22838 else
22839 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22840 hardcode_action_GCJ=immediate
22841 fi
22842else
22843 # We cannot hardcode anything, or else we can only hardcode existing
22844 # directories.
22845 hardcode_action_GCJ=unsupported
22846fi
22847echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22848echo "${ECHO_T}$hardcode_action_GCJ" >&6
22849
22850if test "$hardcode_action_GCJ" = relink; then
22851 # Fast installation is not supported
22852 enable_fast_install=no
22853elif test "$shlibpath_overrides_runpath" = yes ||
22854 test "$enable_shared" = no; then
22855 # Fast installation is not necessary
22856 enable_fast_install=needless
22857fi
22858
22859striplib=
22860old_striplib=
22861echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22862echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22863if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22864 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22865 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22866 echo "$as_me:$LINENO: result: yes" >&5
22867echo "${ECHO_T}yes" >&6
22868else
22869# FIXME - insert some real tests, host_os isn't really good enough
22870 case $host_os in
22871 darwin*)
22872 if test -n "$STRIP" ; then
22873 striplib="$STRIP -x"
22874 echo "$as_me:$LINENO: result: yes" >&5
22875echo "${ECHO_T}yes" >&6
22876 else
22877 echo "$as_me:$LINENO: result: no" >&5
22878echo "${ECHO_T}no" >&6
22879fi
22880 ;;
22881 *)
22882 echo "$as_me:$LINENO: result: no" >&5
22883echo "${ECHO_T}no" >&6
22884 ;;
22885 esac
22886fi
22887
John Criswell47fdd832003-07-14 16:52:07 +000022888if test "x$enable_dlopen" != xyes; then
22889 enable_dlopen=unknown
22890 enable_dlopen_self=unknown
22891 enable_dlopen_self_static=unknown
22892else
22893 lt_cv_dlopen=no
22894 lt_cv_dlopen_libs=
22895
22896 case $host_os in
22897 beos*)
22898 lt_cv_dlopen="load_add_on"
22899 lt_cv_dlopen_libs=
22900 lt_cv_dlopen_self=yes
22901 ;;
22902
22903 mingw* | pw32*)
22904 lt_cv_dlopen="LoadLibrary"
22905 lt_cv_dlopen_libs=
22906 ;;
22907
22908 cygwin*)
22909 lt_cv_dlopen="dlopen"
22910 lt_cv_dlopen_libs=
22911 ;;
22912
22913 darwin*)
22914 # if libdl is installed we need to link against it
22915 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22916echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22917if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22918 echo $ECHO_N "(cached) $ECHO_C" >&6
22919else
22920 ac_check_lib_save_LIBS=$LIBS
22921LIBS="-ldl $LIBS"
22922cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022923/* confdefs.h. */
22924_ACEOF
22925cat confdefs.h >>conftest.$ac_ext
22926cat >>conftest.$ac_ext <<_ACEOF
22927/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022928
22929/* Override any gcc2 internal prototype to avoid an error. */
22930#ifdef __cplusplus
22931extern "C"
22932#endif
22933/* We use char because int might match the return type of a gcc2
22934 builtin and then its argument prototype would still apply. */
22935char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000022936int
22937main ()
22938{
22939dlopen ();
22940 ;
22941 return 0;
22942}
22943_ACEOF
22944rm -f conftest.$ac_objext conftest$ac_exeext
22945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022946 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022947 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022948 grep -v '^ *+' conftest.er1 >conftest.err
22949 rm -f conftest.er1
22950 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022953 { ac_try='test -z "$ac_c_werror_flag"
22954 || test ! -s conftest.err'
22955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22956 (eval $ac_try) 2>&5
22957 ac_status=$?
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); }; } &&
22960 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22962 (eval $ac_try) 2>&5
22963 ac_status=$?
22964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965 (exit $ac_status); }; }; then
22966 ac_cv_lib_dl_dlopen=yes
22967else
22968 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022969sed 's/^/| /' conftest.$ac_ext >&5
22970
John Criswell47fdd832003-07-14 16:52:07 +000022971ac_cv_lib_dl_dlopen=no
22972fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022973rm -f conftest.err conftest.$ac_objext \
22974 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022975LIBS=$ac_check_lib_save_LIBS
22976fi
22977echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22978echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22979if test $ac_cv_lib_dl_dlopen = yes; then
22980 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22981else
22982
22983 lt_cv_dlopen="dyld"
22984 lt_cv_dlopen_libs=
22985 lt_cv_dlopen_self=yes
22986
22987fi
22988
22989 ;;
22990
22991 *)
22992 echo "$as_me:$LINENO: checking for shl_load" >&5
22993echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22994if test "${ac_cv_func_shl_load+set}" = set; then
22995 echo $ECHO_N "(cached) $ECHO_C" >&6
22996else
22997 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022998/* confdefs.h. */
22999_ACEOF
23000cat confdefs.h >>conftest.$ac_ext
23001cat >>conftest.$ac_ext <<_ACEOF
23002/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023003/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23005#define shl_load innocuous_shl_load
23006
John Criswell47fdd832003-07-14 16:52:07 +000023007/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023008 which can conflict with char shl_load (); below.
23009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23010 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023011
John Criswell0c38eaf2003-09-10 15:17:25 +000023012#ifdef __STDC__
23013# include <limits.h>
23014#else
23015# include <assert.h>
23016#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023017
23018#undef shl_load
23019
John Criswell47fdd832003-07-14 16:52:07 +000023020/* Override any gcc2 internal prototype to avoid an error. */
23021#ifdef __cplusplus
23022extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023023{
John Criswell47fdd832003-07-14 16:52:07 +000023024#endif
23025/* We use char because int might match the return type of a gcc2
23026 builtin and then its argument prototype would still apply. */
23027char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023028/* The GNU C library defines this for functions which it implements
23029 to always fail with ENOSYS. Some functions are actually named
23030 something starting with __ and the normal name is an alias. */
23031#if defined (__stub_shl_load) || defined (__stub___shl_load)
23032choke me
23033#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023034char (*f) () = shl_load;
23035#endif
23036#ifdef __cplusplus
23037}
John Criswell47fdd832003-07-14 16:52:07 +000023038#endif
23039
John Criswell0c38eaf2003-09-10 15:17:25 +000023040int
23041main ()
23042{
23043return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000023044 ;
23045 return 0;
23046}
23047_ACEOF
23048rm -f conftest.$ac_objext conftest$ac_exeext
23049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023050 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023051 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023052 grep -v '^ *+' conftest.er1 >conftest.err
23053 rm -f conftest.er1
23054 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023057 { ac_try='test -z "$ac_c_werror_flag"
23058 || test ! -s conftest.err'
23059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060 (eval $ac_try) 2>&5
23061 ac_status=$?
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); }; } &&
23064 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23066 (eval $ac_try) 2>&5
23067 ac_status=$?
23068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069 (exit $ac_status); }; }; then
23070 ac_cv_func_shl_load=yes
23071else
23072 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023073sed 's/^/| /' conftest.$ac_ext >&5
23074
John Criswell47fdd832003-07-14 16:52:07 +000023075ac_cv_func_shl_load=no
23076fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023077rm -f conftest.err conftest.$ac_objext \
23078 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023079fi
23080echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23081echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23082if test $ac_cv_func_shl_load = yes; then
23083 lt_cv_dlopen="shl_load"
23084else
23085 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23086echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23087if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23088 echo $ECHO_N "(cached) $ECHO_C" >&6
23089else
23090 ac_check_lib_save_LIBS=$LIBS
23091LIBS="-ldld $LIBS"
23092cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023093/* confdefs.h. */
23094_ACEOF
23095cat confdefs.h >>conftest.$ac_ext
23096cat >>conftest.$ac_ext <<_ACEOF
23097/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023098
23099/* Override any gcc2 internal prototype to avoid an error. */
23100#ifdef __cplusplus
23101extern "C"
23102#endif
23103/* We use char because int might match the return type of a gcc2
23104 builtin and then its argument prototype would still apply. */
23105char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023106int
23107main ()
23108{
23109shl_load ();
23110 ;
23111 return 0;
23112}
23113_ACEOF
23114rm -f conftest.$ac_objext conftest$ac_exeext
23115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023116 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023117 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023118 grep -v '^ *+' conftest.er1 >conftest.err
23119 rm -f conftest.er1
23120 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023123 { ac_try='test -z "$ac_c_werror_flag"
23124 || test ! -s conftest.err'
23125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23126 (eval $ac_try) 2>&5
23127 ac_status=$?
23128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129 (exit $ac_status); }; } &&
23130 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23132 (eval $ac_try) 2>&5
23133 ac_status=$?
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); }; }; then
23136 ac_cv_lib_dld_shl_load=yes
23137else
23138 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023139sed 's/^/| /' conftest.$ac_ext >&5
23140
John Criswell47fdd832003-07-14 16:52:07 +000023141ac_cv_lib_dld_shl_load=no
23142fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023143rm -f conftest.err conftest.$ac_objext \
23144 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023145LIBS=$ac_check_lib_save_LIBS
23146fi
23147echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23148echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23149if test $ac_cv_lib_dld_shl_load = yes; then
23150 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23151else
23152 echo "$as_me:$LINENO: checking for dlopen" >&5
23153echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23154if test "${ac_cv_func_dlopen+set}" = set; then
23155 echo $ECHO_N "(cached) $ECHO_C" >&6
23156else
23157 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023158/* confdefs.h. */
23159_ACEOF
23160cat confdefs.h >>conftest.$ac_ext
23161cat >>conftest.$ac_ext <<_ACEOF
23162/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023163/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23165#define dlopen innocuous_dlopen
23166
John Criswell47fdd832003-07-14 16:52:07 +000023167/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023168 which can conflict with char dlopen (); below.
23169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23170 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023171
John Criswell0c38eaf2003-09-10 15:17:25 +000023172#ifdef __STDC__
23173# include <limits.h>
23174#else
23175# include <assert.h>
23176#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023177
23178#undef dlopen
23179
John Criswell47fdd832003-07-14 16:52:07 +000023180/* Override any gcc2 internal prototype to avoid an error. */
23181#ifdef __cplusplus
23182extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023183{
John Criswell47fdd832003-07-14 16:52:07 +000023184#endif
23185/* We use char because int might match the return type of a gcc2
23186 builtin and then its argument prototype would still apply. */
23187char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023188/* The GNU C library defines this for functions which it implements
23189 to always fail with ENOSYS. Some functions are actually named
23190 something starting with __ and the normal name is an alias. */
23191#if defined (__stub_dlopen) || defined (__stub___dlopen)
23192choke me
23193#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023194char (*f) () = dlopen;
23195#endif
23196#ifdef __cplusplus
23197}
John Criswell47fdd832003-07-14 16:52:07 +000023198#endif
23199
John Criswell0c38eaf2003-09-10 15:17:25 +000023200int
23201main ()
23202{
23203return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023204 ;
23205 return 0;
23206}
23207_ACEOF
23208rm -f conftest.$ac_objext conftest$ac_exeext
23209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023210 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023211 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023212 grep -v '^ *+' conftest.er1 >conftest.err
23213 rm -f conftest.er1
23214 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023217 { ac_try='test -z "$ac_c_werror_flag"
23218 || test ! -s conftest.err'
23219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23220 (eval $ac_try) 2>&5
23221 ac_status=$?
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); }; } &&
23224 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23226 (eval $ac_try) 2>&5
23227 ac_status=$?
23228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229 (exit $ac_status); }; }; then
23230 ac_cv_func_dlopen=yes
23231else
23232 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023233sed 's/^/| /' conftest.$ac_ext >&5
23234
John Criswell47fdd832003-07-14 16:52:07 +000023235ac_cv_func_dlopen=no
23236fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023237rm -f conftest.err conftest.$ac_objext \
23238 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023239fi
23240echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23241echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23242if test $ac_cv_func_dlopen = yes; then
23243 lt_cv_dlopen="dlopen"
23244else
23245 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23246echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23247if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23248 echo $ECHO_N "(cached) $ECHO_C" >&6
23249else
23250 ac_check_lib_save_LIBS=$LIBS
23251LIBS="-ldl $LIBS"
23252cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023253/* confdefs.h. */
23254_ACEOF
23255cat confdefs.h >>conftest.$ac_ext
23256cat >>conftest.$ac_ext <<_ACEOF
23257/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023258
23259/* Override any gcc2 internal prototype to avoid an error. */
23260#ifdef __cplusplus
23261extern "C"
23262#endif
23263/* We use char because int might match the return type of a gcc2
23264 builtin and then its argument prototype would still apply. */
23265char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023266int
23267main ()
23268{
23269dlopen ();
23270 ;
23271 return 0;
23272}
23273_ACEOF
23274rm -f conftest.$ac_objext conftest$ac_exeext
23275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023276 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023277 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023278 grep -v '^ *+' conftest.er1 >conftest.err
23279 rm -f conftest.er1
23280 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23282 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023283 { ac_try='test -z "$ac_c_werror_flag"
23284 || test ! -s conftest.err'
23285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23286 (eval $ac_try) 2>&5
23287 ac_status=$?
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); }; } &&
23290 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23292 (eval $ac_try) 2>&5
23293 ac_status=$?
23294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); }; }; then
23296 ac_cv_lib_dl_dlopen=yes
23297else
23298 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023299sed 's/^/| /' conftest.$ac_ext >&5
23300
John Criswell47fdd832003-07-14 16:52:07 +000023301ac_cv_lib_dl_dlopen=no
23302fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023303rm -f conftest.err conftest.$ac_objext \
23304 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023305LIBS=$ac_check_lib_save_LIBS
23306fi
23307echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23308echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23309if test $ac_cv_lib_dl_dlopen = yes; then
23310 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23311else
23312 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23313echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23314if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23315 echo $ECHO_N "(cached) $ECHO_C" >&6
23316else
23317 ac_check_lib_save_LIBS=$LIBS
23318LIBS="-lsvld $LIBS"
23319cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023320/* confdefs.h. */
23321_ACEOF
23322cat confdefs.h >>conftest.$ac_ext
23323cat >>conftest.$ac_ext <<_ACEOF
23324/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023325
23326/* Override any gcc2 internal prototype to avoid an error. */
23327#ifdef __cplusplus
23328extern "C"
23329#endif
23330/* We use char because int might match the return type of a gcc2
23331 builtin and then its argument prototype would still apply. */
23332char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023333int
23334main ()
23335{
23336dlopen ();
23337 ;
23338 return 0;
23339}
23340_ACEOF
23341rm -f conftest.$ac_objext conftest$ac_exeext
23342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023343 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023344 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023345 grep -v '^ *+' conftest.er1 >conftest.err
23346 rm -f conftest.er1
23347 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023350 { ac_try='test -z "$ac_c_werror_flag"
23351 || test ! -s conftest.err'
23352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23353 (eval $ac_try) 2>&5
23354 ac_status=$?
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); }; } &&
23357 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23359 (eval $ac_try) 2>&5
23360 ac_status=$?
23361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362 (exit $ac_status); }; }; then
23363 ac_cv_lib_svld_dlopen=yes
23364else
23365 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023366sed 's/^/| /' conftest.$ac_ext >&5
23367
John Criswell47fdd832003-07-14 16:52:07 +000023368ac_cv_lib_svld_dlopen=no
23369fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023370rm -f conftest.err conftest.$ac_objext \
23371 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023372LIBS=$ac_check_lib_save_LIBS
23373fi
23374echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23375echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23376if test $ac_cv_lib_svld_dlopen = yes; then
23377 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23378else
23379 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23380echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23381if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23382 echo $ECHO_N "(cached) $ECHO_C" >&6
23383else
23384 ac_check_lib_save_LIBS=$LIBS
23385LIBS="-ldld $LIBS"
23386cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023387/* confdefs.h. */
23388_ACEOF
23389cat confdefs.h >>conftest.$ac_ext
23390cat >>conftest.$ac_ext <<_ACEOF
23391/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023392
23393/* Override any gcc2 internal prototype to avoid an error. */
23394#ifdef __cplusplus
23395extern "C"
23396#endif
23397/* We use char because int might match the return type of a gcc2
23398 builtin and then its argument prototype would still apply. */
23399char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023400int
23401main ()
23402{
23403dld_link ();
23404 ;
23405 return 0;
23406}
23407_ACEOF
23408rm -f conftest.$ac_objext conftest$ac_exeext
23409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023410 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023411 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023412 grep -v '^ *+' conftest.er1 >conftest.err
23413 rm -f conftest.er1
23414 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023417 { ac_try='test -z "$ac_c_werror_flag"
23418 || test ! -s conftest.err'
23419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23420 (eval $ac_try) 2>&5
23421 ac_status=$?
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); }; } &&
23424 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23426 (eval $ac_try) 2>&5
23427 ac_status=$?
23428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429 (exit $ac_status); }; }; then
23430 ac_cv_lib_dld_dld_link=yes
23431else
23432 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023433sed 's/^/| /' conftest.$ac_ext >&5
23434
John Criswell47fdd832003-07-14 16:52:07 +000023435ac_cv_lib_dld_dld_link=no
23436fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023437rm -f conftest.err conftest.$ac_objext \
23438 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023439LIBS=$ac_check_lib_save_LIBS
23440fi
23441echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23442echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23443if test $ac_cv_lib_dld_dld_link = yes; then
23444 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23445fi
23446
23447
23448fi
23449
23450
23451fi
23452
23453
23454fi
23455
23456
23457fi
23458
23459
23460fi
23461
23462 ;;
23463 esac
23464
23465 if test "x$lt_cv_dlopen" != xno; then
23466 enable_dlopen=yes
23467 else
23468 enable_dlopen=no
23469 fi
23470
23471 case $lt_cv_dlopen in
23472 dlopen)
23473 save_CPPFLAGS="$CPPFLAGS"
23474 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23475
23476 save_LDFLAGS="$LDFLAGS"
23477 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23478
23479 save_LIBS="$LIBS"
23480 LIBS="$lt_cv_dlopen_libs $LIBS"
23481
23482 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23483echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23484if test "${lt_cv_dlopen_self+set}" = set; then
23485 echo $ECHO_N "(cached) $ECHO_C" >&6
23486else
23487 if test "$cross_compiling" = yes; then :
23488 lt_cv_dlopen_self=cross
23489else
23490 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23491 lt_status=$lt_dlunknown
23492 cat > conftest.$ac_ext <<EOF
Duraid Madina775afa52005-05-16 16:33:34 +000023493#line 23493 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023494#include "confdefs.h"
23495
23496#if HAVE_DLFCN_H
23497#include <dlfcn.h>
23498#endif
23499
23500#include <stdio.h>
23501
23502#ifdef RTLD_GLOBAL
23503# define LT_DLGLOBAL RTLD_GLOBAL
23504#else
23505# ifdef DL_GLOBAL
23506# define LT_DLGLOBAL DL_GLOBAL
23507# else
23508# define LT_DLGLOBAL 0
23509# endif
23510#endif
23511
23512/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23513 find out it does not work in some platform. */
23514#ifndef LT_DLLAZY_OR_NOW
23515# ifdef RTLD_LAZY
23516# define LT_DLLAZY_OR_NOW RTLD_LAZY
23517# else
23518# ifdef DL_LAZY
23519# define LT_DLLAZY_OR_NOW DL_LAZY
23520# else
23521# ifdef RTLD_NOW
23522# define LT_DLLAZY_OR_NOW RTLD_NOW
23523# else
23524# ifdef DL_NOW
23525# define LT_DLLAZY_OR_NOW DL_NOW
23526# else
23527# define LT_DLLAZY_OR_NOW 0
23528# endif
23529# endif
23530# endif
23531# endif
23532#endif
23533
23534#ifdef __cplusplus
23535extern "C" void exit (int);
23536#endif
23537
23538void fnord() { int i=42;}
23539int main ()
23540{
23541 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23542 int status = $lt_dlunknown;
23543
23544 if (self)
23545 {
23546 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23547 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23548 /* dlclose (self); */
23549 }
23550
23551 exit (status);
23552}
23553EOF
23554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23555 (eval $ac_link) 2>&5
23556 ac_status=$?
23557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23559 (./conftest; exit; ) 2>/dev/null
23560 lt_status=$?
23561 case x$lt_status in
23562 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23563 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23564 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23565 esac
23566 else :
23567 # compilation failed
23568 lt_cv_dlopen_self=no
23569 fi
23570fi
23571rm -fr conftest*
23572
23573
23574fi
23575echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23576echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23577
23578 if test "x$lt_cv_dlopen_self" = xyes; then
23579 LDFLAGS="$LDFLAGS $link_static_flag"
23580 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23581echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23582if test "${lt_cv_dlopen_self_static+set}" = set; then
23583 echo $ECHO_N "(cached) $ECHO_C" >&6
23584else
23585 if test "$cross_compiling" = yes; then :
23586 lt_cv_dlopen_self_static=cross
23587else
23588 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23589 lt_status=$lt_dlunknown
23590 cat > conftest.$ac_ext <<EOF
Duraid Madina775afa52005-05-16 16:33:34 +000023591#line 23591 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023592#include "confdefs.h"
23593
23594#if HAVE_DLFCN_H
23595#include <dlfcn.h>
23596#endif
23597
23598#include <stdio.h>
23599
23600#ifdef RTLD_GLOBAL
23601# define LT_DLGLOBAL RTLD_GLOBAL
23602#else
23603# ifdef DL_GLOBAL
23604# define LT_DLGLOBAL DL_GLOBAL
23605# else
23606# define LT_DLGLOBAL 0
23607# endif
23608#endif
23609
23610/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23611 find out it does not work in some platform. */
23612#ifndef LT_DLLAZY_OR_NOW
23613# ifdef RTLD_LAZY
23614# define LT_DLLAZY_OR_NOW RTLD_LAZY
23615# else
23616# ifdef DL_LAZY
23617# define LT_DLLAZY_OR_NOW DL_LAZY
23618# else
23619# ifdef RTLD_NOW
23620# define LT_DLLAZY_OR_NOW RTLD_NOW
23621# else
23622# ifdef DL_NOW
23623# define LT_DLLAZY_OR_NOW DL_NOW
23624# else
23625# define LT_DLLAZY_OR_NOW 0
23626# endif
23627# endif
23628# endif
23629# endif
23630#endif
23631
23632#ifdef __cplusplus
23633extern "C" void exit (int);
23634#endif
23635
23636void fnord() { int i=42;}
23637int main ()
23638{
23639 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23640 int status = $lt_dlunknown;
23641
23642 if (self)
23643 {
23644 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23645 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23646 /* dlclose (self); */
23647 }
23648
23649 exit (status);
23650}
23651EOF
23652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23653 (eval $ac_link) 2>&5
23654 ac_status=$?
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23657 (./conftest; exit; ) 2>/dev/null
23658 lt_status=$?
23659 case x$lt_status in
23660 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23661 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23662 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23663 esac
23664 else :
23665 # compilation failed
23666 lt_cv_dlopen_self_static=no
23667 fi
23668fi
23669rm -fr conftest*
23670
23671
23672fi
23673echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23674echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23675 fi
23676
23677 CPPFLAGS="$save_CPPFLAGS"
23678 LDFLAGS="$save_LDFLAGS"
23679 LIBS="$save_LIBS"
23680 ;;
23681 esac
23682
23683 case $lt_cv_dlopen_self in
23684 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23685 *) enable_dlopen_self=unknown ;;
23686 esac
23687
23688 case $lt_cv_dlopen_self_static in
23689 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23690 *) enable_dlopen_self_static=unknown ;;
23691 esac
23692fi
23693
23694
23695# The else clause should only fire when bootstrapping the
23696# libtool distribution, otherwise you forgot to ship ltmain.sh
23697# with your package, and you will get complaints that there are
23698# no rules to generate ltmain.sh.
23699if test -f "$ltmain"; then
23700 # See if we are running on zsh, and set the options which allow our commands through
23701 # without removal of \ escapes.
23702 if test -n "${ZSH_VERSION+set}" ; then
23703 setopt NO_GLOB_SUBST
23704 fi
23705 # Now quote all the things that may contain metacharacters while being
23706 # careful not to overquote the AC_SUBSTed values. We take copies of the
23707 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023708 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23709 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023710 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23711 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23712 deplibs_check_method reload_flag reload_cmds need_locks \
23713 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23714 lt_cv_sys_global_symbol_to_c_name_address \
23715 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23716 old_postinstall_cmds old_postuninstall_cmds \
23717 compiler_GCJ \
23718 CC_GCJ \
23719 LD_GCJ \
23720 lt_prog_compiler_wl_GCJ \
23721 lt_prog_compiler_pic_GCJ \
23722 lt_prog_compiler_static_GCJ \
23723 lt_prog_compiler_no_builtin_flag_GCJ \
23724 export_dynamic_flag_spec_GCJ \
23725 thread_safe_flag_spec_GCJ \
23726 whole_archive_flag_spec_GCJ \
23727 enable_shared_with_static_runtimes_GCJ \
23728 old_archive_cmds_GCJ \
23729 old_archive_from_new_cmds_GCJ \
23730 predep_objects_GCJ \
23731 postdep_objects_GCJ \
23732 predeps_GCJ \
23733 postdeps_GCJ \
23734 compiler_lib_search_path_GCJ \
23735 archive_cmds_GCJ \
23736 archive_expsym_cmds_GCJ \
23737 postinstall_cmds_GCJ \
23738 postuninstall_cmds_GCJ \
23739 old_archive_from_expsyms_cmds_GCJ \
23740 allow_undefined_flag_GCJ \
23741 no_undefined_flag_GCJ \
23742 export_symbols_cmds_GCJ \
23743 hardcode_libdir_flag_spec_GCJ \
23744 hardcode_libdir_flag_spec_ld_GCJ \
23745 hardcode_libdir_separator_GCJ \
23746 hardcode_automatic_GCJ \
23747 module_cmds_GCJ \
23748 module_expsym_cmds_GCJ \
23749 lt_cv_prog_compiler_c_o_GCJ \
23750 exclude_expsyms_GCJ \
23751 include_expsyms_GCJ; do
23752
23753 case $var in
23754 old_archive_cmds_GCJ | \
23755 old_archive_from_new_cmds_GCJ | \
23756 archive_cmds_GCJ | \
23757 archive_expsym_cmds_GCJ | \
23758 module_cmds_GCJ | \
23759 module_expsym_cmds_GCJ | \
23760 old_archive_from_expsyms_cmds_GCJ | \
23761 export_symbols_cmds_GCJ | \
23762 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23763 postinstall_cmds | postuninstall_cmds | \
23764 old_postinstall_cmds | old_postuninstall_cmds | \
23765 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23766 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023767 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 +000023768 ;;
23769 *)
23770 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23771 ;;
23772 esac
23773 done
23774
23775 case $lt_echo in
23776 *'\$0 --fallback-echo"')
23777 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23778 ;;
23779 esac
23780
23781cfgfile="$ofile"
23782
23783 cat <<__EOF__ >> "$cfgfile"
23784# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23785
23786# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23787
23788# Shell to use when invoking shell scripts.
23789SHELL=$lt_SHELL
23790
23791# Whether or not to build shared libraries.
23792build_libtool_libs=$enable_shared
23793
23794# Whether or not to build static libraries.
23795build_old_libs=$enable_static
23796
23797# Whether or not to add -lc for building shared libraries.
23798build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23799
23800# Whether or not to disallow shared libs when runtime libs are static
23801allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23802
23803# Whether or not to optimize for fast installation.
23804fast_install=$enable_fast_install
23805
23806# The host system.
23807host_alias=$host_alias
23808host=$host
23809
23810# An echo program that does not interpret backslashes.
23811echo=$lt_echo
23812
23813# The archiver.
23814AR=$lt_AR
23815AR_FLAGS=$lt_AR_FLAGS
23816
23817# A C compiler.
23818LTCC=$lt_LTCC
23819
23820# A language-specific compiler.
23821CC=$lt_compiler_GCJ
23822
23823# Is the compiler the GNU C compiler?
23824with_gcc=$GCC_GCJ
23825
23826# An ERE matcher.
23827EGREP=$lt_EGREP
23828
23829# The linker used to build libraries.
23830LD=$lt_LD_GCJ
23831
23832# Whether we need hard or soft links.
23833LN_S=$lt_LN_S
23834
23835# A BSD-compatible nm program.
23836NM=$lt_NM
23837
23838# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023839STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023840
23841# Used to examine libraries when file_magic_cmd begins "file"
23842MAGIC_CMD=$MAGIC_CMD
23843
23844# Used on cygwin: DLL creation program.
23845DLLTOOL="$DLLTOOL"
23846
23847# Used on cygwin: object dumper.
23848OBJDUMP="$OBJDUMP"
23849
23850# Used on cygwin: assembler.
23851AS="$AS"
23852
23853# The name of the directory that contains temporary libtool files.
23854objdir=$objdir
23855
23856# How to create reloadable object files.
23857reload_flag=$lt_reload_flag
23858reload_cmds=$lt_reload_cmds
23859
23860# How to pass a linker flag through the compiler.
23861wl=$lt_lt_prog_compiler_wl_GCJ
23862
23863# Object file suffix (normally "o").
23864objext="$ac_objext"
23865
23866# Old archive suffix (normally "a").
23867libext="$libext"
23868
23869# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023870shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023871
23872# Executable file suffix (normally "").
23873exeext="$exeext"
23874
23875# Additional compiler flags for building library objects.
23876pic_flag=$lt_lt_prog_compiler_pic_GCJ
23877pic_mode=$pic_mode
23878
23879# What is the maximum length of a command?
23880max_cmd_len=$lt_cv_sys_max_cmd_len
23881
23882# Does compiler simultaneously support -c and -o options?
23883compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23884
23885# Must we lock files when doing compilation ?
23886need_locks=$lt_need_locks
23887
23888# Do we need the lib prefix for modules?
23889need_lib_prefix=$need_lib_prefix
23890
23891# Do we need a version for libraries?
23892need_version=$need_version
23893
23894# Whether dlopen is supported.
23895dlopen_support=$enable_dlopen
23896
23897# Whether dlopen of programs is supported.
23898dlopen_self=$enable_dlopen_self
23899
23900# Whether dlopen of statically linked programs is supported.
23901dlopen_self_static=$enable_dlopen_self_static
23902
23903# Compiler flag to prevent dynamic linking.
23904link_static_flag=$lt_lt_prog_compiler_static_GCJ
23905
23906# Compiler flag to turn off builtin functions.
23907no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23908
23909# Compiler flag to allow reflexive dlopens.
23910export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23911
23912# Compiler flag to generate shared objects directly from archives.
23913whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23914
23915# Compiler flag to generate thread-safe objects.
23916thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23917
23918# Library versioning type.
23919version_type=$version_type
23920
23921# Format of library name prefix.
23922libname_spec=$lt_libname_spec
23923
23924# List of archive names. First name is the real one, the rest are links.
23925# The last name is the one that the linker finds with -lNAME.
23926library_names_spec=$lt_library_names_spec
23927
23928# The coded name of the library, if different from the real name.
23929soname_spec=$lt_soname_spec
23930
23931# Commands used to build and install an old-style archive.
23932RANLIB=$lt_RANLIB
23933old_archive_cmds=$lt_old_archive_cmds_GCJ
23934old_postinstall_cmds=$lt_old_postinstall_cmds
23935old_postuninstall_cmds=$lt_old_postuninstall_cmds
23936
23937# Create an old-style archive from a shared archive.
23938old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23939
23940# Create a temporary old-style archive to link instead of a shared archive.
23941old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23942
23943# Commands used to build and install a shared archive.
23944archive_cmds=$lt_archive_cmds_GCJ
23945archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23946postinstall_cmds=$lt_postinstall_cmds
23947postuninstall_cmds=$lt_postuninstall_cmds
23948
23949# Commands used to build a loadable module (assumed same as above if empty)
23950module_cmds=$lt_module_cmds_GCJ
23951module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23952
23953# Commands to strip libraries.
23954old_striplib=$lt_old_striplib
23955striplib=$lt_striplib
23956
23957# Dependencies to place before the objects being linked to create a
23958# shared library.
23959predep_objects=$lt_predep_objects_GCJ
23960
23961# Dependencies to place after the objects being linked to create a
23962# shared library.
23963postdep_objects=$lt_postdep_objects_GCJ
23964
23965# Dependencies to place before the objects being linked to create a
23966# shared library.
23967predeps=$lt_predeps_GCJ
23968
23969# Dependencies to place after the objects being linked to create a
23970# shared library.
23971postdeps=$lt_postdeps_GCJ
23972
23973# The library search path used internally by the compiler when linking
23974# a shared library.
23975compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23976
23977# Method to check whether dependent libraries are shared objects.
23978deplibs_check_method=$lt_deplibs_check_method
23979
23980# Command to use when deplibs_check_method == file_magic.
23981file_magic_cmd=$lt_file_magic_cmd
23982
23983# Flag that allows shared libraries with undefined symbols to be built.
23984allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23985
23986# Flag that forces no undefined symbols.
23987no_undefined_flag=$lt_no_undefined_flag_GCJ
23988
23989# Commands used to finish a libtool library installation in a directory.
23990finish_cmds=$lt_finish_cmds
23991
23992# Same as above, but a single script fragment to be evaled but not shown.
23993finish_eval=$lt_finish_eval
23994
23995# Take the output of nm and produce a listing of raw symbols and C names.
23996global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23997
23998# Transform the output of nm in a proper C declaration
23999global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24000
24001# Transform the output of nm in a C name address pair
24002global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24003
24004# This is the shared library runtime path variable.
24005runpath_var=$runpath_var
24006
24007# This is the shared library path variable.
24008shlibpath_var=$shlibpath_var
24009
24010# Is shlibpath searched before the hard-coded library search path?
24011shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24012
24013# How to hardcode a shared library path into an executable.
24014hardcode_action=$hardcode_action_GCJ
24015
24016# Whether we should hardcode library paths into libraries.
24017hardcode_into_libs=$hardcode_into_libs
24018
24019# Flag to hardcode \$libdir into a binary during linking.
24020# This must work even if \$libdir does not exist.
24021hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24022
24023# If ld is used when linking, flag to hardcode \$libdir into
24024# a binary during linking. This must work even if \$libdir does
24025# not exist.
24026hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24027
24028# Whether we need a single -rpath flag with a separated argument.
24029hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24030
24031# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24032# resulting binary.
24033hardcode_direct=$hardcode_direct_GCJ
24034
24035# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24036# resulting binary.
24037hardcode_minus_L=$hardcode_minus_L_GCJ
24038
24039# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24040# the resulting binary.
24041hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24042
24043# Set to yes if building a shared library automatically hardcodes DIR into the library
24044# and all subsequent libraries and executables linked against it.
24045hardcode_automatic=$hardcode_automatic_GCJ
24046
24047# Variables whose values should be saved in libtool wrapper scripts and
24048# restored at relink time.
24049variables_saved_for_relink="$variables_saved_for_relink"
24050
24051# Whether libtool must link a program against all its dependency libraries.
24052link_all_deplibs=$link_all_deplibs_GCJ
24053
24054# Compile-time system search path for libraries
24055sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24056
24057# Run-time system search path for libraries
24058sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24059
24060# Fix the shell variable \$srcfile for the compiler.
24061fix_srcfile_path="$fix_srcfile_path_GCJ"
24062
24063# Set to yes if exported symbols are required.
24064always_export_symbols=$always_export_symbols_GCJ
24065
24066# The commands to list exported symbols.
24067export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24068
24069# The commands to extract the exported symbol list from a shared archive.
24070extract_expsyms_cmds=$lt_extract_expsyms_cmds
24071
24072# Symbols that should not be listed in the preloaded symbols.
24073exclude_expsyms=$lt_exclude_expsyms_GCJ
24074
24075# Symbols that must always be exported.
24076include_expsyms=$lt_include_expsyms_GCJ
24077
24078# ### END LIBTOOL TAG CONFIG: $tagname
24079
24080__EOF__
24081
24082
24083else
24084 # If there is no Makefile yet, we rely on a make rule to execute
24085 # `config.status --recheck' to rerun these tests and create the
24086 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024087 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24088 if test -f "$ltmain_in"; then
24089 test -f Makefile && make "$ltmain"
24090 fi
John Criswell47fdd832003-07-14 16:52:07 +000024091fi
24092
24093
24094ac_ext=c
24095ac_cpp='$CPP $CPPFLAGS'
24096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24098ac_compiler_gnu=$ac_cv_c_compiler_gnu
24099
24100CC="$lt_save_CC"
24101
24102 else
24103 tagname=""
24104 fi
24105 ;;
24106
24107 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024108 ac_ext=c
24109ac_cpp='$CPP $CPPFLAGS'
24110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24112ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024113
24114
24115# Source file extension for RC test sources.
24116ac_ext=rc
24117
24118# Object file extension for compiled RC test sources.
24119objext=o
24120objext_RC=$objext
24121
24122# Code to be used in simple compile tests
24123lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24124
24125# Code to be used in simple link tests
24126lt_simple_link_test_code="$lt_simple_compile_test_code"
24127
24128# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24129
24130# If no C compiler was specified, use CC.
24131LTCC=${LTCC-"$CC"}
24132
24133# Allow CC to be a program name with arguments.
24134compiler=$CC
24135
24136
24137# Allow CC to be a program name with arguments.
24138lt_save_CC="$CC"
24139CC=${RC-"windres"}
24140compiler=$CC
24141compiler_RC=$CC
24142lt_cv_prog_compiler_c_o_RC=yes
24143
24144# The else clause should only fire when bootstrapping the
24145# libtool distribution, otherwise you forgot to ship ltmain.sh
24146# with your package, and you will get complaints that there are
24147# no rules to generate ltmain.sh.
24148if test -f "$ltmain"; then
24149 # See if we are running on zsh, and set the options which allow our commands through
24150 # without removal of \ escapes.
24151 if test -n "${ZSH_VERSION+set}" ; then
24152 setopt NO_GLOB_SUBST
24153 fi
24154 # Now quote all the things that may contain metacharacters while being
24155 # careful not to overquote the AC_SUBSTed values. We take copies of the
24156 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024157 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24158 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024159 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24160 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24161 deplibs_check_method reload_flag reload_cmds need_locks \
24162 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24163 lt_cv_sys_global_symbol_to_c_name_address \
24164 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24165 old_postinstall_cmds old_postuninstall_cmds \
24166 compiler_RC \
24167 CC_RC \
24168 LD_RC \
24169 lt_prog_compiler_wl_RC \
24170 lt_prog_compiler_pic_RC \
24171 lt_prog_compiler_static_RC \
24172 lt_prog_compiler_no_builtin_flag_RC \
24173 export_dynamic_flag_spec_RC \
24174 thread_safe_flag_spec_RC \
24175 whole_archive_flag_spec_RC \
24176 enable_shared_with_static_runtimes_RC \
24177 old_archive_cmds_RC \
24178 old_archive_from_new_cmds_RC \
24179 predep_objects_RC \
24180 postdep_objects_RC \
24181 predeps_RC \
24182 postdeps_RC \
24183 compiler_lib_search_path_RC \
24184 archive_cmds_RC \
24185 archive_expsym_cmds_RC \
24186 postinstall_cmds_RC \
24187 postuninstall_cmds_RC \
24188 old_archive_from_expsyms_cmds_RC \
24189 allow_undefined_flag_RC \
24190 no_undefined_flag_RC \
24191 export_symbols_cmds_RC \
24192 hardcode_libdir_flag_spec_RC \
24193 hardcode_libdir_flag_spec_ld_RC \
24194 hardcode_libdir_separator_RC \
24195 hardcode_automatic_RC \
24196 module_cmds_RC \
24197 module_expsym_cmds_RC \
24198 lt_cv_prog_compiler_c_o_RC \
24199 exclude_expsyms_RC \
24200 include_expsyms_RC; do
24201
24202 case $var in
24203 old_archive_cmds_RC | \
24204 old_archive_from_new_cmds_RC | \
24205 archive_cmds_RC | \
24206 archive_expsym_cmds_RC | \
24207 module_cmds_RC | \
24208 module_expsym_cmds_RC | \
24209 old_archive_from_expsyms_cmds_RC | \
24210 export_symbols_cmds_RC | \
24211 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24212 postinstall_cmds | postuninstall_cmds | \
24213 old_postinstall_cmds | old_postuninstall_cmds | \
24214 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24215 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024216 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 +000024217 ;;
24218 *)
24219 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24220 ;;
24221 esac
24222 done
24223
24224 case $lt_echo in
24225 *'\$0 --fallback-echo"')
24226 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24227 ;;
24228 esac
24229
24230cfgfile="$ofile"
24231
24232 cat <<__EOF__ >> "$cfgfile"
24233# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24234
24235# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24236
24237# Shell to use when invoking shell scripts.
24238SHELL=$lt_SHELL
24239
24240# Whether or not to build shared libraries.
24241build_libtool_libs=$enable_shared
24242
24243# Whether or not to build static libraries.
24244build_old_libs=$enable_static
24245
24246# Whether or not to add -lc for building shared libraries.
24247build_libtool_need_lc=$archive_cmds_need_lc_RC
24248
24249# Whether or not to disallow shared libs when runtime libs are static
24250allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24251
24252# Whether or not to optimize for fast installation.
24253fast_install=$enable_fast_install
24254
24255# The host system.
24256host_alias=$host_alias
24257host=$host
24258
24259# An echo program that does not interpret backslashes.
24260echo=$lt_echo
24261
24262# The archiver.
24263AR=$lt_AR
24264AR_FLAGS=$lt_AR_FLAGS
24265
24266# A C compiler.
24267LTCC=$lt_LTCC
24268
24269# A language-specific compiler.
24270CC=$lt_compiler_RC
24271
24272# Is the compiler the GNU C compiler?
24273with_gcc=$GCC_RC
24274
24275# An ERE matcher.
24276EGREP=$lt_EGREP
24277
24278# The linker used to build libraries.
24279LD=$lt_LD_RC
24280
24281# Whether we need hard or soft links.
24282LN_S=$lt_LN_S
24283
24284# A BSD-compatible nm program.
24285NM=$lt_NM
24286
24287# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024288STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024289
24290# Used to examine libraries when file_magic_cmd begins "file"
24291MAGIC_CMD=$MAGIC_CMD
24292
24293# Used on cygwin: DLL creation program.
24294DLLTOOL="$DLLTOOL"
24295
24296# Used on cygwin: object dumper.
24297OBJDUMP="$OBJDUMP"
24298
24299# Used on cygwin: assembler.
24300AS="$AS"
24301
24302# The name of the directory that contains temporary libtool files.
24303objdir=$objdir
24304
24305# How to create reloadable object files.
24306reload_flag=$lt_reload_flag
24307reload_cmds=$lt_reload_cmds
24308
24309# How to pass a linker flag through the compiler.
24310wl=$lt_lt_prog_compiler_wl_RC
24311
24312# Object file suffix (normally "o").
24313objext="$ac_objext"
24314
24315# Old archive suffix (normally "a").
24316libext="$libext"
24317
24318# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024319shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024320
24321# Executable file suffix (normally "").
24322exeext="$exeext"
24323
24324# Additional compiler flags for building library objects.
24325pic_flag=$lt_lt_prog_compiler_pic_RC
24326pic_mode=$pic_mode
24327
24328# What is the maximum length of a command?
24329max_cmd_len=$lt_cv_sys_max_cmd_len
24330
24331# Does compiler simultaneously support -c and -o options?
24332compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24333
24334# Must we lock files when doing compilation ?
24335need_locks=$lt_need_locks
24336
24337# Do we need the lib prefix for modules?
24338need_lib_prefix=$need_lib_prefix
24339
24340# Do we need a version for libraries?
24341need_version=$need_version
24342
24343# Whether dlopen is supported.
24344dlopen_support=$enable_dlopen
24345
24346# Whether dlopen of programs is supported.
24347dlopen_self=$enable_dlopen_self
24348
24349# Whether dlopen of statically linked programs is supported.
24350dlopen_self_static=$enable_dlopen_self_static
24351
24352# Compiler flag to prevent dynamic linking.
24353link_static_flag=$lt_lt_prog_compiler_static_RC
24354
24355# Compiler flag to turn off builtin functions.
24356no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24357
24358# Compiler flag to allow reflexive dlopens.
24359export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24360
24361# Compiler flag to generate shared objects directly from archives.
24362whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24363
24364# Compiler flag to generate thread-safe objects.
24365thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24366
24367# Library versioning type.
24368version_type=$version_type
24369
24370# Format of library name prefix.
24371libname_spec=$lt_libname_spec
24372
24373# List of archive names. First name is the real one, the rest are links.
24374# The last name is the one that the linker finds with -lNAME.
24375library_names_spec=$lt_library_names_spec
24376
24377# The coded name of the library, if different from the real name.
24378soname_spec=$lt_soname_spec
24379
24380# Commands used to build and install an old-style archive.
24381RANLIB=$lt_RANLIB
24382old_archive_cmds=$lt_old_archive_cmds_RC
24383old_postinstall_cmds=$lt_old_postinstall_cmds
24384old_postuninstall_cmds=$lt_old_postuninstall_cmds
24385
24386# Create an old-style archive from a shared archive.
24387old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24388
24389# Create a temporary old-style archive to link instead of a shared archive.
24390old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24391
24392# Commands used to build and install a shared archive.
24393archive_cmds=$lt_archive_cmds_RC
24394archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24395postinstall_cmds=$lt_postinstall_cmds
24396postuninstall_cmds=$lt_postuninstall_cmds
24397
24398# Commands used to build a loadable module (assumed same as above if empty)
24399module_cmds=$lt_module_cmds_RC
24400module_expsym_cmds=$lt_module_expsym_cmds_RC
24401
24402# Commands to strip libraries.
24403old_striplib=$lt_old_striplib
24404striplib=$lt_striplib
24405
24406# Dependencies to place before the objects being linked to create a
24407# shared library.
24408predep_objects=$lt_predep_objects_RC
24409
24410# Dependencies to place after the objects being linked to create a
24411# shared library.
24412postdep_objects=$lt_postdep_objects_RC
24413
24414# Dependencies to place before the objects being linked to create a
24415# shared library.
24416predeps=$lt_predeps_RC
24417
24418# Dependencies to place after the objects being linked to create a
24419# shared library.
24420postdeps=$lt_postdeps_RC
24421
24422# The library search path used internally by the compiler when linking
24423# a shared library.
24424compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24425
24426# Method to check whether dependent libraries are shared objects.
24427deplibs_check_method=$lt_deplibs_check_method
24428
24429# Command to use when deplibs_check_method == file_magic.
24430file_magic_cmd=$lt_file_magic_cmd
24431
24432# Flag that allows shared libraries with undefined symbols to be built.
24433allow_undefined_flag=$lt_allow_undefined_flag_RC
24434
24435# Flag that forces no undefined symbols.
24436no_undefined_flag=$lt_no_undefined_flag_RC
24437
24438# Commands used to finish a libtool library installation in a directory.
24439finish_cmds=$lt_finish_cmds
24440
24441# Same as above, but a single script fragment to be evaled but not shown.
24442finish_eval=$lt_finish_eval
24443
24444# Take the output of nm and produce a listing of raw symbols and C names.
24445global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24446
24447# Transform the output of nm in a proper C declaration
24448global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24449
24450# Transform the output of nm in a C name address pair
24451global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24452
24453# This is the shared library runtime path variable.
24454runpath_var=$runpath_var
24455
24456# This is the shared library path variable.
24457shlibpath_var=$shlibpath_var
24458
24459# Is shlibpath searched before the hard-coded library search path?
24460shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24461
24462# How to hardcode a shared library path into an executable.
24463hardcode_action=$hardcode_action_RC
24464
24465# Whether we should hardcode library paths into libraries.
24466hardcode_into_libs=$hardcode_into_libs
24467
24468# Flag to hardcode \$libdir into a binary during linking.
24469# This must work even if \$libdir does not exist.
24470hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24471
24472# If ld is used when linking, flag to hardcode \$libdir into
24473# a binary during linking. This must work even if \$libdir does
24474# not exist.
24475hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24476
24477# Whether we need a single -rpath flag with a separated argument.
24478hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24479
24480# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24481# resulting binary.
24482hardcode_direct=$hardcode_direct_RC
24483
24484# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24485# resulting binary.
24486hardcode_minus_L=$hardcode_minus_L_RC
24487
24488# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24489# the resulting binary.
24490hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24491
24492# Set to yes if building a shared library automatically hardcodes DIR into the library
24493# and all subsequent libraries and executables linked against it.
24494hardcode_automatic=$hardcode_automatic_RC
24495
24496# Variables whose values should be saved in libtool wrapper scripts and
24497# restored at relink time.
24498variables_saved_for_relink="$variables_saved_for_relink"
24499
24500# Whether libtool must link a program against all its dependency libraries.
24501link_all_deplibs=$link_all_deplibs_RC
24502
24503# Compile-time system search path for libraries
24504sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24505
24506# Run-time system search path for libraries
24507sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24508
24509# Fix the shell variable \$srcfile for the compiler.
24510fix_srcfile_path="$fix_srcfile_path_RC"
24511
24512# Set to yes if exported symbols are required.
24513always_export_symbols=$always_export_symbols_RC
24514
24515# The commands to list exported symbols.
24516export_symbols_cmds=$lt_export_symbols_cmds_RC
24517
24518# The commands to extract the exported symbol list from a shared archive.
24519extract_expsyms_cmds=$lt_extract_expsyms_cmds
24520
24521# Symbols that should not be listed in the preloaded symbols.
24522exclude_expsyms=$lt_exclude_expsyms_RC
24523
24524# Symbols that must always be exported.
24525include_expsyms=$lt_include_expsyms_RC
24526
24527# ### END LIBTOOL TAG CONFIG: $tagname
24528
24529__EOF__
24530
24531
24532else
24533 # If there is no Makefile yet, we rely on a make rule to execute
24534 # `config.status --recheck' to rerun these tests and create the
24535 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024536 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24537 if test -f "$ltmain_in"; then
24538 test -f Makefile && make "$ltmain"
24539 fi
John Criswell47fdd832003-07-14 16:52:07 +000024540fi
24541
24542
24543ac_ext=c
24544ac_cpp='$CPP $CPPFLAGS'
24545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24547ac_compiler_gnu=$ac_cv_c_compiler_gnu
24548
24549CC="$lt_save_CC"
24550
24551 ;;
24552
24553 *)
24554 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24555echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24556 { (exit 1); exit 1; }; }
24557 ;;
24558 esac
24559
24560 # Append the new tag name to the list of available tags.
24561 if test -n "$tagname" ; then
24562 available_tags="$available_tags $tagname"
24563 fi
24564 fi
24565 done
24566 IFS="$lt_save_ifs"
24567
24568 # Now substitute the updated list of available tags.
24569 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24570 mv "${ofile}T" "$ofile"
24571 chmod +x "$ofile"
24572 else
24573 rm -f "${ofile}T"
24574 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24575echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24576 { (exit 1); exit 1; }; }
24577 fi
24578fi
John Criswell7a73b802003-06-30 21:59:07 +000024579
24580
24581
24582# This can be used to rebuild libtool when needed
24583LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24584
24585# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024586LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024587
24588# Prevent multiple expansion
24589
24590
24591
John Criswell47fdd832003-07-14 16:52:07 +000024592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607
24608
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024609
Reid Spencer582a23c2004-12-29 07:07:57 +000024610if test "$lt_cv_dlopen_self" = "yes" ; then
24611
24612cat >>confdefs.h <<\_ACEOF
24613#define CAN_DLOPEN_SELF 1
24614_ACEOF
24615
24616fi
24617
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024618etags_version=`$ETAGS --version 2>&1`
24619case "$etags_version" in
24620 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24621 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24622 *) ETAGSFLAGS="" ;;
24623esac
24624ETAGSFLAGS=$ETAGSFLAGS
24625
24626
Reid Spencer7931a782004-12-27 06:15:02 +000024627if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000024628 LLVMGCC="llvm-gcc${EXEEXT}"
24629 LLVMGXX="llvm-g++${EXEEXT}"
24630 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24631set dummy $LLVMGCC; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024632echo "$as_me:$LINENO: checking for $ac_word" >&5
24633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24634if test "${ac_cv_path_LLVMGCC+set}" = set; then
24635 echo $ECHO_N "(cached) $ECHO_C" >&6
24636else
24637 case $LLVMGCC in
24638 [\\/]* | ?:[\\/]*)
24639 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24640 ;;
24641 *)
24642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24643for as_dir in $PATH
24644do
24645 IFS=$as_save_IFS
24646 test -z "$as_dir" && as_dir=.
24647 for ac_exec_ext in '' $ac_executable_extensions; do
24648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24649 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24651 break 2
24652 fi
24653done
24654done
24655
Reid Spencer59473af2004-12-25 07:31:29 +000024656 ;;
24657esac
24658fi
24659LLVMGCC=$ac_cv_path_LLVMGCC
24660
24661if test -n "$LLVMGCC"; then
24662 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24663echo "${ECHO_T}$LLVMGCC" >&6
24664else
24665 echo "$as_me:$LINENO: result: no" >&5
24666echo "${ECHO_T}no" >&6
24667fi
24668
Reid Spencerc84492c2005-06-02 22:34:49 +000024669 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24670set dummy $LLVMGXX; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024671echo "$as_me:$LINENO: checking for $ac_word" >&5
24672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24673if test "${ac_cv_path_LLVMGXX+set}" = set; then
24674 echo $ECHO_N "(cached) $ECHO_C" >&6
24675else
24676 case $LLVMGXX in
24677 [\\/]* | ?:[\\/]*)
24678 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24679 ;;
24680 *)
24681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24682for as_dir in $PATH
24683do
24684 IFS=$as_save_IFS
24685 test -z "$as_dir" && as_dir=.
24686 for ac_exec_ext in '' $ac_executable_extensions; do
24687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24688 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24690 break 2
24691 fi
24692done
24693done
24694
Reid Spencer59473af2004-12-25 07:31:29 +000024695 ;;
24696esac
24697fi
24698LLVMGXX=$ac_cv_path_LLVMGXX
24699
24700if test -n "$LLVMGXX"; then
24701 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24702echo "${ECHO_T}$LLVMGXX" >&6
24703else
24704 echo "$as_me:$LINENO: result: no" >&5
24705echo "${ECHO_T}no" >&6
24706fi
24707
24708else
Reid Spencerc84492c2005-06-02 22:34:49 +000024709 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24710 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000024711 LLVMGCC=$LLVMGCC
24712
24713 LLVMGXX=$LLVMGXX
24714
24715fi
24716
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024717echo "$as_me:$LINENO: checking tool compatibility" >&5
24718echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24719
Reid Spencer86901802004-12-08 23:07:27 +000024720ICC=no
24721IXX=no
24722case $CC in
24723 icc*|icpc*)
24724 ICC=yes
24725 IXX=yes
24726 ;;
24727 *)
24728 ;;
24729esac
24730
24731if test "$GCC" != "yes" && test "$ICC" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024732then
Reid Spencer86901802004-12-08 23:07:27 +000024733 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24734echo "$as_me: error: gcc|icc required but not found" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024735 { (exit 1); exit 1; }; }
24736fi
24737
Reid Spencer86901802004-12-08 23:07:27 +000024738if test "$GXX" != "yes" && test "$IXX" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024739then
Reid Spencer86901802004-12-08 23:07:27 +000024740 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24741echo "$as_me: error: g++|icc required but not found" >&2;}
24742 { (exit 1); exit 1; }; }
24743fi
24744
24745if test "$GCC" = "yes"
24746then
24747 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24748 if test "$gccmajor" -lt "3"
24749 then
24750 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024751echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24752 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000024753 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024754fi
24755
24756if test -z "$llvm_cv_gnu_make_command"
24757then
24758 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24759echo "$as_me: error: GNU Make required but not found" >&2;}
24760 { (exit 1); exit 1; }; }
24761fi
24762
24763echo "$as_me:$LINENO: result: ok" >&5
24764echo "${ECHO_T}ok" >&6
24765
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024766
John Criswell7a73b802003-06-30 21:59:07 +000024767
John Criswell7a73b802003-06-30 21:59:07 +000024768echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24769echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24770if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24771 echo $ECHO_N "(cached) $ECHO_C" >&6
24772else
24773 ac_check_lib_save_LIBS=$LIBS
24774LIBS="-lelf $LIBS"
24775cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024776/* confdefs.h. */
24777_ACEOF
24778cat confdefs.h >>conftest.$ac_ext
24779cat >>conftest.$ac_ext <<_ACEOF
24780/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024781
24782/* Override any gcc2 internal prototype to avoid an error. */
24783#ifdef __cplusplus
24784extern "C"
24785#endif
24786/* We use char because int might match the return type of a gcc2
24787 builtin and then its argument prototype would still apply. */
24788char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000024789int
24790main ()
24791{
24792elf_begin ();
24793 ;
24794 return 0;
24795}
24796_ACEOF
24797rm -f conftest.$ac_objext conftest$ac_exeext
24798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024799 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024800 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024801 grep -v '^ *+' conftest.er1 >conftest.err
24802 rm -f conftest.er1
24803 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24805 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024806 { ac_try='test -z "$ac_c_werror_flag"
24807 || test ! -s conftest.err'
24808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24809 (eval $ac_try) 2>&5
24810 ac_status=$?
24811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812 (exit $ac_status); }; } &&
24813 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24815 (eval $ac_try) 2>&5
24816 ac_status=$?
24817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24818 (exit $ac_status); }; }; then
24819 ac_cv_lib_elf_elf_begin=yes
24820else
24821 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024822sed 's/^/| /' conftest.$ac_ext >&5
24823
John Criswell7a73b802003-06-30 21:59:07 +000024824ac_cv_lib_elf_elf_begin=no
24825fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024826rm -f conftest.err conftest.$ac_objext \
24827 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024828LIBS=$ac_check_lib_save_LIBS
24829fi
24830echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24831echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24832if test $ac_cv_lib_elf_elf_begin = yes; then
24833 cat >>confdefs.h <<_ACEOF
24834#define HAVE_LIBELF 1
24835_ACEOF
24836
24837 LIBS="-lelf $LIBS"
24838
24839fi
24840
24841
Reid Spencer17795972004-11-18 09:47:37 +000024842echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24843echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24844if test "${ac_cv_search_lt_dlopen+set}" = set; then
24845 echo $ECHO_N "(cached) $ECHO_C" >&6
24846else
24847 ac_func_search_save_LIBS=$LIBS
24848ac_cv_search_lt_dlopen=no
24849cat >conftest.$ac_ext <<_ACEOF
24850/* confdefs.h. */
24851_ACEOF
24852cat confdefs.h >>conftest.$ac_ext
24853cat >>conftest.$ac_ext <<_ACEOF
24854/* end confdefs.h. */
24855
24856/* Override any gcc2 internal prototype to avoid an error. */
24857#ifdef __cplusplus
24858extern "C"
24859#endif
24860/* We use char because int might match the return type of a gcc2
24861 builtin and then its argument prototype would still apply. */
24862char lt_dlopen ();
24863int
24864main ()
24865{
24866lt_dlopen ();
24867 ;
24868 return 0;
24869}
24870_ACEOF
24871rm -f conftest.$ac_objext conftest$ac_exeext
24872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24873 (eval $ac_link) 2>conftest.er1
24874 ac_status=$?
24875 grep -v '^ *+' conftest.er1 >conftest.err
24876 rm -f conftest.er1
24877 cat conftest.err >&5
24878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879 (exit $ac_status); } &&
24880 { ac_try='test -z "$ac_c_werror_flag"
24881 || test ! -s conftest.err'
24882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24883 (eval $ac_try) 2>&5
24884 ac_status=$?
24885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24886 (exit $ac_status); }; } &&
24887 { ac_try='test -s conftest$ac_exeext'
24888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24889 (eval $ac_try) 2>&5
24890 ac_status=$?
24891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892 (exit $ac_status); }; }; then
24893 ac_cv_search_lt_dlopen="none required"
24894else
24895 echo "$as_me: failed program was:" >&5
24896sed 's/^/| /' conftest.$ac_ext >&5
24897
24898fi
24899rm -f conftest.err conftest.$ac_objext \
24900 conftest$ac_exeext conftest.$ac_ext
24901if test "$ac_cv_search_lt_dlopen" = no; then
24902 for ac_lib in ltdl; do
24903 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24904 cat >conftest.$ac_ext <<_ACEOF
24905/* confdefs.h. */
24906_ACEOF
24907cat confdefs.h >>conftest.$ac_ext
24908cat >>conftest.$ac_ext <<_ACEOF
24909/* end confdefs.h. */
24910
24911/* Override any gcc2 internal prototype to avoid an error. */
24912#ifdef __cplusplus
24913extern "C"
24914#endif
24915/* We use char because int might match the return type of a gcc2
24916 builtin and then its argument prototype would still apply. */
24917char lt_dlopen ();
24918int
24919main ()
24920{
24921lt_dlopen ();
24922 ;
24923 return 0;
24924}
24925_ACEOF
24926rm -f conftest.$ac_objext conftest$ac_exeext
24927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24928 (eval $ac_link) 2>conftest.er1
24929 ac_status=$?
24930 grep -v '^ *+' conftest.er1 >conftest.err
24931 rm -f conftest.er1
24932 cat conftest.err >&5
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); } &&
24935 { ac_try='test -z "$ac_c_werror_flag"
24936 || test ! -s conftest.err'
24937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24938 (eval $ac_try) 2>&5
24939 ac_status=$?
24940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941 (exit $ac_status); }; } &&
24942 { ac_try='test -s conftest$ac_exeext'
24943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24944 (eval $ac_try) 2>&5
24945 ac_status=$?
24946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947 (exit $ac_status); }; }; then
24948 ac_cv_search_lt_dlopen="-l$ac_lib"
24949break
24950else
24951 echo "$as_me: failed program was:" >&5
24952sed 's/^/| /' conftest.$ac_ext >&5
24953
24954fi
24955rm -f conftest.err conftest.$ac_objext \
24956 conftest$ac_exeext conftest.$ac_ext
24957 done
24958fi
24959LIBS=$ac_func_search_save_LIBS
24960fi
24961echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24962echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24963if test "$ac_cv_search_lt_dlopen" != no; then
24964 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24965
24966cat >>confdefs.h <<\_ACEOF
24967#define HAVE_LT_DLOPEN 1
24968_ACEOF
24969
24970else
24971 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24972 not be available" >&5
24973echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24974 not be available" >&2;}
24975fi
24976
24977
John Criswell7a73b802003-06-30 21:59:07 +000024978echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24979echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24980if test "${ac_cv_search_dlopen+set}" = set; then
24981 echo $ECHO_N "(cached) $ECHO_C" >&6
24982else
24983 ac_func_search_save_LIBS=$LIBS
24984ac_cv_search_dlopen=no
24985cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024986/* confdefs.h. */
24987_ACEOF
24988cat confdefs.h >>conftest.$ac_ext
24989cat >>conftest.$ac_ext <<_ACEOF
24990/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024991
24992/* Override any gcc2 internal prototype to avoid an error. */
24993#ifdef __cplusplus
24994extern "C"
24995#endif
24996/* We use char because int might match the return type of a gcc2
24997 builtin and then its argument prototype would still apply. */
24998char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000024999int
25000main ()
25001{
25002dlopen ();
25003 ;
25004 return 0;
25005}
25006_ACEOF
25007rm -f conftest.$ac_objext conftest$ac_exeext
25008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025009 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025010 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025011 grep -v '^ *+' conftest.er1 >conftest.err
25012 rm -f conftest.er1
25013 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025016 { ac_try='test -z "$ac_c_werror_flag"
25017 || test ! -s conftest.err'
25018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25019 (eval $ac_try) 2>&5
25020 ac_status=$?
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); }; } &&
25023 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25025 (eval $ac_try) 2>&5
25026 ac_status=$?
25027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028 (exit $ac_status); }; }; then
25029 ac_cv_search_dlopen="none required"
25030else
25031 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025032sed 's/^/| /' conftest.$ac_ext >&5
25033
John Criswell7a73b802003-06-30 21:59:07 +000025034fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025035rm -f conftest.err conftest.$ac_objext \
25036 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025037if test "$ac_cv_search_dlopen" = no; then
25038 for ac_lib in dl; do
25039 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25040 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025041/* confdefs.h. */
25042_ACEOF
25043cat confdefs.h >>conftest.$ac_ext
25044cat >>conftest.$ac_ext <<_ACEOF
25045/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025046
25047/* Override any gcc2 internal prototype to avoid an error. */
25048#ifdef __cplusplus
25049extern "C"
25050#endif
25051/* We use char because int might match the return type of a gcc2
25052 builtin and then its argument prototype would still apply. */
25053char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025054int
25055main ()
25056{
25057dlopen ();
25058 ;
25059 return 0;
25060}
25061_ACEOF
25062rm -f conftest.$ac_objext conftest$ac_exeext
25063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025064 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025065 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025066 grep -v '^ *+' conftest.er1 >conftest.err
25067 rm -f conftest.er1
25068 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25070 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025071 { ac_try='test -z "$ac_c_werror_flag"
25072 || test ! -s conftest.err'
25073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25074 (eval $ac_try) 2>&5
25075 ac_status=$?
25076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25077 (exit $ac_status); }; } &&
25078 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25080 (eval $ac_try) 2>&5
25081 ac_status=$?
25082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083 (exit $ac_status); }; }; then
25084 ac_cv_search_dlopen="-l$ac_lib"
25085break
25086else
25087 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025088sed 's/^/| /' conftest.$ac_ext >&5
25089
John Criswell7a73b802003-06-30 21:59:07 +000025090fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025091rm -f conftest.err conftest.$ac_objext \
25092 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025093 done
25094fi
25095LIBS=$ac_func_search_save_LIBS
25096fi
25097echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25098echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25099if test "$ac_cv_search_dlopen" != no; then
25100 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025101
25102cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025103#define HAVE_DLOPEN 1
25104_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025105
25106else
Brian Gaekec45be042003-10-07 06:01:34 +000025107 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25108echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025109fi
25110
25111
25112echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25113echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25114if test "${ac_cv_search_mallinfo+set}" = set; then
25115 echo $ECHO_N "(cached) $ECHO_C" >&6
25116else
25117 ac_func_search_save_LIBS=$LIBS
25118ac_cv_search_mallinfo=no
25119cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025120/* confdefs.h. */
25121_ACEOF
25122cat confdefs.h >>conftest.$ac_ext
25123cat >>conftest.$ac_ext <<_ACEOF
25124/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025125
25126/* Override any gcc2 internal prototype to avoid an error. */
25127#ifdef __cplusplus
25128extern "C"
25129#endif
25130/* We use char because int might match the return type of a gcc2
25131 builtin and then its argument prototype would still apply. */
25132char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025133int
25134main ()
25135{
25136mallinfo ();
25137 ;
25138 return 0;
25139}
25140_ACEOF
25141rm -f conftest.$ac_objext conftest$ac_exeext
25142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025143 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025144 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025145 grep -v '^ *+' conftest.er1 >conftest.err
25146 rm -f conftest.er1
25147 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025150 { ac_try='test -z "$ac_c_werror_flag"
25151 || test ! -s conftest.err'
25152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25153 (eval $ac_try) 2>&5
25154 ac_status=$?
25155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25156 (exit $ac_status); }; } &&
25157 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25159 (eval $ac_try) 2>&5
25160 ac_status=$?
25161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162 (exit $ac_status); }; }; then
25163 ac_cv_search_mallinfo="none required"
25164else
25165 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025166sed 's/^/| /' conftest.$ac_ext >&5
25167
John Criswell7a73b802003-06-30 21:59:07 +000025168fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025169rm -f conftest.err conftest.$ac_objext \
25170 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025171if test "$ac_cv_search_mallinfo" = no; then
25172 for ac_lib in malloc; do
25173 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25174 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025175/* confdefs.h. */
25176_ACEOF
25177cat confdefs.h >>conftest.$ac_ext
25178cat >>conftest.$ac_ext <<_ACEOF
25179/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025180
25181/* Override any gcc2 internal prototype to avoid an error. */
25182#ifdef __cplusplus
25183extern "C"
25184#endif
25185/* We use char because int might match the return type of a gcc2
25186 builtin and then its argument prototype would still apply. */
25187char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025188int
25189main ()
25190{
25191mallinfo ();
25192 ;
25193 return 0;
25194}
25195_ACEOF
25196rm -f conftest.$ac_objext conftest$ac_exeext
25197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025198 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025199 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025200 grep -v '^ *+' conftest.er1 >conftest.err
25201 rm -f conftest.er1
25202 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025205 { ac_try='test -z "$ac_c_werror_flag"
25206 || test ! -s conftest.err'
25207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25208 (eval $ac_try) 2>&5
25209 ac_status=$?
25210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211 (exit $ac_status); }; } &&
25212 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25214 (eval $ac_try) 2>&5
25215 ac_status=$?
25216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217 (exit $ac_status); }; }; then
25218 ac_cv_search_mallinfo="-l$ac_lib"
25219break
25220else
25221 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025222sed 's/^/| /' conftest.$ac_ext >&5
25223
John Criswell7a73b802003-06-30 21:59:07 +000025224fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025225rm -f conftest.err conftest.$ac_objext \
25226 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025227 done
25228fi
25229LIBS=$ac_func_search_save_LIBS
25230fi
25231echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25232echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25233if test "$ac_cv_search_mallinfo" != no; then
25234 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025235
25236cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025237#define HAVE_MALLINFO 1
25238_ACEOF
25239
25240fi
25241
25242
Brian Gaeke5f268f72003-12-05 19:29:01 +000025243echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25244echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25245if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25246 echo $ECHO_N "(cached) $ECHO_C" >&6
25247else
25248 ac_func_search_save_LIBS=$LIBS
25249ac_cv_search_pthread_mutex_lock=no
25250cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025251/* confdefs.h. */
25252_ACEOF
25253cat confdefs.h >>conftest.$ac_ext
25254cat >>conftest.$ac_ext <<_ACEOF
25255/* end confdefs.h. */
25256
25257/* Override any gcc2 internal prototype to avoid an error. */
25258#ifdef __cplusplus
25259extern "C"
25260#endif
25261/* We use char because int might match the return type of a gcc2
25262 builtin and then its argument prototype would still apply. */
25263char pthread_mutex_lock ();
25264int
25265main ()
25266{
25267pthread_mutex_lock ();
25268 ;
25269 return 0;
25270}
25271_ACEOF
25272rm -f conftest.$ac_objext conftest$ac_exeext
25273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025274 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025275 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025276 grep -v '^ *+' conftest.er1 >conftest.err
25277 rm -f conftest.er1
25278 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25280 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025281 { ac_try='test -z "$ac_c_werror_flag"
25282 || test ! -s conftest.err'
25283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25284 (eval $ac_try) 2>&5
25285 ac_status=$?
25286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25287 (exit $ac_status); }; } &&
25288 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25290 (eval $ac_try) 2>&5
25291 ac_status=$?
25292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293 (exit $ac_status); }; }; then
25294 ac_cv_search_pthread_mutex_lock="none required"
25295else
25296 echo "$as_me: failed program was:" >&5
25297sed 's/^/| /' conftest.$ac_ext >&5
25298
25299fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025300rm -f conftest.err conftest.$ac_objext \
25301 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025302if test "$ac_cv_search_pthread_mutex_lock" = no; then
25303 for ac_lib in pthread; do
25304 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25305 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025306/* confdefs.h. */
25307_ACEOF
25308cat confdefs.h >>conftest.$ac_ext
25309cat >>conftest.$ac_ext <<_ACEOF
25310/* end confdefs.h. */
25311
25312/* Override any gcc2 internal prototype to avoid an error. */
25313#ifdef __cplusplus
25314extern "C"
25315#endif
25316/* We use char because int might match the return type of a gcc2
25317 builtin and then its argument prototype would still apply. */
25318char pthread_mutex_lock ();
25319int
25320main ()
25321{
25322pthread_mutex_lock ();
25323 ;
25324 return 0;
25325}
25326_ACEOF
25327rm -f conftest.$ac_objext conftest$ac_exeext
25328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025329 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025330 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025331 grep -v '^ *+' conftest.er1 >conftest.err
25332 rm -f conftest.er1
25333 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025336 { ac_try='test -z "$ac_c_werror_flag"
25337 || test ! -s conftest.err'
25338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25339 (eval $ac_try) 2>&5
25340 ac_status=$?
25341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342 (exit $ac_status); }; } &&
25343 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25345 (eval $ac_try) 2>&5
25346 ac_status=$?
25347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348 (exit $ac_status); }; }; then
25349 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25350break
25351else
25352 echo "$as_me: failed program was:" >&5
25353sed 's/^/| /' conftest.$ac_ext >&5
25354
25355fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025356rm -f conftest.err conftest.$ac_objext \
25357 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025358 done
25359fi
25360LIBS=$ac_func_search_save_LIBS
25361fi
25362echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25363echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25364if test "$ac_cv_search_pthread_mutex_lock" != no; then
25365 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025366
John Criswell40468462004-09-24 21:19:06 +000025367cat >>confdefs.h <<\_ACEOF
25368#define HAVE_PTHREAD_MUTEX_LOCK 1
25369_ACEOF
25370
25371fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025372
Brian Gaekec9a410c2004-02-23 21:30:37 +000025373
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025374
Reid Spencer59473af2004-12-25 07:31:29 +000025375
25376
25377
25378
25379
25380ac_header_dirent=no
25381for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25382 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25383echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25384echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25385if eval "test \"\${$as_ac_Header+set}\" = set"; then
25386 echo $ECHO_N "(cached) $ECHO_C" >&6
25387else
25388 cat >conftest.$ac_ext <<_ACEOF
25389/* confdefs.h. */
25390_ACEOF
25391cat confdefs.h >>conftest.$ac_ext
25392cat >>conftest.$ac_ext <<_ACEOF
25393/* end confdefs.h. */
25394#include <sys/types.h>
25395#include <$ac_hdr>
25396
25397int
25398main ()
25399{
25400if ((DIR *) 0)
25401return 0;
25402 ;
25403 return 0;
25404}
25405_ACEOF
25406rm -f conftest.$ac_objext
25407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25408 (eval $ac_compile) 2>conftest.er1
25409 ac_status=$?
25410 grep -v '^ *+' conftest.er1 >conftest.err
25411 rm -f conftest.er1
25412 cat conftest.err >&5
25413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414 (exit $ac_status); } &&
25415 { ac_try='test -z "$ac_c_werror_flag"
25416 || test ! -s conftest.err'
25417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25418 (eval $ac_try) 2>&5
25419 ac_status=$?
25420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25421 (exit $ac_status); }; } &&
25422 { ac_try='test -s conftest.$ac_objext'
25423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25424 (eval $ac_try) 2>&5
25425 ac_status=$?
25426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427 (exit $ac_status); }; }; then
25428 eval "$as_ac_Header=yes"
25429else
25430 echo "$as_me: failed program was:" >&5
25431sed 's/^/| /' conftest.$ac_ext >&5
25432
25433eval "$as_ac_Header=no"
25434fi
25435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25436fi
25437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25438echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25439if test `eval echo '${'$as_ac_Header'}'` = yes; then
25440 cat >>confdefs.h <<_ACEOF
25441#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25442_ACEOF
25443
25444ac_header_dirent=$ac_hdr; break
25445fi
25446
25447done
25448# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25449if test $ac_header_dirent = dirent.h; then
25450 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25451echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25452if test "${ac_cv_search_opendir+set}" = set; then
25453 echo $ECHO_N "(cached) $ECHO_C" >&6
25454else
25455 ac_func_search_save_LIBS=$LIBS
25456ac_cv_search_opendir=no
25457cat >conftest.$ac_ext <<_ACEOF
25458/* confdefs.h. */
25459_ACEOF
25460cat confdefs.h >>conftest.$ac_ext
25461cat >>conftest.$ac_ext <<_ACEOF
25462/* end confdefs.h. */
25463
25464/* Override any gcc2 internal prototype to avoid an error. */
25465#ifdef __cplusplus
25466extern "C"
25467#endif
25468/* We use char because int might match the return type of a gcc2
25469 builtin and then its argument prototype would still apply. */
25470char opendir ();
25471int
25472main ()
25473{
25474opendir ();
25475 ;
25476 return 0;
25477}
25478_ACEOF
25479rm -f conftest.$ac_objext conftest$ac_exeext
25480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25481 (eval $ac_link) 2>conftest.er1
25482 ac_status=$?
25483 grep -v '^ *+' conftest.er1 >conftest.err
25484 rm -f conftest.er1
25485 cat conftest.err >&5
25486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25487 (exit $ac_status); } &&
25488 { ac_try='test -z "$ac_c_werror_flag"
25489 || test ! -s conftest.err'
25490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25491 (eval $ac_try) 2>&5
25492 ac_status=$?
25493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494 (exit $ac_status); }; } &&
25495 { ac_try='test -s conftest$ac_exeext'
25496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25497 (eval $ac_try) 2>&5
25498 ac_status=$?
25499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25500 (exit $ac_status); }; }; then
25501 ac_cv_search_opendir="none required"
25502else
25503 echo "$as_me: failed program was:" >&5
25504sed 's/^/| /' conftest.$ac_ext >&5
25505
25506fi
25507rm -f conftest.err conftest.$ac_objext \
25508 conftest$ac_exeext conftest.$ac_ext
25509if test "$ac_cv_search_opendir" = no; then
25510 for ac_lib in dir; do
25511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25512 cat >conftest.$ac_ext <<_ACEOF
25513/* confdefs.h. */
25514_ACEOF
25515cat confdefs.h >>conftest.$ac_ext
25516cat >>conftest.$ac_ext <<_ACEOF
25517/* end confdefs.h. */
25518
25519/* Override any gcc2 internal prototype to avoid an error. */
25520#ifdef __cplusplus
25521extern "C"
25522#endif
25523/* We use char because int might match the return type of a gcc2
25524 builtin and then its argument prototype would still apply. */
25525char opendir ();
25526int
25527main ()
25528{
25529opendir ();
25530 ;
25531 return 0;
25532}
25533_ACEOF
25534rm -f conftest.$ac_objext conftest$ac_exeext
25535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25536 (eval $ac_link) 2>conftest.er1
25537 ac_status=$?
25538 grep -v '^ *+' conftest.er1 >conftest.err
25539 rm -f conftest.er1
25540 cat conftest.err >&5
25541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542 (exit $ac_status); } &&
25543 { ac_try='test -z "$ac_c_werror_flag"
25544 || test ! -s conftest.err'
25545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25546 (eval $ac_try) 2>&5
25547 ac_status=$?
25548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25549 (exit $ac_status); }; } &&
25550 { ac_try='test -s conftest$ac_exeext'
25551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25552 (eval $ac_try) 2>&5
25553 ac_status=$?
25554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25555 (exit $ac_status); }; }; then
25556 ac_cv_search_opendir="-l$ac_lib"
25557break
25558else
25559 echo "$as_me: failed program was:" >&5
25560sed 's/^/| /' conftest.$ac_ext >&5
25561
25562fi
25563rm -f conftest.err conftest.$ac_objext \
25564 conftest$ac_exeext conftest.$ac_ext
25565 done
25566fi
25567LIBS=$ac_func_search_save_LIBS
25568fi
25569echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25570echo "${ECHO_T}$ac_cv_search_opendir" >&6
25571if test "$ac_cv_search_opendir" != no; then
25572 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25573
25574fi
25575
25576else
25577 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25578echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25579if test "${ac_cv_search_opendir+set}" = set; then
25580 echo $ECHO_N "(cached) $ECHO_C" >&6
25581else
25582 ac_func_search_save_LIBS=$LIBS
25583ac_cv_search_opendir=no
25584cat >conftest.$ac_ext <<_ACEOF
25585/* confdefs.h. */
25586_ACEOF
25587cat confdefs.h >>conftest.$ac_ext
25588cat >>conftest.$ac_ext <<_ACEOF
25589/* end confdefs.h. */
25590
25591/* Override any gcc2 internal prototype to avoid an error. */
25592#ifdef __cplusplus
25593extern "C"
25594#endif
25595/* We use char because int might match the return type of a gcc2
25596 builtin and then its argument prototype would still apply. */
25597char opendir ();
25598int
25599main ()
25600{
25601opendir ();
25602 ;
25603 return 0;
25604}
25605_ACEOF
25606rm -f conftest.$ac_objext conftest$ac_exeext
25607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25608 (eval $ac_link) 2>conftest.er1
25609 ac_status=$?
25610 grep -v '^ *+' conftest.er1 >conftest.err
25611 rm -f conftest.er1
25612 cat conftest.err >&5
25613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614 (exit $ac_status); } &&
25615 { ac_try='test -z "$ac_c_werror_flag"
25616 || test ! -s conftest.err'
25617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25618 (eval $ac_try) 2>&5
25619 ac_status=$?
25620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621 (exit $ac_status); }; } &&
25622 { ac_try='test -s conftest$ac_exeext'
25623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25624 (eval $ac_try) 2>&5
25625 ac_status=$?
25626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627 (exit $ac_status); }; }; then
25628 ac_cv_search_opendir="none required"
25629else
25630 echo "$as_me: failed program was:" >&5
25631sed 's/^/| /' conftest.$ac_ext >&5
25632
25633fi
25634rm -f conftest.err conftest.$ac_objext \
25635 conftest$ac_exeext conftest.$ac_ext
25636if test "$ac_cv_search_opendir" = no; then
25637 for ac_lib in x; do
25638 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25639 cat >conftest.$ac_ext <<_ACEOF
25640/* confdefs.h. */
25641_ACEOF
25642cat confdefs.h >>conftest.$ac_ext
25643cat >>conftest.$ac_ext <<_ACEOF
25644/* end confdefs.h. */
25645
25646/* Override any gcc2 internal prototype to avoid an error. */
25647#ifdef __cplusplus
25648extern "C"
25649#endif
25650/* We use char because int might match the return type of a gcc2
25651 builtin and then its argument prototype would still apply. */
25652char opendir ();
25653int
25654main ()
25655{
25656opendir ();
25657 ;
25658 return 0;
25659}
25660_ACEOF
25661rm -f conftest.$ac_objext conftest$ac_exeext
25662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25663 (eval $ac_link) 2>conftest.er1
25664 ac_status=$?
25665 grep -v '^ *+' conftest.er1 >conftest.err
25666 rm -f conftest.er1
25667 cat conftest.err >&5
25668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669 (exit $ac_status); } &&
25670 { ac_try='test -z "$ac_c_werror_flag"
25671 || test ! -s conftest.err'
25672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25673 (eval $ac_try) 2>&5
25674 ac_status=$?
25675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25676 (exit $ac_status); }; } &&
25677 { ac_try='test -s conftest$ac_exeext'
25678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25679 (eval $ac_try) 2>&5
25680 ac_status=$?
25681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682 (exit $ac_status); }; }; then
25683 ac_cv_search_opendir="-l$ac_lib"
25684break
25685else
25686 echo "$as_me: failed program was:" >&5
25687sed 's/^/| /' conftest.$ac_ext >&5
25688
25689fi
25690rm -f conftest.err conftest.$ac_objext \
25691 conftest$ac_exeext conftest.$ac_ext
25692 done
25693fi
25694LIBS=$ac_func_search_save_LIBS
25695fi
25696echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25697echo "${ECHO_T}$ac_cv_search_opendir" >&6
25698if test "$ac_cv_search_opendir" != no; then
25699 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25700
25701fi
25702
25703fi
25704
25705echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25706echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25707if test "${ac_cv_header_mmap_anon+set}" = set; then
25708 echo $ECHO_N "(cached) $ECHO_C" >&6
25709else
25710 ac_ext=c
25711ac_cpp='$CPP $CPPFLAGS'
25712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25714ac_compiler_gnu=$ac_cv_c_compiler_gnu
25715
25716 cat >conftest.$ac_ext <<_ACEOF
25717/* confdefs.h. */
25718_ACEOF
25719cat confdefs.h >>conftest.$ac_ext
25720cat >>conftest.$ac_ext <<_ACEOF
25721/* end confdefs.h. */
25722#include <sys/mman.h>
25723#include <unistd.h>
25724#include <fcntl.h>
25725int
25726main ()
25727{
25728mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25729 ;
25730 return 0;
25731}
25732_ACEOF
25733rm -f conftest.$ac_objext
25734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25735 (eval $ac_compile) 2>conftest.er1
25736 ac_status=$?
25737 grep -v '^ *+' conftest.er1 >conftest.err
25738 rm -f conftest.er1
25739 cat conftest.err >&5
25740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25741 (exit $ac_status); } &&
25742 { ac_try='test -z "$ac_c_werror_flag"
25743 || test ! -s conftest.err'
25744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25745 (eval $ac_try) 2>&5
25746 ac_status=$?
25747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748 (exit $ac_status); }; } &&
25749 { ac_try='test -s conftest.$ac_objext'
25750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25751 (eval $ac_try) 2>&5
25752 ac_status=$?
25753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754 (exit $ac_status); }; }; then
25755 ac_cv_header_mmap_anon=yes
25756else
25757 echo "$as_me: failed program was:" >&5
25758sed 's/^/| /' conftest.$ac_ext >&5
25759
25760ac_cv_header_mmap_anon=no
25761fi
25762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25763 ac_ext=c
25764ac_cpp='$CPP $CPPFLAGS'
25765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25767ac_compiler_gnu=$ac_cv_c_compiler_gnu
25768
25769
25770fi
25771echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25772echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25773if test "$ac_cv_header_mmap_anon" = yes; then
25774
25775cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000025776#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000025777_ACEOF
25778
25779fi
25780
25781echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25782echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25783if test "${ac_cv_header_stat_broken+set}" = set; then
25784 echo $ECHO_N "(cached) $ECHO_C" >&6
25785else
25786 cat >conftest.$ac_ext <<_ACEOF
25787/* confdefs.h. */
25788_ACEOF
25789cat confdefs.h >>conftest.$ac_ext
25790cat >>conftest.$ac_ext <<_ACEOF
25791/* end confdefs.h. */
25792#include <sys/types.h>
25793#include <sys/stat.h>
25794
25795#if defined(S_ISBLK) && defined(S_IFDIR)
25796# if S_ISBLK (S_IFDIR)
25797You lose.
25798# endif
25799#endif
25800
25801#if defined(S_ISBLK) && defined(S_IFCHR)
25802# if S_ISBLK (S_IFCHR)
25803You lose.
25804# endif
25805#endif
25806
25807#if defined(S_ISLNK) && defined(S_IFREG)
25808# if S_ISLNK (S_IFREG)
25809You lose.
25810# endif
25811#endif
25812
25813#if defined(S_ISSOCK) && defined(S_IFREG)
25814# if S_ISSOCK (S_IFREG)
25815You lose.
25816# endif
25817#endif
25818
25819_ACEOF
25820if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25821 $EGREP "You lose" >/dev/null 2>&1; then
25822 ac_cv_header_stat_broken=yes
25823else
25824 ac_cv_header_stat_broken=no
25825fi
25826rm -f conftest*
25827
25828fi
25829echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25830echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25831if test $ac_cv_header_stat_broken = yes; then
25832
25833cat >>confdefs.h <<\_ACEOF
25834#define STAT_MACROS_BROKEN 1
25835_ACEOF
25836
25837fi
25838
John Criswell7a73b802003-06-30 21:59:07 +000025839echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25840echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25841if test "${ac_cv_header_stdc+set}" = set; then
25842 echo $ECHO_N "(cached) $ECHO_C" >&6
25843else
25844 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025845/* confdefs.h. */
25846_ACEOF
25847cat confdefs.h >>conftest.$ac_ext
25848cat >>conftest.$ac_ext <<_ACEOF
25849/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025850#include <stdlib.h>
25851#include <stdarg.h>
25852#include <string.h>
25853#include <float.h>
25854
John Criswell0c38eaf2003-09-10 15:17:25 +000025855int
25856main ()
25857{
25858
25859 ;
25860 return 0;
25861}
John Criswell7a73b802003-06-30 21:59:07 +000025862_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025863rm -f conftest.$ac_objext
25864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025865 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025866 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025867 grep -v '^ *+' conftest.er1 >conftest.err
25868 rm -f conftest.er1
25869 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025871 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025872 { ac_try='test -z "$ac_c_werror_flag"
25873 || test ! -s conftest.err'
25874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25875 (eval $ac_try) 2>&5
25876 ac_status=$?
25877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878 (exit $ac_status); }; } &&
25879 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000025880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25881 (eval $ac_try) 2>&5
25882 ac_status=$?
25883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25884 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000025885 ac_cv_header_stdc=yes
25886else
25887 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025888sed 's/^/| /' conftest.$ac_ext >&5
25889
25890ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000025891fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025893
25894if test $ac_cv_header_stdc = yes; then
25895 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25896 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025897/* confdefs.h. */
25898_ACEOF
25899cat confdefs.h >>conftest.$ac_ext
25900cat >>conftest.$ac_ext <<_ACEOF
25901/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025902#include <string.h>
25903
25904_ACEOF
25905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025906 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025907 :
25908else
25909 ac_cv_header_stdc=no
25910fi
25911rm -f conftest*
25912
25913fi
25914
25915if test $ac_cv_header_stdc = yes; then
25916 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25917 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025918/* confdefs.h. */
25919_ACEOF
25920cat confdefs.h >>conftest.$ac_ext
25921cat >>conftest.$ac_ext <<_ACEOF
25922/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025923#include <stdlib.h>
25924
25925_ACEOF
25926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025927 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025928 :
25929else
25930 ac_cv_header_stdc=no
25931fi
25932rm -f conftest*
25933
25934fi
25935
25936if test $ac_cv_header_stdc = yes; then
25937 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25938 if test "$cross_compiling" = yes; then
25939 :
25940else
25941 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025942/* confdefs.h. */
25943_ACEOF
25944cat confdefs.h >>conftest.$ac_ext
25945cat >>conftest.$ac_ext <<_ACEOF
25946/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025947#include <ctype.h>
25948#if ((' ' & 0x0FF) == 0x020)
25949# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25950# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25951#else
John Criswell0c38eaf2003-09-10 15:17:25 +000025952# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025953 (('a' <= (c) && (c) <= 'i') \
25954 || ('j' <= (c) && (c) <= 'r') \
25955 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000025956# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25957#endif
25958
25959#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25960int
25961main ()
25962{
25963 int i;
25964 for (i = 0; i < 256; i++)
25965 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000025966 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000025967 exit(2);
25968 exit (0);
25969}
25970_ACEOF
25971rm -f conftest$ac_exeext
25972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25973 (eval $ac_link) 2>&5
25974 ac_status=$?
25975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25978 (eval $ac_try) 2>&5
25979 ac_status=$?
25980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981 (exit $ac_status); }; }; then
25982 :
25983else
25984 echo "$as_me: program exited with status $ac_status" >&5
25985echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025986sed 's/^/| /' conftest.$ac_ext >&5
25987
John Criswell7a73b802003-06-30 21:59:07 +000025988( exit $ac_status )
25989ac_cv_header_stdc=no
25990fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025991rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025992fi
25993fi
25994fi
25995echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25996echo "${ECHO_T}$ac_cv_header_stdc" >&6
25997if test $ac_cv_header_stdc = yes; then
25998
25999cat >>confdefs.h <<\_ACEOF
26000#define STDC_HEADERS 1
26001_ACEOF
26002
26003fi
26004
26005echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26006echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26007if test "${ac_cv_header_sys_wait_h+set}" = set; then
26008 echo $ECHO_N "(cached) $ECHO_C" >&6
26009else
26010 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026011/* confdefs.h. */
26012_ACEOF
26013cat confdefs.h >>conftest.$ac_ext
26014cat >>conftest.$ac_ext <<_ACEOF
26015/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026016#include <sys/types.h>
26017#include <sys/wait.h>
26018#ifndef WEXITSTATUS
26019# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26020#endif
26021#ifndef WIFEXITED
26022# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26023#endif
26024
John Criswell7a73b802003-06-30 21:59:07 +000026025int
26026main ()
26027{
26028 int s;
26029 wait (&s);
26030 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26031 ;
26032 return 0;
26033}
26034_ACEOF
26035rm -f conftest.$ac_objext
26036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026037 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026038 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026039 grep -v '^ *+' conftest.er1 >conftest.err
26040 rm -f conftest.er1
26041 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026044 { ac_try='test -z "$ac_c_werror_flag"
26045 || test ! -s conftest.err'
26046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26047 (eval $ac_try) 2>&5
26048 ac_status=$?
26049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050 (exit $ac_status); }; } &&
26051 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26053 (eval $ac_try) 2>&5
26054 ac_status=$?
26055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26056 (exit $ac_status); }; }; then
26057 ac_cv_header_sys_wait_h=yes
26058else
26059 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026060sed 's/^/| /' conftest.$ac_ext >&5
26061
John Criswell7a73b802003-06-30 21:59:07 +000026062ac_cv_header_sys_wait_h=no
26063fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026065fi
26066echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26067echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26068if test $ac_cv_header_sys_wait_h = yes; then
26069
26070cat >>confdefs.h <<\_ACEOF
26071#define HAVE_SYS_WAIT_H 1
26072_ACEOF
26073
26074fi
26075
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026076echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26077echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26078if test "${ac_cv_header_time+set}" = set; then
26079 echo $ECHO_N "(cached) $ECHO_C" >&6
26080else
26081 cat >conftest.$ac_ext <<_ACEOF
26082/* confdefs.h. */
26083_ACEOF
26084cat confdefs.h >>conftest.$ac_ext
26085cat >>conftest.$ac_ext <<_ACEOF
26086/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026087#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026088#include <sys/time.h>
26089#include <time.h>
26090
26091int
26092main ()
26093{
26094if ((struct tm *) 0)
26095return 0;
26096 ;
26097 return 0;
26098}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026099_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026100rm -f conftest.$ac_objext
26101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26102 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026103 ac_status=$?
26104 grep -v '^ *+' conftest.er1 >conftest.err
26105 rm -f conftest.er1
26106 cat conftest.err >&5
26107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026108 (exit $ac_status); } &&
26109 { ac_try='test -z "$ac_c_werror_flag"
26110 || test ! -s conftest.err'
26111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26112 (eval $ac_try) 2>&5
26113 ac_status=$?
26114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115 (exit $ac_status); }; } &&
26116 { ac_try='test -s conftest.$ac_objext'
26117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26118 (eval $ac_try) 2>&5
26119 ac_status=$?
26120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121 (exit $ac_status); }; }; then
26122 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026123else
26124 echo "$as_me: failed program was:" >&5
26125sed 's/^/| /' conftest.$ac_ext >&5
26126
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026127ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026128fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26130fi
26131echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26132echo "${ECHO_T}$ac_cv_header_time" >&6
26133if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026134
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026135cat >>confdefs.h <<\_ACEOF
26136#define TIME_WITH_SYS_TIME 1
26137_ACEOF
26138
26139fi
26140
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026141
Reid Spencer59473af2004-12-25 07:31:29 +000026142
26143
26144
26145
26146
26147
26148for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26149do
26150as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26151if eval "test \"\${$as_ac_Header+set}\" = set"; then
26152 echo "$as_me:$LINENO: checking for $ac_header" >&5
26153echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26154if eval "test \"\${$as_ac_Header+set}\" = set"; then
26155 echo $ECHO_N "(cached) $ECHO_C" >&6
26156fi
26157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26158echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26159else
26160 # Is the header compilable?
26161echo "$as_me:$LINENO: checking $ac_header usability" >&5
26162echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26163cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026164/* confdefs.h. */
26165_ACEOF
26166cat confdefs.h >>conftest.$ac_ext
26167cat >>conftest.$ac_ext <<_ACEOF
26168/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000026169$ac_includes_default
26170#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026171_ACEOF
26172rm -f conftest.$ac_objext
26173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26174 (eval $ac_compile) 2>conftest.er1
26175 ac_status=$?
26176 grep -v '^ *+' conftest.er1 >conftest.err
26177 rm -f conftest.er1
26178 cat conftest.err >&5
26179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26180 (exit $ac_status); } &&
26181 { ac_try='test -z "$ac_c_werror_flag"
26182 || test ! -s conftest.err'
26183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26184 (eval $ac_try) 2>&5
26185 ac_status=$?
26186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187 (exit $ac_status); }; } &&
26188 { ac_try='test -s conftest.$ac_objext'
26189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26190 (eval $ac_try) 2>&5
26191 ac_status=$?
26192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026194 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026195else
26196 echo "$as_me: failed program was:" >&5
26197sed 's/^/| /' conftest.$ac_ext >&5
26198
Reid Spencer59473af2004-12-25 07:31:29 +000026199ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026200fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026202echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26203echo "${ECHO_T}$ac_header_compiler" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026204
Reid Spencer59473af2004-12-25 07:31:29 +000026205# Is the header present?
26206echo "$as_me:$LINENO: checking $ac_header presence" >&5
26207echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26208cat >conftest.$ac_ext <<_ACEOF
26209/* confdefs.h. */
26210_ACEOF
26211cat confdefs.h >>conftest.$ac_ext
26212cat >>conftest.$ac_ext <<_ACEOF
26213/* end confdefs.h. */
26214#include <$ac_header>
26215_ACEOF
26216if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26218 ac_status=$?
26219 grep -v '^ *+' conftest.er1 >conftest.err
26220 rm -f conftest.er1
26221 cat conftest.err >&5
26222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26223 (exit $ac_status); } >/dev/null; then
26224 if test -s conftest.err; then
26225 ac_cpp_err=$ac_c_preproc_warn_flag
26226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26227 else
26228 ac_cpp_err=
26229 fi
26230else
26231 ac_cpp_err=yes
26232fi
26233if test -z "$ac_cpp_err"; then
26234 ac_header_preproc=yes
26235else
26236 echo "$as_me: failed program was:" >&5
26237sed 's/^/| /' conftest.$ac_ext >&5
26238
26239 ac_header_preproc=no
26240fi
26241rm -f conftest.err conftest.$ac_ext
26242echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26243echo "${ECHO_T}$ac_header_preproc" >&6
26244
26245# So? What about this header?
26246case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26247 yes:no: )
26248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26249echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26251echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26252 ac_header_preproc=yes
26253 ;;
26254 no:yes:* )
26255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26256echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26258echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26260echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26262echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26264echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26266echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26267 (
26268 cat <<\_ASBOX
26269## ----------------------------------- ##
26270## Report this to llvmbugs@cs.uiuc.edu ##
26271## ----------------------------------- ##
26272_ASBOX
26273 ) |
26274 sed "s/^/$as_me: WARNING: /" >&2
26275 ;;
26276esac
26277echo "$as_me:$LINENO: checking for $ac_header" >&5
26278echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26279if eval "test \"\${$as_ac_Header+set}\" = set"; then
26280 echo $ECHO_N "(cached) $ECHO_C" >&6
26281else
26282 eval "$as_ac_Header=\$ac_header_preproc"
26283fi
26284echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26285echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026286
26287fi
Reid Spencer59473af2004-12-25 07:31:29 +000026288if test `eval echo '${'$as_ac_Header'}'` = yes; then
26289 cat >>confdefs.h <<_ACEOF
26290#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026291_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026292
26293fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026294
Reid Spencer59473af2004-12-25 07:31:29 +000026295done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026296
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026297
26298
Reid Spencer59473af2004-12-25 07:31:29 +000026299
26300
26301
26302
26303for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26304do
26305as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26306if eval "test \"\${$as_ac_Header+set}\" = set"; then
26307 echo "$as_me:$LINENO: checking for $ac_header" >&5
26308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26309if eval "test \"\${$as_ac_Header+set}\" = set"; then
26310 echo $ECHO_N "(cached) $ECHO_C" >&6
26311fi
26312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26313echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26314else
26315 # Is the header compilable?
26316echo "$as_me:$LINENO: checking $ac_header usability" >&5
26317echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26318cat >conftest.$ac_ext <<_ACEOF
26319/* confdefs.h. */
26320_ACEOF
26321cat confdefs.h >>conftest.$ac_ext
26322cat >>conftest.$ac_ext <<_ACEOF
26323/* end confdefs.h. */
26324$ac_includes_default
26325#include <$ac_header>
26326_ACEOF
26327rm -f conftest.$ac_objext
26328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26329 (eval $ac_compile) 2>conftest.er1
26330 ac_status=$?
26331 grep -v '^ *+' conftest.er1 >conftest.err
26332 rm -f conftest.er1
26333 cat conftest.err >&5
26334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26335 (exit $ac_status); } &&
26336 { ac_try='test -z "$ac_c_werror_flag"
26337 || test ! -s conftest.err'
26338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26339 (eval $ac_try) 2>&5
26340 ac_status=$?
26341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26342 (exit $ac_status); }; } &&
26343 { ac_try='test -s conftest.$ac_objext'
26344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26345 (eval $ac_try) 2>&5
26346 ac_status=$?
26347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348 (exit $ac_status); }; }; then
26349 ac_header_compiler=yes
26350else
26351 echo "$as_me: failed program was:" >&5
26352sed 's/^/| /' conftest.$ac_ext >&5
26353
26354ac_header_compiler=no
26355fi
26356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26357echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26358echo "${ECHO_T}$ac_header_compiler" >&6
26359
26360# Is the header present?
26361echo "$as_me:$LINENO: checking $ac_header presence" >&5
26362echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26363cat >conftest.$ac_ext <<_ACEOF
26364/* confdefs.h. */
26365_ACEOF
26366cat confdefs.h >>conftest.$ac_ext
26367cat >>conftest.$ac_ext <<_ACEOF
26368/* end confdefs.h. */
26369#include <$ac_header>
26370_ACEOF
26371if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26373 ac_status=$?
26374 grep -v '^ *+' conftest.er1 >conftest.err
26375 rm -f conftest.er1
26376 cat conftest.err >&5
26377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26378 (exit $ac_status); } >/dev/null; then
26379 if test -s conftest.err; then
26380 ac_cpp_err=$ac_c_preproc_warn_flag
26381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26382 else
26383 ac_cpp_err=
26384 fi
26385else
26386 ac_cpp_err=yes
26387fi
26388if test -z "$ac_cpp_err"; then
26389 ac_header_preproc=yes
26390else
26391 echo "$as_me: failed program was:" >&5
26392sed 's/^/| /' conftest.$ac_ext >&5
26393
26394 ac_header_preproc=no
26395fi
26396rm -f conftest.err conftest.$ac_ext
26397echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26398echo "${ECHO_T}$ac_header_preproc" >&6
26399
26400# So? What about this header?
26401case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26402 yes:no: )
26403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26404echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26406echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26407 ac_header_preproc=yes
26408 ;;
26409 no:yes:* )
26410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26411echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26413echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26415echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26417echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26419echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26421echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26422 (
26423 cat <<\_ASBOX
26424## ----------------------------------- ##
26425## Report this to llvmbugs@cs.uiuc.edu ##
26426## ----------------------------------- ##
26427_ASBOX
26428 ) |
26429 sed "s/^/$as_me: WARNING: /" >&2
26430 ;;
26431esac
26432echo "$as_me:$LINENO: checking for $ac_header" >&5
26433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26434if eval "test \"\${$as_ac_Header+set}\" = set"; then
26435 echo $ECHO_N "(cached) $ECHO_C" >&6
26436else
26437 eval "$as_ac_Header=\$ac_header_preproc"
26438fi
26439echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26440echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26441
26442fi
26443if test `eval echo '${'$as_ac_Header'}'` = yes; then
26444 cat >>confdefs.h <<_ACEOF
26445#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26446_ACEOF
26447
26448fi
26449
26450done
26451
26452
26453
26454
26455
26456
26457for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026458do
26459as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26460if eval "test \"\${$as_ac_Header+set}\" = set"; then
26461 echo "$as_me:$LINENO: checking for $ac_header" >&5
26462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26463if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026464 echo $ECHO_N "(cached) $ECHO_C" >&6
26465fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026466echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26467echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026468else
26469 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026470echo "$as_me:$LINENO: checking $ac_header usability" >&5
26471echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026472cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026473/* confdefs.h. */
26474_ACEOF
26475cat confdefs.h >>conftest.$ac_ext
26476cat >>conftest.$ac_ext <<_ACEOF
26477/* end confdefs.h. */
26478$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026479#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026480_ACEOF
26481rm -f conftest.$ac_objext
26482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026483 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026484 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026485 grep -v '^ *+' conftest.er1 >conftest.err
26486 rm -f conftest.er1
26487 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26489 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026490 { ac_try='test -z "$ac_c_werror_flag"
26491 || test ! -s conftest.err'
26492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26493 (eval $ac_try) 2>&5
26494 ac_status=$?
26495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26496 (exit $ac_status); }; } &&
26497 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26499 (eval $ac_try) 2>&5
26500 ac_status=$?
26501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26502 (exit $ac_status); }; }; then
26503 ac_header_compiler=yes
26504else
26505 echo "$as_me: failed program was:" >&5
26506sed 's/^/| /' conftest.$ac_ext >&5
26507
26508ac_header_compiler=no
26509fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026511echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26512echo "${ECHO_T}$ac_header_compiler" >&6
26513
26514# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026515echo "$as_me:$LINENO: checking $ac_header presence" >&5
26516echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026517cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026518/* confdefs.h. */
26519_ACEOF
26520cat confdefs.h >>conftest.$ac_ext
26521cat >>conftest.$ac_ext <<_ACEOF
26522/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026523#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026524_ACEOF
26525if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26527 ac_status=$?
26528 grep -v '^ *+' conftest.er1 >conftest.err
26529 rm -f conftest.er1
26530 cat conftest.err >&5
26531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532 (exit $ac_status); } >/dev/null; then
26533 if test -s conftest.err; then
26534 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026536 else
26537 ac_cpp_err=
26538 fi
26539else
26540 ac_cpp_err=yes
26541fi
26542if test -z "$ac_cpp_err"; then
26543 ac_header_preproc=yes
26544else
26545 echo "$as_me: failed program was:" >&5
26546sed 's/^/| /' conftest.$ac_ext >&5
26547
26548 ac_header_preproc=no
26549fi
26550rm -f conftest.err conftest.$ac_ext
26551echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26552echo "${ECHO_T}$ac_header_preproc" >&6
26553
26554# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026555case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26556 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26558echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26560echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026561 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026562 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026563 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26565echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26567echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26569echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26571echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26573echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26575echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026576 (
26577 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026578## ----------------------------------- ##
26579## Report this to llvmbugs@cs.uiuc.edu ##
26580## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026581_ASBOX
26582 ) |
26583 sed "s/^/$as_me: WARNING: /" >&2
26584 ;;
26585esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026586echo "$as_me:$LINENO: checking for $ac_header" >&5
26587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26588if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026589 echo $ECHO_N "(cached) $ECHO_C" >&6
26590else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026591 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026592fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026593echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26594echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026595
26596fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026597if test `eval echo '${'$as_ac_Header'}'` = yes; then
26598 cat >>confdefs.h <<_ACEOF
26599#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026600_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026601
26602fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026603
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026604done
26605
John Criswell7ed43ad2004-07-19 16:12:29 +000026606
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026607
Reid Spencer8085cff2005-01-16 02:58:39 +000026608for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26609do
26610as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26611if eval "test \"\${$as_ac_Header+set}\" = set"; then
26612 echo "$as_me:$LINENO: checking for $ac_header" >&5
26613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26614if eval "test \"\${$as_ac_Header+set}\" = set"; then
26615 echo $ECHO_N "(cached) $ECHO_C" >&6
26616fi
26617echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26618echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26619else
26620 # Is the header compilable?
26621echo "$as_me:$LINENO: checking $ac_header usability" >&5
26622echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26623cat >conftest.$ac_ext <<_ACEOF
26624/* confdefs.h. */
26625_ACEOF
26626cat confdefs.h >>conftest.$ac_ext
26627cat >>conftest.$ac_ext <<_ACEOF
26628/* end confdefs.h. */
26629$ac_includes_default
26630#include <$ac_header>
26631_ACEOF
26632rm -f conftest.$ac_objext
26633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26634 (eval $ac_compile) 2>conftest.er1
26635 ac_status=$?
26636 grep -v '^ *+' conftest.er1 >conftest.err
26637 rm -f conftest.er1
26638 cat conftest.err >&5
26639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640 (exit $ac_status); } &&
26641 { ac_try='test -z "$ac_c_werror_flag"
26642 || test ! -s conftest.err'
26643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26644 (eval $ac_try) 2>&5
26645 ac_status=$?
26646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647 (exit $ac_status); }; } &&
26648 { ac_try='test -s conftest.$ac_objext'
26649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26650 (eval $ac_try) 2>&5
26651 ac_status=$?
26652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653 (exit $ac_status); }; }; then
26654 ac_header_compiler=yes
26655else
26656 echo "$as_me: failed program was:" >&5
26657sed 's/^/| /' conftest.$ac_ext >&5
26658
26659ac_header_compiler=no
26660fi
26661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26662echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26663echo "${ECHO_T}$ac_header_compiler" >&6
26664
26665# Is the header present?
26666echo "$as_me:$LINENO: checking $ac_header presence" >&5
26667echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26668cat >conftest.$ac_ext <<_ACEOF
26669/* confdefs.h. */
26670_ACEOF
26671cat confdefs.h >>conftest.$ac_ext
26672cat >>conftest.$ac_ext <<_ACEOF
26673/* end confdefs.h. */
26674#include <$ac_header>
26675_ACEOF
26676if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26678 ac_status=$?
26679 grep -v '^ *+' conftest.er1 >conftest.err
26680 rm -f conftest.er1
26681 cat conftest.err >&5
26682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683 (exit $ac_status); } >/dev/null; then
26684 if test -s conftest.err; then
26685 ac_cpp_err=$ac_c_preproc_warn_flag
26686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26687 else
26688 ac_cpp_err=
26689 fi
26690else
26691 ac_cpp_err=yes
26692fi
26693if test -z "$ac_cpp_err"; then
26694 ac_header_preproc=yes
26695else
26696 echo "$as_me: failed program was:" >&5
26697sed 's/^/| /' conftest.$ac_ext >&5
26698
26699 ac_header_preproc=no
26700fi
26701rm -f conftest.err conftest.$ac_ext
26702echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26703echo "${ECHO_T}$ac_header_preproc" >&6
26704
26705# So? What about this header?
26706case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26707 yes:no: )
26708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26709echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26711echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26712 ac_header_preproc=yes
26713 ;;
26714 no:yes:* )
26715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26716echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26718echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26720echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26722echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26724echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26726echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26727 (
26728 cat <<\_ASBOX
26729## ----------------------------------- ##
26730## Report this to llvmbugs@cs.uiuc.edu ##
26731## ----------------------------------- ##
26732_ASBOX
26733 ) |
26734 sed "s/^/$as_me: WARNING: /" >&2
26735 ;;
26736esac
26737echo "$as_me:$LINENO: checking for $ac_header" >&5
26738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26739if eval "test \"\${$as_ac_Header+set}\" = set"; then
26740 echo $ECHO_N "(cached) $ECHO_C" >&6
26741else
26742 eval "$as_ac_Header=\$ac_header_preproc"
26743fi
26744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26745echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26746
26747fi
26748if test `eval echo '${'$as_ac_Header'}'` = yes; then
26749 cat >>confdefs.h <<_ACEOF
26750#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26751_ACEOF
26752
26753fi
26754
26755done
26756
26757
26758
John Criswell7a73b802003-06-30 21:59:07 +000026759echo "$as_me:$LINENO: checking for pid_t" >&5
26760echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26761if test "${ac_cv_type_pid_t+set}" = set; then
26762 echo $ECHO_N "(cached) $ECHO_C" >&6
26763else
26764 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026765/* confdefs.h. */
26766_ACEOF
26767cat confdefs.h >>conftest.$ac_ext
26768cat >>conftest.$ac_ext <<_ACEOF
26769/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026770$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026771int
26772main ()
26773{
26774if ((pid_t *) 0)
26775 return 0;
26776if (sizeof (pid_t))
26777 return 0;
26778 ;
26779 return 0;
26780}
26781_ACEOF
26782rm -f conftest.$ac_objext
26783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026784 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026785 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026786 grep -v '^ *+' conftest.er1 >conftest.err
26787 rm -f conftest.er1
26788 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026791 { ac_try='test -z "$ac_c_werror_flag"
26792 || test ! -s conftest.err'
26793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26794 (eval $ac_try) 2>&5
26795 ac_status=$?
26796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797 (exit $ac_status); }; } &&
26798 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26800 (eval $ac_try) 2>&5
26801 ac_status=$?
26802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803 (exit $ac_status); }; }; then
26804 ac_cv_type_pid_t=yes
26805else
26806 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026807sed 's/^/| /' conftest.$ac_ext >&5
26808
John Criswell7a73b802003-06-30 21:59:07 +000026809ac_cv_type_pid_t=no
26810fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026812fi
26813echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26814echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26815if test $ac_cv_type_pid_t = yes; then
26816 :
26817else
26818
26819cat >>confdefs.h <<_ACEOF
26820#define pid_t int
26821_ACEOF
26822
26823fi
26824
26825echo "$as_me:$LINENO: checking for size_t" >&5
26826echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26827if test "${ac_cv_type_size_t+set}" = set; then
26828 echo $ECHO_N "(cached) $ECHO_C" >&6
26829else
26830 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026831/* confdefs.h. */
26832_ACEOF
26833cat confdefs.h >>conftest.$ac_ext
26834cat >>conftest.$ac_ext <<_ACEOF
26835/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026836$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026837int
26838main ()
26839{
26840if ((size_t *) 0)
26841 return 0;
26842if (sizeof (size_t))
26843 return 0;
26844 ;
26845 return 0;
26846}
26847_ACEOF
26848rm -f conftest.$ac_objext
26849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026850 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026851 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026852 grep -v '^ *+' conftest.er1 >conftest.err
26853 rm -f conftest.er1
26854 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026857 { ac_try='test -z "$ac_c_werror_flag"
26858 || test ! -s conftest.err'
26859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26860 (eval $ac_try) 2>&5
26861 ac_status=$?
26862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26863 (exit $ac_status); }; } &&
26864 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26866 (eval $ac_try) 2>&5
26867 ac_status=$?
26868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869 (exit $ac_status); }; }; then
26870 ac_cv_type_size_t=yes
26871else
26872 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026873sed 's/^/| /' conftest.$ac_ext >&5
26874
John Criswell7a73b802003-06-30 21:59:07 +000026875ac_cv_type_size_t=no
26876fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026878fi
26879echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26880echo "${ECHO_T}$ac_cv_type_size_t" >&6
26881if test $ac_cv_type_size_t = yes; then
26882 :
26883else
26884
26885cat >>confdefs.h <<_ACEOF
26886#define size_t unsigned
26887_ACEOF
26888
26889fi
26890
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026891echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26892echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26893if test "${ac_cv_type_signal+set}" = set; then
26894 echo $ECHO_N "(cached) $ECHO_C" >&6
26895else
26896 cat >conftest.$ac_ext <<_ACEOF
26897/* confdefs.h. */
26898_ACEOF
26899cat confdefs.h >>conftest.$ac_ext
26900cat >>conftest.$ac_ext <<_ACEOF
26901/* end confdefs.h. */
26902#include <sys/types.h>
26903#include <signal.h>
26904#ifdef signal
26905# undef signal
26906#endif
26907#ifdef __cplusplus
26908extern "C" void (*signal (int, void (*)(int)))(int);
26909#else
26910void (*signal ()) ();
26911#endif
26912
26913int
26914main ()
26915{
26916int i;
26917 ;
26918 return 0;
26919}
26920_ACEOF
26921rm -f conftest.$ac_objext
26922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26923 (eval $ac_compile) 2>conftest.er1
26924 ac_status=$?
26925 grep -v '^ *+' conftest.er1 >conftest.err
26926 rm -f conftest.er1
26927 cat conftest.err >&5
26928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929 (exit $ac_status); } &&
26930 { ac_try='test -z "$ac_c_werror_flag"
26931 || test ! -s conftest.err'
26932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26933 (eval $ac_try) 2>&5
26934 ac_status=$?
26935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26936 (exit $ac_status); }; } &&
26937 { ac_try='test -s conftest.$ac_objext'
26938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26939 (eval $ac_try) 2>&5
26940 ac_status=$?
26941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26942 (exit $ac_status); }; }; then
26943 ac_cv_type_signal=void
26944else
26945 echo "$as_me: failed program was:" >&5
26946sed 's/^/| /' conftest.$ac_ext >&5
26947
26948ac_cv_type_signal=int
26949fi
26950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26951fi
26952echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26953echo "${ECHO_T}$ac_cv_type_signal" >&6
26954
26955cat >>confdefs.h <<_ACEOF
26956#define RETSIGTYPE $ac_cv_type_signal
26957_ACEOF
26958
26959
26960echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26961echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26962if test "${ac_cv_struct_tm+set}" = set; then
26963 echo $ECHO_N "(cached) $ECHO_C" >&6
26964else
26965 cat >conftest.$ac_ext <<_ACEOF
26966/* confdefs.h. */
26967_ACEOF
26968cat confdefs.h >>conftest.$ac_ext
26969cat >>conftest.$ac_ext <<_ACEOF
26970/* end confdefs.h. */
26971#include <sys/types.h>
26972#include <time.h>
26973
26974int
26975main ()
26976{
26977struct tm *tp; tp->tm_sec;
26978 ;
26979 return 0;
26980}
26981_ACEOF
26982rm -f conftest.$ac_objext
26983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26984 (eval $ac_compile) 2>conftest.er1
26985 ac_status=$?
26986 grep -v '^ *+' conftest.er1 >conftest.err
26987 rm -f conftest.er1
26988 cat conftest.err >&5
26989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26990 (exit $ac_status); } &&
26991 { ac_try='test -z "$ac_c_werror_flag"
26992 || test ! -s conftest.err'
26993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26994 (eval $ac_try) 2>&5
26995 ac_status=$?
26996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997 (exit $ac_status); }; } &&
26998 { ac_try='test -s conftest.$ac_objext'
26999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27000 (eval $ac_try) 2>&5
27001 ac_status=$?
27002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27003 (exit $ac_status); }; }; then
27004 ac_cv_struct_tm=time.h
27005else
27006 echo "$as_me: failed program was:" >&5
27007sed 's/^/| /' conftest.$ac_ext >&5
27008
27009ac_cv_struct_tm=sys/time.h
27010fi
27011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27012fi
27013echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27014echo "${ECHO_T}$ac_cv_struct_tm" >&6
27015if test $ac_cv_struct_tm = sys/time.h; then
27016
27017cat >>confdefs.h <<\_ACEOF
27018#define TM_IN_SYS_TIME 1
27019_ACEOF
27020
27021fi
27022
John Criswell7a73b802003-06-30 21:59:07 +000027023echo "$as_me:$LINENO: checking for int64_t" >&5
27024echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27025if test "${ac_cv_type_int64_t+set}" = set; then
27026 echo $ECHO_N "(cached) $ECHO_C" >&6
27027else
27028 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027029/* confdefs.h. */
27030_ACEOF
27031cat confdefs.h >>conftest.$ac_ext
27032cat >>conftest.$ac_ext <<_ACEOF
27033/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027034$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027035int
27036main ()
27037{
27038if ((int64_t *) 0)
27039 return 0;
27040if (sizeof (int64_t))
27041 return 0;
27042 ;
27043 return 0;
27044}
27045_ACEOF
27046rm -f conftest.$ac_objext
27047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027048 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027049 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027050 grep -v '^ *+' conftest.er1 >conftest.err
27051 rm -f conftest.er1
27052 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027055 { ac_try='test -z "$ac_c_werror_flag"
27056 || test ! -s conftest.err'
27057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27058 (eval $ac_try) 2>&5
27059 ac_status=$?
27060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061 (exit $ac_status); }; } &&
27062 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27064 (eval $ac_try) 2>&5
27065 ac_status=$?
27066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067 (exit $ac_status); }; }; then
27068 ac_cv_type_int64_t=yes
27069else
27070 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027071sed 's/^/| /' conftest.$ac_ext >&5
27072
John Criswell7a73b802003-06-30 21:59:07 +000027073ac_cv_type_int64_t=no
27074fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027076fi
27077echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27078echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27079if test $ac_cv_type_int64_t = yes; then
27080
27081cat >>confdefs.h <<_ACEOF
27082#define HAVE_INT64_T 1
27083_ACEOF
27084
27085
27086else
27087 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27088echo "$as_me: error: Type int64_t required but not found" >&2;}
27089 { (exit 1); exit 1; }; }
27090fi
27091
27092echo "$as_me:$LINENO: checking for uint64_t" >&5
27093echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27094if test "${ac_cv_type_uint64_t+set}" = set; then
27095 echo $ECHO_N "(cached) $ECHO_C" >&6
27096else
27097 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027098/* confdefs.h. */
27099_ACEOF
27100cat confdefs.h >>conftest.$ac_ext
27101cat >>conftest.$ac_ext <<_ACEOF
27102/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027103$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027104int
27105main ()
27106{
27107if ((uint64_t *) 0)
27108 return 0;
27109if (sizeof (uint64_t))
27110 return 0;
27111 ;
27112 return 0;
27113}
27114_ACEOF
27115rm -f conftest.$ac_objext
27116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027117 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027118 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027119 grep -v '^ *+' conftest.er1 >conftest.err
27120 rm -f conftest.er1
27121 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027124 { ac_try='test -z "$ac_c_werror_flag"
27125 || test ! -s conftest.err'
27126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27127 (eval $ac_try) 2>&5
27128 ac_status=$?
27129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130 (exit $ac_status); }; } &&
27131 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27133 (eval $ac_try) 2>&5
27134 ac_status=$?
27135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136 (exit $ac_status); }; }; then
27137 ac_cv_type_uint64_t=yes
27138else
27139 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027140sed 's/^/| /' conftest.$ac_ext >&5
27141
John Criswell7a73b802003-06-30 21:59:07 +000027142ac_cv_type_uint64_t=no
27143fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027145fi
27146echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27147echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27148if test $ac_cv_type_uint64_t = yes; then
27149
27150cat >>confdefs.h <<_ACEOF
27151#define HAVE_UINT64_T 1
27152_ACEOF
27153
27154
27155else
Misha Brukmanceca9042004-09-02 23:02:30 +000027156 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000027157echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27158if test "${ac_cv_type_u_int64_t+set}" = set; then
27159 echo $ECHO_N "(cached) $ECHO_C" >&6
27160else
27161 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000027162/* confdefs.h. */
27163_ACEOF
27164cat confdefs.h >>conftest.$ac_ext
27165cat >>conftest.$ac_ext <<_ACEOF
27166/* end confdefs.h. */
27167$ac_includes_default
27168int
27169main ()
27170{
27171if ((u_int64_t *) 0)
27172 return 0;
27173if (sizeof (u_int64_t))
27174 return 0;
27175 ;
27176 return 0;
27177}
27178_ACEOF
27179rm -f conftest.$ac_objext
27180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027181 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000027182 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027183 grep -v '^ *+' conftest.er1 >conftest.err
27184 rm -f conftest.er1
27185 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000027186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27187 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027188 { ac_try='test -z "$ac_c_werror_flag"
27189 || test ! -s conftest.err'
27190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27191 (eval $ac_try) 2>&5
27192 ac_status=$?
27193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194 (exit $ac_status); }; } &&
27195 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000027196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27197 (eval $ac_try) 2>&5
27198 ac_status=$?
27199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200 (exit $ac_status); }; }; then
27201 ac_cv_type_u_int64_t=yes
27202else
27203 echo "$as_me: failed program was:" >&5
27204sed 's/^/| /' conftest.$ac_ext >&5
27205
27206ac_cv_type_u_int64_t=no
27207fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000027209fi
27210echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27211echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27212if test $ac_cv_type_u_int64_t = yes; then
27213
27214cat >>confdefs.h <<_ACEOF
27215#define HAVE_U_INT64_T 1
27216_ACEOF
27217
27218
Misha Brukmanceca9042004-09-02 23:02:30 +000027219else
27220 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27221echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27222 { (exit 1); exit 1; }; }
27223fi
27224
John Criswell679ff312004-09-02 18:44:44 +000027225fi
27226
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027227
27228
27229
27230
27231
27232
27233
Reid Spencerb9a5d682005-05-15 22:15:11 +000027234for ac_func in backtrace getcwd getpagesize getrusage gettimeofday
Reid Spencerab5eaea2004-12-20 00:59:04 +000027235do
27236as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27237echo "$as_me:$LINENO: checking for $ac_func" >&5
27238echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27239if eval "test \"\${$as_ac_var+set}\" = set"; then
27240 echo $ECHO_N "(cached) $ECHO_C" >&6
27241else
27242 cat >conftest.$ac_ext <<_ACEOF
27243/* confdefs.h. */
27244_ACEOF
27245cat confdefs.h >>conftest.$ac_ext
27246cat >>conftest.$ac_ext <<_ACEOF
27247/* end confdefs.h. */
27248/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27250#define $ac_func innocuous_$ac_func
Reid Spencerf9960f72004-12-15 01:41:56 +000027251
Reid Spencerab5eaea2004-12-20 00:59:04 +000027252/* System header to define __stub macros and hopefully few prototypes,
27253 which can conflict with char $ac_func (); below.
27254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27255 <limits.h> exists even on freestanding compilers. */
27256
27257#ifdef __STDC__
27258# include <limits.h>
27259#else
27260# include <assert.h>
27261#endif
27262
27263#undef $ac_func
27264
27265/* Override any gcc2 internal prototype to avoid an error. */
27266#ifdef __cplusplus
27267extern "C"
27268{
27269#endif
27270/* We use char because int might match the return type of a gcc2
27271 builtin and then its argument prototype would still apply. */
27272char $ac_func ();
27273/* The GNU C library defines this for functions which it implements
27274 to always fail with ENOSYS. Some functions are actually named
27275 something starting with __ and the normal name is an alias. */
27276#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27277choke me
27278#else
27279char (*f) () = $ac_func;
27280#endif
27281#ifdef __cplusplus
27282}
27283#endif
27284
27285int
27286main ()
27287{
27288return f != $ac_func;
27289 ;
27290 return 0;
27291}
27292_ACEOF
27293rm -f conftest.$ac_objext conftest$ac_exeext
27294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27295 (eval $ac_link) 2>conftest.er1
27296 ac_status=$?
27297 grep -v '^ *+' conftest.er1 >conftest.err
27298 rm -f conftest.er1
27299 cat conftest.err >&5
27300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27301 (exit $ac_status); } &&
27302 { ac_try='test -z "$ac_c_werror_flag"
27303 || test ! -s conftest.err'
27304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27305 (eval $ac_try) 2>&5
27306 ac_status=$?
27307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308 (exit $ac_status); }; } &&
27309 { ac_try='test -s conftest$ac_exeext'
27310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27311 (eval $ac_try) 2>&5
27312 ac_status=$?
27313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27314 (exit $ac_status); }; }; then
27315 eval "$as_ac_var=yes"
27316else
27317 echo "$as_me: failed program was:" >&5
27318sed 's/^/| /' conftest.$ac_ext >&5
27319
27320eval "$as_ac_var=no"
27321fi
27322rm -f conftest.err conftest.$ac_objext \
27323 conftest$ac_exeext conftest.$ac_ext
27324fi
27325echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27326echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27327if test `eval echo '${'$as_ac_var'}'` = yes; then
27328 cat >>confdefs.h <<_ACEOF
27329#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27330_ACEOF
27331
27332fi
27333done
27334
27335
27336
27337
Reid Spencerc29b13d2005-05-14 16:42:52 +000027338
27339for ac_func in isatty mkdtemp mkstemp mktemp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027340do
27341as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27342echo "$as_me:$LINENO: checking for $ac_func" >&5
27343echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27344if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027345 echo $ECHO_N "(cached) $ECHO_C" >&6
27346else
27347 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027348/* confdefs.h. */
27349_ACEOF
27350cat confdefs.h >>conftest.$ac_ext
27351cat >>conftest.$ac_ext <<_ACEOF
27352/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027353/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27355#define $ac_func innocuous_$ac_func
27356
27357/* System header to define __stub macros and hopefully few prototypes,
27358 which can conflict with char $ac_func (); below.
27359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27360 <limits.h> exists even on freestanding compilers. */
27361
27362#ifdef __STDC__
27363# include <limits.h>
27364#else
27365# include <assert.h>
27366#endif
27367
27368#undef $ac_func
27369
27370/* Override any gcc2 internal prototype to avoid an error. */
27371#ifdef __cplusplus
27372extern "C"
27373{
27374#endif
27375/* We use char because int might match the return type of a gcc2
27376 builtin and then its argument prototype would still apply. */
27377char $ac_func ();
27378/* The GNU C library defines this for functions which it implements
27379 to always fail with ENOSYS. Some functions are actually named
27380 something starting with __ and the normal name is an alias. */
27381#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27382choke me
27383#else
27384char (*f) () = $ac_func;
27385#endif
27386#ifdef __cplusplus
27387}
27388#endif
John Criswell7a73b802003-06-30 21:59:07 +000027389
John Criswell7a73b802003-06-30 21:59:07 +000027390int
27391main ()
27392{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027393return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027394 ;
27395 return 0;
27396}
27397_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027398rm -f conftest.$ac_objext conftest$ac_exeext
27399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27400 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027401 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027402 grep -v '^ *+' conftest.er1 >conftest.err
27403 rm -f conftest.er1
27404 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027407 { ac_try='test -z "$ac_c_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); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027414 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027415 { (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
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027420 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027421else
27422 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027423sed 's/^/| /' conftest.$ac_ext >&5
27424
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027425eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027426fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027427rm -f conftest.err conftest.$ac_objext \
27428 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027429fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27431echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27432if test `eval echo '${'$as_ac_var'}'` = yes; then
27433 cat >>confdefs.h <<_ACEOF
27434#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027435_ACEOF
27436
27437fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027438done
John Criswell7a73b802003-06-30 21:59:07 +000027439
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027440
27441
27442
Reid Spencer6af3d262004-12-15 04:01:48 +000027443
27444
Reid Spencer59473af2004-12-25 07:31:29 +000027445
Reid Spencerba46ca32004-12-31 05:49:15 +000027446for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000027447do
27448as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27449echo "$as_me:$LINENO: checking for $ac_func" >&5
27450echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27451if eval "test \"\${$as_ac_var+set}\" = set"; then
27452 echo $ECHO_N "(cached) $ECHO_C" >&6
27453else
27454 cat >conftest.$ac_ext <<_ACEOF
27455/* confdefs.h. */
27456_ACEOF
27457cat confdefs.h >>conftest.$ac_ext
27458cat >>conftest.$ac_ext <<_ACEOF
27459/* end confdefs.h. */
27460/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27462#define $ac_func innocuous_$ac_func
27463
27464/* System header to define __stub macros and hopefully few prototypes,
27465 which can conflict with char $ac_func (); below.
27466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27467 <limits.h> exists even on freestanding compilers. */
27468
27469#ifdef __STDC__
27470# include <limits.h>
27471#else
27472# include <assert.h>
27473#endif
27474
27475#undef $ac_func
27476
27477/* Override any gcc2 internal prototype to avoid an error. */
27478#ifdef __cplusplus
27479extern "C"
27480{
27481#endif
27482/* We use char because int might match the return type of a gcc2
27483 builtin and then its argument prototype would still apply. */
27484char $ac_func ();
27485/* The GNU C library defines this for functions which it implements
27486 to always fail with ENOSYS. Some functions are actually named
27487 something starting with __ and the normal name is an alias. */
27488#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27489choke me
27490#else
27491char (*f) () = $ac_func;
27492#endif
27493#ifdef __cplusplus
27494}
27495#endif
27496
27497int
27498main ()
27499{
27500return f != $ac_func;
27501 ;
27502 return 0;
27503}
27504_ACEOF
27505rm -f conftest.$ac_objext conftest$ac_exeext
27506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27507 (eval $ac_link) 2>conftest.er1
27508 ac_status=$?
27509 grep -v '^ *+' conftest.er1 >conftest.err
27510 rm -f conftest.er1
27511 cat conftest.err >&5
27512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513 (exit $ac_status); } &&
27514 { ac_try='test -z "$ac_c_werror_flag"
27515 || test ! -s conftest.err'
27516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27517 (eval $ac_try) 2>&5
27518 ac_status=$?
27519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520 (exit $ac_status); }; } &&
27521 { ac_try='test -s conftest$ac_exeext'
27522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27523 (eval $ac_try) 2>&5
27524 ac_status=$?
27525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27526 (exit $ac_status); }; }; then
27527 eval "$as_ac_var=yes"
27528else
27529 echo "$as_me: failed program was:" >&5
27530sed 's/^/| /' conftest.$ac_ext >&5
27531
27532eval "$as_ac_var=no"
27533fi
27534rm -f conftest.err conftest.$ac_objext \
27535 conftest$ac_exeext conftest.$ac_ext
27536fi
27537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27538echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27539if test `eval echo '${'$as_ac_var'}'` = yes; then
27540 cat >>confdefs.h <<_ACEOF
27541#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27542_ACEOF
27543
27544fi
27545done
27546
27547
Reid Spencerba46ca32004-12-31 05:49:15 +000027548
27549
27550for ac_func in strtoll strtoq sysconf
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027551do
27552as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27553echo "$as_me:$LINENO: checking for $ac_func" >&5
27554echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27555if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027556 echo $ECHO_N "(cached) $ECHO_C" >&6
27557else
27558 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027559/* confdefs.h. */
27560_ACEOF
27561cat confdefs.h >>conftest.$ac_ext
27562cat >>conftest.$ac_ext <<_ACEOF
27563/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027564/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27566#define $ac_func innocuous_$ac_func
27567
27568/* System header to define __stub macros and hopefully few prototypes,
27569 which can conflict with char $ac_func (); below.
27570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27571 <limits.h> exists even on freestanding compilers. */
27572
27573#ifdef __STDC__
27574# include <limits.h>
27575#else
27576# include <assert.h>
27577#endif
27578
27579#undef $ac_func
27580
27581/* Override any gcc2 internal prototype to avoid an error. */
27582#ifdef __cplusplus
27583extern "C"
27584{
27585#endif
27586/* We use char because int might match the return type of a gcc2
27587 builtin and then its argument prototype would still apply. */
27588char $ac_func ();
27589/* The GNU C library defines this for functions which it implements
27590 to always fail with ENOSYS. Some functions are actually named
27591 something starting with __ and the normal name is an alias. */
27592#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27593choke me
27594#else
27595char (*f) () = $ac_func;
27596#endif
27597#ifdef __cplusplus
27598}
27599#endif
John Criswell7a73b802003-06-30 21:59:07 +000027600
John Criswell7a73b802003-06-30 21:59:07 +000027601int
27602main ()
27603{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027604return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027605 ;
27606 return 0;
27607}
27608_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027609rm -f conftest.$ac_objext conftest$ac_exeext
27610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27611 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027612 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027613 grep -v '^ *+' conftest.er1 >conftest.err
27614 rm -f conftest.er1
27615 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027618 { ac_try='test -z "$ac_c_werror_flag"
27619 || test ! -s conftest.err'
27620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27621 (eval $ac_try) 2>&5
27622 ac_status=$?
27623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027625 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27627 (eval $ac_try) 2>&5
27628 ac_status=$?
27629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27630 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027631 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027632else
27633 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027634sed 's/^/| /' conftest.$ac_ext >&5
27635
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027636eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027637fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027638rm -f conftest.err conftest.$ac_objext \
27639 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027640fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27642echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27643if test `eval echo '${'$as_ac_var'}'` = yes; then
27644 cat >>confdefs.h <<_ACEOF
27645#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027646_ACEOF
27647
27648fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027649done
John Criswell7a73b802003-06-30 21:59:07 +000027650
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027651echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27652echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000027653if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027654 echo $ECHO_N "(cached) $ECHO_C" >&6
27655else
Reid Spencer2706f8c2004-09-19 23:53:36 +000027656 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027657ac_cpp='$CPP $CPPFLAGS'
27658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27660ac_compiler_gnu=$ac_cv_c_compiler_gnu
27661
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027662 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027663 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027664else
27665 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000027666
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027667 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000027668_ACEOF
27669cat confdefs.h >>conftest.$ac_ext
27670cat >>conftest.$ac_ext <<_ACEOF
27671/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000027672
John Criswella0137d32003-10-13 16:22:01 +000027673#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000027674#include <stdlib.h>
27675
John Criswella0137d32003-10-13 16:22:01 +000027676int
27677main ()
27678{
27679
Reid Spencer2706f8c2004-09-19 23:53:36 +000027680volatile double A, B;
27681char Buffer[100];
27682A = 1;
27683A /= 10.0;
27684sprintf(Buffer, "%a", A);
27685B = atof(Buffer);
27686if (A != B)
27687 return (1);
27688if (A != 0x1.999999999999ap-4)
27689 return (1);
27690return (0);
John Criswella0137d32003-10-13 16:22:01 +000027691 ;
27692 return 0;
27693}
27694_ACEOF
27695rm -f conftest$ac_exeext
27696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27697 (eval $ac_link) 2>&5
27698 ac_status=$?
27699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27702 (eval $ac_try) 2>&5
27703 ac_status=$?
27704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027706 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000027707else
27708 echo "$as_me: program exited with status $ac_status" >&5
27709echo "$as_me: failed program was:" >&5
27710sed 's/^/| /' conftest.$ac_ext >&5
27711
27712( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000027713llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027714fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027715rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000027716fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027717 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027718ac_cpp='$CPP $CPPFLAGS'
27719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27721ac_compiler_gnu=$ac_cv_c_compiler_gnu
27722
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027723fi
Reid Spencer3be58f92004-11-27 22:01:43 +000027724echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27725echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27726 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000027727
27728cat >>confdefs.h <<\_ACEOF
27729#define HAVE_PRINTF_A 1
27730_ACEOF
27731
Reid Spencer2706f8c2004-09-19 23:53:36 +000027732 fi
John Criswella0137d32003-10-13 16:22:01 +000027733
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027734# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27735# for constant arguments. Useless!
27736echo "$as_me:$LINENO: checking for working alloca.h" >&5
27737echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27738if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000027739 echo $ECHO_N "(cached) $ECHO_C" >&6
27740else
John Criswell0021c312004-02-13 21:57:29 +000027741 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000027742/* confdefs.h. */
27743_ACEOF
27744cat confdefs.h >>conftest.$ac_ext
27745cat >>conftest.$ac_ext <<_ACEOF
27746/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027747#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000027748int
27749main ()
27750{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027751char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000027752 ;
27753 return 0;
27754}
27755_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027756rm -f conftest.$ac_objext conftest$ac_exeext
27757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27758 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000027759 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027760 grep -v '^ *+' conftest.er1 >conftest.err
27761 rm -f conftest.er1
27762 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000027763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027765 { ac_try='test -z "$ac_c_werror_flag"
27766 || test ! -s conftest.err'
27767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27768 (eval $ac_try) 2>&5
27769 ac_status=$?
27770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027772 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000027773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27774 (eval $ac_try) 2>&5
27775 ac_status=$?
27776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027778 ac_cv_working_alloca_h=yes
27779else
27780 echo "$as_me: failed program was:" >&5
27781sed 's/^/| /' conftest.$ac_ext >&5
27782
27783ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000027784fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027785rm -f conftest.err conftest.$ac_objext \
27786 conftest$ac_exeext conftest.$ac_ext
27787fi
27788echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27789echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27790if test $ac_cv_working_alloca_h = yes; then
27791
27792cat >>confdefs.h <<\_ACEOF
27793#define HAVE_ALLOCA_H 1
27794_ACEOF
27795
27796fi
27797
27798echo "$as_me:$LINENO: checking for alloca" >&5
27799echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27800if test "${ac_cv_func_alloca_works+set}" = set; then
27801 echo $ECHO_N "(cached) $ECHO_C" >&6
27802else
27803 cat >conftest.$ac_ext <<_ACEOF
27804/* confdefs.h. */
27805_ACEOF
27806cat confdefs.h >>conftest.$ac_ext
27807cat >>conftest.$ac_ext <<_ACEOF
27808/* end confdefs.h. */
27809#ifdef __GNUC__
27810# define alloca __builtin_alloca
27811#else
27812# ifdef _MSC_VER
27813# include <malloc.h>
27814# define alloca _alloca
27815# else
27816# if HAVE_ALLOCA_H
27817# include <alloca.h>
27818# else
27819# ifdef _AIX
27820 #pragma alloca
27821# else
27822# ifndef alloca /* predefined by HP cc +Olibcalls */
27823char *alloca ();
27824# endif
27825# endif
27826# endif
27827# endif
27828#endif
27829
27830int
27831main ()
27832{
27833char *p = (char *) alloca (1);
27834 ;
27835 return 0;
27836}
27837_ACEOF
27838rm -f conftest.$ac_objext conftest$ac_exeext
27839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27840 (eval $ac_link) 2>conftest.er1
27841 ac_status=$?
27842 grep -v '^ *+' conftest.er1 >conftest.err
27843 rm -f conftest.er1
27844 cat conftest.err >&5
27845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27846 (exit $ac_status); } &&
27847 { ac_try='test -z "$ac_c_werror_flag"
27848 || test ! -s conftest.err'
27849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27850 (eval $ac_try) 2>&5
27851 ac_status=$?
27852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853 (exit $ac_status); }; } &&
27854 { ac_try='test -s conftest$ac_exeext'
27855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27856 (eval $ac_try) 2>&5
27857 ac_status=$?
27858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); }; }; then
27860 ac_cv_func_alloca_works=yes
27861else
27862 echo "$as_me: failed program was:" >&5
27863sed 's/^/| /' conftest.$ac_ext >&5
27864
27865ac_cv_func_alloca_works=no
27866fi
27867rm -f conftest.err conftest.$ac_objext \
27868 conftest$ac_exeext conftest.$ac_ext
27869fi
27870echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27871echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27872
27873if test $ac_cv_func_alloca_works = yes; then
27874
27875cat >>confdefs.h <<\_ACEOF
27876#define HAVE_ALLOCA 1
27877_ACEOF
27878
27879else
27880 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27881# that cause trouble. Some versions do not even contain alloca or
27882# contain a buggy version. If you still want to use their alloca,
27883# use ar to extract alloca.o from them instead of compiling alloca.c.
27884
27885ALLOCA=alloca.$ac_objext
27886
27887cat >>confdefs.h <<\_ACEOF
27888#define C_ALLOCA 1
27889_ACEOF
27890
27891
27892echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27893echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27894if test "${ac_cv_os_cray+set}" = set; then
27895 echo $ECHO_N "(cached) $ECHO_C" >&6
27896else
27897 cat >conftest.$ac_ext <<_ACEOF
27898/* confdefs.h. */
27899_ACEOF
27900cat confdefs.h >>conftest.$ac_ext
27901cat >>conftest.$ac_ext <<_ACEOF
27902/* end confdefs.h. */
27903#if defined(CRAY) && ! defined(CRAY2)
27904webecray
27905#else
27906wenotbecray
27907#endif
27908
27909_ACEOF
27910if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27911 $EGREP "webecray" >/dev/null 2>&1; then
27912 ac_cv_os_cray=yes
27913else
27914 ac_cv_os_cray=no
27915fi
27916rm -f conftest*
27917
27918fi
27919echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27920echo "${ECHO_T}$ac_cv_os_cray" >&6
27921if test $ac_cv_os_cray = yes; then
27922 for ac_func in _getb67 GETB67 getb67; do
27923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27924echo "$as_me:$LINENO: checking for $ac_func" >&5
27925echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27926if eval "test \"\${$as_ac_var+set}\" = set"; then
27927 echo $ECHO_N "(cached) $ECHO_C" >&6
27928else
27929 cat >conftest.$ac_ext <<_ACEOF
27930/* confdefs.h. */
27931_ACEOF
27932cat confdefs.h >>conftest.$ac_ext
27933cat >>conftest.$ac_ext <<_ACEOF
27934/* end confdefs.h. */
27935/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27937#define $ac_func innocuous_$ac_func
27938
27939/* System header to define __stub macros and hopefully few prototypes,
27940 which can conflict with char $ac_func (); below.
27941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27942 <limits.h> exists even on freestanding compilers. */
27943
27944#ifdef __STDC__
27945# include <limits.h>
27946#else
27947# include <assert.h>
27948#endif
27949
27950#undef $ac_func
27951
27952/* Override any gcc2 internal prototype to avoid an error. */
27953#ifdef __cplusplus
27954extern "C"
27955{
27956#endif
27957/* We use char because int might match the return type of a gcc2
27958 builtin and then its argument prototype would still apply. */
27959char $ac_func ();
27960/* The GNU C library defines this for functions which it implements
27961 to always fail with ENOSYS. Some functions are actually named
27962 something starting with __ and the normal name is an alias. */
27963#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27964choke me
27965#else
27966char (*f) () = $ac_func;
27967#endif
27968#ifdef __cplusplus
27969}
27970#endif
27971
27972int
27973main ()
27974{
27975return f != $ac_func;
27976 ;
27977 return 0;
27978}
27979_ACEOF
27980rm -f conftest.$ac_objext conftest$ac_exeext
27981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27982 (eval $ac_link) 2>conftest.er1
27983 ac_status=$?
27984 grep -v '^ *+' conftest.er1 >conftest.err
27985 rm -f conftest.er1
27986 cat conftest.err >&5
27987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27988 (exit $ac_status); } &&
27989 { ac_try='test -z "$ac_c_werror_flag"
27990 || test ! -s conftest.err'
27991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27992 (eval $ac_try) 2>&5
27993 ac_status=$?
27994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27995 (exit $ac_status); }; } &&
27996 { ac_try='test -s conftest$ac_exeext'
27997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27998 (eval $ac_try) 2>&5
27999 ac_status=$?
28000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28001 (exit $ac_status); }; }; then
28002 eval "$as_ac_var=yes"
28003else
28004 echo "$as_me: failed program was:" >&5
28005sed 's/^/| /' conftest.$ac_ext >&5
28006
28007eval "$as_ac_var=no"
28008fi
28009rm -f conftest.err conftest.$ac_objext \
28010 conftest$ac_exeext conftest.$ac_ext
28011fi
28012echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28013echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28014if test `eval echo '${'$as_ac_var'}'` = yes; then
28015
28016cat >>confdefs.h <<_ACEOF
28017#define CRAY_STACKSEG_END $ac_func
28018_ACEOF
28019
28020 break
28021fi
28022
28023 done
28024fi
28025
28026echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28027echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28028if test "${ac_cv_c_stack_direction+set}" = set; then
28029 echo $ECHO_N "(cached) $ECHO_C" >&6
28030else
28031 if test "$cross_compiling" = yes; then
28032 ac_cv_c_stack_direction=0
28033else
28034 cat >conftest.$ac_ext <<_ACEOF
28035/* confdefs.h. */
28036_ACEOF
28037cat confdefs.h >>conftest.$ac_ext
28038cat >>conftest.$ac_ext <<_ACEOF
28039/* end confdefs.h. */
28040int
28041find_stack_direction ()
28042{
28043 static char *addr = 0;
28044 auto char dummy;
28045 if (addr == 0)
28046 {
28047 addr = &dummy;
28048 return find_stack_direction ();
28049 }
John Criswell0021c312004-02-13 21:57:29 +000028050 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028051 return (&dummy > addr) ? 1 : -1;
28052}
John Criswell0021c312004-02-13 21:57:29 +000028053
John Criswell0021c312004-02-13 21:57:29 +000028054int
28055main ()
28056{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028057 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000028058}
28059_ACEOF
28060rm -f conftest$ac_exeext
28061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28062 (eval $ac_link) 2>&5
28063 ac_status=$?
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28066 { (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
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028071 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000028072else
28073 echo "$as_me: program exited with status $ac_status" >&5
28074echo "$as_me: failed program was:" >&5
28075sed 's/^/| /' conftest.$ac_ext >&5
28076
28077( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028078ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000028079fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028080rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000028081fi
28082fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028083echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28084echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28085
28086cat >>confdefs.h <<_ACEOF
28087#define STACK_DIRECTION $ac_cv_c_stack_direction
28088_ACEOF
28089
28090
John Criswell0021c312004-02-13 21:57:29 +000028091fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028092
28093
28094echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28095echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28096if test "${ac_cv_func_rand48+set}" = set; then
28097 echo $ECHO_N "(cached) $ECHO_C" >&6
28098else
28099 ac_ext=cc
28100ac_cpp='$CXXCPP $CPPFLAGS'
28101ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28102ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28103ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28104
28105 cat >conftest.$ac_ext <<_ACEOF
28106/* confdefs.h. */
28107_ACEOF
28108cat confdefs.h >>conftest.$ac_ext
28109cat >>conftest.$ac_ext <<_ACEOF
28110/* end confdefs.h. */
28111#include <stdlib.h>
28112int
28113main ()
28114{
28115srand48(0);lrand48();drand48();
28116 ;
28117 return 0;
28118}
28119_ACEOF
28120rm -f conftest.$ac_objext
28121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28122 (eval $ac_compile) 2>conftest.er1
28123 ac_status=$?
28124 grep -v '^ *+' conftest.er1 >conftest.err
28125 rm -f conftest.er1
28126 cat conftest.err >&5
28127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128 (exit $ac_status); } &&
28129 { ac_try='test -z "$ac_cxx_werror_flag"
28130 || test ! -s conftest.err'
28131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28132 (eval $ac_try) 2>&5
28133 ac_status=$?
28134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135 (exit $ac_status); }; } &&
28136 { ac_try='test -s conftest.$ac_objext'
28137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28138 (eval $ac_try) 2>&5
28139 ac_status=$?
28140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28141 (exit $ac_status); }; }; then
28142 ac_cv_func_rand48=yes
28143else
28144 echo "$as_me: failed program was:" >&5
28145sed 's/^/| /' conftest.$ac_ext >&5
28146
28147ac_cv_func_rand48=no
28148fi
28149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28150 ac_ext=c
28151ac_cpp='$CPP $CPPFLAGS'
28152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28154ac_compiler_gnu=$ac_cv_c_compiler_gnu
28155
28156fi
28157echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28158echo "${ECHO_T}$ac_cv_func_rand48" >&6
28159
28160if test "$ac_cv_func_rand48" = "yes" ; then
28161
28162cat >>confdefs.h <<\_ACEOF
28163#define HAVE_RAND48 1
28164_ACEOF
28165
28166fi
John Criswell0021c312004-02-13 21:57:29 +000028167
28168
John Criswell7a73b802003-06-30 21:59:07 +000028169echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28170echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28171if test "${ac_cv_cxx_namespaces+set}" = set; then
28172 echo $ECHO_N "(cached) $ECHO_C" >&6
28173else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028174 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000028175ac_cpp='$CXXCPP $CPPFLAGS'
28176ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28177ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28178ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28179
28180 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028181/* confdefs.h. */
28182_ACEOF
28183cat confdefs.h >>conftest.$ac_ext
28184cat >>conftest.$ac_ext <<_ACEOF
28185/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028186namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000028187int
28188main ()
28189{
28190using namespace Outer::Inner; return i;
28191 ;
28192 return 0;
28193}
28194_ACEOF
28195rm -f conftest.$ac_objext
28196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028197 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028198 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028199 grep -v '^ *+' conftest.er1 >conftest.err
28200 rm -f conftest.er1
28201 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028204 { ac_try='test -z "$ac_cxx_werror_flag"
28205 || test ! -s conftest.err'
28206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28207 (eval $ac_try) 2>&5
28208 ac_status=$?
28209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210 (exit $ac_status); }; } &&
28211 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28213 (eval $ac_try) 2>&5
28214 ac_status=$?
28215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28216 (exit $ac_status); }; }; then
28217 ac_cv_cxx_namespaces=yes
28218else
28219 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028220sed 's/^/| /' conftest.$ac_ext >&5
28221
John Criswell7a73b802003-06-30 21:59:07 +000028222ac_cv_cxx_namespaces=no
28223fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028225 ac_ext=c
28226ac_cpp='$CPP $CPPFLAGS'
28227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28229ac_compiler_gnu=$ac_cv_c_compiler_gnu
28230
28231
28232fi
28233echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28234echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28235if test "$ac_cv_cxx_namespaces" = yes; then
28236
28237cat >>confdefs.h <<\_ACEOF
28238#define HAVE_NAMESPACES
28239_ACEOF
28240
28241fi
28242
Brian Gaeke90583492003-11-10 03:06:28 +000028243echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28244echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28245if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028246 echo $ECHO_N "(cached) $ECHO_C" >&6
28247else
28248
John Criswell7a73b802003-06-30 21:59:07 +000028249 ac_ext=cc
28250ac_cpp='$CXXCPP $CPPFLAGS'
28251ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28252ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28253ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28254
28255 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028256/* confdefs.h. */
28257_ACEOF
28258cat confdefs.h >>conftest.$ac_ext
28259cat >>conftest.$ac_ext <<_ACEOF
28260/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028261#include <ext/hash_map>
28262#ifdef HAVE_NAMESPACES
28263using namespace std;
28264#endif
John Criswell7a73b802003-06-30 21:59:07 +000028265int
28266main ()
28267{
Brian Gaeke90583492003-11-10 03:06:28 +000028268hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028269 ;
28270 return 0;
28271}
28272_ACEOF
28273rm -f conftest.$ac_objext
28274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028275 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028276 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028277 grep -v '^ *+' conftest.er1 >conftest.err
28278 rm -f conftest.er1
28279 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028282 { ac_try='test -z "$ac_cxx_werror_flag"
28283 || test ! -s conftest.err'
28284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28285 (eval $ac_try) 2>&5
28286 ac_status=$?
28287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28288 (exit $ac_status); }; } &&
28289 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28291 (eval $ac_try) 2>&5
28292 ac_status=$?
28293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028295 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000028296else
28297 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028298sed 's/^/| /' conftest.$ac_ext >&5
28299
Brian Gaeke90583492003-11-10 03:06:28 +000028300ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028301fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028303 ac_ext=c
28304ac_cpp='$CPP $CPPFLAGS'
28305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28307ac_compiler_gnu=$ac_cv_c_compiler_gnu
28308
John Criswell7a73b802003-06-30 21:59:07 +000028309fi
Brian Gaeke90583492003-11-10 03:06:28 +000028310echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28311echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028312 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28313 then
John Criswell9f011862004-09-24 18:28:00 +000028314
28315cat >>confdefs.h <<\_ACEOF
28316#define HAVE_STD_EXT_HASH_MAP 1
28317_ACEOF
28318
28319 else
28320
28321cat >>confdefs.h <<\_ACEOF
28322#define HAVE_STD_EXT_HASH_MAP 0
28323_ACEOF
28324
Brian Gaeke90583492003-11-10 03:06:28 +000028325 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028326
Brian Gaeke90583492003-11-10 03:06:28 +000028327 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28328echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28329if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28330 echo $ECHO_N "(cached) $ECHO_C" >&6
28331else
28332
Brian Gaeke90583492003-11-10 03:06:28 +000028333 ac_ext=cc
28334ac_cpp='$CXXCPP $CPPFLAGS'
28335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28338
28339 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028340/* confdefs.h. */
28341_ACEOF
28342cat confdefs.h >>conftest.$ac_ext
28343cat >>conftest.$ac_ext <<_ACEOF
28344/* end confdefs.h. */
28345#include <ext/hash_map>
28346#ifdef HAVE_NAMESPACES
28347using namespace __gnu_cxx;
28348#endif
28349int
28350main ()
28351{
28352hash_map<int,int> t;
28353 ;
28354 return 0;
28355}
28356_ACEOF
28357rm -f conftest.$ac_objext
28358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028359 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028360 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028361 grep -v '^ *+' conftest.er1 >conftest.err
28362 rm -f conftest.er1
28363 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28365 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028366 { ac_try='test -z "$ac_cxx_werror_flag"
28367 || test ! -s conftest.err'
28368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28369 (eval $ac_try) 2>&5
28370 ac_status=$?
28371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28372 (exit $ac_status); }; } &&
28373 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28375 (eval $ac_try) 2>&5
28376 ac_status=$?
28377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28378 (exit $ac_status); }; }; then
28379 ac_cv_cxx_have_gnu_ext_hash_map=yes
28380else
28381 echo "$as_me: failed program was:" >&5
28382sed 's/^/| /' conftest.$ac_ext >&5
28383
28384ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028385fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028387 ac_ext=c
28388ac_cpp='$CPP $CPPFLAGS'
28389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28391ac_compiler_gnu=$ac_cv_c_compiler_gnu
28392
28393fi
28394echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28395echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028396 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28397 then
John Criswell9f011862004-09-24 18:28:00 +000028398
28399cat >>confdefs.h <<\_ACEOF
28400#define HAVE_GNU_EXT_HASH_MAP 1
28401_ACEOF
28402
28403 else
28404
28405cat >>confdefs.h <<\_ACEOF
28406#define HAVE_GNU_EXT_HASH_MAP 0
28407_ACEOF
28408
Brian Gaeke90583492003-11-10 03:06:28 +000028409 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028410
Brian Gaeke90583492003-11-10 03:06:28 +000028411 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28412echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28413if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28414 echo $ECHO_N "(cached) $ECHO_C" >&6
28415else
John Criswell7a73b802003-06-30 21:59:07 +000028416
Brian Gaeke90583492003-11-10 03:06:28 +000028417 ac_ext=cc
28418ac_cpp='$CXXCPP $CPPFLAGS'
28419ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28420ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28421ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28422
28423 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028424/* confdefs.h. */
28425_ACEOF
28426cat confdefs.h >>conftest.$ac_ext
28427cat >>conftest.$ac_ext <<_ACEOF
28428/* end confdefs.h. */
28429#include <hash_map>
28430int
28431main ()
28432{
28433hash_map<int,int> t;
28434 ;
28435 return 0;
28436}
28437_ACEOF
28438rm -f conftest.$ac_objext
28439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028440 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028441 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028442 grep -v '^ *+' conftest.er1 >conftest.err
28443 rm -f conftest.er1
28444 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028447 { ac_try='test -z "$ac_cxx_werror_flag"
28448 || test ! -s conftest.err'
28449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28450 (eval $ac_try) 2>&5
28451 ac_status=$?
28452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28453 (exit $ac_status); }; } &&
28454 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28456 (eval $ac_try) 2>&5
28457 ac_status=$?
28458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459 (exit $ac_status); }; }; then
28460 ac_cv_cxx_have_global_hash_map=yes
28461else
28462 echo "$as_me: failed program was:" >&5
28463sed 's/^/| /' conftest.$ac_ext >&5
28464
28465ac_cv_cxx_have_global_hash_map=no
28466fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028468 ac_ext=c
28469ac_cpp='$CPP $CPPFLAGS'
28470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28472ac_compiler_gnu=$ac_cv_c_compiler_gnu
28473
28474fi
28475echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28476echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028477 if test "$ac_cv_cxx_have_global_hash_map" = yes
28478 then
John Criswell9f011862004-09-24 18:28:00 +000028479
28480cat >>confdefs.h <<\_ACEOF
28481#define HAVE_GLOBAL_HASH_MAP 1
28482_ACEOF
28483
28484 else
28485
28486cat >>confdefs.h <<\_ACEOF
28487#define HAVE_GLOBAL_HASH_MAP 0
28488_ACEOF
28489
Brian Gaeke90583492003-11-10 03:06:28 +000028490 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028491
Brian Gaeke90583492003-11-10 03:06:28 +000028492echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28493echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28494if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028495 echo $ECHO_N "(cached) $ECHO_C" >&6
28496else
28497
John Criswell7a73b802003-06-30 21:59:07 +000028498 ac_ext=cc
28499ac_cpp='$CXXCPP $CPPFLAGS'
28500ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28501ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28502ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28503
28504 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028505/* confdefs.h. */
28506_ACEOF
28507cat confdefs.h >>conftest.$ac_ext
28508cat >>conftest.$ac_ext <<_ACEOF
28509/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028510#include <ext/hash_set>
28511#ifdef HAVE_NAMESPACES
28512using namespace std;
28513#endif
John Criswell7a73b802003-06-30 21:59:07 +000028514int
28515main ()
28516{
Brian Gaeke90583492003-11-10 03:06:28 +000028517hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028518 ;
28519 return 0;
28520}
28521_ACEOF
28522rm -f conftest.$ac_objext
28523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028524 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028525 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028526 grep -v '^ *+' conftest.er1 >conftest.err
28527 rm -f conftest.er1
28528 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028531 { ac_try='test -z "$ac_cxx_werror_flag"
28532 || test ! -s conftest.err'
28533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28534 (eval $ac_try) 2>&5
28535 ac_status=$?
28536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537 (exit $ac_status); }; } &&
28538 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28540 (eval $ac_try) 2>&5
28541 ac_status=$?
28542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028544 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028545else
28546 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028547sed 's/^/| /' conftest.$ac_ext >&5
28548
Brian Gaeke90583492003-11-10 03:06:28 +000028549ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028550fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028552 ac_ext=c
28553ac_cpp='$CPP $CPPFLAGS'
28554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28556ac_compiler_gnu=$ac_cv_c_compiler_gnu
28557
28558fi
28559echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28560echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028561 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28562 then
John Criswell9f011862004-09-24 18:28:00 +000028563
28564cat >>confdefs.h <<\_ACEOF
28565#define HAVE_STD_EXT_HASH_SET 1
28566_ACEOF
28567
28568 else
28569
28570cat >>confdefs.h <<\_ACEOF
28571#define HAVE_STD_EXT_HASH_SET 0
28572_ACEOF
28573
Brian Gaeke90583492003-11-10 03:06:28 +000028574 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028575
Brian Gaeke90583492003-11-10 03:06:28 +000028576 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28577echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28578if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28579 echo $ECHO_N "(cached) $ECHO_C" >&6
28580else
28581
Brian Gaeke90583492003-11-10 03:06:28 +000028582 ac_ext=cc
28583ac_cpp='$CXXCPP $CPPFLAGS'
28584ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28585ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28586ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28587
John Criswell7a73b802003-06-30 21:59:07 +000028588 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028589/* confdefs.h. */
28590_ACEOF
28591cat confdefs.h >>conftest.$ac_ext
28592cat >>conftest.$ac_ext <<_ACEOF
28593/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028594#include <ext/hash_set>
28595#ifdef HAVE_NAMESPACES
28596using namespace __gnu_cxx;
28597#endif
John Criswell7a73b802003-06-30 21:59:07 +000028598int
28599main ()
28600{
Brian Gaeke90583492003-11-10 03:06:28 +000028601hash_set<int> t;
28602 ;
28603 return 0;
28604}
28605_ACEOF
28606rm -f conftest.$ac_objext
28607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028608 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028609 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028610 grep -v '^ *+' conftest.er1 >conftest.err
28611 rm -f conftest.er1
28612 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028615 { ac_try='test -z "$ac_cxx_werror_flag"
28616 || test ! -s conftest.err'
28617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28618 (eval $ac_try) 2>&5
28619 ac_status=$?
28620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28621 (exit $ac_status); }; } &&
28622 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28624 (eval $ac_try) 2>&5
28625 ac_status=$?
28626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28627 (exit $ac_status); }; }; then
28628 ac_cv_cxx_have_gnu_ext_hash_set=yes
28629else
28630 echo "$as_me: failed program was:" >&5
28631sed 's/^/| /' conftest.$ac_ext >&5
28632
28633ac_cv_cxx_have_gnu_ext_hash_set=no
28634fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028636 ac_ext=c
28637ac_cpp='$CPP $CPPFLAGS'
28638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28640ac_compiler_gnu=$ac_cv_c_compiler_gnu
28641
28642fi
28643echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28644echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028645 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28646 then
John Criswell9f011862004-09-24 18:28:00 +000028647
28648cat >>confdefs.h <<\_ACEOF
28649#define HAVE_GNU_EXT_HASH_SET 1
28650_ACEOF
28651
28652 else
28653
28654cat >>confdefs.h <<\_ACEOF
28655#define HAVE_GNU_EXT_HASH_SET 0
28656_ACEOF
28657
Brian Gaeke90583492003-11-10 03:06:28 +000028658 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028659
Brian Gaeke90583492003-11-10 03:06:28 +000028660 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28661echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28662if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28663 echo $ECHO_N "(cached) $ECHO_C" >&6
28664else
28665
Brian Gaeke90583492003-11-10 03:06:28 +000028666 ac_ext=cc
28667ac_cpp='$CXXCPP $CPPFLAGS'
28668ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28669ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28670ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28671
28672 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028673/* confdefs.h. */
28674_ACEOF
28675cat confdefs.h >>conftest.$ac_ext
28676cat >>conftest.$ac_ext <<_ACEOF
28677/* end confdefs.h. */
28678#include <hash_set>
28679int
28680main ()
28681{
John Criswell7a73b802003-06-30 21:59:07 +000028682hash_set<int> t; return 0;
28683 ;
28684 return 0;
28685}
28686_ACEOF
28687rm -f conftest.$ac_objext
28688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028689 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028690 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028691 grep -v '^ *+' conftest.er1 >conftest.err
28692 rm -f conftest.er1
28693 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28695 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028696 { ac_try='test -z "$ac_cxx_werror_flag"
28697 || test ! -s conftest.err'
28698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28699 (eval $ac_try) 2>&5
28700 ac_status=$?
28701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28702 (exit $ac_status); }; } &&
28703 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28705 (eval $ac_try) 2>&5
28706 ac_status=$?
28707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28708 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028709 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028710else
28711 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028712sed 's/^/| /' conftest.$ac_ext >&5
28713
Brian Gaeke90583492003-11-10 03:06:28 +000028714ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028715fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028717 ac_ext=c
28718ac_cpp='$CPP $CPPFLAGS'
28719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28721ac_compiler_gnu=$ac_cv_c_compiler_gnu
28722
John Criswell7a73b802003-06-30 21:59:07 +000028723fi
Brian Gaeke90583492003-11-10 03:06:28 +000028724echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28725echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028726 if test "$ac_cv_cxx_have_global_hash_set" = yes
28727 then
John Criswell9f011862004-09-24 18:28:00 +000028728
28729cat >>confdefs.h <<\_ACEOF
28730#define HAVE_GLOBAL_HASH_SET 1
28731_ACEOF
28732
28733 else
28734
28735cat >>confdefs.h <<\_ACEOF
28736#define HAVE_GLOBAL_HASH_SET 0
28737_ACEOF
28738
Brian Gaeke90583492003-11-10 03:06:28 +000028739 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028740
John Criswell7a73b802003-06-30 21:59:07 +000028741echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28742echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28743if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28744 echo $ECHO_N "(cached) $ECHO_C" >&6
28745else
28746
John Criswell7a73b802003-06-30 21:59:07 +000028747 ac_ext=cc
28748ac_cpp='$CXXCPP $CPPFLAGS'
28749ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28750ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28751ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28752
28753 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028754/* confdefs.h. */
28755_ACEOF
28756cat confdefs.h >>conftest.$ac_ext
28757cat >>conftest.$ac_ext <<_ACEOF
28758/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028759#include <iterator>
28760#ifdef HAVE_NAMESPACES
28761using namespace std;
28762#endif
John Criswell7a73b802003-06-30 21:59:07 +000028763int
28764main ()
28765{
28766iterator<int,int,int> t; return 0;
28767 ;
28768 return 0;
28769}
28770_ACEOF
28771rm -f conftest.$ac_objext
28772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028773 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028774 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028775 grep -v '^ *+' conftest.er1 >conftest.err
28776 rm -f conftest.er1
28777 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28779 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028780 { ac_try='test -z "$ac_cxx_werror_flag"
28781 || test ! -s conftest.err'
28782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28783 (eval $ac_try) 2>&5
28784 ac_status=$?
28785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786 (exit $ac_status); }; } &&
28787 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28789 (eval $ac_try) 2>&5
28790 ac_status=$?
28791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28792 (exit $ac_status); }; }; then
28793 ac_cv_cxx_have_std_iterator=yes
28794else
28795 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028796sed 's/^/| /' conftest.$ac_ext >&5
28797
John Criswell7a73b802003-06-30 21:59:07 +000028798ac_cv_cxx_have_std_iterator=no
28799fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028801 ac_ext=c
28802ac_cpp='$CPP $CPPFLAGS'
28803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28805ac_compiler_gnu=$ac_cv_c_compiler_gnu
28806
28807
28808fi
28809echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28810echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028811if test "$ac_cv_cxx_have_std_iterator" = yes
28812then
John Criswell40468462004-09-24 21:19:06 +000028813
28814cat >>confdefs.h <<\_ACEOF
28815#define HAVE_STD_ITERATOR 1
28816_ACEOF
28817
28818else
28819
28820cat >>confdefs.h <<\_ACEOF
28821#define HAVE_STD_ITERATOR 0
28822_ACEOF
28823
John Criswell7a73b802003-06-30 21:59:07 +000028824fi
28825
28826echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28827echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28828if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28829 echo $ECHO_N "(cached) $ECHO_C" >&6
28830else
28831
John Criswell7a73b802003-06-30 21:59:07 +000028832 ac_ext=cc
28833ac_cpp='$CXXCPP $CPPFLAGS'
28834ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28835ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28836ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28837
28838 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028839/* confdefs.h. */
28840_ACEOF
28841cat confdefs.h >>conftest.$ac_ext
28842cat >>conftest.$ac_ext <<_ACEOF
28843/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028844#include <iterator>
28845#ifdef HAVE_NAMESPACES
28846using namespace std;
28847#endif
John Criswell7a73b802003-06-30 21:59:07 +000028848int
28849main ()
28850{
John Criswellc78022e2003-07-29 19:11:58 +000028851bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028852 ;
28853 return 0;
28854}
28855_ACEOF
28856rm -f conftest.$ac_objext
28857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028858 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028859 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028860 grep -v '^ *+' conftest.er1 >conftest.err
28861 rm -f conftest.er1
28862 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28864 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028865 { ac_try='test -z "$ac_cxx_werror_flag"
28866 || test ! -s conftest.err'
28867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28868 (eval $ac_try) 2>&5
28869 ac_status=$?
28870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871 (exit $ac_status); }; } &&
28872 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28874 (eval $ac_try) 2>&5
28875 ac_status=$?
28876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877 (exit $ac_status); }; }; then
28878 ac_cv_cxx_have_bi_iterator=yes
28879else
28880 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028881sed 's/^/| /' conftest.$ac_ext >&5
28882
John Criswell7a73b802003-06-30 21:59:07 +000028883ac_cv_cxx_have_bi_iterator=no
28884fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028886 ac_ext=c
28887ac_cpp='$CPP $CPPFLAGS'
28888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28890ac_compiler_gnu=$ac_cv_c_compiler_gnu
28891
28892
28893fi
28894echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28895echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028896if test "$ac_cv_cxx_have_bi_iterator" = yes
28897then
John Criswell40468462004-09-24 21:19:06 +000028898
28899cat >>confdefs.h <<\_ACEOF
28900#define HAVE_BI_ITERATOR 1
28901_ACEOF
28902
28903else
28904
28905cat >>confdefs.h <<\_ACEOF
28906#define HAVE_BI_ITERATOR 0
28907_ACEOF
28908
John Criswell7a73b802003-06-30 21:59:07 +000028909fi
28910
28911echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28912echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28913if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28914 echo $ECHO_N "(cached) $ECHO_C" >&6
28915else
28916
John Criswell7a73b802003-06-30 21:59:07 +000028917 ac_ext=cc
28918ac_cpp='$CXXCPP $CPPFLAGS'
28919ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28920ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28921ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28922
28923 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028924/* confdefs.h. */
28925_ACEOF
28926cat confdefs.h >>conftest.$ac_ext
28927cat >>conftest.$ac_ext <<_ACEOF
28928/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028929#include <iterator>
28930#ifdef HAVE_NAMESPACES
28931using namespace std;
28932#endif
John Criswell7a73b802003-06-30 21:59:07 +000028933int
28934main ()
28935{
John Criswellc78022e2003-07-29 19:11:58 +000028936forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028937 ;
28938 return 0;
28939}
28940_ACEOF
28941rm -f conftest.$ac_objext
28942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028943 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028944 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028945 grep -v '^ *+' conftest.er1 >conftest.err
28946 rm -f conftest.er1
28947 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028950 { ac_try='test -z "$ac_cxx_werror_flag"
28951 || test ! -s conftest.err'
28952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28953 (eval $ac_try) 2>&5
28954 ac_status=$?
28955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956 (exit $ac_status); }; } &&
28957 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28959 (eval $ac_try) 2>&5
28960 ac_status=$?
28961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962 (exit $ac_status); }; }; then
28963 ac_cv_cxx_have_fwd_iterator=yes
28964else
28965 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028966sed 's/^/| /' conftest.$ac_ext >&5
28967
John Criswell7a73b802003-06-30 21:59:07 +000028968ac_cv_cxx_have_fwd_iterator=no
28969fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028971 ac_ext=c
28972ac_cpp='$CPP $CPPFLAGS'
28973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28975ac_compiler_gnu=$ac_cv_c_compiler_gnu
28976
28977
28978fi
28979echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28980echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028981if test "$ac_cv_cxx_have_fwd_iterator" = yes
28982then
John Criswell40468462004-09-24 21:19:06 +000028983
28984cat >>confdefs.h <<\_ACEOF
28985#define HAVE_FWD_ITERATOR 1
28986_ACEOF
28987
28988else
28989
28990cat >>confdefs.h <<\_ACEOF
28991#define HAVE_FWD_ITERATOR 0
28992_ACEOF
28993
John Criswell7a73b802003-06-30 21:59:07 +000028994fi
28995
28996
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028997echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28998echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28999if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29000 echo $ECHO_N "(cached) $ECHO_C" >&6
29001else
29002 ac_ext=cc
29003ac_cpp='$CXXCPP $CPPFLAGS'
29004ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29005ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29006ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29007
Reid Spencerabec8f92004-10-27 23:03:44 +000029008 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029009/* confdefs.h. */
29010_ACEOF
29011cat confdefs.h >>conftest.$ac_ext
29012cat >>conftest.$ac_ext <<_ACEOF
29013/* end confdefs.h. */
29014#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029015int
29016main ()
29017{
29018float f; isnan(f);
29019 ;
29020 return 0;
29021}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029022_ACEOF
29023rm -f conftest.$ac_objext
29024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029025 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029026 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029027 grep -v '^ *+' conftest.er1 >conftest.err
29028 rm -f conftest.er1
29029 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29031 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029032 { ac_try='test -z "$ac_cxx_werror_flag"
29033 || test ! -s conftest.err'
29034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29035 (eval $ac_try) 2>&5
29036 ac_status=$?
29037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29038 (exit $ac_status); }; } &&
29039 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29041 (eval $ac_try) 2>&5
29042 ac_status=$?
29043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29044 (exit $ac_status); }; }; then
29045 ac_cv_func_isnan_in_math_h=yes
29046else
29047 echo "$as_me: failed program was:" >&5
29048sed 's/^/| /' conftest.$ac_ext >&5
29049
29050ac_cv_func_isnan_in_math_h=no
29051fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029053 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029054ac_cpp='$CPP $CPPFLAGS'
29055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29057ac_compiler_gnu=$ac_cv_c_compiler_gnu
29058
29059fi
29060echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29061echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029062
29063
29064if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029065
29066cat >>confdefs.h <<\_ACEOF
29067#define HAVE_ISNAN_IN_MATH_H 1
29068_ACEOF
29069
Reid Spencerabec8f92004-10-27 23:03:44 +000029070fi
29071
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029072echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29073echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29074if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29075 echo $ECHO_N "(cached) $ECHO_C" >&6
29076else
29077 ac_ext=cc
29078ac_cpp='$CXXCPP $CPPFLAGS'
29079ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29080ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29081ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29082
Reid Spencerabec8f92004-10-27 23:03:44 +000029083 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029084/* confdefs.h. */
29085_ACEOF
29086cat confdefs.h >>conftest.$ac_ext
29087cat >>conftest.$ac_ext <<_ACEOF
29088/* end confdefs.h. */
29089#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029090int
29091main ()
29092{
29093float f; isnan(f);
29094 ;
29095 return 0;
29096}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029097_ACEOF
29098rm -f conftest.$ac_objext
29099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029100 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029101 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029102 grep -v '^ *+' conftest.er1 >conftest.err
29103 rm -f conftest.er1
29104 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029107 { ac_try='test -z "$ac_cxx_werror_flag"
29108 || test ! -s conftest.err'
29109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29110 (eval $ac_try) 2>&5
29111 ac_status=$?
29112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29113 (exit $ac_status); }; } &&
29114 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29116 (eval $ac_try) 2>&5
29117 ac_status=$?
29118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29119 (exit $ac_status); }; }; then
29120 ac_cv_func_isnan_in_cmath=yes
29121else
29122 echo "$as_me: failed program was:" >&5
29123sed 's/^/| /' conftest.$ac_ext >&5
29124
29125ac_cv_func_isnan_in_cmath=no
29126fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029128 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029129ac_cpp='$CPP $CPPFLAGS'
29130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29132ac_compiler_gnu=$ac_cv_c_compiler_gnu
29133
29134fi
29135echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29136echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029137
29138if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029139
29140cat >>confdefs.h <<\_ACEOF
29141#define HAVE_ISNAN_IN_CMATH 1
29142_ACEOF
29143
Reid Spencerabec8f92004-10-27 23:03:44 +000029144fi
29145
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029146echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29147echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29148if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29149 echo $ECHO_N "(cached) $ECHO_C" >&6
29150else
29151 ac_ext=cc
29152ac_cpp='$CXXCPP $CPPFLAGS'
29153ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29154ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29155ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29156
Reid Spencerabec8f92004-10-27 23:03:44 +000029157 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029158/* confdefs.h. */
29159_ACEOF
29160cat confdefs.h >>conftest.$ac_ext
29161cat >>conftest.$ac_ext <<_ACEOF
29162/* end confdefs.h. */
29163#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029164int
29165main ()
29166{
29167float f; std::isnan(f);
29168 ;
29169 return 0;
29170}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029171_ACEOF
29172rm -f conftest.$ac_objext
29173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029174 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029175 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029176 grep -v '^ *+' conftest.er1 >conftest.err
29177 rm -f conftest.er1
29178 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029181 { ac_try='test -z "$ac_cxx_werror_flag"
29182 || test ! -s conftest.err'
29183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29184 (eval $ac_try) 2>&5
29185 ac_status=$?
29186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29187 (exit $ac_status); }; } &&
29188 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29190 (eval $ac_try) 2>&5
29191 ac_status=$?
29192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193 (exit $ac_status); }; }; then
29194 ac_cv_func_std_isnan_in_cmath=yes
29195else
29196 echo "$as_me: failed program was:" >&5
29197sed 's/^/| /' conftest.$ac_ext >&5
29198
29199ac_cv_func_std_isnan_in_cmath=no
29200fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029202 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029203ac_cpp='$CPP $CPPFLAGS'
29204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29206ac_compiler_gnu=$ac_cv_c_compiler_gnu
29207
29208fi
29209echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29210echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029211
29212if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029213
29214cat >>confdefs.h <<\_ACEOF
29215#define HAVE_STD_ISNAN_IN_CMATH 1
29216_ACEOF
29217
Reid Spencerabec8f92004-10-27 23:03:44 +000029218fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029219
29220
Brian Gaeke52a551d2004-07-21 03:14:12 +000029221echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29222echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29223if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29224 echo $ECHO_N "(cached) $ECHO_C" >&6
29225else
29226 ac_ext=cc
29227ac_cpp='$CXXCPP $CPPFLAGS'
29228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29231
Reid Spencerabec8f92004-10-27 23:03:44 +000029232 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029233/* confdefs.h. */
29234_ACEOF
29235cat confdefs.h >>conftest.$ac_ext
29236cat >>conftest.$ac_ext <<_ACEOF
29237/* end confdefs.h. */
29238#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029239int
29240main ()
29241{
29242float f; isinf(f);
29243 ;
29244 return 0;
29245}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029246_ACEOF
29247rm -f conftest.$ac_objext
29248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029249 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029250 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029251 grep -v '^ *+' conftest.er1 >conftest.err
29252 rm -f conftest.er1
29253 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029256 { ac_try='test -z "$ac_cxx_werror_flag"
29257 || test ! -s conftest.err'
29258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29259 (eval $ac_try) 2>&5
29260 ac_status=$?
29261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262 (exit $ac_status); }; } &&
29263 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29265 (eval $ac_try) 2>&5
29266 ac_status=$?
29267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29268 (exit $ac_status); }; }; then
29269 ac_cv_func_isinf_in_math_h=yes
29270else
29271 echo "$as_me: failed program was:" >&5
29272sed 's/^/| /' conftest.$ac_ext >&5
29273
29274ac_cv_func_isinf_in_math_h=no
29275fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029277 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029278ac_cpp='$CPP $CPPFLAGS'
29279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29281ac_compiler_gnu=$ac_cv_c_compiler_gnu
29282
29283fi
29284echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29285echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029286
29287if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029288
29289cat >>confdefs.h <<\_ACEOF
29290#define HAVE_ISINF_IN_MATH_H 1
29291_ACEOF
29292
Reid Spencerabec8f92004-10-27 23:03:44 +000029293fi
29294
Brian Gaeke52a551d2004-07-21 03:14:12 +000029295echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29296echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29297if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29298 echo $ECHO_N "(cached) $ECHO_C" >&6
29299else
29300 ac_ext=cc
29301ac_cpp='$CXXCPP $CPPFLAGS'
29302ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29303ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29304ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29305
Reid Spencerabec8f92004-10-27 23:03:44 +000029306 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029307/* confdefs.h. */
29308_ACEOF
29309cat confdefs.h >>conftest.$ac_ext
29310cat >>conftest.$ac_ext <<_ACEOF
29311/* end confdefs.h. */
29312#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029313int
29314main ()
29315{
29316float f; isinf(f);
29317 ;
29318 return 0;
29319}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029320_ACEOF
29321rm -f conftest.$ac_objext
29322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029323 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029324 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029325 grep -v '^ *+' conftest.er1 >conftest.err
29326 rm -f conftest.er1
29327 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029330 { ac_try='test -z "$ac_cxx_werror_flag"
29331 || test ! -s conftest.err'
29332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29333 (eval $ac_try) 2>&5
29334 ac_status=$?
29335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29336 (exit $ac_status); }; } &&
29337 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29339 (eval $ac_try) 2>&5
29340 ac_status=$?
29341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29342 (exit $ac_status); }; }; then
29343 ac_cv_func_isinf_in_cmath=yes
29344else
29345 echo "$as_me: failed program was:" >&5
29346sed 's/^/| /' conftest.$ac_ext >&5
29347
29348ac_cv_func_isinf_in_cmath=no
29349fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029351 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029352ac_cpp='$CPP $CPPFLAGS'
29353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29355ac_compiler_gnu=$ac_cv_c_compiler_gnu
29356
29357fi
29358echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29359echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029360
29361if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029362
29363cat >>confdefs.h <<\_ACEOF
29364#define HAVE_ISINF_IN_CMATH 1
29365_ACEOF
29366
Reid Spencerabec8f92004-10-27 23:03:44 +000029367fi
29368
Brian Gaeke52a551d2004-07-21 03:14:12 +000029369echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29370echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29371if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29372 echo $ECHO_N "(cached) $ECHO_C" >&6
29373else
29374 ac_ext=cc
29375ac_cpp='$CXXCPP $CPPFLAGS'
29376ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29377ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29378ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29379
Reid Spencerabec8f92004-10-27 23:03:44 +000029380 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029381/* confdefs.h. */
29382_ACEOF
29383cat confdefs.h >>conftest.$ac_ext
29384cat >>conftest.$ac_ext <<_ACEOF
29385/* end confdefs.h. */
29386#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029387int
29388main ()
29389{
29390float f; std::isinf(f)}
29391 ;
29392 return 0;
29393}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029394_ACEOF
29395rm -f conftest.$ac_objext
29396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029397 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029398 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029399 grep -v '^ *+' conftest.er1 >conftest.err
29400 rm -f conftest.er1
29401 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029404 { ac_try='test -z "$ac_cxx_werror_flag"
29405 || test ! -s conftest.err'
29406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29407 (eval $ac_try) 2>&5
29408 ac_status=$?
29409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29410 (exit $ac_status); }; } &&
29411 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29413 (eval $ac_try) 2>&5
29414 ac_status=$?
29415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416 (exit $ac_status); }; }; then
29417 ac_cv_func_std_isinf_in_cmath=yes
29418else
29419 echo "$as_me: failed program was:" >&5
29420sed 's/^/| /' conftest.$ac_ext >&5
29421
29422ac_cv_func_std_isinf_in_cmath=no
29423fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029425 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029426ac_cpp='$CPP $CPPFLAGS'
29427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29429ac_compiler_gnu=$ac_cv_c_compiler_gnu
29430
29431fi
29432echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29433echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029434
29435if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029436
29437cat >>confdefs.h <<\_ACEOF
29438#define HAVE_STD_ISINF_IN_CMATH 1
29439_ACEOF
29440
Reid Spencerabec8f92004-10-27 23:03:44 +000029441fi
29442
Brian Gaeked59a6472004-07-21 03:33:58 +000029443echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29444echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29445if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29446 echo $ECHO_N "(cached) $ECHO_C" >&6
29447else
29448 ac_ext=cc
29449ac_cpp='$CXXCPP $CPPFLAGS'
29450ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29451ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29452ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29453
Reid Spencerabec8f92004-10-27 23:03:44 +000029454 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000029455/* confdefs.h. */
29456_ACEOF
29457cat confdefs.h >>conftest.$ac_ext
29458cat >>conftest.$ac_ext <<_ACEOF
29459/* end confdefs.h. */
29460#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029461int
29462main ()
29463{
29464float f; finite(f);
29465 ;
29466 return 0;
29467}
Brian Gaeked59a6472004-07-21 03:33:58 +000029468_ACEOF
29469rm -f conftest.$ac_objext
29470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029471 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000029472 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029473 grep -v '^ *+' conftest.er1 >conftest.err
29474 rm -f conftest.er1
29475 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000029476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29477 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029478 { ac_try='test -z "$ac_cxx_werror_flag"
29479 || test ! -s conftest.err'
29480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29481 (eval $ac_try) 2>&5
29482 ac_status=$?
29483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29484 (exit $ac_status); }; } &&
29485 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000029486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29487 (eval $ac_try) 2>&5
29488 ac_status=$?
29489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29490 (exit $ac_status); }; }; then
29491 ac_cv_func_finite_in_ieeefp_h=yes
29492else
29493 echo "$as_me: failed program was:" >&5
29494sed 's/^/| /' conftest.$ac_ext >&5
29495
29496ac_cv_func_finite_in_ieeefp_h=no
29497fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029499 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000029500ac_cpp='$CPP $CPPFLAGS'
29501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29503ac_compiler_gnu=$ac_cv_c_compiler_gnu
29504
29505fi
29506echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29507echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029508
Brian Gaeke6802b552004-10-28 05:06:45 +000029509if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000029510
29511cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000029512#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000029513_ACEOF
29514
Reid Spencerabec8f92004-10-27 23:03:44 +000029515fi
29516
29517
29518
John Criswell7a73b802003-06-30 21:59:07 +000029519
29520
29521for ac_header in stdlib.h unistd.h
29522do
29523as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29524if eval "test \"\${$as_ac_Header+set}\" = set"; then
29525 echo "$as_me:$LINENO: checking for $ac_header" >&5
29526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29527if eval "test \"\${$as_ac_Header+set}\" = set"; then
29528 echo $ECHO_N "(cached) $ECHO_C" >&6
29529fi
29530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29531echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29532else
29533 # Is the header compilable?
29534echo "$as_me:$LINENO: checking $ac_header usability" >&5
29535echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29536cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029537/* confdefs.h. */
29538_ACEOF
29539cat confdefs.h >>conftest.$ac_ext
29540cat >>conftest.$ac_ext <<_ACEOF
29541/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029542$ac_includes_default
29543#include <$ac_header>
29544_ACEOF
29545rm -f conftest.$ac_objext
29546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029547 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029548 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029549 grep -v '^ *+' conftest.er1 >conftest.err
29550 rm -f conftest.er1
29551 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29553 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029554 { ac_try='test -z "$ac_c_werror_flag"
29555 || test ! -s conftest.err'
29556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29557 (eval $ac_try) 2>&5
29558 ac_status=$?
29559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29560 (exit $ac_status); }; } &&
29561 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29563 (eval $ac_try) 2>&5
29564 ac_status=$?
29565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29566 (exit $ac_status); }; }; then
29567 ac_header_compiler=yes
29568else
29569 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029570sed 's/^/| /' conftest.$ac_ext >&5
29571
John Criswell7a73b802003-06-30 21:59:07 +000029572ac_header_compiler=no
29573fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029575echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29576echo "${ECHO_T}$ac_header_compiler" >&6
29577
29578# Is the header present?
29579echo "$as_me:$LINENO: checking $ac_header presence" >&5
29580echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29581cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029582/* confdefs.h. */
29583_ACEOF
29584cat confdefs.h >>conftest.$ac_ext
29585cat >>conftest.$ac_ext <<_ACEOF
29586/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029587#include <$ac_header>
29588_ACEOF
29589if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29591 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000029592 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000029593 rm -f conftest.er1
29594 cat conftest.err >&5
29595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29596 (exit $ac_status); } >/dev/null; then
29597 if test -s conftest.err; then
29598 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000029599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000029600 else
29601 ac_cpp_err=
29602 fi
29603else
29604 ac_cpp_err=yes
29605fi
29606if test -z "$ac_cpp_err"; then
29607 ac_header_preproc=yes
29608else
29609 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029610sed 's/^/| /' conftest.$ac_ext >&5
29611
John Criswell7a73b802003-06-30 21:59:07 +000029612 ac_header_preproc=no
29613fi
29614rm -f conftest.err conftest.$ac_ext
29615echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29616echo "${ECHO_T}$ac_header_preproc" >&6
29617
29618# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029619case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29620 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000029621 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29622echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29624echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29625 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029626 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029627 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000029628 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29629echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029630 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29631echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29632 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29633echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29634 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29635echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29637echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029638 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29639echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029640 (
29641 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029642## ----------------------------------- ##
29643## Report this to llvmbugs@cs.uiuc.edu ##
29644## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000029645_ASBOX
29646 ) |
29647 sed "s/^/$as_me: WARNING: /" >&2
29648 ;;
John Criswell7a73b802003-06-30 21:59:07 +000029649esac
29650echo "$as_me:$LINENO: checking for $ac_header" >&5
29651echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29652if eval "test \"\${$as_ac_Header+set}\" = set"; then
29653 echo $ECHO_N "(cached) $ECHO_C" >&6
29654else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029655 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000029656fi
29657echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29658echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29659
29660fi
29661if test `eval echo '${'$as_ac_Header'}'` = yes; then
29662 cat >>confdefs.h <<_ACEOF
29663#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29664_ACEOF
29665
29666fi
29667
29668done
29669
29670
29671for ac_func in getpagesize
29672do
29673as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29674echo "$as_me:$LINENO: checking for $ac_func" >&5
29675echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29676if eval "test \"\${$as_ac_var+set}\" = set"; then
29677 echo $ECHO_N "(cached) $ECHO_C" >&6
29678else
29679 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029680/* confdefs.h. */
29681_ACEOF
29682cat confdefs.h >>conftest.$ac_ext
29683cat >>conftest.$ac_ext <<_ACEOF
29684/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029685/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29687#define $ac_func innocuous_$ac_func
29688
John Criswell7a73b802003-06-30 21:59:07 +000029689/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000029690 which can conflict with char $ac_func (); below.
29691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29692 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029693
John Criswell0c38eaf2003-09-10 15:17:25 +000029694#ifdef __STDC__
29695# include <limits.h>
29696#else
29697# include <assert.h>
29698#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000029699
29700#undef $ac_func
29701
John Criswell7a73b802003-06-30 21:59:07 +000029702/* Override any gcc2 internal prototype to avoid an error. */
29703#ifdef __cplusplus
29704extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000029705{
John Criswell7a73b802003-06-30 21:59:07 +000029706#endif
29707/* We use char because int might match the return type of a gcc2
29708 builtin and then its argument prototype would still apply. */
29709char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029710/* The GNU C library defines this for functions which it implements
29711 to always fail with ENOSYS. Some functions are actually named
29712 something starting with __ and the normal name is an alias. */
29713#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29714choke me
29715#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029716char (*f) () = $ac_func;
29717#endif
29718#ifdef __cplusplus
29719}
John Criswell7a73b802003-06-30 21:59:07 +000029720#endif
29721
John Criswell0c38eaf2003-09-10 15:17:25 +000029722int
29723main ()
29724{
29725return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000029726 ;
29727 return 0;
29728}
29729_ACEOF
29730rm -f conftest.$ac_objext conftest$ac_exeext
29731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029732 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029733 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029734 grep -v '^ *+' conftest.er1 >conftest.err
29735 rm -f conftest.er1
29736 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29738 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029739 { ac_try='test -z "$ac_c_werror_flag"
29740 || test ! -s conftest.err'
29741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29742 (eval $ac_try) 2>&5
29743 ac_status=$?
29744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29745 (exit $ac_status); }; } &&
29746 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29748 (eval $ac_try) 2>&5
29749 ac_status=$?
29750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751 (exit $ac_status); }; }; then
29752 eval "$as_ac_var=yes"
29753else
29754 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029755sed 's/^/| /' conftest.$ac_ext >&5
29756
John Criswell7a73b802003-06-30 21:59:07 +000029757eval "$as_ac_var=no"
29758fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029759rm -f conftest.err conftest.$ac_objext \
29760 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029761fi
29762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29763echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29764if test `eval echo '${'$as_ac_var'}'` = yes; then
29765 cat >>confdefs.h <<_ACEOF
29766#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29767_ACEOF
29768
29769fi
29770done
29771
29772echo "$as_me:$LINENO: checking for working mmap" >&5
29773echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29774if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29775 echo $ECHO_N "(cached) $ECHO_C" >&6
29776else
29777 if test "$cross_compiling" = yes; then
29778 ac_cv_func_mmap_fixed_mapped=no
29779else
29780 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029781/* confdefs.h. */
29782_ACEOF
29783cat confdefs.h >>conftest.$ac_ext
29784cat >>conftest.$ac_ext <<_ACEOF
29785/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029786$ac_includes_default
29787/* malloc might have been renamed as rpl_malloc. */
29788#undef malloc
29789
29790/* Thanks to Mike Haertel and Jim Avera for this test.
29791 Here is a matrix of mmap possibilities:
29792 mmap private not fixed
29793 mmap private fixed at somewhere currently unmapped
29794 mmap private fixed at somewhere already mapped
29795 mmap shared not fixed
29796 mmap shared fixed at somewhere currently unmapped
29797 mmap shared fixed at somewhere already mapped
29798 For private mappings, we should verify that changes cannot be read()
29799 back from the file, nor mmap's back from the file at a different
29800 address. (There have been systems where private was not correctly
29801 implemented like the infamous i386 svr4.0, and systems where the
29802 VM page cache was not coherent with the file system buffer cache
29803 like early versions of FreeBSD and possibly contemporary NetBSD.)
29804 For shared mappings, we should conversely verify that changes get
29805 propagated back to all the places they're supposed to be.
29806
29807 Grep wants private fixed already mapped.
29808 The main things grep needs to know about mmap are:
29809 * does it exist and is it safe to write into the mmap'd area
29810 * how to use it (BSD variants) */
29811
29812#include <fcntl.h>
29813#include <sys/mman.h>
29814
29815#if !STDC_HEADERS && !HAVE_STDLIB_H
29816char *malloc ();
29817#endif
29818
29819/* This mess was copied from the GNU getpagesize.h. */
29820#if !HAVE_GETPAGESIZE
29821/* Assume that all systems that can run configure have sys/param.h. */
29822# if !HAVE_SYS_PARAM_H
29823# define HAVE_SYS_PARAM_H 1
29824# endif
29825
29826# ifdef _SC_PAGESIZE
29827# define getpagesize() sysconf(_SC_PAGESIZE)
29828# else /* no _SC_PAGESIZE */
29829# if HAVE_SYS_PARAM_H
29830# include <sys/param.h>
29831# ifdef EXEC_PAGESIZE
29832# define getpagesize() EXEC_PAGESIZE
29833# else /* no EXEC_PAGESIZE */
29834# ifdef NBPG
29835# define getpagesize() NBPG * CLSIZE
29836# ifndef CLSIZE
29837# define CLSIZE 1
29838# endif /* no CLSIZE */
29839# else /* no NBPG */
29840# ifdef NBPC
29841# define getpagesize() NBPC
29842# else /* no NBPC */
29843# ifdef PAGESIZE
29844# define getpagesize() PAGESIZE
29845# endif /* PAGESIZE */
29846# endif /* no NBPC */
29847# endif /* no NBPG */
29848# endif /* no EXEC_PAGESIZE */
29849# else /* no HAVE_SYS_PARAM_H */
29850# define getpagesize() 8192 /* punt totally */
29851# endif /* no HAVE_SYS_PARAM_H */
29852# endif /* no _SC_PAGESIZE */
29853
29854#endif /* no HAVE_GETPAGESIZE */
29855
29856int
29857main ()
29858{
29859 char *data, *data2, *data3;
29860 int i, pagesize;
29861 int fd;
29862
29863 pagesize = getpagesize ();
29864
29865 /* First, make a file with some known garbage in it. */
29866 data = (char *) malloc (pagesize);
29867 if (!data)
29868 exit (1);
29869 for (i = 0; i < pagesize; ++i)
29870 *(data + i) = rand ();
29871 umask (0);
29872 fd = creat ("conftest.mmap", 0600);
29873 if (fd < 0)
29874 exit (1);
29875 if (write (fd, data, pagesize) != pagesize)
29876 exit (1);
29877 close (fd);
29878
29879 /* Next, try to mmap the file at a fixed address which already has
29880 something else allocated at it. If we can, also make sure that
29881 we see the same garbage. */
29882 fd = open ("conftest.mmap", O_RDWR);
29883 if (fd < 0)
29884 exit (1);
29885 data2 = (char *) malloc (2 * pagesize);
29886 if (!data2)
29887 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000029888 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000029889 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000029890 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000029891 exit (1);
29892 for (i = 0; i < pagesize; ++i)
29893 if (*(data + i) != *(data2 + i))
29894 exit (1);
29895
29896 /* Finally, make sure that changes to the mapped area do not
29897 percolate back to the file as seen by read(). (This is a bug on
29898 some variants of i386 svr4.0.) */
29899 for (i = 0; i < pagesize; ++i)
29900 *(data2 + i) = *(data2 + i) + 1;
29901 data3 = (char *) malloc (pagesize);
29902 if (!data3)
29903 exit (1);
29904 if (read (fd, data3, pagesize) != pagesize)
29905 exit (1);
29906 for (i = 0; i < pagesize; ++i)
29907 if (*(data + i) != *(data3 + i))
29908 exit (1);
29909 close (fd);
29910 exit (0);
29911}
29912_ACEOF
29913rm -f conftest$ac_exeext
29914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29915 (eval $ac_link) 2>&5
29916 ac_status=$?
29917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29920 (eval $ac_try) 2>&5
29921 ac_status=$?
29922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29923 (exit $ac_status); }; }; then
29924 ac_cv_func_mmap_fixed_mapped=yes
29925else
29926 echo "$as_me: program exited with status $ac_status" >&5
29927echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029928sed 's/^/| /' conftest.$ac_ext >&5
29929
John Criswell7a73b802003-06-30 21:59:07 +000029930( exit $ac_status )
29931ac_cv_func_mmap_fixed_mapped=no
29932fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029933rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029934fi
29935fi
29936echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29937echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29938if test $ac_cv_func_mmap_fixed_mapped = yes; then
29939
29940cat >>confdefs.h <<\_ACEOF
29941#define HAVE_MMAP 1
29942_ACEOF
29943
29944fi
29945rm -f conftest.mmap
29946
29947echo "$as_me:$LINENO: checking for mmap of files" >&5
29948echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29949if test "${ac_cv_func_mmap_file+set}" = set; then
29950 echo $ECHO_N "(cached) $ECHO_C" >&6
29951else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029952 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000029953ac_cpp='$CPP $CPPFLAGS'
29954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29956ac_compiler_gnu=$ac_cv_c_compiler_gnu
29957
29958 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029959 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000029960else
29961 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000029962
Reid Spencer777ce172004-09-20 04:09:56 +000029963 /* confdefs.h. */
29964_ACEOF
29965cat confdefs.h >>conftest.$ac_ext
29966cat >>conftest.$ac_ext <<_ACEOF
29967/* end confdefs.h. */
29968
John Criswell7a73b802003-06-30 21:59:07 +000029969#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000029970#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000029971#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000029972
29973int
29974main ()
29975{
John Criswell7a73b802003-06-30 21:59:07 +000029976
29977 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000029978 fd = creat ("foo",0777);
29979 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29980 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029981 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000029982 ;
29983 return 0;
29984}
John Criswell7a73b802003-06-30 21:59:07 +000029985_ACEOF
29986rm -f conftest$ac_exeext
29987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29988 (eval $ac_link) 2>&5
29989 ac_status=$?
29990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29993 (eval $ac_try) 2>&5
29994 ac_status=$?
29995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29996 (exit $ac_status); }; }; then
29997 ac_cv_func_mmap_file=yes
29998else
29999 echo "$as_me: program exited with status $ac_status" >&5
30000echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030001sed 's/^/| /' conftest.$ac_ext >&5
30002
John Criswell7a73b802003-06-30 21:59:07 +000030003( exit $ac_status )
30004ac_cv_func_mmap_file=no
30005fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030006rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030007fi
30008 ac_ext=c
30009ac_cpp='$CPP $CPPFLAGS'
30010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30012ac_compiler_gnu=$ac_cv_c_compiler_gnu
30013
30014
30015fi
30016echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30017echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30018if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000030019
30020cat >>confdefs.h <<\_ACEOF
30021#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000030022_ACEOF
30023
30024 MMAP_FILE=yes
30025
30026fi
30027
Reid Spencer7931a782004-12-27 06:15:02 +000030028echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30029echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30030if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30031 echo $ECHO_N "(cached) $ECHO_C" >&6
30032else
Reid Spencer582a23c2004-12-29 07:07:57 +000030033 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000030034 ac_cv_need_dev_zero_for_mmap=yes
30035 else
30036 ac_cv_need_dev_zero_for_mmap=no
30037 fi
30038
30039fi
30040echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30041echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30042if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30043
30044cat >>confdefs.h <<\_ACEOF
30045#define NEED_DEV_ZERO_FOR_MMAP 1
30046_ACEOF
30047
30048fi
John Criswell7a73b802003-06-30 21:59:07 +000030049echo "$as_me:$LINENO: checking for mprotect" >&5
30050echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30051if test "${ac_cv_func_mprotect+set}" = set; then
30052 echo $ECHO_N "(cached) $ECHO_C" >&6
30053else
30054 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030055/* confdefs.h. */
30056_ACEOF
30057cat confdefs.h >>conftest.$ac_ext
30058cat >>conftest.$ac_ext <<_ACEOF
30059/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030060/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30062#define mprotect innocuous_mprotect
30063
John Criswell7a73b802003-06-30 21:59:07 +000030064/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030065 which can conflict with char mprotect (); below.
30066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30067 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030068
John Criswell0c38eaf2003-09-10 15:17:25 +000030069#ifdef __STDC__
30070# include <limits.h>
30071#else
30072# include <assert.h>
30073#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030074
30075#undef mprotect
30076
John Criswell7a73b802003-06-30 21:59:07 +000030077/* Override any gcc2 internal prototype to avoid an error. */
30078#ifdef __cplusplus
30079extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030080{
John Criswell7a73b802003-06-30 21:59:07 +000030081#endif
30082/* We use char because int might match the return type of a gcc2
30083 builtin and then its argument prototype would still apply. */
30084char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000030085/* The GNU C library defines this for functions which it implements
30086 to always fail with ENOSYS. Some functions are actually named
30087 something starting with __ and the normal name is an alias. */
30088#if defined (__stub_mprotect) || defined (__stub___mprotect)
30089choke me
30090#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030091char (*f) () = mprotect;
30092#endif
30093#ifdef __cplusplus
30094}
John Criswell7a73b802003-06-30 21:59:07 +000030095#endif
30096
John Criswell0c38eaf2003-09-10 15:17:25 +000030097int
30098main ()
30099{
30100return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000030101 ;
30102 return 0;
30103}
30104_ACEOF
30105rm -f conftest.$ac_objext conftest$ac_exeext
30106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030107 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030108 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030109 grep -v '^ *+' conftest.er1 >conftest.err
30110 rm -f conftest.er1
30111 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30113 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030114 { ac_try='test -z "$ac_c_werror_flag"
30115 || test ! -s conftest.err'
30116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30117 (eval $ac_try) 2>&5
30118 ac_status=$?
30119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30120 (exit $ac_status); }; } &&
30121 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30123 (eval $ac_try) 2>&5
30124 ac_status=$?
30125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30126 (exit $ac_status); }; }; then
30127 ac_cv_func_mprotect=yes
30128else
30129 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030130sed 's/^/| /' conftest.$ac_ext >&5
30131
John Criswell7a73b802003-06-30 21:59:07 +000030132ac_cv_func_mprotect=no
30133fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030134rm -f conftest.err conftest.$ac_objext \
30135 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030136fi
30137echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30138echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30139if test $ac_cv_func_mprotect = yes; then
30140 :
30141else
30142 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30143echo "$as_me: error: Function mprotect() required but not found" >&2;}
30144 { (exit 1); exit 1; }; }
30145fi
30146
30147
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030148if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030149then
Reid Spencer582a23c2004-12-29 07:07:57 +000030150 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30151echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030152fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030153if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030154then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030155 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30156echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030157fi
John Criswell7a73b802003-06-30 21:59:07 +000030158
30159
Brian Gaekef3b24102003-11-16 18:38:14 +000030160echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30161echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030162if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30163 echo $ECHO_N "(cached) $ECHO_C" >&6
30164else
30165 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000030166if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030167 cp /dev/null conftest.c
Reid Spencer502935f2004-12-22 05:56:56 +000030168 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030169 if test $? -eq 0 ; then
30170 llvm_cv_llvmgcc_sanity="yes"
30171 fi
30172 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000030173fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030174fi
30175echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30176echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30177
30178if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000030179 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030180 LLVMCC1=$llvmcc1path
30181
Reid Spencer502935f2004-12-22 05:56:56 +000030182 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030183 LLVMCC1PLUS=$llvmcc1pluspath
30184
Reid Spencer502935f2004-12-22 05:56:56 +000030185 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30186 LLVMGCCDIR=$llvmgccdir
30187
Brian Gaekef3b24102003-11-16 18:38:14 +000030188fi
30189
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030190SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000030191
30192
Reid Spencere9de0912004-08-20 09:03:57 +000030193# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030194# information into substitutions that will end up in Makefile.config.in
30195# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000030196eval LLVM_PREFIX="${prefix}";
30197eval LLVM_BINDIR="${prefix}/bin";
30198eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000030199eval LLVM_DATADIR="${prefix}/share/llvm";
30200eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30201eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000030202eval LLVM_INCLUDEDIR="${prefix}/include";
30203eval LLVM_INFODIR="${prefix}/info";
30204eval LLVM_MANDIR="${prefix}/man";
30205LLVM_CONFIGTIME=`date`
30206
30207
30208
30209
30210
30211
30212
30213
30214
30215
30216
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030217# Place the various directores into the config.h file as #defines so that we
30218# can know about the installation paths within LLVM.
30219
Reid Spencere9de0912004-08-20 09:03:57 +000030220cat >>confdefs.h <<_ACEOF
30221#define LLVM_PREFIX "$LLVM_PREFIX"
30222_ACEOF
30223
30224
30225cat >>confdefs.h <<_ACEOF
30226#define LLVM_BINDIR "$LLVM_BINDIR"
30227_ACEOF
30228
30229
30230cat >>confdefs.h <<_ACEOF
30231#define LLVM_LIBDIR "$LLVM_LIBDIR"
30232_ACEOF
30233
30234
30235cat >>confdefs.h <<_ACEOF
30236#define LLVM_DATADIR "$LLVM_DATADIR"
30237_ACEOF
30238
30239
30240cat >>confdefs.h <<_ACEOF
30241#define LLVM_DATADIR "$LLVM_DOCSDIR"
30242_ACEOF
30243
30244
30245cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000030246#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000030247_ACEOF
30248
30249
30250cat >>confdefs.h <<_ACEOF
30251#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30252_ACEOF
30253
30254
30255cat >>confdefs.h <<_ACEOF
30256#define LLVM_INFODIR "$LLVM_INFODIR"
30257_ACEOF
30258
30259
30260cat >>confdefs.h <<_ACEOF
30261#define LLVM_MANDIR "$LLVM_MANDIR"
30262_ACEOF
30263
30264
30265cat >>confdefs.h <<_ACEOF
30266#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30267_ACEOF
30268
30269
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030270
30271 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30272
30273
30274 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30275
30276 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30277
30278 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30279
30280 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30281
30282 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30283
30284
30285 ac_config_files="$ac_config_files Makefile.config"
30286
30287
Reid Spencer1f319422004-11-29 04:56:35 +000030288 ac_config_files="$ac_config_files docs/doxygen.cfg"
30289
30290
Reid Spencerc0682832005-02-24 19:05:19 +000030291 ac_config_commands="$ac_config_commands setup"
30292
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030293 ac_config_commands="$ac_config_commands Makefile"
30294
30295
30296 ac_config_commands="$ac_config_commands Makefile.common"
30297
30298
30299 ac_config_commands="$ac_config_commands examples/Makefile"
30300
30301
30302 ac_config_commands="$ac_config_commands lib/Makefile"
30303
30304
30305 ac_config_commands="$ac_config_commands runtime/Makefile"
30306
30307
30308 ac_config_commands="$ac_config_commands test/Makefile"
30309
30310
30311 ac_config_commands="$ac_config_commands test/Makefile.tests"
30312
30313
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030314 ac_config_commands="$ac_config_commands tools/Makefile"
30315
30316
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030317 ac_config_commands="$ac_config_commands utils/Makefile"
30318
30319
30320 ac_config_commands="$ac_config_commands projects/Makefile"
30321
30322
30323
John Criswell7a73b802003-06-30 21:59:07 +000030324cat >confcache <<\_ACEOF
30325# This file is a shell script that caches the results of configure
30326# tests run on this system so they can be shared between configure
30327# scripts and configure runs, see configure's option --config-cache.
30328# It is not useful on other systems. If it contains results you don't
30329# want to keep, you may remove or edit it.
30330#
30331# config.status only pays attention to the cache file if you give it
30332# the --recheck option to rerun configure.
30333#
John Criswell0c38eaf2003-09-10 15:17:25 +000030334# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000030335# loading this file, other *unset* `ac_cv_foo' will be assigned the
30336# following values.
30337
30338_ACEOF
30339
30340# The following way of writing the cache mishandles newlines in values,
30341# but we know of no workaround that is simple, portable, and efficient.
30342# So, don't put newlines in cache variables' values.
30343# Ultrix sh set writes to stderr and can't be redirected directly,
30344# and sets the high bit in the cache file unless we assign to the vars.
30345{
30346 (set) 2>&1 |
30347 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30348 *ac_space=\ *)
30349 # `set' does not quote correctly, so add quotes (double-quote
30350 # substitution turns \\\\ into \\, and sed turns \\ into \).
30351 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030352 "s/'/'\\\\''/g;
30353 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000030354 ;;
30355 *)
30356 # `set' quotes correctly as required by POSIX, so do not add quotes.
30357 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030358 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000030359 ;;
30360 esac;
30361} |
30362 sed '
30363 t clear
30364 : clear
30365 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30366 t end
30367 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30368 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000030369if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000030370 if test -w $cache_file; then
30371 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30372 cat confcache >$cache_file
30373 else
30374 echo "not updating unwritable cache $cache_file"
30375 fi
30376fi
30377rm -f confcache
30378
30379test "x$prefix" = xNONE && prefix=$ac_default_prefix
30380# Let make expand exec_prefix.
30381test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30382
30383# VPATH may cause trouble with some makes, so we remove $(srcdir),
30384# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30385# trailing colons and then remove the whole line if VPATH becomes empty
30386# (actually we leave an empty line to preserve line numbers).
30387if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030388 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000030389s/:*\$(srcdir):*/:/;
30390s/:*\${srcdir}:*/:/;
30391s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030392s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000030393s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030394s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000030395}'
30396fi
30397
30398DEFS=-DHAVE_CONFIG_H
30399
John Criswell0c38eaf2003-09-10 15:17:25 +000030400ac_libobjs=
30401ac_ltlibobjs=
30402for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30403 # 1. Remove the extension, and $U if already installed.
30404 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030405 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030406 # 2. Add them.
30407 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30408 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30409done
30410LIBOBJS=$ac_libobjs
30411
30412LTLIBOBJS=$ac_ltlibobjs
30413
30414
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030415if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30416 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30417Usually this means the macro was only invoked conditionally." >&5
30418echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30419Usually this means the macro was only invoked conditionally." >&2;}
30420 { (exit 1); exit 1; }; }
30421fi
30422if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30423 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30424Usually this means the macro was only invoked conditionally." >&5
30425echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30426Usually this means the macro was only invoked conditionally." >&2;}
30427 { (exit 1); exit 1; }; }
30428fi
John Criswell7a73b802003-06-30 21:59:07 +000030429
30430: ${CONFIG_STATUS=./config.status}
30431ac_clean_files_save=$ac_clean_files
30432ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30433{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30434echo "$as_me: creating $CONFIG_STATUS" >&6;}
30435cat >$CONFIG_STATUS <<_ACEOF
30436#! $SHELL
30437# Generated by $as_me.
30438# Run this file to recreate the current configuration.
30439# Compiler output produced by configure, useful for debugging
30440# configure, is in config.log if it exists.
30441
30442debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000030443ac_cs_recheck=false
30444ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000030445SHELL=\${CONFIG_SHELL-$SHELL}
30446_ACEOF
30447
30448cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030449## --------------------- ##
30450## M4sh Initialization. ##
30451## --------------------- ##
30452
30453# Be Bourne compatible
30454if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30455 emulate sh
30456 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000030457 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30458 # is contrary to our usage. Disable this feature.
30459 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000030460elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30461 set -o posix
30462fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030463DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000030464
John Criswell7a73b802003-06-30 21:59:07 +000030465# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030466if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030467 as_unset=unset
30468else
30469 as_unset=false
30470fi
30471
John Criswell0c38eaf2003-09-10 15:17:25 +000030472
30473# Work around bugs in pre-3.0 UWIN ksh.
30474$as_unset ENV MAIL MAILPATH
30475PS1='$ '
30476PS2='> '
30477PS4='+ '
30478
30479# NLS nuisances.
30480for as_var in \
30481 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30482 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30483 LC_TELEPHONE LC_TIME
30484do
Reid Spencer2706f8c2004-09-19 23:53:36 +000030485 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000030486 eval $as_var=C; export $as_var
30487 else
30488 $as_unset $as_var
30489 fi
30490done
30491
30492# Required to use basename.
30493if expr a : '\(a\)' >/dev/null 2>&1; then
30494 as_expr=expr
30495else
30496 as_expr=false
30497fi
30498
30499if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30500 as_basename=basename
30501else
30502 as_basename=false
30503fi
John Criswell7a73b802003-06-30 21:59:07 +000030504
30505
30506# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000030507as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000030508$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30509 X"$0" : 'X\(//\)$' \| \
30510 X"$0" : 'X\(/\)$' \| \
30511 . : '\(.\)' 2>/dev/null ||
30512echo X/"$0" |
30513 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30514 /^X\/\(\/\/\)$/{ s//\1/; q; }
30515 /^X\/\(\/\).*/{ s//\1/; q; }
30516 s/.*/./; q'`
30517
John Criswell0c38eaf2003-09-10 15:17:25 +000030518
John Criswell7a73b802003-06-30 21:59:07 +000030519# PATH needs CR, and LINENO needs CR and PATH.
30520# Avoid depending upon Character Ranges.
30521as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30522as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30523as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30524as_cr_digits='0123456789'
30525as_cr_alnum=$as_cr_Letters$as_cr_digits
30526
30527# The user is always right.
30528if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030529 echo "#! /bin/sh" >conf$$.sh
30530 echo "exit 0" >>conf$$.sh
30531 chmod +x conf$$.sh
30532 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030533 PATH_SEPARATOR=';'
30534 else
30535 PATH_SEPARATOR=:
30536 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000030537 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000030538fi
30539
30540
30541 as_lineno_1=$LINENO
30542 as_lineno_2=$LINENO
30543 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30544 test "x$as_lineno_1" != "x$as_lineno_2" &&
30545 test "x$as_lineno_3" = "x$as_lineno_2" || {
30546 # Find who we are. Look in the path if we contain no path at all
30547 # relative or not.
30548 case $0 in
30549 *[\\/]* ) as_myself=$0 ;;
30550 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30551for as_dir in $PATH
30552do
30553 IFS=$as_save_IFS
30554 test -z "$as_dir" && as_dir=.
30555 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30556done
30557
30558 ;;
30559 esac
30560 # We did not find ourselves, most probably we were run as `sh COMMAND'
30561 # in which case we are not to be found in the path.
30562 if test "x$as_myself" = x; then
30563 as_myself=$0
30564 fi
30565 if test ! -f "$as_myself"; then
30566 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30567echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30568 { (exit 1); exit 1; }; }
30569 fi
30570 case $CONFIG_SHELL in
30571 '')
30572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30573for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30574do
30575 IFS=$as_save_IFS
30576 test -z "$as_dir" && as_dir=.
30577 for as_base in sh bash ksh sh5; do
30578 case $as_dir in
30579 /*)
30580 if ("$as_dir/$as_base" -c '
30581 as_lineno_1=$LINENO
30582 as_lineno_2=$LINENO
30583 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30584 test "x$as_lineno_1" != "x$as_lineno_2" &&
30585 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030586 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30587 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000030588 CONFIG_SHELL=$as_dir/$as_base
30589 export CONFIG_SHELL
30590 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30591 fi;;
30592 esac
30593 done
30594done
30595;;
30596 esac
30597
30598 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30599 # uniformly replaced by the line number. The first 'sed' inserts a
30600 # line-number line before each line; the second 'sed' does the real
30601 # work. The second script uses 'N' to pair each line-number line
30602 # with the numbered line, and appends trailing '-' during
30603 # substitution so that $LINENO is not a special case at line end.
30604 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30605 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30606 sed '=' <$as_myself |
30607 sed '
30608 N
30609 s,$,-,
30610 : loop
30611 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30612 t loop
30613 s,-$,,
30614 s,^['$as_cr_digits']*\n,,
30615 ' >$as_me.lineno &&
30616 chmod +x $as_me.lineno ||
30617 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30618echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30619 { (exit 1); exit 1; }; }
30620
30621 # Don't try to exec as it changes $[0], causing all sort of problems
30622 # (the dirname of $[0] is not the place where we might find the
30623 # original and so on. Autoconf is especially sensible to this).
30624 . ./$as_me.lineno
30625 # Exit status is that of the last command.
30626 exit
30627}
30628
30629
30630case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30631 *c*,-n*) ECHO_N= ECHO_C='
30632' ECHO_T=' ' ;;
30633 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30634 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30635esac
30636
30637if expr a : '\(a\)' >/dev/null 2>&1; then
30638 as_expr=expr
30639else
30640 as_expr=false
30641fi
30642
30643rm -f conf$$ conf$$.exe conf$$.file
30644echo >conf$$.file
30645if ln -s conf$$.file conf$$ 2>/dev/null; then
30646 # We could just check for DJGPP; but this test a) works b) is more generic
30647 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30648 if test -f conf$$.exe; then
30649 # Don't use ln at all; we don't have any links
30650 as_ln_s='cp -p'
30651 else
30652 as_ln_s='ln -s'
30653 fi
30654elif ln conf$$.file conf$$ 2>/dev/null; then
30655 as_ln_s=ln
30656else
30657 as_ln_s='cp -p'
30658fi
30659rm -f conf$$ conf$$.exe conf$$.file
30660
John Criswell0c38eaf2003-09-10 15:17:25 +000030661if mkdir -p . 2>/dev/null; then
30662 as_mkdir_p=:
30663else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030664 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000030665 as_mkdir_p=false
30666fi
30667
John Criswell7a73b802003-06-30 21:59:07 +000030668as_executable_p="test -f"
30669
30670# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030671as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030672
30673# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030674as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030675
30676
30677# IFS
30678# We need space, tab and new line, in precisely that order.
30679as_nl='
30680'
30681IFS=" $as_nl"
30682
30683# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000030684$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000030685
30686exec 6>&1
30687
30688# Open the log real soon, to keep \$[0] and so on meaningful, and to
30689# report actual input values of CONFIG_FILES etc. instead of their
30690# values after options handling. Logging --version etc. is OK.
30691exec 5>>config.log
30692{
30693 echo
30694 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30695## Running $as_me. ##
30696_ASBOX
30697} >&5
30698cat >&5 <<_CSEOF
30699
John Criswell5690c532005-05-18 20:18:40 +000030700This file was extended by llvm $as_me 1.6cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000030701generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000030702
30703 CONFIG_FILES = $CONFIG_FILES
30704 CONFIG_HEADERS = $CONFIG_HEADERS
30705 CONFIG_LINKS = $CONFIG_LINKS
30706 CONFIG_COMMANDS = $CONFIG_COMMANDS
30707 $ $0 $@
30708
30709_CSEOF
30710echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30711echo >&5
30712_ACEOF
30713
30714# Files that config.status was made for.
30715if test -n "$ac_config_files"; then
30716 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30717fi
30718
30719if test -n "$ac_config_headers"; then
30720 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30721fi
30722
30723if test -n "$ac_config_links"; then
30724 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30725fi
30726
30727if test -n "$ac_config_commands"; then
30728 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30729fi
30730
30731cat >>$CONFIG_STATUS <<\_ACEOF
30732
30733ac_cs_usage="\
30734\`$as_me' instantiates files from templates according to the
30735current configuration.
30736
30737Usage: $0 [OPTIONS] [FILE]...
30738
30739 -h, --help print this help, then exit
30740 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000030741 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000030742 -d, --debug don't remove temporary files
30743 --recheck update $as_me by reconfiguring in the same conditions
30744 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030745 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000030746 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030747 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000030748
30749Configuration files:
30750$config_files
30751
30752Configuration headers:
30753$config_headers
30754
John Criswellc764fbc2003-09-06 15:17:13 +000030755Configuration commands:
30756$config_commands
30757
John Criswell7a73b802003-06-30 21:59:07 +000030758Report bugs to <bug-autoconf@gnu.org>."
30759_ACEOF
30760
30761cat >>$CONFIG_STATUS <<_ACEOF
30762ac_cs_version="\\
John Criswell5690c532005-05-18 20:18:40 +000030763llvm config.status 1.6cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +000030764configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000030765 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30766
Reid Spencer2706f8c2004-09-19 23:53:36 +000030767Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000030768This config.status script is free software; the Free Software Foundation
30769gives unlimited permission to copy, distribute and modify it."
30770srcdir=$srcdir
30771INSTALL="$INSTALL"
30772_ACEOF
30773
30774cat >>$CONFIG_STATUS <<\_ACEOF
30775# If no file are specified by the user, then we need to provide default
30776# value. By we need to know if files were specified by the user.
30777ac_need_defaults=:
30778while test $# != 0
30779do
30780 case $1 in
30781 --*=*)
30782 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30783 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030784 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000030785 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030786 -*)
30787 ac_option=$1
30788 ac_optarg=$2
30789 ac_shift=shift
30790 ;;
John Criswell7a73b802003-06-30 21:59:07 +000030791 *) # This is not an option, so the user has probably given explicit
30792 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000030793 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000030794 ac_need_defaults=false;;
30795 esac
30796
John Criswell0c38eaf2003-09-10 15:17:25 +000030797 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000030798 # Handling of the options.
30799_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000030800cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030801 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30802 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030803 --version | --vers* | -V )
30804 echo "$ac_cs_version"; exit 0 ;;
30805 --he | --h)
30806 # Conflict between --help and --header
30807 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30808Try \`$0 --help' for more information." >&5
30809echo "$as_me: error: ambiguous option: $1
30810Try \`$0 --help' for more information." >&2;}
30811 { (exit 1); exit 1; }; };;
30812 --help | --hel | -h )
30813 echo "$ac_cs_usage"; exit 0 ;;
30814 --debug | --d* | -d )
30815 debug=: ;;
30816 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000030817 $ac_shift
30818 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030819 ac_need_defaults=false;;
30820 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000030821 $ac_shift
30822 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030823 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030824 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30825 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30826 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030827
30828 # This is an error.
30829 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30830Try \`$0 --help' for more information." >&5
30831echo "$as_me: error: unrecognized option: $1
30832Try \`$0 --help' for more information." >&2;}
30833 { (exit 1); exit 1; }; } ;;
30834
30835 *) ac_config_targets="$ac_config_targets $1" ;;
30836
30837 esac
30838 shift
30839done
30840
John Criswell0c38eaf2003-09-10 15:17:25 +000030841ac_configure_extra_args=
30842
30843if $ac_cs_silent; then
30844 exec 6>/dev/null
30845 ac_configure_extra_args="$ac_configure_extra_args --silent"
30846fi
30847
30848_ACEOF
30849cat >>$CONFIG_STATUS <<_ACEOF
30850if \$ac_cs_recheck; then
30851 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30852 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30853fi
30854
John Criswell7a73b802003-06-30 21:59:07 +000030855_ACEOF
30856
John Criswellc764fbc2003-09-06 15:17:13 +000030857cat >>$CONFIG_STATUS <<_ACEOF
30858#
30859# INIT-COMMANDS section.
30860#
John Criswell7a73b802003-06-30 21:59:07 +000030861
Reid Spencerc0682832005-02-24 19:05:19 +000030862llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000030863
30864_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030865
30866
30867
30868cat >>$CONFIG_STATUS <<\_ACEOF
30869for ac_config_target in $ac_config_targets
30870do
30871 case "$ac_config_target" in
30872 # Handling of arguments.
30873 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000030874 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spencerc0682832005-02-24 19:05:19 +000030875 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030876 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30877 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000030878 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030879 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030880 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030881 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30882 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030883 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000030884 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030885 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000030886 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000030887 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000030888 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30889 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000030890 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30891 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000030892 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30893echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30894 { (exit 1); exit 1; }; };;
30895 esac
30896done
30897
30898# If the user did not use the arguments to specify the items to instantiate,
30899# then the envvar interface is used. Set only those that are not.
30900# We use the long form for the default assignment because of an extremely
30901# bizarre bug on SunOS 4.1.3.
30902if $ac_need_defaults; then
30903 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30904 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000030905 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000030906fi
30907
John Criswell0c38eaf2003-09-10 15:17:25 +000030908# Have a temporary directory for convenience. Make it in the build tree
30909# simply because there is no reason to put it here, and in addition,
30910# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000030911# Create a temporary directory, and hook for its removal unless debugging.
30912$debug ||
30913{
30914 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30915 trap '{ (exit 1); exit 1; }' 1 2 13 15
30916}
30917
30918# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000030919
John Criswell7a73b802003-06-30 21:59:07 +000030920{
John Criswell0c38eaf2003-09-10 15:17:25 +000030921 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000030922 test -n "$tmp" && test -d "$tmp"
30923} ||
30924{
John Criswell0c38eaf2003-09-10 15:17:25 +000030925 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000030926 (umask 077 && mkdir $tmp)
30927} ||
30928{
John Criswell0c38eaf2003-09-10 15:17:25 +000030929 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000030930 { (exit 1); exit 1; }
30931}
30932
30933_ACEOF
30934
30935cat >>$CONFIG_STATUS <<_ACEOF
30936
30937#
30938# CONFIG_FILES section.
30939#
30940
30941# No need to generate the scripts if there are no CONFIG_FILES.
30942# This happens for instance when ./config.status config.h
30943if test -n "\$CONFIG_FILES"; then
30944 # Protect against being on the right side of a sed subst in config.status.
30945 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30946 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30947s,@SHELL@,$SHELL,;t t
30948s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30949s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30950s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30951s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30952s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30953s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30954s,@exec_prefix@,$exec_prefix,;t t
30955s,@prefix@,$prefix,;t t
30956s,@program_transform_name@,$program_transform_name,;t t
30957s,@bindir@,$bindir,;t t
30958s,@sbindir@,$sbindir,;t t
30959s,@libexecdir@,$libexecdir,;t t
30960s,@datadir@,$datadir,;t t
30961s,@sysconfdir@,$sysconfdir,;t t
30962s,@sharedstatedir@,$sharedstatedir,;t t
30963s,@localstatedir@,$localstatedir,;t t
30964s,@libdir@,$libdir,;t t
30965s,@includedir@,$includedir,;t t
30966s,@oldincludedir@,$oldincludedir,;t t
30967s,@infodir@,$infodir,;t t
30968s,@mandir@,$mandir,;t t
30969s,@build_alias@,$build_alias,;t t
30970s,@host_alias@,$host_alias,;t t
30971s,@target_alias@,$target_alias,;t t
30972s,@DEFS@,$DEFS,;t t
30973s,@ECHO_C@,$ECHO_C,;t t
30974s,@ECHO_N@,$ECHO_N,;t t
30975s,@ECHO_T@,$ECHO_T,;t t
30976s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030977s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000030978s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030979s,@build@,$build,;t t
30980s,@build_cpu@,$build_cpu,;t t
30981s,@build_vendor@,$build_vendor,;t t
30982s,@build_os@,$build_os,;t t
30983s,@host@,$host,;t t
30984s,@host_cpu@,$host_cpu,;t t
30985s,@host_vendor@,$host_vendor,;t t
30986s,@host_os@,$host_os,;t t
30987s,@target@,$target,;t t
30988s,@target_cpu@,$target_cpu,;t t
30989s,@target_vendor@,$target_vendor,;t t
30990s,@target_os@,$target_os,;t t
30991s,@OS@,$OS,;t t
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000030992s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
30993s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
John Criswell76595452003-07-01 22:07:39 +000030994s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030995s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030996s,@CC@,$CC,;t t
30997s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030998s,@LDFLAGS@,$LDFLAGS,;t t
30999s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031000s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031001s,@EXEEXT@,$EXEEXT,;t t
31002s,@OBJEXT@,$OBJEXT,;t t
31003s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31004s,@JIT@,$JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031005s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
Reid Spencer945de9b2005-04-22 07:27:28 +000031006s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031007s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031008s,@CXX@,$CXX,;t t
31009s,@CXXFLAGS@,$CXXFLAGS,;t t
31010s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031011s,@LEX@,$LEX,;t t
31012s,@LEXLIB@,$LEXLIB,;t t
31013s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000031014s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031015s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000031016s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031017s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031018s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000031019s,@CMP@,$CMP,;t t
31020s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031021s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031022s,@FIND@,$FIND,;t t
31023s,@GREP@,$GREP,;t t
31024s,@MKDIR@,$MKDIR,;t t
31025s,@MV@,$MV,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031026s,@RANLIB@,$RANLIB,;t t
31027s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031028s,@RM@,$RM,;t t
31029s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000031030s,@TAR@,$TAR,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031031s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31032s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31033s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031034s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031035s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031036s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031037s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031038s,@GROFF@,$GROFF,;t t
31039s,@GZIP@,$GZIP,;t t
31040s,@POD2HTML@,$POD2HTML,;t t
31041s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000031042s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000031043s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031044s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031045s,@EGREP@,$EGREP,;t t
31046s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31047s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31048s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31049s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31050s,@LIBADD_DL@,$LIBADD_DL,;t t
31051s,@ECHO@,$ECHO,;t t
31052s,@AR@,$AR,;t t
31053s,@ac_ct_AR@,$ac_ct_AR,;t t
31054s,@STRIP@,$STRIP,;t t
31055s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31056s,@CXXCPP@,$CXXCPP,;t t
31057s,@F77@,$F77,;t t
31058s,@FFLAGS@,$FFLAGS,;t t
31059s,@ac_ct_F77@,$ac_ct_F77,;t t
31060s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031061s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
Reid Spencer59473af2004-12-25 07:31:29 +000031062s,@LLVMGCC@,$LLVMGCC,;t t
31063s,@LLVMGXX@,$LLVMGXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031064s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031065s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000031066s,@LLVMCC1@,$LLVMCC1,;t t
31067s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000031068s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000031069s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000031070s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31071s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31072s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31073s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31074s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31075s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31076s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31077s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31078s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31079s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000031080s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000031081s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031082CEOF
31083
31084_ACEOF
31085
31086 cat >>$CONFIG_STATUS <<\_ACEOF
31087 # Split the substitutions into bite-sized pieces for seds with
31088 # small command number limits, like on Digital OSF/1 and HP-UX.
31089 ac_max_sed_lines=48
31090 ac_sed_frag=1 # Number of current file.
31091 ac_beg=1 # First line for current file.
31092 ac_end=$ac_max_sed_lines # Line after last line for current file.
31093 ac_more_lines=:
31094 ac_sed_cmds=
31095 while $ac_more_lines; do
31096 if test $ac_beg -gt 1; then
31097 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31098 else
31099 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31100 fi
31101 if test ! -s $tmp/subs.frag; then
31102 ac_more_lines=false
31103 else
31104 # The purpose of the label and of the branching condition is to
31105 # speed up the sed processing (if there are no `@' at all, there
31106 # is no need to browse any of the substitutions).
31107 # These are the two extra sed commands mentioned above.
31108 (echo ':t
31109 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31110 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000031111 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031112 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031113 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031114 fi
31115 ac_sed_frag=`expr $ac_sed_frag + 1`
31116 ac_beg=$ac_end
31117 ac_end=`expr $ac_end + $ac_max_sed_lines`
31118 fi
31119 done
31120 if test -z "$ac_sed_cmds"; then
31121 ac_sed_cmds=cat
31122 fi
31123fi # test -n "$CONFIG_FILES"
31124
31125_ACEOF
31126cat >>$CONFIG_STATUS <<\_ACEOF
31127for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31128 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31129 case $ac_file in
31130 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031131 cat >$tmp/stdin
31132 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31133 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031134 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031135 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031136 * ) ac_file_in=$ac_file.in ;;
31137 esac
31138
31139 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31140 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31141$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031142 X"$ac_file" : 'X\(//\)[^/]' \| \
31143 X"$ac_file" : 'X\(//\)$' \| \
31144 X"$ac_file" : 'X\(/\)' \| \
31145 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031146echo X"$ac_file" |
31147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31148 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31149 /^X\(\/\/\)$/{ s//\1/; q; }
31150 /^X\(\/\).*/{ s//\1/; q; }
31151 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031152 { if $as_mkdir_p; then
31153 mkdir -p "$ac_dir"
31154 else
31155 as_dir="$ac_dir"
31156 as_dirs=
31157 while test ! -d "$as_dir"; do
31158 as_dirs="$as_dir $as_dirs"
31159 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31160$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031161 X"$as_dir" : 'X\(//\)[^/]' \| \
31162 X"$as_dir" : 'X\(//\)$' \| \
31163 X"$as_dir" : 'X\(/\)' \| \
31164 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031165echo X"$as_dir" |
31166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31167 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31168 /^X\(\/\/\)$/{ s//\1/; q; }
31169 /^X\(\/\).*/{ s//\1/; q; }
31170 s/.*/./; q'`
31171 done
31172 test ! -n "$as_dirs" || mkdir $as_dirs
31173 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31174echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31175 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031176
31177 ac_builddir=.
31178
31179if test "$ac_dir" != .; then
31180 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31181 # A "../" for each directory in $ac_dir_suffix.
31182 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31183else
31184 ac_dir_suffix= ac_top_builddir=
31185fi
31186
31187case $srcdir in
31188 .) # No --srcdir option. We are building in place.
31189 ac_srcdir=.
31190 if test -z "$ac_top_builddir"; then
31191 ac_top_srcdir=.
31192 else
31193 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31194 fi ;;
31195 [\\/]* | ?:[\\/]* ) # Absolute path.
31196 ac_srcdir=$srcdir$ac_dir_suffix;
31197 ac_top_srcdir=$srcdir ;;
31198 *) # Relative path.
31199 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31200 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31201esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031202
31203# Do not use `cd foo && pwd` to compute absolute paths, because
31204# the directories may not exist.
31205case `pwd` in
31206.) ac_abs_builddir="$ac_dir";;
31207*)
31208 case "$ac_dir" in
31209 .) ac_abs_builddir=`pwd`;;
31210 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31211 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31212 esac;;
31213esac
31214case $ac_abs_builddir in
31215.) ac_abs_top_builddir=${ac_top_builddir}.;;
31216*)
31217 case ${ac_top_builddir}. in
31218 .) ac_abs_top_builddir=$ac_abs_builddir;;
31219 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31220 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31221 esac;;
31222esac
31223case $ac_abs_builddir in
31224.) ac_abs_srcdir=$ac_srcdir;;
31225*)
31226 case $ac_srcdir in
31227 .) ac_abs_srcdir=$ac_abs_builddir;;
31228 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31229 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31230 esac;;
31231esac
31232case $ac_abs_builddir in
31233.) ac_abs_top_srcdir=$ac_top_srcdir;;
31234*)
31235 case $ac_top_srcdir in
31236 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31237 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31238 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31239 esac;;
31240esac
John Criswell7a73b802003-06-30 21:59:07 +000031241
31242
31243 case $INSTALL in
31244 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31245 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31246 esac
31247
31248 if test x"$ac_file" != x-; then
31249 { echo "$as_me:$LINENO: creating $ac_file" >&5
31250echo "$as_me: creating $ac_file" >&6;}
31251 rm -f "$ac_file"
31252 fi
31253 # Let's still pretend it is `configure' which instantiates (i.e., don't
31254 # use $as_me), people would be surprised to read:
31255 # /* config.h. Generated by config.status. */
31256 if test x"$ac_file" = x-; then
31257 configure_input=
31258 else
31259 configure_input="$ac_file. "
31260 fi
31261 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000031262 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000031263
31264 # First look for the input files in the build tree, otherwise in the
31265 # src tree.
31266 ac_file_inputs=`IFS=:
31267 for f in $ac_file_in; do
31268 case $f in
31269 -) echo $tmp/stdin ;;
31270 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031271 # Absolute (can't be DOS-style, as IFS=:)
31272 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031273echo "$as_me: error: cannot find input file: $f" >&2;}
31274 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031275 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031276 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031277 if test -f "$f"; then
31278 # Build tree
31279 echo "$f"
31280 elif test -f "$srcdir/$f"; then
31281 # Source tree
31282 echo "$srcdir/$f"
31283 else
31284 # /dev/null tree
31285 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031286echo "$as_me: error: cannot find input file: $f" >&2;}
31287 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031288 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031289 esac
31290 done` || { (exit 1); exit 1; }
31291_ACEOF
31292cat >>$CONFIG_STATUS <<_ACEOF
31293 sed "$ac_vpsub
31294$extrasub
31295_ACEOF
31296cat >>$CONFIG_STATUS <<\_ACEOF
31297:t
31298/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31299s,@configure_input@,$configure_input,;t t
31300s,@srcdir@,$ac_srcdir,;t t
31301s,@abs_srcdir@,$ac_abs_srcdir,;t t
31302s,@top_srcdir@,$ac_top_srcdir,;t t
31303s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31304s,@builddir@,$ac_builddir,;t t
31305s,@abs_builddir@,$ac_abs_builddir,;t t
31306s,@top_builddir@,$ac_top_builddir,;t t
31307s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31308s,@INSTALL@,$ac_INSTALL,;t t
31309" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31310 rm -f $tmp/stdin
31311 if test x"$ac_file" != x-; then
31312 mv $tmp/out $ac_file
31313 else
31314 cat $tmp/out
31315 rm -f $tmp/out
31316 fi
31317
31318done
31319_ACEOF
31320cat >>$CONFIG_STATUS <<\_ACEOF
31321
31322#
31323# CONFIG_HEADER section.
31324#
31325
31326# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31327# NAME is the cpp macro being defined and VALUE is the value it is being given.
31328#
31329# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031330ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31331ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000031332ac_dC=' '
31333ac_dD=',;t'
31334# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000031335ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000031336ac_uB='$,\1#\2define\3'
31337ac_uC=' '
31338ac_uD=',;t'
31339
31340for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31341 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31342 case $ac_file in
31343 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031344 cat >$tmp/stdin
31345 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31346 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031347 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031348 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031349 * ) ac_file_in=$ac_file.in ;;
31350 esac
31351
31352 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31353echo "$as_me: creating $ac_file" >&6;}
31354
31355 # First look for the input files in the build tree, otherwise in the
31356 # src tree.
31357 ac_file_inputs=`IFS=:
31358 for f in $ac_file_in; do
31359 case $f in
31360 -) echo $tmp/stdin ;;
31361 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031362 # Absolute (can't be DOS-style, as IFS=:)
31363 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031364echo "$as_me: error: cannot find input file: $f" >&2;}
31365 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031366 # Do quote $f, to prevent DOS paths from being IFS'd.
31367 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031368 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031369 if test -f "$f"; then
31370 # Build tree
31371 echo "$f"
31372 elif test -f "$srcdir/$f"; then
31373 # Source tree
31374 echo "$srcdir/$f"
31375 else
31376 # /dev/null tree
31377 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031378echo "$as_me: error: cannot find input file: $f" >&2;}
31379 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031380 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031381 esac
31382 done` || { (exit 1); exit 1; }
31383 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031384 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000031385
31386_ACEOF
31387
31388# Transform confdefs.h into two sed scripts, `conftest.defines' and
31389# `conftest.undefs', that substitutes the proper values into
31390# config.h.in to produce config.h. The first handles `#define'
31391# templates, and the second `#undef' templates.
31392# And first: Protect against being on the right side of a sed subst in
31393# config.status. Protect against being in an unquoted here document
31394# in config.status.
31395rm -f conftest.defines conftest.undefs
31396# Using a here document instead of a string reduces the quoting nightmare.
31397# Putting comments in sed scripts is not portable.
31398#
31399# `end' is used to avoid that the second main sed command (meant for
31400# 0-ary CPP macros) applies to n-ary macro definitions.
31401# See the Autoconf documentation for `clear'.
31402cat >confdef2sed.sed <<\_ACEOF
31403s/[\\&,]/\\&/g
31404s,[\\$`],\\&,g
31405t clear
31406: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000031407s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031408t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000031409s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031410: end
31411_ACEOF
31412# If some macros were called several times there might be several times
31413# the same #defines, which is useless. Nevertheless, we may not want to
31414# sort them, since we want the *last* AC-DEFINE to be honored.
31415uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31416sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31417rm -f confdef2sed.sed
31418
31419# This sed command replaces #undef with comments. This is necessary, for
31420# example, in the case of _POSIX_SOURCE, which is predefined and required
31421# on some systems where configure will not decide to define it.
31422cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031423s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000031424_ACEOF
31425
31426# Break up conftest.defines because some shells have a limit on the size
31427# of here documents, and old seds have small limits too (100 cmds).
31428echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000031429echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031430echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31431echo ' :' >>$CONFIG_STATUS
31432rm -f conftest.tail
31433while grep . conftest.defines >/dev/null
31434do
31435 # Write a limited-size here document to $tmp/defines.sed.
31436 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31437 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031438 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031439 # Work around the forget-to-reset-the-flag bug.
31440 echo 't clr' >>$CONFIG_STATUS
31441 echo ': clr' >>$CONFIG_STATUS
31442 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31443 echo 'CEOF
31444 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31445 rm -f $tmp/in
31446 mv $tmp/out $tmp/in
31447' >>$CONFIG_STATUS
31448 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31449 rm -f conftest.defines
31450 mv conftest.tail conftest.defines
31451done
31452rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000031453echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031454echo >>$CONFIG_STATUS
31455
31456# Break up conftest.undefs because some shells have a limit on the size
31457# of here documents, and old seds have small limits too (100 cmds).
31458echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31459rm -f conftest.tail
31460while grep . conftest.undefs >/dev/null
31461do
31462 # Write a limited-size here document to $tmp/undefs.sed.
31463 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31464 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000031465 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031466 # Work around the forget-to-reset-the-flag bug.
31467 echo 't clr' >>$CONFIG_STATUS
31468 echo ': clr' >>$CONFIG_STATUS
31469 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31470 echo 'CEOF
31471 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31472 rm -f $tmp/in
31473 mv $tmp/out $tmp/in
31474' >>$CONFIG_STATUS
31475 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31476 rm -f conftest.undefs
31477 mv conftest.tail conftest.undefs
31478done
31479rm -f conftest.undefs
31480
31481cat >>$CONFIG_STATUS <<\_ACEOF
31482 # Let's still pretend it is `configure' which instantiates (i.e., don't
31483 # use $as_me), people would be surprised to read:
31484 # /* config.h. Generated by config.status. */
31485 if test x"$ac_file" = x-; then
31486 echo "/* Generated by configure. */" >$tmp/config.h
31487 else
31488 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31489 fi
31490 cat $tmp/in >>$tmp/config.h
31491 rm -f $tmp/in
31492 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031493 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031494 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31495echo "$as_me: $ac_file is unchanged" >&6;}
31496 else
31497 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31498$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031499 X"$ac_file" : 'X\(//\)[^/]' \| \
31500 X"$ac_file" : 'X\(//\)$' \| \
31501 X"$ac_file" : 'X\(/\)' \| \
31502 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031503echo X"$ac_file" |
31504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31505 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31506 /^X\(\/\/\)$/{ s//\1/; q; }
31507 /^X\(\/\).*/{ s//\1/; q; }
31508 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031509 { if $as_mkdir_p; then
31510 mkdir -p "$ac_dir"
31511 else
31512 as_dir="$ac_dir"
31513 as_dirs=
31514 while test ! -d "$as_dir"; do
31515 as_dirs="$as_dir $as_dirs"
31516 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31517$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031518 X"$as_dir" : 'X\(//\)[^/]' \| \
31519 X"$as_dir" : 'X\(//\)$' \| \
31520 X"$as_dir" : 'X\(/\)' \| \
31521 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031522echo X"$as_dir" |
31523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31524 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31525 /^X\(\/\/\)$/{ s//\1/; q; }
31526 /^X\(\/\).*/{ s//\1/; q; }
31527 s/.*/./; q'`
31528 done
31529 test ! -n "$as_dirs" || mkdir $as_dirs
31530 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31531echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31532 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031533
31534 rm -f $ac_file
31535 mv $tmp/config.h $ac_file
31536 fi
31537 else
31538 cat $tmp/config.h
31539 rm -f $tmp/config.h
31540 fi
31541done
31542_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000031543cat >>$CONFIG_STATUS <<\_ACEOF
31544
31545#
31546# CONFIG_COMMANDS section.
31547#
31548for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31549 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31550 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31551 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31552$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031553 X"$ac_dest" : 'X\(//\)[^/]' \| \
31554 X"$ac_dest" : 'X\(//\)$' \| \
31555 X"$ac_dest" : 'X\(/\)' \| \
31556 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000031557echo X"$ac_dest" |
31558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31559 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31560 /^X\(\/\/\)$/{ s//\1/; q; }
31561 /^X\(\/\).*/{ s//\1/; q; }
31562 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031563 { if $as_mkdir_p; then
31564 mkdir -p "$ac_dir"
31565 else
31566 as_dir="$ac_dir"
31567 as_dirs=
31568 while test ! -d "$as_dir"; do
31569 as_dirs="$as_dir $as_dirs"
31570 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31571$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31572 X"$as_dir" : 'X\(//\)[^/]' \| \
31573 X"$as_dir" : 'X\(//\)$' \| \
31574 X"$as_dir" : 'X\(/\)' \| \
31575 . : '\(.\)' 2>/dev/null ||
31576echo X"$as_dir" |
31577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31578 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31579 /^X\(\/\/\)$/{ s//\1/; q; }
31580 /^X\(\/\).*/{ s//\1/; q; }
31581 s/.*/./; q'`
31582 done
31583 test ! -n "$as_dirs" || mkdir $as_dirs
31584 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31585echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31586 { (exit 1); exit 1; }; }; }
31587
John Criswellc764fbc2003-09-06 15:17:13 +000031588 ac_builddir=.
31589
31590if test "$ac_dir" != .; then
31591 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31592 # A "../" for each directory in $ac_dir_suffix.
31593 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31594else
31595 ac_dir_suffix= ac_top_builddir=
31596fi
31597
31598case $srcdir in
31599 .) # No --srcdir option. We are building in place.
31600 ac_srcdir=.
31601 if test -z "$ac_top_builddir"; then
31602 ac_top_srcdir=.
31603 else
31604 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31605 fi ;;
31606 [\\/]* | ?:[\\/]* ) # Absolute path.
31607 ac_srcdir=$srcdir$ac_dir_suffix;
31608 ac_top_srcdir=$srcdir ;;
31609 *) # Relative path.
31610 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31611 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31612esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031613
31614# Do not use `cd foo && pwd` to compute absolute paths, because
31615# the directories may not exist.
31616case `pwd` in
31617.) ac_abs_builddir="$ac_dir";;
31618*)
31619 case "$ac_dir" in
31620 .) ac_abs_builddir=`pwd`;;
31621 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31622 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31623 esac;;
31624esac
31625case $ac_abs_builddir in
31626.) ac_abs_top_builddir=${ac_top_builddir}.;;
31627*)
31628 case ${ac_top_builddir}. in
31629 .) ac_abs_top_builddir=$ac_abs_builddir;;
31630 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31631 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31632 esac;;
31633esac
31634case $ac_abs_builddir in
31635.) ac_abs_srcdir=$ac_srcdir;;
31636*)
31637 case $ac_srcdir in
31638 .) ac_abs_srcdir=$ac_abs_builddir;;
31639 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31640 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31641 esac;;
31642esac
31643case $ac_abs_builddir in
31644.) ac_abs_top_srcdir=$ac_top_srcdir;;
31645*)
31646 case $ac_top_srcdir in
31647 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31648 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31649 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31650 esac;;
31651esac
John Criswellc764fbc2003-09-06 15:17:13 +000031652
31653
31654 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31655echo "$as_me: executing $ac_dest commands" >&6;}
31656 case $ac_dest in
Reid Spencerc0682832005-02-24 19:05:19 +000031657 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31658 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31659 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31660 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31661 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31662 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31663 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31664 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31665 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31666 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31667 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31668 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31669 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31670 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31671 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31672 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31673 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31674 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31675 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31676 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031677 esac
31678done
31679_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031680
31681cat >>$CONFIG_STATUS <<\_ACEOF
31682
31683{ (exit 0); exit 0; }
31684_ACEOF
31685chmod +x $CONFIG_STATUS
31686ac_clean_files=$ac_clean_files_save
31687
31688
31689# configure is writing to config.log, and then calls config.status.
31690# config.status does its own redirection, appending to config.log.
31691# Unfortunately, on DOS this fails, as config.log is still kept open
31692# by configure, so config.status won't be able to write to it; its
31693# output is simply discarded. So we exec the FD to /dev/null,
31694# effectively closing config.log, so it can be properly (re)opened and
31695# appended to by config.status. When coming back to configure, we
31696# need to make the FD available again.
31697if test "$no_create" != yes; then
31698 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031699 ac_config_status_args=
31700 test "$silent" = yes &&
31701 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000031702 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000031703 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000031704 exec 5>>config.log
31705 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31706 # would make configure fail if this is the last instruction.
31707 $ac_cs_success || { (exit 1); exit 1; }
31708fi
31709
John Criswell12399a12003-09-30 15:55:44 +000031710#
31711# CONFIG_SUBDIRS section.
31712#
31713if test "$no_recursion" != yes; then
31714
31715 # Remove --cache-file and --srcdir arguments so they do not pile up.
31716 ac_sub_configure_args=
31717 ac_prev=
31718 for ac_arg in $ac_configure_args; do
31719 if test -n "$ac_prev"; then
31720 ac_prev=
31721 continue
31722 fi
31723 case $ac_arg in
31724 -cache-file | --cache-file | --cache-fil | --cache-fi \
31725 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31726 ac_prev=cache_file ;;
31727 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31728 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31729 | --c=*)
31730 ;;
31731 --config-cache | -C)
31732 ;;
31733 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31734 ac_prev=srcdir ;;
31735 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31736 ;;
31737 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31738 ac_prev=prefix ;;
31739 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31740 ;;
31741 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31742 esac
31743 done
31744
31745 # Always prepend --prefix to ensure using the same prefix
31746 # in subdir configurations.
31747 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31748
31749 ac_popdir=`pwd`
31750 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31751
31752 # Do not complain, so a configure script can configure whichever
31753 # parts of a large source tree are present.
31754 test -d $srcdir/$ac_dir || continue
31755
31756 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31757echo "$as_me: configuring in $ac_dir" >&6;}
31758 { if $as_mkdir_p; then
31759 mkdir -p "$ac_dir"
31760 else
31761 as_dir="$ac_dir"
31762 as_dirs=
31763 while test ! -d "$as_dir"; do
31764 as_dirs="$as_dir $as_dirs"
31765 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31766$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031767 X"$as_dir" : 'X\(//\)[^/]' \| \
31768 X"$as_dir" : 'X\(//\)$' \| \
31769 X"$as_dir" : 'X\(/\)' \| \
31770 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000031771echo X"$as_dir" |
31772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31773 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31774 /^X\(\/\/\)$/{ s//\1/; q; }
31775 /^X\(\/\).*/{ s//\1/; q; }
31776 s/.*/./; q'`
31777 done
31778 test ! -n "$as_dirs" || mkdir $as_dirs
31779 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31780echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31781 { (exit 1); exit 1; }; }; }
31782
31783 ac_builddir=.
31784
31785if test "$ac_dir" != .; then
31786 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31787 # A "../" for each directory in $ac_dir_suffix.
31788 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31789else
31790 ac_dir_suffix= ac_top_builddir=
31791fi
31792
31793case $srcdir in
31794 .) # No --srcdir option. We are building in place.
31795 ac_srcdir=.
31796 if test -z "$ac_top_builddir"; then
31797 ac_top_srcdir=.
31798 else
31799 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31800 fi ;;
31801 [\\/]* | ?:[\\/]* ) # Absolute path.
31802 ac_srcdir=$srcdir$ac_dir_suffix;
31803 ac_top_srcdir=$srcdir ;;
31804 *) # Relative path.
31805 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31806 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31807esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031808
31809# Do not use `cd foo && pwd` to compute absolute paths, because
31810# the directories may not exist.
31811case `pwd` in
31812.) ac_abs_builddir="$ac_dir";;
31813*)
31814 case "$ac_dir" in
31815 .) ac_abs_builddir=`pwd`;;
31816 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31817 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31818 esac;;
31819esac
31820case $ac_abs_builddir in
31821.) ac_abs_top_builddir=${ac_top_builddir}.;;
31822*)
31823 case ${ac_top_builddir}. in
31824 .) ac_abs_top_builddir=$ac_abs_builddir;;
31825 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31826 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31827 esac;;
31828esac
31829case $ac_abs_builddir in
31830.) ac_abs_srcdir=$ac_srcdir;;
31831*)
31832 case $ac_srcdir in
31833 .) ac_abs_srcdir=$ac_abs_builddir;;
31834 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31835 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31836 esac;;
31837esac
31838case $ac_abs_builddir in
31839.) ac_abs_top_srcdir=$ac_top_srcdir;;
31840*)
31841 case $ac_top_srcdir in
31842 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31843 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31844 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31845 esac;;
31846esac
John Criswell12399a12003-09-30 15:55:44 +000031847
31848
31849 cd $ac_dir
31850
31851 # Check for guested configure; otherwise get Cygnus style configure.
31852 if test -f $ac_srcdir/configure.gnu; then
31853 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31854 elif test -f $ac_srcdir/configure; then
31855 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31856 elif test -f $ac_srcdir/configure.in; then
31857 ac_sub_configure=$ac_configure
31858 else
31859 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31860echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31861 ac_sub_configure=
31862 fi
31863
31864 # The recursion is here.
31865 if test -n "$ac_sub_configure"; then
31866 # Make the cache file name correct relative to the subdirectory.
31867 case $cache_file in
31868 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31869 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031870 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000031871 esac
31872
31873 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31874echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31875 # The eval makes quoting arguments work.
31876 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031877 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31878 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000031879echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31880 { (exit 1); exit 1; }; }
31881 fi
31882
31883 cd $ac_popdir
31884 done
31885fi
31886
Brian Gaekef3b24102003-11-16 18:38:14 +000031887
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031888if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000031889 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31890echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000031891 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31892echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31893 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31894echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31895 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31896echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31897 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31898echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000031899fi