blob: 5949627beeabfcb07f912cb60a3c32e55a7d2c8e [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencere9de0912004-08-20 09:03:57 +00003# Generated by GNU Autoconf 2.59 for LLVM 1.4.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencer2b51a082004-08-04 00:34:49 +00007# Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00008# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
John Criswell0c38eaf2003-09-10 15:17:25 +000010## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
Reid Spencer2b51a082004-08-04 00:34:49 +000024DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000025
26# Support unset when possible.
Reid Spencer2b51a082004-08-04 00:34:49 +000027if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000028 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
Reid Spencer2b51a082004-08-04 00:34:49 +000046 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000047 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
Reid Spencer2b51a082004-08-04 00:34:49 +0000223 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
Reid Spencer2b51a082004-08-04 00:34:49 +0000230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000231
232# Sed expression to map a string onto a valid variable name.
Reid Spencer2b51a082004-08-04 00:34:49 +0000233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
John Criswell7a73b802003-06-30 21:59:07 +0000245
John Criswell7a73b802003-06-30 21:59:07 +0000246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
John Criswell47fdd832003-07-14 16:52:07 +0000264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000265 # Yippee, $echo works!
266 :
267else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000276$*
John Criswell7a73b802003-06-30 21:59:07 +0000277EOF
278 exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
John Criswell47fdd832003-07-14 16:52:07 +0000310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000311 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000312 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
319 fi
320 done
John Criswell47fdd832003-07-14 16:52:07 +0000321 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000322
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
345 :
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
363
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
368 fi
369 prev="$cmd"
370 done
371
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
379 fi
380 fi
381 fi
382 fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
John Criswell47fdd832003-07-14 16:52:07 +0000395
396tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
397
398tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
399
John Criswell7a73b802003-06-30 21:59:07 +0000400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000411ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete. It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
Reid Spencer2b51a082004-08-04 00:34:49 +0000424PACKAGE_NAME='LLVM'
425PACKAGE_TARNAME='-llvm-'
Reid Spencere9de0912004-08-20 09:03:57 +0000426PACKAGE_VERSION='1.4'
427PACKAGE_STRING='LLVM 1.4'
John Criswell7a73b802003-06-30 21:59:07 +0000428PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429
John Criswell33a911a2003-11-25 20:36:46 +0000430ac_subdirs_all="$ac_subdirs_all projects/${i}"
John Criswell7a73b802003-06-30 21:59:07 +0000431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445# include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450# include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461# include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_unique_file=""Makefile.config.in""
Reid Spencere9de0912004-08-20 09:03:57 +0000469ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_PTHREAD_MUTEX_LOCK INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H INCLUDE_STDINT_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC95_ROOT USE_SPEC95 SPEC2000_ROOT USE_SPEC2000 POVRAY_ROOT USE_POVRAY UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR 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 +0000470ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000471
472# Initialize some variables set by options.
473ac_init_help=
474ac_init_version=false
475# The variables have the same names as the options, with
476# dashes changed to underlines.
477cache_file=/dev/null
478exec_prefix=NONE
479no_create=
480no_recursion=
481prefix=NONE
482program_prefix=NONE
483program_suffix=NONE
484program_transform_name=s,x,x,
485silent=
486site=
487srcdir=
488verbose=
489x_includes=NONE
490x_libraries=NONE
491
492# Installation directory options.
493# These are left unexpanded so users can "make install exec_prefix=/foo"
494# and all the variables that are supposed to be based on exec_prefix
495# by default will actually change.
496# Use braces instead of parens because sh, perl, etc. also accept them.
497bindir='${exec_prefix}/bin'
498sbindir='${exec_prefix}/sbin'
499libexecdir='${exec_prefix}/libexec'
500datadir='${prefix}/share'
501sysconfdir='${prefix}/etc'
502sharedstatedir='${prefix}/com'
503localstatedir='${prefix}/var'
504libdir='${exec_prefix}/lib'
505includedir='${prefix}/include'
506oldincludedir='/usr/include'
507infodir='${prefix}/info'
508mandir='${prefix}/man'
509
510ac_prev=
511for ac_option
512do
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
516 ac_prev=
517 continue
518 fi
519
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522 # Accept the important Cygnus configure options, so we can diagnose typos.
523
524 case $ac_option in
525
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 ac_prev=bindir ;;
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 bindir=$ac_optarg ;;
530
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
535
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
542
543 --config-cache | -C)
544 cache_file=config.cache ;;
545
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 ac_prev=datadir ;;
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 | --da=*)
550 datadir=$ac_optarg ;;
551
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
560
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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 case $ac_option in
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 *) ac_optarg=yes ;;
571 esac
572 eval "enable_$ac_feature='$ac_optarg'" ;;
573
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
582
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
585 with_gas=yes ;;
586
587 -help | --help | --hel | --he | -h)
588 ac_init_help=long ;;
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
593
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
598
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
605
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 ac_prev=infodir ;;
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
610
611 -libdir | --libdir | --libdi | --libd)
612 ac_prev=libdir ;;
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 libdir=$ac_optarg ;;
615
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
622
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
631
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 ac_prev=mandir ;;
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 mandir=$ac_optarg ;;
636
637 -nfp | --nfp | --nf)
638 # Obsolete; use --without-fp.
639 with_fp=no ;;
640
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
643 no_create=yes ;;
644
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 no_recursion=yes ;;
648
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
657
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 ac_prev=prefix ;;
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 prefix=$ac_optarg ;;
662
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
669
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
676
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
693
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
696 silent=yes ;;
697
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 ac_prev=sbindir ;;
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 | --sbi=* | --sb=*)
702 sbindir=$ac_optarg ;;
703
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
707 | --sha | --sh)
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 | --sha=* | --sh=*)
713 sharedstatedir=$ac_optarg ;;
714
715 -site | --site | --sit)
716 ac_prev=site ;;
717 -site=* | --site=* | --sit=*)
718 site=$ac_optarg ;;
719
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 ac_prev=srcdir ;;
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 srcdir=$ac_optarg ;;
724
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
731
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
736
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 verbose=yes ;;
739
740 -version | --version | --versio | --versi | --vers | -V)
741 ac_init_version=: ;;
742
743 -with-* | --with-*)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 case $ac_option in
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 *) ac_optarg=yes ;;
753 esac
754 eval "with_$ac_package='$ac_optarg'" ;;
755
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
764
765 --x)
766 # Obsolete; use --with-x.
767 with_x=yes ;;
768
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
775
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
782
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
786 ;;
787
788 *=*)
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
796 export $ac_envvar ;;
797
798 *)
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804 ;;
805
806 esac
807done
808
809if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
813fi
814
815# Be sure to have absolute paths.
816for ac_var in exec_prefix prefix
817do
818 eval ac_val=$`echo $ac_var`
819 case $ac_val in
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
823 esac
824done
825
826# Be sure to have absolute paths.
827for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2b51a082004-08-04 00:34:49 +0000828 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000829do
830 eval ac_val=$`echo $ac_var`
831 case $ac_val in
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
835 esac
836done
837
838# There might be people who depend on the old broken behavior: `$host'
839# used to hold the argument of --host etc.
840# FIXME: To remove some day.
841build=$build_alias
842host=$host_alias
843target=$target_alias
844
845# FIXME: To remove some day.
846if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
852 cross_compiling=yes
853 fi
854fi
855
856ac_tool_prefix=
857test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859test "$silent" = yes && exec 6>/dev/null
860
861
862# Find the source files, if location was not specified.
863if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2b51a082004-08-04 00:34:49 +0000868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000872echo X"$0" |
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
877 s/.*/./; q'`
878 srcdir=$ac_confdir
879 if test ! -r $srcdir/$ac_unique_file; then
880 srcdir=..
881 fi
882else
883 ac_srcdir_defaulted=no
884fi
885if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
889 else
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
892 fi
893fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000894(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000897srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898ac_env_build_alias_set=${build_alias+set}
899ac_env_build_alias_value=$build_alias
900ac_cv_env_build_alias_set=${build_alias+set}
901ac_cv_env_build_alias_value=$build_alias
902ac_env_host_alias_set=${host_alias+set}
903ac_env_host_alias_value=$host_alias
904ac_cv_env_host_alias_set=${host_alias+set}
905ac_cv_env_host_alias_value=$host_alias
906ac_env_target_alias_set=${target_alias+set}
907ac_env_target_alias_value=$target_alias
908ac_cv_env_target_alias_set=${target_alias+set}
909ac_cv_env_target_alias_value=$target_alias
910ac_env_CXX_set=${CXX+set}
911ac_env_CXX_value=$CXX
912ac_cv_env_CXX_set=${CXX+set}
913ac_cv_env_CXX_value=$CXX
914ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915ac_env_CXXFLAGS_value=$CXXFLAGS
916ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918ac_env_LDFLAGS_set=${LDFLAGS+set}
919ac_env_LDFLAGS_value=$LDFLAGS
920ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921ac_cv_env_LDFLAGS_value=$LDFLAGS
922ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_env_CPPFLAGS_value=$CPPFLAGS
924ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926ac_env_CC_set=${CC+set}
927ac_env_CC_value=$CC
928ac_cv_env_CC_set=${CC+set}
929ac_cv_env_CC_value=$CC
930ac_env_CFLAGS_set=${CFLAGS+set}
931ac_env_CFLAGS_value=$CFLAGS
932ac_cv_env_CFLAGS_set=${CFLAGS+set}
933ac_cv_env_CFLAGS_value=$CFLAGS
934ac_env_CPP_set=${CPP+set}
935ac_env_CPP_value=$CPP
936ac_cv_env_CPP_set=${CPP+set}
937ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000938ac_env_CXXCPP_set=${CXXCPP+set}
939ac_env_CXXCPP_value=$CXXCPP
940ac_cv_env_CXXCPP_set=${CXXCPP+set}
941ac_cv_env_CXXCPP_value=$CXXCPP
942ac_env_F77_set=${F77+set}
943ac_env_F77_value=$F77
944ac_cv_env_F77_set=${F77+set}
945ac_cv_env_F77_value=$F77
946ac_env_FFLAGS_set=${FFLAGS+set}
947ac_env_FFLAGS_value=$FFLAGS
948ac_cv_env_FFLAGS_set=${FFLAGS+set}
949ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000950
951#
952# Report the --help message.
953#
954if test "$ac_init_help" = "long"; then
955 # Omit some internal or obsolete options to make the list less imposing.
956 # This message is too long to be a string in the A/UX 3.1 sh.
957 cat <<_ACEOF
Reid Spencere9de0912004-08-20 09:03:57 +0000958\`configure' configures LLVM 1.4 to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000959
960Usage: $0 [OPTION]... [VAR=VALUE]...
961
962To assign environment variables (e.g., CC, CFLAGS...), specify them as
963VAR=VALUE. See below for descriptions of some of the useful variables.
964
965Defaults for the options are specified in brackets.
966
967Configuration:
968 -h, --help display this help and exit
969 --help=short display options specific to this package
970 --help=recursive display the short help of all the included packages
971 -V, --version display version information and exit
972 -q, --quiet, --silent do not print \`checking...' messages
973 --cache-file=FILE cache test results in FILE [disabled]
974 -C, --config-cache alias for \`--cache-file=config.cache'
975 -n, --no-create do not create output files
976 --srcdir=DIR find the sources in DIR [configure dir or \`..']
977
978_ACEOF
979
980 cat <<_ACEOF
981Installation directories:
982 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2b51a082004-08-04 00:34:49 +0000983 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2b51a082004-08-04 00:34:49 +0000985 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000986
987By default, \`make install' will install all the files in
988\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
989an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990for instance \`--prefix=\$HOME'.
991
992For better control, use the options below.
993
994Fine tuning of the installation directories:
995 --bindir=DIR user executables [EPREFIX/bin]
996 --sbindir=DIR system admin executables [EPREFIX/sbin]
997 --libexecdir=DIR program executables [EPREFIX/libexec]
998 --datadir=DIR read-only architecture-independent data [PREFIX/share]
999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1002 --libdir=DIR object code libraries [EPREFIX/lib]
1003 --includedir=DIR C header files [PREFIX/include]
1004 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1005 --infodir=DIR info documentation [PREFIX/info]
1006 --mandir=DIR man documentation [PREFIX/man]
1007_ACEOF
1008
1009 cat <<\_ACEOF
1010
1011System types:
1012 --build=BUILD configure for building on BUILD [guessed]
1013 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1014 --target=TARGET configure for building compilers for TARGET [HOST]
1015_ACEOF
1016fi
1017
1018if test -n "$ac_init_help"; then
1019 case $ac_init_help in
Reid Spencere9de0912004-08-20 09:03:57 +00001020 short | recursive ) echo "Configuration of LLVM 1.4:";;
John Criswell7a73b802003-06-30 21:59:07 +00001021 esac
1022 cat <<\_ACEOF
1023
1024Optional Features:
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001027 --enable-shared[=PKGS]
1028 build shared libraries [default=yes]
1029 --enable-static[=PKGS]
1030 build static libraries [default=yes]
1031 --enable-fast-install[=PKGS]
1032 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001033 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001034 --enable-optimized Compile with optimizations enabled (default is NO)
Brian Gaekee773b862004-04-16 17:13:44 +00001035 --enable-spec95=ARG Use spec95 as a benchmark (srcs in DIR)
1036 --enable-spec2000=ARG Use spec2000 as a benchmark (srcs in DIR)
1037 --enable-povray=ARG Use povray as a benchmark (srcs in DIR)
John Criswell7a73b802003-06-30 21:59:07 +00001038 --enable-precompiled_bytecode
1039 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001040 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001041 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001042
1043Optional Packages:
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1048 both]
1049 --with-tags[=TAGS]
1050 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001051 --with-llvmgccdir Location of LLVM GCC front-end
1052 --with-bcrepos Location of Bytecode Repository
1053 --with-papi Location of PAPI
John Criswell7a73b802003-06-30 21:59:07 +00001054
1055Some influential environment variables:
1056 CXX C++ compiler command
1057 CXXFLAGS C++ compiler flags
1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1059 nonstandard directory <lib dir>
1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061 headers in a nonstandard directory <include dir>
1062 CC C compiler command
1063 CFLAGS C compiler flags
1064 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001065 CXXCPP C++ preprocessor
1066 F77 Fortran 77 compiler command
1067 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001068
1069Use these variables to override the choices made by `configure' or to help
1070it to find libraries and programs with nonstandard names/locations.
1071
1072Report bugs to <llvmbugs@cs.uiuc.edu>.
1073_ACEOF
1074fi
1075
1076if test "$ac_init_help" = "recursive"; then
1077 # If there are subdirs, report their specific --help.
1078 ac_popdir=`pwd`
1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080 test -d $ac_dir || continue
1081 ac_builddir=.
1082
1083if test "$ac_dir" != .; then
1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085 # A "../" for each directory in $ac_dir_suffix.
1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087else
1088 ac_dir_suffix= ac_top_builddir=
1089fi
1090
1091case $srcdir in
1092 .) # No --srcdir option. We are building in place.
1093 ac_srcdir=.
1094 if test -z "$ac_top_builddir"; then
1095 ac_top_srcdir=.
1096 else
1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098 fi ;;
1099 [\\/]* | ?:[\\/]* ) # Absolute path.
1100 ac_srcdir=$srcdir$ac_dir_suffix;
1101 ac_top_srcdir=$srcdir ;;
1102 *) # Relative path.
1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105esac
Reid Spencer2b51a082004-08-04 00:34:49 +00001106
1107# Do not use `cd foo && pwd` to compute absolute paths, because
1108# the directories may not exist.
1109case `pwd` in
1110.) ac_abs_builddir="$ac_dir";;
1111*)
1112 case "$ac_dir" in
1113 .) ac_abs_builddir=`pwd`;;
1114 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116 esac;;
1117esac
1118case $ac_abs_builddir in
1119.) ac_abs_top_builddir=${ac_top_builddir}.;;
1120*)
1121 case ${ac_top_builddir}. in
1122 .) ac_abs_top_builddir=$ac_abs_builddir;;
1123 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125 esac;;
1126esac
1127case $ac_abs_builddir in
1128.) ac_abs_srcdir=$ac_srcdir;;
1129*)
1130 case $ac_srcdir in
1131 .) ac_abs_srcdir=$ac_abs_builddir;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134 esac;;
1135esac
1136case $ac_abs_builddir in
1137.) ac_abs_top_srcdir=$ac_top_srcdir;;
1138*)
1139 case $ac_top_srcdir in
1140 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143 esac;;
1144esac
John Criswell7a73b802003-06-30 21:59:07 +00001145
1146 cd $ac_dir
1147 # Check for guested configure; otherwise get Cygnus style configure.
1148 if test -f $ac_srcdir/configure.gnu; then
1149 echo
1150 $SHELL $ac_srcdir/configure.gnu --help=recursive
1151 elif test -f $ac_srcdir/configure; then
1152 echo
1153 $SHELL $ac_srcdir/configure --help=recursive
1154 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2b51a082004-08-04 00:34:49 +00001155 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001156 echo
1157 $ac_configure --help
1158 else
1159 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160 fi
1161 cd $ac_popdir
1162 done
1163fi
1164
1165test -n "$ac_init_help" && exit 0
1166if $ac_init_version; then
1167 cat <<\_ACEOF
Reid Spencere9de0912004-08-20 09:03:57 +00001168LLVM configure 1.4
Reid Spencer2b51a082004-08-04 00:34:49 +00001169generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001170
Reid Spencer2b51a082004-08-04 00:34:49 +00001171Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001172This configure script is free software; the Free Software Foundation
1173gives unlimited permission to copy, distribute and modify it.
1174_ACEOF
1175 exit 0
1176fi
1177exec 5>config.log
1178cat >&5 <<_ACEOF
1179This file contains any messages produced by compilers while
1180running configure, to aid debugging if configure makes a mistake.
1181
Reid Spencere9de0912004-08-20 09:03:57 +00001182It was created by LLVM $as_me 1.4, which was
Reid Spencer2b51a082004-08-04 00:34:49 +00001183generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001184
1185 $ $0 $@
1186
1187_ACEOF
1188{
1189cat <<_ASUNAME
1190## --------- ##
1191## Platform. ##
1192## --------- ##
1193
1194hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198uname -v = `(uname -v) 2>/dev/null || echo unknown`
1199
1200/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1202
1203/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1204/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1205/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1207/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1208/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1209/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1210
1211_ASUNAME
1212
1213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1214for as_dir in $PATH
1215do
1216 IFS=$as_save_IFS
1217 test -z "$as_dir" && as_dir=.
1218 echo "PATH: $as_dir"
1219done
1220
1221} >&5
1222
1223cat >&5 <<_ACEOF
1224
1225
1226## ----------- ##
1227## Core tests. ##
1228## ----------- ##
1229
1230_ACEOF
1231
1232
1233# Keep a trace of the command line.
1234# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001235# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001236# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001237# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001238ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001239ac_configure_args0=
1240ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001241ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001242ac_must_keep_next=false
1243for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001244do
John Criswell0c38eaf2003-09-10 15:17:25 +00001245 for ac_arg
1246 do
1247 case $ac_arg in
1248 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250 | -silent | --silent | --silen | --sile | --sil)
1251 continue ;;
1252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1254 esac
1255 case $ac_pass in
1256 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257 2)
1258 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259 if test $ac_must_keep_next = true; then
Reid Spencer2b51a082004-08-04 00:34:49 +00001260 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001261 else
Reid Spencer2b51a082004-08-04 00:34:49 +00001262 case $ac_arg in
1263 *=* | --config-cache | -C | -disable-* | --disable-* \
1264 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266 | -with-* | --with-* | -without-* | --without-* | --x)
1267 case "$ac_configure_args0 " in
1268 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1269 esac
1270 ;;
1271 -* ) ac_must_keep_next=true ;;
1272 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001273 fi
1274 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275 # Get rid of the leading space.
1276 ac_sep=" "
1277 ;;
1278 esac
1279 done
John Criswell7a73b802003-06-30 21:59:07 +00001280done
John Criswell0c38eaf2003-09-10 15:17:25 +00001281$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001283
1284# When interrupted or exit'd, cleanup temporary files, and complete
1285# config.log. We remove comments because anyway the quotes in there
1286# would cause problems or look ugly.
1287# WARNING: Be sure not to use single quotes in there, as some shells,
1288# such as our DU 5.0 friend, will then `close' the trap.
1289trap 'exit_status=$?
1290 # Save into config.log some information that might help in debugging.
1291 {
1292 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001293
John Criswell7a73b802003-06-30 21:59:07 +00001294 cat <<\_ASBOX
1295## ---------------- ##
1296## Cache variables. ##
1297## ---------------- ##
1298_ASBOX
1299 echo
1300 # The following way of writing the cache mishandles newlines in values,
1301{
1302 (set) 2>&1 |
1303 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1304 *ac_space=\ *)
1305 sed -n \
Reid Spencer2b51a082004-08-04 00:34:49 +00001306 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001308 ;;
1309 *)
1310 sed -n \
Reid Spencer2b51a082004-08-04 00:34:49 +00001311 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001312 ;;
1313 esac;
1314}
1315 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001316
1317 cat <<\_ASBOX
1318## ----------------- ##
1319## Output variables. ##
1320## ----------------- ##
1321_ASBOX
1322 echo
1323 for ac_var in $ac_subst_vars
1324 do
1325 eval ac_val=$`echo $ac_var`
1326 echo "$ac_var='"'"'$ac_val'"'"'"
1327 done | sort
1328 echo
1329
1330 if test -n "$ac_subst_files"; then
1331 cat <<\_ASBOX
1332## ------------- ##
1333## Output files. ##
1334## ------------- ##
1335_ASBOX
1336 echo
1337 for ac_var in $ac_subst_files
1338 do
1339 eval ac_val=$`echo $ac_var`
Reid Spencer2b51a082004-08-04 00:34:49 +00001340 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001341 done | sort
1342 echo
1343 fi
1344
John Criswell7a73b802003-06-30 21:59:07 +00001345 if test -s confdefs.h; then
1346 cat <<\_ASBOX
1347## ----------- ##
1348## confdefs.h. ##
1349## ----------- ##
1350_ASBOX
1351 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001352 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001353 echo
1354 fi
1355 test "$ac_signal" != 0 &&
1356 echo "$as_me: caught signal $ac_signal"
1357 echo "$as_me: exit $exit_status"
1358 } >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00001359 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001360 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1361 exit $exit_status
1362 ' 0
1363for ac_signal in 1 2 13 15; do
1364 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1365done
1366ac_signal=0
1367
1368# confdefs.h avoids OS command line length limits that DEFS can exceed.
1369rm -rf conftest* confdefs.h
1370# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1371echo >confdefs.h
1372
1373# Predefined preprocessor variables.
1374
1375cat >>confdefs.h <<_ACEOF
1376#define PACKAGE_NAME "$PACKAGE_NAME"
1377_ACEOF
1378
1379
1380cat >>confdefs.h <<_ACEOF
1381#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1382_ACEOF
1383
1384
1385cat >>confdefs.h <<_ACEOF
1386#define PACKAGE_VERSION "$PACKAGE_VERSION"
1387_ACEOF
1388
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PACKAGE_STRING "$PACKAGE_STRING"
1392_ACEOF
1393
1394
1395cat >>confdefs.h <<_ACEOF
1396#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1397_ACEOF
1398
1399
1400# Let the site file select an alternate cache file if it wants to.
1401# Prefer explicitly selected file to automatically selected ones.
1402if test -z "$CONFIG_SITE"; then
1403 if test "x$prefix" != xNONE; then
1404 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1405 else
1406 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1407 fi
1408fi
1409for ac_site_file in $CONFIG_SITE; do
1410 if test -r "$ac_site_file"; then
1411 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412echo "$as_me: loading site script $ac_site_file" >&6;}
1413 sed 's/^/| /' "$ac_site_file" >&5
1414 . "$ac_site_file"
1415 fi
1416done
1417
1418if test -r "$cache_file"; then
1419 # Some versions of bash will fail to source /dev/null (special
1420 # files actually), so we avoid doing that.
1421 if test -f "$cache_file"; then
1422 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423echo "$as_me: loading cache $cache_file" >&6;}
1424 case $cache_file in
1425 [\\/]* | ?:[\\/]* ) . $cache_file;;
1426 *) . ./$cache_file;;
1427 esac
1428 fi
1429else
1430 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431echo "$as_me: creating cache $cache_file" >&6;}
1432 >$cache_file
1433fi
1434
1435# Check that the precious variables saved in the cache have kept the same
1436# value.
1437ac_cache_corrupted=false
1438for ac_var in `(set) 2>&1 |
Reid Spencer2b51a082004-08-04 00:34:49 +00001439 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001440 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441 eval ac_new_set=\$ac_env_${ac_var}_set
1442 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443 eval ac_new_val="\$ac_env_${ac_var}_value"
1444 case $ac_old_set,$ac_new_set in
1445 set,)
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1449 ,set)
1450 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452 ac_cache_corrupted=: ;;
1453 ,);;
1454 *)
1455 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2b51a082004-08-04 00:34:49 +00001456 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001457echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +00001458 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001459echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +00001460 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001461echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +00001462 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001463 fi;;
1464 esac
1465 # Pass precious variables to config.status.
1466 if test "$ac_new_set" = set; then
1467 case $ac_new_val in
1468 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470 *) ac_arg=$ac_var=$ac_new_val ;;
1471 esac
1472 case " $ac_configure_args " in
1473 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1474 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1475 esac
1476 fi
1477done
1478if $ac_cache_corrupted; then
1479 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483 { (exit 1); exit 1; }; }
1484fi
1485
1486ac_ext=c
1487ac_cpp='$CPP $CPPFLAGS'
1488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490ac_compiler_gnu=$ac_cv_c_compiler_gnu
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
John Criswell0c38eaf2003-09-10 15:17:25 +00001518
John Criswell7a73b802003-06-30 21:59:07 +00001519ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001520for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001521 if test -f $ac_dir/install-sh; then
1522 ac_aux_dir=$ac_dir
1523 ac_install_sh="$ac_aux_dir/install-sh -c"
1524 break
1525 elif test -f $ac_dir/install.sh; then
1526 ac_aux_dir=$ac_dir
1527 ac_install_sh="$ac_aux_dir/install.sh -c"
1528 break
1529 elif test -f $ac_dir/shtool; then
1530 ac_aux_dir=$ac_dir
1531 ac_install_sh="$ac_aux_dir/shtool install -c"
1532 break
1533 fi
1534done
1535if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001536 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1537echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001538 { (exit 1); exit 1; }; }
1539fi
1540ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1543
John Criswell392aaa32003-07-22 19:18:09 +00001544
John Criswell1b824322003-09-15 17:19:42 +00001545if test ${srcdir} != "."
John Criswell93e1c722003-09-15 17:04:06 +00001546then
John Criswell1b824322003-09-15 17:19:42 +00001547 if test -f ${srcdir}/include/Config/config.h
1548 then
1549 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001550echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1551 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001552 fi
John Criswell93e1c722003-09-15 17:04:06 +00001553fi
1554
John Criswell33a911a2003-11-25 20:36:46 +00001555for i in `ls ${srcdir}/projects`
1556do
1557 if test ${i} != "CVS"
1558 then
John Criswell2f2741b2003-12-12 20:15:23 +00001559 if test -f ${srcdir}/projects/${i}/configure
John Criswell33a911a2003-11-25 20:36:46 +00001560 then
John Criswell7ec78aa2003-10-16 01:49:00 +00001561
1562
John Criswell33a911a2003-11-25 20:36:46 +00001563subdirs="$subdirs projects/${i}"
John Criswell7ec78aa2003-10-16 01:49:00 +00001564
John Criswell33a911a2003-11-25 20:36:46 +00001565 fi
1566 fi
1567done
John Criswell559a6c12003-09-30 16:31:48 +00001568
John Criswell0c38eaf2003-09-10 15:17:25 +00001569 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001570
John Criswelldc76e322004-07-23 15:40:57 +00001571
1572 ac_config_files="$ac_config_files Makefile.config include/Support/DataTypes.h include/Support/ThreadSupport.h include/Support/hash_map include/Support/hash_set include/Support/iterator"
1573
1574
John Criswell0c38eaf2003-09-10 15:17:25 +00001575 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001576
1577
John Criswell0c38eaf2003-09-10 15:17:25 +00001578 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001579
1580
Reid Spencer5f285392004-08-24 16:32:21 +00001581 ac_config_commands="$ac_config_commands examples/Makefile"
1582
1583
John Criswell0c38eaf2003-09-10 15:17:25 +00001584 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001585
1586
John Criswell0c38eaf2003-09-10 15:17:25 +00001587 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001588
1589
John Criswell0c38eaf2003-09-10 15:17:25 +00001590 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001591
1592
John Criswell0c38eaf2003-09-10 15:17:25 +00001593 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001594
1595
John Criswellf424d742003-10-07 21:13:47 +00001596 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1597
1598
1599 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001600
1601
John Criswell0c38eaf2003-09-10 15:17:25 +00001602 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001603
1604
John Criswell0c38eaf2003-09-10 15:17:25 +00001605 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001606
1607
John Criswell8a54a1e2004-06-22 21:35:10 +00001608 ac_config_commands="$ac_config_commands test/Programs/Makefile.tests"
1609
1610
John Criswell0c38eaf2003-09-10 15:17:25 +00001611 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001612
1613
John Criswell0c38eaf2003-09-10 15:17:25 +00001614 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001615
1616
John Criswell0c38eaf2003-09-10 15:17:25 +00001617 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001618
1619
John Criswell0c38eaf2003-09-10 15:17:25 +00001620 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001621
1622
John Criswell0c38eaf2003-09-10 15:17:25 +00001623 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001624
1625
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001627
1628
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001630
1631
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001633
1634
John Criswell0c38eaf2003-09-10 15:17:25 +00001635 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001636
1637
John Criswell0c38eaf2003-09-10 15:17:25 +00001638 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001639
1640
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001642
1643
John Criswell0c38eaf2003-09-10 15:17:25 +00001644 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001645
1646
John Criswell878be7d2004-02-24 21:43:38 +00001647 ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile"
1648
1649
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001651
1652
John Criswell0c38eaf2003-09-10 15:17:25 +00001653 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001654
1655
John Criswell613758d2003-09-11 18:03:50 +00001656 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1657
1658
Alkis Evlogimenos271143f2004-02-26 04:14:10 +00001659 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000"
1660
1661
John Criswellcf2e9f72004-02-10 22:36:35 +00001662 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1663
1664
John Criswell0c38eaf2003-09-10 15:17:25 +00001665 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001666
1667
John Criswell0c38eaf2003-09-10 15:17:25 +00001668 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001669
1670
Misha Brukman811ce9f2003-11-12 22:16:51 +00001671 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1672
1673
1674 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1675
1676
1677 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1678
1679
1680 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1681
1682
1683 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1684
1685
1686 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1687
1688
1689 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1690
1691
1692 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1693
1694
1695 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1696
1697
1698 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1699
1700
1701 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1702
1703
1704 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1705
1706
1707 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1708
1709
John Criswell0c38eaf2003-09-10 15:17:25 +00001710 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001711
1712
John Criswell0c38eaf2003-09-10 15:17:25 +00001713 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001714
1715
Alkis Evlogimenos271143f2004-02-26 04:14:10 +00001716 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1717
1718
John Criswell0c38eaf2003-09-10 15:17:25 +00001719 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001720
1721
Brian Gaekec45be042003-10-07 06:01:34 +00001722 ac_config_commands="$ac_config_commands utils/Makefile"
1723
1724
John Criswell0c38eaf2003-09-10 15:17:25 +00001725 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001726
1727
John Criswell392aaa32003-07-22 19:18:09 +00001728
John Criswell7a73b802003-06-30 21:59:07 +00001729# Find a good install program. We prefer a C program (faster),
1730# so one script is as good as another. But avoid the broken or
1731# incompatible versions:
1732# SysV /etc/install, /usr/sbin/install
1733# SunOS /usr/etc/install
1734# IRIX /sbin/install
1735# AIX /bin/install
1736# AmigaOS /C/install, which installs bootblocks on floppy discs
1737# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1738# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1739# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Reid Spencer2b51a082004-08-04 00:34:49 +00001740# OS/2's system install, which has a completely different semantic
John Criswell7a73b802003-06-30 21:59:07 +00001741# ./install, which can be erroneously created by make from ./install.sh.
1742echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1743echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1744if test -z "$INSTALL"; then
1745if test "${ac_cv_path_install+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1747else
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749for as_dir in $PATH
1750do
1751 IFS=$as_save_IFS
1752 test -z "$as_dir" && as_dir=.
1753 # Account for people who put trailing slashes in PATH elements.
1754case $as_dir/ in
1755 ./ | .// | /cC/* | \
1756 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Reid Spencer2b51a082004-08-04 00:34:49 +00001757 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
John Criswell7a73b802003-06-30 21:59:07 +00001758 /usr/ucb/* ) ;;
1759 *)
1760 # OSF1 and SCO ODT 3.0 have their own names for install.
1761 # Don't use installbsd from OSF since it installs stuff as root
1762 # by default.
1763 for ac_prog in ginstall scoinst install; do
1764 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencer2b51a082004-08-04 00:34:49 +00001765 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1766 if test $ac_prog = install &&
1767 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1768 # AIX install. It has an incompatible calling convention.
1769 :
1770 elif test $ac_prog = install &&
1771 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1772 # program-specific install script used by HP pwplus--don't use.
1773 :
1774 else
1775 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1776 break 3
1777 fi
1778 fi
John Criswell7a73b802003-06-30 21:59:07 +00001779 done
1780 done
1781 ;;
1782esac
1783done
1784
1785
1786fi
1787 if test "${ac_cv_path_install+set}" = set; then
1788 INSTALL=$ac_cv_path_install
1789 else
1790 # As a last resort, use the slow shell script. We don't cache a
1791 # path for INSTALL within a source directory, because that will
1792 # break other packages using the cache if that directory is
1793 # removed, or if the path is relative.
1794 INSTALL=$ac_install_sh
1795 fi
1796fi
1797echo "$as_me:$LINENO: result: $INSTALL" >&5
1798echo "${ECHO_T}$INSTALL" >&6
1799
1800# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1801# It thinks the first close brace ends the variable substitution.
1802test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1803
1804test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1805
1806test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1807
1808
1809# Make sure we can run config.sub.
1810$ac_config_sub sun4 >/dev/null 2>&1 ||
1811 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1812echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1813 { (exit 1); exit 1; }; }
1814
1815echo "$as_me:$LINENO: checking build system type" >&5
1816echo $ECHO_N "checking build system type... $ECHO_C" >&6
1817if test "${ac_cv_build+set}" = set; then
1818 echo $ECHO_N "(cached) $ECHO_C" >&6
1819else
1820 ac_cv_build_alias=$build_alias
1821test -z "$ac_cv_build_alias" &&
1822 ac_cv_build_alias=`$ac_config_guess`
1823test -z "$ac_cv_build_alias" &&
1824 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1825echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1826 { (exit 1); exit 1; }; }
1827ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1828 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1829echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1830 { (exit 1); exit 1; }; }
1831
1832fi
1833echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1834echo "${ECHO_T}$ac_cv_build" >&6
1835build=$ac_cv_build
1836build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1837build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1838build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1839
1840
1841echo "$as_me:$LINENO: checking host system type" >&5
1842echo $ECHO_N "checking host system type... $ECHO_C" >&6
1843if test "${ac_cv_host+set}" = set; then
1844 echo $ECHO_N "(cached) $ECHO_C" >&6
1845else
1846 ac_cv_host_alias=$host_alias
1847test -z "$ac_cv_host_alias" &&
1848 ac_cv_host_alias=$ac_cv_build_alias
1849ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1850 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1851echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1852 { (exit 1); exit 1; }; }
1853
1854fi
1855echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1856echo "${ECHO_T}$ac_cv_host" >&6
1857host=$ac_cv_host
1858host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1859host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1860host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1861
1862
1863echo "$as_me:$LINENO: checking target system type" >&5
1864echo $ECHO_N "checking target system type... $ECHO_C" >&6
1865if test "${ac_cv_target+set}" = set; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1867else
1868 ac_cv_target_alias=$target_alias
1869test "x$ac_cv_target_alias" = "x" &&
1870 ac_cv_target_alias=$ac_cv_host_alias
1871ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1872 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1873echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1874 { (exit 1); exit 1; }; }
1875
1876fi
1877echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1878echo "${ECHO_T}$ac_cv_target" >&6
1879target=$ac_cv_target
1880target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1881target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1882target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1883
1884
1885# The aliases save the names the user supplied, while $host etc.
1886# will get canonicalized.
1887test -n "$target_alias" &&
1888 test "$program_prefix$program_suffix$program_transform_name" = \
1889 NONENONEs,x,x, &&
1890 program_prefix=${target_alias}-
1891
1892case $build in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001893 *-*-linux*)
1894 OS=Linux
John Criswell7a73b802003-06-30 21:59:07 +00001895
Reid Spencerde8c47f2004-08-29 19:35:28 +00001896 platform_type="Linux"
1897 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1898 then
1899 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001900
Reid Spencerde8c47f2004-08-29 19:35:28 +00001901 fi
1902 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001903 *-*-solaris*)
1904 OS=SunOS
John Criswell7a73b802003-06-30 21:59:07 +00001905
Reid Spencerde8c47f2004-08-29 19:35:28 +00001906 platform_type="SunOS"
1907 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1908 then
1909 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001910
Reid Spencerde8c47f2004-08-29 19:35:28 +00001911 fi
1912 ;;
John Criswelld6621562004-06-07 14:26:24 +00001913 *-*-cygwin*)
1914 OS=Cygwin
1915
Reid Spencerde8c47f2004-08-29 19:35:28 +00001916 platform_type="Cygwin"
1917 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001918 *-*-darwin*)
1919 OS=Darwin
1920
Reid Spencerde8c47f2004-08-29 19:35:28 +00001921 platform_type="Darwin"
1922 ;;
Misha Brukmandb84a092004-06-22 15:35:32 +00001923 *-*-aix*)
1924 OS=AIX
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001925
Reid Spencerde8c47f2004-08-29 19:35:28 +00001926 platform_type="AIX"
1927 ;;
1928 *-*-win32*)
1929 OS=Win32
John Criswell7a73b802003-06-30 21:59:07 +00001930
Reid Spencerde8c47f2004-08-29 19:35:28 +00001931 platform_type="Win32"
1932 ;;
1933 *)
1934 OS=Unknown
1935
1936 platform_type="Unknown"
1937 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001938esac
1939
Reid Spencerde8c47f2004-08-29 19:35:28 +00001940 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1941
1942
John Criswell7a73b802003-06-30 21:59:07 +00001943case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001944 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
John Criswell7a73b802003-06-30 21:59:07 +00001945
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001946 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001947esac
1948
John Criswell76595452003-07-01 22:07:39 +00001949case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001950 i*86-*) ARCH=x86
John Criswell76595452003-07-01 22:07:39 +00001951
1952 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001953 sparc*-*) ARCH=Sparc
1954
1955 ;;
1956 powerpc*-*) ARCH=PowerPC
1957
1958 ;;
1959 *) ARCH=Unknown
John Criswell76595452003-07-01 22:07:39 +00001960
1961 ;;
1962esac
1963
John Criswell7a73b802003-06-30 21:59:07 +00001964ac_ext=cc
1965ac_cpp='$CXXCPP $CPPFLAGS'
1966ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1967ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1968ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1969if test -n "$ac_tool_prefix"; then
1970 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1971 do
1972 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1973set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1974echo "$as_me:$LINENO: checking for $ac_word" >&5
1975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976if test "${ac_cv_prog_CXX+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1978else
1979 if test -n "$CXX"; then
1980 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1981else
1982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983for as_dir in $PATH
1984do
1985 IFS=$as_save_IFS
1986 test -z "$as_dir" && as_dir=.
1987 for ac_exec_ext in '' $ac_executable_extensions; do
1988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1989 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991 break 2
1992 fi
1993done
1994done
1995
1996fi
1997fi
1998CXX=$ac_cv_prog_CXX
1999if test -n "$CXX"; then
2000 echo "$as_me:$LINENO: result: $CXX" >&5
2001echo "${ECHO_T}$CXX" >&6
2002else
2003 echo "$as_me:$LINENO: result: no" >&5
2004echo "${ECHO_T}no" >&6
2005fi
2006
2007 test -n "$CXX" && break
2008 done
2009fi
2010if test -z "$CXX"; then
2011 ac_ct_CXX=$CXX
2012 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2013do
2014 # Extract the first word of "$ac_prog", so it can be a program name with args.
2015set dummy $ac_prog; ac_word=$2
2016echo "$as_me:$LINENO: checking for $ac_word" >&5
2017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2018if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2020else
2021 if test -n "$ac_ct_CXX"; then
2022 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2023else
2024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025for as_dir in $PATH
2026do
2027 IFS=$as_save_IFS
2028 test -z "$as_dir" && as_dir=.
2029 for ac_exec_ext in '' $ac_executable_extensions; do
2030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2031 ac_cv_prog_ac_ct_CXX="$ac_prog"
2032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033 break 2
2034 fi
2035done
2036done
2037
2038fi
2039fi
2040ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2041if test -n "$ac_ct_CXX"; then
2042 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2043echo "${ECHO_T}$ac_ct_CXX" >&6
2044else
2045 echo "$as_me:$LINENO: result: no" >&5
2046echo "${ECHO_T}no" >&6
2047fi
2048
2049 test -n "$ac_ct_CXX" && break
2050done
2051test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2052
2053 CXX=$ac_ct_CXX
2054fi
2055
2056
2057# Provide some information about the compiler.
2058echo "$as_me:$LINENO:" \
2059 "checking for C++ compiler version" >&5
2060ac_compiler=`set X $ac_compile; echo $2`
2061{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2062 (eval $ac_compiler --version </dev/null >&5) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }
2066{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2067 (eval $ac_compiler -v </dev/null >&5) 2>&5
2068 ac_status=$?
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }
2071{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2072 (eval $ac_compiler -V </dev/null >&5) 2>&5
2073 ac_status=$?
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }
2076
2077cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002078/* confdefs.h. */
2079_ACEOF
2080cat confdefs.h >>conftest.$ac_ext
2081cat >>conftest.$ac_ext <<_ACEOF
2082/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002083
John Criswell7a73b802003-06-30 21:59:07 +00002084int
2085main ()
2086{
2087
2088 ;
2089 return 0;
2090}
2091_ACEOF
2092ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002093ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002094# Try to create an executable without -o first, disregard a.out.
2095# It will help us diagnose broken compilers, and finding out an intuition
2096# of exeext.
Reid Spencer2b51a082004-08-04 00:34:49 +00002097echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2098echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002099ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2100if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2101 (eval $ac_link_default) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; then
2105 # Find the output, starting from the most likely. This scheme is
2106# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2107# resort.
2108
2109# Be careful to initialize this variable, since it used to be cached.
2110# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2111ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002112# b.out is created by i960 compilers.
2113for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2114do
2115 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002116 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2b51a082004-08-04 00:34:49 +00002118 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002119 conftest.$ac_ext )
Reid Spencer2b51a082004-08-04 00:34:49 +00002120 # This is the source file.
2121 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002122 [ab].out )
Reid Spencer2b51a082004-08-04 00:34:49 +00002123 # We found the default executable, but exeext='' is most
2124 # certainly right.
2125 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002126 *.* )
Reid Spencer2b51a082004-08-04 00:34:49 +00002127 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2128 # FIXME: I believe we export ac_cv_exeext for Libtool,
2129 # but it would be cool to find out if it's true. Does anybody
2130 # maintain Libtool? --akim.
2131 export ac_cv_exeext
2132 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002133 * )
Reid Spencer2b51a082004-08-04 00:34:49 +00002134 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002135 esac
2136done
2137else
2138 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002139sed 's/^/| /' conftest.$ac_ext >&5
2140
2141{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2142See \`config.log' for more details." >&5
2143echo "$as_me: error: C++ compiler cannot create executables
2144See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002145 { (exit 77); exit 77; }; }
2146fi
2147
2148ac_exeext=$ac_cv_exeext
2149echo "$as_me:$LINENO: result: $ac_file" >&5
2150echo "${ECHO_T}$ac_file" >&6
2151
2152# Check the compiler produces executables we can run. If not, either
2153# the compiler is broken, or we cross compile.
2154echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2155echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2156# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2157# If not cross compiling, check that we can run a simple program.
2158if test "$cross_compiling" != yes; then
2159 if { ac_try='./$ac_file'
2160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161 (eval $ac_try) 2>&5
2162 ac_status=$?
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }; }; then
2165 cross_compiling=no
2166 else
2167 if test "$cross_compiling" = maybe; then
2168 cross_compiling=yes
2169 else
2170 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002171If you meant to cross compile, use \`--host'.
2172See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002173echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002174If you meant to cross compile, use \`--host'.
2175See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002176 { (exit 1); exit 1; }; }
2177 fi
2178 fi
2179fi
2180echo "$as_me:$LINENO: result: yes" >&5
2181echo "${ECHO_T}yes" >&6
2182
John Criswell0c38eaf2003-09-10 15:17:25 +00002183rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002184ac_clean_files=$ac_clean_files_save
2185# Check the compiler produces executables we can run. If not, either
2186# the compiler is broken, or we cross compile.
2187echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2188echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2189echo "$as_me:$LINENO: result: $cross_compiling" >&5
2190echo "${ECHO_T}$cross_compiling" >&6
2191
2192echo "$as_me:$LINENO: checking for suffix of executables" >&5
2193echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2195 (eval $ac_link) 2>&5
2196 ac_status=$?
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; then
2199 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2200# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2201# work properly (i.e., refer to `conftest.exe'), while it won't with
2202# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002203for ac_file in conftest.exe conftest conftest.*; do
2204 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002205 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002207 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2b51a082004-08-04 00:34:49 +00002208 export ac_cv_exeext
2209 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002210 * ) break;;
2211 esac
2212done
2213else
John Criswell0c38eaf2003-09-10 15:17:25 +00002214 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2215See \`config.log' for more details." >&5
2216echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2217See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002218 { (exit 1); exit 1; }; }
2219fi
2220
2221rm -f conftest$ac_cv_exeext
2222echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2223echo "${ECHO_T}$ac_cv_exeext" >&6
2224
2225rm -f conftest.$ac_ext
2226EXEEXT=$ac_cv_exeext
2227ac_exeext=$EXEEXT
2228echo "$as_me:$LINENO: checking for suffix of object files" >&5
2229echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2230if test "${ac_cv_objext+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232else
2233 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002234/* confdefs.h. */
2235_ACEOF
2236cat confdefs.h >>conftest.$ac_ext
2237cat >>conftest.$ac_ext <<_ACEOF
2238/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002239
John Criswell7a73b802003-06-30 21:59:07 +00002240int
2241main ()
2242{
2243
2244 ;
2245 return 0;
2246}
2247_ACEOF
2248rm -f conftest.o conftest.obj
2249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>&5
2251 ac_status=$?
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; then
2254 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2255 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002257 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2258 break;;
2259 esac
2260done
2261else
2262 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002263sed 's/^/| /' conftest.$ac_ext >&5
2264
2265{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2266See \`config.log' for more details." >&5
2267echo "$as_me: error: cannot compute suffix of object files: cannot compile
2268See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002269 { (exit 1); exit 1; }; }
2270fi
2271
2272rm -f conftest.$ac_cv_objext conftest.$ac_ext
2273fi
2274echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2275echo "${ECHO_T}$ac_cv_objext" >&6
2276OBJEXT=$ac_cv_objext
2277ac_objext=$OBJEXT
2278echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2279echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2280if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2282else
2283 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002284/* confdefs.h. */
2285_ACEOF
2286cat confdefs.h >>conftest.$ac_ext
2287cat >>conftest.$ac_ext <<_ACEOF
2288/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002289
John Criswell7a73b802003-06-30 21:59:07 +00002290int
2291main ()
2292{
2293#ifndef __GNUC__
2294 choke me
2295#endif
2296
2297 ;
2298 return 0;
2299}
2300_ACEOF
2301rm -f conftest.$ac_objext
2302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002303 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002304 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002305 grep -v '^ *+' conftest.er1 >conftest.err
2306 rm -f conftest.er1
2307 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002310 { ac_try='test -z "$ac_cxx_werror_flag"
2311 || test ! -s conftest.err'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313 (eval $ac_try) 2>&5
2314 ac_status=$?
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; } &&
2317 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 (eval $ac_try) 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; }; then
2323 ac_compiler_gnu=yes
2324else
2325 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002326sed 's/^/| /' conftest.$ac_ext >&5
2327
John Criswell7a73b802003-06-30 21:59:07 +00002328ac_compiler_gnu=no
2329fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002331ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2332
2333fi
2334echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2335echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2336GXX=`test $ac_compiler_gnu = yes && echo yes`
2337ac_test_CXXFLAGS=${CXXFLAGS+set}
2338ac_save_CXXFLAGS=$CXXFLAGS
2339CXXFLAGS="-g"
2340echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2341echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2342if test "${ac_cv_prog_cxx_g+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2344else
2345 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002346/* confdefs.h. */
2347_ACEOF
2348cat confdefs.h >>conftest.$ac_ext
2349cat >>conftest.$ac_ext <<_ACEOF
2350/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002351
John Criswell7a73b802003-06-30 21:59:07 +00002352int
2353main ()
2354{
2355
2356 ;
2357 return 0;
2358}
2359_ACEOF
2360rm -f conftest.$ac_objext
2361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002362 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002363 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002364 grep -v '^ *+' conftest.er1 >conftest.err
2365 rm -f conftest.er1
2366 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002369 { ac_try='test -z "$ac_cxx_werror_flag"
2370 || test ! -s conftest.err'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 (eval $ac_try) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; } &&
2376 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378 (eval $ac_try) 2>&5
2379 ac_status=$?
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; }; then
2382 ac_cv_prog_cxx_g=yes
2383else
2384 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002385sed 's/^/| /' conftest.$ac_ext >&5
2386
John Criswell7a73b802003-06-30 21:59:07 +00002387ac_cv_prog_cxx_g=no
2388fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002390fi
2391echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2392echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2393if test "$ac_test_CXXFLAGS" = set; then
2394 CXXFLAGS=$ac_save_CXXFLAGS
2395elif test $ac_cv_prog_cxx_g = yes; then
2396 if test "$GXX" = yes; then
2397 CXXFLAGS="-g -O2"
2398 else
2399 CXXFLAGS="-g"
2400 fi
2401else
2402 if test "$GXX" = yes; then
2403 CXXFLAGS="-O2"
2404 else
2405 CXXFLAGS=
2406 fi
2407fi
2408for ac_declaration in \
Reid Spencer2b51a082004-08-04 00:34:49 +00002409 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002410 'extern "C" void std::exit (int) throw (); using std::exit;' \
2411 'extern "C" void std::exit (int); using std::exit;' \
2412 'extern "C" void exit (int) throw ();' \
2413 'extern "C" void exit (int);' \
2414 'void exit (int);'
2415do
2416 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002417/* confdefs.h. */
2418_ACEOF
2419cat confdefs.h >>conftest.$ac_ext
2420cat >>conftest.$ac_ext <<_ACEOF
2421/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002422$ac_declaration
Reid Spencer2b51a082004-08-04 00:34:49 +00002423#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002424int
2425main ()
2426{
2427exit (42);
2428 ;
2429 return 0;
2430}
2431_ACEOF
2432rm -f conftest.$ac_objext
2433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002434 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002435 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002436 grep -v '^ *+' conftest.er1 >conftest.err
2437 rm -f conftest.er1
2438 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002441 { ac_try='test -z "$ac_cxx_werror_flag"
2442 || test ! -s conftest.err'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 (eval $ac_try) 2>&5
2445 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; } &&
2448 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 (eval $ac_try) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
2454 :
2455else
2456 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002457sed 's/^/| /' conftest.$ac_ext >&5
2458
John Criswell7a73b802003-06-30 21:59:07 +00002459continue
2460fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002462 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002463/* confdefs.h. */
2464_ACEOF
2465cat confdefs.h >>conftest.$ac_ext
2466cat >>conftest.$ac_ext <<_ACEOF
2467/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002468$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002469int
2470main ()
2471{
2472exit (42);
2473 ;
2474 return 0;
2475}
2476_ACEOF
2477rm -f conftest.$ac_objext
2478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002479 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002480 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002481 grep -v '^ *+' conftest.er1 >conftest.err
2482 rm -f conftest.er1
2483 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002486 { ac_try='test -z "$ac_cxx_werror_flag"
2487 || test ! -s conftest.err'
2488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2489 (eval $ac_try) 2>&5
2490 ac_status=$?
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; } &&
2493 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2495 (eval $ac_try) 2>&5
2496 ac_status=$?
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; }; then
2499 break
2500else
2501 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002502sed 's/^/| /' conftest.$ac_ext >&5
2503
John Criswell7a73b802003-06-30 21:59:07 +00002504fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002506done
2507rm -f conftest*
2508if test -n "$ac_declaration"; then
2509 echo '#ifdef __cplusplus' >>confdefs.h
2510 echo $ac_declaration >>confdefs.h
2511 echo '#endif' >>confdefs.h
2512fi
2513
2514ac_ext=c
2515ac_cpp='$CPP $CPPFLAGS'
2516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518ac_compiler_gnu=$ac_cv_c_compiler_gnu
2519
2520ac_ext=c
2521ac_cpp='$CPP $CPPFLAGS'
2522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2524ac_compiler_gnu=$ac_cv_c_compiler_gnu
2525if test -n "$ac_tool_prefix"; then
2526 for ac_prog in gcc
2527 do
2528 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2529set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2530echo "$as_me:$LINENO: checking for $ac_word" >&5
2531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2532if test "${ac_cv_prog_CC+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2534else
2535 if test -n "$CC"; then
2536 ac_cv_prog_CC="$CC" # Let the user override the test.
2537else
2538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539for as_dir in $PATH
2540do
2541 IFS=$as_save_IFS
2542 test -z "$as_dir" && as_dir=.
2543 for ac_exec_ext in '' $ac_executable_extensions; do
2544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2545 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 break 2
2548 fi
2549done
2550done
2551
2552fi
2553fi
2554CC=$ac_cv_prog_CC
2555if test -n "$CC"; then
2556 echo "$as_me:$LINENO: result: $CC" >&5
2557echo "${ECHO_T}$CC" >&6
2558else
2559 echo "$as_me:$LINENO: result: no" >&5
2560echo "${ECHO_T}no" >&6
2561fi
2562
2563 test -n "$CC" && break
2564 done
2565fi
2566if test -z "$CC"; then
2567 ac_ct_CC=$CC
2568 for ac_prog in gcc
2569do
2570 # Extract the first word of "$ac_prog", so it can be a program name with args.
2571set dummy $ac_prog; ac_word=$2
2572echo "$as_me:$LINENO: checking for $ac_word" >&5
2573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2574if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2576else
2577 if test -n "$ac_ct_CC"; then
2578 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2579else
2580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581for as_dir in $PATH
2582do
2583 IFS=$as_save_IFS
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2587 ac_cv_prog_ac_ct_CC="$ac_prog"
2588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 break 2
2590 fi
2591done
2592done
2593
2594fi
2595fi
2596ac_ct_CC=$ac_cv_prog_ac_ct_CC
2597if test -n "$ac_ct_CC"; then
2598 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2599echo "${ECHO_T}$ac_ct_CC" >&6
2600else
2601 echo "$as_me:$LINENO: result: no" >&5
2602echo "${ECHO_T}no" >&6
2603fi
2604
2605 test -n "$ac_ct_CC" && break
2606done
2607
2608 CC=$ac_ct_CC
2609fi
2610
2611
John Criswell0c38eaf2003-09-10 15:17:25 +00002612test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2613See \`config.log' for more details." >&5
2614echo "$as_me: error: no acceptable C compiler found in \$PATH
2615See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002616 { (exit 1); exit 1; }; }
2617
2618# Provide some information about the compiler.
2619echo "$as_me:$LINENO:" \
2620 "checking for C compiler version" >&5
2621ac_compiler=`set X $ac_compile; echo $2`
2622{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2623 (eval $ac_compiler --version </dev/null >&5) 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }
2627{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2628 (eval $ac_compiler -v </dev/null >&5) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }
2632{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2633 (eval $ac_compiler -V </dev/null >&5) 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }
2637
2638echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2639echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2640if test "${ac_cv_c_compiler_gnu+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2642else
2643 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002644/* confdefs.h. */
2645_ACEOF
2646cat confdefs.h >>conftest.$ac_ext
2647cat >>conftest.$ac_ext <<_ACEOF
2648/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002649
John Criswell7a73b802003-06-30 21:59:07 +00002650int
2651main ()
2652{
2653#ifndef __GNUC__
2654 choke me
2655#endif
2656
2657 ;
2658 return 0;
2659}
2660_ACEOF
2661rm -f conftest.$ac_objext
2662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002663 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002664 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002665 grep -v '^ *+' conftest.er1 >conftest.err
2666 rm -f conftest.er1
2667 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002670 { ac_try='test -z "$ac_c_werror_flag"
2671 || test ! -s conftest.err'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 (eval $ac_try) 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; } &&
2677 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 (eval $ac_try) 2>&5
2680 ac_status=$?
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; }; then
2683 ac_compiler_gnu=yes
2684else
2685 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002686sed 's/^/| /' conftest.$ac_ext >&5
2687
John Criswell7a73b802003-06-30 21:59:07 +00002688ac_compiler_gnu=no
2689fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002691ac_cv_c_compiler_gnu=$ac_compiler_gnu
2692
2693fi
2694echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2695echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2696GCC=`test $ac_compiler_gnu = yes && echo yes`
2697ac_test_CFLAGS=${CFLAGS+set}
2698ac_save_CFLAGS=$CFLAGS
2699CFLAGS="-g"
2700echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2701echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2702if test "${ac_cv_prog_cc_g+set}" = set; then
2703 echo $ECHO_N "(cached) $ECHO_C" >&6
2704else
2705 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002706/* confdefs.h. */
2707_ACEOF
2708cat confdefs.h >>conftest.$ac_ext
2709cat >>conftest.$ac_ext <<_ACEOF
2710/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002711
John Criswell7a73b802003-06-30 21:59:07 +00002712int
2713main ()
2714{
2715
2716 ;
2717 return 0;
2718}
2719_ACEOF
2720rm -f conftest.$ac_objext
2721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002722 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002723 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002724 grep -v '^ *+' conftest.er1 >conftest.err
2725 rm -f conftest.er1
2726 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002729 { ac_try='test -z "$ac_c_werror_flag"
2730 || test ! -s conftest.err'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 (eval $ac_try) 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; } &&
2736 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 (eval $ac_try) 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2742 ac_cv_prog_cc_g=yes
2743else
2744 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002745sed 's/^/| /' conftest.$ac_ext >&5
2746
John Criswell7a73b802003-06-30 21:59:07 +00002747ac_cv_prog_cc_g=no
2748fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002750fi
2751echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2752echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2753if test "$ac_test_CFLAGS" = set; then
2754 CFLAGS=$ac_save_CFLAGS
2755elif test $ac_cv_prog_cc_g = yes; then
2756 if test "$GCC" = yes; then
2757 CFLAGS="-g -O2"
2758 else
2759 CFLAGS="-g"
2760 fi
2761else
2762 if test "$GCC" = yes; then
2763 CFLAGS="-O2"
2764 else
2765 CFLAGS=
2766 fi
2767fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002768echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2769echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2770if test "${ac_cv_prog_cc_stdc+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2772else
2773 ac_cv_prog_cc_stdc=no
2774ac_save_CC=$CC
2775cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002776/* confdefs.h. */
2777_ACEOF
2778cat confdefs.h >>conftest.$ac_ext
2779cat >>conftest.$ac_ext <<_ACEOF
2780/* end confdefs.h. */
2781#include <stdarg.h>
2782#include <stdio.h>
2783#include <sys/types.h>
2784#include <sys/stat.h>
2785/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2786struct buf { int x; };
2787FILE * (*rcsopen) (struct buf *, struct stat *, int);
2788static char *e (p, i)
2789 char **p;
2790 int i;
2791{
2792 return p[i];
2793}
2794static char *f (char * (*g) (char **, int), char **p, ...)
2795{
2796 char *s;
2797 va_list v;
2798 va_start (v,p);
2799 s = g (p, va_arg (v,int));
2800 va_end (v);
2801 return s;
2802}
Reid Spencer2b51a082004-08-04 00:34:49 +00002803
2804/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2805 function prototypes and stuff, but not '\xHH' hex character constants.
2806 These don't provoke an error unfortunately, instead are silently treated
2807 as 'x'. The following induces an error, until -std1 is added to get
2808 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2809 array size at least. It's necessary to write '\x00'==0 to get something
2810 that's true only with -std1. */
2811int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2812
John Criswell0c38eaf2003-09-10 15:17:25 +00002813int test (int i, double x);
2814struct s1 {int (*f) (int a);};
2815struct s2 {int (*f) (double a);};
2816int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2817int argc;
2818char **argv;
2819int
2820main ()
2821{
2822return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2823 ;
2824 return 0;
2825}
2826_ACEOF
2827# Don't try gcc -ansi; that turns off useful extensions and
2828# breaks some systems' header files.
2829# AIX -qlanglvl=ansi
2830# Ultrix and OSF/1 -std1
2831# HP-UX 10.20 and later -Ae
2832# HP-UX older versions -Aa -D_HPUX_SOURCE
2833# SVR4 -Xc -D__EXTENSIONS__
2834for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2835do
2836 CC="$ac_save_CC $ac_arg"
2837 rm -f conftest.$ac_objext
2838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002839 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00002840 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002841 grep -v '^ *+' conftest.er1 >conftest.err
2842 rm -f conftest.er1
2843 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002846 { ac_try='test -z "$ac_c_werror_flag"
2847 || test ! -s conftest.err'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 (eval $ac_try) 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; } &&
2853 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00002854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 (eval $ac_try) 2>&5
2856 ac_status=$?
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2859 ac_cv_prog_cc_stdc=$ac_arg
2860break
2861else
2862 echo "$as_me: failed program was:" >&5
2863sed 's/^/| /' conftest.$ac_ext >&5
2864
2865fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002866rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00002867done
2868rm -f conftest.$ac_ext conftest.$ac_objext
2869CC=$ac_save_CC
2870
2871fi
2872
2873case "x$ac_cv_prog_cc_stdc" in
2874 x|xno)
2875 echo "$as_me:$LINENO: result: none needed" >&5
2876echo "${ECHO_T}none needed" >&6 ;;
2877 *)
2878 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2879echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2880 CC="$CC $ac_cv_prog_cc_stdc" ;;
2881esac
2882
John Criswell7a73b802003-06-30 21:59:07 +00002883# Some people use a C++ compiler to compile C. Since we use `exit',
2884# in C++ we need to declare it. In case someone uses the same compiler
2885# for both compiling C and C++ we need to have the C++ compiler decide
2886# the declaration of exit, since it's the most demanding environment.
2887cat >conftest.$ac_ext <<_ACEOF
2888#ifndef __cplusplus
2889 choke me
2890#endif
2891_ACEOF
2892rm -f conftest.$ac_objext
2893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002894 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002895 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002896 grep -v '^ *+' conftest.er1 >conftest.err
2897 rm -f conftest.er1
2898 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002901 { ac_try='test -z "$ac_c_werror_flag"
2902 || test ! -s conftest.err'
2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904 (eval $ac_try) 2>&5
2905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; } &&
2908 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910 (eval $ac_try) 2>&5
2911 ac_status=$?
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; }; then
2914 for ac_declaration in \
Reid Spencer2b51a082004-08-04 00:34:49 +00002915 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002916 'extern "C" void std::exit (int) throw (); using std::exit;' \
2917 'extern "C" void std::exit (int); using std::exit;' \
2918 'extern "C" void exit (int) throw ();' \
2919 'extern "C" void exit (int);' \
2920 'void exit (int);'
2921do
2922 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002923/* confdefs.h. */
2924_ACEOF
2925cat confdefs.h >>conftest.$ac_ext
2926cat >>conftest.$ac_ext <<_ACEOF
2927/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002928$ac_declaration
Reid Spencer2b51a082004-08-04 00:34:49 +00002929#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002930int
2931main ()
2932{
2933exit (42);
2934 ;
2935 return 0;
2936}
2937_ACEOF
2938rm -f conftest.$ac_objext
2939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002940 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002941 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002942 grep -v '^ *+' conftest.er1 >conftest.err
2943 rm -f conftest.er1
2944 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002947 { ac_try='test -z "$ac_c_werror_flag"
2948 || test ! -s conftest.err'
2949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950 (eval $ac_try) 2>&5
2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; } &&
2954 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956 (eval $ac_try) 2>&5
2957 ac_status=$?
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; }; then
2960 :
2961else
2962 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002963sed 's/^/| /' conftest.$ac_ext >&5
2964
John Criswell7a73b802003-06-30 21:59:07 +00002965continue
2966fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002968 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002969/* confdefs.h. */
2970_ACEOF
2971cat confdefs.h >>conftest.$ac_ext
2972cat >>conftest.$ac_ext <<_ACEOF
2973/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002974$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002975int
2976main ()
2977{
2978exit (42);
2979 ;
2980 return 0;
2981}
2982_ACEOF
2983rm -f conftest.$ac_objext
2984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002985 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002986 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002987 grep -v '^ *+' conftest.er1 >conftest.err
2988 rm -f conftest.er1
2989 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002992 { ac_try='test -z "$ac_c_werror_flag"
2993 || test ! -s conftest.err'
2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 (eval $ac_try) 2>&5
2996 ac_status=$?
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; } &&
2999 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001 (eval $ac_try) 2>&5
3002 ac_status=$?
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; }; then
3005 break
3006else
3007 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003008sed 's/^/| /' conftest.$ac_ext >&5
3009
John Criswell7a73b802003-06-30 21:59:07 +00003010fi
Reid Spencer2b51a082004-08-04 00:34:49 +00003011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003012done
3013rm -f conftest*
3014if test -n "$ac_declaration"; then
3015 echo '#ifdef __cplusplus' >>confdefs.h
3016 echo $ac_declaration >>confdefs.h
3017 echo '#endif' >>confdefs.h
3018fi
3019
3020else
3021 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003022sed 's/^/| /' conftest.$ac_ext >&5
3023
John Criswell7a73b802003-06-30 21:59:07 +00003024fi
Reid Spencer2b51a082004-08-04 00:34:49 +00003025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003026ac_ext=c
3027ac_cpp='$CPP $CPPFLAGS'
3028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030ac_compiler_gnu=$ac_cv_c_compiler_gnu
3031
3032ac_ext=c
3033ac_cpp='$CPP $CPPFLAGS'
3034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036ac_compiler_gnu=$ac_cv_c_compiler_gnu
3037echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3038echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3039# On Suns, sometimes $CPP names a directory.
3040if test -n "$CPP" && test -d "$CPP"; then
3041 CPP=
3042fi
3043if test -z "$CPP"; then
3044 if test "${ac_cv_prog_CPP+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3046else
3047 # Double quotes because CPP needs to be expanded
3048 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3049 do
3050 ac_preproc_ok=false
3051for ac_c_preproc_warn_flag in '' yes
3052do
3053 # Use a header file that comes with gcc, so configuring glibc
3054 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3056 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003057 # On the NeXT, cc -E runs the code through the compiler's parser,
3058 # not just through cpp. "Syntax error" is here to catch this case.
3059 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003060/* confdefs.h. */
3061_ACEOF
3062cat confdefs.h >>conftest.$ac_ext
3063cat >>conftest.$ac_ext <<_ACEOF
3064/* end confdefs.h. */
3065#ifdef __STDC__
3066# include <limits.h>
3067#else
3068# include <assert.h>
3069#endif
Reid Spencer2b51a082004-08-04 00:34:49 +00003070 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00003071_ACEOF
3072if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3074 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003075 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003076 rm -f conftest.er1
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } >/dev/null; then
3080 if test -s conftest.err; then
3081 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00003082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003083 else
3084 ac_cpp_err=
3085 fi
3086else
3087 ac_cpp_err=yes
3088fi
3089if test -z "$ac_cpp_err"; then
3090 :
3091else
3092 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003093sed 's/^/| /' conftest.$ac_ext >&5
3094
John Criswell7a73b802003-06-30 21:59:07 +00003095 # Broken: fails on valid input.
3096continue
3097fi
3098rm -f conftest.err conftest.$ac_ext
3099
3100 # OK, works on sane cases. Now check whether non-existent headers
3101 # can be detected and how.
3102 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003103/* confdefs.h. */
3104_ACEOF
3105cat confdefs.h >>conftest.$ac_ext
3106cat >>conftest.$ac_ext <<_ACEOF
3107/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003108#include <ac_nonexistent.h>
3109_ACEOF
3110if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3112 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003113 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003114 rm -f conftest.er1
3115 cat conftest.err >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); } >/dev/null; then
3118 if test -s conftest.err; then
3119 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00003120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003121 else
3122 ac_cpp_err=
3123 fi
3124else
3125 ac_cpp_err=yes
3126fi
3127if test -z "$ac_cpp_err"; then
3128 # Broken: success on invalid input.
3129continue
3130else
3131 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003132sed 's/^/| /' conftest.$ac_ext >&5
3133
John Criswell7a73b802003-06-30 21:59:07 +00003134 # Passes both tests.
3135ac_preproc_ok=:
3136break
3137fi
3138rm -f conftest.err conftest.$ac_ext
3139
3140done
3141# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3142rm -f conftest.err conftest.$ac_ext
3143if $ac_preproc_ok; then
3144 break
3145fi
3146
3147 done
3148 ac_cv_prog_CPP=$CPP
3149
3150fi
3151 CPP=$ac_cv_prog_CPP
3152else
3153 ac_cv_prog_CPP=$CPP
3154fi
3155echo "$as_me:$LINENO: result: $CPP" >&5
3156echo "${ECHO_T}$CPP" >&6
3157ac_preproc_ok=false
3158for ac_c_preproc_warn_flag in '' yes
3159do
3160 # Use a header file that comes with gcc, so configuring glibc
3161 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3163 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003164 # On the NeXT, cc -E runs the code through the compiler's parser,
3165 # not just through cpp. "Syntax error" is here to catch this case.
3166 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003167/* confdefs.h. */
3168_ACEOF
3169cat confdefs.h >>conftest.$ac_ext
3170cat >>conftest.$ac_ext <<_ACEOF
3171/* end confdefs.h. */
3172#ifdef __STDC__
3173# include <limits.h>
3174#else
3175# include <assert.h>
3176#endif
Reid Spencer2b51a082004-08-04 00:34:49 +00003177 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00003178_ACEOF
3179if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3181 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003182 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003183 rm -f conftest.er1
3184 cat conftest.err >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } >/dev/null; then
3187 if test -s conftest.err; then
3188 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00003189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003190 else
3191 ac_cpp_err=
3192 fi
3193else
3194 ac_cpp_err=yes
3195fi
3196if test -z "$ac_cpp_err"; then
3197 :
3198else
3199 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003200sed 's/^/| /' conftest.$ac_ext >&5
3201
John Criswell7a73b802003-06-30 21:59:07 +00003202 # Broken: fails on valid input.
3203continue
3204fi
3205rm -f conftest.err conftest.$ac_ext
3206
3207 # OK, works on sane cases. Now check whether non-existent headers
3208 # can be detected and how.
3209 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003210/* confdefs.h. */
3211_ACEOF
3212cat confdefs.h >>conftest.$ac_ext
3213cat >>conftest.$ac_ext <<_ACEOF
3214/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003215#include <ac_nonexistent.h>
3216_ACEOF
3217if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3219 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003220 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003221 rm -f conftest.er1
3222 cat conftest.err >&5
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); } >/dev/null; then
3225 if test -s conftest.err; then
3226 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00003227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003228 else
3229 ac_cpp_err=
3230 fi
3231else
3232 ac_cpp_err=yes
3233fi
3234if test -z "$ac_cpp_err"; then
3235 # Broken: success on invalid input.
3236continue
3237else
3238 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003239sed 's/^/| /' conftest.$ac_ext >&5
3240
John Criswell7a73b802003-06-30 21:59:07 +00003241 # Passes both tests.
3242ac_preproc_ok=:
3243break
3244fi
3245rm -f conftest.err conftest.$ac_ext
3246
3247done
3248# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3249rm -f conftest.err conftest.$ac_ext
3250if $ac_preproc_ok; then
3251 :
3252else
John Criswell0c38eaf2003-09-10 15:17:25 +00003253 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3254See \`config.log' for more details." >&5
3255echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3256See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003257 { (exit 1); exit 1; }; }
3258fi
3259
3260ac_ext=c
3261ac_cpp='$CPP $CPPFLAGS'
3262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264ac_compiler_gnu=$ac_cv_c_compiler_gnu
3265
3266
3267if test "$GCC" != "yes"
3268then
3269 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3270echo "$as_me: error: gcc required but not found" >&2;}
3271 { (exit 1); exit 1; }; }
3272fi
John Criswell7a73b802003-06-30 21:59:07 +00003273if test "$GXX" != "yes"
3274then
3275 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3276echo "$as_me: error: g++ required but not found" >&2;}
3277 { (exit 1); exit 1; }; }
3278fi
3279
John Criswellde00db22003-08-25 16:49:54 +00003280gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3281if test "$gccmajor" -lt "3"
3282then
Brian Gaeke26be9c52004-01-13 06:43:16 +00003283 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3284echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
John Criswellde00db22003-08-25 16:49:54 +00003285 { (exit 1); exit 1; }; }
3286fi
3287
John Criswell7a73b802003-06-30 21:59:07 +00003288 echo "$as_me:$LINENO: checking for GNU make" >&5
3289echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3290if test "${_cv_gnu_make_command+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3292else
3293 _cv_gnu_make_command='' ;
3294 for a in "$MAKE" make gmake gnumake ; do
3295 if test -z "$a" ; then continue ; fi ;
3296 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3297 _cv_gnu_make_command=$a ;
3298 break;
3299 fi
3300 done ;
3301
3302fi
3303echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3304echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3305 if test "x$_cv_gnu_make_command" != "x" ; then
3306 ifGNUmake='' ;
3307 else
3308 ifGNUmake='#' ;
3309 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3310echo "${ECHO_T}\"Not found\"" >&6;
3311 fi
3312
3313
3314if test -z "$_cv_gnu_make_command"
3315then
3316 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3317echo "$as_me: error: GNU Make required but not found" >&2;}
3318 { (exit 1); exit 1; }; }
3319fi
3320
3321
3322echo "$as_me:$LINENO: checking " >&5
3323echo $ECHO_N "checking ... $ECHO_C" >&6
3324if test "${ac_cv_has_flex+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3326else
3327 for ac_prog in flex lex
3328do
3329 # Extract the first word of "$ac_prog", so it can be a program name with args.
3330set dummy $ac_prog; ac_word=$2
3331echo "$as_me:$LINENO: checking for $ac_word" >&5
3332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3333if test "${ac_cv_prog_LEX+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3335else
3336 if test -n "$LEX"; then
3337 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3338else
3339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340for as_dir in $PATH
3341do
3342 IFS=$as_save_IFS
3343 test -z "$as_dir" && as_dir=.
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346 ac_cv_prog_LEX="$ac_prog"
3347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3348 break 2
3349 fi
3350done
3351done
3352
3353fi
3354fi
3355LEX=$ac_cv_prog_LEX
3356if test -n "$LEX"; then
3357 echo "$as_me:$LINENO: result: $LEX" >&5
3358echo "${ECHO_T}$LEX" >&6
3359else
3360 echo "$as_me:$LINENO: result: no" >&5
3361echo "${ECHO_T}no" >&6
3362fi
3363
3364 test -n "$LEX" && break
3365done
3366test -n "$LEX" || LEX=":"
3367
3368if test -z "$LEXLIB"
3369then
3370 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3371echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3372if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374else
3375 ac_check_lib_save_LIBS=$LIBS
3376LIBS="-lfl $LIBS"
3377cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003378/* confdefs.h. */
3379_ACEOF
3380cat confdefs.h >>conftest.$ac_ext
3381cat >>conftest.$ac_ext <<_ACEOF
3382/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003383
3384/* Override any gcc2 internal prototype to avoid an error. */
3385#ifdef __cplusplus
3386extern "C"
3387#endif
3388/* We use char because int might match the return type of a gcc2
3389 builtin and then its argument prototype would still apply. */
3390char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003391int
3392main ()
3393{
3394yywrap ();
3395 ;
3396 return 0;
3397}
3398_ACEOF
3399rm -f conftest.$ac_objext conftest$ac_exeext
3400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00003401 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003402 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00003403 grep -v '^ *+' conftest.er1 >conftest.err
3404 rm -f conftest.er1
3405 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00003408 { ac_try='test -z "$ac_c_werror_flag"
3409 || test ! -s conftest.err'
3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 (eval $ac_try) 2>&5
3412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; } &&
3415 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 (eval $ac_try) 2>&5
3418 ac_status=$?
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; }; then
3421 ac_cv_lib_fl_yywrap=yes
3422else
3423 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003424sed 's/^/| /' conftest.$ac_ext >&5
3425
John Criswell7a73b802003-06-30 21:59:07 +00003426ac_cv_lib_fl_yywrap=no
3427fi
Reid Spencer2b51a082004-08-04 00:34:49 +00003428rm -f conftest.err conftest.$ac_objext \
3429 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003430LIBS=$ac_check_lib_save_LIBS
3431fi
3432echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3433echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3434if test $ac_cv_lib_fl_yywrap = yes; then
3435 LEXLIB="-lfl"
3436else
3437 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3438echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3439if test "${ac_cv_lib_l_yywrap+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441else
3442 ac_check_lib_save_LIBS=$LIBS
3443LIBS="-ll $LIBS"
3444cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003445/* confdefs.h. */
3446_ACEOF
3447cat confdefs.h >>conftest.$ac_ext
3448cat >>conftest.$ac_ext <<_ACEOF
3449/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003450
3451/* Override any gcc2 internal prototype to avoid an error. */
3452#ifdef __cplusplus
3453extern "C"
3454#endif
3455/* We use char because int might match the return type of a gcc2
3456 builtin and then its argument prototype would still apply. */
3457char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003458int
3459main ()
3460{
3461yywrap ();
3462 ;
3463 return 0;
3464}
3465_ACEOF
3466rm -f conftest.$ac_objext conftest$ac_exeext
3467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00003468 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003469 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00003470 grep -v '^ *+' conftest.er1 >conftest.err
3471 rm -f conftest.er1
3472 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00003475 { ac_try='test -z "$ac_c_werror_flag"
3476 || test ! -s conftest.err'
3477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478 (eval $ac_try) 2>&5
3479 ac_status=$?
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); }; } &&
3482 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484 (eval $ac_try) 2>&5
3485 ac_status=$?
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); }; }; then
3488 ac_cv_lib_l_yywrap=yes
3489else
3490 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003491sed 's/^/| /' conftest.$ac_ext >&5
3492
John Criswell7a73b802003-06-30 21:59:07 +00003493ac_cv_lib_l_yywrap=no
3494fi
Reid Spencer2b51a082004-08-04 00:34:49 +00003495rm -f conftest.err conftest.$ac_objext \
3496 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003497LIBS=$ac_check_lib_save_LIBS
3498fi
3499echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3500echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3501if test $ac_cv_lib_l_yywrap = yes; then
3502 LEXLIB="-ll"
3503fi
3504
3505fi
3506
3507fi
3508
3509if test "x$LEX" != "x:"; then
3510 echo "$as_me:$LINENO: checking lex output file root" >&5
3511echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3512if test "${ac_cv_prog_lex_root+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3514else
3515 # The minimal lex program is just a single line: %%. But some broken lexes
3516# (Solaris, I think it was) want two %% lines, so accommodate them.
3517cat >conftest.l <<_ACEOF
3518%%
3519%%
3520_ACEOF
3521{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3522 (eval $LEX conftest.l) 2>&5
3523 ac_status=$?
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }
3526if test -f lex.yy.c; then
3527 ac_cv_prog_lex_root=lex.yy
3528elif test -f lexyy.c; then
3529 ac_cv_prog_lex_root=lexyy
3530else
3531 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3532echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3533 { (exit 1); exit 1; }; }
3534fi
3535fi
3536echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3537echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3538rm -f conftest.l
3539LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3540
3541echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3542echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3543if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545else
3546 # POSIX says lex can declare yytext either as a pointer or an array; the
3547# default is implementation-dependent. Figure out which it is, since
3548# not all implementations provide the %pointer and %array declarations.
3549ac_cv_prog_lex_yytext_pointer=no
3550echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3551ac_save_LIBS=$LIBS
3552LIBS="$LIBS $LEXLIB"
3553cat >conftest.$ac_ext <<_ACEOF
3554`cat $LEX_OUTPUT_ROOT.c`
3555_ACEOF
3556rm -f conftest.$ac_objext conftest$ac_exeext
3557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00003558 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003559 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00003560 grep -v '^ *+' conftest.er1 >conftest.err
3561 rm -f conftest.er1
3562 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00003565 { ac_try='test -z "$ac_c_werror_flag"
3566 || test ! -s conftest.err'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 (eval $ac_try) 2>&5
3569 ac_status=$?
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; } &&
3572 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 (eval $ac_try) 2>&5
3575 ac_status=$?
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; }; then
3578 ac_cv_prog_lex_yytext_pointer=yes
3579else
3580 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003581sed 's/^/| /' conftest.$ac_ext >&5
3582
John Criswell7a73b802003-06-30 21:59:07 +00003583fi
Reid Spencer2b51a082004-08-04 00:34:49 +00003584rm -f conftest.err conftest.$ac_objext \
3585 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003586LIBS=$ac_save_LIBS
3587rm -f "${LEX_OUTPUT_ROOT}.c"
3588
3589fi
3590echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3591echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3592if test $ac_cv_prog_lex_yytext_pointer = yes; then
3593
3594cat >>confdefs.h <<\_ACEOF
3595#define YYTEXT_POINTER 1
3596_ACEOF
3597
3598fi
3599
3600fi
3601
3602fi
3603echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3604echo "${ECHO_T}$ac_cv_has_flex" >&6
3605if test "$LEX" != "flex"; then
3606 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3607echo "$as_me: error: flex not found but required" >&2;}
3608 { (exit 1); exit 1; }; }
3609fi
3610
3611echo "$as_me:$LINENO: checking " >&5
3612echo $ECHO_N "checking ... $ECHO_C" >&6
3613if test "${ac_cv_has_bison+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3615else
3616 for ac_prog in 'bison -y' byacc
3617do
3618 # Extract the first word of "$ac_prog", so it can be a program name with args.
3619set dummy $ac_prog; ac_word=$2
3620echo "$as_me:$LINENO: checking for $ac_word" >&5
3621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3622if test "${ac_cv_prog_YACC+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3624else
3625 if test -n "$YACC"; then
3626 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3627else
3628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629for as_dir in $PATH
3630do
3631 IFS=$as_save_IFS
3632 test -z "$as_dir" && as_dir=.
3633 for ac_exec_ext in '' $ac_executable_extensions; do
3634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3635 ac_cv_prog_YACC="$ac_prog"
3636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3637 break 2
3638 fi
3639done
3640done
3641
3642fi
3643fi
3644YACC=$ac_cv_prog_YACC
3645if test -n "$YACC"; then
3646 echo "$as_me:$LINENO: result: $YACC" >&5
3647echo "${ECHO_T}$YACC" >&6
3648else
3649 echo "$as_me:$LINENO: result: no" >&5
3650echo "${ECHO_T}no" >&6
3651fi
3652
3653 test -n "$YACC" && break
3654done
3655test -n "$YACC" || YACC="yacc"
3656
3657
3658fi
3659echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3660echo "${ECHO_T}$ac_cv_has_bison" >&6
3661if test "$YACC" != "bison -y"; then
3662 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3663echo "$as_me: error: bison not found but required" >&2;}
3664 { (exit 1); exit 1; }; }
3665else
Brian Gaeke12810632004-01-13 06:52:10 +00003666 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00003667
3668fi
3669
John Criswell7a73b802003-06-30 21:59:07 +00003670# Check whether --enable-shared or --disable-shared was given.
3671if test "${enable_shared+set}" = set; then
3672 enableval="$enable_shared"
3673 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003674 case $enableval in
3675 yes) enable_shared=yes ;;
3676 no) enable_shared=no ;;
3677 *)
3678 enable_shared=no
3679 # Look at the argument we got. We use all the common list separators.
3680 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3681 for pkg in $enableval; do
3682 IFS="$lt_save_ifs"
3683 if test "X$pkg" = "X$p"; then
3684 enable_shared=yes
3685 fi
3686 done
3687 IFS="$lt_save_ifs"
3688 ;;
3689 esac
John Criswell7a73b802003-06-30 21:59:07 +00003690else
3691 enable_shared=yes
3692fi;
John Criswell47fdd832003-07-14 16:52:07 +00003693
John Criswell7a73b802003-06-30 21:59:07 +00003694# Check whether --enable-static or --disable-static was given.
3695if test "${enable_static+set}" = set; then
3696 enableval="$enable_static"
3697 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003698 case $enableval in
3699 yes) enable_static=yes ;;
3700 no) enable_static=no ;;
3701 *)
3702 enable_static=no
3703 # Look at the argument we got. We use all the common list separators.
3704 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3705 for pkg in $enableval; do
3706 IFS="$lt_save_ifs"
3707 if test "X$pkg" = "X$p"; then
3708 enable_static=yes
3709 fi
3710 done
3711 IFS="$lt_save_ifs"
3712 ;;
3713 esac
John Criswell7a73b802003-06-30 21:59:07 +00003714else
3715 enable_static=yes
3716fi;
John Criswell47fdd832003-07-14 16:52:07 +00003717
John Criswell7a73b802003-06-30 21:59:07 +00003718# Check whether --enable-fast-install or --disable-fast-install was given.
3719if test "${enable_fast_install+set}" = set; then
3720 enableval="$enable_fast_install"
3721 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003722 case $enableval in
3723 yes) enable_fast_install=yes ;;
3724 no) enable_fast_install=no ;;
3725 *)
3726 enable_fast_install=no
3727 # Look at the argument we got. We use all the common list separators.
3728 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3729 for pkg in $enableval; do
3730 IFS="$lt_save_ifs"
3731 if test "X$pkg" = "X$p"; then
3732 enable_fast_install=yes
3733 fi
3734 done
3735 IFS="$lt_save_ifs"
3736 ;;
3737 esac
John Criswell7a73b802003-06-30 21:59:07 +00003738else
3739 enable_fast_install=yes
3740fi;
John Criswell47fdd832003-07-14 16:52:07 +00003741
3742echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3743echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3744if test "${lt_cv_path_SED+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3746else
3747 # Loop through the user's path and test for sed and gsed.
3748# Then use that list of sed's as ones to test for truncation.
3749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750for as_dir in $PATH
3751do
3752 IFS=$as_save_IFS
3753 test -z "$as_dir" && as_dir=.
3754 for lt_ac_prog in sed gsed; do
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3757 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3758 fi
3759 done
3760 done
3761done
3762lt_ac_max=0
3763lt_ac_count=0
3764# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3765# along with /bin/sed that truncates output.
3766for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3767 test ! -f $lt_ac_sed && break
3768 cat /dev/null > conftest.in
3769 lt_ac_count=0
3770 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3771 # Check for GNU sed and select it if it is found.
3772 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3773 lt_cv_path_SED=$lt_ac_sed
3774 break
3775 fi
3776 while true; do
3777 cat conftest.in conftest.in >conftest.tmp
3778 mv conftest.tmp conftest.in
3779 cp conftest.in conftest.nl
3780 echo >>conftest.nl
3781 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3782 cmp -s conftest.out conftest.nl || break
3783 # 10000 chars as input seems more than enough
3784 test $lt_ac_count -gt 10 && break
3785 lt_ac_count=`expr $lt_ac_count + 1`
3786 if test $lt_ac_count -gt $lt_ac_max; then
3787 lt_ac_max=$lt_ac_count
3788 lt_cv_path_SED=$lt_ac_sed
3789 fi
3790 done
3791done
3792SED=$lt_cv_path_SED
3793
John Criswell7a73b802003-06-30 21:59:07 +00003794fi
3795
John Criswell47fdd832003-07-14 16:52:07 +00003796echo "$as_me:$LINENO: result: $SED" >&5
3797echo "${ECHO_T}$SED" >&6
3798
3799echo "$as_me:$LINENO: checking for egrep" >&5
3800echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3801if test "${ac_cv_prog_egrep+set}" = set; then
3802 echo $ECHO_N "(cached) $ECHO_C" >&6
3803else
3804 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3805 then ac_cv_prog_egrep='grep -E'
3806 else ac_cv_prog_egrep='egrep'
3807 fi
3808fi
3809echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3810echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3811 EGREP=$ac_cv_prog_egrep
3812
3813
John Criswell7a73b802003-06-30 21:59:07 +00003814
3815# Check whether --with-gnu-ld or --without-gnu-ld was given.
3816if test "${with_gnu_ld+set}" = set; then
3817 withval="$with_gnu_ld"
3818 test "$withval" = no || with_gnu_ld=yes
3819else
3820 with_gnu_ld=no
3821fi;
3822ac_prog=ld
3823if test "$GCC" = yes; then
3824 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003825 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3826echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003827 case $host in
3828 *-*-mingw*)
3829 # gcc leaves a trailing carriage return which upsets mingw
3830 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3831 *)
3832 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3833 esac
3834 case $ac_prog in
3835 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003836 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003837 re_direlt='/[^/][^/]*/\.\./'
3838 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003839 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003840 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003841 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003842 done
3843 test -z "$LD" && LD="$ac_prog"
3844 ;;
3845 "")
3846 # If it fails, then pretend we aren't using GCC.
3847 ac_prog=ld
3848 ;;
3849 *)
3850 # If it is relative, then search for the first ld in PATH.
3851 with_gnu_ld=unknown
3852 ;;
3853 esac
3854elif test "$with_gnu_ld" = yes; then
3855 echo "$as_me:$LINENO: checking for GNU ld" >&5
3856echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3857else
3858 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3859echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3860fi
3861if test "${lt_cv_path_LD+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3863else
3864 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003865 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003866 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003867 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003868 test -z "$ac_dir" && ac_dir=.
3869 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3870 lt_cv_path_LD="$ac_dir/$ac_prog"
3871 # Check to see if the program is GNU ld. I'd rather use --version,
3872 # but apparently some GNU ld's only accept -v.
3873 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003874 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3875 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003876 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003877 ;;
3878 *)
John Criswell7a73b802003-06-30 21:59:07 +00003879 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003880 ;;
3881 esac
John Criswell7a73b802003-06-30 21:59:07 +00003882 fi
3883 done
John Criswell47fdd832003-07-14 16:52:07 +00003884 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003885else
3886 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3887fi
3888fi
3889
3890LD="$lt_cv_path_LD"
3891if test -n "$LD"; then
3892 echo "$as_me:$LINENO: result: $LD" >&5
3893echo "${ECHO_T}$LD" >&6
3894else
3895 echo "$as_me:$LINENO: result: no" >&5
3896echo "${ECHO_T}no" >&6
3897fi
3898test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3899echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3900 { (exit 1); exit 1; }; }
3901echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3902echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3903if test "${lt_cv_prog_gnu_ld+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3905else
3906 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00003907case `"$LD" -v 2>&1 </dev/null` in
3908*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003909 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003910 ;;
3911*)
John Criswell7a73b802003-06-30 21:59:07 +00003912 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003913 ;;
3914esac
John Criswell7a73b802003-06-30 21:59:07 +00003915fi
3916echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3917echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3918with_gnu_ld=$lt_cv_prog_gnu_ld
3919
3920
3921echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3922echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3923if test "${lt_cv_ld_reload_flag+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3925else
3926 lt_cv_ld_reload_flag='-r'
3927fi
3928echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3929echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3930reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003931case $reload_flag in
3932"" | " "*) ;;
3933*) reload_flag=" $reload_flag" ;;
3934esac
3935reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00003936
3937echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3938echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3939if test "${lt_cv_path_NM+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3941else
3942 if test -n "$NM"; then
3943 # Let the user override the test.
3944 lt_cv_path_NM="$NM"
3945else
John Criswell47fdd832003-07-14 16:52:07 +00003946 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003947 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003948 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003949 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003950 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3951 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003952 # Check to see if the nm accepts a BSD-compat flag.
3953 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3954 # nm: unknown option "B" ignored
3955 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003956 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3957 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003958 lt_cv_path_NM="$tmp_nm -B"
3959 break
John Criswell47fdd832003-07-14 16:52:07 +00003960 ;;
3961 *)
3962 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3963 */dev/null*)
3964 lt_cv_path_NM="$tmp_nm -p"
3965 break
3966 ;;
3967 *)
3968 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3969 continue # so that we can try to find one that supports BSD flags
3970 ;;
3971 esac
3972 esac
John Criswell7a73b802003-06-30 21:59:07 +00003973 fi
3974 done
John Criswell47fdd832003-07-14 16:52:07 +00003975 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003976 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3977fi
3978fi
John Criswell47fdd832003-07-14 16:52:07 +00003979echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3980echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003981NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003982
3983echo "$as_me:$LINENO: checking whether ln -s works" >&5
3984echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3985LN_S=$as_ln_s
3986if test "$LN_S" = "ln -s"; then
3987 echo "$as_me:$LINENO: result: yes" >&5
3988echo "${ECHO_T}yes" >&6
3989else
3990 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3991echo "${ECHO_T}no, using $LN_S" >&6
3992fi
3993
John Criswell47fdd832003-07-14 16:52:07 +00003994echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3995echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003996if test "${lt_cv_deplibs_check_method+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998else
3999 lt_cv_file_magic_cmd='$MAGIC_CMD'
4000lt_cv_file_magic_test_file=
4001lt_cv_deplibs_check_method='unknown'
4002# Need to set the preceding variable on all platforms that support
4003# interlibrary dependencies.
4004# 'none' -- dependencies not supported.
4005# `unknown' -- same as none, but documents that we really don't know.
4006# 'pass_all' -- all dependencies passed with no checks.
4007# 'test_compile' -- check by making test program.
4008# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004009# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004010# If you have `file' or equivalent on your system and you're not sure
4011# whether `pass_all' will *always* work, you probably want this one.
4012
4013case $host_os in
4014aix4* | aix5*)
4015 lt_cv_deplibs_check_method=pass_all
4016 ;;
4017
4018beos*)
4019 lt_cv_deplibs_check_method=pass_all
4020 ;;
4021
4022bsdi4*)
4023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4024 lt_cv_file_magic_cmd='/usr/bin/file -L'
4025 lt_cv_file_magic_test_file=/shlib/libc.so
4026 ;;
4027
4028cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004029 # win32_libid is a shell function defined in ltmain.sh
4030 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4031 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004032 ;;
4033
4034darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004035 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004036 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4037 lt_cv_file_magic_cmd='/usr/bin/file -L'
4038 case "$host_os" in
4039 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004040 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004041 ;;
4042 *) # Darwin 1.3 on
4043 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4044 ;;
4045 esac
John Criswell47fdd832003-07-14 16:52:07 +00004046 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004047 ;;
4048
4049freebsd*)
4050 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4051 case $host_cpu in
4052 i*86 )
4053 # Not sure whether the presence of OpenBSD here was a mistake.
4054 # Let's accept both of them until this is cleared up.
4055 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4056 lt_cv_file_magic_cmd=/usr/bin/file
4057 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4058 ;;
4059 esac
4060 else
4061 lt_cv_deplibs_check_method=pass_all
4062 fi
4063 ;;
4064
4065gnu*)
4066 lt_cv_deplibs_check_method=pass_all
4067 ;;
4068
John Criswell47fdd832003-07-14 16:52:07 +00004069hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004070 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004071 case "$host_cpu" in
4072 ia64*)
4073 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4074 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4075 ;;
4076 hppa*64*)
4077 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]'
4078 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4079 ;;
4080 *)
4081 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4082 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4083 ;;
4084 esac
John Criswell7a73b802003-06-30 21:59:07 +00004085 ;;
4086
John Criswell47fdd832003-07-14 16:52:07 +00004087irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004088 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004089 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004090 # this will be overridden with pass_all, but let us keep it just in case
4091 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4092 ;;
4093 *)
4094 case $LD in
4095 *-32|*"-32 ") libmagic=32-bit;;
4096 *-n32|*"-n32 ") libmagic=N32;;
4097 *-64|*"-64 ") libmagic=64-bit;;
4098 *) libmagic=never-match;;
4099 esac
4100 # this will be overridden with pass_all, but let us keep it just in case
4101 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4102 ;;
4103 esac
4104 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4105 lt_cv_deplibs_check_method=pass_all
4106 ;;
4107
4108# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004109linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004110 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004111 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004112 lt_cv_deplibs_check_method=pass_all ;;
4113 *)
4114 # glibc up to 2.1.1 does not perform some relocations on ARM
4115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4116 esac
4117 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4118 ;;
4119
4120netbsd*)
4121 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004122 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004123 else
John Criswell47fdd832003-07-14 16:52:07 +00004124 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004125 fi
4126 ;;
4127
4128newos6*)
4129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4130 lt_cv_file_magic_cmd=/usr/bin/file
4131 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4132 ;;
4133
John Criswell47fdd832003-07-14 16:52:07 +00004134nto-qnx)
4135 lt_cv_deplibs_check_method=unknown
4136 ;;
4137
John Criswell7a73b802003-06-30 21:59:07 +00004138openbsd*)
4139 lt_cv_file_magic_cmd=/usr/bin/file
4140 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4141 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4142 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4143 else
4144 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4145 fi
4146 ;;
4147
4148osf3* | osf4* | osf5*)
4149 # this will be overridden with pass_all, but let us keep it just in case
4150 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4151 lt_cv_file_magic_test_file=/shlib/libc.so
4152 lt_cv_deplibs_check_method=pass_all
4153 ;;
4154
4155sco3.2v5*)
4156 lt_cv_deplibs_check_method=pass_all
4157 ;;
4158
4159solaris*)
4160 lt_cv_deplibs_check_method=pass_all
4161 lt_cv_file_magic_test_file=/lib/libc.so
4162 ;;
4163
John Criswell7a73b802003-06-30 21:59:07 +00004164sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4165 case $host_vendor in
4166 motorola)
4167 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]'
4168 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4169 ;;
4170 ncr)
4171 lt_cv_deplibs_check_method=pass_all
4172 ;;
4173 sequent)
4174 lt_cv_file_magic_cmd='/bin/file'
4175 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4176 ;;
4177 sni)
4178 lt_cv_file_magic_cmd='/bin/file'
4179 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4180 lt_cv_file_magic_test_file=/lib/libc.so
4181 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004182 siemens)
4183 lt_cv_deplibs_check_method=pass_all
4184 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004185 esac
4186 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004187
4188sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4189 lt_cv_deplibs_check_method=pass_all
4190 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004191esac
4192
4193fi
4194echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4195echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4196file_magic_cmd=$lt_cv_file_magic_cmd
4197deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004198test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004199
4200
4201
4202
John Criswell47fdd832003-07-14 16:52:07 +00004203# If no C compiler was specified, use CC.
4204LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004205
John Criswell47fdd832003-07-14 16:52:07 +00004206# Allow CC to be a program name with arguments.
4207compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004208
John Criswell47fdd832003-07-14 16:52:07 +00004209# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4210if test "${enable_libtool_lock+set}" = set; then
4211 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004212
John Criswell47fdd832003-07-14 16:52:07 +00004213fi;
4214test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004215
John Criswell47fdd832003-07-14 16:52:07 +00004216# Some flags need to be propagated to the compiler or linker for good
4217# libtool support.
4218case $host in
4219ia64-*-hpux*)
4220 # Find out which ABI we are using.
4221 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4223 (eval $ac_compile) 2>&5
4224 ac_status=$?
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004227 case `/usr/bin/file conftest.$ac_objext` in
4228 *ELF-32*)
4229 HPUX_IA64_MODE="32"
4230 ;;
4231 *ELF-64*)
4232 HPUX_IA64_MODE="64"
4233 ;;
4234 esac
4235 fi
4236 rm -rf conftest*
4237 ;;
4238*-*-irix6*)
4239 # Find out which ABI we are using.
Reid Spencerde8c47f2004-08-29 19:35:28 +00004240 echo '#line 4240 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4242 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004243 ac_status=$?
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004245 (exit $ac_status); }; then
4246 if test "$lt_cv_prog_gnu_ld" = yes; then
4247 case `/usr/bin/file conftest.$ac_objext` in
4248 *32-bit*)
4249 LD="${LD-ld} -melf32bsmip"
4250 ;;
4251 *N32*)
4252 LD="${LD-ld} -melf32bmipn32"
4253 ;;
4254 *64-bit*)
4255 LD="${LD-ld} -melf64bmip"
4256 ;;
4257 esac
4258 else
4259 case `/usr/bin/file conftest.$ac_objext` in
4260 *32-bit*)
4261 LD="${LD-ld} -32"
4262 ;;
4263 *N32*)
4264 LD="${LD-ld} -n32"
4265 ;;
4266 *64-bit*)
4267 LD="${LD-ld} -64"
4268 ;;
4269 esac
4270 fi
4271 fi
4272 rm -rf conftest*
4273 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004274
John Criswell47fdd832003-07-14 16:52:07 +00004275x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4276 # Find out which ABI we are using.
4277 echo 'int i;' > conftest.$ac_ext
4278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4279 (eval $ac_compile) 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; then
4283 case "`/usr/bin/file conftest.o`" in
4284 *32-bit*)
4285 case $host in
4286 x86_64-*linux*)
4287 LD="${LD-ld} -m elf_i386"
4288 ;;
4289 ppc64-*linux*)
4290 LD="${LD-ld} -m elf32ppclinux"
4291 ;;
4292 s390x-*linux*)
4293 LD="${LD-ld} -m elf_s390"
4294 ;;
4295 sparc64-*linux*)
4296 LD="${LD-ld} -m elf32_sparc"
4297 ;;
4298 esac
4299 ;;
4300 *64-bit*)
4301 case $host in
4302 x86_64-*linux*)
4303 LD="${LD-ld} -m elf_x86_64"
4304 ;;
4305 ppc*-*linux*|powerpc*-*linux*)
4306 LD="${LD-ld} -m elf64ppc"
4307 ;;
4308 s390*-*linux*)
4309 LD="${LD-ld} -m elf64_s390"
4310 ;;
4311 sparc*-*linux*)
4312 LD="${LD-ld} -m elf64_sparc"
4313 ;;
4314 esac
4315 ;;
4316 esac
4317 fi
4318 rm -rf conftest*
4319 ;;
4320
4321*-*-sco3.2v5*)
4322 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4323 SAVE_CFLAGS="$CFLAGS"
4324 CFLAGS="$CFLAGS -belf"
4325 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4326echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4327if test "${lt_cv_cc_needs_belf+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4329else
4330 ac_ext=c
4331ac_cpp='$CPP $CPPFLAGS'
4332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334ac_compiler_gnu=$ac_cv_c_compiler_gnu
4335
4336 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004337/* confdefs.h. */
4338_ACEOF
4339cat confdefs.h >>conftest.$ac_ext
4340cat >>conftest.$ac_ext <<_ACEOF
4341/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004342
John Criswell47fdd832003-07-14 16:52:07 +00004343int
4344main ()
John Criswell7a73b802003-06-30 21:59:07 +00004345{
John Criswell7a73b802003-06-30 21:59:07 +00004346
John Criswell47fdd832003-07-14 16:52:07 +00004347 ;
4348 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004349}
John Criswell47fdd832003-07-14 16:52:07 +00004350_ACEOF
4351rm -f conftest.$ac_objext conftest$ac_exeext
4352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00004353 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004354 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00004355 grep -v '^ *+' conftest.er1 >conftest.err
4356 rm -f conftest.er1
4357 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004359 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00004360 { ac_try='test -z "$ac_c_werror_flag"
4361 || test ! -s conftest.err'
4362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 (eval $ac_try) 2>&5
4364 ac_status=$?
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; } &&
4367 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00004368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369 (eval $ac_try) 2>&5
4370 ac_status=$?
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; }; then
4373 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004374else
John Criswell47fdd832003-07-14 16:52:07 +00004375 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004376sed 's/^/| /' conftest.$ac_ext >&5
4377
John Criswell47fdd832003-07-14 16:52:07 +00004378lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004379fi
Reid Spencer2b51a082004-08-04 00:34:49 +00004380rm -f conftest.err conftest.$ac_objext \
4381 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004382 ac_ext=c
4383ac_cpp='$CPP $CPPFLAGS'
4384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386ac_compiler_gnu=$ac_cv_c_compiler_gnu
4387
John Criswell7a73b802003-06-30 21:59:07 +00004388fi
John Criswell47fdd832003-07-14 16:52:07 +00004389echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4390echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4391 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4392 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4393 CFLAGS="$SAVE_CFLAGS"
4394 fi
4395 ;;
4396
4397esac
4398
4399need_locks="$enable_libtool_lock"
4400
John Criswell7a73b802003-06-30 21:59:07 +00004401
4402
4403echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4404echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4405if test "${ac_cv_header_stdc+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4407else
4408 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004409/* confdefs.h. */
4410_ACEOF
4411cat confdefs.h >>conftest.$ac_ext
4412cat >>conftest.$ac_ext <<_ACEOF
4413/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004414#include <stdlib.h>
4415#include <stdarg.h>
4416#include <string.h>
4417#include <float.h>
4418
John Criswell0c38eaf2003-09-10 15:17:25 +00004419int
4420main ()
4421{
4422
4423 ;
4424 return 0;
4425}
John Criswell7a73b802003-06-30 21:59:07 +00004426_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004427rm -f conftest.$ac_objext
4428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00004429 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004430 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00004431 grep -v '^ *+' conftest.er1 >conftest.err
4432 rm -f conftest.er1
4433 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004435 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00004436 { ac_try='test -z "$ac_c_werror_flag"
4437 || test ! -s conftest.err'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 (eval $ac_try) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; } &&
4443 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00004444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 (eval $ac_try) 2>&5
4446 ac_status=$?
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004449 ac_cv_header_stdc=yes
4450else
4451 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004452sed 's/^/| /' conftest.$ac_ext >&5
4453
4454ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004455fi
Reid Spencer2b51a082004-08-04 00:34:49 +00004456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004457
4458if test $ac_cv_header_stdc = yes; then
4459 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4460 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004461/* confdefs.h. */
4462_ACEOF
4463cat confdefs.h >>conftest.$ac_ext
4464cat >>conftest.$ac_ext <<_ACEOF
4465/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004466#include <string.h>
4467
4468_ACEOF
4469if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004470 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004471 :
4472else
4473 ac_cv_header_stdc=no
4474fi
4475rm -f conftest*
4476
4477fi
4478
4479if test $ac_cv_header_stdc = yes; then
4480 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4481 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004482/* confdefs.h. */
4483_ACEOF
4484cat confdefs.h >>conftest.$ac_ext
4485cat >>conftest.$ac_ext <<_ACEOF
4486/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004487#include <stdlib.h>
4488
4489_ACEOF
4490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004491 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004492 :
4493else
4494 ac_cv_header_stdc=no
4495fi
4496rm -f conftest*
4497
4498fi
4499
4500if test $ac_cv_header_stdc = yes; then
4501 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4502 if test "$cross_compiling" = yes; then
4503 :
4504else
4505 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004506/* confdefs.h. */
4507_ACEOF
4508cat confdefs.h >>conftest.$ac_ext
4509cat >>conftest.$ac_ext <<_ACEOF
4510/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004511#include <ctype.h>
4512#if ((' ' & 0x0FF) == 0x020)
4513# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4514# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4515#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004516# define ISLOWER(c) \
Reid Spencer2b51a082004-08-04 00:34:49 +00004517 (('a' <= (c) && (c) <= 'i') \
4518 || ('j' <= (c) && (c) <= 'r') \
4519 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004520# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4521#endif
4522
4523#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4524int
4525main ()
4526{
4527 int i;
4528 for (i = 0; i < 256; i++)
4529 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2b51a082004-08-04 00:34:49 +00004530 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00004531 exit(2);
4532 exit (0);
4533}
4534_ACEOF
4535rm -f conftest$ac_exeext
4536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4537 (eval $ac_link) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542 (eval $ac_try) 2>&5
4543 ac_status=$?
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4546 :
4547else
4548 echo "$as_me: program exited with status $ac_status" >&5
4549echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004550sed 's/^/| /' conftest.$ac_ext >&5
4551
John Criswell7a73b802003-06-30 21:59:07 +00004552( exit $ac_status )
4553ac_cv_header_stdc=no
4554fi
Reid Spencer2b51a082004-08-04 00:34:49 +00004555rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004556fi
4557fi
4558fi
4559echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4560echo "${ECHO_T}$ac_cv_header_stdc" >&6
4561if test $ac_cv_header_stdc = yes; then
4562
4563cat >>confdefs.h <<\_ACEOF
4564#define STDC_HEADERS 1
4565_ACEOF
4566
4567fi
4568
4569# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2b51a082004-08-04 00:34:49 +00004580 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00004581do
4582as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4583echo "$as_me:$LINENO: checking for $ac_header" >&5
4584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4585if eval "test \"\${$as_ac_Header+set}\" = set"; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4587else
4588 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004589/* confdefs.h. */
4590_ACEOF
4591cat confdefs.h >>conftest.$ac_ext
4592cat >>conftest.$ac_ext <<_ACEOF
4593/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004594$ac_includes_default
4595
4596#include <$ac_header>
4597_ACEOF
4598rm -f conftest.$ac_objext
4599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00004600 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004601 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00004602 grep -v '^ *+' conftest.er1 >conftest.err
4603 rm -f conftest.er1
4604 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00004607 { ac_try='test -z "$ac_c_werror_flag"
4608 || test ! -s conftest.err'
4609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 (eval $ac_try) 2>&5
4611 ac_status=$?
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; } &&
4614 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 (eval $ac_try) 2>&5
4617 ac_status=$?
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; }; then
4620 eval "$as_ac_Header=yes"
4621else
4622 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004623sed 's/^/| /' conftest.$ac_ext >&5
4624
John Criswell7a73b802003-06-30 21:59:07 +00004625eval "$as_ac_Header=no"
4626fi
Reid Spencer2b51a082004-08-04 00:34:49 +00004627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004628fi
4629echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4630echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4631if test `eval echo '${'$as_ac_Header'}'` = yes; then
4632 cat >>confdefs.h <<_ACEOF
4633#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4634_ACEOF
4635
4636fi
4637
4638done
4639
4640
4641
4642for ac_header in dlfcn.h
4643do
4644as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4645if eval "test \"\${$as_ac_Header+set}\" = set"; then
4646 echo "$as_me:$LINENO: checking for $ac_header" >&5
4647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4648if eval "test \"\${$as_ac_Header+set}\" = set"; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4650fi
4651echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4652echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4653else
4654 # Is the header compilable?
4655echo "$as_me:$LINENO: checking $ac_header usability" >&5
4656echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4657cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004658/* confdefs.h. */
4659_ACEOF
4660cat confdefs.h >>conftest.$ac_ext
4661cat >>conftest.$ac_ext <<_ACEOF
4662/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004663$ac_includes_default
4664#include <$ac_header>
4665_ACEOF
4666rm -f conftest.$ac_objext
4667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00004668 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004669 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00004670 grep -v '^ *+' conftest.er1 >conftest.err
4671 rm -f conftest.er1
4672 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00004675 { ac_try='test -z "$ac_c_werror_flag"
4676 || test ! -s conftest.err'
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678 (eval $ac_try) 2>&5
4679 ac_status=$?
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; } &&
4682 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684 (eval $ac_try) 2>&5
4685 ac_status=$?
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }; }; then
4688 ac_header_compiler=yes
4689else
4690 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004691sed 's/^/| /' conftest.$ac_ext >&5
4692
John Criswell7a73b802003-06-30 21:59:07 +00004693ac_header_compiler=no
4694fi
Reid Spencer2b51a082004-08-04 00:34:49 +00004695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004696echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4697echo "${ECHO_T}$ac_header_compiler" >&6
4698
4699# Is the header present?
4700echo "$as_me:$LINENO: checking $ac_header presence" >&5
4701echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4702cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004703/* confdefs.h. */
4704_ACEOF
4705cat confdefs.h >>conftest.$ac_ext
4706cat >>conftest.$ac_ext <<_ACEOF
4707/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004708#include <$ac_header>
4709_ACEOF
4710if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4712 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004713 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004714 rm -f conftest.er1
4715 cat conftest.err >&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } >/dev/null; then
4718 if test -s conftest.err; then
4719 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00004720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00004721 else
4722 ac_cpp_err=
4723 fi
4724else
4725 ac_cpp_err=yes
4726fi
4727if test -z "$ac_cpp_err"; then
4728 ac_header_preproc=yes
4729else
4730 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004731sed 's/^/| /' conftest.$ac_ext >&5
4732
John Criswell7a73b802003-06-30 21:59:07 +00004733 ac_header_preproc=no
4734fi
4735rm -f conftest.err conftest.$ac_ext
4736echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4737echo "${ECHO_T}$ac_header_preproc" >&6
4738
4739# So? What about this header?
Reid Spencer2b51a082004-08-04 00:34:49 +00004740case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4741 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +00004742 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4743echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +00004744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4745echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4746 ac_header_preproc=yes
John Criswell0c38eaf2003-09-10 15:17:25 +00004747 ;;
Reid Spencer2b51a082004-08-04 00:34:49 +00004748 no:yes:* )
John Criswell7a73b802003-06-30 21:59:07 +00004749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4750echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +00004751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4752echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4753 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4754echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4755 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4756echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00004757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004758echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +00004759 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4760echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +00004761 (
4762 cat <<\_ASBOX
Reid Spencer2b51a082004-08-04 00:34:49 +00004763## ----------------------------------- ##
4764## Report this to llvmbugs@cs.uiuc.edu ##
4765## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00004766_ASBOX
4767 ) |
4768 sed "s/^/$as_me: WARNING: /" >&2
4769 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004770esac
4771echo "$as_me:$LINENO: checking for $ac_header" >&5
4772echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4773if eval "test \"\${$as_ac_Header+set}\" = set"; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4775else
Reid Spencer2b51a082004-08-04 00:34:49 +00004776 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00004777fi
4778echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4779echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4780
4781fi
4782if test `eval echo '${'$as_ac_Header'}'` = yes; then
4783 cat >>confdefs.h <<_ACEOF
4784#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4785_ACEOF
4786
4787fi
4788
4789done
4790
John Criswell47fdd832003-07-14 16:52:07 +00004791ac_ext=cc
4792ac_cpp='$CXXCPP $CPPFLAGS'
4793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4796echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4797echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4798if test -z "$CXXCPP"; then
4799 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004800 echo $ECHO_N "(cached) $ECHO_C" >&6
4801else
John Criswell47fdd832003-07-14 16:52:07 +00004802 # Double quotes because CXXCPP needs to be expanded
4803 for CXXCPP in "$CXX -E" "/lib/cpp"
4804 do
4805 ac_preproc_ok=false
4806for ac_cxx_preproc_warn_flag in '' yes
4807do
4808 # Use a header file that comes with gcc, so configuring glibc
4809 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004810 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4811 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004812 # On the NeXT, cc -E runs the code through the compiler's parser,
4813 # not just through cpp. "Syntax error" is here to catch this case.
4814 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004815/* confdefs.h. */
4816_ACEOF
4817cat confdefs.h >>conftest.$ac_ext
4818cat >>conftest.$ac_ext <<_ACEOF
4819/* end confdefs.h. */
4820#ifdef __STDC__
4821# include <limits.h>
4822#else
4823# include <assert.h>
4824#endif
Reid Spencer2b51a082004-08-04 00:34:49 +00004825 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004826_ACEOF
4827if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4829 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004830 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004831 rm -f conftest.er1
4832 cat conftest.err >&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } >/dev/null; then
4835 if test -s conftest.err; then
4836 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00004837 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00004838 else
John Criswell47fdd832003-07-14 16:52:07 +00004839 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004840 fi
John Criswell47fdd832003-07-14 16:52:07 +00004841else
4842 ac_cpp_err=yes
4843fi
4844if test -z "$ac_cpp_err"; then
4845 :
4846else
4847 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004848sed 's/^/| /' conftest.$ac_ext >&5
4849
John Criswell47fdd832003-07-14 16:52:07 +00004850 # Broken: fails on valid input.
4851continue
4852fi
4853rm -f conftest.err conftest.$ac_ext
4854
4855 # OK, works on sane cases. Now check whether non-existent headers
4856 # can be detected and how.
4857 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004858/* confdefs.h. */
4859_ACEOF
4860cat confdefs.h >>conftest.$ac_ext
4861cat >>conftest.$ac_ext <<_ACEOF
4862/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004863#include <ac_nonexistent.h>
4864_ACEOF
4865if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4867 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004868 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004869 rm -f conftest.er1
4870 cat conftest.err >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } >/dev/null; then
4873 if test -s conftest.err; then
4874 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00004875 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004876 else
4877 ac_cpp_err=
4878 fi
4879else
4880 ac_cpp_err=yes
4881fi
4882if test -z "$ac_cpp_err"; then
4883 # Broken: success on invalid input.
4884continue
4885else
4886 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004887sed 's/^/| /' conftest.$ac_ext >&5
4888
John Criswell47fdd832003-07-14 16:52:07 +00004889 # Passes both tests.
4890ac_preproc_ok=:
4891break
4892fi
4893rm -f conftest.err conftest.$ac_ext
4894
4895done
4896# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4897rm -f conftest.err conftest.$ac_ext
4898if $ac_preproc_ok; then
4899 break
John Criswell7a73b802003-06-30 21:59:07 +00004900fi
4901
John Criswell47fdd832003-07-14 16:52:07 +00004902 done
4903 ac_cv_prog_CXXCPP=$CXXCPP
4904
4905fi
4906 CXXCPP=$ac_cv_prog_CXXCPP
4907else
4908 ac_cv_prog_CXXCPP=$CXXCPP
4909fi
4910echo "$as_me:$LINENO: result: $CXXCPP" >&5
4911echo "${ECHO_T}$CXXCPP" >&6
4912ac_preproc_ok=false
4913for ac_cxx_preproc_warn_flag in '' yes
4914do
4915 # Use a header file that comes with gcc, so configuring glibc
4916 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4918 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004919 # On the NeXT, cc -E runs the code through the compiler's parser,
4920 # not just through cpp. "Syntax error" is here to catch this case.
4921 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004922/* confdefs.h. */
4923_ACEOF
4924cat confdefs.h >>conftest.$ac_ext
4925cat >>conftest.$ac_ext <<_ACEOF
4926/* end confdefs.h. */
4927#ifdef __STDC__
4928# include <limits.h>
4929#else
4930# include <assert.h>
4931#endif
Reid Spencer2b51a082004-08-04 00:34:49 +00004932 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004933_ACEOF
4934if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4936 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004937 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } >/dev/null; then
4942 if test -s conftest.err; then
4943 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00004944 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004945 else
4946 ac_cpp_err=
4947 fi
4948else
4949 ac_cpp_err=yes
4950fi
4951if test -z "$ac_cpp_err"; then
4952 :
4953else
4954 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004955sed 's/^/| /' conftest.$ac_ext >&5
4956
John Criswell47fdd832003-07-14 16:52:07 +00004957 # Broken: fails on valid input.
4958continue
4959fi
4960rm -f conftest.err conftest.$ac_ext
4961
4962 # OK, works on sane cases. Now check whether non-existent headers
4963 # can be detected and how.
4964 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004965/* confdefs.h. */
4966_ACEOF
4967cat confdefs.h >>conftest.$ac_ext
4968cat >>conftest.$ac_ext <<_ACEOF
4969/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004970#include <ac_nonexistent.h>
4971_ACEOF
4972if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4974 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004975 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004976 rm -f conftest.er1
4977 cat conftest.err >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } >/dev/null; then
4980 if test -s conftest.err; then
4981 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00004982 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004983 else
4984 ac_cpp_err=
4985 fi
4986else
4987 ac_cpp_err=yes
4988fi
4989if test -z "$ac_cpp_err"; then
4990 # Broken: success on invalid input.
4991continue
4992else
4993 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004994sed 's/^/| /' conftest.$ac_ext >&5
4995
John Criswell47fdd832003-07-14 16:52:07 +00004996 # Passes both tests.
4997ac_preproc_ok=:
4998break
4999fi
5000rm -f conftest.err conftest.$ac_ext
5001
5002done
5003# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5004rm -f conftest.err conftest.$ac_ext
5005if $ac_preproc_ok; then
5006 :
5007else
John Criswell0c38eaf2003-09-10 15:17:25 +00005008 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5009See \`config.log' for more details." >&5
5010echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5011See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005012 { (exit 1); exit 1; }; }
5013fi
5014
5015ac_ext=cc
5016ac_cpp='$CXXCPP $CPPFLAGS'
5017ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5018ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5019ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5020
5021
5022ac_ext=f
5023ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5024ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5025ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5026if test -n "$ac_tool_prefix"; then
Reid Spencer2b51a082004-08-04 00:34:49 +00005027 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 +00005028 do
5029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5030set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5031echo "$as_me:$LINENO: checking for $ac_word" >&5
5032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5033if test "${ac_cv_prog_F77+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5035else
5036 if test -n "$F77"; then
5037 ac_cv_prog_F77="$F77" # Let the user override the test.
5038else
5039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040for as_dir in $PATH
5041do
5042 IFS=$as_save_IFS
5043 test -z "$as_dir" && as_dir=.
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5046 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 break 2
5049 fi
5050done
5051done
5052
5053fi
5054fi
5055F77=$ac_cv_prog_F77
5056if test -n "$F77"; then
5057 echo "$as_me:$LINENO: result: $F77" >&5
5058echo "${ECHO_T}$F77" >&6
5059else
5060 echo "$as_me:$LINENO: result: no" >&5
5061echo "${ECHO_T}no" >&6
5062fi
5063
5064 test -n "$F77" && break
5065 done
5066fi
5067if test -z "$F77"; then
5068 ac_ct_F77=$F77
Reid Spencer2b51a082004-08-04 00:34:49 +00005069 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 +00005070do
5071 # Extract the first word of "$ac_prog", so it can be a program name with args.
5072set dummy $ac_prog; ac_word=$2
5073echo "$as_me:$LINENO: checking for $ac_word" >&5
5074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5075if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5077else
5078 if test -n "$ac_ct_F77"; then
5079 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5080else
5081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082for as_dir in $PATH
5083do
5084 IFS=$as_save_IFS
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5088 ac_cv_prog_ac_ct_F77="$ac_prog"
5089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 break 2
5091 fi
5092done
5093done
5094
5095fi
5096fi
5097ac_ct_F77=$ac_cv_prog_ac_ct_F77
5098if test -n "$ac_ct_F77"; then
5099 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5100echo "${ECHO_T}$ac_ct_F77" >&6
5101else
5102 echo "$as_me:$LINENO: result: no" >&5
5103echo "${ECHO_T}no" >&6
5104fi
5105
5106 test -n "$ac_ct_F77" && break
5107done
5108
5109 F77=$ac_ct_F77
5110fi
5111
5112
5113# Provide some information about the compiler.
Reid Spencerde8c47f2004-08-29 19:35:28 +00005114echo "$as_me:5114:" \
John Criswell47fdd832003-07-14 16:52:07 +00005115 "checking for Fortran 77 compiler version" >&5
5116ac_compiler=`set X $ac_compile; echo $2`
5117{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5118 (eval $ac_compiler --version </dev/null >&5) 2>&5
5119 ac_status=$?
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); }
5122{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5123 (eval $ac_compiler -v </dev/null >&5) 2>&5
5124 ac_status=$?
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); }
5127{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5128 (eval $ac_compiler -V </dev/null >&5) 2>&5
5129 ac_status=$?
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }
Reid Spencer2b51a082004-08-04 00:34:49 +00005132rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +00005133
5134# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2b51a082004-08-04 00:34:49 +00005135# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +00005136ac_save_ext=$ac_ext
5137ac_ext=F
5138echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5139echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5140if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5142else
5143 cat >conftest.$ac_ext <<_ACEOF
5144 program main
5145#ifndef __GNUC__
5146 choke me
5147#endif
5148
5149 end
5150_ACEOF
5151rm -f conftest.$ac_objext
5152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00005153 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005154 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00005155 grep -v '^ *+' conftest.er1 >conftest.err
5156 rm -f conftest.er1
5157 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00005160 { ac_try='test -z "$ac_f77_werror_flag"
5161 || test ! -s conftest.err'
5162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5163 (eval $ac_try) 2>&5
5164 ac_status=$?
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }; } &&
5167 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 (eval $ac_try) 2>&5
5170 ac_status=$?
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; }; then
5173 ac_compiler_gnu=yes
5174else
5175 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005176sed 's/^/| /' conftest.$ac_ext >&5
5177
John Criswell47fdd832003-07-14 16:52:07 +00005178ac_compiler_gnu=no
5179fi
Reid Spencer2b51a082004-08-04 00:34:49 +00005180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005181ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5182
5183fi
5184echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5185echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5186ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +00005187ac_test_FFLAGS=${FFLAGS+set}
5188ac_save_FFLAGS=$FFLAGS
5189FFLAGS=
5190echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5191echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5192if test "${ac_cv_prog_f77_g+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5194else
5195 FFLAGS=-g
5196cat >conftest.$ac_ext <<_ACEOF
5197 program main
5198
5199 end
5200_ACEOF
5201rm -f conftest.$ac_objext
5202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00005203 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005204 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00005205 grep -v '^ *+' conftest.er1 >conftest.err
5206 rm -f conftest.er1
5207 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00005210 { ac_try='test -z "$ac_f77_werror_flag"
5211 || test ! -s conftest.err'
5212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 (eval $ac_try) 2>&5
5214 ac_status=$?
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }; } &&
5217 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 (eval $ac_try) 2>&5
5220 ac_status=$?
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; }; then
5223 ac_cv_prog_f77_g=yes
5224else
5225 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005226sed 's/^/| /' conftest.$ac_ext >&5
5227
John Criswell47fdd832003-07-14 16:52:07 +00005228ac_cv_prog_f77_g=no
5229fi
Reid Spencer2b51a082004-08-04 00:34:49 +00005230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005231
5232fi
5233echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5234echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5235if test "$ac_test_FFLAGS" = set; then
5236 FFLAGS=$ac_save_FFLAGS
5237elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2b51a082004-08-04 00:34:49 +00005238 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005239 FFLAGS="-g -O2"
5240 else
5241 FFLAGS="-g"
5242 fi
5243else
Reid Spencer2b51a082004-08-04 00:34:49 +00005244 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005245 FFLAGS="-O2"
5246 else
5247 FFLAGS=
5248 fi
5249fi
Reid Spencer2b51a082004-08-04 00:34:49 +00005250
5251G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +00005252ac_ext=c
5253ac_cpp='$CPP $CPPFLAGS'
5254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256ac_compiler_gnu=$ac_cv_c_compiler_gnu
5257
5258
5259
5260# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5261
5262# find the maximum length of command line arguments
5263echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5264echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5265if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5267else
5268 i=0
5269 testring="ABCD"
5270
5271 case $build_os in
5272 msdosdjgpp*)
5273 # On DJGPP, this test can blow up pretty badly due to problems in libc
5274 # (any single argument exceeding 2000 bytes causes a buffer overrun
5275 # during glob expansion). Even if it were fixed, the result of this
5276 # check would be larger than it should be.
5277 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5278 ;;
5279
5280 gnu*)
5281 # Under GNU Hurd, this test is not required because there is
5282 # no limit to the length of command line arguments.
5283 # Libtool will interpret -1 as no limit whatsoever
5284 lt_cv_sys_max_cmd_len=-1;
5285 ;;
5286
5287 cygwin* | mingw*)
5288 # On Win9x/ME, this test blows up -- it succeeds, but takes
5289 # about 5 minutes as the teststring grows exponentially.
5290 # Worse, since 9x/ME are not pre-emptively multitasking,
5291 # you end up with a "frozen" computer, even though with patience
5292 # the test eventually succeeds (with a max line length of 256k).
5293 # Instead, let's just punt: use the minimum linelength reported by
5294 # all of the supported platforms: 8192 (on NT/2K/XP).
5295 lt_cv_sys_max_cmd_len=8192;
5296 ;;
5297
5298 *)
5299 # If test is not a shell built-in, we'll probably end up computing a
5300 # maximum length that is only half of the actual maximum length, but
5301 # we can't tell.
5302 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5303 = "XX$testring") >/dev/null 2>&1 &&
5304 new_result=`expr "X$testring" : ".*" 2>&1` &&
5305 lt_cv_sys_max_cmd_len=$new_result &&
5306 test $i != 17 # 1/2 MB should be enough
5307 do
5308 i=`expr $i + 1`
5309 testring=$testring$testring
5310 done
5311 testring=
5312 # Add a significant safety factor because C++ compilers can tack on massive
5313 # amounts of additional arguments before passing them to the linker.
5314 # It appears as though 1/2 is a usable value.
5315 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5316 ;;
5317 esac
5318
5319fi
5320
5321if test -n $lt_cv_sys_max_cmd_len ; then
5322 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5323echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5324else
5325 echo "$as_me:$LINENO: result: none" >&5
5326echo "${ECHO_T}none" >&6
5327fi
5328
5329
5330
5331
5332# Check for command to grab the raw symbol name followed by C symbol from nm.
5333echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5334echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5335if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5337else
5338
5339# These are sane defaults that work on at least a few old systems.
5340# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5341
5342# Character class describing NM global symbol codes.
5343symcode='[BCDEGRST]'
5344
5345# Regexp to match symbols that can be accessed directly from C.
5346sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5347
5348# Transform the above into a raw symbol and a C symbol.
5349symxfrm='\1 \2\3 \3'
5350
5351# Transform an extracted symbol line into a proper C declaration
5352lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5353
5354# Transform an extracted symbol line into symbol name and symbol address
5355lt_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'"
5356
5357# Define system-specific variables.
5358case $host_os in
5359aix*)
5360 symcode='[BCDT]'
5361 ;;
5362cygwin* | mingw* | pw32*)
5363 symcode='[ABCDGISTW]'
5364 ;;
5365hpux*) # Its linker distinguishes data from code symbols
5366 if test "$host_cpu" = ia64; then
5367 symcode='[ABCDEGRST]'
5368 fi
5369 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5370 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'"
5371 ;;
5372irix* | nonstopux*)
5373 symcode='[BCDEGRST]'
5374 ;;
5375osf*)
5376 symcode='[BCDEGQRST]'
5377 ;;
5378solaris* | sysv5*)
5379 symcode='[BDT]'
5380 ;;
5381sysv4)
5382 symcode='[DFNSTU]'
5383 ;;
5384esac
5385
5386# Handle CRLF in mingw tool chain
5387opt_cr=
5388case $build_os in
5389mingw*)
5390 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5391 ;;
5392esac
5393
5394# If we're using GNU nm, then use its standard symbol codes.
5395case `$NM -V 2>&1` in
5396*GNU* | *'with BFD'*)
5397 symcode='[ABCDGISTW]' ;;
5398esac
5399
5400# Try without a prefix undercore, then with it.
5401for ac_symprfx in "" "_"; do
5402
5403 # Write the raw and C identifiers.
5404 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5405
5406 # Check to see that the pipe works correctly.
5407 pipe_works=no
5408
5409 rm -f conftest*
5410 cat > conftest.$ac_ext <<EOF
5411#ifdef __cplusplus
5412extern "C" {
5413#endif
5414char nm_test_var;
5415void nm_test_func(){}
5416#ifdef __cplusplus
5417}
5418#endif
5419int main(){nm_test_var='a';nm_test_func();return(0);}
5420EOF
5421
5422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5423 (eval $ac_compile) 2>&5
5424 ac_status=$?
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); }; then
5427 # Now try to grab the symbols.
5428 nlist=conftest.nm
5429 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5430 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5431 ac_status=$?
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); } && test -s "$nlist"; then
5434 # Try sorting and uniquifying the output.
5435 if sort "$nlist" | uniq > "$nlist"T; then
5436 mv -f "$nlist"T "$nlist"
5437 else
5438 rm -f "$nlist"T
5439 fi
5440
5441 # Make sure that we snagged all the symbols we need.
5442 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5443 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5444 cat <<EOF > conftest.$ac_ext
5445#ifdef __cplusplus
5446extern "C" {
5447#endif
5448
5449EOF
5450 # Now generate the symbol file.
5451 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5452
5453 cat <<EOF >> conftest.$ac_ext
5454#if defined (__STDC__) && __STDC__
5455# define lt_ptr_t void *
5456#else
5457# define lt_ptr_t char *
5458# define const
5459#endif
5460
5461/* The mapping between symbol names and symbols. */
5462const struct {
5463 const char *name;
5464 lt_ptr_t address;
5465}
5466lt_preloaded_symbols[] =
5467{
5468EOF
5469 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5470 cat <<\EOF >> conftest.$ac_ext
5471 {0, (lt_ptr_t) 0}
5472};
5473
5474#ifdef __cplusplus
5475}
5476#endif
5477EOF
5478 # Now try linking the two files.
5479 mv conftest.$ac_objext conftstm.$ac_objext
5480 lt_save_LIBS="$LIBS"
5481 lt_save_CFLAGS="$CFLAGS"
5482 LIBS="conftstm.$ac_objext"
5483 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5485 (eval $ac_link) 2>&5
5486 ac_status=$?
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5489 pipe_works=yes
5490 fi
5491 LIBS="$lt_save_LIBS"
5492 CFLAGS="$lt_save_CFLAGS"
5493 else
5494 echo "cannot find nm_test_func in $nlist" >&5
5495 fi
5496 else
5497 echo "cannot find nm_test_var in $nlist" >&5
5498 fi
5499 else
5500 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5501 fi
5502 else
5503 echo "$progname: failed program was:" >&5
5504 cat conftest.$ac_ext >&5
5505 fi
5506 rm -f conftest* conftst*
5507
5508 # Do not use the global_symbol_pipe unless it works.
5509 if test "$pipe_works" = yes; then
5510 break
5511 else
5512 lt_cv_sys_global_symbol_pipe=
5513 fi
5514done
5515
5516fi
5517
5518if test -z "$lt_cv_sys_global_symbol_pipe"; then
5519 lt_cv_sys_global_symbol_to_cdecl=
5520fi
5521if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5522 echo "$as_me:$LINENO: result: failed" >&5
5523echo "${ECHO_T}failed" >&6
5524else
5525 echo "$as_me:$LINENO: result: ok" >&5
5526echo "${ECHO_T}ok" >&6
5527fi
5528
5529echo "$as_me:$LINENO: checking for objdir" >&5
5530echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5531if test "${lt_cv_objdir+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5533else
5534 rm -f .libs 2>/dev/null
5535mkdir .libs 2>/dev/null
5536if test -d .libs; then
5537 lt_cv_objdir=.libs
5538else
5539 # MS-DOS does not allow filenames that begin with a dot.
5540 lt_cv_objdir=_libs
5541fi
5542rmdir .libs 2>/dev/null
5543fi
5544echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5545echo "${ECHO_T}$lt_cv_objdir" >&6
5546objdir=$lt_cv_objdir
5547
5548
5549
5550
5551
5552case $host_os in
5553aix3*)
5554 # AIX sometimes has problems with the GCC collect2 program. For some
5555 # reason, if we set the COLLECT_NAMES environment variable, the problems
5556 # vanish in a puff of smoke.
5557 if test "X${COLLECT_NAMES+set}" != Xset; then
5558 COLLECT_NAMES=
5559 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005560 fi
5561 ;;
5562esac
5563
John Criswell47fdd832003-07-14 16:52:07 +00005564# Sed substitution that helps us do robust quoting. It backslashifies
5565# metacharacters that are still active within double-quoted strings.
5566Xsed='sed -e s/^X//'
5567sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5568
5569# Same as above, but do not quote variable references.
5570double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5571
5572# Sed substitution to delay expansion of an escaped shell variable in a
5573# double_quote_subst'ed string.
5574delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5575
5576# Sed substitution to avoid accidental globbing in evaled expressions
5577no_glob_subst='s/\*/\\\*/g'
5578
5579# Constants:
5580rm="rm -f"
5581
5582# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005583default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005584can_build_shared=yes
5585
5586# All known linkers require a `.a' archive for static linking (except M$VC,
5587# which needs '.lib').
5588libext=a
5589ltmain="$ac_aux_dir/ltmain.sh"
5590ofile="$default_ofile"
5591with_gnu_ld="$lt_cv_prog_gnu_ld"
5592
5593if test -n "$ac_tool_prefix"; then
5594 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5595set dummy ${ac_tool_prefix}ar; ac_word=$2
5596echo "$as_me:$LINENO: checking for $ac_word" >&5
5597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5598if test "${ac_cv_prog_AR+set}" = set; then
5599 echo $ECHO_N "(cached) $ECHO_C" >&6
5600else
5601 if test -n "$AR"; then
5602 ac_cv_prog_AR="$AR" # Let the user override the test.
5603else
5604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605for as_dir in $PATH
5606do
5607 IFS=$as_save_IFS
5608 test -z "$as_dir" && as_dir=.
5609 for ac_exec_ext in '' $ac_executable_extensions; do
5610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5611 ac_cv_prog_AR="${ac_tool_prefix}ar"
5612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5613 break 2
5614 fi
5615done
5616done
5617
5618fi
5619fi
5620AR=$ac_cv_prog_AR
5621if test -n "$AR"; then
5622 echo "$as_me:$LINENO: result: $AR" >&5
5623echo "${ECHO_T}$AR" >&6
5624else
5625 echo "$as_me:$LINENO: result: no" >&5
5626echo "${ECHO_T}no" >&6
5627fi
5628
5629fi
5630if test -z "$ac_cv_prog_AR"; then
5631 ac_ct_AR=$AR
5632 # Extract the first word of "ar", so it can be a program name with args.
5633set dummy ar; ac_word=$2
5634echo "$as_me:$LINENO: checking for $ac_word" >&5
5635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5636if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5638else
5639 if test -n "$ac_ct_AR"; then
5640 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5641else
5642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643for as_dir in $PATH
5644do
5645 IFS=$as_save_IFS
5646 test -z "$as_dir" && as_dir=.
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5649 ac_cv_prog_ac_ct_AR="ar"
5650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 break 2
5652 fi
5653done
5654done
5655
5656 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5657fi
5658fi
5659ac_ct_AR=$ac_cv_prog_ac_ct_AR
5660if test -n "$ac_ct_AR"; then
5661 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5662echo "${ECHO_T}$ac_ct_AR" >&6
5663else
5664 echo "$as_me:$LINENO: result: no" >&5
5665echo "${ECHO_T}no" >&6
5666fi
5667
5668 AR=$ac_ct_AR
5669else
5670 AR="$ac_cv_prog_AR"
5671fi
5672
John Criswell7a73b802003-06-30 21:59:07 +00005673if test -n "$ac_tool_prefix"; then
5674 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5675set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5676echo "$as_me:$LINENO: checking for $ac_word" >&5
5677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5678if test "${ac_cv_prog_RANLIB+set}" = set; then
5679 echo $ECHO_N "(cached) $ECHO_C" >&6
5680else
5681 if test -n "$RANLIB"; then
5682 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5683else
5684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685for as_dir in $PATH
5686do
5687 IFS=$as_save_IFS
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5691 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 break 2
5694 fi
5695done
5696done
5697
5698fi
5699fi
5700RANLIB=$ac_cv_prog_RANLIB
5701if test -n "$RANLIB"; then
5702 echo "$as_me:$LINENO: result: $RANLIB" >&5
5703echo "${ECHO_T}$RANLIB" >&6
5704else
5705 echo "$as_me:$LINENO: result: no" >&5
5706echo "${ECHO_T}no" >&6
5707fi
5708
5709fi
5710if test -z "$ac_cv_prog_RANLIB"; then
5711 ac_ct_RANLIB=$RANLIB
5712 # Extract the first word of "ranlib", so it can be a program name with args.
5713set dummy ranlib; ac_word=$2
5714echo "$as_me:$LINENO: checking for $ac_word" >&5
5715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5716if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5718else
5719 if test -n "$ac_ct_RANLIB"; then
5720 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5721else
5722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723for as_dir in $PATH
5724do
5725 IFS=$as_save_IFS
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5729 ac_cv_prog_ac_ct_RANLIB="ranlib"
5730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 break 2
5732 fi
5733done
5734done
5735
5736 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5737fi
5738fi
5739ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5740if test -n "$ac_ct_RANLIB"; then
5741 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5742echo "${ECHO_T}$ac_ct_RANLIB" >&6
5743else
5744 echo "$as_me:$LINENO: result: no" >&5
5745echo "${ECHO_T}no" >&6
5746fi
5747
5748 RANLIB=$ac_ct_RANLIB
5749else
5750 RANLIB="$ac_cv_prog_RANLIB"
5751fi
5752
5753if test -n "$ac_tool_prefix"; then
5754 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5755set dummy ${ac_tool_prefix}strip; ac_word=$2
5756echo "$as_me:$LINENO: checking for $ac_word" >&5
5757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5758if test "${ac_cv_prog_STRIP+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5760else
5761 if test -n "$STRIP"; then
5762 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5763else
5764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765for as_dir in $PATH
5766do
5767 IFS=$as_save_IFS
5768 test -z "$as_dir" && as_dir=.
5769 for ac_exec_ext in '' $ac_executable_extensions; do
5770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5773 break 2
5774 fi
5775done
5776done
5777
5778fi
5779fi
5780STRIP=$ac_cv_prog_STRIP
5781if test -n "$STRIP"; then
5782 echo "$as_me:$LINENO: result: $STRIP" >&5
5783echo "${ECHO_T}$STRIP" >&6
5784else
5785 echo "$as_me:$LINENO: result: no" >&5
5786echo "${ECHO_T}no" >&6
5787fi
5788
5789fi
5790if test -z "$ac_cv_prog_STRIP"; then
5791 ac_ct_STRIP=$STRIP
5792 # Extract the first word of "strip", so it can be a program name with args.
5793set dummy strip; ac_word=$2
5794echo "$as_me:$LINENO: checking for $ac_word" >&5
5795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5796if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5798else
5799 if test -n "$ac_ct_STRIP"; then
5800 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5801else
5802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803for as_dir in $PATH
5804do
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_ac_ct_STRIP="strip"
5810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 break 2
5812 fi
5813done
5814done
5815
5816 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5817fi
5818fi
5819ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5820if test -n "$ac_ct_STRIP"; then
5821 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5822echo "${ECHO_T}$ac_ct_STRIP" >&6
5823else
5824 echo "$as_me:$LINENO: result: no" >&5
5825echo "${ECHO_T}no" >&6
5826fi
5827
5828 STRIP=$ac_ct_STRIP
5829else
5830 STRIP="$ac_cv_prog_STRIP"
5831fi
5832
5833
John Criswell7a73b802003-06-30 21:59:07 +00005834old_CC="$CC"
5835old_CFLAGS="$CFLAGS"
5836
5837# Set sane defaults for various variables
5838test -z "$AR" && AR=ar
5839test -z "$AR_FLAGS" && AR_FLAGS=cru
5840test -z "$AS" && AS=as
5841test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005842test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005843test -z "$DLLTOOL" && DLLTOOL=dlltool
5844test -z "$LD" && LD=ld
5845test -z "$LN_S" && LN_S="ln -s"
5846test -z "$MAGIC_CMD" && MAGIC_CMD=file
5847test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005848test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005849test -z "$OBJDUMP" && OBJDUMP=objdump
5850test -z "$RANLIB" && RANLIB=:
5851test -z "$STRIP" && STRIP=:
5852test -z "$ac_objext" && ac_objext=o
5853
John Criswell7a73b802003-06-30 21:59:07 +00005854# Determine commands to create old-style static archives.
5855old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5856old_postinstall_cmds='chmod 644 $oldlib'
5857old_postuninstall_cmds=
5858
5859if test -n "$RANLIB"; then
5860 case $host_os in
5861 openbsd*)
5862 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5863 ;;
5864 *)
5865 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5866 ;;
5867 esac
5868 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5869fi
5870
John Criswell47fdd832003-07-14 16:52:07 +00005871# Only perform the check for file, if the check method requires it
5872case $deplibs_check_method in
5873file_magic*)
5874 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5875 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5876echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5877if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005879else
John Criswell47fdd832003-07-14 16:52:07 +00005880 case $MAGIC_CMD in
5881[\\/*] | ?:[\\/]*)
5882 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5883 ;;
5884*)
5885 lt_save_MAGIC_CMD="$MAGIC_CMD"
5886 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5887 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5888 for ac_dir in $ac_dummy; do
5889 IFS="$lt_save_ifs"
5890 test -z "$ac_dir" && ac_dir=.
5891 if test -f $ac_dir/${ac_tool_prefix}file; then
5892 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5893 if test -n "$file_magic_test_file"; then
5894 case $deplibs_check_method in
5895 "file_magic "*)
5896 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5897 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5898 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5899 $EGREP "$file_magic_regex" > /dev/null; then
5900 :
5901 else
5902 cat <<EOF 1>&2
5903
5904*** Warning: the command libtool uses to detect shared libraries,
5905*** $file_magic_cmd, produces output that libtool cannot recognize.
5906*** The result is that libtool may fail to recognize shared libraries
5907*** as such. This will affect the creation of libtool libraries that
5908*** depend on shared libraries, but programs linked with such libtool
5909*** libraries will work regardless of this problem. Nevertheless, you
5910*** may want to report the problem to your system manager and/or to
5911*** bug-libtool@gnu.org
5912
5913EOF
5914 fi ;;
5915 esac
5916 fi
5917 break
5918 fi
5919 done
5920 IFS="$lt_save_ifs"
5921 MAGIC_CMD="$lt_save_MAGIC_CMD"
5922 ;;
5923esac
John Criswell7a73b802003-06-30 21:59:07 +00005924fi
John Criswell7a73b802003-06-30 21:59:07 +00005925
John Criswell47fdd832003-07-14 16:52:07 +00005926MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5927if test -n "$MAGIC_CMD"; then
5928 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5929echo "${ECHO_T}$MAGIC_CMD" >&6
5930else
5931 echo "$as_me:$LINENO: result: no" >&5
5932echo "${ECHO_T}no" >&6
5933fi
John Criswell7a73b802003-06-30 21:59:07 +00005934
John Criswell47fdd832003-07-14 16:52:07 +00005935if test -z "$lt_cv_path_MAGIC_CMD"; then
5936 if test -n "$ac_tool_prefix"; then
5937 echo "$as_me:$LINENO: checking for file" >&5
5938echo $ECHO_N "checking for file... $ECHO_C" >&6
5939if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5941else
5942 case $MAGIC_CMD in
5943[\\/*] | ?:[\\/]*)
5944 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5945 ;;
5946*)
5947 lt_save_MAGIC_CMD="$MAGIC_CMD"
5948 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5949 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5950 for ac_dir in $ac_dummy; do
5951 IFS="$lt_save_ifs"
5952 test -z "$ac_dir" && ac_dir=.
5953 if test -f $ac_dir/file; then
5954 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5955 if test -n "$file_magic_test_file"; then
5956 case $deplibs_check_method in
5957 "file_magic "*)
5958 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5959 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5960 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5961 $EGREP "$file_magic_regex" > /dev/null; then
5962 :
5963 else
5964 cat <<EOF 1>&2
5965
5966*** Warning: the command libtool uses to detect shared libraries,
5967*** $file_magic_cmd, produces output that libtool cannot recognize.
5968*** The result is that libtool may fail to recognize shared libraries
5969*** as such. This will affect the creation of libtool libraries that
5970*** depend on shared libraries, but programs linked with such libtool
5971*** libraries will work regardless of this problem. Nevertheless, you
5972*** may want to report the problem to your system manager and/or to
5973*** bug-libtool@gnu.org
5974
5975EOF
5976 fi ;;
5977 esac
5978 fi
5979 break
5980 fi
5981 done
5982 IFS="$lt_save_ifs"
5983 MAGIC_CMD="$lt_save_MAGIC_CMD"
5984 ;;
5985esac
5986fi
5987
5988MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5989if test -n "$MAGIC_CMD"; then
5990 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5991echo "${ECHO_T}$MAGIC_CMD" >&6
5992else
5993 echo "$as_me:$LINENO: result: no" >&5
5994echo "${ECHO_T}no" >&6
5995fi
5996
5997 else
5998 MAGIC_CMD=:
5999 fi
6000fi
6001
6002 fi
6003 ;;
6004esac
6005
6006enable_dlopen=no
6007enable_win32_dll=no
6008
6009# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6010if test "${enable_libtool_lock+set}" = set; then
6011 enableval="$enable_libtool_lock"
6012
6013fi;
6014test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6015
John Criswell7a73b802003-06-30 21:59:07 +00006016
6017# Check whether --with-pic or --without-pic was given.
6018if test "${with_pic+set}" = set; then
6019 withval="$with_pic"
6020 pic_mode="$withval"
6021else
6022 pic_mode=default
6023fi;
6024test -z "$pic_mode" && pic_mode=default
6025
John Criswell47fdd832003-07-14 16:52:07 +00006026# Use C for the default configuration in the libtool script
6027tagname=
6028lt_save_CC="$CC"
6029ac_ext=c
6030ac_cpp='$CPP $CPPFLAGS'
6031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6033ac_compiler_gnu=$ac_cv_c_compiler_gnu
6034
6035
6036# Source file extension for C test sources.
6037ac_ext=c
6038
6039# Object file extension for compiled C test sources.
6040objext=o
6041objext=$objext
6042
6043# Code to be used in simple compile tests
6044lt_simple_compile_test_code="int some_variable = 0;\n"
6045
6046# Code to be used in simple link tests
6047lt_simple_link_test_code='int main(){return(0);}\n'
6048
6049
6050# If no C compiler was specified, use CC.
6051LTCC=${LTCC-"$CC"}
6052
6053# Allow CC to be a program name with arguments.
6054compiler=$CC
6055
6056
6057#
6058# Check for any special shared library compilation flags.
6059#
6060lt_prog_cc_shlib=
6061if test "$GCC" = no; then
6062 case $host_os in
6063 sco3.2v5*)
6064 lt_prog_cc_shlib='-belf'
6065 ;;
6066 esac
6067fi
6068if test -n "$lt_prog_cc_shlib"; then
6069 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6070echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6071 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6072 else
6073 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6074echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6075 lt_cv_prog_cc_can_build_shared=no
6076 fi
6077fi
6078
6079
6080#
6081# Check to make sure the static flag actually works.
6082#
6083echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6084echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6085if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006086 echo $ECHO_N "(cached) $ECHO_C" >&6
6087else
John Criswell47fdd832003-07-14 16:52:07 +00006088 lt_prog_compiler_static_works=no
6089 save_LDFLAGS="$LDFLAGS"
6090 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6091 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6092 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6093 # The compiler can only warn and ignore the option if not recognized
6094 # So say no if there are warnings
6095 if test -s conftest.err; then
6096 # Append any errors to the config.log.
6097 cat conftest.err 1>&5
6098 else
6099 lt_prog_compiler_static_works=yes
6100 fi
6101 fi
6102 $rm conftest*
6103 LDFLAGS="$save_LDFLAGS"
6104
6105fi
6106echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6107echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6108
6109if test x"$lt_prog_compiler_static_works" = xyes; then
6110 :
6111else
6112 lt_prog_compiler_static=
6113fi
6114
6115
6116
Reid Spencer2b51a082004-08-04 00:34:49 +00006117## CAVEAT EMPTOR:
6118## There is no encapsulation within the following macros, do not change
6119## the running order or otherwise move them around unless you know exactly
6120## what you are doing...
John Criswell47fdd832003-07-14 16:52:07 +00006121
6122lt_prog_compiler_no_builtin_flag=
6123
6124if test "$GCC" = yes; then
6125 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6126
6127 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6128echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6129if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6131else
6132 lt_cv_prog_compiler_rtti_exceptions=no
6133 ac_outfile=conftest.$ac_objext
6134 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6135 lt_compiler_flag="-fno-rtti -fno-exceptions"
6136 # Insert the option either (1) after the last *FLAGS variable, or
6137 # (2) before a word containing "conftest.", or (3) at the end.
6138 # Note that $ac_compile itself does not contain backslashes and begins
6139 # with a dollar sign (not a hyphen), so the echo should work correctly.
6140 # The option is referenced via a variable to avoid confusing sed.
6141 lt_compile=`echo "$ac_compile" | $SED \
6142 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6144 -e 's:$: $lt_compiler_flag:'`
Reid Spencerde8c47f2004-08-29 19:35:28 +00006145 (eval echo "\"\$as_me:6145: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006146 (eval "$lt_compile" 2>conftest.err)
6147 ac_status=$?
6148 cat conftest.err >&5
Reid Spencerde8c47f2004-08-29 19:35:28 +00006149 echo "$as_me:6149: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006150 if (exit $ac_status) && test -s "$ac_outfile"; then
6151 # The compiler can only warn and ignore the option if not recognized
6152 # So say no if there are warnings
6153 if test ! -s conftest.err; then
6154 lt_cv_prog_compiler_rtti_exceptions=yes
6155 fi
6156 fi
6157 $rm conftest*
6158
6159fi
6160echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6161echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6162
6163if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6164 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6165else
6166 :
6167fi
6168
6169fi
6170
6171lt_prog_compiler_wl=
6172lt_prog_compiler_pic=
6173lt_prog_compiler_static=
6174
6175echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6176echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006177
6178 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006179 lt_prog_compiler_wl='-Wl,'
6180 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006181
6182 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006183 aix*)
6184 # All AIX code is PIC.
6185 if test "$host_cpu" = ia64; then
6186 # AIX 5 now supports IA64 processor
6187 lt_prog_compiler_static='-Bstatic'
6188 fi
John Criswell7a73b802003-06-30 21:59:07 +00006189 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006190
John Criswell7a73b802003-06-30 21:59:07 +00006191 amigaos*)
6192 # FIXME: we need at least 68020 code to build shared libraries, but
6193 # adding the `-m68020' flag to GCC prevents building anything better,
6194 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006195 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006196 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006197
6198 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006199 # PIC is the default for these OSes.
6200 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006201
6202 mingw* | pw32* | os2*)
6203 # This hack is so that the source file can tell whether it is being
6204 # built for inclusion in a dll (and should export symbols for example).
6205 lt_prog_compiler_pic='-DDLL_EXPORT'
6206 ;;
6207
John Criswell7a73b802003-06-30 21:59:07 +00006208 darwin* | rhapsody*)
6209 # PIC is the default on this platform
6210 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006211 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006212 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006213
6214 msdosdjgpp*)
6215 # Just because we use GCC doesn't mean we suddenly get shared libraries
6216 # on systems that don't support them.
6217 lt_prog_compiler_can_build_shared=no
6218 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006219 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006220
John Criswell7a73b802003-06-30 21:59:07 +00006221 sysv4*MP*)
6222 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006223 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006224 fi
6225 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006226
6227 hpux*)
6228 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6229 # not for PA HP-UX.
6230 case "$host_cpu" in
6231 hppa*64*|ia64*)
6232 # +Z the default
6233 ;;
6234 *)
6235 lt_prog_compiler_pic='-fPIC'
6236 ;;
6237 esac
6238 ;;
6239
John Criswell7a73b802003-06-30 21:59:07 +00006240 *)
John Criswell47fdd832003-07-14 16:52:07 +00006241 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006242 ;;
6243 esac
6244 else
John Criswell47fdd832003-07-14 16:52:07 +00006245 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006246 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006247 aix*)
6248 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006249 if test "$host_cpu" = ia64; then
6250 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006251 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006252 else
John Criswell47fdd832003-07-14 16:52:07 +00006253 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006254 fi
6255 ;;
6256
John Criswell47fdd832003-07-14 16:52:07 +00006257 mingw* | pw32* | os2*)
6258 # This hack is so that the source file can tell whether it is being
6259 # built for inclusion in a dll (and should export symbols for example).
6260 lt_prog_compiler_pic='-DDLL_EXPORT'
6261 ;;
6262
John Criswell7a73b802003-06-30 21:59:07 +00006263 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006264 lt_prog_compiler_wl='-Wl,'
6265 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6266 # not for PA HP-UX.
6267 case "$host_cpu" in
6268 hppa*64*|ia64*)
6269 # +Z the default
6270 ;;
6271 *)
6272 lt_prog_compiler_pic='+Z'
6273 ;;
6274 esac
6275 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6276 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006277 ;;
6278
John Criswell47fdd832003-07-14 16:52:07 +00006279 irix5* | irix6* | nonstopux*)
6280 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006281 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006282 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006283 ;;
6284
6285 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006286 lt_prog_compiler_pic='-KPIC'
6287 lt_prog_compiler_static='-Bstatic'
6288 ;;
6289
6290 linux*)
6291 case $CC in
6292 icc|ecc)
6293 lt_prog_compiler_wl='-Wl,'
6294 lt_prog_compiler_pic='-KPIC'
6295 lt_prog_compiler_static='-static'
6296 ;;
6297 ccc)
6298 lt_prog_compiler_wl='-Wl,'
6299 # All Alpha code is PIC.
6300 lt_prog_compiler_static='-non_shared'
6301 ;;
6302 esac
John Criswell7a73b802003-06-30 21:59:07 +00006303 ;;
6304
6305 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006306 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006307 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006308 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006309 ;;
6310
6311 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006312 lt_prog_compiler_pic='-Kpic'
6313 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006314 ;;
6315
6316 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006317 lt_prog_compiler_wl='-Wl,'
6318 lt_prog_compiler_pic='-KPIC'
6319 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006320 ;;
6321
6322 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006323 lt_prog_compiler_wl='-Qoption ld '
6324 lt_prog_compiler_pic='-PIC'
6325 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006326 ;;
6327
6328 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006329 lt_prog_compiler_wl='-Wl,'
6330 lt_prog_compiler_pic='-KPIC'
6331 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006332 ;;
6333
6334 sysv4*MP*)
6335 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006336 lt_prog_compiler_pic='-Kconform_pic'
6337 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006338 fi
6339 ;;
6340
John Criswell47fdd832003-07-14 16:52:07 +00006341 uts4*)
6342 lt_prog_compiler_pic='-pic'
6343 lt_prog_compiler_static='-Bstatic'
6344 ;;
6345
John Criswell7a73b802003-06-30 21:59:07 +00006346 *)
John Criswell47fdd832003-07-14 16:52:07 +00006347 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006348 ;;
6349 esac
6350 fi
6351
John Criswell47fdd832003-07-14 16:52:07 +00006352echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6353echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006354
John Criswell47fdd832003-07-14 16:52:07 +00006355#
6356# Check to make sure the PIC flag actually works.
6357#
6358if test -n "$lt_prog_compiler_pic"; then
6359 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6360echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6361if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006362 echo $ECHO_N "(cached) $ECHO_C" >&6
6363else
John Criswell47fdd832003-07-14 16:52:07 +00006364 lt_prog_compiler_pic_works=no
6365 ac_outfile=conftest.$ac_objext
6366 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6367 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6368 # Insert the option either (1) after the last *FLAGS variable, or
6369 # (2) before a word containing "conftest.", or (3) at the end.
6370 # Note that $ac_compile itself does not contain backslashes and begins
6371 # with a dollar sign (not a hyphen), so the echo should work correctly.
6372 # The option is referenced via a variable to avoid confusing sed.
6373 lt_compile=`echo "$ac_compile" | $SED \
6374 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6376 -e 's:$: $lt_compiler_flag:'`
Reid Spencerde8c47f2004-08-29 19:35:28 +00006377 (eval echo "\"\$as_me:6377: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006378 (eval "$lt_compile" 2>conftest.err)
6379 ac_status=$?
6380 cat conftest.err >&5
Reid Spencerde8c47f2004-08-29 19:35:28 +00006381 echo "$as_me:6381: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006382 if (exit $ac_status) && test -s "$ac_outfile"; then
6383 # The compiler can only warn and ignore the option if not recognized
6384 # So say no if there are warnings
6385 if test ! -s conftest.err; then
6386 lt_prog_compiler_pic_works=yes
6387 fi
6388 fi
6389 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006390
John Criswell47fdd832003-07-14 16:52:07 +00006391fi
6392echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6393echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006394
John Criswell47fdd832003-07-14 16:52:07 +00006395if test x"$lt_prog_compiler_pic_works" = xyes; then
6396 case $lt_prog_compiler_pic in
6397 "" | " "*) ;;
6398 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6399 esac
John Criswell7a73b802003-06-30 21:59:07 +00006400else
John Criswell47fdd832003-07-14 16:52:07 +00006401 lt_prog_compiler_pic=
6402 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006403fi
6404
John Criswell7a73b802003-06-30 21:59:07 +00006405fi
John Criswell47fdd832003-07-14 16:52:07 +00006406case "$host_os" in
6407 # For platforms which do not support PIC, -DPIC is meaningless:
6408 *djgpp*)
6409 lt_prog_compiler_pic=
6410 ;;
6411 *)
6412 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6413 ;;
6414esac
John Criswell7a73b802003-06-30 21:59:07 +00006415
John Criswell7a73b802003-06-30 21:59:07 +00006416echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6417echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006418if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006419 echo $ECHO_N "(cached) $ECHO_C" >&6
6420else
John Criswell47fdd832003-07-14 16:52:07 +00006421 lt_cv_prog_compiler_c_o=no
6422 $rm -r conftest 2>/dev/null
6423 mkdir conftest
6424 cd conftest
6425 mkdir out
6426 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006427
John Criswell47fdd832003-07-14 16:52:07 +00006428 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6429 # that will create temporary files in the current directory regardless of
6430 # the output directory. Thus, making CWD read-only will cause this test
6431 # to fail, enabling locking or at least warning the user not to do parallel
6432 # builds.
6433 chmod -w .
6434
6435 lt_compiler_flag="-o out/conftest2.$ac_objext"
6436 # Insert the option either (1) after the last *FLAGS variable, or
6437 # (2) before a word containing "conftest.", or (3) at the end.
6438 # Note that $ac_compile itself does not contain backslashes and begins
6439 # with a dollar sign (not a hyphen), so the echo should work correctly.
6440 lt_compile=`echo "$ac_compile" | $SED \
6441 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6443 -e 's:$: $lt_compiler_flag:'`
Reid Spencerde8c47f2004-08-29 19:35:28 +00006444 (eval echo "\"\$as_me:6444: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006445 (eval "$lt_compile" 2>out/conftest.err)
6446 ac_status=$?
6447 cat out/conftest.err >&5
Reid Spencerde8c47f2004-08-29 19:35:28 +00006448 echo "$as_me:6448: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006449 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6450 then
6451 # The compiler can only warn and ignore the option if not recognized
6452 # So say no if there are warnings
6453 if test ! -s out/conftest.err; then
6454 lt_cv_prog_compiler_c_o=yes
6455 fi
6456 fi
6457 chmod u+w .
6458 $rm conftest* out/*
6459 rmdir out
6460 cd ..
6461 rmdir conftest
6462 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006463
6464fi
John Criswell47fdd832003-07-14 16:52:07 +00006465echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6466echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006467
John Criswell7a73b802003-06-30 21:59:07 +00006468
John Criswell7a73b802003-06-30 21:59:07 +00006469hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006470if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006471 # do not overwrite the value of need_locks provided by the user
6472 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6473echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6474 hard_links=yes
6475 $rm conftest*
6476 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6477 touch conftest.a
6478 ln conftest.a conftest.b 2>&5 || hard_links=no
6479 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6480 echo "$as_me:$LINENO: result: $hard_links" >&5
6481echo "${ECHO_T}$hard_links" >&6
6482 if test "$hard_links" = no; then
6483 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6484echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6485 need_locks=warn
6486 fi
6487else
6488 need_locks=no
6489fi
John Criswell7a73b802003-06-30 21:59:07 +00006490
John Criswell47fdd832003-07-14 16:52:07 +00006491echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6492echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6493
6494 runpath_var=
6495 allow_undefined_flag=
6496 enable_shared_with_static_runtimes=no
6497 archive_cmds=
6498 archive_expsym_cmds=
6499 old_archive_From_new_cmds=
6500 old_archive_from_expsyms_cmds=
6501 export_dynamic_flag_spec=
6502 whole_archive_flag_spec=
6503 thread_safe_flag_spec=
6504 hardcode_libdir_flag_spec=
6505 hardcode_libdir_flag_spec_ld=
6506 hardcode_libdir_separator=
6507 hardcode_direct=no
6508 hardcode_minus_L=no
6509 hardcode_shlibpath_var=unsupported
6510 link_all_deplibs=unknown
6511 hardcode_automatic=no
6512 module_cmds=
6513 module_expsym_cmds=
6514 always_export_symbols=no
6515 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6516 # include_expsyms should be a list of space-separated symbols to be *always*
6517 # included in the symbol list
6518 include_expsyms=
6519 # exclude_expsyms can be an extended regexp of symbols to exclude
6520 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6521 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6522 # as well as any symbol that contains `d'.
6523 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6524 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6525 # platforms (ab)use it in PIC code, but their linkers get confused if
6526 # the symbol is explicitly referenced. Since portable code cannot
6527 # rely on this symbol name, it's probably fine to never include it in
6528 # preloaded symbol tables.
6529 extract_expsyms_cmds=
6530
6531 case $host_os in
6532 cygwin* | mingw* | pw32*)
6533 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6534 # When not using gcc, we currently assume that we are using
6535 # Microsoft Visual C++.
6536 if test "$GCC" != yes; then
6537 with_gnu_ld=no
6538 fi
6539 ;;
6540 openbsd*)
6541 with_gnu_ld=no
6542 ;;
6543 esac
6544
6545 ld_shlibs=yes
6546 if test "$with_gnu_ld" = yes; then
6547 # If archive_cmds runs LD, not CC, wlarc should be empty
6548 wlarc='${wl}'
6549
6550 # See if GNU ld supports shared libraries.
6551 case $host_os in
6552 aix3* | aix4* | aix5*)
6553 # On AIX/PPC, the GNU linker is very broken
6554 if test "$host_cpu" != ia64; then
6555 ld_shlibs=no
6556 cat <<EOF 1>&2
6557
6558*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6559*** to be unable to reliably create shared libraries on AIX.
6560*** Therefore, libtool is disabling shared libraries support. If you
6561*** really care for shared libraries, you may want to modify your PATH
6562*** so that a non-GNU linker is found, and then restart.
6563
6564EOF
6565 fi
6566 ;;
6567
6568 amigaos*)
6569 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)'
6570 hardcode_libdir_flag_spec='-L$libdir'
6571 hardcode_minus_L=yes
6572
6573 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6574 # that the semantics of dynamic libraries on AmigaOS, at least up
6575 # to version 4, is to share data among multiple programs linked
6576 # with the same dynamic library. Since this doesn't match the
6577 # behavior of shared libraries on other platforms, we can't use
6578 # them.
6579 ld_shlibs=no
6580 ;;
6581
6582 beos*)
6583 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6584 allow_undefined_flag=unsupported
6585 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6586 # support --undefined. This deserves some investigation. FIXME
6587 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6588 else
6589 ld_shlibs=no
6590 fi
6591 ;;
6592
6593 cygwin* | mingw* | pw32*)
6594 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6595 # as there is no search path for DLLs.
6596 hardcode_libdir_flag_spec='-L$libdir'
6597 allow_undefined_flag=unsupported
6598 always_export_symbols=no
6599 enable_shared_with_static_runtimes=yes
6600 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6601
6602 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6603 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6604 # If the export-symbols file already is a .def file (1st line
6605 # is EXPORTS), use it as is; otherwise, prepend...
6606 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6607 cp $export_symbols $output_objdir/$soname.def;
6608 else
6609 echo EXPORTS > $output_objdir/$soname.def;
6610 cat $export_symbols >> $output_objdir/$soname.def;
6611 fi~
6612 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6613 else
6614 ld_shlibs=no
6615 fi
6616 ;;
6617
6618 netbsd*)
6619 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6620 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6621 wlarc=
6622 else
6623 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6624 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6625 fi
6626 ;;
6627
6628 solaris* | sysv5*)
6629 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6630 ld_shlibs=no
6631 cat <<EOF 1>&2
6632
6633*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6634*** create shared libraries on Solaris systems. Therefore, libtool
6635*** is disabling shared libraries support. We urge you to upgrade GNU
6636*** binutils to release 2.9.1 or newer. Another option is to modify
6637*** your PATH or compiler configuration so that the native linker is
6638*** used, and then restart.
6639
6640EOF
6641 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6642 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6643 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6644 else
6645 ld_shlibs=no
6646 fi
6647 ;;
6648
6649 sunos4*)
6650 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6651 wlarc=
6652 hardcode_direct=yes
6653 hardcode_shlibpath_var=no
6654 ;;
6655
6656 *)
6657 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6659 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6660 else
6661 ld_shlibs=no
6662 fi
6663 ;;
6664 esac
6665
6666 if test "$ld_shlibs" = yes; then
6667 runpath_var=LD_RUN_PATH
6668 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6669 export_dynamic_flag_spec='${wl}--export-dynamic'
6670 # ancient GNU ld didn't support --whole-archive et. al.
6671 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6672 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6673 else
6674 whole_archive_flag_spec=
6675 fi
6676 fi
6677 else
6678 # PORTME fill in a description of your system's linker (not GNU ld)
6679 case $host_os in
6680 aix3*)
6681 allow_undefined_flag=unsupported
6682 always_export_symbols=yes
6683 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'
6684 # Note: this linker hardcodes the directories in LIBPATH if there
6685 # are no directories specified by -L.
6686 hardcode_minus_L=yes
6687 if test "$GCC" = yes && test -z "$link_static_flag"; then
6688 # Neither direct hardcoding nor static linking is supported with a
6689 # broken collect2.
6690 hardcode_direct=unsupported
6691 fi
6692 ;;
6693
6694 aix4* | aix5*)
6695 if test "$host_cpu" = ia64; then
6696 # On IA64, the linker does run time linking by default, so we don't
6697 # have to do anything special.
6698 aix_use_runtimelinking=no
6699 exp_sym_flag='-Bexport'
6700 no_entry_flag=""
6701 else
6702 # If we're using GNU nm, then we don't want the "-C" option.
6703 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6704 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6705 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'
6706 else
6707 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'
6708 fi
6709 aix_use_runtimelinking=no
6710
6711 # Test if we are trying to use run time linking or normal
6712 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6713 # need to do runtime linking.
6714 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6715 for ld_flag in $LDFLAGS; do
6716 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6717 aix_use_runtimelinking=yes
6718 break
6719 fi
6720 done
6721 esac
6722
6723 exp_sym_flag='-bexport'
6724 no_entry_flag='-bnoentry'
6725 fi
6726
6727 # When large executables or shared objects are built, AIX ld can
6728 # have problems creating the table of contents. If linking a library
6729 # or program results in "error TOC overflow" add -mminimal-toc to
6730 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6731 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6732
6733 archive_cmds=''
6734 hardcode_direct=yes
6735 hardcode_libdir_separator=':'
6736 link_all_deplibs=yes
6737
6738 if test "$GCC" = yes; then
6739 case $host_os in aix4.012|aix4.012.*)
6740 # We only want to do this on AIX 4.2 and lower, the check
6741 # below for broken collect2 doesn't work under 4.3+
6742 collect2name=`${CC} -print-prog-name=collect2`
6743 if test -f "$collect2name" && \
6744 strings "$collect2name" | grep resolve_lib_name >/dev/null
6745 then
6746 # We have reworked collect2
6747 hardcode_direct=yes
6748 else
6749 # We have old collect2
6750 hardcode_direct=unsupported
6751 # It fails to find uninstalled libraries when the uninstalled
6752 # path is not listed in the libpath. Setting hardcode_minus_L
6753 # to unsupported forces relinking
6754 hardcode_minus_L=yes
6755 hardcode_libdir_flag_spec='-L$libdir'
6756 hardcode_libdir_separator=
6757 fi
6758 esac
6759 shared_flag='-shared'
6760 else
6761 # not using gcc
6762 if test "$host_cpu" = ia64; then
6763 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6764 # chokes on -Wl,-G. The following line is correct:
6765 shared_flag='-G'
6766 else
6767 if test "$aix_use_runtimelinking" = yes; then
6768 shared_flag='${wl}-G'
6769 else
6770 shared_flag='${wl}-bM:SRE'
6771 fi
6772 fi
6773 fi
6774
6775 # It seems that -bexpall does not export symbols beginning with
6776 # underscore (_), so it is better to generate a list of symbols to export.
6777 always_export_symbols=yes
6778 if test "$aix_use_runtimelinking" = yes; then
6779 # Warning - without using the other runtime loading flags (-brtl),
6780 # -berok will link without error, but may produce a broken library.
6781 allow_undefined_flag='-berok'
6782 # Determine the default libpath from the value encoded in an empty executable.
6783 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006784/* confdefs.h. */
6785_ACEOF
6786cat confdefs.h >>conftest.$ac_ext
6787cat >>conftest.$ac_ext <<_ACEOF
6788/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006789
John Criswell7a73b802003-06-30 21:59:07 +00006790int
6791main ()
6792{
John Criswell47fdd832003-07-14 16:52:07 +00006793
John Criswell7a73b802003-06-30 21:59:07 +00006794 ;
6795 return 0;
6796}
6797_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006798rm -f conftest.$ac_objext conftest$ac_exeext
6799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00006800 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006801 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00006802 grep -v '^ *+' conftest.er1 >conftest.err
6803 rm -f conftest.er1
6804 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00006807 { ac_try='test -z "$ac_c_werror_flag"
6808 || test ! -s conftest.err'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 (eval $ac_try) 2>&5
6811 ac_status=$?
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; } &&
6814 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 (eval $ac_try) 2>&5
6817 ac_status=$?
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006820
John Criswell47fdd832003-07-14 16:52:07 +00006821aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6822}'`
6823# Check for a 64-bit object if we didn't find anything.
6824if 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; }
6825}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006826else
6827 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006828sed 's/^/| /' conftest.$ac_ext >&5
6829
John Criswell7a73b802003-06-30 21:59:07 +00006830fi
Reid Spencer2b51a082004-08-04 00:34:49 +00006831rm -f conftest.err conftest.$ac_objext \
6832 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006833if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006834
John Criswell47fdd832003-07-14 16:52:07 +00006835 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6836 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"
6837 else
6838 if test "$host_cpu" = ia64; then
6839 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6840 allow_undefined_flag="-z nodefs"
6841 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"
6842 else
6843 # Determine the default libpath from the value encoded in an empty executable.
6844 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006845/* confdefs.h. */
6846_ACEOF
6847cat confdefs.h >>conftest.$ac_ext
6848cat >>conftest.$ac_ext <<_ACEOF
6849/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006850
John Criswell47fdd832003-07-14 16:52:07 +00006851int
6852main ()
6853{
John Criswell7a73b802003-06-30 21:59:07 +00006854
John Criswell47fdd832003-07-14 16:52:07 +00006855 ;
6856 return 0;
6857}
6858_ACEOF
6859rm -f conftest.$ac_objext conftest$ac_exeext
6860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00006861 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00006862 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00006863 grep -v '^ *+' conftest.er1 >conftest.err
6864 rm -f conftest.er1
6865 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00006866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00006868 { ac_try='test -z "$ac_c_werror_flag"
6869 || test ! -s conftest.err'
6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871 (eval $ac_try) 2>&5
6872 ac_status=$?
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; } &&
6875 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00006876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877 (eval $ac_try) 2>&5
6878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006881
John Criswell47fdd832003-07-14 16:52:07 +00006882aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6883}'`
6884# Check for a 64-bit object if we didn't find anything.
6885if 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; }
6886}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006887else
John Criswell47fdd832003-07-14 16:52:07 +00006888 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006889sed 's/^/| /' conftest.$ac_ext >&5
6890
John Criswell47fdd832003-07-14 16:52:07 +00006891fi
Reid Spencer2b51a082004-08-04 00:34:49 +00006892rm -f conftest.err conftest.$ac_objext \
6893 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006894if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006895
John Criswell47fdd832003-07-14 16:52:07 +00006896 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6897 # Warning - without using the other run time loading flags,
6898 # -berok will link without error, but may produce a broken library.
6899 no_undefined_flag=' ${wl}-bernotok'
6900 allow_undefined_flag=' ${wl}-berok'
6901 # -bexpall does not export symbols beginning with underscore (_)
6902 always_export_symbols=yes
6903 # Exported symbols can be pulled into shared objects from archives
6904 whole_archive_flag_spec=' '
6905 archive_cmds_need_lc=yes
6906 # This is similar to how AIX traditionally builds it's shared libraries.
6907 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 +00006908 fi
6909 fi
John Criswell7a73b802003-06-30 21:59:07 +00006910 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006911
6912 amigaos*)
6913 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)'
6914 hardcode_libdir_flag_spec='-L$libdir'
6915 hardcode_minus_L=yes
6916 # see comment about different semantics on the GNU ld section
6917 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006918 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006919
John Criswell47fdd832003-07-14 16:52:07 +00006920 bsdi4*)
6921 export_dynamic_flag_spec=-rdynamic
6922 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006923
John Criswell47fdd832003-07-14 16:52:07 +00006924 cygwin* | mingw* | pw32*)
6925 # When not using gcc, we currently assume that we are using
6926 # Microsoft Visual C++.
6927 # hardcode_libdir_flag_spec is actually meaningless, as there is
6928 # no search path for DLLs.
6929 hardcode_libdir_flag_spec=' '
6930 allow_undefined_flag=unsupported
6931 # Tell ltmain to make .lib files, not .a files.
6932 libext=lib
6933 # Tell ltmain to make .dll files, not .so files.
6934 shrext=".dll"
6935 # FIXME: Setting linknames here is a bad hack.
6936 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6937 # The linker will automatically build a .lib file if we build a DLL.
6938 old_archive_From_new_cmds='true'
6939 # FIXME: Should let the user specify the lib program.
6940 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6941 fix_srcfile_path='`cygpath -w "$srcfile"`'
6942 enable_shared_with_static_runtimes=yes
6943 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006944
John Criswell47fdd832003-07-14 16:52:07 +00006945 darwin* | rhapsody*)
6946 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6947 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00006948 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00006949 rhapsody* | darwin1.[012])
6950 allow_undefined_flag='-undefined suppress'
6951 ;;
6952 *) # Darwin 1.3 on
6953 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00006954 ;;
6955 esac
John Criswell47fdd832003-07-14 16:52:07 +00006956 # FIXME: Relying on posixy $() will cause problems for
6957 # cross-compilation, but unfortunately the echo tests do not
6958 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6959 # `"' quotes if we put them in here... so don't!
6960 lt_int_apple_cc_single_mod=no
6961 output_verbose_link_cmd='echo'
6962 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6963 lt_int_apple_cc_single_mod=yes
6964 fi
6965 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6966 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6967 else
6968 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6969 fi
6970 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6971 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6972 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6973 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6974 else
6975 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6976 fi
6977 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6978 hardcode_direct=no
6979 hardcode_automatic=yes
6980 hardcode_shlibpath_var=unsupported
6981 whole_archive_flag_spec='-all_load $convenience'
6982 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00006983 fi
John Criswell47fdd832003-07-14 16:52:07 +00006984 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006985
John Criswell47fdd832003-07-14 16:52:07 +00006986 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00006987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006988 hardcode_libdir_flag_spec='-L$libdir'
6989 hardcode_shlibpath_var=no
6990 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006991
John Criswell47fdd832003-07-14 16:52:07 +00006992 freebsd1*)
6993 ld_shlibs=no
6994 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006995
John Criswell47fdd832003-07-14 16:52:07 +00006996 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6997 # support. Future versions do this automatically, but an explicit c++rt0.o
6998 # does not break anything, and helps significantly (at the cost of a little
6999 # extra space).
7000 freebsd2.2*)
7001 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7002 hardcode_libdir_flag_spec='-R$libdir'
7003 hardcode_direct=yes
7004 hardcode_shlibpath_var=no
7005 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007006
John Criswell47fdd832003-07-14 16:52:07 +00007007 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7008 freebsd2*)
7009 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7010 hardcode_direct=yes
7011 hardcode_minus_L=yes
7012 hardcode_shlibpath_var=no
7013 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007014
John Criswell47fdd832003-07-14 16:52:07 +00007015 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7016 freebsd*)
7017 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7018 hardcode_libdir_flag_spec='-R$libdir'
7019 hardcode_direct=yes
7020 hardcode_shlibpath_var=no
7021 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007022
John Criswell47fdd832003-07-14 16:52:07 +00007023 hpux9*)
7024 if test "$GCC" = yes; then
7025 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'
7026 else
7027 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'
7028 fi
7029 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7030 hardcode_libdir_separator=:
7031 hardcode_direct=yes
7032
7033 # hardcode_minus_L: Not really in the search PATH,
7034 # but as the default location of the library.
7035 hardcode_minus_L=yes
7036 export_dynamic_flag_spec='${wl}-E'
7037 ;;
7038
7039 hpux10* | hpux11*)
7040 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7041 case "$host_cpu" in
7042 hppa*64*|ia64*)
7043 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7044 ;;
7045 *)
7046 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7047 ;;
7048 esac
7049 else
7050 case "$host_cpu" in
7051 hppa*64*|ia64*)
7052 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7053 ;;
7054 *)
7055 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7056 ;;
7057 esac
7058 fi
7059 if test "$with_gnu_ld" = no; then
7060 case "$host_cpu" in
7061 hppa*64*)
7062 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7063 hardcode_libdir_flag_spec_ld='+b $libdir'
7064 hardcode_libdir_separator=:
7065 hardcode_direct=no
7066 hardcode_shlibpath_var=no
7067 ;;
7068 ia64*)
7069 hardcode_libdir_flag_spec='-L$libdir'
7070 hardcode_direct=no
7071 hardcode_shlibpath_var=no
7072
7073 # hardcode_minus_L: Not really in the search PATH,
7074 # but as the default location of the library.
7075 hardcode_minus_L=yes
7076 ;;
7077 *)
7078 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7079 hardcode_libdir_separator=:
7080 hardcode_direct=yes
7081 export_dynamic_flag_spec='${wl}-E'
7082
7083 # hardcode_minus_L: Not really in the search PATH,
7084 # but as the default location of the library.
7085 hardcode_minus_L=yes
7086 ;;
7087 esac
7088 fi
7089 ;;
7090
7091 irix5* | irix6* | nonstopux*)
7092 if test "$GCC" = yes; then
7093 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'
7094 else
7095 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'
7096 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7097 fi
7098 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7099 hardcode_libdir_separator=:
7100 link_all_deplibs=yes
7101 ;;
7102
7103 netbsd*)
7104 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7105 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7106 else
7107 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7108 fi
7109 hardcode_libdir_flag_spec='-R$libdir'
7110 hardcode_direct=yes
7111 hardcode_shlibpath_var=no
7112 ;;
7113
7114 newsos6)
7115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7116 hardcode_direct=yes
7117 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7118 hardcode_libdir_separator=:
7119 hardcode_shlibpath_var=no
7120 ;;
7121
7122 openbsd*)
7123 hardcode_direct=yes
7124 hardcode_shlibpath_var=no
7125 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7126 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7127 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7128 export_dynamic_flag_spec='${wl}-E'
7129 else
7130 case $host_os in
7131 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7132 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7133 hardcode_libdir_flag_spec='-R$libdir'
7134 ;;
7135 *)
7136 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7137 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7138 ;;
7139 esac
7140 fi
7141 ;;
7142
7143 os2*)
7144 hardcode_libdir_flag_spec='-L$libdir'
7145 hardcode_minus_L=yes
7146 allow_undefined_flag=unsupported
7147 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'
7148 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7149 ;;
7150
7151 osf3*)
7152 if test "$GCC" = yes; then
7153 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7154 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'
7155 else
7156 allow_undefined_flag=' -expect_unresolved \*'
7157 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'
7158 fi
7159 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7160 hardcode_libdir_separator=:
7161 ;;
7162
7163 osf4* | osf5*) # as osf3* with the addition of -msym flag
7164 if test "$GCC" = yes; then
7165 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7166 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'
7167 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7168 else
7169 allow_undefined_flag=' -expect_unresolved \*'
7170 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'
7171 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7172 $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'
7173
7174 # Both c and cxx compiler support -rpath directly
7175 hardcode_libdir_flag_spec='-rpath $libdir'
7176 fi
7177 hardcode_libdir_separator=:
7178 ;;
7179
7180 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007181 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7182 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007183 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007184 runpath_var=LD_RUN_PATH
7185 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007186 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007187
John Criswell47fdd832003-07-14 16:52:07 +00007188 solaris*)
7189 no_undefined_flag=' -z text'
7190 if test "$GCC" = yes; then
7191 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7192 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7193 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7194 else
7195 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7196 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7197 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7198 fi
7199 hardcode_libdir_flag_spec='-R$libdir'
7200 hardcode_shlibpath_var=no
7201 case $host_os in
7202 solaris2.[0-5] | solaris2.[0-5].*) ;;
7203 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7204 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7205 esac
7206 link_all_deplibs=yes
7207 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007208
John Criswell47fdd832003-07-14 16:52:07 +00007209 sunos4*)
7210 if test "x$host_vendor" = xsequent; then
7211 # Use $CC to link under sequent, because it throws in some extra .o
7212 # files that make .init and .fini sections work.
7213 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7214 else
7215 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7216 fi
7217 hardcode_libdir_flag_spec='-L$libdir'
7218 hardcode_direct=yes
7219 hardcode_minus_L=yes
7220 hardcode_shlibpath_var=no
7221 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007222
John Criswell47fdd832003-07-14 16:52:07 +00007223 sysv4)
7224 case $host_vendor in
7225 sni)
7226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7227 hardcode_direct=yes # is this really true???
7228 ;;
7229 siemens)
7230 ## LD is ld it makes a PLAMLIB
7231 ## CC just makes a GrossModule.
7232 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7233 reload_cmds='$CC -r -o $output$reload_objs'
7234 hardcode_direct=no
7235 ;;
7236 motorola)
7237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7238 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7239 ;;
7240 esac
7241 runpath_var='LD_RUN_PATH'
7242 hardcode_shlibpath_var=no
7243 ;;
7244
7245 sysv4.3*)
7246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7247 hardcode_shlibpath_var=no
7248 export_dynamic_flag_spec='-Bexport'
7249 ;;
7250
7251 sysv4*MP*)
7252 if test -d /usr/nec; then
7253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7254 hardcode_shlibpath_var=no
7255 runpath_var=LD_RUN_PATH
7256 hardcode_runpath_var=yes
7257 ld_shlibs=yes
7258 fi
7259 ;;
7260
7261 sysv4.2uw2*)
7262 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7263 hardcode_direct=yes
7264 hardcode_minus_L=no
7265 hardcode_shlibpath_var=no
7266 hardcode_runpath_var=yes
7267 runpath_var=LD_RUN_PATH
7268 ;;
7269
7270 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7271 no_undefined_flag='${wl}-z ${wl}text'
7272 if test "$GCC" = yes; then
7273 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7274 else
7275 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7276 fi
7277 runpath_var='LD_RUN_PATH'
7278 hardcode_shlibpath_var=no
7279 ;;
7280
7281 sysv5*)
7282 no_undefined_flag=' -z text'
7283 # $CC -shared without GNU ld will not create a library from C++
7284 # object files and a static libstdc++, better avoid it by now
7285 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7286 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7287 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7288 hardcode_libdir_flag_spec=
7289 hardcode_shlibpath_var=no
7290 runpath_var='LD_RUN_PATH'
7291 ;;
7292
7293 uts4*)
7294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7295 hardcode_libdir_flag_spec='-L$libdir'
7296 hardcode_shlibpath_var=no
7297 ;;
7298
7299 *)
7300 ld_shlibs=no
7301 ;;
7302 esac
7303 fi
7304
John Criswell7a73b802003-06-30 21:59:07 +00007305echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7306echo "${ECHO_T}$ld_shlibs" >&6
7307test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007308
John Criswell47fdd832003-07-14 16:52:07 +00007309variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7310if test "$GCC" = yes; then
7311 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7312fi
7313
7314#
7315# Do we need to explicitly link libc?
7316#
7317case "x$archive_cmds_need_lc" in
7318x|xyes)
7319 # Assume -lc should be added
7320 archive_cmds_need_lc=yes
7321
7322 if test "$enable_shared" = yes && test "$GCC" = yes; then
7323 case $archive_cmds in
7324 *'~'*)
7325 # FIXME: we may have to deal with multi-command sequences.
7326 ;;
7327 '$CC '*)
7328 # Test whether the compiler implicitly links with -lc since on some
7329 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7330 # to ld, don't add -lc before -lgcc.
7331 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7332echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7333 $rm conftest*
7334 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7335
7336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7337 (eval $ac_compile) 2>&5
7338 ac_status=$?
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } 2>conftest.err; then
7341 soname=conftest
7342 lib=conftest
7343 libobjs=conftest.$ac_objext
7344 deplibs=
7345 wl=$lt_prog_compiler_wl
7346 compiler_flags=-v
7347 linker_flags=-v
7348 verstring=
7349 output_objdir=.
7350 libname=conftest
7351 lt_save_allow_undefined_flag=$allow_undefined_flag
7352 allow_undefined_flag=
7353 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7354 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7355 ac_status=$?
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }
7358 then
7359 archive_cmds_need_lc=no
7360 else
7361 archive_cmds_need_lc=yes
7362 fi
7363 allow_undefined_flag=$lt_save_allow_undefined_flag
7364 else
7365 cat conftest.err 1>&5
7366 fi
7367 $rm conftest*
7368 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7369echo "${ECHO_T}$archive_cmds_need_lc" >&6
7370 ;;
7371 esac
7372 fi
7373 ;;
7374esac
7375
John Criswell7a73b802003-06-30 21:59:07 +00007376echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7377echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7378hardcode_action=
7379if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007380 test -n "$runpath_var " || \
7381 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007382
7383 # We can hardcode non-existant directories.
7384 if test "$hardcode_direct" != no &&
7385 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7386 # have to relink, otherwise we might link with an installed library
7387 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007388 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007389 test "$hardcode_minus_L" != no; then
7390 # Linking always hardcodes the temporary library directory.
7391 hardcode_action=relink
7392 else
7393 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7394 hardcode_action=immediate
7395 fi
7396else
7397 # We cannot hardcode anything, or else we can only hardcode existing
7398 # directories.
7399 hardcode_action=unsupported
7400fi
7401echo "$as_me:$LINENO: result: $hardcode_action" >&5
7402echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007403
John Criswell47fdd832003-07-14 16:52:07 +00007404if test "$hardcode_action" = relink; then
7405 # Fast installation is not supported
7406 enable_fast_install=no
7407elif test "$shlibpath_overrides_runpath" = yes ||
7408 test "$enable_shared" = no; then
7409 # Fast installation is not necessary
7410 enable_fast_install=needless
7411fi
7412
John Criswell7a73b802003-06-30 21:59:07 +00007413striplib=
7414old_striplib=
7415echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7416echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7417if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7418 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7419 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7420 echo "$as_me:$LINENO: result: yes" >&5
7421echo "${ECHO_T}yes" >&6
7422else
John Criswell47fdd832003-07-14 16:52:07 +00007423# FIXME - insert some real tests, host_os isn't really good enough
7424 case $host_os in
7425 darwin*)
7426 if test -n "$STRIP" ; then
7427 striplib="$STRIP -x"
7428 echo "$as_me:$LINENO: result: yes" >&5
7429echo "${ECHO_T}yes" >&6
7430 else
John Criswell7a73b802003-06-30 21:59:07 +00007431 echo "$as_me:$LINENO: result: no" >&5
7432echo "${ECHO_T}no" >&6
7433fi
John Criswell47fdd832003-07-14 16:52:07 +00007434 ;;
7435 *)
7436 echo "$as_me:$LINENO: result: no" >&5
7437echo "${ECHO_T}no" >&6
7438 ;;
7439 esac
7440fi
John Criswell7a73b802003-06-30 21:59:07 +00007441
John Criswell7a73b802003-06-30 21:59:07 +00007442echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7443echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7444library_names_spec=
7445libname_spec='lib$name'
7446soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007447shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007448postinstall_cmds=
7449postuninstall_cmds=
7450finish_cmds=
7451finish_eval=
7452shlibpath_var=
7453shlibpath_overrides_runpath=unknown
7454version_type=none
7455dynamic_linker="$host_os ld.so"
7456sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007457if test "$GCC" = yes; then
7458 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7459 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7460 # if the path contains ";" then we assume it to be the separator
7461 # otherwise default to the standard path separator (i.e. ":") - it is
7462 # assumed that no part of a normal pathname contains ";" but that should
7463 # okay in the real world where ";" in dirpaths is itself problematic.
7464 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7465 else
7466 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7467 fi
7468else
7469 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7470fi
7471need_lib_prefix=unknown
7472hardcode_into_libs=no
7473
7474# when you set need_version to no, make sure it does not cause -set_version
7475# flags to be left without arguments
7476need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007477
7478case $host_os in
7479aix3*)
7480 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007481 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007482 shlibpath_var=LIBPATH
7483
John Criswell47fdd832003-07-14 16:52:07 +00007484 # AIX 3 has no versioning support, so we append a major version to the name.
7485 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007486 ;;
7487
7488aix4* | aix5*)
7489 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007490 need_lib_prefix=no
7491 need_version=no
7492 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007493 if test "$host_cpu" = ia64; then
7494 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007495 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007496 shlibpath_var=LD_LIBRARY_PATH
7497 else
7498 # With GCC up to 2.95.x, collect2 would create an import file
7499 # for dependence libraries. The import file would start with
7500 # the line `#! .'. This would cause the generated library to
7501 # depend on `.', always an invalid library. This was fixed in
7502 # development snapshots of GCC prior to 3.0.
7503 case $host_os in
7504 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007505 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7506 echo ' yes '
7507 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7508 :
7509 else
7510 can_build_shared=no
7511 fi
7512 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007513 esac
John Criswell47fdd832003-07-14 16:52:07 +00007514 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7515 # soname into executable. Probably we can add versioning support to
7516 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007517 if test "$aix_use_runtimelinking" = yes; then
7518 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7519 # instead of lib<name>.a to let people know that these are not
7520 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007522 else
7523 # We preserve .a as extension for shared libraries through AIX4.2
7524 # and later when we are not doing run time linking.
7525 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007526 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007527 fi
7528 shlibpath_var=LIBPATH
7529 fi
7530 ;;
7531
7532amigaos*)
7533 library_names_spec='$libname.ixlibrary $libname.a'
7534 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7535 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'
7536 ;;
7537
7538beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007539 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007540 dynamic_linker="$host_os ld.so"
7541 shlibpath_var=LIBRARY_PATH
7542 ;;
7543
7544bsdi4*)
7545 version_type=linux
7546 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7548 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007549 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7550 shlibpath_var=LD_LIBRARY_PATH
7551 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7552 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007553 # the default ld.so.conf also contains /usr/contrib/lib and
7554 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7555 # libtool to hard-code these into programs
7556 ;;
7557
7558cygwin* | mingw* | pw32*)
7559 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007560 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007561 need_version=no
7562 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007563
John Criswell7a73b802003-06-30 21:59:07 +00007564 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007565 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007566 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007567 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7568 postinstall_cmds='base_file=`basename \${file}`~
7569 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007570 dldir=$destdir/`dirname \$dlpath`~
7571 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007572 $install_prog $dir/$dlname \$dldir/$dlname'
7573 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007574 dlpath=$dir/\$dldll~
7575 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007576 shlibpath_overrides_runpath=yes
7577
7578 case $host_os in
7579 cygwin*)
7580 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7581 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7582 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7583 ;;
7584 mingw*)
7585 # MinGW DLLs use traditional 'lib' prefix
7586 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7587 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7588 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7589 # It is most probably a Windows format PATH printed by
7590 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7591 # path with ; separators, and with drive letters. We can handle the
7592 # drive letters (cygwin fileutils understands them), so leave them,
7593 # especially as we might pass files found there to a mingw objdump,
7594 # which wouldn't understand a cygwinified path. Ahh.
7595 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7596 else
7597 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7598 fi
7599 ;;
7600 pw32*)
7601 # pw32 DLLs use 'pw' prefix rather than 'lib'
7602 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7603 ;;
7604 esac
John Criswell7a73b802003-06-30 21:59:07 +00007605 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007606
John Criswell7a73b802003-06-30 21:59:07 +00007607 *)
John Criswell47fdd832003-07-14 16:52:07 +00007608 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007609 ;;
7610 esac
7611 dynamic_linker='Win32 ld.exe'
7612 # FIXME: first we should search . and the directory the executable is in
7613 shlibpath_var=PATH
7614 ;;
7615
7616darwin* | rhapsody*)
7617 dynamic_linker="$host_os dyld"
7618 version_type=darwin
7619 need_lib_prefix=no
7620 need_version=no
7621 # FIXME: Relying on posixy $() will cause problems for
7622 # cross-compilation, but unfortunately the echo tests do not
7623 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007624 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7625 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007626 shlibpath_overrides_runpath=yes
7627 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007628 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7629 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7630 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7631 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"`
7632 fi
7633 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7634 ;;
7635
7636dgux*)
7637 version_type=linux
7638 need_lib_prefix=no
7639 need_version=no
7640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7641 soname_spec='${libname}${release}${shared_ext}$major'
7642 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007643 ;;
7644
7645freebsd1*)
7646 dynamic_linker=no
7647 ;;
7648
7649freebsd*)
7650 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7651 version_type=freebsd-$objformat
7652 case $version_type in
7653 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007655 need_version=no
7656 need_lib_prefix=no
7657 ;;
7658 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007659 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007660 need_version=yes
7661 ;;
7662 esac
7663 shlibpath_var=LD_LIBRARY_PATH
7664 case $host_os in
7665 freebsd2*)
7666 shlibpath_overrides_runpath=yes
7667 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007668 freebsd3.01* | freebsdelf3.01*)
7669 shlibpath_overrides_runpath=yes
7670 hardcode_into_libs=yes
7671 ;;
7672 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007673 shlibpath_overrides_runpath=no
7674 hardcode_into_libs=yes
7675 ;;
7676 esac
7677 ;;
7678
7679gnu*)
7680 version_type=linux
7681 need_lib_prefix=no
7682 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7684 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007685 shlibpath_var=LD_LIBRARY_PATH
7686 hardcode_into_libs=yes
7687 ;;
7688
7689hpux9* | hpux10* | hpux11*)
7690 # Give a soname corresponding to the major version so that dld.sl refuses to
7691 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007692 version_type=sunos
7693 need_lib_prefix=no
7694 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007695 case "$host_cpu" in
7696 ia64*)
7697 shrext='.so'
7698 hardcode_into_libs=yes
7699 dynamic_linker="$host_os dld.so"
7700 shlibpath_var=LD_LIBRARY_PATH
7701 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7703 soname_spec='${libname}${release}${shared_ext}$major'
7704 if test "X$HPUX_IA64_MODE" = X32; then
7705 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7706 else
7707 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7708 fi
7709 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7710 ;;
7711 hppa*64*)
7712 shrext='.sl'
7713 hardcode_into_libs=yes
7714 dynamic_linker="$host_os dld.sl"
7715 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7716 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7718 soname_spec='${libname}${release}${shared_ext}$major'
7719 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7720 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7721 ;;
7722 *)
7723 shrext='.sl'
7724 dynamic_linker="$host_os dld.sl"
7725 shlibpath_var=SHLIB_PATH
7726 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7728 soname_spec='${libname}${release}${shared_ext}$major'
7729 ;;
7730 esac
John Criswell7a73b802003-06-30 21:59:07 +00007731 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7732 postinstall_cmds='chmod 555 $lib'
7733 ;;
7734
John Criswell47fdd832003-07-14 16:52:07 +00007735irix5* | irix6* | nonstopux*)
7736 case $host_os in
7737 nonstopux*) version_type=nonstopux ;;
7738 *)
7739 if test "$lt_cv_prog_gnu_ld" = yes; then
7740 version_type=linux
7741 else
7742 version_type=irix
7743 fi ;;
7744 esac
John Criswell7a73b802003-06-30 21:59:07 +00007745 need_lib_prefix=no
7746 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007747 soname_spec='${libname}${release}${shared_ext}$major'
7748 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 +00007749 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007750 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007751 libsuff= shlibsuff=
7752 ;;
7753 *)
7754 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007755 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7756 libsuff= shlibsuff= libmagic=32-bit;;
7757 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7758 libsuff=32 shlibsuff=N32 libmagic=N32;;
7759 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7760 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007761 *) libsuff= shlibsuff= libmagic=never-match;;
7762 esac
7763 ;;
7764 esac
7765 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7766 shlibpath_overrides_runpath=no
7767 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7768 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007769 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007770 ;;
7771
7772# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007773linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007774 dynamic_linker=no
7775 ;;
7776
7777# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007778linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007779 version_type=linux
7780 need_lib_prefix=no
7781 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7783 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007784 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7785 shlibpath_var=LD_LIBRARY_PATH
7786 shlibpath_overrides_runpath=no
7787 # This implies no fast_install, which is unacceptable.
7788 # Some rework will be needed to allow for fast_install
7789 # before this can be enabled.
7790 hardcode_into_libs=yes
7791
7792 # We used to test for /lib/ld.so.1 and disable shared libraries on
7793 # powerpc, because MkLinux only supported shared libraries with the
7794 # GNU dynamic linker. Since this was broken with cross compilers,
7795 # most powerpc-linux boxes support dynamic linking these days and
7796 # people can always --disable-shared, the test was removed, and we
7797 # assume the GNU/Linux dynamic linker is in use.
7798 dynamic_linker='GNU/Linux ld.so'
7799 ;;
7800
7801netbsd*)
7802 version_type=sunos
7803 need_lib_prefix=no
7804 need_version=no
7805 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007807 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7808 dynamic_linker='NetBSD (a.out) ld.so'
7809 else
John Criswell47fdd832003-07-14 16:52:07 +00007810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7811 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007812 dynamic_linker='NetBSD ld.elf_so'
7813 fi
7814 shlibpath_var=LD_LIBRARY_PATH
7815 shlibpath_overrides_runpath=yes
7816 hardcode_into_libs=yes
7817 ;;
7818
7819newsos6)
7820 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7822 shlibpath_var=LD_LIBRARY_PATH
7823 shlibpath_overrides_runpath=yes
7824 ;;
7825
7826nto-qnx)
7827 version_type=linux
7828 need_lib_prefix=no
7829 need_version=no
7830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7831 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007832 shlibpath_var=LD_LIBRARY_PATH
7833 shlibpath_overrides_runpath=yes
7834 ;;
7835
7836openbsd*)
7837 version_type=sunos
7838 need_lib_prefix=no
7839 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7841 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7842 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007843 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 +00007844 case $host_os in
7845 openbsd2.[89] | openbsd2.[89].*)
7846 shlibpath_overrides_runpath=no
7847 ;;
7848 *)
7849 shlibpath_overrides_runpath=yes
7850 ;;
7851 esac
John Criswell7a73b802003-06-30 21:59:07 +00007852 else
7853 shlibpath_overrides_runpath=yes
7854 fi
John Criswell7a73b802003-06-30 21:59:07 +00007855 ;;
7856
7857os2*)
7858 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007859 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007860 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007861 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007862 dynamic_linker='OS/2 ld.exe'
7863 shlibpath_var=LIBPATH
7864 ;;
7865
7866osf3* | osf4* | osf5*)
7867 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007868 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007869 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007870 soname_spec='${libname}${release}${shared_ext}$major'
7871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007872 shlibpath_var=LD_LIBRARY_PATH
7873 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7874 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7875 ;;
7876
7877sco3.2v5*)
7878 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007879 soname_spec='${libname}${release}${shared_ext}$major'
7880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007881 shlibpath_var=LD_LIBRARY_PATH
7882 ;;
7883
7884solaris*)
7885 version_type=linux
7886 need_lib_prefix=no
7887 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7889 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007890 shlibpath_var=LD_LIBRARY_PATH
7891 shlibpath_overrides_runpath=yes
7892 hardcode_into_libs=yes
7893 # ldd complains unless libraries are executable
7894 postinstall_cmds='chmod +x $lib'
7895 ;;
7896
7897sunos4*)
7898 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007900 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7901 shlibpath_var=LD_LIBRARY_PATH
7902 shlibpath_overrides_runpath=yes
7903 if test "$with_gnu_ld" = yes; then
7904 need_lib_prefix=no
7905 fi
7906 need_version=yes
7907 ;;
7908
7909sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7910 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7912 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007913 shlibpath_var=LD_LIBRARY_PATH
7914 case $host_vendor in
7915 sni)
7916 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007917 need_lib_prefix=no
7918 export_dynamic_flag_spec='${wl}-Blargedynsym'
7919 runpath_var=LD_RUN_PATH
7920 ;;
7921 siemens)
7922 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007923 ;;
7924 motorola)
7925 need_lib_prefix=no
7926 need_version=no
7927 shlibpath_overrides_runpath=no
7928 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7929 ;;
7930 esac
7931 ;;
7932
John Criswell7a73b802003-06-30 21:59:07 +00007933sysv4*MP*)
7934 if test -d /usr/nec ;then
7935 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007936 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7937 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007938 shlibpath_var=LD_LIBRARY_PATH
7939 fi
7940 ;;
7941
John Criswell47fdd832003-07-14 16:52:07 +00007942uts4*)
7943 version_type=linux
7944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7945 soname_spec='${libname}${release}${shared_ext}$major'
7946 shlibpath_var=LD_LIBRARY_PATH
7947 ;;
7948
John Criswell7a73b802003-06-30 21:59:07 +00007949*)
7950 dynamic_linker=no
7951 ;;
7952esac
7953echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7954echo "${ECHO_T}$dynamic_linker" >&6
7955test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007956
7957if test "x$enable_dlopen" != xyes; then
7958 enable_dlopen=unknown
7959 enable_dlopen_self=unknown
7960 enable_dlopen_self_static=unknown
7961else
7962 lt_cv_dlopen=no
7963 lt_cv_dlopen_libs=
7964
7965 case $host_os in
7966 beos*)
7967 lt_cv_dlopen="load_add_on"
7968 lt_cv_dlopen_libs=
7969 lt_cv_dlopen_self=yes
7970 ;;
7971
John Criswell47fdd832003-07-14 16:52:07 +00007972 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007973 lt_cv_dlopen="LoadLibrary"
7974 lt_cv_dlopen_libs=
7975 ;;
7976
John Criswell47fdd832003-07-14 16:52:07 +00007977 cygwin*)
7978 lt_cv_dlopen="dlopen"
7979 lt_cv_dlopen_libs=
7980 ;;
7981
7982 darwin*)
7983 # if libdl is installed we need to link against it
7984 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7985echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7986if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7987 echo $ECHO_N "(cached) $ECHO_C" >&6
7988else
7989 ac_check_lib_save_LIBS=$LIBS
7990LIBS="-ldl $LIBS"
7991cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00007992/* confdefs.h. */
7993_ACEOF
7994cat confdefs.h >>conftest.$ac_ext
7995cat >>conftest.$ac_ext <<_ACEOF
7996/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00007997
7998/* Override any gcc2 internal prototype to avoid an error. */
7999#ifdef __cplusplus
8000extern "C"
8001#endif
8002/* We use char because int might match the return type of a gcc2
8003 builtin and then its argument prototype would still apply. */
8004char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008005int
8006main ()
8007{
8008dlopen ();
8009 ;
8010 return 0;
8011}
8012_ACEOF
8013rm -f conftest.$ac_objext conftest$ac_exeext
8014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008015 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00008016 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008017 grep -v '^ *+' conftest.er1 >conftest.err
8018 rm -f conftest.er1
8019 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00008020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008022 { ac_try='test -z "$ac_c_werror_flag"
8023 || test ! -s conftest.err'
8024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8025 (eval $ac_try) 2>&5
8026 ac_status=$?
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); }; } &&
8029 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00008030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8031 (eval $ac_try) 2>&5
8032 ac_status=$?
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); }; }; then
8035 ac_cv_lib_dl_dlopen=yes
8036else
8037 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008038sed 's/^/| /' conftest.$ac_ext >&5
8039
John Criswell47fdd832003-07-14 16:52:07 +00008040ac_cv_lib_dl_dlopen=no
8041fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008042rm -f conftest.err conftest.$ac_objext \
8043 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00008044LIBS=$ac_check_lib_save_LIBS
8045fi
8046echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8047echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8048if test $ac_cv_lib_dl_dlopen = yes; then
8049 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8050else
8051
8052 lt_cv_dlopen="dyld"
8053 lt_cv_dlopen_libs=
8054 lt_cv_dlopen_self=yes
8055
8056fi
8057
8058 ;;
8059
John Criswell7a73b802003-06-30 21:59:07 +00008060 *)
8061 echo "$as_me:$LINENO: checking for shl_load" >&5
8062echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8063if test "${ac_cv_func_shl_load+set}" = set; then
8064 echo $ECHO_N "(cached) $ECHO_C" >&6
8065else
8066 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008067/* confdefs.h. */
8068_ACEOF
8069cat confdefs.h >>conftest.$ac_ext
8070cat >>conftest.$ac_ext <<_ACEOF
8071/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +00008072/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8074#define shl_load innocuous_shl_load
8075
John Criswell7a73b802003-06-30 21:59:07 +00008076/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008077 which can conflict with char shl_load (); below.
8078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8079 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +00008080
John Criswell0c38eaf2003-09-10 15:17:25 +00008081#ifdef __STDC__
8082# include <limits.h>
8083#else
8084# include <assert.h>
8085#endif
Reid Spencer2b51a082004-08-04 00:34:49 +00008086
8087#undef shl_load
8088
John Criswell7a73b802003-06-30 21:59:07 +00008089/* Override any gcc2 internal prototype to avoid an error. */
8090#ifdef __cplusplus
8091extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008092{
John Criswell7a73b802003-06-30 21:59:07 +00008093#endif
8094/* We use char because int might match the return type of a gcc2
8095 builtin and then its argument prototype would still apply. */
8096char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008097/* The GNU C library defines this for functions which it implements
8098 to always fail with ENOSYS. Some functions are actually named
8099 something starting with __ and the normal name is an alias. */
8100#if defined (__stub_shl_load) || defined (__stub___shl_load)
8101choke me
8102#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008103char (*f) () = shl_load;
8104#endif
8105#ifdef __cplusplus
8106}
John Criswell7a73b802003-06-30 21:59:07 +00008107#endif
8108
John Criswell0c38eaf2003-09-10 15:17:25 +00008109int
8110main ()
8111{
8112return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008113 ;
8114 return 0;
8115}
8116_ACEOF
8117rm -f conftest.$ac_objext conftest$ac_exeext
8118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008119 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008120 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008121 grep -v '^ *+' conftest.er1 >conftest.err
8122 rm -f conftest.er1
8123 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008126 { ac_try='test -z "$ac_c_werror_flag"
8127 || test ! -s conftest.err'
8128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129 (eval $ac_try) 2>&5
8130 ac_status=$?
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); }; } &&
8133 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008134 { (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); }; }; then
8139 ac_cv_func_shl_load=yes
8140else
8141 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008142sed 's/^/| /' conftest.$ac_ext >&5
8143
John Criswell7a73b802003-06-30 21:59:07 +00008144ac_cv_func_shl_load=no
8145fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008146rm -f conftest.err conftest.$ac_objext \
8147 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008148fi
8149echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8150echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8151if test $ac_cv_func_shl_load = yes; then
8152 lt_cv_dlopen="shl_load"
8153else
8154 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8155echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8156if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8157 echo $ECHO_N "(cached) $ECHO_C" >&6
8158else
8159 ac_check_lib_save_LIBS=$LIBS
8160LIBS="-ldld $LIBS"
8161cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008162/* confdefs.h. */
8163_ACEOF
8164cat confdefs.h >>conftest.$ac_ext
8165cat >>conftest.$ac_ext <<_ACEOF
8166/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008167
8168/* Override any gcc2 internal prototype to avoid an error. */
8169#ifdef __cplusplus
8170extern "C"
8171#endif
8172/* We use char because int might match the return type of a gcc2
8173 builtin and then its argument prototype would still apply. */
8174char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008175int
8176main ()
8177{
8178shl_load ();
8179 ;
8180 return 0;
8181}
8182_ACEOF
8183rm -f conftest.$ac_objext conftest$ac_exeext
8184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008185 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008186 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008187 grep -v '^ *+' conftest.er1 >conftest.err
8188 rm -f conftest.er1
8189 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008192 { ac_try='test -z "$ac_c_werror_flag"
8193 || test ! -s conftest.err'
8194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195 (eval $ac_try) 2>&5
8196 ac_status=$?
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }; } &&
8199 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8201 (eval $ac_try) 2>&5
8202 ac_status=$?
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; }; then
8205 ac_cv_lib_dld_shl_load=yes
8206else
8207 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008208sed 's/^/| /' conftest.$ac_ext >&5
8209
John Criswell7a73b802003-06-30 21:59:07 +00008210ac_cv_lib_dld_shl_load=no
8211fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008212rm -f conftest.err conftest.$ac_objext \
8213 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008214LIBS=$ac_check_lib_save_LIBS
8215fi
8216echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8217echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8218if test $ac_cv_lib_dld_shl_load = yes; then
8219 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8220else
8221 echo "$as_me:$LINENO: checking for dlopen" >&5
8222echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8223if test "${ac_cv_func_dlopen+set}" = set; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8225else
8226 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008227/* confdefs.h. */
8228_ACEOF
8229cat confdefs.h >>conftest.$ac_ext
8230cat >>conftest.$ac_ext <<_ACEOF
8231/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +00008232/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8234#define dlopen innocuous_dlopen
8235
John Criswell7a73b802003-06-30 21:59:07 +00008236/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008237 which can conflict with char dlopen (); below.
8238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8239 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +00008240
John Criswell0c38eaf2003-09-10 15:17:25 +00008241#ifdef __STDC__
8242# include <limits.h>
8243#else
8244# include <assert.h>
8245#endif
Reid Spencer2b51a082004-08-04 00:34:49 +00008246
8247#undef dlopen
8248
John Criswell7a73b802003-06-30 21:59:07 +00008249/* Override any gcc2 internal prototype to avoid an error. */
8250#ifdef __cplusplus
8251extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008252{
John Criswell7a73b802003-06-30 21:59:07 +00008253#endif
8254/* We use char because int might match the return type of a gcc2
8255 builtin and then its argument prototype would still apply. */
8256char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008257/* The GNU C library defines this for functions which it implements
8258 to always fail with ENOSYS. Some functions are actually named
8259 something starting with __ and the normal name is an alias. */
8260#if defined (__stub_dlopen) || defined (__stub___dlopen)
8261choke me
8262#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008263char (*f) () = dlopen;
8264#endif
8265#ifdef __cplusplus
8266}
John Criswell7a73b802003-06-30 21:59:07 +00008267#endif
8268
John Criswell0c38eaf2003-09-10 15:17:25 +00008269int
8270main ()
8271{
8272return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008273 ;
8274 return 0;
8275}
8276_ACEOF
8277rm -f conftest.$ac_objext conftest$ac_exeext
8278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008279 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008280 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008281 grep -v '^ *+' conftest.er1 >conftest.err
8282 rm -f conftest.er1
8283 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008286 { ac_try='test -z "$ac_c_werror_flag"
8287 || test ! -s conftest.err'
8288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289 (eval $ac_try) 2>&5
8290 ac_status=$?
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); }; } &&
8293 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295 (eval $ac_try) 2>&5
8296 ac_status=$?
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; }; then
8299 ac_cv_func_dlopen=yes
8300else
8301 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008302sed 's/^/| /' conftest.$ac_ext >&5
8303
John Criswell7a73b802003-06-30 21:59:07 +00008304ac_cv_func_dlopen=no
8305fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008306rm -f conftest.err conftest.$ac_objext \
8307 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008308fi
8309echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8310echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8311if test $ac_cv_func_dlopen = yes; then
8312 lt_cv_dlopen="dlopen"
8313else
8314 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8315echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8316if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8318else
8319 ac_check_lib_save_LIBS=$LIBS
8320LIBS="-ldl $LIBS"
8321cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008322/* confdefs.h. */
8323_ACEOF
8324cat confdefs.h >>conftest.$ac_ext
8325cat >>conftest.$ac_ext <<_ACEOF
8326/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008327
8328/* Override any gcc2 internal prototype to avoid an error. */
8329#ifdef __cplusplus
8330extern "C"
8331#endif
8332/* We use char because int might match the return type of a gcc2
8333 builtin and then its argument prototype would still apply. */
8334char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008335int
8336main ()
8337{
8338dlopen ();
8339 ;
8340 return 0;
8341}
8342_ACEOF
8343rm -f conftest.$ac_objext conftest$ac_exeext
8344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008345 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008346 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008347 grep -v '^ *+' conftest.er1 >conftest.err
8348 rm -f conftest.er1
8349 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008352 { ac_try='test -z "$ac_c_werror_flag"
8353 || test ! -s conftest.err'
8354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355 (eval $ac_try) 2>&5
8356 ac_status=$?
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; } &&
8359 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361 (eval $ac_try) 2>&5
8362 ac_status=$?
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; }; then
8365 ac_cv_lib_dl_dlopen=yes
8366else
8367 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008368sed 's/^/| /' conftest.$ac_ext >&5
8369
John Criswell7a73b802003-06-30 21:59:07 +00008370ac_cv_lib_dl_dlopen=no
8371fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008372rm -f conftest.err conftest.$ac_objext \
8373 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008374LIBS=$ac_check_lib_save_LIBS
8375fi
8376echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8377echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8378if test $ac_cv_lib_dl_dlopen = yes; then
8379 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8380else
8381 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8382echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8383if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8385else
8386 ac_check_lib_save_LIBS=$LIBS
8387LIBS="-lsvld $LIBS"
8388cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008389/* confdefs.h. */
8390_ACEOF
8391cat confdefs.h >>conftest.$ac_ext
8392cat >>conftest.$ac_ext <<_ACEOF
8393/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008394
8395/* Override any gcc2 internal prototype to avoid an error. */
8396#ifdef __cplusplus
8397extern "C"
8398#endif
8399/* We use char because int might match the return type of a gcc2
8400 builtin and then its argument prototype would still apply. */
8401char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008402int
8403main ()
8404{
8405dlopen ();
8406 ;
8407 return 0;
8408}
8409_ACEOF
8410rm -f conftest.$ac_objext conftest$ac_exeext
8411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008412 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008413 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008414 grep -v '^ *+' conftest.er1 >conftest.err
8415 rm -f conftest.er1
8416 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008419 { ac_try='test -z "$ac_c_werror_flag"
8420 || test ! -s conftest.err'
8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422 (eval $ac_try) 2>&5
8423 ac_status=$?
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; } &&
8426 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 (eval $ac_try) 2>&5
8429 ac_status=$?
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); }; }; then
8432 ac_cv_lib_svld_dlopen=yes
8433else
8434 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008435sed 's/^/| /' conftest.$ac_ext >&5
8436
John Criswell7a73b802003-06-30 21:59:07 +00008437ac_cv_lib_svld_dlopen=no
8438fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008439rm -f conftest.err conftest.$ac_objext \
8440 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008441LIBS=$ac_check_lib_save_LIBS
8442fi
8443echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8444echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8445if test $ac_cv_lib_svld_dlopen = yes; then
8446 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8447else
8448 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8449echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8450if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8451 echo $ECHO_N "(cached) $ECHO_C" >&6
8452else
8453 ac_check_lib_save_LIBS=$LIBS
8454LIBS="-ldld $LIBS"
8455cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008456/* confdefs.h. */
8457_ACEOF
8458cat confdefs.h >>conftest.$ac_ext
8459cat >>conftest.$ac_ext <<_ACEOF
8460/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008461
8462/* Override any gcc2 internal prototype to avoid an error. */
8463#ifdef __cplusplus
8464extern "C"
8465#endif
8466/* We use char because int might match the return type of a gcc2
8467 builtin and then its argument prototype would still apply. */
8468char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008469int
8470main ()
8471{
8472dld_link ();
8473 ;
8474 return 0;
8475}
8476_ACEOF
8477rm -f conftest.$ac_objext conftest$ac_exeext
8478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008479 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008480 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008481 grep -v '^ *+' conftest.er1 >conftest.err
8482 rm -f conftest.er1
8483 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008486 { ac_try='test -z "$ac_c_werror_flag"
8487 || test ! -s conftest.err'
8488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489 (eval $ac_try) 2>&5
8490 ac_status=$?
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; } &&
8493 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8495 (eval $ac_try) 2>&5
8496 ac_status=$?
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); }; }; then
8499 ac_cv_lib_dld_dld_link=yes
8500else
8501 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008502sed 's/^/| /' conftest.$ac_ext >&5
8503
John Criswell7a73b802003-06-30 21:59:07 +00008504ac_cv_lib_dld_dld_link=no
8505fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008506rm -f conftest.err conftest.$ac_objext \
8507 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008508LIBS=$ac_check_lib_save_LIBS
8509fi
8510echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8511echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8512if test $ac_cv_lib_dld_dld_link = yes; then
8513 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8514fi
8515
8516
8517fi
8518
8519
8520fi
8521
8522
8523fi
8524
8525
8526fi
8527
8528
8529fi
8530
8531 ;;
8532 esac
8533
8534 if test "x$lt_cv_dlopen" != xno; then
8535 enable_dlopen=yes
8536 else
8537 enable_dlopen=no
8538 fi
8539
8540 case $lt_cv_dlopen in
8541 dlopen)
8542 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008543 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008544
8545 save_LDFLAGS="$LDFLAGS"
8546 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8547
8548 save_LIBS="$LIBS"
8549 LIBS="$lt_cv_dlopen_libs $LIBS"
8550
8551 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8552echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8553if test "${lt_cv_dlopen_self+set}" = set; then
8554 echo $ECHO_N "(cached) $ECHO_C" >&6
8555else
8556 if test "$cross_compiling" = yes; then :
8557 lt_cv_dlopen_self=cross
8558else
John Criswell47fdd832003-07-14 16:52:07 +00008559 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008560 lt_status=$lt_dlunknown
8561 cat > conftest.$ac_ext <<EOF
Reid Spencerde8c47f2004-08-29 19:35:28 +00008562#line 8562 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008563#include "confdefs.h"
8564
8565#if HAVE_DLFCN_H
8566#include <dlfcn.h>
8567#endif
8568
8569#include <stdio.h>
8570
8571#ifdef RTLD_GLOBAL
8572# define LT_DLGLOBAL RTLD_GLOBAL
8573#else
8574# ifdef DL_GLOBAL
8575# define LT_DLGLOBAL DL_GLOBAL
8576# else
8577# define LT_DLGLOBAL 0
8578# endif
8579#endif
8580
8581/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8582 find out it does not work in some platform. */
8583#ifndef LT_DLLAZY_OR_NOW
8584# ifdef RTLD_LAZY
8585# define LT_DLLAZY_OR_NOW RTLD_LAZY
8586# else
8587# ifdef DL_LAZY
8588# define LT_DLLAZY_OR_NOW DL_LAZY
8589# else
8590# ifdef RTLD_NOW
8591# define LT_DLLAZY_OR_NOW RTLD_NOW
8592# else
8593# ifdef DL_NOW
8594# define LT_DLLAZY_OR_NOW DL_NOW
8595# else
8596# define LT_DLLAZY_OR_NOW 0
8597# endif
8598# endif
8599# endif
8600# endif
8601#endif
8602
8603#ifdef __cplusplus
8604extern "C" void exit (int);
8605#endif
8606
8607void fnord() { int i=42;}
8608int main ()
8609{
8610 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8611 int status = $lt_dlunknown;
8612
8613 if (self)
8614 {
8615 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8616 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8617 /* dlclose (self); */
8618 }
8619
8620 exit (status);
8621}
8622EOF
8623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8624 (eval $ac_link) 2>&5
8625 ac_status=$?
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8628 (./conftest; exit; ) 2>/dev/null
8629 lt_status=$?
8630 case x$lt_status in
8631 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8632 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8633 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8634 esac
8635 else :
8636 # compilation failed
8637 lt_cv_dlopen_self=no
8638 fi
8639fi
8640rm -fr conftest*
8641
8642
8643fi
8644echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8645echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8646
8647 if test "x$lt_cv_dlopen_self" = xyes; then
8648 LDFLAGS="$LDFLAGS $link_static_flag"
8649 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8650echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8651if test "${lt_cv_dlopen_self_static+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8653else
8654 if test "$cross_compiling" = yes; then :
8655 lt_cv_dlopen_self_static=cross
8656else
John Criswell47fdd832003-07-14 16:52:07 +00008657 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008658 lt_status=$lt_dlunknown
8659 cat > conftest.$ac_ext <<EOF
Reid Spencerde8c47f2004-08-29 19:35:28 +00008660#line 8660 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008661#include "confdefs.h"
8662
8663#if HAVE_DLFCN_H
8664#include <dlfcn.h>
8665#endif
8666
8667#include <stdio.h>
8668
8669#ifdef RTLD_GLOBAL
8670# define LT_DLGLOBAL RTLD_GLOBAL
8671#else
8672# ifdef DL_GLOBAL
8673# define LT_DLGLOBAL DL_GLOBAL
8674# else
8675# define LT_DLGLOBAL 0
8676# endif
8677#endif
8678
8679/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8680 find out it does not work in some platform. */
8681#ifndef LT_DLLAZY_OR_NOW
8682# ifdef RTLD_LAZY
8683# define LT_DLLAZY_OR_NOW RTLD_LAZY
8684# else
8685# ifdef DL_LAZY
8686# define LT_DLLAZY_OR_NOW DL_LAZY
8687# else
8688# ifdef RTLD_NOW
8689# define LT_DLLAZY_OR_NOW RTLD_NOW
8690# else
8691# ifdef DL_NOW
8692# define LT_DLLAZY_OR_NOW DL_NOW
8693# else
8694# define LT_DLLAZY_OR_NOW 0
8695# endif
8696# endif
8697# endif
8698# endif
8699#endif
8700
8701#ifdef __cplusplus
8702extern "C" void exit (int);
8703#endif
8704
8705void fnord() { int i=42;}
8706int main ()
8707{
8708 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8709 int status = $lt_dlunknown;
8710
8711 if (self)
8712 {
8713 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8714 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8715 /* dlclose (self); */
8716 }
8717
8718 exit (status);
8719}
8720EOF
8721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8722 (eval $ac_link) 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8726 (./conftest; exit; ) 2>/dev/null
8727 lt_status=$?
8728 case x$lt_status in
8729 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8730 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8731 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8732 esac
8733 else :
8734 # compilation failed
8735 lt_cv_dlopen_self_static=no
8736 fi
8737fi
8738rm -fr conftest*
8739
8740
8741fi
8742echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8743echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8744 fi
8745
8746 CPPFLAGS="$save_CPPFLAGS"
8747 LDFLAGS="$save_LDFLAGS"
8748 LIBS="$save_LIBS"
8749 ;;
8750 esac
8751
8752 case $lt_cv_dlopen_self in
8753 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8754 *) enable_dlopen_self=unknown ;;
8755 esac
8756
8757 case $lt_cv_dlopen_self_static in
8758 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8759 *) enable_dlopen_self_static=unknown ;;
8760 esac
8761fi
8762
8763
John Criswell47fdd832003-07-14 16:52:07 +00008764# Report which librarie types wil actually be built
8765echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8766echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8767echo "$as_me:$LINENO: result: $can_build_shared" >&5
8768echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008769
John Criswell47fdd832003-07-14 16:52:07 +00008770echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8771echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8772test "$can_build_shared" = "no" && enable_shared=no
8773
8774# On AIX, shared libraries and static libraries use the same namespace, and
8775# are all built from PIC.
8776case "$host_os" in
8777aix3*)
8778 test "$enable_shared" = yes && enable_static=no
8779 if test -n "$RANLIB"; then
8780 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8781 postinstall_cmds='$RANLIB $lib'
8782 fi
8783 ;;
8784
8785aix4*)
8786 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8787 test "$enable_shared" = yes && enable_static=no
8788 fi
8789 ;;
8790 darwin* | rhapsody*)
8791 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8792 archive_cmds_need_lc=no
8793 case "$host_os" in
8794 rhapsody* | darwin1.[012])
8795 allow_undefined_flag='-undefined suppress'
8796 ;;
8797 *) # Darwin 1.3 on
8798 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8799 ;;
8800 esac
8801 # FIXME: Relying on posixy $() will cause problems for
8802 # cross-compilation, but unfortunately the echo tests do not
8803 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8804 # `"' quotes if we put them in here... so don't!
8805 output_verbose_link_cmd='echo'
8806 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8807 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8808 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8809 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}'
8810 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8811 hardcode_direct=no
8812 hardcode_automatic=yes
8813 hardcode_shlibpath_var=unsupported
8814 whole_archive_flag_spec='-all_load $convenience'
8815 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008816 fi
John Criswell7a73b802003-06-30 21:59:07 +00008817 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008818esac
8819echo "$as_me:$LINENO: result: $enable_shared" >&5
8820echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008821
John Criswell47fdd832003-07-14 16:52:07 +00008822echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8823echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8824# Make sure either enable_shared or enable_static is yes.
8825test "$enable_shared" = yes || enable_static=yes
8826echo "$as_me:$LINENO: result: $enable_static" >&5
8827echo "${ECHO_T}$enable_static" >&6
8828
8829# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008830# libtool distribution, otherwise you forgot to ship ltmain.sh
8831# with your package, and you will get complaints that there are
8832# no rules to generate ltmain.sh.
8833if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008834 # See if we are running on zsh, and set the options which allow our commands through
8835 # without removal of \ escapes.
8836 if test -n "${ZSH_VERSION+set}" ; then
8837 setopt NO_GLOB_SUBST
8838 fi
John Criswell7a73b802003-06-30 21:59:07 +00008839 # Now quote all the things that may contain metacharacters while being
8840 # careful not to overquote the AC_SUBSTed values. We take copies of the
8841 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008842 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8843 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8844 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8845 deplibs_check_method reload_flag reload_cmds need_locks \
8846 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8847 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008848 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008849 old_postinstall_cmds old_postuninstall_cmds \
8850 compiler \
8851 CC \
8852 LD \
8853 lt_prog_compiler_wl \
8854 lt_prog_compiler_pic \
8855 lt_prog_compiler_static \
8856 lt_prog_compiler_no_builtin_flag \
8857 export_dynamic_flag_spec \
8858 thread_safe_flag_spec \
8859 whole_archive_flag_spec \
8860 enable_shared_with_static_runtimes \
8861 old_archive_cmds \
8862 old_archive_from_new_cmds \
8863 predep_objects \
8864 postdep_objects \
8865 predeps \
8866 postdeps \
8867 compiler_lib_search_path \
8868 archive_cmds \
8869 archive_expsym_cmds \
8870 postinstall_cmds \
8871 postuninstall_cmds \
8872 old_archive_from_expsyms_cmds \
8873 allow_undefined_flag \
8874 no_undefined_flag \
8875 export_symbols_cmds \
8876 hardcode_libdir_flag_spec \
8877 hardcode_libdir_flag_spec_ld \
8878 hardcode_libdir_separator \
8879 hardcode_automatic \
8880 module_cmds \
8881 module_expsym_cmds \
8882 lt_cv_prog_compiler_c_o \
8883 exclude_expsyms \
8884 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008885
8886 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008887 old_archive_cmds | \
8888 old_archive_from_new_cmds | \
8889 archive_cmds | \
8890 archive_expsym_cmds | \
8891 module_cmds | \
8892 module_expsym_cmds | \
8893 old_archive_from_expsyms_cmds | \
8894 export_symbols_cmds | \
8895 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008896 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008897 old_postinstall_cmds | old_postuninstall_cmds | \
8898 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008899 # Double-quote double-evaled strings.
8900 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8901 ;;
8902 *)
8903 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8904 ;;
8905 esac
8906 done
8907
John Criswell47fdd832003-07-14 16:52:07 +00008908 case $lt_echo in
8909 *'\$0 --fallback-echo"')
8910 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8911 ;;
8912 esac
8913
8914cfgfile="${ofile}T"
8915 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8916 $rm -f "$cfgfile"
8917 { echo "$as_me:$LINENO: creating $ofile" >&5
8918echo "$as_me: creating $ofile" >&6;}
8919
8920 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008921#! $SHELL
8922
John Criswell47fdd832003-07-14 16:52:07 +00008923# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008924# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8925# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8926#
John Criswell47fdd832003-07-14 16:52:07 +00008927# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8928# Free Software Foundation, Inc.
8929#
8930# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008931# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8932#
8933# This program is free software; you can redistribute it and/or modify
8934# it under the terms of the GNU General Public License as published by
8935# the Free Software Foundation; either version 2 of the License, or
8936# (at your option) any later version.
8937#
8938# This program is distributed in the hope that it will be useful, but
8939# WITHOUT ANY WARRANTY; without even the implied warranty of
8940# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8941# General Public License for more details.
8942#
8943# You should have received a copy of the GNU General Public License
8944# along with this program; if not, write to the Free Software
8945# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8946#
8947# As a special exception to the GNU General Public License, if you
8948# distribute this file as part of a program that contains a
8949# configuration script generated by Autoconf, you may include it under
8950# the same distribution terms that you use for the rest of that program.
8951
John Criswell47fdd832003-07-14 16:52:07 +00008952# A sed program that does not truncate output.
8953SED=$lt_SED
8954
John Criswell7a73b802003-06-30 21:59:07 +00008955# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008956Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008957
8958# The HP-UX ksh and POSIX shell print the target directory to stdout
8959# if CDPATH is set.
8960if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8961
John Criswell47fdd832003-07-14 16:52:07 +00008962# The names of the tagged configurations supported by this script.
8963available_tags=
8964
John Criswell7a73b802003-06-30 21:59:07 +00008965# ### BEGIN LIBTOOL CONFIG
8966
8967# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8968
8969# Shell to use when invoking shell scripts.
8970SHELL=$lt_SHELL
8971
8972# Whether or not to build shared libraries.
8973build_libtool_libs=$enable_shared
8974
8975# Whether or not to build static libraries.
8976build_old_libs=$enable_static
8977
8978# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008979build_libtool_need_lc=$archive_cmds_need_lc
8980
8981# Whether or not to disallow shared libs when runtime libs are static
8982allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008983
8984# Whether or not to optimize for fast installation.
8985fast_install=$enable_fast_install
8986
8987# The host system.
8988host_alias=$host_alias
8989host=$host
8990
8991# An echo program that does not interpret backslashes.
8992echo=$lt_echo
8993
8994# The archiver.
8995AR=$lt_AR
8996AR_FLAGS=$lt_AR_FLAGS
8997
John Criswell47fdd832003-07-14 16:52:07 +00008998# A C compiler.
8999LTCC=$lt_LTCC
9000
9001# A language-specific compiler.
9002CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009003
9004# Is the compiler the GNU C compiler?
9005with_gcc=$GCC
9006
John Criswell47fdd832003-07-14 16:52:07 +00009007# An ERE matcher.
9008EGREP=$lt_EGREP
9009
John Criswell7a73b802003-06-30 21:59:07 +00009010# The linker used to build libraries.
9011LD=$lt_LD
9012
9013# Whether we need hard or soft links.
9014LN_S=$lt_LN_S
9015
9016# A BSD-compatible nm program.
9017NM=$lt_NM
9018
9019# A symbol stripping program
9020STRIP=$STRIP
9021
9022# Used to examine libraries when file_magic_cmd begins "file"
9023MAGIC_CMD=$MAGIC_CMD
9024
9025# Used on cygwin: DLL creation program.
9026DLLTOOL="$DLLTOOL"
9027
9028# Used on cygwin: object dumper.
9029OBJDUMP="$OBJDUMP"
9030
9031# Used on cygwin: assembler.
9032AS="$AS"
9033
9034# The name of the directory that contains temporary libtool files.
9035objdir=$objdir
9036
9037# How to create reloadable object files.
9038reload_flag=$lt_reload_flag
9039reload_cmds=$lt_reload_cmds
9040
9041# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009042wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009043
9044# Object file suffix (normally "o").
9045objext="$ac_objext"
9046
9047# Old archive suffix (normally "a").
9048libext="$libext"
9049
John Criswell47fdd832003-07-14 16:52:07 +00009050# Shared library suffix (normally ".so").
9051shrext='$shrext'
9052
John Criswell7a73b802003-06-30 21:59:07 +00009053# Executable file suffix (normally "").
9054exeext="$exeext"
9055
9056# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009057pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009058pic_mode=$pic_mode
9059
John Criswell47fdd832003-07-14 16:52:07 +00009060# What is the maximum length of a command?
9061max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009062
John Criswell47fdd832003-07-14 16:52:07 +00009063# Does compiler simultaneously support -c and -o options?
9064compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009065
9066# Must we lock files when doing compilation ?
9067need_locks=$lt_need_locks
9068
9069# Do we need the lib prefix for modules?
9070need_lib_prefix=$need_lib_prefix
9071
9072# Do we need a version for libraries?
9073need_version=$need_version
9074
9075# Whether dlopen is supported.
9076dlopen_support=$enable_dlopen
9077
9078# Whether dlopen of programs is supported.
9079dlopen_self=$enable_dlopen_self
9080
9081# Whether dlopen of statically linked programs is supported.
9082dlopen_self_static=$enable_dlopen_self_static
9083
9084# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009085link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009086
9087# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009088no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009089
9090# Compiler flag to allow reflexive dlopens.
9091export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9092
9093# Compiler flag to generate shared objects directly from archives.
9094whole_archive_flag_spec=$lt_whole_archive_flag_spec
9095
9096# Compiler flag to generate thread-safe objects.
9097thread_safe_flag_spec=$lt_thread_safe_flag_spec
9098
9099# Library versioning type.
9100version_type=$version_type
9101
9102# Format of library name prefix.
9103libname_spec=$lt_libname_spec
9104
9105# List of archive names. First name is the real one, the rest are links.
9106# The last name is the one that the linker finds with -lNAME.
9107library_names_spec=$lt_library_names_spec
9108
9109# The coded name of the library, if different from the real name.
9110soname_spec=$lt_soname_spec
9111
9112# Commands used to build and install an old-style archive.
9113RANLIB=$lt_RANLIB
9114old_archive_cmds=$lt_old_archive_cmds
9115old_postinstall_cmds=$lt_old_postinstall_cmds
9116old_postuninstall_cmds=$lt_old_postuninstall_cmds
9117
9118# Create an old-style archive from a shared archive.
9119old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9120
9121# Create a temporary old-style archive to link instead of a shared archive.
9122old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9123
9124# Commands used to build and install a shared archive.
9125archive_cmds=$lt_archive_cmds
9126archive_expsym_cmds=$lt_archive_expsym_cmds
9127postinstall_cmds=$lt_postinstall_cmds
9128postuninstall_cmds=$lt_postuninstall_cmds
9129
John Criswell47fdd832003-07-14 16:52:07 +00009130# Commands used to build a loadable module (assumed same as above if empty)
9131module_cmds=$lt_module_cmds
9132module_expsym_cmds=$lt_module_expsym_cmds
9133
John Criswell7a73b802003-06-30 21:59:07 +00009134# Commands to strip libraries.
9135old_striplib=$lt_old_striplib
9136striplib=$lt_striplib
9137
John Criswell47fdd832003-07-14 16:52:07 +00009138# Dependencies to place before the objects being linked to create a
9139# shared library.
9140predep_objects=$lt_predep_objects
9141
9142# Dependencies to place after the objects being linked to create a
9143# shared library.
9144postdep_objects=$lt_postdep_objects
9145
9146# Dependencies to place before the objects being linked to create a
9147# shared library.
9148predeps=$lt_predeps
9149
9150# Dependencies to place after the objects being linked to create a
9151# shared library.
9152postdeps=$lt_postdeps
9153
9154# The library search path used internally by the compiler when linking
9155# a shared library.
9156compiler_lib_search_path=$lt_compiler_lib_search_path
9157
John Criswell7a73b802003-06-30 21:59:07 +00009158# Method to check whether dependent libraries are shared objects.
9159deplibs_check_method=$lt_deplibs_check_method
9160
9161# Command to use when deplibs_check_method == file_magic.
9162file_magic_cmd=$lt_file_magic_cmd
9163
9164# Flag that allows shared libraries with undefined symbols to be built.
9165allow_undefined_flag=$lt_allow_undefined_flag
9166
9167# Flag that forces no undefined symbols.
9168no_undefined_flag=$lt_no_undefined_flag
9169
9170# Commands used to finish a libtool library installation in a directory.
9171finish_cmds=$lt_finish_cmds
9172
9173# Same as above, but a single script fragment to be evaled but not shown.
9174finish_eval=$lt_finish_eval
9175
9176# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009177global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009178
9179# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009180global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009181
9182# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009183global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009184
9185# This is the shared library runtime path variable.
9186runpath_var=$runpath_var
9187
9188# This is the shared library path variable.
9189shlibpath_var=$shlibpath_var
9190
9191# Is shlibpath searched before the hard-coded library search path?
9192shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9193
9194# How to hardcode a shared library path into an executable.
9195hardcode_action=$hardcode_action
9196
9197# Whether we should hardcode library paths into libraries.
9198hardcode_into_libs=$hardcode_into_libs
9199
9200# Flag to hardcode \$libdir into a binary during linking.
9201# This must work even if \$libdir does not exist.
9202hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9203
John Criswell47fdd832003-07-14 16:52:07 +00009204# If ld is used when linking, flag to hardcode \$libdir into
9205# a binary during linking. This must work even if \$libdir does
9206# not exist.
9207hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9208
John Criswell7a73b802003-06-30 21:59:07 +00009209# Whether we need a single -rpath flag with a separated argument.
9210hardcode_libdir_separator=$lt_hardcode_libdir_separator
9211
John Criswell47fdd832003-07-14 16:52:07 +00009212# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009213# resulting binary.
9214hardcode_direct=$hardcode_direct
9215
9216# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9217# resulting binary.
9218hardcode_minus_L=$hardcode_minus_L
9219
9220# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9221# the resulting binary.
9222hardcode_shlibpath_var=$hardcode_shlibpath_var
9223
John Criswell47fdd832003-07-14 16:52:07 +00009224# Set to yes if building a shared library automatically hardcodes DIR into the library
9225# and all subsequent libraries and executables linked against it.
9226hardcode_automatic=$hardcode_automatic
9227
John Criswell7a73b802003-06-30 21:59:07 +00009228# Variables whose values should be saved in libtool wrapper scripts and
9229# restored at relink time.
9230variables_saved_for_relink="$variables_saved_for_relink"
9231
9232# Whether libtool must link a program against all its dependency libraries.
9233link_all_deplibs=$link_all_deplibs
9234
9235# Compile-time system search path for libraries
9236sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9237
9238# Run-time system search path for libraries
9239sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9240
9241# Fix the shell variable \$srcfile for the compiler.
9242fix_srcfile_path="$fix_srcfile_path"
9243
9244# Set to yes if exported symbols are required.
9245always_export_symbols=$always_export_symbols
9246
9247# The commands to list exported symbols.
9248export_symbols_cmds=$lt_export_symbols_cmds
9249
9250# The commands to extract the exported symbol list from a shared archive.
9251extract_expsyms_cmds=$lt_extract_expsyms_cmds
9252
9253# Symbols that should not be listed in the preloaded symbols.
9254exclude_expsyms=$lt_exclude_expsyms
9255
9256# Symbols that must always be exported.
9257include_expsyms=$lt_include_expsyms
9258
9259# ### END LIBTOOL CONFIG
9260
9261__EOF__
9262
John Criswell47fdd832003-07-14 16:52:07 +00009263
John Criswell7a73b802003-06-30 21:59:07 +00009264 case $host_os in
9265 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009266 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009267
9268# AIX sometimes has problems with the GCC collect2 program. For some
9269# reason, if we set the COLLECT_NAMES environment variable, the problems
9270# vanish in a puff of smoke.
9271if test "X${COLLECT_NAMES+set}" != Xset; then
9272 COLLECT_NAMES=
9273 export COLLECT_NAMES
9274fi
9275EOF
9276 ;;
9277 esac
9278
John Criswell7a73b802003-06-30 21:59:07 +00009279 # We use sed instead of cat because bash on DJGPP gets confused if
9280 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9281 # text mode, it properly converts lines to CR/LF. This bash problem
9282 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009283 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009284
John Criswell47fdd832003-07-14 16:52:07 +00009285 mv -f "$cfgfile" "$ofile" || \
9286 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009287 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009288
9289else
9290 # If there is no Makefile yet, we rely on a make rule to execute
9291 # `config.status --recheck' to rerun these tests and create the
9292 # libtool script then.
9293 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009294fi
John Criswell7a73b802003-06-30 21:59:07 +00009295
9296
John Criswell47fdd832003-07-14 16:52:07 +00009297ac_ext=c
9298ac_cpp='$CPP $CPPFLAGS'
9299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9301ac_compiler_gnu=$ac_cv_c_compiler_gnu
9302
9303CC="$lt_save_CC"
9304
9305
9306# Check whether --with-tags or --without-tags was given.
9307if test "${with_tags+set}" = set; then
9308 withval="$with_tags"
9309 tagnames="$withval"
9310fi;
9311
9312if test -f "$ltmain" && test -n "$tagnames"; then
9313 if test ! -f "${ofile}"; then
9314 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9315echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9316 fi
9317
9318 if test -z "$LTCC"; then
9319 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9320 if test -z "$LTCC"; then
9321 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9322echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9323 else
9324 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9325echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9326 fi
9327 fi
9328
9329 # Extract list of available tagged configurations in $ofile.
9330 # Note that this assumes the entire list is on one line.
9331 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9332
9333 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9334 for tagname in $tagnames; do
9335 IFS="$lt_save_ifs"
9336 # Check whether tagname contains only valid characters
9337 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9338 "") ;;
9339 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9340echo "$as_me: error: invalid tag name: $tagname" >&2;}
9341 { (exit 1); exit 1; }; }
9342 ;;
9343 esac
9344
9345 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9346 then
9347 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9348echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9349 { (exit 1); exit 1; }; }
9350 fi
9351
9352 # Update the list of available tags.
9353 if test -n "$tagname"; then
9354 echo appending configuration tag \"$tagname\" to $ofile
9355
9356 case $tagname in
9357 CXX)
9358 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9359 ac_ext=cc
9360ac_cpp='$CXXCPP $CPPFLAGS'
9361ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9362ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9363ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9364
9365
9366
9367
9368archive_cmds_need_lc_CXX=no
9369allow_undefined_flag_CXX=
9370always_export_symbols_CXX=no
9371archive_expsym_cmds_CXX=
9372export_dynamic_flag_spec_CXX=
9373hardcode_direct_CXX=no
9374hardcode_libdir_flag_spec_CXX=
9375hardcode_libdir_flag_spec_ld_CXX=
9376hardcode_libdir_separator_CXX=
9377hardcode_minus_L_CXX=no
9378hardcode_automatic_CXX=no
9379module_cmds_CXX=
9380module_expsym_cmds_CXX=
9381link_all_deplibs_CXX=unknown
9382old_archive_cmds_CXX=$old_archive_cmds
9383no_undefined_flag_CXX=
9384whole_archive_flag_spec_CXX=
9385enable_shared_with_static_runtimes_CXX=no
9386
9387# Dependencies to place before and after the object being linked:
9388predep_objects_CXX=
9389postdep_objects_CXX=
9390predeps_CXX=
9391postdeps_CXX=
9392compiler_lib_search_path_CXX=
9393
9394# Source file extension for C++ test sources.
9395ac_ext=cc
9396
9397# Object file extension for compiled C++ test sources.
9398objext=o
9399objext_CXX=$objext
9400
9401# Code to be used in simple compile tests
9402lt_simple_compile_test_code="int some_variable = 0;\n"
9403
9404# Code to be used in simple link tests
9405lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9406
9407# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9408
9409# If no C compiler was specified, use CC.
9410LTCC=${LTCC-"$CC"}
9411
9412# Allow CC to be a program name with arguments.
9413compiler=$CC
9414
9415
9416# Allow CC to be a program name with arguments.
9417lt_save_CC=$CC
9418lt_save_LD=$LD
9419lt_save_GCC=$GCC
9420GCC=$GXX
9421lt_save_with_gnu_ld=$with_gnu_ld
9422lt_save_path_LD=$lt_cv_path_LD
9423if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9424 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9425else
9426 unset lt_cv_prog_gnu_ld
9427fi
9428if test -n "${lt_cv_path_LDCXX+set}"; then
9429 lt_cv_path_LD=$lt_cv_path_LDCXX
9430else
9431 unset lt_cv_path_LD
9432fi
9433test -z "${LDCXX+set}" || LD=$LDCXX
9434CC=${CXX-"c++"}
9435compiler=$CC
9436compiler_CXX=$CC
9437cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9438
9439# We don't want -fno-exception wen compiling C++ code, so set the
9440# no_builtin_flag separately
9441if test "$GXX" = yes; then
9442 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9443else
9444 lt_prog_compiler_no_builtin_flag_CXX=
9445fi
9446
9447if test "$GXX" = yes; then
9448 # Set up default GNU C++ configuration
9449
9450
9451# Check whether --with-gnu-ld or --without-gnu-ld was given.
9452if test "${with_gnu_ld+set}" = set; then
9453 withval="$with_gnu_ld"
9454 test "$withval" = no || with_gnu_ld=yes
9455else
9456 with_gnu_ld=no
9457fi;
9458ac_prog=ld
9459if test "$GCC" = yes; then
9460 # Check if gcc -print-prog-name=ld gives a path.
9461 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9462echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9463 case $host in
9464 *-*-mingw*)
9465 # gcc leaves a trailing carriage return which upsets mingw
9466 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9467 *)
9468 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9469 esac
9470 case $ac_prog in
9471 # Accept absolute paths.
9472 [\\/]* | ?:[\\/]*)
9473 re_direlt='/[^/][^/]*/\.\./'
9474 # Canonicalize the path of ld
9475 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9476 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9477 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9478 done
9479 test -z "$LD" && LD="$ac_prog"
9480 ;;
9481 "")
9482 # If it fails, then pretend we aren't using GCC.
9483 ac_prog=ld
9484 ;;
9485 *)
9486 # If it is relative, then search for the first ld in PATH.
9487 with_gnu_ld=unknown
9488 ;;
9489 esac
9490elif test "$with_gnu_ld" = yes; then
9491 echo "$as_me:$LINENO: checking for GNU ld" >&5
9492echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9493else
9494 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9495echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9496fi
9497if test "${lt_cv_path_LD+set}" = set; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9499else
9500 if test -z "$LD"; then
9501 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9502 for ac_dir in $PATH; do
9503 IFS="$lt_save_ifs"
9504 test -z "$ac_dir" && ac_dir=.
9505 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9506 lt_cv_path_LD="$ac_dir/$ac_prog"
9507 # Check to see if the program is GNU ld. I'd rather use --version,
9508 # but apparently some GNU ld's only accept -v.
9509 # Break only if it was the GNU/non-GNU ld that we prefer.
9510 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9511 *GNU* | *'with BFD'*)
9512 test "$with_gnu_ld" != no && break
9513 ;;
9514 *)
9515 test "$with_gnu_ld" != yes && break
9516 ;;
9517 esac
9518 fi
9519 done
9520 IFS="$lt_save_ifs"
9521else
9522 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9523fi
9524fi
9525
9526LD="$lt_cv_path_LD"
9527if test -n "$LD"; then
9528 echo "$as_me:$LINENO: result: $LD" >&5
9529echo "${ECHO_T}$LD" >&6
9530else
9531 echo "$as_me:$LINENO: result: no" >&5
9532echo "${ECHO_T}no" >&6
9533fi
9534test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9535echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9536 { (exit 1); exit 1; }; }
9537echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9538echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9539if test "${lt_cv_prog_gnu_ld+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9541else
9542 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9543case `"$LD" -v 2>&1 </dev/null` in
9544*GNU* | *'with BFD'*)
9545 lt_cv_prog_gnu_ld=yes
9546 ;;
9547*)
9548 lt_cv_prog_gnu_ld=no
9549 ;;
9550esac
9551fi
9552echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9553echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9554with_gnu_ld=$lt_cv_prog_gnu_ld
9555
9556
9557
9558 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9559 # archiving commands below assume that GNU ld is being used.
9560 if test "$with_gnu_ld" = yes; then
9561 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9562 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'
9563
9564 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9565 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9566
9567 # If archive_cmds runs LD, not CC, wlarc should be empty
9568 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9569 # investigate it a little bit more. (MM)
9570 wlarc='${wl}'
9571
9572 # ancient GNU ld didn't support --whole-archive et. al.
9573 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9574 grep 'no-whole-archive' > /dev/null; then
9575 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9576 else
9577 whole_archive_flag_spec_CXX=
9578 fi
9579 else
9580 with_gnu_ld=no
9581 wlarc=
9582
9583 # A generic and very simple default shared library creation
9584 # command for GNU C++ for the case where it uses the native
9585 # linker, instead of GNU ld. If possible, this setting should
9586 # overridden to take advantage of the native linker features on
9587 # the platform it is being used on.
9588 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9589 fi
9590
9591 # Commands to make compiler produce verbose output that lists
9592 # what "hidden" libraries, object files and flags are used when
9593 # linking a shared library.
9594 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9595
9596else
9597 GXX=no
9598 with_gnu_ld=no
9599 wlarc=
9600fi
9601
9602# PORTME: fill in a description of your system's C++ link characteristics
9603echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9604echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9605ld_shlibs_CXX=yes
9606case $host_os in
9607 aix3*)
9608 # FIXME: insert proper C++ library support
9609 ld_shlibs_CXX=no
9610 ;;
9611 aix4* | aix5*)
9612 if test "$host_cpu" = ia64; then
9613 # On IA64, the linker does run time linking by default, so we don't
9614 # have to do anything special.
9615 aix_use_runtimelinking=no
9616 exp_sym_flag='-Bexport'
9617 no_entry_flag=""
9618 else
9619 aix_use_runtimelinking=no
9620
9621 # Test if we are trying to use run time linking or normal
9622 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9623 # need to do runtime linking.
9624 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9625 for ld_flag in $LDFLAGS; do
9626 case $ld_flag in
9627 *-brtl*)
9628 aix_use_runtimelinking=yes
9629 break
9630 ;;
9631 esac
9632 done
9633 esac
9634
9635 exp_sym_flag='-bexport'
9636 no_entry_flag='-bnoentry'
9637 fi
9638
9639 # When large executables or shared objects are built, AIX ld can
9640 # have problems creating the table of contents. If linking a library
9641 # or program results in "error TOC overflow" add -mminimal-toc to
9642 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9643 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9644
9645 archive_cmds_CXX=''
9646 hardcode_direct_CXX=yes
9647 hardcode_libdir_separator_CXX=':'
9648 link_all_deplibs_CXX=yes
9649
9650 if test "$GXX" = yes; then
9651 case $host_os in aix4.012|aix4.012.*)
9652 # We only want to do this on AIX 4.2 and lower, the check
9653 # below for broken collect2 doesn't work under 4.3+
9654 collect2name=`${CC} -print-prog-name=collect2`
9655 if test -f "$collect2name" && \
9656 strings "$collect2name" | grep resolve_lib_name >/dev/null
9657 then
9658 # We have reworked collect2
9659 hardcode_direct_CXX=yes
9660 else
9661 # We have old collect2
9662 hardcode_direct_CXX=unsupported
9663 # It fails to find uninstalled libraries when the uninstalled
9664 # path is not listed in the libpath. Setting hardcode_minus_L
9665 # to unsupported forces relinking
9666 hardcode_minus_L_CXX=yes
9667 hardcode_libdir_flag_spec_CXX='-L$libdir'
9668 hardcode_libdir_separator_CXX=
9669 fi
9670 esac
9671 shared_flag='-shared'
9672 else
9673 # not using gcc
9674 if test "$host_cpu" = ia64; then
9675 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9676 # chokes on -Wl,-G. The following line is correct:
9677 shared_flag='-G'
9678 else
9679 if test "$aix_use_runtimelinking" = yes; then
9680 shared_flag='${wl}-G'
9681 else
9682 shared_flag='${wl}-bM:SRE'
9683 fi
9684 fi
9685 fi
9686
9687 # It seems that -bexpall does not export symbols beginning with
9688 # underscore (_), so it is better to generate a list of symbols to export.
9689 always_export_symbols_CXX=yes
9690 if test "$aix_use_runtimelinking" = yes; then
9691 # Warning - without using the other runtime loading flags (-brtl),
9692 # -berok will link without error, but may produce a broken library.
9693 allow_undefined_flag_CXX='-berok'
9694 # Determine the default libpath from the value encoded in an empty executable.
9695 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009696/* confdefs.h. */
9697_ACEOF
9698cat confdefs.h >>conftest.$ac_ext
9699cat >>conftest.$ac_ext <<_ACEOF
9700/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009701
John Criswell47fdd832003-07-14 16:52:07 +00009702int
9703main ()
9704{
9705
9706 ;
9707 return 0;
9708}
9709_ACEOF
9710rm -f conftest.$ac_objext conftest$ac_exeext
9711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00009712 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00009713 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00009714 grep -v '^ *+' conftest.er1 >conftest.err
9715 rm -f conftest.er1
9716 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00009717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00009719 { ac_try='test -z "$ac_cxx_werror_flag"
9720 || test ! -s conftest.err'
9721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722 (eval $ac_try) 2>&5
9723 ac_status=$?
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; } &&
9726 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728 (eval $ac_try) 2>&5
9729 ac_status=$?
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; }; then
9732
9733aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9734}'`
9735# Check for a 64-bit object if we didn't find anything.
9736if 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; }
9737}'`; fi
9738else
9739 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009740sed 's/^/| /' conftest.$ac_ext >&5
9741
John Criswell47fdd832003-07-14 16:52:07 +00009742fi
Reid Spencer2b51a082004-08-04 00:34:49 +00009743rm -f conftest.err conftest.$ac_objext \
9744 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009745if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9746
9747 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9748
9749 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"
9750 else
9751 if test "$host_cpu" = ia64; then
9752 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9753 allow_undefined_flag_CXX="-z nodefs"
9754 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"
9755 else
9756 # Determine the default libpath from the value encoded in an empty executable.
9757 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009758/* confdefs.h. */
9759_ACEOF
9760cat confdefs.h >>conftest.$ac_ext
9761cat >>conftest.$ac_ext <<_ACEOF
9762/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009763
John Criswell47fdd832003-07-14 16:52:07 +00009764int
9765main ()
9766{
9767
9768 ;
9769 return 0;
9770}
9771_ACEOF
9772rm -f conftest.$ac_objext conftest$ac_exeext
9773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00009774 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00009775 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00009776 grep -v '^ *+' conftest.er1 >conftest.err
9777 rm -f conftest.er1
9778 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00009779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00009781 { ac_try='test -z "$ac_cxx_werror_flag"
9782 || test ! -s conftest.err'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 (eval $ac_try) 2>&5
9785 ac_status=$?
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; } &&
9788 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790 (eval $ac_try) 2>&5
9791 ac_status=$?
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; }; then
9794
9795aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9796}'`
9797# Check for a 64-bit object if we didn't find anything.
9798if 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; }
9799}'`; fi
9800else
9801 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009802sed 's/^/| /' conftest.$ac_ext >&5
9803
John Criswell47fdd832003-07-14 16:52:07 +00009804fi
Reid Spencer2b51a082004-08-04 00:34:49 +00009805rm -f conftest.err conftest.$ac_objext \
9806 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009807if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9808
9809 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9810 # Warning - without using the other run time loading flags,
9811 # -berok will link without error, but may produce a broken library.
9812 no_undefined_flag_CXX=' ${wl}-bernotok'
9813 allow_undefined_flag_CXX=' ${wl}-berok'
9814 # -bexpall does not export symbols beginning with underscore (_)
9815 always_export_symbols_CXX=yes
9816 # Exported symbols can be pulled into shared objects from archives
9817 whole_archive_flag_spec_CXX=' '
9818 archive_cmds_need_lc_CXX=yes
9819 # This is similar to how AIX traditionally builds it's shared libraries.
9820 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'
9821 fi
9822 fi
9823 ;;
9824 chorus*)
9825 case $cc_basename in
9826 *)
9827 # FIXME: insert proper C++ library support
9828 ld_shlibs_CXX=no
9829 ;;
9830 esac
9831 ;;
9832
9833 cygwin* | mingw* | pw32*)
9834 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9835 # as there is no search path for DLLs.
9836 hardcode_libdir_flag_spec_CXX='-L$libdir'
9837 allow_undefined_flag_CXX=unsupported
9838 always_export_symbols_CXX=no
9839 enable_shared_with_static_runtimes_CXX=yes
9840
9841 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9842 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'
9843 # If the export-symbols file already is a .def file (1st line
9844 # is EXPORTS), use it as is; otherwise, prepend...
9845 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9846 cp $export_symbols $output_objdir/$soname.def;
9847 else
9848 echo EXPORTS > $output_objdir/$soname.def;
9849 cat $export_symbols >> $output_objdir/$soname.def;
9850 fi~
9851 $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'
9852 else
9853 ld_shlibs_CXX=no
9854 fi
9855 ;;
9856
9857 darwin* | rhapsody*)
9858 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9859 archive_cmds_need_lc_CXX=no
9860 case "$host_os" in
9861 rhapsody* | darwin1.[012])
9862 allow_undefined_flag_CXX='-undefined suppress'
9863 ;;
9864 *) # Darwin 1.3 on
9865 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9866 ;;
9867 esac
9868 lt_int_apple_cc_single_mod=no
9869 output_verbose_link_cmd='echo'
9870 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9871 lt_int_apple_cc_single_mod=yes
9872 fi
9873 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9874 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9875 else
9876 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9877 fi
9878 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9879
9880 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9881 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9882 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}'
9883 else
9884 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9885 fi
9886 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9887 hardcode_direct_CXX=no
9888 hardcode_automatic_CXX=yes
9889 hardcode_shlibpath_var_CXX=unsupported
9890 whole_archive_flag_spec_CXX='-all_load $convenience'
9891 link_all_deplibs_CXX=yes
9892 fi
9893 ;;
9894
9895 dgux*)
9896 case $cc_basename in
9897 ec++)
9898 # FIXME: insert proper C++ library support
9899 ld_shlibs_CXX=no
9900 ;;
9901 ghcx)
9902 # Green Hills C++ Compiler
9903 # FIXME: insert proper C++ library support
9904 ld_shlibs_CXX=no
9905 ;;
9906 *)
9907 # FIXME: insert proper C++ library support
9908 ld_shlibs_CXX=no
9909 ;;
9910 esac
9911 ;;
9912 freebsd12*)
9913 # C++ shared libraries reported to be fairly broken before switch to ELF
9914 ld_shlibs_CXX=no
9915 ;;
9916 freebsd-elf*)
9917 archive_cmds_need_lc_CXX=no
9918 ;;
9919 freebsd*)
9920 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9921 # conventions
9922 ld_shlibs_CXX=yes
9923 ;;
9924 gnu*)
9925 ;;
9926 hpux9*)
9927 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9928 hardcode_libdir_separator_CXX=:
9929 export_dynamic_flag_spec_CXX='${wl}-E'
9930 hardcode_direct_CXX=yes
9931 hardcode_minus_L_CXX=yes # Not in the search PATH,
9932 # but as the default
9933 # location of the library.
9934
9935 case $cc_basename in
9936 CC)
9937 # FIXME: insert proper C++ library support
9938 ld_shlibs_CXX=no
9939 ;;
9940 aCC)
9941 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'
9942 # Commands to make compiler produce verbose output that lists
9943 # what "hidden" libraries, object files and flags are used when
9944 # linking a shared library.
9945 #
9946 # There doesn't appear to be a way to prevent this compiler from
9947 # explicitly linking system object files so we need to strip them
9948 # from the output so that they don't get included in the library
9949 # dependencies.
9950 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9951 ;;
9952 *)
9953 if test "$GXX" = yes; then
9954 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'
9955 else
9956 # FIXME: insert proper C++ library support
9957 ld_shlibs_CXX=no
9958 fi
9959 ;;
9960 esac
9961 ;;
9962 hpux10*|hpux11*)
9963 if test $with_gnu_ld = no; then
9964 case "$host_cpu" in
9965 hppa*64*)
9966 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9967 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9968 hardcode_libdir_separator_CXX=:
9969 ;;
9970 ia64*)
9971 hardcode_libdir_flag_spec_CXX='-L$libdir'
9972 ;;
9973 *)
9974 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9975 hardcode_libdir_separator_CXX=:
9976 export_dynamic_flag_spec_CXX='${wl}-E'
9977 ;;
9978 esac
9979 fi
9980 case "$host_cpu" in
9981 hppa*64*)
9982 hardcode_direct_CXX=no
9983 hardcode_shlibpath_var_CXX=no
9984 ;;
9985 ia64*)
9986 hardcode_direct_CXX=no
9987 hardcode_shlibpath_var_CXX=no
9988 hardcode_minus_L_CXX=yes # Not in the search PATH,
9989 # but as the default
9990 # location of the library.
9991 ;;
9992 *)
9993 hardcode_direct_CXX=yes
9994 hardcode_minus_L_CXX=yes # Not in the search PATH,
9995 # but as the default
9996 # location of the library.
9997 ;;
9998 esac
9999
10000 case $cc_basename in
10001 CC)
10002 # FIXME: insert proper C++ library support
10003 ld_shlibs_CXX=no
10004 ;;
10005 aCC)
10006 case "$host_cpu" in
10007 hppa*64*|ia64*)
10008 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10009 ;;
10010 *)
10011 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10012 ;;
10013 esac
10014 # Commands to make compiler produce verbose output that lists
10015 # what "hidden" libraries, object files and flags are used when
10016 # linking a shared library.
10017 #
10018 # There doesn't appear to be a way to prevent this compiler from
10019 # explicitly linking system object files so we need to strip them
10020 # from the output so that they don't get included in the library
10021 # dependencies.
10022 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'
10023 ;;
10024 *)
10025 if test "$GXX" = yes; then
10026 if test $with_gnu_ld = no; then
10027 case "$host_cpu" in
10028 ia64*|hppa*64*)
10029 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10030 ;;
10031 *)
10032 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'
10033 ;;
10034 esac
10035 fi
10036 else
10037 # FIXME: insert proper C++ library support
10038 ld_shlibs_CXX=no
10039 fi
10040 ;;
10041 esac
10042 ;;
10043 irix5* | irix6*)
10044 case $cc_basename in
10045 CC)
10046 # SGI C++
10047 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'
10048
10049 # Archives containing C++ object files must be created using
10050 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10051 # necessary to make sure instantiated templates are included
10052 # in the archive.
10053 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10054 ;;
10055 *)
10056 if test "$GXX" = yes; then
10057 if test "$with_gnu_ld" = no; then
10058 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'
10059 else
10060 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'
10061 fi
10062 fi
10063 link_all_deplibs_CXX=yes
10064 ;;
10065 esac
10066 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10067 hardcode_libdir_separator_CXX=:
10068 ;;
10069 linux*)
10070 case $cc_basename in
10071 KCC)
10072 # Kuck and Associates, Inc. (KAI) C++ Compiler
10073
10074 # KCC will only create a shared library if the output file
10075 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10076 # to its proper name (with version) after linking.
10077 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'
10078 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'
10079 # Commands to make compiler produce verbose output that lists
10080 # what "hidden" libraries, object files and flags are used when
10081 # linking a shared library.
10082 #
10083 # There doesn't appear to be a way to prevent this compiler from
10084 # explicitly linking system object files so we need to strip them
10085 # from the output so that they don't get included in the library
10086 # dependencies.
10087 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'
10088
10089 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10090 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10091
10092 # Archives containing C++ object files must be created using
10093 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10094 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10095 ;;
10096 icpc)
10097 # Intel C++
10098 with_gnu_ld=yes
10099 archive_cmds_need_lc_CXX=no
10100 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10101 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'
10102 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10103 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10104 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10105 ;;
10106 cxx)
10107 # Compaq C++
10108 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10109 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'
10110
10111 runpath_var=LD_RUN_PATH
10112 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10113 hardcode_libdir_separator_CXX=:
10114
10115 # Commands to make compiler produce verbose output that lists
10116 # what "hidden" libraries, object files and flags are used when
10117 # linking a shared library.
10118 #
10119 # There doesn't appear to be a way to prevent this compiler from
10120 # explicitly linking system object files so we need to strip them
10121 # from the output so that they don't get included in the library
10122 # dependencies.
10123 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'
10124 ;;
10125 esac
10126 ;;
10127 lynxos*)
10128 # FIXME: insert proper C++ library support
10129 ld_shlibs_CXX=no
10130 ;;
10131 m88k*)
10132 # FIXME: insert proper C++ library support
10133 ld_shlibs_CXX=no
10134 ;;
10135 mvs*)
10136 case $cc_basename in
10137 cxx)
10138 # FIXME: insert proper C++ library support
10139 ld_shlibs_CXX=no
10140 ;;
10141 *)
10142 # FIXME: insert proper C++ library support
10143 ld_shlibs_CXX=no
10144 ;;
10145 esac
10146 ;;
10147 netbsd*)
10148 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10149 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10150 wlarc=
10151 hardcode_libdir_flag_spec_CXX='-R$libdir'
10152 hardcode_direct_CXX=yes
10153 hardcode_shlibpath_var_CXX=no
10154 fi
10155 # Workaround some broken pre-1.5 toolchains
10156 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10157 ;;
10158 osf3*)
10159 case $cc_basename in
10160 KCC)
10161 # Kuck and Associates, Inc. (KAI) C++ Compiler
10162
10163 # KCC will only create a shared library if the output file
10164 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10165 # to its proper name (with version) after linking.
10166 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'
10167
10168 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10169 hardcode_libdir_separator_CXX=:
10170
10171 # Archives containing C++ object files must be created using
10172 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10173 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10174
10175 ;;
10176 RCC)
10177 # Rational C++ 2.4.1
10178 # FIXME: insert proper C++ library support
10179 ld_shlibs_CXX=no
10180 ;;
10181 cxx)
10182 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10183 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'
10184
10185 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10186 hardcode_libdir_separator_CXX=:
10187
10188 # Commands to make compiler produce verbose output that lists
10189 # what "hidden" libraries, object files and flags are used when
10190 # linking a shared library.
10191 #
10192 # There doesn't appear to be a way to prevent this compiler from
10193 # explicitly linking system object files so we need to strip them
10194 # from the output so that they don't get included in the library
10195 # dependencies.
10196 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'
10197 ;;
10198 *)
10199 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10200 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10201 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'
10202
10203 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10204 hardcode_libdir_separator_CXX=:
10205
10206 # Commands to make compiler produce verbose output that lists
10207 # what "hidden" libraries, object files and flags are used when
10208 # linking a shared library.
10209 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10210
10211 else
10212 # FIXME: insert proper C++ library support
10213 ld_shlibs_CXX=no
10214 fi
10215 ;;
10216 esac
10217 ;;
10218 osf4* | osf5*)
10219 case $cc_basename in
10220 KCC)
10221 # Kuck and Associates, Inc. (KAI) C++ Compiler
10222
10223 # KCC will only create a shared library if the output file
10224 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10225 # to its proper name (with version) after linking.
10226 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'
10227
10228 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10229 hardcode_libdir_separator_CXX=:
10230
10231 # Archives containing C++ object files must be created using
10232 # the KAI C++ compiler.
10233 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10234 ;;
10235 RCC)
10236 # Rational C++ 2.4.1
10237 # FIXME: insert proper C++ library support
10238 ld_shlibs_CXX=no
10239 ;;
10240 cxx)
10241 allow_undefined_flag_CXX=' -expect_unresolved \*'
10242 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'
10243 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10244 echo "-hidden">> $lib.exp~
10245 $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~
10246 $rm $lib.exp'
10247
10248 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10249 hardcode_libdir_separator_CXX=:
10250
10251 # Commands to make compiler produce verbose output that lists
10252 # what "hidden" libraries, object files and flags are used when
10253 # linking a shared library.
10254 #
10255 # There doesn't appear to be a way to prevent this compiler from
10256 # explicitly linking system object files so we need to strip them
10257 # from the output so that they don't get included in the library
10258 # dependencies.
10259 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'
10260 ;;
10261 *)
10262 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10263 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10264 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'
10265
10266 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10267 hardcode_libdir_separator_CXX=:
10268
10269 # Commands to make compiler produce verbose output that lists
10270 # what "hidden" libraries, object files and flags are used when
10271 # linking a shared library.
10272 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10273
10274 else
10275 # FIXME: insert proper C++ library support
10276 ld_shlibs_CXX=no
10277 fi
10278 ;;
10279 esac
10280 ;;
10281 psos*)
10282 # FIXME: insert proper C++ library support
10283 ld_shlibs_CXX=no
10284 ;;
10285 sco*)
10286 archive_cmds_need_lc_CXX=no
10287 case $cc_basename in
10288 CC)
10289 # FIXME: insert proper C++ library support
10290 ld_shlibs_CXX=no
10291 ;;
10292 *)
10293 # FIXME: insert proper C++ library support
10294 ld_shlibs_CXX=no
10295 ;;
10296 esac
10297 ;;
10298 sunos4*)
10299 case $cc_basename in
10300 CC)
10301 # Sun C++ 4.x
10302 # FIXME: insert proper C++ library support
10303 ld_shlibs_CXX=no
10304 ;;
10305 lcc)
10306 # Lucid
10307 # FIXME: insert proper C++ library support
10308 ld_shlibs_CXX=no
10309 ;;
10310 *)
10311 # FIXME: insert proper C++ library support
10312 ld_shlibs_CXX=no
10313 ;;
10314 esac
10315 ;;
10316 solaris*)
10317 case $cc_basename in
10318 CC)
10319 # Sun C++ 4.2, 5.x and Centerline C++
10320 no_undefined_flag_CXX=' -zdefs'
10321 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10322 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10323 $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'
10324
10325 hardcode_libdir_flag_spec_CXX='-R$libdir'
10326 hardcode_shlibpath_var_CXX=no
10327 case $host_os in
10328 solaris2.0-5 | solaris2.0-5.*) ;;
10329 *)
10330 # The C++ compiler is used as linker so we must use $wl
10331 # flag to pass the commands to the underlying system
10332 # linker.
10333 # Supported since Solaris 2.6 (maybe 2.5.1?)
10334 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10335 ;;
10336 esac
10337 link_all_deplibs_CXX=yes
10338
10339 # Commands to make compiler produce verbose output that lists
10340 # what "hidden" libraries, object files and flags are used when
10341 # linking a shared library.
10342 #
10343 # There doesn't appear to be a way to prevent this compiler from
10344 # explicitly linking system object files so we need to strip them
10345 # from the output so that they don't get included in the library
10346 # dependencies.
10347 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'
10348
10349 # Archives containing C++ object files must be created using
10350 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10351 # necessary to make sure instantiated templates are included
10352 # in the archive.
10353 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10354 ;;
10355 gcx)
10356 # Green Hills C++ Compiler
10357 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10358
10359 # The C++ compiler must be used to create the archive.
10360 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10361 ;;
10362 *)
10363 # GNU C++ compiler with Solaris linker
10364 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10365 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10366 if $CC --version | grep -v '^2\.7' > /dev/null; then
10367 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10368 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10369 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10370
10371 # Commands to make compiler produce verbose output that lists
10372 # what "hidden" libraries, object files and flags are used when
10373 # linking a shared library.
10374 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10375 else
10376 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10377 # platform.
10378 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10379 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10380 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10381
10382 # Commands to make compiler produce verbose output that lists
10383 # what "hidden" libraries, object files and flags are used when
10384 # linking a shared library.
10385 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10386 fi
10387
10388 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10389 fi
10390 ;;
10391 esac
10392 ;;
10393 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10394 archive_cmds_need_lc_CXX=no
10395 ;;
10396 tandem*)
10397 case $cc_basename in
10398 NCC)
10399 # NonStop-UX NCC 3.20
10400 # FIXME: insert proper C++ library support
10401 ld_shlibs_CXX=no
10402 ;;
10403 *)
10404 # FIXME: insert proper C++ library support
10405 ld_shlibs_CXX=no
10406 ;;
10407 esac
10408 ;;
10409 vxworks*)
10410 # FIXME: insert proper C++ library support
10411 ld_shlibs_CXX=no
10412 ;;
10413 *)
10414 # FIXME: insert proper C++ library support
10415 ld_shlibs_CXX=no
10416 ;;
10417esac
10418echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10419echo "${ECHO_T}$ld_shlibs_CXX" >&6
10420test "$ld_shlibs_CXX" = no && can_build_shared=no
10421
10422GCC_CXX="$GXX"
10423LD_CXX="$LD"
10424
Reid Spencer2b51a082004-08-04 00:34:49 +000010425## CAVEAT EMPTOR:
10426## There is no encapsulation within the following macros, do not change
10427## the running order or otherwise move them around unless you know exactly
10428## what you are doing...
John Criswell47fdd832003-07-14 16:52:07 +000010429
10430cat > conftest.$ac_ext <<EOF
10431class Foo
10432{
10433public:
10434 Foo (void) { a = 0; }
10435private:
10436 int a;
10437};
10438EOF
10439
10440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10441 (eval $ac_compile) 2>&5
10442 ac_status=$?
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; then
10445 # Parse the compiler output and extract the necessary
10446 # objects, libraries and library flags.
10447
10448 # Sentinel used to keep track of whether or not we are before
10449 # the conftest object file.
10450 pre_test_object_deps_done=no
10451
10452 # The `*' in the case matches for architectures that use `case' in
10453 # $output_verbose_cmd can trigger glob expansion during the loop
10454 # eval without this substitution.
10455 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10456
10457 for p in `eval $output_verbose_link_cmd`; do
10458 case $p in
10459
10460 -L* | -R* | -l*)
10461 # Some compilers place space between "-{L,R}" and the path.
10462 # Remove the space.
10463 if test $p = "-L" \
10464 || test $p = "-R"; then
10465 prev=$p
10466 continue
10467 else
10468 prev=
10469 fi
10470
10471 if test "$pre_test_object_deps_done" = no; then
10472 case $p in
10473 -L* | -R*)
10474 # Internal compiler library paths should come after those
10475 # provided the user. The postdeps already come after the
10476 # user supplied libs so there is no need to process them.
10477 if test -z "$compiler_lib_search_path_CXX"; then
10478 compiler_lib_search_path_CXX="${prev}${p}"
10479 else
10480 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10481 fi
10482 ;;
10483 # The "-l" case would never come before the object being
10484 # linked, so don't bother handling this case.
10485 esac
10486 else
10487 if test -z "$postdeps_CXX"; then
10488 postdeps_CXX="${prev}${p}"
10489 else
10490 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10491 fi
10492 fi
10493 ;;
10494
10495 *.$objext)
10496 # This assumes that the test object file only shows up
10497 # once in the compiler output.
10498 if test "$p" = "conftest.$objext"; then
10499 pre_test_object_deps_done=yes
10500 continue
10501 fi
10502
10503 if test "$pre_test_object_deps_done" = no; then
10504 if test -z "$predep_objects_CXX"; then
10505 predep_objects_CXX="$p"
10506 else
10507 predep_objects_CXX="$predep_objects_CXX $p"
10508 fi
10509 else
10510 if test -z "$postdep_objects_CXX"; then
10511 postdep_objects_CXX="$p"
10512 else
10513 postdep_objects_CXX="$postdep_objects_CXX $p"
10514 fi
10515 fi
10516 ;;
10517
10518 *) ;; # Ignore the rest.
10519
10520 esac
10521 done
10522
10523 # Clean up.
10524 rm -f a.out a.exe
10525else
10526 echo "libtool.m4: error: problem compiling CXX test program"
10527fi
10528
10529$rm -f confest.$objext
10530
10531case " $postdeps_CXX " in
10532*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10533esac
10534
10535lt_prog_compiler_wl_CXX=
10536lt_prog_compiler_pic_CXX=
10537lt_prog_compiler_static_CXX=
10538
10539echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10540echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10541
10542 # C++ specific cases for pic, static, wl, etc.
10543 if test "$GXX" = yes; then
10544 lt_prog_compiler_wl_CXX='-Wl,'
10545 lt_prog_compiler_static_CXX='-static'
10546
10547 case $host_os in
10548 aix*)
10549 # All AIX code is PIC.
10550 if test "$host_cpu" = ia64; then
10551 # AIX 5 now supports IA64 processor
10552 lt_prog_compiler_static_CXX='-Bstatic'
10553 fi
10554 ;;
10555 amigaos*)
10556 # FIXME: we need at least 68020 code to build shared libraries, but
10557 # adding the `-m68020' flag to GCC prevents building anything better,
10558 # like `-m68040'.
10559 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10560 ;;
10561 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10562 # PIC is the default for these OSes.
10563 ;;
10564 mingw* | os2* | pw32*)
10565 # This hack is so that the source file can tell whether it is being
10566 # built for inclusion in a dll (and should export symbols for example).
10567 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10568 ;;
10569 darwin* | rhapsody*)
10570 # PIC is the default on this platform
10571 # Common symbols not allowed in MH_DYLIB files
10572 lt_prog_compiler_pic_CXX='-fno-common'
10573 ;;
10574 *djgpp*)
10575 # DJGPP does not support shared libraries at all
10576 lt_prog_compiler_pic_CXX=
10577 ;;
10578 sysv4*MP*)
10579 if test -d /usr/nec; then
10580 lt_prog_compiler_pic_CXX=-Kconform_pic
10581 fi
10582 ;;
10583 hpux*)
10584 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10585 # not for PA HP-UX.
10586 case "$host_cpu" in
10587 hppa*64*|ia64*)
10588 ;;
10589 *)
10590 lt_prog_compiler_pic_CXX='-fPIC'
10591 ;;
10592 esac
10593 ;;
10594 *)
10595 lt_prog_compiler_pic_CXX='-fPIC'
10596 ;;
10597 esac
10598 else
10599 case $host_os in
10600 aix4* | aix5*)
10601 # All AIX code is PIC.
10602 if test "$host_cpu" = ia64; then
10603 # AIX 5 now supports IA64 processor
10604 lt_prog_compiler_static_CXX='-Bstatic'
10605 else
10606 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10607 fi
10608 ;;
10609 chorus*)
10610 case $cc_basename in
10611 cxch68)
10612 # Green Hills C++ Compiler
10613 # _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"
10614 ;;
10615 esac
10616 ;;
10617 dgux*)
10618 case $cc_basename in
10619 ec++)
10620 lt_prog_compiler_pic_CXX='-KPIC'
10621 ;;
10622 ghcx)
10623 # Green Hills C++ Compiler
10624 lt_prog_compiler_pic_CXX='-pic'
10625 ;;
10626 *)
10627 ;;
10628 esac
10629 ;;
10630 freebsd*)
10631 # FreeBSD uses GNU C++
10632 ;;
10633 hpux9* | hpux10* | hpux11*)
10634 case $cc_basename in
10635 CC)
10636 lt_prog_compiler_wl_CXX='-Wl,'
10637 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10638 if test "$host_cpu" != ia64; then
10639 lt_prog_compiler_pic_CXX='+Z'
10640 fi
10641 ;;
10642 aCC)
10643 lt_prog_compiler_wl_CXX='-Wl,'
10644 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10645 case "$host_cpu" in
10646 hppa*64*|ia64*)
10647 # +Z the default
10648 ;;
10649 *)
10650 lt_prog_compiler_pic_CXX='+Z'
10651 ;;
10652 esac
10653 ;;
10654 *)
10655 ;;
10656 esac
10657 ;;
10658 irix5* | irix6* | nonstopux*)
10659 case $cc_basename in
10660 CC)
10661 lt_prog_compiler_wl_CXX='-Wl,'
10662 lt_prog_compiler_static_CXX='-non_shared'
10663 # CC pic flag -KPIC is the default.
10664 ;;
10665 *)
10666 ;;
10667 esac
10668 ;;
10669 linux*)
10670 case $cc_basename in
10671 KCC)
10672 # KAI C++ Compiler
10673 lt_prog_compiler_wl_CXX='--backend -Wl,'
10674 lt_prog_compiler_pic_CXX='-fPIC'
10675 ;;
10676 icpc)
10677 # Intel C++
10678 lt_prog_compiler_wl_CXX='-Wl,'
10679 lt_prog_compiler_pic_CXX='-KPIC'
10680 lt_prog_compiler_static_CXX='-static'
10681 ;;
10682 cxx)
10683 # Compaq C++
10684 # Make sure the PIC flag is empty. It appears that all Alpha
10685 # Linux and Compaq Tru64 Unix objects are PIC.
10686 lt_prog_compiler_pic_CXX=
10687 lt_prog_compiler_static_CXX='-non_shared'
10688 ;;
10689 *)
10690 ;;
10691 esac
10692 ;;
10693 lynxos*)
10694 ;;
10695 m88k*)
10696 ;;
10697 mvs*)
10698 case $cc_basename in
10699 cxx)
10700 lt_prog_compiler_pic_CXX='-W c,exportall'
10701 ;;
10702 *)
10703 ;;
10704 esac
10705 ;;
10706 netbsd*)
10707 ;;
10708 osf3* | osf4* | osf5*)
10709 case $cc_basename in
10710 KCC)
10711 lt_prog_compiler_wl_CXX='--backend -Wl,'
10712 ;;
10713 RCC)
10714 # Rational C++ 2.4.1
10715 lt_prog_compiler_pic_CXX='-pic'
10716 ;;
10717 cxx)
10718 # Digital/Compaq C++
10719 lt_prog_compiler_wl_CXX='-Wl,'
10720 # Make sure the PIC flag is empty. It appears that all Alpha
10721 # Linux and Compaq Tru64 Unix objects are PIC.
10722 lt_prog_compiler_pic_CXX=
10723 lt_prog_compiler_static_CXX='-non_shared'
10724 ;;
10725 *)
10726 ;;
10727 esac
10728 ;;
10729 psos*)
10730 ;;
10731 sco*)
10732 case $cc_basename in
10733 CC)
10734 lt_prog_compiler_pic_CXX='-fPIC'
10735 ;;
10736 *)
10737 ;;
10738 esac
10739 ;;
10740 solaris*)
10741 case $cc_basename in
10742 CC)
10743 # Sun C++ 4.2, 5.x and Centerline C++
10744 lt_prog_compiler_pic_CXX='-KPIC'
10745 lt_prog_compiler_static_CXX='-Bstatic'
10746 lt_prog_compiler_wl_CXX='-Qoption ld '
10747 ;;
10748 gcx)
10749 # Green Hills C++ Compiler
10750 lt_prog_compiler_pic_CXX='-PIC'
10751 ;;
10752 *)
10753 ;;
10754 esac
10755 ;;
10756 sunos4*)
10757 case $cc_basename in
10758 CC)
10759 # Sun C++ 4.x
10760 lt_prog_compiler_pic_CXX='-pic'
10761 lt_prog_compiler_static_CXX='-Bstatic'
10762 ;;
10763 lcc)
10764 # Lucid
10765 lt_prog_compiler_pic_CXX='-pic'
10766 ;;
10767 *)
10768 ;;
10769 esac
10770 ;;
10771 tandem*)
10772 case $cc_basename in
10773 NCC)
10774 # NonStop-UX NCC 3.20
10775 lt_prog_compiler_pic_CXX='-KPIC'
10776 ;;
10777 *)
10778 ;;
10779 esac
10780 ;;
10781 unixware*)
10782 ;;
10783 vxworks*)
10784 ;;
10785 *)
10786 lt_prog_compiler_can_build_shared_CXX=no
10787 ;;
10788 esac
10789 fi
10790
10791echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10792echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10793
10794#
10795# Check to make sure the PIC flag actually works.
10796#
10797if test -n "$lt_prog_compiler_pic_CXX"; then
10798 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10799echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10800if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10801 echo $ECHO_N "(cached) $ECHO_C" >&6
10802else
10803 lt_prog_compiler_pic_works_CXX=no
10804 ac_outfile=conftest.$ac_objext
10805 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10806 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10807 # Insert the option either (1) after the last *FLAGS variable, or
10808 # (2) before a word containing "conftest.", or (3) at the end.
10809 # Note that $ac_compile itself does not contain backslashes and begins
10810 # with a dollar sign (not a hyphen), so the echo should work correctly.
10811 # The option is referenced via a variable to avoid confusing sed.
10812 lt_compile=`echo "$ac_compile" | $SED \
10813 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10815 -e 's:$: $lt_compiler_flag:'`
Reid Spencerde8c47f2004-08-29 19:35:28 +000010816 (eval echo "\"\$as_me:10816: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010817 (eval "$lt_compile" 2>conftest.err)
10818 ac_status=$?
10819 cat conftest.err >&5
Reid Spencerde8c47f2004-08-29 19:35:28 +000010820 echo "$as_me:10820: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010821 if (exit $ac_status) && test -s "$ac_outfile"; then
10822 # The compiler can only warn and ignore the option if not recognized
10823 # So say no if there are warnings
10824 if test ! -s conftest.err; then
10825 lt_prog_compiler_pic_works_CXX=yes
10826 fi
10827 fi
10828 $rm conftest*
10829
10830fi
10831echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10832echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10833
10834if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10835 case $lt_prog_compiler_pic_CXX in
10836 "" | " "*) ;;
10837 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10838 esac
10839else
10840 lt_prog_compiler_pic_CXX=
10841 lt_prog_compiler_can_build_shared_CXX=no
10842fi
10843
10844fi
10845case "$host_os" in
10846 # For platforms which do not support PIC, -DPIC is meaningless:
10847 *djgpp*)
10848 lt_prog_compiler_pic_CXX=
10849 ;;
10850 *)
10851 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10852 ;;
10853esac
10854
10855echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10856echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10857if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10858 echo $ECHO_N "(cached) $ECHO_C" >&6
10859else
10860 lt_cv_prog_compiler_c_o_CXX=no
10861 $rm -r conftest 2>/dev/null
10862 mkdir conftest
10863 cd conftest
10864 mkdir out
10865 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10866
10867 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10868 # that will create temporary files in the current directory regardless of
10869 # the output directory. Thus, making CWD read-only will cause this test
10870 # to fail, enabling locking or at least warning the user not to do parallel
10871 # builds.
10872 chmod -w .
10873
10874 lt_compiler_flag="-o out/conftest2.$ac_objext"
10875 # Insert the option either (1) after the last *FLAGS variable, or
10876 # (2) before a word containing "conftest.", or (3) at the end.
10877 # Note that $ac_compile itself does not contain backslashes and begins
10878 # with a dollar sign (not a hyphen), so the echo should work correctly.
10879 lt_compile=`echo "$ac_compile" | $SED \
10880 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10882 -e 's:$: $lt_compiler_flag:'`
Reid Spencerde8c47f2004-08-29 19:35:28 +000010883 (eval echo "\"\$as_me:10883: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010884 (eval "$lt_compile" 2>out/conftest.err)
10885 ac_status=$?
10886 cat out/conftest.err >&5
Reid Spencerde8c47f2004-08-29 19:35:28 +000010887 echo "$as_me:10887: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010888 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10889 then
10890 # The compiler can only warn and ignore the option if not recognized
10891 # So say no if there are warnings
10892 if test ! -s out/conftest.err; then
10893 lt_cv_prog_compiler_c_o_CXX=yes
10894 fi
10895 fi
10896 chmod u+w .
10897 $rm conftest* out/*
10898 rmdir out
10899 cd ..
10900 rmdir conftest
10901 $rm conftest*
10902
10903fi
10904echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10905echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10906
10907
10908hard_links="nottested"
10909if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10910 # do not overwrite the value of need_locks provided by the user
10911 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10912echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10913 hard_links=yes
10914 $rm conftest*
10915 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10916 touch conftest.a
10917 ln conftest.a conftest.b 2>&5 || hard_links=no
10918 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10919 echo "$as_me:$LINENO: result: $hard_links" >&5
10920echo "${ECHO_T}$hard_links" >&6
10921 if test "$hard_links" = no; then
10922 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10923echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10924 need_locks=warn
10925 fi
10926else
10927 need_locks=no
10928fi
10929
10930echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10931echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10932
10933 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10934 case $host_os in
10935 aix4* | aix5*)
10936 # If we're using GNU nm, then we don't want the "-C" option.
10937 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10938 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10939 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'
10940 else
10941 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'
10942 fi
10943 ;;
10944 pw32*)
10945 export_symbols_cmds_CXX="$ltdll_cmds"
10946 ;;
10947 cygwin* | mingw*)
10948 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10949 ;;
10950 *)
10951 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10952 ;;
10953 esac
10954
10955echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10956echo "${ECHO_T}$ld_shlibs_CXX" >&6
10957test "$ld_shlibs_CXX" = no && can_build_shared=no
10958
10959variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10960if test "$GCC" = yes; then
10961 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10962fi
10963
10964#
10965# Do we need to explicitly link libc?
10966#
10967case "x$archive_cmds_need_lc_CXX" in
10968x|xyes)
10969 # Assume -lc should be added
10970 archive_cmds_need_lc_CXX=yes
10971
10972 if test "$enable_shared" = yes && test "$GCC" = yes; then
10973 case $archive_cmds_CXX in
10974 *'~'*)
10975 # FIXME: we may have to deal with multi-command sequences.
10976 ;;
10977 '$CC '*)
10978 # Test whether the compiler implicitly links with -lc since on some
10979 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10980 # to ld, don't add -lc before -lgcc.
10981 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10982echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10983 $rm conftest*
10984 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10985
10986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10987 (eval $ac_compile) 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } 2>conftest.err; then
10991 soname=conftest
10992 lib=conftest
10993 libobjs=conftest.$ac_objext
10994 deplibs=
10995 wl=$lt_prog_compiler_wl_CXX
10996 compiler_flags=-v
10997 linker_flags=-v
10998 verstring=
10999 output_objdir=.
11000 libname=conftest
11001 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11002 allow_undefined_flag_CXX=
11003 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11004 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11005 ac_status=$?
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }
11008 then
11009 archive_cmds_need_lc_CXX=no
11010 else
11011 archive_cmds_need_lc_CXX=yes
11012 fi
11013 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11014 else
11015 cat conftest.err 1>&5
11016 fi
11017 $rm conftest*
11018 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11019echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11020 ;;
11021 esac
11022 fi
11023 ;;
11024esac
11025
11026echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11027echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11028hardcode_action_CXX=
11029if test -n "$hardcode_libdir_flag_spec_CXX" || \
11030 test -n "$runpath_var CXX" || \
11031 test "X$hardcode_automatic_CXX"="Xyes" ; then
11032
11033 # We can hardcode non-existant directories.
11034 if test "$hardcode_direct_CXX" != no &&
11035 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11036 # have to relink, otherwise we might link with an installed library
11037 # when we should be linking with a yet-to-be-installed one
11038 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11039 test "$hardcode_minus_L_CXX" != no; then
11040 # Linking always hardcodes the temporary library directory.
11041 hardcode_action_CXX=relink
11042 else
11043 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11044 hardcode_action_CXX=immediate
11045 fi
11046else
11047 # We cannot hardcode anything, or else we can only hardcode existing
11048 # directories.
11049 hardcode_action_CXX=unsupported
11050fi
11051echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11052echo "${ECHO_T}$hardcode_action_CXX" >&6
11053
11054if test "$hardcode_action_CXX" = relink; then
11055 # Fast installation is not supported
11056 enable_fast_install=no
11057elif test "$shlibpath_overrides_runpath" = yes ||
11058 test "$enable_shared" = no; then
11059 # Fast installation is not necessary
11060 enable_fast_install=needless
11061fi
11062
11063striplib=
11064old_striplib=
11065echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11066echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11067if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11068 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11069 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11070 echo "$as_me:$LINENO: result: yes" >&5
11071echo "${ECHO_T}yes" >&6
11072else
11073# FIXME - insert some real tests, host_os isn't really good enough
11074 case $host_os in
11075 darwin*)
11076 if test -n "$STRIP" ; then
11077 striplib="$STRIP -x"
11078 echo "$as_me:$LINENO: result: yes" >&5
11079echo "${ECHO_T}yes" >&6
11080 else
11081 echo "$as_me:$LINENO: result: no" >&5
11082echo "${ECHO_T}no" >&6
11083fi
11084 ;;
11085 *)
11086 echo "$as_me:$LINENO: result: no" >&5
11087echo "${ECHO_T}no" >&6
11088 ;;
11089 esac
11090fi
11091
11092echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11093echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11094library_names_spec=
11095libname_spec='lib$name'
11096soname_spec=
11097shrext=".so"
11098postinstall_cmds=
11099postuninstall_cmds=
11100finish_cmds=
11101finish_eval=
11102shlibpath_var=
11103shlibpath_overrides_runpath=unknown
11104version_type=none
11105dynamic_linker="$host_os ld.so"
11106sys_lib_dlsearch_path_spec="/lib /usr/lib"
11107if test "$GCC" = yes; then
11108 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11109 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11110 # if the path contains ";" then we assume it to be the separator
11111 # otherwise default to the standard path separator (i.e. ":") - it is
11112 # assumed that no part of a normal pathname contains ";" but that should
11113 # okay in the real world where ";" in dirpaths is itself problematic.
11114 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11115 else
11116 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11117 fi
11118else
11119 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11120fi
11121need_lib_prefix=unknown
11122hardcode_into_libs=no
11123
11124# when you set need_version to no, make sure it does not cause -set_version
11125# flags to be left without arguments
11126need_version=unknown
11127
11128case $host_os in
11129aix3*)
11130 version_type=linux
11131 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11132 shlibpath_var=LIBPATH
11133
11134 # AIX 3 has no versioning support, so we append a major version to the name.
11135 soname_spec='${libname}${release}${shared_ext}$major'
11136 ;;
11137
11138aix4* | aix5*)
11139 version_type=linux
11140 need_lib_prefix=no
11141 need_version=no
11142 hardcode_into_libs=yes
11143 if test "$host_cpu" = ia64; then
11144 # AIX 5 supports IA64
11145 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11146 shlibpath_var=LD_LIBRARY_PATH
11147 else
11148 # With GCC up to 2.95.x, collect2 would create an import file
11149 # for dependence libraries. The import file would start with
11150 # the line `#! .'. This would cause the generated library to
11151 # depend on `.', always an invalid library. This was fixed in
11152 # development snapshots of GCC prior to 3.0.
11153 case $host_os in
11154 aix4 | aix4.[01] | aix4.[01].*)
11155 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11156 echo ' yes '
11157 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11158 :
11159 else
11160 can_build_shared=no
11161 fi
11162 ;;
11163 esac
11164 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11165 # soname into executable. Probably we can add versioning support to
11166 # collect2, so additional links can be useful in future.
11167 if test "$aix_use_runtimelinking" = yes; then
11168 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11169 # instead of lib<name>.a to let people know that these are not
11170 # typical AIX shared libraries.
11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11172 else
11173 # We preserve .a as extension for shared libraries through AIX4.2
11174 # and later when we are not doing run time linking.
11175 library_names_spec='${libname}${release}.a $libname.a'
11176 soname_spec='${libname}${release}${shared_ext}$major'
11177 fi
11178 shlibpath_var=LIBPATH
11179 fi
11180 ;;
11181
11182amigaos*)
11183 library_names_spec='$libname.ixlibrary $libname.a'
11184 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11185 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'
11186 ;;
11187
11188beos*)
11189 library_names_spec='${libname}${shared_ext}'
11190 dynamic_linker="$host_os ld.so"
11191 shlibpath_var=LIBRARY_PATH
11192 ;;
11193
11194bsdi4*)
11195 version_type=linux
11196 need_version=no
11197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11198 soname_spec='${libname}${release}${shared_ext}$major'
11199 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11200 shlibpath_var=LD_LIBRARY_PATH
11201 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11202 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11203 # the default ld.so.conf also contains /usr/contrib/lib and
11204 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11205 # libtool to hard-code these into programs
11206 ;;
11207
11208cygwin* | mingw* | pw32*)
11209 version_type=windows
11210 shrext=".dll"
11211 need_version=no
11212 need_lib_prefix=no
11213
11214 case $GCC,$host_os in
11215 yes,cygwin* | yes,mingw* | yes,pw32*)
11216 library_names_spec='$libname.dll.a'
11217 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11218 postinstall_cmds='base_file=`basename \${file}`~
11219 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11220 dldir=$destdir/`dirname \$dlpath`~
11221 test -d \$dldir || mkdir -p \$dldir~
11222 $install_prog $dir/$dlname \$dldir/$dlname'
11223 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11224 dlpath=$dir/\$dldll~
11225 $rm \$dlpath'
11226 shlibpath_overrides_runpath=yes
11227
11228 case $host_os in
11229 cygwin*)
11230 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11231 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11232 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11233 ;;
11234 mingw*)
11235 # MinGW DLLs use traditional 'lib' prefix
11236 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11237 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11238 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11239 # It is most probably a Windows format PATH printed by
11240 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11241 # path with ; separators, and with drive letters. We can handle the
11242 # drive letters (cygwin fileutils understands them), so leave them,
11243 # especially as we might pass files found there to a mingw objdump,
11244 # which wouldn't understand a cygwinified path. Ahh.
11245 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11246 else
11247 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11248 fi
11249 ;;
11250 pw32*)
11251 # pw32 DLLs use 'pw' prefix rather than 'lib'
11252 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11253 ;;
11254 esac
11255 ;;
11256
11257 *)
11258 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11259 ;;
11260 esac
11261 dynamic_linker='Win32 ld.exe'
11262 # FIXME: first we should search . and the directory the executable is in
11263 shlibpath_var=PATH
11264 ;;
11265
11266darwin* | rhapsody*)
11267 dynamic_linker="$host_os dyld"
11268 version_type=darwin
11269 need_lib_prefix=no
11270 need_version=no
11271 # FIXME: Relying on posixy $() will cause problems for
11272 # cross-compilation, but unfortunately the echo tests do not
11273 # yet detect zsh echo's removal of \ escapes.
11274 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11275 soname_spec='${libname}${release}${major}$shared_ext'
11276 shlibpath_overrides_runpath=yes
11277 shlibpath_var=DYLD_LIBRARY_PATH
11278 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11279 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11280 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11281 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"`
11282 fi
11283 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11284 ;;
11285
11286dgux*)
11287 version_type=linux
11288 need_lib_prefix=no
11289 need_version=no
11290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11291 soname_spec='${libname}${release}${shared_ext}$major'
11292 shlibpath_var=LD_LIBRARY_PATH
11293 ;;
11294
11295freebsd1*)
11296 dynamic_linker=no
11297 ;;
11298
11299freebsd*)
11300 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11301 version_type=freebsd-$objformat
11302 case $version_type in
11303 freebsd-elf*)
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11305 need_version=no
11306 need_lib_prefix=no
11307 ;;
11308 freebsd-*)
11309 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11310 need_version=yes
11311 ;;
11312 esac
11313 shlibpath_var=LD_LIBRARY_PATH
11314 case $host_os in
11315 freebsd2*)
11316 shlibpath_overrides_runpath=yes
11317 ;;
11318 freebsd3.01* | freebsdelf3.01*)
11319 shlibpath_overrides_runpath=yes
11320 hardcode_into_libs=yes
11321 ;;
11322 *) # from 3.2 on
11323 shlibpath_overrides_runpath=no
11324 hardcode_into_libs=yes
11325 ;;
11326 esac
11327 ;;
11328
11329gnu*)
11330 version_type=linux
11331 need_lib_prefix=no
11332 need_version=no
11333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11334 soname_spec='${libname}${release}${shared_ext}$major'
11335 shlibpath_var=LD_LIBRARY_PATH
11336 hardcode_into_libs=yes
11337 ;;
11338
11339hpux9* | hpux10* | hpux11*)
11340 # Give a soname corresponding to the major version so that dld.sl refuses to
11341 # link against other versions.
11342 version_type=sunos
11343 need_lib_prefix=no
11344 need_version=no
11345 case "$host_cpu" in
11346 ia64*)
11347 shrext='.so'
11348 hardcode_into_libs=yes
11349 dynamic_linker="$host_os dld.so"
11350 shlibpath_var=LD_LIBRARY_PATH
11351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11353 soname_spec='${libname}${release}${shared_ext}$major'
11354 if test "X$HPUX_IA64_MODE" = X32; then
11355 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11356 else
11357 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11358 fi
11359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11360 ;;
11361 hppa*64*)
11362 shrext='.sl'
11363 hardcode_into_libs=yes
11364 dynamic_linker="$host_os dld.sl"
11365 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11366 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11368 soname_spec='${libname}${release}${shared_ext}$major'
11369 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11371 ;;
11372 *)
11373 shrext='.sl'
11374 dynamic_linker="$host_os dld.sl"
11375 shlibpath_var=SHLIB_PATH
11376 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11378 soname_spec='${libname}${release}${shared_ext}$major'
11379 ;;
11380 esac
11381 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11382 postinstall_cmds='chmod 555 $lib'
11383 ;;
11384
11385irix5* | irix6* | nonstopux*)
11386 case $host_os in
11387 nonstopux*) version_type=nonstopux ;;
11388 *)
11389 if test "$lt_cv_prog_gnu_ld" = yes; then
11390 version_type=linux
11391 else
11392 version_type=irix
11393 fi ;;
11394 esac
11395 need_lib_prefix=no
11396 need_version=no
11397 soname_spec='${libname}${release}${shared_ext}$major'
11398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11399 case $host_os in
11400 irix5* | nonstopux*)
11401 libsuff= shlibsuff=
11402 ;;
11403 *)
11404 case $LD in # libtool.m4 will add one of these switches to LD
11405 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11406 libsuff= shlibsuff= libmagic=32-bit;;
11407 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11408 libsuff=32 shlibsuff=N32 libmagic=N32;;
11409 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11410 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11411 *) libsuff= shlibsuff= libmagic=never-match;;
11412 esac
11413 ;;
11414 esac
11415 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11416 shlibpath_overrides_runpath=no
11417 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11418 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11419 hardcode_into_libs=yes
11420 ;;
11421
11422# No shared lib support for Linux oldld, aout, or coff.
11423linux*oldld* | linux*aout* | linux*coff*)
11424 dynamic_linker=no
11425 ;;
11426
11427# This must be Linux ELF.
11428linux*)
11429 version_type=linux
11430 need_lib_prefix=no
11431 need_version=no
11432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11433 soname_spec='${libname}${release}${shared_ext}$major'
11434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11435 shlibpath_var=LD_LIBRARY_PATH
11436 shlibpath_overrides_runpath=no
11437 # This implies no fast_install, which is unacceptable.
11438 # Some rework will be needed to allow for fast_install
11439 # before this can be enabled.
11440 hardcode_into_libs=yes
11441
11442 # We used to test for /lib/ld.so.1 and disable shared libraries on
11443 # powerpc, because MkLinux only supported shared libraries with the
11444 # GNU dynamic linker. Since this was broken with cross compilers,
11445 # most powerpc-linux boxes support dynamic linking these days and
11446 # people can always --disable-shared, the test was removed, and we
11447 # assume the GNU/Linux dynamic linker is in use.
11448 dynamic_linker='GNU/Linux ld.so'
11449 ;;
11450
11451netbsd*)
11452 version_type=sunos
11453 need_lib_prefix=no
11454 need_version=no
11455 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11458 dynamic_linker='NetBSD (a.out) ld.so'
11459 else
11460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11461 soname_spec='${libname}${release}${shared_ext}$major'
11462 dynamic_linker='NetBSD ld.elf_so'
11463 fi
11464 shlibpath_var=LD_LIBRARY_PATH
11465 shlibpath_overrides_runpath=yes
11466 hardcode_into_libs=yes
11467 ;;
11468
11469newsos6)
11470 version_type=linux
11471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11472 shlibpath_var=LD_LIBRARY_PATH
11473 shlibpath_overrides_runpath=yes
11474 ;;
11475
11476nto-qnx)
11477 version_type=linux
11478 need_lib_prefix=no
11479 need_version=no
11480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11481 soname_spec='${libname}${release}${shared_ext}$major'
11482 shlibpath_var=LD_LIBRARY_PATH
11483 shlibpath_overrides_runpath=yes
11484 ;;
11485
11486openbsd*)
11487 version_type=sunos
11488 need_lib_prefix=no
11489 need_version=no
11490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11491 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11492 shlibpath_var=LD_LIBRARY_PATH
11493 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11494 case $host_os in
11495 openbsd2.[89] | openbsd2.[89].*)
11496 shlibpath_overrides_runpath=no
11497 ;;
11498 *)
11499 shlibpath_overrides_runpath=yes
11500 ;;
11501 esac
11502 else
11503 shlibpath_overrides_runpath=yes
11504 fi
11505 ;;
11506
11507os2*)
11508 libname_spec='$name'
11509 shrext=".dll"
11510 need_lib_prefix=no
11511 library_names_spec='$libname${shared_ext} $libname.a'
11512 dynamic_linker='OS/2 ld.exe'
11513 shlibpath_var=LIBPATH
11514 ;;
11515
11516osf3* | osf4* | osf5*)
11517 version_type=osf
11518 need_lib_prefix=no
11519 need_version=no
11520 soname_spec='${libname}${release}${shared_ext}$major'
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11522 shlibpath_var=LD_LIBRARY_PATH
11523 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11524 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11525 ;;
11526
11527sco3.2v5*)
11528 version_type=osf
11529 soname_spec='${libname}${release}${shared_ext}$major'
11530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11531 shlibpath_var=LD_LIBRARY_PATH
11532 ;;
11533
11534solaris*)
11535 version_type=linux
11536 need_lib_prefix=no
11537 need_version=no
11538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11539 soname_spec='${libname}${release}${shared_ext}$major'
11540 shlibpath_var=LD_LIBRARY_PATH
11541 shlibpath_overrides_runpath=yes
11542 hardcode_into_libs=yes
11543 # ldd complains unless libraries are executable
11544 postinstall_cmds='chmod +x $lib'
11545 ;;
11546
11547sunos4*)
11548 version_type=sunos
11549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11550 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11551 shlibpath_var=LD_LIBRARY_PATH
11552 shlibpath_overrides_runpath=yes
11553 if test "$with_gnu_ld" = yes; then
11554 need_lib_prefix=no
11555 fi
11556 need_version=yes
11557 ;;
11558
11559sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11560 version_type=linux
11561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11562 soname_spec='${libname}${release}${shared_ext}$major'
11563 shlibpath_var=LD_LIBRARY_PATH
11564 case $host_vendor in
11565 sni)
11566 shlibpath_overrides_runpath=no
11567 need_lib_prefix=no
11568 export_dynamic_flag_spec='${wl}-Blargedynsym'
11569 runpath_var=LD_RUN_PATH
11570 ;;
11571 siemens)
11572 need_lib_prefix=no
11573 ;;
11574 motorola)
11575 need_lib_prefix=no
11576 need_version=no
11577 shlibpath_overrides_runpath=no
11578 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11579 ;;
11580 esac
11581 ;;
11582
11583sysv4*MP*)
11584 if test -d /usr/nec ;then
11585 version_type=linux
11586 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11587 soname_spec='$libname${shared_ext}.$major'
11588 shlibpath_var=LD_LIBRARY_PATH
11589 fi
11590 ;;
11591
11592uts4*)
11593 version_type=linux
11594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11595 soname_spec='${libname}${release}${shared_ext}$major'
11596 shlibpath_var=LD_LIBRARY_PATH
11597 ;;
11598
11599*)
11600 dynamic_linker=no
11601 ;;
11602esac
11603echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11604echo "${ECHO_T}$dynamic_linker" >&6
11605test "$dynamic_linker" = no && can_build_shared=no
11606
11607if test "x$enable_dlopen" != xyes; then
11608 enable_dlopen=unknown
11609 enable_dlopen_self=unknown
11610 enable_dlopen_self_static=unknown
11611else
11612 lt_cv_dlopen=no
11613 lt_cv_dlopen_libs=
11614
11615 case $host_os in
11616 beos*)
11617 lt_cv_dlopen="load_add_on"
11618 lt_cv_dlopen_libs=
11619 lt_cv_dlopen_self=yes
11620 ;;
11621
11622 mingw* | pw32*)
11623 lt_cv_dlopen="LoadLibrary"
11624 lt_cv_dlopen_libs=
11625 ;;
11626
11627 cygwin*)
11628 lt_cv_dlopen="dlopen"
11629 lt_cv_dlopen_libs=
11630 ;;
11631
11632 darwin*)
11633 # if libdl is installed we need to link against it
11634 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11635echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11636if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11637 echo $ECHO_N "(cached) $ECHO_C" >&6
11638else
11639 ac_check_lib_save_LIBS=$LIBS
11640LIBS="-ldl $LIBS"
11641cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011642/* confdefs.h. */
11643_ACEOF
11644cat confdefs.h >>conftest.$ac_ext
11645cat >>conftest.$ac_ext <<_ACEOF
11646/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011647
11648/* Override any gcc2 internal prototype to avoid an error. */
11649#ifdef __cplusplus
11650extern "C"
11651#endif
11652/* We use char because int might match the return type of a gcc2
11653 builtin and then its argument prototype would still apply. */
11654char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011655int
11656main ()
11657{
11658dlopen ();
11659 ;
11660 return 0;
11661}
11662_ACEOF
11663rm -f conftest.$ac_objext conftest$ac_exeext
11664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000011665 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011666 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000011667 grep -v '^ *+' conftest.er1 >conftest.err
11668 rm -f conftest.er1
11669 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000011672 { ac_try='test -z "$ac_cxx_werror_flag"
11673 || test ! -s conftest.err'
11674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675 (eval $ac_try) 2>&5
11676 ac_status=$?
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; } &&
11679 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11681 (eval $ac_try) 2>&5
11682 ac_status=$?
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; }; then
11685 ac_cv_lib_dl_dlopen=yes
11686else
11687 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011688sed 's/^/| /' conftest.$ac_ext >&5
11689
John Criswell47fdd832003-07-14 16:52:07 +000011690ac_cv_lib_dl_dlopen=no
11691fi
Reid Spencer2b51a082004-08-04 00:34:49 +000011692rm -f conftest.err conftest.$ac_objext \
11693 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011694LIBS=$ac_check_lib_save_LIBS
11695fi
11696echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11697echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11698if test $ac_cv_lib_dl_dlopen = yes; then
11699 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11700else
11701
11702 lt_cv_dlopen="dyld"
11703 lt_cv_dlopen_libs=
11704 lt_cv_dlopen_self=yes
11705
11706fi
11707
11708 ;;
11709
11710 *)
11711 echo "$as_me:$LINENO: checking for shl_load" >&5
11712echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11713if test "${ac_cv_func_shl_load+set}" = set; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11715else
11716 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011717/* confdefs.h. */
11718_ACEOF
11719cat confdefs.h >>conftest.$ac_ext
11720cat >>conftest.$ac_ext <<_ACEOF
11721/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000011722/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11724#define shl_load innocuous_shl_load
11725
John Criswell47fdd832003-07-14 16:52:07 +000011726/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011727 which can conflict with char shl_load (); below.
11728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11729 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000011730
John Criswell0c38eaf2003-09-10 15:17:25 +000011731#ifdef __STDC__
11732# include <limits.h>
11733#else
11734# include <assert.h>
11735#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000011736
11737#undef shl_load
11738
John Criswell47fdd832003-07-14 16:52:07 +000011739/* Override any gcc2 internal prototype to avoid an error. */
11740#ifdef __cplusplus
11741extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011742{
John Criswell47fdd832003-07-14 16:52:07 +000011743#endif
11744/* We use char because int might match the return type of a gcc2
11745 builtin and then its argument prototype would still apply. */
11746char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011747/* The GNU C library defines this for functions which it implements
11748 to always fail with ENOSYS. Some functions are actually named
11749 something starting with __ and the normal name is an alias. */
11750#if defined (__stub_shl_load) || defined (__stub___shl_load)
11751choke me
11752#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011753char (*f) () = shl_load;
11754#endif
11755#ifdef __cplusplus
11756}
John Criswell47fdd832003-07-14 16:52:07 +000011757#endif
11758
John Criswell0c38eaf2003-09-10 15:17:25 +000011759int
11760main ()
11761{
11762return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011763 ;
11764 return 0;
11765}
11766_ACEOF
11767rm -f conftest.$ac_objext conftest$ac_exeext
11768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000011769 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011770 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000011771 grep -v '^ *+' conftest.er1 >conftest.err
11772 rm -f conftest.er1
11773 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000011776 { ac_try='test -z "$ac_cxx_werror_flag"
11777 || test ! -s conftest.err'
11778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779 (eval $ac_try) 2>&5
11780 ac_status=$?
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; } &&
11783 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 (eval $ac_try) 2>&5
11786 ac_status=$?
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; }; then
11789 ac_cv_func_shl_load=yes
11790else
11791 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011792sed 's/^/| /' conftest.$ac_ext >&5
11793
John Criswell47fdd832003-07-14 16:52:07 +000011794ac_cv_func_shl_load=no
11795fi
Reid Spencer2b51a082004-08-04 00:34:49 +000011796rm -f conftest.err conftest.$ac_objext \
11797 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011798fi
11799echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11800echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11801if test $ac_cv_func_shl_load = yes; then
11802 lt_cv_dlopen="shl_load"
11803else
11804 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11805echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11806if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11808else
11809 ac_check_lib_save_LIBS=$LIBS
11810LIBS="-ldld $LIBS"
11811cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011812/* confdefs.h. */
11813_ACEOF
11814cat confdefs.h >>conftest.$ac_ext
11815cat >>conftest.$ac_ext <<_ACEOF
11816/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011817
11818/* Override any gcc2 internal prototype to avoid an error. */
11819#ifdef __cplusplus
11820extern "C"
11821#endif
11822/* We use char because int might match the return type of a gcc2
11823 builtin and then its argument prototype would still apply. */
11824char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011825int
11826main ()
11827{
11828shl_load ();
11829 ;
11830 return 0;
11831}
11832_ACEOF
11833rm -f conftest.$ac_objext conftest$ac_exeext
11834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000011835 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011836 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000011837 grep -v '^ *+' conftest.er1 >conftest.err
11838 rm -f conftest.er1
11839 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000011842 { ac_try='test -z "$ac_cxx_werror_flag"
11843 || test ! -s conftest.err'
11844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845 (eval $ac_try) 2>&5
11846 ac_status=$?
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; } &&
11849 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851 (eval $ac_try) 2>&5
11852 ac_status=$?
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; }; then
11855 ac_cv_lib_dld_shl_load=yes
11856else
11857 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011858sed 's/^/| /' conftest.$ac_ext >&5
11859
John Criswell47fdd832003-07-14 16:52:07 +000011860ac_cv_lib_dld_shl_load=no
11861fi
Reid Spencer2b51a082004-08-04 00:34:49 +000011862rm -f conftest.err conftest.$ac_objext \
11863 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011864LIBS=$ac_check_lib_save_LIBS
11865fi
11866echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11867echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11868if test $ac_cv_lib_dld_shl_load = yes; then
11869 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11870else
11871 echo "$as_me:$LINENO: checking for dlopen" >&5
11872echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11873if test "${ac_cv_func_dlopen+set}" = set; then
11874 echo $ECHO_N "(cached) $ECHO_C" >&6
11875else
11876 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011877/* confdefs.h. */
11878_ACEOF
11879cat confdefs.h >>conftest.$ac_ext
11880cat >>conftest.$ac_ext <<_ACEOF
11881/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000011882/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11884#define dlopen innocuous_dlopen
11885
John Criswell47fdd832003-07-14 16:52:07 +000011886/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011887 which can conflict with char dlopen (); below.
11888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11889 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000011890
John Criswell0c38eaf2003-09-10 15:17:25 +000011891#ifdef __STDC__
11892# include <limits.h>
11893#else
11894# include <assert.h>
11895#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000011896
11897#undef dlopen
11898
John Criswell47fdd832003-07-14 16:52:07 +000011899/* Override any gcc2 internal prototype to avoid an error. */
11900#ifdef __cplusplus
11901extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011902{
John Criswell47fdd832003-07-14 16:52:07 +000011903#endif
11904/* We use char because int might match the return type of a gcc2
11905 builtin and then its argument prototype would still apply. */
11906char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011907/* The GNU C library defines this for functions which it implements
11908 to always fail with ENOSYS. Some functions are actually named
11909 something starting with __ and the normal name is an alias. */
11910#if defined (__stub_dlopen) || defined (__stub___dlopen)
11911choke me
11912#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011913char (*f) () = dlopen;
11914#endif
11915#ifdef __cplusplus
11916}
John Criswell47fdd832003-07-14 16:52:07 +000011917#endif
11918
John Criswell0c38eaf2003-09-10 15:17:25 +000011919int
11920main ()
11921{
11922return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011923 ;
11924 return 0;
11925}
11926_ACEOF
11927rm -f conftest.$ac_objext conftest$ac_exeext
11928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000011929 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011930 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000011931 grep -v '^ *+' conftest.er1 >conftest.err
11932 rm -f conftest.er1
11933 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000011936 { ac_try='test -z "$ac_cxx_werror_flag"
11937 || test ! -s conftest.err'
11938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939 (eval $ac_try) 2>&5
11940 ac_status=$?
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; } &&
11943 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11946 ac_status=$?
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; }; then
11949 ac_cv_func_dlopen=yes
11950else
11951 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011952sed 's/^/| /' conftest.$ac_ext >&5
11953
John Criswell47fdd832003-07-14 16:52:07 +000011954ac_cv_func_dlopen=no
11955fi
Reid Spencer2b51a082004-08-04 00:34:49 +000011956rm -f conftest.err conftest.$ac_objext \
11957 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011958fi
11959echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11960echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11961if test $ac_cv_func_dlopen = yes; then
11962 lt_cv_dlopen="dlopen"
11963else
11964 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11965echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11966if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11967 echo $ECHO_N "(cached) $ECHO_C" >&6
11968else
11969 ac_check_lib_save_LIBS=$LIBS
11970LIBS="-ldl $LIBS"
11971cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011972/* confdefs.h. */
11973_ACEOF
11974cat confdefs.h >>conftest.$ac_ext
11975cat >>conftest.$ac_ext <<_ACEOF
11976/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011977
11978/* Override any gcc2 internal prototype to avoid an error. */
11979#ifdef __cplusplus
11980extern "C"
11981#endif
11982/* We use char because int might match the return type of a gcc2
11983 builtin and then its argument prototype would still apply. */
11984char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011985int
11986main ()
11987{
11988dlopen ();
11989 ;
11990 return 0;
11991}
11992_ACEOF
11993rm -f conftest.$ac_objext conftest$ac_exeext
11994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000011995 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011996 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000011997 grep -v '^ *+' conftest.er1 >conftest.err
11998 rm -f conftest.er1
11999 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000012002 { ac_try='test -z "$ac_cxx_werror_flag"
12003 || test ! -s conftest.err'
12004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12005 (eval $ac_try) 2>&5
12006 ac_status=$?
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); }; } &&
12009 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12011 (eval $ac_try) 2>&5
12012 ac_status=$?
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }; }; then
12015 ac_cv_lib_dl_dlopen=yes
12016else
12017 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012018sed 's/^/| /' conftest.$ac_ext >&5
12019
John Criswell47fdd832003-07-14 16:52:07 +000012020ac_cv_lib_dl_dlopen=no
12021fi
Reid Spencer2b51a082004-08-04 00:34:49 +000012022rm -f conftest.err conftest.$ac_objext \
12023 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012024LIBS=$ac_check_lib_save_LIBS
12025fi
12026echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12027echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12028if test $ac_cv_lib_dl_dlopen = yes; then
12029 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12030else
12031 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12032echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12033if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12035else
12036 ac_check_lib_save_LIBS=$LIBS
12037LIBS="-lsvld $LIBS"
12038cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012039/* confdefs.h. */
12040_ACEOF
12041cat confdefs.h >>conftest.$ac_ext
12042cat >>conftest.$ac_ext <<_ACEOF
12043/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012044
12045/* Override any gcc2 internal prototype to avoid an error. */
12046#ifdef __cplusplus
12047extern "C"
12048#endif
12049/* We use char because int might match the return type of a gcc2
12050 builtin and then its argument prototype would still apply. */
12051char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012052int
12053main ()
12054{
12055dlopen ();
12056 ;
12057 return 0;
12058}
12059_ACEOF
12060rm -f conftest.$ac_objext conftest$ac_exeext
12061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000012062 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012063 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000012064 grep -v '^ *+' conftest.er1 >conftest.err
12065 rm -f conftest.er1
12066 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000012069 { ac_try='test -z "$ac_cxx_werror_flag"
12070 || test ! -s conftest.err'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12073 ac_status=$?
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; } &&
12076 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12079 ac_status=$?
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12082 ac_cv_lib_svld_dlopen=yes
12083else
12084 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012085sed 's/^/| /' conftest.$ac_ext >&5
12086
John Criswell47fdd832003-07-14 16:52:07 +000012087ac_cv_lib_svld_dlopen=no
12088fi
Reid Spencer2b51a082004-08-04 00:34:49 +000012089rm -f conftest.err conftest.$ac_objext \
12090 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012091LIBS=$ac_check_lib_save_LIBS
12092fi
12093echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12094echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12095if test $ac_cv_lib_svld_dlopen = yes; then
12096 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12097else
12098 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12099echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12100if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12102else
12103 ac_check_lib_save_LIBS=$LIBS
12104LIBS="-ldld $LIBS"
12105cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012106/* confdefs.h. */
12107_ACEOF
12108cat confdefs.h >>conftest.$ac_ext
12109cat >>conftest.$ac_ext <<_ACEOF
12110/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012111
12112/* Override any gcc2 internal prototype to avoid an error. */
12113#ifdef __cplusplus
12114extern "C"
12115#endif
12116/* We use char because int might match the return type of a gcc2
12117 builtin and then its argument prototype would still apply. */
12118char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012119int
12120main ()
12121{
12122dld_link ();
12123 ;
12124 return 0;
12125}
12126_ACEOF
12127rm -f conftest.$ac_objext conftest$ac_exeext
12128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000012129 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012130 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000012131 grep -v '^ *+' conftest.er1 >conftest.err
12132 rm -f conftest.er1
12133 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000012136 { ac_try='test -z "$ac_cxx_werror_flag"
12137 || test ! -s conftest.err'
12138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139 (eval $ac_try) 2>&5
12140 ac_status=$?
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); }; } &&
12143 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12145 (eval $ac_try) 2>&5
12146 ac_status=$?
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); }; }; then
12149 ac_cv_lib_dld_dld_link=yes
12150else
12151 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012152sed 's/^/| /' conftest.$ac_ext >&5
12153
John Criswell47fdd832003-07-14 16:52:07 +000012154ac_cv_lib_dld_dld_link=no
12155fi
Reid Spencer2b51a082004-08-04 00:34:49 +000012156rm -f conftest.err conftest.$ac_objext \
12157 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012158LIBS=$ac_check_lib_save_LIBS
12159fi
12160echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12161echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12162if test $ac_cv_lib_dld_dld_link = yes; then
12163 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12164fi
12165
12166
12167fi
12168
12169
12170fi
12171
12172
12173fi
12174
12175
12176fi
12177
12178
12179fi
12180
12181 ;;
12182 esac
12183
12184 if test "x$lt_cv_dlopen" != xno; then
12185 enable_dlopen=yes
12186 else
12187 enable_dlopen=no
12188 fi
12189
12190 case $lt_cv_dlopen in
12191 dlopen)
12192 save_CPPFLAGS="$CPPFLAGS"
12193 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12194
12195 save_LDFLAGS="$LDFLAGS"
12196 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12197
12198 save_LIBS="$LIBS"
12199 LIBS="$lt_cv_dlopen_libs $LIBS"
12200
12201 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12202echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12203if test "${lt_cv_dlopen_self+set}" = set; then
12204 echo $ECHO_N "(cached) $ECHO_C" >&6
12205else
12206 if test "$cross_compiling" = yes; then :
12207 lt_cv_dlopen_self=cross
12208else
12209 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12210 lt_status=$lt_dlunknown
12211 cat > conftest.$ac_ext <<EOF
Reid Spencerde8c47f2004-08-29 19:35:28 +000012212#line 12212 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012213#include "confdefs.h"
12214
12215#if HAVE_DLFCN_H
12216#include <dlfcn.h>
12217#endif
12218
12219#include <stdio.h>
12220
12221#ifdef RTLD_GLOBAL
12222# define LT_DLGLOBAL RTLD_GLOBAL
12223#else
12224# ifdef DL_GLOBAL
12225# define LT_DLGLOBAL DL_GLOBAL
12226# else
12227# define LT_DLGLOBAL 0
12228# endif
12229#endif
12230
12231/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12232 find out it does not work in some platform. */
12233#ifndef LT_DLLAZY_OR_NOW
12234# ifdef RTLD_LAZY
12235# define LT_DLLAZY_OR_NOW RTLD_LAZY
12236# else
12237# ifdef DL_LAZY
12238# define LT_DLLAZY_OR_NOW DL_LAZY
12239# else
12240# ifdef RTLD_NOW
12241# define LT_DLLAZY_OR_NOW RTLD_NOW
12242# else
12243# ifdef DL_NOW
12244# define LT_DLLAZY_OR_NOW DL_NOW
12245# else
12246# define LT_DLLAZY_OR_NOW 0
12247# endif
12248# endif
12249# endif
12250# endif
12251#endif
12252
12253#ifdef __cplusplus
12254extern "C" void exit (int);
12255#endif
12256
12257void fnord() { int i=42;}
12258int main ()
12259{
12260 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12261 int status = $lt_dlunknown;
12262
12263 if (self)
12264 {
12265 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12266 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12267 /* dlclose (self); */
12268 }
12269
12270 exit (status);
12271}
12272EOF
12273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12274 (eval $ac_link) 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12278 (./conftest; exit; ) 2>/dev/null
12279 lt_status=$?
12280 case x$lt_status in
12281 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12282 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12283 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12284 esac
12285 else :
12286 # compilation failed
12287 lt_cv_dlopen_self=no
12288 fi
12289fi
12290rm -fr conftest*
12291
12292
12293fi
12294echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12295echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12296
12297 if test "x$lt_cv_dlopen_self" = xyes; then
12298 LDFLAGS="$LDFLAGS $link_static_flag"
12299 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12300echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12301if test "${lt_cv_dlopen_self_static+set}" = set; then
12302 echo $ECHO_N "(cached) $ECHO_C" >&6
12303else
12304 if test "$cross_compiling" = yes; then :
12305 lt_cv_dlopen_self_static=cross
12306else
12307 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12308 lt_status=$lt_dlunknown
12309 cat > conftest.$ac_ext <<EOF
Reid Spencerde8c47f2004-08-29 19:35:28 +000012310#line 12310 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012311#include "confdefs.h"
12312
12313#if HAVE_DLFCN_H
12314#include <dlfcn.h>
12315#endif
12316
12317#include <stdio.h>
12318
12319#ifdef RTLD_GLOBAL
12320# define LT_DLGLOBAL RTLD_GLOBAL
12321#else
12322# ifdef DL_GLOBAL
12323# define LT_DLGLOBAL DL_GLOBAL
12324# else
12325# define LT_DLGLOBAL 0
12326# endif
12327#endif
12328
12329/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12330 find out it does not work in some platform. */
12331#ifndef LT_DLLAZY_OR_NOW
12332# ifdef RTLD_LAZY
12333# define LT_DLLAZY_OR_NOW RTLD_LAZY
12334# else
12335# ifdef DL_LAZY
12336# define LT_DLLAZY_OR_NOW DL_LAZY
12337# else
12338# ifdef RTLD_NOW
12339# define LT_DLLAZY_OR_NOW RTLD_NOW
12340# else
12341# ifdef DL_NOW
12342# define LT_DLLAZY_OR_NOW DL_NOW
12343# else
12344# define LT_DLLAZY_OR_NOW 0
12345# endif
12346# endif
12347# endif
12348# endif
12349#endif
12350
12351#ifdef __cplusplus
12352extern "C" void exit (int);
12353#endif
12354
12355void fnord() { int i=42;}
12356int main ()
12357{
12358 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12359 int status = $lt_dlunknown;
12360
12361 if (self)
12362 {
12363 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12364 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12365 /* dlclose (self); */
12366 }
12367
12368 exit (status);
12369}
12370EOF
12371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12372 (eval $ac_link) 2>&5
12373 ac_status=$?
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12376 (./conftest; exit; ) 2>/dev/null
12377 lt_status=$?
12378 case x$lt_status in
12379 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12380 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12381 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12382 esac
12383 else :
12384 # compilation failed
12385 lt_cv_dlopen_self_static=no
12386 fi
12387fi
12388rm -fr conftest*
12389
12390
12391fi
12392echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12393echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12394 fi
12395
12396 CPPFLAGS="$save_CPPFLAGS"
12397 LDFLAGS="$save_LDFLAGS"
12398 LIBS="$save_LIBS"
12399 ;;
12400 esac
12401
12402 case $lt_cv_dlopen_self in
12403 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12404 *) enable_dlopen_self=unknown ;;
12405 esac
12406
12407 case $lt_cv_dlopen_self_static in
12408 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12409 *) enable_dlopen_self_static=unknown ;;
12410 esac
12411fi
12412
12413
12414# The else clause should only fire when bootstrapping the
12415# libtool distribution, otherwise you forgot to ship ltmain.sh
12416# with your package, and you will get complaints that there are
12417# no rules to generate ltmain.sh.
12418if test -f "$ltmain"; then
12419 # See if we are running on zsh, and set the options which allow our commands through
12420 # without removal of \ escapes.
12421 if test -n "${ZSH_VERSION+set}" ; then
12422 setopt NO_GLOB_SUBST
12423 fi
12424 # Now quote all the things that may contain metacharacters while being
12425 # careful not to overquote the AC_SUBSTed values. We take copies of the
12426 # variables and quote the copies for generation of the libtool script.
12427 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12428 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12429 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12430 deplibs_check_method reload_flag reload_cmds need_locks \
12431 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12432 lt_cv_sys_global_symbol_to_c_name_address \
12433 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12434 old_postinstall_cmds old_postuninstall_cmds \
12435 compiler_CXX \
12436 CC_CXX \
12437 LD_CXX \
12438 lt_prog_compiler_wl_CXX \
12439 lt_prog_compiler_pic_CXX \
12440 lt_prog_compiler_static_CXX \
12441 lt_prog_compiler_no_builtin_flag_CXX \
12442 export_dynamic_flag_spec_CXX \
12443 thread_safe_flag_spec_CXX \
12444 whole_archive_flag_spec_CXX \
12445 enable_shared_with_static_runtimes_CXX \
12446 old_archive_cmds_CXX \
12447 old_archive_from_new_cmds_CXX \
12448 predep_objects_CXX \
12449 postdep_objects_CXX \
12450 predeps_CXX \
12451 postdeps_CXX \
12452 compiler_lib_search_path_CXX \
12453 archive_cmds_CXX \
12454 archive_expsym_cmds_CXX \
12455 postinstall_cmds_CXX \
12456 postuninstall_cmds_CXX \
12457 old_archive_from_expsyms_cmds_CXX \
12458 allow_undefined_flag_CXX \
12459 no_undefined_flag_CXX \
12460 export_symbols_cmds_CXX \
12461 hardcode_libdir_flag_spec_CXX \
12462 hardcode_libdir_flag_spec_ld_CXX \
12463 hardcode_libdir_separator_CXX \
12464 hardcode_automatic_CXX \
12465 module_cmds_CXX \
12466 module_expsym_cmds_CXX \
12467 lt_cv_prog_compiler_c_o_CXX \
12468 exclude_expsyms_CXX \
12469 include_expsyms_CXX; do
12470
12471 case $var in
12472 old_archive_cmds_CXX | \
12473 old_archive_from_new_cmds_CXX | \
12474 archive_cmds_CXX | \
12475 archive_expsym_cmds_CXX | \
12476 module_cmds_CXX | \
12477 module_expsym_cmds_CXX | \
12478 old_archive_from_expsyms_cmds_CXX | \
12479 export_symbols_cmds_CXX | \
12480 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12481 postinstall_cmds | postuninstall_cmds | \
12482 old_postinstall_cmds | old_postuninstall_cmds | \
12483 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12484 # Double-quote double-evaled strings.
12485 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12486 ;;
12487 *)
12488 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12489 ;;
12490 esac
12491 done
12492
12493 case $lt_echo in
12494 *'\$0 --fallback-echo"')
12495 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12496 ;;
12497 esac
12498
12499cfgfile="$ofile"
12500
12501 cat <<__EOF__ >> "$cfgfile"
12502# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12503
12504# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12505
12506# Shell to use when invoking shell scripts.
12507SHELL=$lt_SHELL
12508
12509# Whether or not to build shared libraries.
12510build_libtool_libs=$enable_shared
12511
12512# Whether or not to build static libraries.
12513build_old_libs=$enable_static
12514
12515# Whether or not to add -lc for building shared libraries.
12516build_libtool_need_lc=$archive_cmds_need_lc_CXX
12517
12518# Whether or not to disallow shared libs when runtime libs are static
12519allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12520
12521# Whether or not to optimize for fast installation.
12522fast_install=$enable_fast_install
12523
12524# The host system.
12525host_alias=$host_alias
12526host=$host
12527
12528# An echo program that does not interpret backslashes.
12529echo=$lt_echo
12530
12531# The archiver.
12532AR=$lt_AR
12533AR_FLAGS=$lt_AR_FLAGS
12534
12535# A C compiler.
12536LTCC=$lt_LTCC
12537
12538# A language-specific compiler.
12539CC=$lt_compiler_CXX
12540
12541# Is the compiler the GNU C compiler?
12542with_gcc=$GCC_CXX
12543
12544# An ERE matcher.
12545EGREP=$lt_EGREP
12546
12547# The linker used to build libraries.
12548LD=$lt_LD_CXX
12549
12550# Whether we need hard or soft links.
12551LN_S=$lt_LN_S
12552
12553# A BSD-compatible nm program.
12554NM=$lt_NM
12555
12556# A symbol stripping program
12557STRIP=$STRIP
12558
12559# Used to examine libraries when file_magic_cmd begins "file"
12560MAGIC_CMD=$MAGIC_CMD
12561
12562# Used on cygwin: DLL creation program.
12563DLLTOOL="$DLLTOOL"
12564
12565# Used on cygwin: object dumper.
12566OBJDUMP="$OBJDUMP"
12567
12568# Used on cygwin: assembler.
12569AS="$AS"
12570
12571# The name of the directory that contains temporary libtool files.
12572objdir=$objdir
12573
12574# How to create reloadable object files.
12575reload_flag=$lt_reload_flag
12576reload_cmds=$lt_reload_cmds
12577
12578# How to pass a linker flag through the compiler.
12579wl=$lt_lt_prog_compiler_wl_CXX
12580
12581# Object file suffix (normally "o").
12582objext="$ac_objext"
12583
12584# Old archive suffix (normally "a").
12585libext="$libext"
12586
12587# Shared library suffix (normally ".so").
12588shrext='$shrext'
12589
12590# Executable file suffix (normally "").
12591exeext="$exeext"
12592
12593# Additional compiler flags for building library objects.
12594pic_flag=$lt_lt_prog_compiler_pic_CXX
12595pic_mode=$pic_mode
12596
12597# What is the maximum length of a command?
12598max_cmd_len=$lt_cv_sys_max_cmd_len
12599
12600# Does compiler simultaneously support -c and -o options?
12601compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12602
12603# Must we lock files when doing compilation ?
12604need_locks=$lt_need_locks
12605
12606# Do we need the lib prefix for modules?
12607need_lib_prefix=$need_lib_prefix
12608
12609# Do we need a version for libraries?
12610need_version=$need_version
12611
12612# Whether dlopen is supported.
12613dlopen_support=$enable_dlopen
12614
12615# Whether dlopen of programs is supported.
12616dlopen_self=$enable_dlopen_self
12617
12618# Whether dlopen of statically linked programs is supported.
12619dlopen_self_static=$enable_dlopen_self_static
12620
12621# Compiler flag to prevent dynamic linking.
12622link_static_flag=$lt_lt_prog_compiler_static_CXX
12623
12624# Compiler flag to turn off builtin functions.
12625no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12626
12627# Compiler flag to allow reflexive dlopens.
12628export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12629
12630# Compiler flag to generate shared objects directly from archives.
12631whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12632
12633# Compiler flag to generate thread-safe objects.
12634thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12635
12636# Library versioning type.
12637version_type=$version_type
12638
12639# Format of library name prefix.
12640libname_spec=$lt_libname_spec
12641
12642# List of archive names. First name is the real one, the rest are links.
12643# The last name is the one that the linker finds with -lNAME.
12644library_names_spec=$lt_library_names_spec
12645
12646# The coded name of the library, if different from the real name.
12647soname_spec=$lt_soname_spec
12648
12649# Commands used to build and install an old-style archive.
12650RANLIB=$lt_RANLIB
12651old_archive_cmds=$lt_old_archive_cmds_CXX
12652old_postinstall_cmds=$lt_old_postinstall_cmds
12653old_postuninstall_cmds=$lt_old_postuninstall_cmds
12654
12655# Create an old-style archive from a shared archive.
12656old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12657
12658# Create a temporary old-style archive to link instead of a shared archive.
12659old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12660
12661# Commands used to build and install a shared archive.
12662archive_cmds=$lt_archive_cmds_CXX
12663archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12664postinstall_cmds=$lt_postinstall_cmds
12665postuninstall_cmds=$lt_postuninstall_cmds
12666
12667# Commands used to build a loadable module (assumed same as above if empty)
12668module_cmds=$lt_module_cmds_CXX
12669module_expsym_cmds=$lt_module_expsym_cmds_CXX
12670
12671# Commands to strip libraries.
12672old_striplib=$lt_old_striplib
12673striplib=$lt_striplib
12674
12675# Dependencies to place before the objects being linked to create a
12676# shared library.
12677predep_objects=$lt_predep_objects_CXX
12678
12679# Dependencies to place after the objects being linked to create a
12680# shared library.
12681postdep_objects=$lt_postdep_objects_CXX
12682
12683# Dependencies to place before the objects being linked to create a
12684# shared library.
12685predeps=$lt_predeps_CXX
12686
12687# Dependencies to place after the objects being linked to create a
12688# shared library.
12689postdeps=$lt_postdeps_CXX
12690
12691# The library search path used internally by the compiler when linking
12692# a shared library.
12693compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12694
12695# Method to check whether dependent libraries are shared objects.
12696deplibs_check_method=$lt_deplibs_check_method
12697
12698# Command to use when deplibs_check_method == file_magic.
12699file_magic_cmd=$lt_file_magic_cmd
12700
12701# Flag that allows shared libraries with undefined symbols to be built.
12702allow_undefined_flag=$lt_allow_undefined_flag_CXX
12703
12704# Flag that forces no undefined symbols.
12705no_undefined_flag=$lt_no_undefined_flag_CXX
12706
12707# Commands used to finish a libtool library installation in a directory.
12708finish_cmds=$lt_finish_cmds
12709
12710# Same as above, but a single script fragment to be evaled but not shown.
12711finish_eval=$lt_finish_eval
12712
12713# Take the output of nm and produce a listing of raw symbols and C names.
12714global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12715
12716# Transform the output of nm in a proper C declaration
12717global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12718
12719# Transform the output of nm in a C name address pair
12720global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12721
12722# This is the shared library runtime path variable.
12723runpath_var=$runpath_var
12724
12725# This is the shared library path variable.
12726shlibpath_var=$shlibpath_var
12727
12728# Is shlibpath searched before the hard-coded library search path?
12729shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12730
12731# How to hardcode a shared library path into an executable.
12732hardcode_action=$hardcode_action_CXX
12733
12734# Whether we should hardcode library paths into libraries.
12735hardcode_into_libs=$hardcode_into_libs
12736
12737# Flag to hardcode \$libdir into a binary during linking.
12738# This must work even if \$libdir does not exist.
12739hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12740
12741# If ld is used when linking, flag to hardcode \$libdir into
12742# a binary during linking. This must work even if \$libdir does
12743# not exist.
12744hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12745
12746# Whether we need a single -rpath flag with a separated argument.
12747hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12748
12749# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12750# resulting binary.
12751hardcode_direct=$hardcode_direct_CXX
12752
12753# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12754# resulting binary.
12755hardcode_minus_L=$hardcode_minus_L_CXX
12756
12757# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12758# the resulting binary.
12759hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12760
12761# Set to yes if building a shared library automatically hardcodes DIR into the library
12762# and all subsequent libraries and executables linked against it.
12763hardcode_automatic=$hardcode_automatic_CXX
12764
12765# Variables whose values should be saved in libtool wrapper scripts and
12766# restored at relink time.
12767variables_saved_for_relink="$variables_saved_for_relink"
12768
12769# Whether libtool must link a program against all its dependency libraries.
12770link_all_deplibs=$link_all_deplibs_CXX
12771
12772# Compile-time system search path for libraries
12773sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12774
12775# Run-time system search path for libraries
12776sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12777
12778# Fix the shell variable \$srcfile for the compiler.
12779fix_srcfile_path="$fix_srcfile_path_CXX"
12780
12781# Set to yes if exported symbols are required.
12782always_export_symbols=$always_export_symbols_CXX
12783
12784# The commands to list exported symbols.
12785export_symbols_cmds=$lt_export_symbols_cmds_CXX
12786
12787# The commands to extract the exported symbol list from a shared archive.
12788extract_expsyms_cmds=$lt_extract_expsyms_cmds
12789
12790# Symbols that should not be listed in the preloaded symbols.
12791exclude_expsyms=$lt_exclude_expsyms_CXX
12792
12793# Symbols that must always be exported.
12794include_expsyms=$lt_include_expsyms_CXX
12795
12796# ### END LIBTOOL TAG CONFIG: $tagname
12797
12798__EOF__
12799
12800
12801else
12802 # If there is no Makefile yet, we rely on a make rule to execute
12803 # `config.status --recheck' to rerun these tests and create the
12804 # libtool script then.
12805 test -f Makefile && make "$ltmain"
12806fi
12807
12808
12809ac_ext=c
12810ac_cpp='$CPP $CPPFLAGS'
12811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12813ac_compiler_gnu=$ac_cv_c_compiler_gnu
12814
12815CC=$lt_save_CC
12816LDCXX=$LD
12817LD=$lt_save_LD
12818GCC=$lt_save_GCC
12819with_gnu_ldcxx=$with_gnu_ld
12820with_gnu_ld=$lt_save_with_gnu_ld
12821lt_cv_path_LDCXX=$lt_cv_path_LD
12822lt_cv_path_LD=$lt_save_path_LD
12823lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12824lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12825
12826 else
12827 tagname=""
12828 fi
12829 ;;
12830
12831 F77)
12832 if test -n "$F77" && test "X$F77" != "Xno"; then
12833
12834ac_ext=f
12835ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12836ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12837ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12838
12839
12840archive_cmds_need_lc_F77=no
12841allow_undefined_flag_F77=
12842always_export_symbols_F77=no
12843archive_expsym_cmds_F77=
12844export_dynamic_flag_spec_F77=
12845hardcode_direct_F77=no
12846hardcode_libdir_flag_spec_F77=
12847hardcode_libdir_flag_spec_ld_F77=
12848hardcode_libdir_separator_F77=
12849hardcode_minus_L_F77=no
12850hardcode_automatic_F77=no
12851module_cmds_F77=
12852module_expsym_cmds_F77=
12853link_all_deplibs_F77=unknown
12854old_archive_cmds_F77=$old_archive_cmds
12855no_undefined_flag_F77=
12856whole_archive_flag_spec_F77=
12857enable_shared_with_static_runtimes_F77=no
12858
12859# Source file extension for f77 test sources.
12860ac_ext=f
12861
12862# Object file extension for compiled f77 test sources.
12863objext=o
12864objext_F77=$objext
12865
12866# Code to be used in simple compile tests
12867lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12868
12869# Code to be used in simple link tests
12870lt_simple_link_test_code=" program t\n end\n"
12871
12872# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12873
12874# If no C compiler was specified, use CC.
12875LTCC=${LTCC-"$CC"}
12876
12877# Allow CC to be a program name with arguments.
12878compiler=$CC
12879
12880
12881# Allow CC to be a program name with arguments.
12882lt_save_CC="$CC"
12883CC=${F77-"f77"}
12884compiler=$CC
12885compiler_F77=$CC
12886cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12887
12888echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12889echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12890echo "$as_me:$LINENO: result: $can_build_shared" >&5
12891echo "${ECHO_T}$can_build_shared" >&6
12892
12893echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12894echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12895test "$can_build_shared" = "no" && enable_shared=no
12896
12897# On AIX, shared libraries and static libraries use the same namespace, and
12898# are all built from PIC.
12899case "$host_os" in
12900aix3*)
12901 test "$enable_shared" = yes && enable_static=no
12902 if test -n "$RANLIB"; then
12903 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12904 postinstall_cmds='$RANLIB $lib'
12905 fi
12906 ;;
12907aix4*)
12908 test "$enable_shared" = yes && enable_static=no
12909 ;;
12910esac
12911echo "$as_me:$LINENO: result: $enable_shared" >&5
12912echo "${ECHO_T}$enable_shared" >&6
12913
12914echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12915echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12916# Make sure either enable_shared or enable_static is yes.
12917test "$enable_shared" = yes || enable_static=yes
12918echo "$as_me:$LINENO: result: $enable_static" >&5
12919echo "${ECHO_T}$enable_static" >&6
12920
12921test "$ld_shlibs_F77" = no && can_build_shared=no
12922
12923GCC_F77="$G77"
12924LD_F77="$LD"
12925
12926lt_prog_compiler_wl_F77=
12927lt_prog_compiler_pic_F77=
12928lt_prog_compiler_static_F77=
12929
12930echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12931echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12932
12933 if test "$GCC" = yes; then
12934 lt_prog_compiler_wl_F77='-Wl,'
12935 lt_prog_compiler_static_F77='-static'
12936
12937 case $host_os in
12938 aix*)
12939 # All AIX code is PIC.
12940 if test "$host_cpu" = ia64; then
12941 # AIX 5 now supports IA64 processor
12942 lt_prog_compiler_static_F77='-Bstatic'
12943 fi
12944 ;;
12945
12946 amigaos*)
12947 # FIXME: we need at least 68020 code to build shared libraries, but
12948 # adding the `-m68020' flag to GCC prevents building anything better,
12949 # like `-m68040'.
12950 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12951 ;;
12952
12953 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12954 # PIC is the default for these OSes.
12955 ;;
12956
12957 mingw* | pw32* | os2*)
12958 # This hack is so that the source file can tell whether it is being
12959 # built for inclusion in a dll (and should export symbols for example).
12960 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12961 ;;
12962
12963 darwin* | rhapsody*)
12964 # PIC is the default on this platform
12965 # Common symbols not allowed in MH_DYLIB files
12966 lt_prog_compiler_pic_F77='-fno-common'
12967 ;;
12968
12969 msdosdjgpp*)
12970 # Just because we use GCC doesn't mean we suddenly get shared libraries
12971 # on systems that don't support them.
12972 lt_prog_compiler_can_build_shared_F77=no
12973 enable_shared=no
12974 ;;
12975
12976 sysv4*MP*)
12977 if test -d /usr/nec; then
12978 lt_prog_compiler_pic_F77=-Kconform_pic
12979 fi
12980 ;;
12981
12982 hpux*)
12983 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12984 # not for PA HP-UX.
12985 case "$host_cpu" in
12986 hppa*64*|ia64*)
12987 # +Z the default
12988 ;;
12989 *)
12990 lt_prog_compiler_pic_F77='-fPIC'
12991 ;;
12992 esac
12993 ;;
12994
12995 *)
12996 lt_prog_compiler_pic_F77='-fPIC'
12997 ;;
12998 esac
12999 else
13000 # PORTME Check for flag to pass linker flags through the system compiler.
13001 case $host_os in
13002 aix*)
13003 lt_prog_compiler_wl_F77='-Wl,'
13004 if test "$host_cpu" = ia64; then
13005 # AIX 5 now supports IA64 processor
13006 lt_prog_compiler_static_F77='-Bstatic'
13007 else
13008 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13009 fi
13010 ;;
13011
13012 mingw* | pw32* | os2*)
13013 # This hack is so that the source file can tell whether it is being
13014 # built for inclusion in a dll (and should export symbols for example).
13015 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13016 ;;
13017
13018 hpux9* | hpux10* | hpux11*)
13019 lt_prog_compiler_wl_F77='-Wl,'
13020 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13021 # not for PA HP-UX.
13022 case "$host_cpu" in
13023 hppa*64*|ia64*)
13024 # +Z the default
13025 ;;
13026 *)
13027 lt_prog_compiler_pic_F77='+Z'
13028 ;;
13029 esac
13030 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13031 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13032 ;;
13033
13034 irix5* | irix6* | nonstopux*)
13035 lt_prog_compiler_wl_F77='-Wl,'
13036 # PIC (with -KPIC) is the default.
13037 lt_prog_compiler_static_F77='-non_shared'
13038 ;;
13039
13040 newsos6)
13041 lt_prog_compiler_pic_F77='-KPIC'
13042 lt_prog_compiler_static_F77='-Bstatic'
13043 ;;
13044
13045 linux*)
13046 case $CC in
13047 icc|ecc)
13048 lt_prog_compiler_wl_F77='-Wl,'
13049 lt_prog_compiler_pic_F77='-KPIC'
13050 lt_prog_compiler_static_F77='-static'
13051 ;;
13052 ccc)
13053 lt_prog_compiler_wl_F77='-Wl,'
13054 # All Alpha code is PIC.
13055 lt_prog_compiler_static_F77='-non_shared'
13056 ;;
13057 esac
13058 ;;
13059
13060 osf3* | osf4* | osf5*)
13061 lt_prog_compiler_wl_F77='-Wl,'
13062 # All OSF/1 code is PIC.
13063 lt_prog_compiler_static_F77='-non_shared'
13064 ;;
13065
13066 sco3.2v5*)
13067 lt_prog_compiler_pic_F77='-Kpic'
13068 lt_prog_compiler_static_F77='-dn'
13069 ;;
13070
13071 solaris*)
13072 lt_prog_compiler_wl_F77='-Wl,'
13073 lt_prog_compiler_pic_F77='-KPIC'
13074 lt_prog_compiler_static_F77='-Bstatic'
13075 ;;
13076
13077 sunos4*)
13078 lt_prog_compiler_wl_F77='-Qoption ld '
13079 lt_prog_compiler_pic_F77='-PIC'
13080 lt_prog_compiler_static_F77='-Bstatic'
13081 ;;
13082
13083 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13084 lt_prog_compiler_wl_F77='-Wl,'
13085 lt_prog_compiler_pic_F77='-KPIC'
13086 lt_prog_compiler_static_F77='-Bstatic'
13087 ;;
13088
13089 sysv4*MP*)
13090 if test -d /usr/nec ;then
13091 lt_prog_compiler_pic_F77='-Kconform_pic'
13092 lt_prog_compiler_static_F77='-Bstatic'
13093 fi
13094 ;;
13095
13096 uts4*)
13097 lt_prog_compiler_pic_F77='-pic'
13098 lt_prog_compiler_static_F77='-Bstatic'
13099 ;;
13100
13101 *)
13102 lt_prog_compiler_can_build_shared_F77=no
13103 ;;
13104 esac
13105 fi
13106
13107echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13108echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13109
13110#
13111# Check to make sure the PIC flag actually works.
13112#
13113if test -n "$lt_prog_compiler_pic_F77"; then
13114 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13115echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13116if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13118else
13119 lt_prog_compiler_pic_works_F77=no
13120 ac_outfile=conftest.$ac_objext
13121 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13122 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13123 # Insert the option either (1) after the last *FLAGS variable, or
13124 # (2) before a word containing "conftest.", or (3) at the end.
13125 # Note that $ac_compile itself does not contain backslashes and begins
13126 # with a dollar sign (not a hyphen), so the echo should work correctly.
13127 # The option is referenced via a variable to avoid confusing sed.
13128 lt_compile=`echo "$ac_compile" | $SED \
13129 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13130 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13131 -e 's:$: $lt_compiler_flag:'`
Reid Spencerde8c47f2004-08-29 19:35:28 +000013132 (eval echo "\"\$as_me:13132: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013133 (eval "$lt_compile" 2>conftest.err)
13134 ac_status=$?
13135 cat conftest.err >&5
Reid Spencerde8c47f2004-08-29 19:35:28 +000013136 echo "$as_me:13136: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013137 if (exit $ac_status) && test -s "$ac_outfile"; then
13138 # The compiler can only warn and ignore the option if not recognized
13139 # So say no if there are warnings
13140 if test ! -s conftest.err; then
13141 lt_prog_compiler_pic_works_F77=yes
13142 fi
13143 fi
13144 $rm conftest*
13145
13146fi
13147echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13148echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13149
13150if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13151 case $lt_prog_compiler_pic_F77 in
13152 "" | " "*) ;;
13153 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13154 esac
13155else
13156 lt_prog_compiler_pic_F77=
13157 lt_prog_compiler_can_build_shared_F77=no
13158fi
13159
13160fi
13161case "$host_os" in
13162 # For platforms which do not support PIC, -DPIC is meaningless:
13163 *djgpp*)
13164 lt_prog_compiler_pic_F77=
13165 ;;
13166 *)
13167 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13168 ;;
13169esac
13170
13171echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13172echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13173if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13174 echo $ECHO_N "(cached) $ECHO_C" >&6
13175else
13176 lt_cv_prog_compiler_c_o_F77=no
13177 $rm -r conftest 2>/dev/null
13178 mkdir conftest
13179 cd conftest
13180 mkdir out
13181 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13182
13183 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13184 # that will create temporary files in the current directory regardless of
13185 # the output directory. Thus, making CWD read-only will cause this test
13186 # to fail, enabling locking or at least warning the user not to do parallel
13187 # builds.
13188 chmod -w .
13189
13190 lt_compiler_flag="-o out/conftest2.$ac_objext"
13191 # Insert the option either (1) after the last *FLAGS variable, or
13192 # (2) before a word containing "conftest.", or (3) at the end.
13193 # Note that $ac_compile itself does not contain backslashes and begins
13194 # with a dollar sign (not a hyphen), so the echo should work correctly.
13195 lt_compile=`echo "$ac_compile" | $SED \
13196 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13197 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13198 -e 's:$: $lt_compiler_flag:'`
Reid Spencerde8c47f2004-08-29 19:35:28 +000013199 (eval echo "\"\$as_me:13199: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013200 (eval "$lt_compile" 2>out/conftest.err)
13201 ac_status=$?
13202 cat out/conftest.err >&5
Reid Spencerde8c47f2004-08-29 19:35:28 +000013203 echo "$as_me:13203: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013204 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13205 then
13206 # The compiler can only warn and ignore the option if not recognized
13207 # So say no if there are warnings
13208 if test ! -s out/conftest.err; then
13209 lt_cv_prog_compiler_c_o_F77=yes
13210 fi
13211 fi
13212 chmod u+w .
13213 $rm conftest* out/*
13214 rmdir out
13215 cd ..
13216 rmdir conftest
13217 $rm conftest*
13218
13219fi
13220echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13221echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13222
13223
13224hard_links="nottested"
13225if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13226 # do not overwrite the value of need_locks provided by the user
13227 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13228echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13229 hard_links=yes
13230 $rm conftest*
13231 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13232 touch conftest.a
13233 ln conftest.a conftest.b 2>&5 || hard_links=no
13234 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13235 echo "$as_me:$LINENO: result: $hard_links" >&5
13236echo "${ECHO_T}$hard_links" >&6
13237 if test "$hard_links" = no; then
13238 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13239echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13240 need_locks=warn
13241 fi
13242else
13243 need_locks=no
13244fi
13245
13246echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13247echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13248
13249 runpath_var=
13250 allow_undefined_flag_F77=
13251 enable_shared_with_static_runtimes_F77=no
13252 archive_cmds_F77=
13253 archive_expsym_cmds_F77=
13254 old_archive_From_new_cmds_F77=
13255 old_archive_from_expsyms_cmds_F77=
13256 export_dynamic_flag_spec_F77=
13257 whole_archive_flag_spec_F77=
13258 thread_safe_flag_spec_F77=
13259 hardcode_libdir_flag_spec_F77=
13260 hardcode_libdir_flag_spec_ld_F77=
13261 hardcode_libdir_separator_F77=
13262 hardcode_direct_F77=no
13263 hardcode_minus_L_F77=no
13264 hardcode_shlibpath_var_F77=unsupported
13265 link_all_deplibs_F77=unknown
13266 hardcode_automatic_F77=no
13267 module_cmds_F77=
13268 module_expsym_cmds_F77=
13269 always_export_symbols_F77=no
13270 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13271 # include_expsyms should be a list of space-separated symbols to be *always*
13272 # included in the symbol list
13273 include_expsyms_F77=
13274 # exclude_expsyms can be an extended regexp of symbols to exclude
13275 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13276 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13277 # as well as any symbol that contains `d'.
13278 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13279 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13280 # platforms (ab)use it in PIC code, but their linkers get confused if
13281 # the symbol is explicitly referenced. Since portable code cannot
13282 # rely on this symbol name, it's probably fine to never include it in
13283 # preloaded symbol tables.
13284 extract_expsyms_cmds=
13285
13286 case $host_os in
13287 cygwin* | mingw* | pw32*)
13288 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13289 # When not using gcc, we currently assume that we are using
13290 # Microsoft Visual C++.
13291 if test "$GCC" != yes; then
13292 with_gnu_ld=no
13293 fi
13294 ;;
13295 openbsd*)
13296 with_gnu_ld=no
13297 ;;
13298 esac
13299
13300 ld_shlibs_F77=yes
13301 if test "$with_gnu_ld" = yes; then
13302 # If archive_cmds runs LD, not CC, wlarc should be empty
13303 wlarc='${wl}'
13304
13305 # See if GNU ld supports shared libraries.
13306 case $host_os in
13307 aix3* | aix4* | aix5*)
13308 # On AIX/PPC, the GNU linker is very broken
13309 if test "$host_cpu" != ia64; then
13310 ld_shlibs_F77=no
13311 cat <<EOF 1>&2
13312
13313*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13314*** to be unable to reliably create shared libraries on AIX.
13315*** Therefore, libtool is disabling shared libraries support. If you
13316*** really care for shared libraries, you may want to modify your PATH
13317*** so that a non-GNU linker is found, and then restart.
13318
13319EOF
13320 fi
13321 ;;
13322
13323 amigaos*)
13324 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)'
13325 hardcode_libdir_flag_spec_F77='-L$libdir'
13326 hardcode_minus_L_F77=yes
13327
13328 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13329 # that the semantics of dynamic libraries on AmigaOS, at least up
13330 # to version 4, is to share data among multiple programs linked
13331 # with the same dynamic library. Since this doesn't match the
13332 # behavior of shared libraries on other platforms, we can't use
13333 # them.
13334 ld_shlibs_F77=no
13335 ;;
13336
13337 beos*)
13338 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13339 allow_undefined_flag_F77=unsupported
13340 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13341 # support --undefined. This deserves some investigation. FIXME
13342 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13343 else
13344 ld_shlibs_F77=no
13345 fi
13346 ;;
13347
13348 cygwin* | mingw* | pw32*)
13349 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13350 # as there is no search path for DLLs.
13351 hardcode_libdir_flag_spec_F77='-L$libdir'
13352 allow_undefined_flag_F77=unsupported
13353 always_export_symbols_F77=no
13354 enable_shared_with_static_runtimes_F77=yes
13355 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13356
13357 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13358 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13359 # If the export-symbols file already is a .def file (1st line
13360 # is EXPORTS), use it as is; otherwise, prepend...
13361 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13362 cp $export_symbols $output_objdir/$soname.def;
13363 else
13364 echo EXPORTS > $output_objdir/$soname.def;
13365 cat $export_symbols >> $output_objdir/$soname.def;
13366 fi~
13367 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13368 else
13369 ld_shlibs=no
13370 fi
13371 ;;
13372
13373 netbsd*)
13374 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13375 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13376 wlarc=
13377 else
13378 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13379 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13380 fi
13381 ;;
13382
13383 solaris* | sysv5*)
13384 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13385 ld_shlibs_F77=no
13386 cat <<EOF 1>&2
13387
13388*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13389*** create shared libraries on Solaris systems. Therefore, libtool
13390*** is disabling shared libraries support. We urge you to upgrade GNU
13391*** binutils to release 2.9.1 or newer. Another option is to modify
13392*** your PATH or compiler configuration so that the native linker is
13393*** used, and then restart.
13394
13395EOF
13396 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13397 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13398 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13399 else
13400 ld_shlibs_F77=no
13401 fi
13402 ;;
13403
13404 sunos4*)
13405 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13406 wlarc=
13407 hardcode_direct_F77=yes
13408 hardcode_shlibpath_var_F77=no
13409 ;;
13410
13411 *)
13412 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13413 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13414 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13415 else
13416 ld_shlibs_F77=no
13417 fi
13418 ;;
13419 esac
13420
13421 if test "$ld_shlibs_F77" = yes; then
13422 runpath_var=LD_RUN_PATH
13423 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13424 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13425 # ancient GNU ld didn't support --whole-archive et. al.
13426 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13427 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13428 else
13429 whole_archive_flag_spec_F77=
13430 fi
13431 fi
13432 else
13433 # PORTME fill in a description of your system's linker (not GNU ld)
13434 case $host_os in
13435 aix3*)
13436 allow_undefined_flag_F77=unsupported
13437 always_export_symbols_F77=yes
13438 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'
13439 # Note: this linker hardcodes the directories in LIBPATH if there
13440 # are no directories specified by -L.
13441 hardcode_minus_L_F77=yes
13442 if test "$GCC" = yes && test -z "$link_static_flag"; then
13443 # Neither direct hardcoding nor static linking is supported with a
13444 # broken collect2.
13445 hardcode_direct_F77=unsupported
13446 fi
13447 ;;
13448
13449 aix4* | aix5*)
13450 if test "$host_cpu" = ia64; then
13451 # On IA64, the linker does run time linking by default, so we don't
13452 # have to do anything special.
13453 aix_use_runtimelinking=no
13454 exp_sym_flag='-Bexport'
13455 no_entry_flag=""
13456 else
13457 # If we're using GNU nm, then we don't want the "-C" option.
13458 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13459 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13460 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'
13461 else
13462 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'
13463 fi
13464 aix_use_runtimelinking=no
13465
13466 # Test if we are trying to use run time linking or normal
13467 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13468 # need to do runtime linking.
13469 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13470 for ld_flag in $LDFLAGS; do
13471 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13472 aix_use_runtimelinking=yes
13473 break
13474 fi
13475 done
13476 esac
13477
13478 exp_sym_flag='-bexport'
13479 no_entry_flag='-bnoentry'
13480 fi
13481
13482 # When large executables or shared objects are built, AIX ld can
13483 # have problems creating the table of contents. If linking a library
13484 # or program results in "error TOC overflow" add -mminimal-toc to
13485 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13486 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13487
13488 archive_cmds_F77=''
13489 hardcode_direct_F77=yes
13490 hardcode_libdir_separator_F77=':'
13491 link_all_deplibs_F77=yes
13492
13493 if test "$GCC" = yes; then
13494 case $host_os in aix4.012|aix4.012.*)
13495 # We only want to do this on AIX 4.2 and lower, the check
13496 # below for broken collect2 doesn't work under 4.3+
13497 collect2name=`${CC} -print-prog-name=collect2`
13498 if test -f "$collect2name" && \
13499 strings "$collect2name" | grep resolve_lib_name >/dev/null
13500 then
13501 # We have reworked collect2
13502 hardcode_direct_F77=yes
13503 else
13504 # We have old collect2
13505 hardcode_direct_F77=unsupported
13506 # It fails to find uninstalled libraries when the uninstalled
13507 # path is not listed in the libpath. Setting hardcode_minus_L
13508 # to unsupported forces relinking
13509 hardcode_minus_L_F77=yes
13510 hardcode_libdir_flag_spec_F77='-L$libdir'
13511 hardcode_libdir_separator_F77=
13512 fi
13513 esac
13514 shared_flag='-shared'
13515 else
13516 # not using gcc
13517 if test "$host_cpu" = ia64; then
13518 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13519 # chokes on -Wl,-G. The following line is correct:
13520 shared_flag='-G'
13521 else
13522 if test "$aix_use_runtimelinking" = yes; then
13523 shared_flag='${wl}-G'
13524 else
13525 shared_flag='${wl}-bM:SRE'
13526 fi
13527 fi
13528 fi
13529
13530 # It seems that -bexpall does not export symbols beginning with
13531 # underscore (_), so it is better to generate a list of symbols to export.
13532 always_export_symbols_F77=yes
13533 if test "$aix_use_runtimelinking" = yes; then
13534 # Warning - without using the other runtime loading flags (-brtl),
13535 # -berok will link without error, but may produce a broken library.
13536 allow_undefined_flag_F77='-berok'
13537 # Determine the default libpath from the value encoded in an empty executable.
13538 cat >conftest.$ac_ext <<_ACEOF
13539 program main
13540
13541 end
13542_ACEOF
13543rm -f conftest.$ac_objext conftest$ac_exeext
13544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000013545 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013546 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000013547 grep -v '^ *+' conftest.er1 >conftest.err
13548 rm -f conftest.er1
13549 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000013552 { ac_try='test -z "$ac_f77_werror_flag"
13553 || test ! -s conftest.err'
13554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13555 (eval $ac_try) 2>&5
13556 ac_status=$?
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); }; } &&
13559 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13561 (eval $ac_try) 2>&5
13562 ac_status=$?
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); }; }; then
13565
13566aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13567}'`
13568# Check for a 64-bit object if we didn't find anything.
13569if 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; }
13570}'`; fi
13571else
13572 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013573sed 's/^/| /' conftest.$ac_ext >&5
13574
John Criswell47fdd832003-07-14 16:52:07 +000013575fi
Reid Spencer2b51a082004-08-04 00:34:49 +000013576rm -f conftest.err conftest.$ac_objext \
13577 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013578if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13579
13580 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13581 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"
13582 else
13583 if test "$host_cpu" = ia64; then
13584 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13585 allow_undefined_flag_F77="-z nodefs"
13586 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"
13587 else
13588 # Determine the default libpath from the value encoded in an empty executable.
13589 cat >conftest.$ac_ext <<_ACEOF
13590 program main
13591
13592 end
13593_ACEOF
13594rm -f conftest.$ac_objext conftest$ac_exeext
13595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000013596 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013597 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000013598 grep -v '^ *+' conftest.er1 >conftest.err
13599 rm -f conftest.er1
13600 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000013603 { ac_try='test -z "$ac_f77_werror_flag"
13604 || test ! -s conftest.err'
13605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606 (eval $ac_try) 2>&5
13607 ac_status=$?
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); }; } &&
13610 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612 (eval $ac_try) 2>&5
13613 ac_status=$?
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
13616
13617aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13618}'`
13619# Check for a 64-bit object if we didn't find anything.
13620if 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; }
13621}'`; fi
13622else
13623 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013624sed 's/^/| /' conftest.$ac_ext >&5
13625
John Criswell47fdd832003-07-14 16:52:07 +000013626fi
Reid Spencer2b51a082004-08-04 00:34:49 +000013627rm -f conftest.err conftest.$ac_objext \
13628 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013629if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13630
13631 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13632 # Warning - without using the other run time loading flags,
13633 # -berok will link without error, but may produce a broken library.
13634 no_undefined_flag_F77=' ${wl}-bernotok'
13635 allow_undefined_flag_F77=' ${wl}-berok'
13636 # -bexpall does not export symbols beginning with underscore (_)
13637 always_export_symbols_F77=yes
13638 # Exported symbols can be pulled into shared objects from archives
13639 whole_archive_flag_spec_F77=' '
13640 archive_cmds_need_lc_F77=yes
13641 # This is similar to how AIX traditionally builds it's shared libraries.
13642 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'
13643 fi
13644 fi
13645 ;;
13646
13647 amigaos*)
13648 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)'
13649 hardcode_libdir_flag_spec_F77='-L$libdir'
13650 hardcode_minus_L_F77=yes
13651 # see comment about different semantics on the GNU ld section
13652 ld_shlibs_F77=no
13653 ;;
13654
13655 bsdi4*)
13656 export_dynamic_flag_spec_F77=-rdynamic
13657 ;;
13658
13659 cygwin* | mingw* | pw32*)
13660 # When not using gcc, we currently assume that we are using
13661 # Microsoft Visual C++.
13662 # hardcode_libdir_flag_spec is actually meaningless, as there is
13663 # no search path for DLLs.
13664 hardcode_libdir_flag_spec_F77=' '
13665 allow_undefined_flag_F77=unsupported
13666 # Tell ltmain to make .lib files, not .a files.
13667 libext=lib
13668 # Tell ltmain to make .dll files, not .so files.
13669 shrext=".dll"
13670 # FIXME: Setting linknames here is a bad hack.
13671 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13672 # The linker will automatically build a .lib file if we build a DLL.
13673 old_archive_From_new_cmds_F77='true'
13674 # FIXME: Should let the user specify the lib program.
13675 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13676 fix_srcfile_path='`cygpath -w "$srcfile"`'
13677 enable_shared_with_static_runtimes_F77=yes
13678 ;;
13679
13680 darwin* | rhapsody*)
13681 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13682 archive_cmds_need_lc_F77=no
13683 case "$host_os" in
13684 rhapsody* | darwin1.[012])
13685 allow_undefined_flag_F77='-undefined suppress'
13686 ;;
13687 *) # Darwin 1.3 on
13688 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13689 ;;
13690 esac
13691 # FIXME: Relying on posixy $() will cause problems for
13692 # cross-compilation, but unfortunately the echo tests do not
13693 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13694 # `"' quotes if we put them in here... so don't!
13695 lt_int_apple_cc_single_mod=no
13696 output_verbose_link_cmd='echo'
13697 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13698 lt_int_apple_cc_single_mod=yes
13699 fi
13700 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13701 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13702 else
13703 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13704 fi
13705 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13706 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13707 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13708 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13709 else
13710 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13711 fi
13712 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13713 hardcode_direct_F77=no
13714 hardcode_automatic_F77=yes
13715 hardcode_shlibpath_var_F77=unsupported
13716 whole_archive_flag_spec_F77='-all_load $convenience'
13717 link_all_deplibs_F77=yes
13718 fi
13719 ;;
13720
13721 dgux*)
13722 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13723 hardcode_libdir_flag_spec_F77='-L$libdir'
13724 hardcode_shlibpath_var_F77=no
13725 ;;
13726
13727 freebsd1*)
13728 ld_shlibs_F77=no
13729 ;;
13730
13731 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13732 # support. Future versions do this automatically, but an explicit c++rt0.o
13733 # does not break anything, and helps significantly (at the cost of a little
13734 # extra space).
13735 freebsd2.2*)
13736 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13737 hardcode_libdir_flag_spec_F77='-R$libdir'
13738 hardcode_direct_F77=yes
13739 hardcode_shlibpath_var_F77=no
13740 ;;
13741
13742 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13743 freebsd2*)
13744 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13745 hardcode_direct_F77=yes
13746 hardcode_minus_L_F77=yes
13747 hardcode_shlibpath_var_F77=no
13748 ;;
13749
13750 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13751 freebsd*)
13752 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13753 hardcode_libdir_flag_spec_F77='-R$libdir'
13754 hardcode_direct_F77=yes
13755 hardcode_shlibpath_var_F77=no
13756 ;;
13757
13758 hpux9*)
13759 if test "$GCC" = yes; then
13760 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'
13761 else
13762 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'
13763 fi
13764 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13765 hardcode_libdir_separator_F77=:
13766 hardcode_direct_F77=yes
13767
13768 # hardcode_minus_L: Not really in the search PATH,
13769 # but as the default location of the library.
13770 hardcode_minus_L_F77=yes
13771 export_dynamic_flag_spec_F77='${wl}-E'
13772 ;;
13773
13774 hpux10* | hpux11*)
13775 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13776 case "$host_cpu" in
13777 hppa*64*|ia64*)
13778 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13779 ;;
13780 *)
13781 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13782 ;;
13783 esac
13784 else
13785 case "$host_cpu" in
13786 hppa*64*|ia64*)
13787 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13788 ;;
13789 *)
13790 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13791 ;;
13792 esac
13793 fi
13794 if test "$with_gnu_ld" = no; then
13795 case "$host_cpu" in
13796 hppa*64*)
13797 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13798 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13799 hardcode_libdir_separator_F77=:
13800 hardcode_direct_F77=no
13801 hardcode_shlibpath_var_F77=no
13802 ;;
13803 ia64*)
13804 hardcode_libdir_flag_spec_F77='-L$libdir'
13805 hardcode_direct_F77=no
13806 hardcode_shlibpath_var_F77=no
13807
13808 # hardcode_minus_L: Not really in the search PATH,
13809 # but as the default location of the library.
13810 hardcode_minus_L_F77=yes
13811 ;;
13812 *)
13813 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13814 hardcode_libdir_separator_F77=:
13815 hardcode_direct_F77=yes
13816 export_dynamic_flag_spec_F77='${wl}-E'
13817
13818 # hardcode_minus_L: Not really in the search PATH,
13819 # but as the default location of the library.
13820 hardcode_minus_L_F77=yes
13821 ;;
13822 esac
13823 fi
13824 ;;
13825
13826 irix5* | irix6* | nonstopux*)
13827 if test "$GCC" = yes; then
13828 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'
13829 else
13830 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'
13831 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13832 fi
13833 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13834 hardcode_libdir_separator_F77=:
13835 link_all_deplibs_F77=yes
13836 ;;
13837
13838 netbsd*)
13839 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13840 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13841 else
13842 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13843 fi
13844 hardcode_libdir_flag_spec_F77='-R$libdir'
13845 hardcode_direct_F77=yes
13846 hardcode_shlibpath_var_F77=no
13847 ;;
13848
13849 newsos6)
13850 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13851 hardcode_direct_F77=yes
13852 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13853 hardcode_libdir_separator_F77=:
13854 hardcode_shlibpath_var_F77=no
13855 ;;
13856
13857 openbsd*)
13858 hardcode_direct_F77=yes
13859 hardcode_shlibpath_var_F77=no
13860 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13861 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13862 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13863 export_dynamic_flag_spec_F77='${wl}-E'
13864 else
13865 case $host_os in
13866 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13867 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13868 hardcode_libdir_flag_spec_F77='-R$libdir'
13869 ;;
13870 *)
13871 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13872 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13873 ;;
13874 esac
13875 fi
13876 ;;
13877
13878 os2*)
13879 hardcode_libdir_flag_spec_F77='-L$libdir'
13880 hardcode_minus_L_F77=yes
13881 allow_undefined_flag_F77=unsupported
13882 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'
13883 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13884 ;;
13885
13886 osf3*)
13887 if test "$GCC" = yes; then
13888 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13889 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'
13890 else
13891 allow_undefined_flag_F77=' -expect_unresolved \*'
13892 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'
13893 fi
13894 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13895 hardcode_libdir_separator_F77=:
13896 ;;
13897
13898 osf4* | osf5*) # as osf3* with the addition of -msym flag
13899 if test "$GCC" = yes; then
13900 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13901 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'
13902 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13903 else
13904 allow_undefined_flag_F77=' -expect_unresolved \*'
13905 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'
13906 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~
13907 $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'
13908
13909 # Both c and cxx compiler support -rpath directly
13910 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13911 fi
13912 hardcode_libdir_separator_F77=:
13913 ;;
13914
13915 sco3.2v5*)
13916 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13917 hardcode_shlibpath_var_F77=no
13918 export_dynamic_flag_spec_F77='${wl}-Bexport'
13919 runpath_var=LD_RUN_PATH
13920 hardcode_runpath_var=yes
13921 ;;
13922
13923 solaris*)
13924 no_undefined_flag_F77=' -z text'
13925 if test "$GCC" = yes; then
13926 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13927 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13928 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13929 else
13930 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13931 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13932 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13933 fi
13934 hardcode_libdir_flag_spec_F77='-R$libdir'
13935 hardcode_shlibpath_var_F77=no
13936 case $host_os in
13937 solaris2.[0-5] | solaris2.[0-5].*) ;;
13938 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13939 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13940 esac
13941 link_all_deplibs_F77=yes
13942 ;;
13943
13944 sunos4*)
13945 if test "x$host_vendor" = xsequent; then
13946 # Use $CC to link under sequent, because it throws in some extra .o
13947 # files that make .init and .fini sections work.
13948 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13949 else
13950 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13951 fi
13952 hardcode_libdir_flag_spec_F77='-L$libdir'
13953 hardcode_direct_F77=yes
13954 hardcode_minus_L_F77=yes
13955 hardcode_shlibpath_var_F77=no
13956 ;;
13957
13958 sysv4)
13959 case $host_vendor in
13960 sni)
13961 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13962 hardcode_direct_F77=yes # is this really true???
13963 ;;
13964 siemens)
13965 ## LD is ld it makes a PLAMLIB
13966 ## CC just makes a GrossModule.
13967 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13968 reload_cmds_F77='$CC -r -o $output$reload_objs'
13969 hardcode_direct_F77=no
13970 ;;
13971 motorola)
13972 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13973 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13974 ;;
13975 esac
13976 runpath_var='LD_RUN_PATH'
13977 hardcode_shlibpath_var_F77=no
13978 ;;
13979
13980 sysv4.3*)
13981 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13982 hardcode_shlibpath_var_F77=no
13983 export_dynamic_flag_spec_F77='-Bexport'
13984 ;;
13985
13986 sysv4*MP*)
13987 if test -d /usr/nec; then
13988 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13989 hardcode_shlibpath_var_F77=no
13990 runpath_var=LD_RUN_PATH
13991 hardcode_runpath_var=yes
13992 ld_shlibs_F77=yes
13993 fi
13994 ;;
13995
13996 sysv4.2uw2*)
13997 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13998 hardcode_direct_F77=yes
13999 hardcode_minus_L_F77=no
14000 hardcode_shlibpath_var_F77=no
14001 hardcode_runpath_var=yes
14002 runpath_var=LD_RUN_PATH
14003 ;;
14004
14005 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14006 no_undefined_flag_F77='${wl}-z ${wl}text'
14007 if test "$GCC" = yes; then
14008 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14009 else
14010 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14011 fi
14012 runpath_var='LD_RUN_PATH'
14013 hardcode_shlibpath_var_F77=no
14014 ;;
14015
14016 sysv5*)
14017 no_undefined_flag_F77=' -z text'
14018 # $CC -shared without GNU ld will not create a library from C++
14019 # object files and a static libstdc++, better avoid it by now
14020 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14021 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14022 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14023 hardcode_libdir_flag_spec_F77=
14024 hardcode_shlibpath_var_F77=no
14025 runpath_var='LD_RUN_PATH'
14026 ;;
14027
14028 uts4*)
14029 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14030 hardcode_libdir_flag_spec_F77='-L$libdir'
14031 hardcode_shlibpath_var_F77=no
14032 ;;
14033
14034 *)
14035 ld_shlibs_F77=no
14036 ;;
14037 esac
14038 fi
14039
14040echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14041echo "${ECHO_T}$ld_shlibs_F77" >&6
14042test "$ld_shlibs_F77" = no && can_build_shared=no
14043
14044variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14045if test "$GCC" = yes; then
14046 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14047fi
14048
14049#
14050# Do we need to explicitly link libc?
14051#
14052case "x$archive_cmds_need_lc_F77" in
14053x|xyes)
14054 # Assume -lc should be added
14055 archive_cmds_need_lc_F77=yes
14056
14057 if test "$enable_shared" = yes && test "$GCC" = yes; then
14058 case $archive_cmds_F77 in
14059 *'~'*)
14060 # FIXME: we may have to deal with multi-command sequences.
14061 ;;
14062 '$CC '*)
14063 # Test whether the compiler implicitly links with -lc since on some
14064 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14065 # to ld, don't add -lc before -lgcc.
14066 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14067echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14068 $rm conftest*
14069 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14070
14071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14072 (eval $ac_compile) 2>&5
14073 ac_status=$?
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); } 2>conftest.err; then
14076 soname=conftest
14077 lib=conftest
14078 libobjs=conftest.$ac_objext
14079 deplibs=
14080 wl=$lt_prog_compiler_wl_F77
14081 compiler_flags=-v
14082 linker_flags=-v
14083 verstring=
14084 output_objdir=.
14085 libname=conftest
14086 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14087 allow_undefined_flag_F77=
14088 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14089 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14090 ac_status=$?
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }
14093 then
14094 archive_cmds_need_lc_F77=no
14095 else
14096 archive_cmds_need_lc_F77=yes
14097 fi
14098 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14099 else
14100 cat conftest.err 1>&5
14101 fi
14102 $rm conftest*
14103 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14104echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14105 ;;
14106 esac
14107 fi
14108 ;;
14109esac
14110
14111echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14112echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14113hardcode_action_F77=
14114if test -n "$hardcode_libdir_flag_spec_F77" || \
14115 test -n "$runpath_var F77" || \
14116 test "X$hardcode_automatic_F77"="Xyes" ; then
14117
14118 # We can hardcode non-existant directories.
14119 if test "$hardcode_direct_F77" != no &&
14120 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14121 # have to relink, otherwise we might link with an installed library
14122 # when we should be linking with a yet-to-be-installed one
14123 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14124 test "$hardcode_minus_L_F77" != no; then
14125 # Linking always hardcodes the temporary library directory.
14126 hardcode_action_F77=relink
14127 else
14128 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14129 hardcode_action_F77=immediate
14130 fi
14131else
14132 # We cannot hardcode anything, or else we can only hardcode existing
14133 # directories.
14134 hardcode_action_F77=unsupported
14135fi
14136echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14137echo "${ECHO_T}$hardcode_action_F77" >&6
14138
14139if test "$hardcode_action_F77" = relink; then
14140 # Fast installation is not supported
14141 enable_fast_install=no
14142elif test "$shlibpath_overrides_runpath" = yes ||
14143 test "$enable_shared" = no; then
14144 # Fast installation is not necessary
14145 enable_fast_install=needless
14146fi
14147
14148striplib=
14149old_striplib=
14150echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14151echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14152if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14153 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14154 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14155 echo "$as_me:$LINENO: result: yes" >&5
14156echo "${ECHO_T}yes" >&6
14157else
14158# FIXME - insert some real tests, host_os isn't really good enough
14159 case $host_os in
14160 darwin*)
14161 if test -n "$STRIP" ; then
14162 striplib="$STRIP -x"
14163 echo "$as_me:$LINENO: result: yes" >&5
14164echo "${ECHO_T}yes" >&6
14165 else
14166 echo "$as_me:$LINENO: result: no" >&5
14167echo "${ECHO_T}no" >&6
14168fi
14169 ;;
14170 *)
14171 echo "$as_me:$LINENO: result: no" >&5
14172echo "${ECHO_T}no" >&6
14173 ;;
14174 esac
14175fi
14176
14177echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14178echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14179library_names_spec=
14180libname_spec='lib$name'
14181soname_spec=
14182shrext=".so"
14183postinstall_cmds=
14184postuninstall_cmds=
14185finish_cmds=
14186finish_eval=
14187shlibpath_var=
14188shlibpath_overrides_runpath=unknown
14189version_type=none
14190dynamic_linker="$host_os ld.so"
14191sys_lib_dlsearch_path_spec="/lib /usr/lib"
14192if test "$GCC" = yes; then
14193 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14194 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14195 # if the path contains ";" then we assume it to be the separator
14196 # otherwise default to the standard path separator (i.e. ":") - it is
14197 # assumed that no part of a normal pathname contains ";" but that should
14198 # okay in the real world where ";" in dirpaths is itself problematic.
14199 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14200 else
14201 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14202 fi
14203else
14204 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14205fi
14206need_lib_prefix=unknown
14207hardcode_into_libs=no
14208
14209# when you set need_version to no, make sure it does not cause -set_version
14210# flags to be left without arguments
14211need_version=unknown
14212
14213case $host_os in
14214aix3*)
14215 version_type=linux
14216 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14217 shlibpath_var=LIBPATH
14218
14219 # AIX 3 has no versioning support, so we append a major version to the name.
14220 soname_spec='${libname}${release}${shared_ext}$major'
14221 ;;
14222
14223aix4* | aix5*)
14224 version_type=linux
14225 need_lib_prefix=no
14226 need_version=no
14227 hardcode_into_libs=yes
14228 if test "$host_cpu" = ia64; then
14229 # AIX 5 supports IA64
14230 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14231 shlibpath_var=LD_LIBRARY_PATH
14232 else
14233 # With GCC up to 2.95.x, collect2 would create an import file
14234 # for dependence libraries. The import file would start with
14235 # the line `#! .'. This would cause the generated library to
14236 # depend on `.', always an invalid library. This was fixed in
14237 # development snapshots of GCC prior to 3.0.
14238 case $host_os in
14239 aix4 | aix4.[01] | aix4.[01].*)
14240 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14241 echo ' yes '
14242 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14243 :
14244 else
14245 can_build_shared=no
14246 fi
14247 ;;
14248 esac
14249 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14250 # soname into executable. Probably we can add versioning support to
14251 # collect2, so additional links can be useful in future.
14252 if test "$aix_use_runtimelinking" = yes; then
14253 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14254 # instead of lib<name>.a to let people know that these are not
14255 # typical AIX shared libraries.
14256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14257 else
14258 # We preserve .a as extension for shared libraries through AIX4.2
14259 # and later when we are not doing run time linking.
14260 library_names_spec='${libname}${release}.a $libname.a'
14261 soname_spec='${libname}${release}${shared_ext}$major'
14262 fi
14263 shlibpath_var=LIBPATH
14264 fi
14265 ;;
14266
14267amigaos*)
14268 library_names_spec='$libname.ixlibrary $libname.a'
14269 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14270 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'
14271 ;;
14272
14273beos*)
14274 library_names_spec='${libname}${shared_ext}'
14275 dynamic_linker="$host_os ld.so"
14276 shlibpath_var=LIBRARY_PATH
14277 ;;
14278
14279bsdi4*)
14280 version_type=linux
14281 need_version=no
14282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14283 soname_spec='${libname}${release}${shared_ext}$major'
14284 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14285 shlibpath_var=LD_LIBRARY_PATH
14286 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14287 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14288 # the default ld.so.conf also contains /usr/contrib/lib and
14289 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14290 # libtool to hard-code these into programs
14291 ;;
14292
14293cygwin* | mingw* | pw32*)
14294 version_type=windows
14295 shrext=".dll"
14296 need_version=no
14297 need_lib_prefix=no
14298
14299 case $GCC,$host_os in
14300 yes,cygwin* | yes,mingw* | yes,pw32*)
14301 library_names_spec='$libname.dll.a'
14302 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14303 postinstall_cmds='base_file=`basename \${file}`~
14304 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14305 dldir=$destdir/`dirname \$dlpath`~
14306 test -d \$dldir || mkdir -p \$dldir~
14307 $install_prog $dir/$dlname \$dldir/$dlname'
14308 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14309 dlpath=$dir/\$dldll~
14310 $rm \$dlpath'
14311 shlibpath_overrides_runpath=yes
14312
14313 case $host_os in
14314 cygwin*)
14315 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14316 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14317 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14318 ;;
14319 mingw*)
14320 # MinGW DLLs use traditional 'lib' prefix
14321 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14322 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14323 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14324 # It is most probably a Windows format PATH printed by
14325 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14326 # path with ; separators, and with drive letters. We can handle the
14327 # drive letters (cygwin fileutils understands them), so leave them,
14328 # especially as we might pass files found there to a mingw objdump,
14329 # which wouldn't understand a cygwinified path. Ahh.
14330 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14331 else
14332 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14333 fi
14334 ;;
14335 pw32*)
14336 # pw32 DLLs use 'pw' prefix rather than 'lib'
14337 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14338 ;;
14339 esac
14340 ;;
14341
14342 *)
14343 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14344 ;;
14345 esac
14346 dynamic_linker='Win32 ld.exe'
14347 # FIXME: first we should search . and the directory the executable is in
14348 shlibpath_var=PATH
14349 ;;
14350
14351darwin* | rhapsody*)
14352 dynamic_linker="$host_os dyld"
14353 version_type=darwin
14354 need_lib_prefix=no
14355 need_version=no
14356 # FIXME: Relying on posixy $() will cause problems for
14357 # cross-compilation, but unfortunately the echo tests do not
14358 # yet detect zsh echo's removal of \ escapes.
14359 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14360 soname_spec='${libname}${release}${major}$shared_ext'
14361 shlibpath_overrides_runpath=yes
14362 shlibpath_var=DYLD_LIBRARY_PATH
14363 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14364 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14365 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14366 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"`
14367 fi
14368 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14369 ;;
14370
14371dgux*)
14372 version_type=linux
14373 need_lib_prefix=no
14374 need_version=no
14375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14376 soname_spec='${libname}${release}${shared_ext}$major'
14377 shlibpath_var=LD_LIBRARY_PATH
14378 ;;
14379
14380freebsd1*)
14381 dynamic_linker=no
14382 ;;
14383
14384freebsd*)
14385 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14386 version_type=freebsd-$objformat
14387 case $version_type in
14388 freebsd-elf*)
14389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14390 need_version=no
14391 need_lib_prefix=no
14392 ;;
14393 freebsd-*)
14394 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14395 need_version=yes
14396 ;;
14397 esac
14398 shlibpath_var=LD_LIBRARY_PATH
14399 case $host_os in
14400 freebsd2*)
14401 shlibpath_overrides_runpath=yes
14402 ;;
14403 freebsd3.01* | freebsdelf3.01*)
14404 shlibpath_overrides_runpath=yes
14405 hardcode_into_libs=yes
14406 ;;
14407 *) # from 3.2 on
14408 shlibpath_overrides_runpath=no
14409 hardcode_into_libs=yes
14410 ;;
14411 esac
14412 ;;
14413
14414gnu*)
14415 version_type=linux
14416 need_lib_prefix=no
14417 need_version=no
14418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14419 soname_spec='${libname}${release}${shared_ext}$major'
14420 shlibpath_var=LD_LIBRARY_PATH
14421 hardcode_into_libs=yes
14422 ;;
14423
14424hpux9* | hpux10* | hpux11*)
14425 # Give a soname corresponding to the major version so that dld.sl refuses to
14426 # link against other versions.
14427 version_type=sunos
14428 need_lib_prefix=no
14429 need_version=no
14430 case "$host_cpu" in
14431 ia64*)
14432 shrext='.so'
14433 hardcode_into_libs=yes
14434 dynamic_linker="$host_os dld.so"
14435 shlibpath_var=LD_LIBRARY_PATH
14436 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14438 soname_spec='${libname}${release}${shared_ext}$major'
14439 if test "X$HPUX_IA64_MODE" = X32; then
14440 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14441 else
14442 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14443 fi
14444 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14445 ;;
14446 hppa*64*)
14447 shrext='.sl'
14448 hardcode_into_libs=yes
14449 dynamic_linker="$host_os dld.sl"
14450 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14451 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14453 soname_spec='${libname}${release}${shared_ext}$major'
14454 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14455 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14456 ;;
14457 *)
14458 shrext='.sl'
14459 dynamic_linker="$host_os dld.sl"
14460 shlibpath_var=SHLIB_PATH
14461 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14463 soname_spec='${libname}${release}${shared_ext}$major'
14464 ;;
14465 esac
14466 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14467 postinstall_cmds='chmod 555 $lib'
14468 ;;
14469
14470irix5* | irix6* | nonstopux*)
14471 case $host_os in
14472 nonstopux*) version_type=nonstopux ;;
14473 *)
14474 if test "$lt_cv_prog_gnu_ld" = yes; then
14475 version_type=linux
14476 else
14477 version_type=irix
14478 fi ;;
14479 esac
14480 need_lib_prefix=no
14481 need_version=no
14482 soname_spec='${libname}${release}${shared_ext}$major'
14483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14484 case $host_os in
14485 irix5* | nonstopux*)
14486 libsuff= shlibsuff=
14487 ;;
14488 *)
14489 case $LD in # libtool.m4 will add one of these switches to LD
14490 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14491 libsuff= shlibsuff= libmagic=32-bit;;
14492 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14493 libsuff=32 shlibsuff=N32 libmagic=N32;;
14494 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14495 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14496 *) libsuff= shlibsuff= libmagic=never-match;;
14497 esac
14498 ;;
14499 esac
14500 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14501 shlibpath_overrides_runpath=no
14502 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14503 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14504 hardcode_into_libs=yes
14505 ;;
14506
14507# No shared lib support for Linux oldld, aout, or coff.
14508linux*oldld* | linux*aout* | linux*coff*)
14509 dynamic_linker=no
14510 ;;
14511
14512# This must be Linux ELF.
14513linux*)
14514 version_type=linux
14515 need_lib_prefix=no
14516 need_version=no
14517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14518 soname_spec='${libname}${release}${shared_ext}$major'
14519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14520 shlibpath_var=LD_LIBRARY_PATH
14521 shlibpath_overrides_runpath=no
14522 # This implies no fast_install, which is unacceptable.
14523 # Some rework will be needed to allow for fast_install
14524 # before this can be enabled.
14525 hardcode_into_libs=yes
14526
14527 # We used to test for /lib/ld.so.1 and disable shared libraries on
14528 # powerpc, because MkLinux only supported shared libraries with the
14529 # GNU dynamic linker. Since this was broken with cross compilers,
14530 # most powerpc-linux boxes support dynamic linking these days and
14531 # people can always --disable-shared, the test was removed, and we
14532 # assume the GNU/Linux dynamic linker is in use.
14533 dynamic_linker='GNU/Linux ld.so'
14534 ;;
14535
14536netbsd*)
14537 version_type=sunos
14538 need_lib_prefix=no
14539 need_version=no
14540 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14543 dynamic_linker='NetBSD (a.out) ld.so'
14544 else
14545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14546 soname_spec='${libname}${release}${shared_ext}$major'
14547 dynamic_linker='NetBSD ld.elf_so'
14548 fi
14549 shlibpath_var=LD_LIBRARY_PATH
14550 shlibpath_overrides_runpath=yes
14551 hardcode_into_libs=yes
14552 ;;
14553
14554newsos6)
14555 version_type=linux
14556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14557 shlibpath_var=LD_LIBRARY_PATH
14558 shlibpath_overrides_runpath=yes
14559 ;;
14560
14561nto-qnx)
14562 version_type=linux
14563 need_lib_prefix=no
14564 need_version=no
14565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14566 soname_spec='${libname}${release}${shared_ext}$major'
14567 shlibpath_var=LD_LIBRARY_PATH
14568 shlibpath_overrides_runpath=yes
14569 ;;
14570
14571openbsd*)
14572 version_type=sunos
14573 need_lib_prefix=no
14574 need_version=no
14575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14576 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14577 shlibpath_var=LD_LIBRARY_PATH
14578 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14579 case $host_os in
14580 openbsd2.[89] | openbsd2.[89].*)
14581 shlibpath_overrides_runpath=no
14582 ;;
14583 *)
14584 shlibpath_overrides_runpath=yes
14585 ;;
14586 esac
14587 else
14588 shlibpath_overrides_runpath=yes
14589 fi
14590 ;;
14591
14592os2*)
14593 libname_spec='$name'
14594 shrext=".dll"
14595 need_lib_prefix=no
14596 library_names_spec='$libname${shared_ext} $libname.a'
14597 dynamic_linker='OS/2 ld.exe'
14598 shlibpath_var=LIBPATH
14599 ;;
14600
14601osf3* | osf4* | osf5*)
14602 version_type=osf
14603 need_lib_prefix=no
14604 need_version=no
14605 soname_spec='${libname}${release}${shared_ext}$major'
14606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14607 shlibpath_var=LD_LIBRARY_PATH
14608 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14609 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14610 ;;
14611
14612sco3.2v5*)
14613 version_type=osf
14614 soname_spec='${libname}${release}${shared_ext}$major'
14615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14616 shlibpath_var=LD_LIBRARY_PATH
14617 ;;
14618
14619solaris*)
14620 version_type=linux
14621 need_lib_prefix=no
14622 need_version=no
14623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14624 soname_spec='${libname}${release}${shared_ext}$major'
14625 shlibpath_var=LD_LIBRARY_PATH
14626 shlibpath_overrides_runpath=yes
14627 hardcode_into_libs=yes
14628 # ldd complains unless libraries are executable
14629 postinstall_cmds='chmod +x $lib'
14630 ;;
14631
14632sunos4*)
14633 version_type=sunos
14634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14635 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14636 shlibpath_var=LD_LIBRARY_PATH
14637 shlibpath_overrides_runpath=yes
14638 if test "$with_gnu_ld" = yes; then
14639 need_lib_prefix=no
14640 fi
14641 need_version=yes
14642 ;;
14643
14644sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14645 version_type=linux
14646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14647 soname_spec='${libname}${release}${shared_ext}$major'
14648 shlibpath_var=LD_LIBRARY_PATH
14649 case $host_vendor in
14650 sni)
14651 shlibpath_overrides_runpath=no
14652 need_lib_prefix=no
14653 export_dynamic_flag_spec='${wl}-Blargedynsym'
14654 runpath_var=LD_RUN_PATH
14655 ;;
14656 siemens)
14657 need_lib_prefix=no
14658 ;;
14659 motorola)
14660 need_lib_prefix=no
14661 need_version=no
14662 shlibpath_overrides_runpath=no
14663 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14664 ;;
14665 esac
14666 ;;
14667
14668sysv4*MP*)
14669 if test -d /usr/nec ;then
14670 version_type=linux
14671 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14672 soname_spec='$libname${shared_ext}.$major'
14673 shlibpath_var=LD_LIBRARY_PATH
14674 fi
14675 ;;
14676
14677uts4*)
14678 version_type=linux
14679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14680 soname_spec='${libname}${release}${shared_ext}$major'
14681 shlibpath_var=LD_LIBRARY_PATH
14682 ;;
14683
14684*)
14685 dynamic_linker=no
14686 ;;
14687esac
14688echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14689echo "${ECHO_T}$dynamic_linker" >&6
14690test "$dynamic_linker" = no && can_build_shared=no
14691
14692
14693# The else clause should only fire when bootstrapping the
14694# libtool distribution, otherwise you forgot to ship ltmain.sh
14695# with your package, and you will get complaints that there are
14696# no rules to generate ltmain.sh.
14697if test -f "$ltmain"; then
14698 # See if we are running on zsh, and set the options which allow our commands through
14699 # without removal of \ escapes.
14700 if test -n "${ZSH_VERSION+set}" ; then
14701 setopt NO_GLOB_SUBST
14702 fi
14703 # Now quote all the things that may contain metacharacters while being
14704 # careful not to overquote the AC_SUBSTed values. We take copies of the
14705 # variables and quote the copies for generation of the libtool script.
14706 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14707 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14708 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14709 deplibs_check_method reload_flag reload_cmds need_locks \
14710 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14711 lt_cv_sys_global_symbol_to_c_name_address \
14712 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14713 old_postinstall_cmds old_postuninstall_cmds \
14714 compiler_F77 \
14715 CC_F77 \
14716 LD_F77 \
14717 lt_prog_compiler_wl_F77 \
14718 lt_prog_compiler_pic_F77 \
14719 lt_prog_compiler_static_F77 \
14720 lt_prog_compiler_no_builtin_flag_F77 \
14721 export_dynamic_flag_spec_F77 \
14722 thread_safe_flag_spec_F77 \
14723 whole_archive_flag_spec_F77 \
14724 enable_shared_with_static_runtimes_F77 \
14725 old_archive_cmds_F77 \
14726 old_archive_from_new_cmds_F77 \
14727 predep_objects_F77 \
14728 postdep_objects_F77 \
14729 predeps_F77 \
14730 postdeps_F77 \
14731 compiler_lib_search_path_F77 \
14732 archive_cmds_F77 \
14733 archive_expsym_cmds_F77 \
14734 postinstall_cmds_F77 \
14735 postuninstall_cmds_F77 \
14736 old_archive_from_expsyms_cmds_F77 \
14737 allow_undefined_flag_F77 \
14738 no_undefined_flag_F77 \
14739 export_symbols_cmds_F77 \
14740 hardcode_libdir_flag_spec_F77 \
14741 hardcode_libdir_flag_spec_ld_F77 \
14742 hardcode_libdir_separator_F77 \
14743 hardcode_automatic_F77 \
14744 module_cmds_F77 \
14745 module_expsym_cmds_F77 \
14746 lt_cv_prog_compiler_c_o_F77 \
14747 exclude_expsyms_F77 \
14748 include_expsyms_F77; do
14749
14750 case $var in
14751 old_archive_cmds_F77 | \
14752 old_archive_from_new_cmds_F77 | \
14753 archive_cmds_F77 | \
14754 archive_expsym_cmds_F77 | \
14755 module_cmds_F77 | \
14756 module_expsym_cmds_F77 | \
14757 old_archive_from_expsyms_cmds_F77 | \
14758 export_symbols_cmds_F77 | \
14759 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14760 postinstall_cmds | postuninstall_cmds | \
14761 old_postinstall_cmds | old_postuninstall_cmds | \
14762 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14763 # Double-quote double-evaled strings.
14764 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14765 ;;
14766 *)
14767 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14768 ;;
14769 esac
14770 done
14771
14772 case $lt_echo in
14773 *'\$0 --fallback-echo"')
14774 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14775 ;;
14776 esac
14777
14778cfgfile="$ofile"
14779
14780 cat <<__EOF__ >> "$cfgfile"
14781# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14782
14783# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14784
14785# Shell to use when invoking shell scripts.
14786SHELL=$lt_SHELL
14787
14788# Whether or not to build shared libraries.
14789build_libtool_libs=$enable_shared
14790
14791# Whether or not to build static libraries.
14792build_old_libs=$enable_static
14793
14794# Whether or not to add -lc for building shared libraries.
14795build_libtool_need_lc=$archive_cmds_need_lc_F77
14796
14797# Whether or not to disallow shared libs when runtime libs are static
14798allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14799
14800# Whether or not to optimize for fast installation.
14801fast_install=$enable_fast_install
14802
14803# The host system.
14804host_alias=$host_alias
14805host=$host
14806
14807# An echo program that does not interpret backslashes.
14808echo=$lt_echo
14809
14810# The archiver.
14811AR=$lt_AR
14812AR_FLAGS=$lt_AR_FLAGS
14813
14814# A C compiler.
14815LTCC=$lt_LTCC
14816
14817# A language-specific compiler.
14818CC=$lt_compiler_F77
14819
14820# Is the compiler the GNU C compiler?
14821with_gcc=$GCC_F77
14822
14823# An ERE matcher.
14824EGREP=$lt_EGREP
14825
14826# The linker used to build libraries.
14827LD=$lt_LD_F77
14828
14829# Whether we need hard or soft links.
14830LN_S=$lt_LN_S
14831
14832# A BSD-compatible nm program.
14833NM=$lt_NM
14834
14835# A symbol stripping program
14836STRIP=$STRIP
14837
14838# Used to examine libraries when file_magic_cmd begins "file"
14839MAGIC_CMD=$MAGIC_CMD
14840
14841# Used on cygwin: DLL creation program.
14842DLLTOOL="$DLLTOOL"
14843
14844# Used on cygwin: object dumper.
14845OBJDUMP="$OBJDUMP"
14846
14847# Used on cygwin: assembler.
14848AS="$AS"
14849
14850# The name of the directory that contains temporary libtool files.
14851objdir=$objdir
14852
14853# How to create reloadable object files.
14854reload_flag=$lt_reload_flag
14855reload_cmds=$lt_reload_cmds
14856
14857# How to pass a linker flag through the compiler.
14858wl=$lt_lt_prog_compiler_wl_F77
14859
14860# Object file suffix (normally "o").
14861objext="$ac_objext"
14862
14863# Old archive suffix (normally "a").
14864libext="$libext"
14865
14866# Shared library suffix (normally ".so").
14867shrext='$shrext'
14868
14869# Executable file suffix (normally "").
14870exeext="$exeext"
14871
14872# Additional compiler flags for building library objects.
14873pic_flag=$lt_lt_prog_compiler_pic_F77
14874pic_mode=$pic_mode
14875
14876# What is the maximum length of a command?
14877max_cmd_len=$lt_cv_sys_max_cmd_len
14878
14879# Does compiler simultaneously support -c and -o options?
14880compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14881
14882# Must we lock files when doing compilation ?
14883need_locks=$lt_need_locks
14884
14885# Do we need the lib prefix for modules?
14886need_lib_prefix=$need_lib_prefix
14887
14888# Do we need a version for libraries?
14889need_version=$need_version
14890
14891# Whether dlopen is supported.
14892dlopen_support=$enable_dlopen
14893
14894# Whether dlopen of programs is supported.
14895dlopen_self=$enable_dlopen_self
14896
14897# Whether dlopen of statically linked programs is supported.
14898dlopen_self_static=$enable_dlopen_self_static
14899
14900# Compiler flag to prevent dynamic linking.
14901link_static_flag=$lt_lt_prog_compiler_static_F77
14902
14903# Compiler flag to turn off builtin functions.
14904no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14905
14906# Compiler flag to allow reflexive dlopens.
14907export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14908
14909# Compiler flag to generate shared objects directly from archives.
14910whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14911
14912# Compiler flag to generate thread-safe objects.
14913thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14914
14915# Library versioning type.
14916version_type=$version_type
14917
14918# Format of library name prefix.
14919libname_spec=$lt_libname_spec
14920
14921# List of archive names. First name is the real one, the rest are links.
14922# The last name is the one that the linker finds with -lNAME.
14923library_names_spec=$lt_library_names_spec
14924
14925# The coded name of the library, if different from the real name.
14926soname_spec=$lt_soname_spec
14927
14928# Commands used to build and install an old-style archive.
14929RANLIB=$lt_RANLIB
14930old_archive_cmds=$lt_old_archive_cmds_F77
14931old_postinstall_cmds=$lt_old_postinstall_cmds
14932old_postuninstall_cmds=$lt_old_postuninstall_cmds
14933
14934# Create an old-style archive from a shared archive.
14935old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14936
14937# Create a temporary old-style archive to link instead of a shared archive.
14938old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14939
14940# Commands used to build and install a shared archive.
14941archive_cmds=$lt_archive_cmds_F77
14942archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14943postinstall_cmds=$lt_postinstall_cmds
14944postuninstall_cmds=$lt_postuninstall_cmds
14945
14946# Commands used to build a loadable module (assumed same as above if empty)
14947module_cmds=$lt_module_cmds_F77
14948module_expsym_cmds=$lt_module_expsym_cmds_F77
14949
14950# Commands to strip libraries.
14951old_striplib=$lt_old_striplib
14952striplib=$lt_striplib
14953
14954# Dependencies to place before the objects being linked to create a
14955# shared library.
14956predep_objects=$lt_predep_objects_F77
14957
14958# Dependencies to place after the objects being linked to create a
14959# shared library.
14960postdep_objects=$lt_postdep_objects_F77
14961
14962# Dependencies to place before the objects being linked to create a
14963# shared library.
14964predeps=$lt_predeps_F77
14965
14966# Dependencies to place after the objects being linked to create a
14967# shared library.
14968postdeps=$lt_postdeps_F77
14969
14970# The library search path used internally by the compiler when linking
14971# a shared library.
14972compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14973
14974# Method to check whether dependent libraries are shared objects.
14975deplibs_check_method=$lt_deplibs_check_method
14976
14977# Command to use when deplibs_check_method == file_magic.
14978file_magic_cmd=$lt_file_magic_cmd
14979
14980# Flag that allows shared libraries with undefined symbols to be built.
14981allow_undefined_flag=$lt_allow_undefined_flag_F77
14982
14983# Flag that forces no undefined symbols.
14984no_undefined_flag=$lt_no_undefined_flag_F77
14985
14986# Commands used to finish a libtool library installation in a directory.
14987finish_cmds=$lt_finish_cmds
14988
14989# Same as above, but a single script fragment to be evaled but not shown.
14990finish_eval=$lt_finish_eval
14991
14992# Take the output of nm and produce a listing of raw symbols and C names.
14993global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14994
14995# Transform the output of nm in a proper C declaration
14996global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14997
14998# Transform the output of nm in a C name address pair
14999global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15000
15001# This is the shared library runtime path variable.
15002runpath_var=$runpath_var
15003
15004# This is the shared library path variable.
15005shlibpath_var=$shlibpath_var
15006
15007# Is shlibpath searched before the hard-coded library search path?
15008shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15009
15010# How to hardcode a shared library path into an executable.
15011hardcode_action=$hardcode_action_F77
15012
15013# Whether we should hardcode library paths into libraries.
15014hardcode_into_libs=$hardcode_into_libs
15015
15016# Flag to hardcode \$libdir into a binary during linking.
15017# This must work even if \$libdir does not exist.
15018hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15019
15020# If ld is used when linking, flag to hardcode \$libdir into
15021# a binary during linking. This must work even if \$libdir does
15022# not exist.
15023hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15024
15025# Whether we need a single -rpath flag with a separated argument.
15026hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15027
15028# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15029# resulting binary.
15030hardcode_direct=$hardcode_direct_F77
15031
15032# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15033# resulting binary.
15034hardcode_minus_L=$hardcode_minus_L_F77
15035
15036# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15037# the resulting binary.
15038hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15039
15040# Set to yes if building a shared library automatically hardcodes DIR into the library
15041# and all subsequent libraries and executables linked against it.
15042hardcode_automatic=$hardcode_automatic_F77
15043
15044# Variables whose values should be saved in libtool wrapper scripts and
15045# restored at relink time.
15046variables_saved_for_relink="$variables_saved_for_relink"
15047
15048# Whether libtool must link a program against all its dependency libraries.
15049link_all_deplibs=$link_all_deplibs_F77
15050
15051# Compile-time system search path for libraries
15052sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15053
15054# Run-time system search path for libraries
15055sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15056
15057# Fix the shell variable \$srcfile for the compiler.
15058fix_srcfile_path="$fix_srcfile_path_F77"
15059
15060# Set to yes if exported symbols are required.
15061always_export_symbols=$always_export_symbols_F77
15062
15063# The commands to list exported symbols.
15064export_symbols_cmds=$lt_export_symbols_cmds_F77
15065
15066# The commands to extract the exported symbol list from a shared archive.
15067extract_expsyms_cmds=$lt_extract_expsyms_cmds
15068
15069# Symbols that should not be listed in the preloaded symbols.
15070exclude_expsyms=$lt_exclude_expsyms_F77
15071
15072# Symbols that must always be exported.
15073include_expsyms=$lt_include_expsyms_F77
15074
15075# ### END LIBTOOL TAG CONFIG: $tagname
15076
15077__EOF__
15078
15079
15080else
15081 # If there is no Makefile yet, we rely on a make rule to execute
15082 # `config.status --recheck' to rerun these tests and create the
15083 # libtool script then.
15084 test -f Makefile && make "$ltmain"
15085fi
15086
15087
15088ac_ext=c
15089ac_cpp='$CPP $CPPFLAGS'
15090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15092ac_compiler_gnu=$ac_cv_c_compiler_gnu
15093
15094CC="$lt_save_CC"
15095
15096 else
15097 tagname=""
15098 fi
15099 ;;
15100
15101 GCJ)
15102 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15103
15104
15105
15106# Source file extension for Java test sources.
15107ac_ext=java
15108
15109# Object file extension for compiled Java test sources.
15110objext=o
15111objext_GCJ=$objext
15112
15113# Code to be used in simple compile tests
15114lt_simple_compile_test_code="class foo {}\n"
15115
15116# Code to be used in simple link tests
15117lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15118
15119# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15120
15121# If no C compiler was specified, use CC.
15122LTCC=${LTCC-"$CC"}
15123
15124# Allow CC to be a program name with arguments.
15125compiler=$CC
15126
15127
15128# Allow CC to be a program name with arguments.
15129lt_save_CC="$CC"
15130CC=${GCJ-"gcj"}
15131compiler=$CC
15132compiler_GCJ=$CC
15133
15134# GCJ did not exist at the time GCC didn't implicitly link libc in.
15135archive_cmds_need_lc_GCJ=no
15136
Reid Spencer2b51a082004-08-04 00:34:49 +000015137## CAVEAT EMPTOR:
15138## There is no encapsulation within the following macros, do not change
15139## the running order or otherwise move them around unless you know exactly
15140## what you are doing...
John Criswell47fdd832003-07-14 16:52:07 +000015141
15142lt_prog_compiler_no_builtin_flag_GCJ=
15143
15144if test "$GCC" = yes; then
15145 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15146
15147 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15148echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15149if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15150 echo $ECHO_N "(cached) $ECHO_C" >&6
15151else
15152 lt_cv_prog_compiler_rtti_exceptions=no
15153 ac_outfile=conftest.$ac_objext
15154 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15155 lt_compiler_flag="-fno-rtti -fno-exceptions"
15156 # Insert the option either (1) after the last *FLAGS variable, or
15157 # (2) before a word containing "conftest.", or (3) at the end.
15158 # Note that $ac_compile itself does not contain backslashes and begins
15159 # with a dollar sign (not a hyphen), so the echo should work correctly.
15160 # The option is referenced via a variable to avoid confusing sed.
15161 lt_compile=`echo "$ac_compile" | $SED \
15162 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15164 -e 's:$: $lt_compiler_flag:'`
Reid Spencerde8c47f2004-08-29 19:35:28 +000015165 (eval echo "\"\$as_me:15165: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015166 (eval "$lt_compile" 2>conftest.err)
15167 ac_status=$?
15168 cat conftest.err >&5
Reid Spencerde8c47f2004-08-29 19:35:28 +000015169 echo "$as_me:15169: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015170 if (exit $ac_status) && test -s "$ac_outfile"; then
15171 # The compiler can only warn and ignore the option if not recognized
15172 # So say no if there are warnings
15173 if test ! -s conftest.err; then
15174 lt_cv_prog_compiler_rtti_exceptions=yes
15175 fi
15176 fi
15177 $rm conftest*
15178
15179fi
15180echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15181echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15182
15183if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15184 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15185else
15186 :
15187fi
15188
15189fi
15190
15191lt_prog_compiler_wl_GCJ=
15192lt_prog_compiler_pic_GCJ=
15193lt_prog_compiler_static_GCJ=
15194
15195echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15196echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15197
15198 if test "$GCC" = yes; then
15199 lt_prog_compiler_wl_GCJ='-Wl,'
15200 lt_prog_compiler_static_GCJ='-static'
15201
15202 case $host_os in
15203 aix*)
15204 # All AIX code is PIC.
15205 if test "$host_cpu" = ia64; then
15206 # AIX 5 now supports IA64 processor
15207 lt_prog_compiler_static_GCJ='-Bstatic'
15208 fi
15209 ;;
15210
15211 amigaos*)
15212 # FIXME: we need at least 68020 code to build shared libraries, but
15213 # adding the `-m68020' flag to GCC prevents building anything better,
15214 # like `-m68040'.
15215 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15216 ;;
15217
15218 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15219 # PIC is the default for these OSes.
15220 ;;
15221
15222 mingw* | pw32* | os2*)
15223 # This hack is so that the source file can tell whether it is being
15224 # built for inclusion in a dll (and should export symbols for example).
15225 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15226 ;;
15227
15228 darwin* | rhapsody*)
15229 # PIC is the default on this platform
15230 # Common symbols not allowed in MH_DYLIB files
15231 lt_prog_compiler_pic_GCJ='-fno-common'
15232 ;;
15233
15234 msdosdjgpp*)
15235 # Just because we use GCC doesn't mean we suddenly get shared libraries
15236 # on systems that don't support them.
15237 lt_prog_compiler_can_build_shared_GCJ=no
15238 enable_shared=no
15239 ;;
15240
15241 sysv4*MP*)
15242 if test -d /usr/nec; then
15243 lt_prog_compiler_pic_GCJ=-Kconform_pic
15244 fi
15245 ;;
15246
15247 hpux*)
15248 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15249 # not for PA HP-UX.
15250 case "$host_cpu" in
15251 hppa*64*|ia64*)
15252 # +Z the default
15253 ;;
15254 *)
15255 lt_prog_compiler_pic_GCJ='-fPIC'
15256 ;;
15257 esac
15258 ;;
15259
15260 *)
15261 lt_prog_compiler_pic_GCJ='-fPIC'
15262 ;;
15263 esac
15264 else
15265 # PORTME Check for flag to pass linker flags through the system compiler.
15266 case $host_os in
15267 aix*)
15268 lt_prog_compiler_wl_GCJ='-Wl,'
15269 if test "$host_cpu" = ia64; then
15270 # AIX 5 now supports IA64 processor
15271 lt_prog_compiler_static_GCJ='-Bstatic'
15272 else
15273 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15274 fi
15275 ;;
15276
15277 mingw* | pw32* | os2*)
15278 # This hack is so that the source file can tell whether it is being
15279 # built for inclusion in a dll (and should export symbols for example).
15280 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15281 ;;
15282
15283 hpux9* | hpux10* | hpux11*)
15284 lt_prog_compiler_wl_GCJ='-Wl,'
15285 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15286 # not for PA HP-UX.
15287 case "$host_cpu" in
15288 hppa*64*|ia64*)
15289 # +Z the default
15290 ;;
15291 *)
15292 lt_prog_compiler_pic_GCJ='+Z'
15293 ;;
15294 esac
15295 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15296 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15297 ;;
15298
15299 irix5* | irix6* | nonstopux*)
15300 lt_prog_compiler_wl_GCJ='-Wl,'
15301 # PIC (with -KPIC) is the default.
15302 lt_prog_compiler_static_GCJ='-non_shared'
15303 ;;
15304
15305 newsos6)
15306 lt_prog_compiler_pic_GCJ='-KPIC'
15307 lt_prog_compiler_static_GCJ='-Bstatic'
15308 ;;
15309
15310 linux*)
15311 case $CC in
15312 icc|ecc)
15313 lt_prog_compiler_wl_GCJ='-Wl,'
15314 lt_prog_compiler_pic_GCJ='-KPIC'
15315 lt_prog_compiler_static_GCJ='-static'
15316 ;;
15317 ccc)
15318 lt_prog_compiler_wl_GCJ='-Wl,'
15319 # All Alpha code is PIC.
15320 lt_prog_compiler_static_GCJ='-non_shared'
15321 ;;
15322 esac
15323 ;;
15324
15325 osf3* | osf4* | osf5*)
15326 lt_prog_compiler_wl_GCJ='-Wl,'
15327 # All OSF/1 code is PIC.
15328 lt_prog_compiler_static_GCJ='-non_shared'
15329 ;;
15330
15331 sco3.2v5*)
15332 lt_prog_compiler_pic_GCJ='-Kpic'
15333 lt_prog_compiler_static_GCJ='-dn'
15334 ;;
15335
15336 solaris*)
15337 lt_prog_compiler_wl_GCJ='-Wl,'
15338 lt_prog_compiler_pic_GCJ='-KPIC'
15339 lt_prog_compiler_static_GCJ='-Bstatic'
15340 ;;
15341
15342 sunos4*)
15343 lt_prog_compiler_wl_GCJ='-Qoption ld '
15344 lt_prog_compiler_pic_GCJ='-PIC'
15345 lt_prog_compiler_static_GCJ='-Bstatic'
15346 ;;
15347
15348 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15349 lt_prog_compiler_wl_GCJ='-Wl,'
15350 lt_prog_compiler_pic_GCJ='-KPIC'
15351 lt_prog_compiler_static_GCJ='-Bstatic'
15352 ;;
15353
15354 sysv4*MP*)
15355 if test -d /usr/nec ;then
15356 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15357 lt_prog_compiler_static_GCJ='-Bstatic'
15358 fi
15359 ;;
15360
15361 uts4*)
15362 lt_prog_compiler_pic_GCJ='-pic'
15363 lt_prog_compiler_static_GCJ='-Bstatic'
15364 ;;
15365
15366 *)
15367 lt_prog_compiler_can_build_shared_GCJ=no
15368 ;;
15369 esac
15370 fi
15371
15372echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15373echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15374
15375#
15376# Check to make sure the PIC flag actually works.
15377#
15378if test -n "$lt_prog_compiler_pic_GCJ"; then
15379 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15380echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15381if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15382 echo $ECHO_N "(cached) $ECHO_C" >&6
15383else
15384 lt_prog_compiler_pic_works_GCJ=no
15385 ac_outfile=conftest.$ac_objext
15386 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15387 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15388 # Insert the option either (1) after the last *FLAGS variable, or
15389 # (2) before a word containing "conftest.", or (3) at the end.
15390 # Note that $ac_compile itself does not contain backslashes and begins
15391 # with a dollar sign (not a hyphen), so the echo should work correctly.
15392 # The option is referenced via a variable to avoid confusing sed.
15393 lt_compile=`echo "$ac_compile" | $SED \
15394 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15396 -e 's:$: $lt_compiler_flag:'`
Reid Spencerde8c47f2004-08-29 19:35:28 +000015397 (eval echo "\"\$as_me:15397: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015398 (eval "$lt_compile" 2>conftest.err)
15399 ac_status=$?
15400 cat conftest.err >&5
Reid Spencerde8c47f2004-08-29 19:35:28 +000015401 echo "$as_me:15401: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015402 if (exit $ac_status) && test -s "$ac_outfile"; then
15403 # The compiler can only warn and ignore the option if not recognized
15404 # So say no if there are warnings
15405 if test ! -s conftest.err; then
15406 lt_prog_compiler_pic_works_GCJ=yes
15407 fi
15408 fi
15409 $rm conftest*
15410
15411fi
15412echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15413echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15414
15415if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15416 case $lt_prog_compiler_pic_GCJ in
15417 "" | " "*) ;;
15418 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15419 esac
15420else
15421 lt_prog_compiler_pic_GCJ=
15422 lt_prog_compiler_can_build_shared_GCJ=no
15423fi
15424
15425fi
15426case "$host_os" in
15427 # For platforms which do not support PIC, -DPIC is meaningless:
15428 *djgpp*)
15429 lt_prog_compiler_pic_GCJ=
15430 ;;
15431 *)
15432 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15433 ;;
15434esac
15435
15436echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15437echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15438if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15440else
15441 lt_cv_prog_compiler_c_o_GCJ=no
15442 $rm -r conftest 2>/dev/null
15443 mkdir conftest
15444 cd conftest
15445 mkdir out
15446 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15447
15448 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15449 # that will create temporary files in the current directory regardless of
15450 # the output directory. Thus, making CWD read-only will cause this test
15451 # to fail, enabling locking or at least warning the user not to do parallel
15452 # builds.
15453 chmod -w .
15454
15455 lt_compiler_flag="-o out/conftest2.$ac_objext"
15456 # Insert the option either (1) after the last *FLAGS variable, or
15457 # (2) before a word containing "conftest.", or (3) at the end.
15458 # Note that $ac_compile itself does not contain backslashes and begins
15459 # with a dollar sign (not a hyphen), so the echo should work correctly.
15460 lt_compile=`echo "$ac_compile" | $SED \
15461 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15463 -e 's:$: $lt_compiler_flag:'`
Reid Spencerde8c47f2004-08-29 19:35:28 +000015464 (eval echo "\"\$as_me:15464: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015465 (eval "$lt_compile" 2>out/conftest.err)
15466 ac_status=$?
15467 cat out/conftest.err >&5
Reid Spencerde8c47f2004-08-29 19:35:28 +000015468 echo "$as_me:15468: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015469 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15470 then
15471 # The compiler can only warn and ignore the option if not recognized
15472 # So say no if there are warnings
15473 if test ! -s out/conftest.err; then
15474 lt_cv_prog_compiler_c_o_GCJ=yes
15475 fi
15476 fi
15477 chmod u+w .
15478 $rm conftest* out/*
15479 rmdir out
15480 cd ..
15481 rmdir conftest
15482 $rm conftest*
15483
15484fi
15485echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15486echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15487
15488
15489hard_links="nottested"
15490if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15491 # do not overwrite the value of need_locks provided by the user
15492 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15493echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15494 hard_links=yes
15495 $rm conftest*
15496 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15497 touch conftest.a
15498 ln conftest.a conftest.b 2>&5 || hard_links=no
15499 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15500 echo "$as_me:$LINENO: result: $hard_links" >&5
15501echo "${ECHO_T}$hard_links" >&6
15502 if test "$hard_links" = no; then
15503 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15504echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15505 need_locks=warn
15506 fi
15507else
15508 need_locks=no
15509fi
15510
15511echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15512echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15513
15514 runpath_var=
15515 allow_undefined_flag_GCJ=
15516 enable_shared_with_static_runtimes_GCJ=no
15517 archive_cmds_GCJ=
15518 archive_expsym_cmds_GCJ=
15519 old_archive_From_new_cmds_GCJ=
15520 old_archive_from_expsyms_cmds_GCJ=
15521 export_dynamic_flag_spec_GCJ=
15522 whole_archive_flag_spec_GCJ=
15523 thread_safe_flag_spec_GCJ=
15524 hardcode_libdir_flag_spec_GCJ=
15525 hardcode_libdir_flag_spec_ld_GCJ=
15526 hardcode_libdir_separator_GCJ=
15527 hardcode_direct_GCJ=no
15528 hardcode_minus_L_GCJ=no
15529 hardcode_shlibpath_var_GCJ=unsupported
15530 link_all_deplibs_GCJ=unknown
15531 hardcode_automatic_GCJ=no
15532 module_cmds_GCJ=
15533 module_expsym_cmds_GCJ=
15534 always_export_symbols_GCJ=no
15535 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15536 # include_expsyms should be a list of space-separated symbols to be *always*
15537 # included in the symbol list
15538 include_expsyms_GCJ=
15539 # exclude_expsyms can be an extended regexp of symbols to exclude
15540 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15541 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15542 # as well as any symbol that contains `d'.
15543 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15544 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15545 # platforms (ab)use it in PIC code, but their linkers get confused if
15546 # the symbol is explicitly referenced. Since portable code cannot
15547 # rely on this symbol name, it's probably fine to never include it in
15548 # preloaded symbol tables.
15549 extract_expsyms_cmds=
15550
15551 case $host_os in
15552 cygwin* | mingw* | pw32*)
15553 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15554 # When not using gcc, we currently assume that we are using
15555 # Microsoft Visual C++.
15556 if test "$GCC" != yes; then
15557 with_gnu_ld=no
15558 fi
15559 ;;
15560 openbsd*)
15561 with_gnu_ld=no
15562 ;;
15563 esac
15564
15565 ld_shlibs_GCJ=yes
15566 if test "$with_gnu_ld" = yes; then
15567 # If archive_cmds runs LD, not CC, wlarc should be empty
15568 wlarc='${wl}'
15569
15570 # See if GNU ld supports shared libraries.
15571 case $host_os in
15572 aix3* | aix4* | aix5*)
15573 # On AIX/PPC, the GNU linker is very broken
15574 if test "$host_cpu" != ia64; then
15575 ld_shlibs_GCJ=no
15576 cat <<EOF 1>&2
15577
15578*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15579*** to be unable to reliably create shared libraries on AIX.
15580*** Therefore, libtool is disabling shared libraries support. If you
15581*** really care for shared libraries, you may want to modify your PATH
15582*** so that a non-GNU linker is found, and then restart.
15583
15584EOF
15585 fi
15586 ;;
15587
15588 amigaos*)
15589 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)'
15590 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15591 hardcode_minus_L_GCJ=yes
15592
15593 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15594 # that the semantics of dynamic libraries on AmigaOS, at least up
15595 # to version 4, is to share data among multiple programs linked
15596 # with the same dynamic library. Since this doesn't match the
15597 # behavior of shared libraries on other platforms, we can't use
15598 # them.
15599 ld_shlibs_GCJ=no
15600 ;;
15601
15602 beos*)
15603 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15604 allow_undefined_flag_GCJ=unsupported
15605 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15606 # support --undefined. This deserves some investigation. FIXME
15607 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15608 else
15609 ld_shlibs_GCJ=no
15610 fi
15611 ;;
15612
15613 cygwin* | mingw* | pw32*)
15614 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15615 # as there is no search path for DLLs.
15616 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15617 allow_undefined_flag_GCJ=unsupported
15618 always_export_symbols_GCJ=no
15619 enable_shared_with_static_runtimes_GCJ=yes
15620 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15621
15622 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15623 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15624 # If the export-symbols file already is a .def file (1st line
15625 # is EXPORTS), use it as is; otherwise, prepend...
15626 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15627 cp $export_symbols $output_objdir/$soname.def;
15628 else
15629 echo EXPORTS > $output_objdir/$soname.def;
15630 cat $export_symbols >> $output_objdir/$soname.def;
15631 fi~
15632 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15633 else
15634 ld_shlibs=no
15635 fi
15636 ;;
15637
15638 netbsd*)
15639 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15640 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15641 wlarc=
15642 else
15643 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15644 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15645 fi
15646 ;;
15647
15648 solaris* | sysv5*)
15649 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15650 ld_shlibs_GCJ=no
15651 cat <<EOF 1>&2
15652
15653*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15654*** create shared libraries on Solaris systems. Therefore, libtool
15655*** is disabling shared libraries support. We urge you to upgrade GNU
15656*** binutils to release 2.9.1 or newer. Another option is to modify
15657*** your PATH or compiler configuration so that the native linker is
15658*** used, and then restart.
15659
15660EOF
15661 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15662 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15663 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15664 else
15665 ld_shlibs_GCJ=no
15666 fi
15667 ;;
15668
15669 sunos4*)
15670 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15671 wlarc=
15672 hardcode_direct_GCJ=yes
15673 hardcode_shlibpath_var_GCJ=no
15674 ;;
15675
15676 *)
15677 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15678 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15679 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15680 else
15681 ld_shlibs_GCJ=no
15682 fi
15683 ;;
15684 esac
15685
15686 if test "$ld_shlibs_GCJ" = yes; then
15687 runpath_var=LD_RUN_PATH
15688 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15689 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15690 # ancient GNU ld didn't support --whole-archive et. al.
15691 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15692 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15693 else
15694 whole_archive_flag_spec_GCJ=
15695 fi
15696 fi
15697 else
15698 # PORTME fill in a description of your system's linker (not GNU ld)
15699 case $host_os in
15700 aix3*)
15701 allow_undefined_flag_GCJ=unsupported
15702 always_export_symbols_GCJ=yes
15703 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'
15704 # Note: this linker hardcodes the directories in LIBPATH if there
15705 # are no directories specified by -L.
15706 hardcode_minus_L_GCJ=yes
15707 if test "$GCC" = yes && test -z "$link_static_flag"; then
15708 # Neither direct hardcoding nor static linking is supported with a
15709 # broken collect2.
15710 hardcode_direct_GCJ=unsupported
15711 fi
15712 ;;
15713
15714 aix4* | aix5*)
15715 if test "$host_cpu" = ia64; then
15716 # On IA64, the linker does run time linking by default, so we don't
15717 # have to do anything special.
15718 aix_use_runtimelinking=no
15719 exp_sym_flag='-Bexport'
15720 no_entry_flag=""
15721 else
15722 # If we're using GNU nm, then we don't want the "-C" option.
15723 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15724 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15725 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'
15726 else
15727 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'
15728 fi
15729 aix_use_runtimelinking=no
15730
15731 # Test if we are trying to use run time linking or normal
15732 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15733 # need to do runtime linking.
15734 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15735 for ld_flag in $LDFLAGS; do
15736 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15737 aix_use_runtimelinking=yes
15738 break
15739 fi
15740 done
15741 esac
15742
15743 exp_sym_flag='-bexport'
15744 no_entry_flag='-bnoentry'
15745 fi
15746
15747 # When large executables or shared objects are built, AIX ld can
15748 # have problems creating the table of contents. If linking a library
15749 # or program results in "error TOC overflow" add -mminimal-toc to
15750 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15751 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15752
15753 archive_cmds_GCJ=''
15754 hardcode_direct_GCJ=yes
15755 hardcode_libdir_separator_GCJ=':'
15756 link_all_deplibs_GCJ=yes
15757
15758 if test "$GCC" = yes; then
15759 case $host_os in aix4.012|aix4.012.*)
15760 # We only want to do this on AIX 4.2 and lower, the check
15761 # below for broken collect2 doesn't work under 4.3+
15762 collect2name=`${CC} -print-prog-name=collect2`
15763 if test -f "$collect2name" && \
15764 strings "$collect2name" | grep resolve_lib_name >/dev/null
15765 then
15766 # We have reworked collect2
15767 hardcode_direct_GCJ=yes
15768 else
15769 # We have old collect2
15770 hardcode_direct_GCJ=unsupported
15771 # It fails to find uninstalled libraries when the uninstalled
15772 # path is not listed in the libpath. Setting hardcode_minus_L
15773 # to unsupported forces relinking
15774 hardcode_minus_L_GCJ=yes
15775 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15776 hardcode_libdir_separator_GCJ=
15777 fi
15778 esac
15779 shared_flag='-shared'
15780 else
15781 # not using gcc
15782 if test "$host_cpu" = ia64; then
15783 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15784 # chokes on -Wl,-G. The following line is correct:
15785 shared_flag='-G'
15786 else
15787 if test "$aix_use_runtimelinking" = yes; then
15788 shared_flag='${wl}-G'
15789 else
15790 shared_flag='${wl}-bM:SRE'
15791 fi
15792 fi
15793 fi
15794
15795 # It seems that -bexpall does not export symbols beginning with
15796 # underscore (_), so it is better to generate a list of symbols to export.
15797 always_export_symbols_GCJ=yes
15798 if test "$aix_use_runtimelinking" = yes; then
15799 # Warning - without using the other runtime loading flags (-brtl),
15800 # -berok will link without error, but may produce a broken library.
15801 allow_undefined_flag_GCJ='-berok'
15802 # Determine the default libpath from the value encoded in an empty executable.
15803 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015804/* confdefs.h. */
15805_ACEOF
15806cat confdefs.h >>conftest.$ac_ext
15807cat >>conftest.$ac_ext <<_ACEOF
15808/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015809
John Criswell47fdd832003-07-14 16:52:07 +000015810int
15811main ()
15812{
15813
15814 ;
15815 return 0;
15816}
15817_ACEOF
15818rm -f conftest.$ac_objext conftest$ac_exeext
15819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000015820 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015821 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000015822 grep -v '^ *+' conftest.er1 >conftest.err
15823 rm -f conftest.er1
15824 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000015827 { ac_try='test -z "$ac_c_werror_flag"
15828 || test ! -s conftest.err'
15829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830 (eval $ac_try) 2>&5
15831 ac_status=$?
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; } &&
15834 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836 (eval $ac_try) 2>&5
15837 ac_status=$?
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); }; }; then
15840
15841aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15842}'`
15843# Check for a 64-bit object if we didn't find anything.
15844if 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; }
15845}'`; fi
15846else
15847 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015848sed 's/^/| /' conftest.$ac_ext >&5
15849
John Criswell47fdd832003-07-14 16:52:07 +000015850fi
Reid Spencer2b51a082004-08-04 00:34:49 +000015851rm -f conftest.err conftest.$ac_objext \
15852 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015853if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15854
15855 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15856 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"
15857 else
15858 if test "$host_cpu" = ia64; then
15859 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15860 allow_undefined_flag_GCJ="-z nodefs"
15861 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"
15862 else
15863 # Determine the default libpath from the value encoded in an empty executable.
15864 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015865/* confdefs.h. */
15866_ACEOF
15867cat confdefs.h >>conftest.$ac_ext
15868cat >>conftest.$ac_ext <<_ACEOF
15869/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015870
John Criswell47fdd832003-07-14 16:52:07 +000015871int
15872main ()
15873{
15874
15875 ;
15876 return 0;
15877}
15878_ACEOF
15879rm -f conftest.$ac_objext conftest$ac_exeext
15880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000015881 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015882 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000015883 grep -v '^ *+' conftest.er1 >conftest.err
15884 rm -f conftest.er1
15885 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000015888 { ac_try='test -z "$ac_c_werror_flag"
15889 || test ! -s conftest.err'
15890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891 (eval $ac_try) 2>&5
15892 ac_status=$?
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; } &&
15895 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897 (eval $ac_try) 2>&5
15898 ac_status=$?
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }; }; then
15901
15902aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15903}'`
15904# Check for a 64-bit object if we didn't find anything.
15905if 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; }
15906}'`; fi
15907else
15908 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015909sed 's/^/| /' conftest.$ac_ext >&5
15910
John Criswell47fdd832003-07-14 16:52:07 +000015911fi
Reid Spencer2b51a082004-08-04 00:34:49 +000015912rm -f conftest.err conftest.$ac_objext \
15913 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015914if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15915
15916 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15917 # Warning - without using the other run time loading flags,
15918 # -berok will link without error, but may produce a broken library.
15919 no_undefined_flag_GCJ=' ${wl}-bernotok'
15920 allow_undefined_flag_GCJ=' ${wl}-berok'
15921 # -bexpall does not export symbols beginning with underscore (_)
15922 always_export_symbols_GCJ=yes
15923 # Exported symbols can be pulled into shared objects from archives
15924 whole_archive_flag_spec_GCJ=' '
15925 archive_cmds_need_lc_GCJ=yes
15926 # This is similar to how AIX traditionally builds it's shared libraries.
15927 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'
15928 fi
15929 fi
15930 ;;
15931
15932 amigaos*)
15933 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)'
15934 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15935 hardcode_minus_L_GCJ=yes
15936 # see comment about different semantics on the GNU ld section
15937 ld_shlibs_GCJ=no
15938 ;;
15939
15940 bsdi4*)
15941 export_dynamic_flag_spec_GCJ=-rdynamic
15942 ;;
15943
15944 cygwin* | mingw* | pw32*)
15945 # When not using gcc, we currently assume that we are using
15946 # Microsoft Visual C++.
15947 # hardcode_libdir_flag_spec is actually meaningless, as there is
15948 # no search path for DLLs.
15949 hardcode_libdir_flag_spec_GCJ=' '
15950 allow_undefined_flag_GCJ=unsupported
15951 # Tell ltmain to make .lib files, not .a files.
15952 libext=lib
15953 # Tell ltmain to make .dll files, not .so files.
15954 shrext=".dll"
15955 # FIXME: Setting linknames here is a bad hack.
15956 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15957 # The linker will automatically build a .lib file if we build a DLL.
15958 old_archive_From_new_cmds_GCJ='true'
15959 # FIXME: Should let the user specify the lib program.
15960 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15961 fix_srcfile_path='`cygpath -w "$srcfile"`'
15962 enable_shared_with_static_runtimes_GCJ=yes
15963 ;;
15964
15965 darwin* | rhapsody*)
15966 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15967 archive_cmds_need_lc_GCJ=no
15968 case "$host_os" in
15969 rhapsody* | darwin1.[012])
15970 allow_undefined_flag_GCJ='-undefined suppress'
15971 ;;
15972 *) # Darwin 1.3 on
15973 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15974 ;;
15975 esac
15976 # FIXME: Relying on posixy $() will cause problems for
15977 # cross-compilation, but unfortunately the echo tests do not
15978 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15979 # `"' quotes if we put them in here... so don't!
15980 lt_int_apple_cc_single_mod=no
15981 output_verbose_link_cmd='echo'
15982 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15983 lt_int_apple_cc_single_mod=yes
15984 fi
15985 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15986 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15987 else
15988 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15989 fi
15990 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15991 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15992 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15993 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15994 else
15995 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15996 fi
15997 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15998 hardcode_direct_GCJ=no
15999 hardcode_automatic_GCJ=yes
16000 hardcode_shlibpath_var_GCJ=unsupported
16001 whole_archive_flag_spec_GCJ='-all_load $convenience'
16002 link_all_deplibs_GCJ=yes
16003 fi
16004 ;;
16005
16006 dgux*)
16007 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16008 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16009 hardcode_shlibpath_var_GCJ=no
16010 ;;
16011
16012 freebsd1*)
16013 ld_shlibs_GCJ=no
16014 ;;
16015
16016 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16017 # support. Future versions do this automatically, but an explicit c++rt0.o
16018 # does not break anything, and helps significantly (at the cost of a little
16019 # extra space).
16020 freebsd2.2*)
16021 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16022 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16023 hardcode_direct_GCJ=yes
16024 hardcode_shlibpath_var_GCJ=no
16025 ;;
16026
16027 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16028 freebsd2*)
16029 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16030 hardcode_direct_GCJ=yes
16031 hardcode_minus_L_GCJ=yes
16032 hardcode_shlibpath_var_GCJ=no
16033 ;;
16034
16035 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16036 freebsd*)
16037 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16038 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16039 hardcode_direct_GCJ=yes
16040 hardcode_shlibpath_var_GCJ=no
16041 ;;
16042
16043 hpux9*)
16044 if test "$GCC" = yes; then
16045 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'
16046 else
16047 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'
16048 fi
16049 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16050 hardcode_libdir_separator_GCJ=:
16051 hardcode_direct_GCJ=yes
16052
16053 # hardcode_minus_L: Not really in the search PATH,
16054 # but as the default location of the library.
16055 hardcode_minus_L_GCJ=yes
16056 export_dynamic_flag_spec_GCJ='${wl}-E'
16057 ;;
16058
16059 hpux10* | hpux11*)
16060 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16061 case "$host_cpu" in
16062 hppa*64*|ia64*)
16063 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16064 ;;
16065 *)
16066 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16067 ;;
16068 esac
16069 else
16070 case "$host_cpu" in
16071 hppa*64*|ia64*)
16072 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16073 ;;
16074 *)
16075 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16076 ;;
16077 esac
16078 fi
16079 if test "$with_gnu_ld" = no; then
16080 case "$host_cpu" in
16081 hppa*64*)
16082 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16083 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16084 hardcode_libdir_separator_GCJ=:
16085 hardcode_direct_GCJ=no
16086 hardcode_shlibpath_var_GCJ=no
16087 ;;
16088 ia64*)
16089 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16090 hardcode_direct_GCJ=no
16091 hardcode_shlibpath_var_GCJ=no
16092
16093 # hardcode_minus_L: Not really in the search PATH,
16094 # but as the default location of the library.
16095 hardcode_minus_L_GCJ=yes
16096 ;;
16097 *)
16098 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16099 hardcode_libdir_separator_GCJ=:
16100 hardcode_direct_GCJ=yes
16101 export_dynamic_flag_spec_GCJ='${wl}-E'
16102
16103 # hardcode_minus_L: Not really in the search PATH,
16104 # but as the default location of the library.
16105 hardcode_minus_L_GCJ=yes
16106 ;;
16107 esac
16108 fi
16109 ;;
16110
16111 irix5* | irix6* | nonstopux*)
16112 if test "$GCC" = yes; then
16113 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'
16114 else
16115 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'
16116 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16117 fi
16118 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16119 hardcode_libdir_separator_GCJ=:
16120 link_all_deplibs_GCJ=yes
16121 ;;
16122
16123 netbsd*)
16124 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16125 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16126 else
16127 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16128 fi
16129 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16130 hardcode_direct_GCJ=yes
16131 hardcode_shlibpath_var_GCJ=no
16132 ;;
16133
16134 newsos6)
16135 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16136 hardcode_direct_GCJ=yes
16137 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16138 hardcode_libdir_separator_GCJ=:
16139 hardcode_shlibpath_var_GCJ=no
16140 ;;
16141
16142 openbsd*)
16143 hardcode_direct_GCJ=yes
16144 hardcode_shlibpath_var_GCJ=no
16145 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16146 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16147 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16148 export_dynamic_flag_spec_GCJ='${wl}-E'
16149 else
16150 case $host_os in
16151 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16152 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16153 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16154 ;;
16155 *)
16156 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16157 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16158 ;;
16159 esac
16160 fi
16161 ;;
16162
16163 os2*)
16164 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16165 hardcode_minus_L_GCJ=yes
16166 allow_undefined_flag_GCJ=unsupported
16167 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'
16168 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16169 ;;
16170
16171 osf3*)
16172 if test "$GCC" = yes; then
16173 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16174 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'
16175 else
16176 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16177 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'
16178 fi
16179 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16180 hardcode_libdir_separator_GCJ=:
16181 ;;
16182
16183 osf4* | osf5*) # as osf3* with the addition of -msym flag
16184 if test "$GCC" = yes; then
16185 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16186 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'
16187 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16188 else
16189 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16190 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'
16191 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~
16192 $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'
16193
16194 # Both c and cxx compiler support -rpath directly
16195 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16196 fi
16197 hardcode_libdir_separator_GCJ=:
16198 ;;
16199
16200 sco3.2v5*)
16201 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16202 hardcode_shlibpath_var_GCJ=no
16203 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16204 runpath_var=LD_RUN_PATH
16205 hardcode_runpath_var=yes
16206 ;;
16207
16208 solaris*)
16209 no_undefined_flag_GCJ=' -z text'
16210 if test "$GCC" = yes; then
16211 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16212 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16213 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16214 else
16215 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16216 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16217 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16218 fi
16219 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16220 hardcode_shlibpath_var_GCJ=no
16221 case $host_os in
16222 solaris2.[0-5] | solaris2.[0-5].*) ;;
16223 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16224 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16225 esac
16226 link_all_deplibs_GCJ=yes
16227 ;;
16228
16229 sunos4*)
16230 if test "x$host_vendor" = xsequent; then
16231 # Use $CC to link under sequent, because it throws in some extra .o
16232 # files that make .init and .fini sections work.
16233 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16234 else
16235 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16236 fi
16237 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16238 hardcode_direct_GCJ=yes
16239 hardcode_minus_L_GCJ=yes
16240 hardcode_shlibpath_var_GCJ=no
16241 ;;
16242
16243 sysv4)
16244 case $host_vendor in
16245 sni)
16246 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16247 hardcode_direct_GCJ=yes # is this really true???
16248 ;;
16249 siemens)
16250 ## LD is ld it makes a PLAMLIB
16251 ## CC just makes a GrossModule.
16252 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16253 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16254 hardcode_direct_GCJ=no
16255 ;;
16256 motorola)
16257 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16258 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16259 ;;
16260 esac
16261 runpath_var='LD_RUN_PATH'
16262 hardcode_shlibpath_var_GCJ=no
16263 ;;
16264
16265 sysv4.3*)
16266 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16267 hardcode_shlibpath_var_GCJ=no
16268 export_dynamic_flag_spec_GCJ='-Bexport'
16269 ;;
16270
16271 sysv4*MP*)
16272 if test -d /usr/nec; then
16273 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16274 hardcode_shlibpath_var_GCJ=no
16275 runpath_var=LD_RUN_PATH
16276 hardcode_runpath_var=yes
16277 ld_shlibs_GCJ=yes
16278 fi
16279 ;;
16280
16281 sysv4.2uw2*)
16282 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16283 hardcode_direct_GCJ=yes
16284 hardcode_minus_L_GCJ=no
16285 hardcode_shlibpath_var_GCJ=no
16286 hardcode_runpath_var=yes
16287 runpath_var=LD_RUN_PATH
16288 ;;
16289
16290 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16291 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16292 if test "$GCC" = yes; then
16293 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16294 else
16295 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16296 fi
16297 runpath_var='LD_RUN_PATH'
16298 hardcode_shlibpath_var_GCJ=no
16299 ;;
16300
16301 sysv5*)
16302 no_undefined_flag_GCJ=' -z text'
16303 # $CC -shared without GNU ld will not create a library from C++
16304 # object files and a static libstdc++, better avoid it by now
16305 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16306 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16307 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16308 hardcode_libdir_flag_spec_GCJ=
16309 hardcode_shlibpath_var_GCJ=no
16310 runpath_var='LD_RUN_PATH'
16311 ;;
16312
16313 uts4*)
16314 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16315 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16316 hardcode_shlibpath_var_GCJ=no
16317 ;;
16318
16319 *)
16320 ld_shlibs_GCJ=no
16321 ;;
16322 esac
16323 fi
16324
16325echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16326echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16327test "$ld_shlibs_GCJ" = no && can_build_shared=no
16328
16329variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16330if test "$GCC" = yes; then
16331 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16332fi
16333
16334#
16335# Do we need to explicitly link libc?
16336#
16337case "x$archive_cmds_need_lc_GCJ" in
16338x|xyes)
16339 # Assume -lc should be added
16340 archive_cmds_need_lc_GCJ=yes
16341
16342 if test "$enable_shared" = yes && test "$GCC" = yes; then
16343 case $archive_cmds_GCJ in
16344 *'~'*)
16345 # FIXME: we may have to deal with multi-command sequences.
16346 ;;
16347 '$CC '*)
16348 # Test whether the compiler implicitly links with -lc since on some
16349 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16350 # to ld, don't add -lc before -lgcc.
16351 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16352echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16353 $rm conftest*
16354 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16355
16356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16357 (eval $ac_compile) 2>&5
16358 ac_status=$?
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); } 2>conftest.err; then
16361 soname=conftest
16362 lib=conftest
16363 libobjs=conftest.$ac_objext
16364 deplibs=
16365 wl=$lt_prog_compiler_wl_GCJ
16366 compiler_flags=-v
16367 linker_flags=-v
16368 verstring=
16369 output_objdir=.
16370 libname=conftest
16371 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16372 allow_undefined_flag_GCJ=
16373 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16374 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16375 ac_status=$?
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); }
16378 then
16379 archive_cmds_need_lc_GCJ=no
16380 else
16381 archive_cmds_need_lc_GCJ=yes
16382 fi
16383 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16384 else
16385 cat conftest.err 1>&5
16386 fi
16387 $rm conftest*
16388 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16389echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16390 ;;
16391 esac
16392 fi
16393 ;;
16394esac
16395
16396echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16397echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16398hardcode_action_GCJ=
16399if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16400 test -n "$runpath_var GCJ" || \
16401 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16402
16403 # We can hardcode non-existant directories.
16404 if test "$hardcode_direct_GCJ" != no &&
16405 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16406 # have to relink, otherwise we might link with an installed library
16407 # when we should be linking with a yet-to-be-installed one
16408 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16409 test "$hardcode_minus_L_GCJ" != no; then
16410 # Linking always hardcodes the temporary library directory.
16411 hardcode_action_GCJ=relink
16412 else
16413 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16414 hardcode_action_GCJ=immediate
16415 fi
16416else
16417 # We cannot hardcode anything, or else we can only hardcode existing
16418 # directories.
16419 hardcode_action_GCJ=unsupported
16420fi
16421echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16422echo "${ECHO_T}$hardcode_action_GCJ" >&6
16423
16424if test "$hardcode_action_GCJ" = relink; then
16425 # Fast installation is not supported
16426 enable_fast_install=no
16427elif test "$shlibpath_overrides_runpath" = yes ||
16428 test "$enable_shared" = no; then
16429 # Fast installation is not necessary
16430 enable_fast_install=needless
16431fi
16432
16433striplib=
16434old_striplib=
16435echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16436echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16437if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16438 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16439 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16440 echo "$as_me:$LINENO: result: yes" >&5
16441echo "${ECHO_T}yes" >&6
16442else
16443# FIXME - insert some real tests, host_os isn't really good enough
16444 case $host_os in
16445 darwin*)
16446 if test -n "$STRIP" ; then
16447 striplib="$STRIP -x"
16448 echo "$as_me:$LINENO: result: yes" >&5
16449echo "${ECHO_T}yes" >&6
16450 else
16451 echo "$as_me:$LINENO: result: no" >&5
16452echo "${ECHO_T}no" >&6
16453fi
16454 ;;
16455 *)
16456 echo "$as_me:$LINENO: result: no" >&5
16457echo "${ECHO_T}no" >&6
16458 ;;
16459 esac
16460fi
16461
16462echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16463echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16464library_names_spec=
16465libname_spec='lib$name'
16466soname_spec=
16467shrext=".so"
16468postinstall_cmds=
16469postuninstall_cmds=
16470finish_cmds=
16471finish_eval=
16472shlibpath_var=
16473shlibpath_overrides_runpath=unknown
16474version_type=none
16475dynamic_linker="$host_os ld.so"
16476sys_lib_dlsearch_path_spec="/lib /usr/lib"
16477if test "$GCC" = yes; then
16478 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16479 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16480 # if the path contains ";" then we assume it to be the separator
16481 # otherwise default to the standard path separator (i.e. ":") - it is
16482 # assumed that no part of a normal pathname contains ";" but that should
16483 # okay in the real world where ";" in dirpaths is itself problematic.
16484 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16485 else
16486 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16487 fi
16488else
16489 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16490fi
16491need_lib_prefix=unknown
16492hardcode_into_libs=no
16493
16494# when you set need_version to no, make sure it does not cause -set_version
16495# flags to be left without arguments
16496need_version=unknown
16497
16498case $host_os in
16499aix3*)
16500 version_type=linux
16501 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16502 shlibpath_var=LIBPATH
16503
16504 # AIX 3 has no versioning support, so we append a major version to the name.
16505 soname_spec='${libname}${release}${shared_ext}$major'
16506 ;;
16507
16508aix4* | aix5*)
16509 version_type=linux
16510 need_lib_prefix=no
16511 need_version=no
16512 hardcode_into_libs=yes
16513 if test "$host_cpu" = ia64; then
16514 # AIX 5 supports IA64
16515 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16516 shlibpath_var=LD_LIBRARY_PATH
16517 else
16518 # With GCC up to 2.95.x, collect2 would create an import file
16519 # for dependence libraries. The import file would start with
16520 # the line `#! .'. This would cause the generated library to
16521 # depend on `.', always an invalid library. This was fixed in
16522 # development snapshots of GCC prior to 3.0.
16523 case $host_os in
16524 aix4 | aix4.[01] | aix4.[01].*)
16525 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16526 echo ' yes '
16527 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16528 :
16529 else
16530 can_build_shared=no
16531 fi
16532 ;;
16533 esac
16534 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16535 # soname into executable. Probably we can add versioning support to
16536 # collect2, so additional links can be useful in future.
16537 if test "$aix_use_runtimelinking" = yes; then
16538 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16539 # instead of lib<name>.a to let people know that these are not
16540 # typical AIX shared libraries.
16541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16542 else
16543 # We preserve .a as extension for shared libraries through AIX4.2
16544 # and later when we are not doing run time linking.
16545 library_names_spec='${libname}${release}.a $libname.a'
16546 soname_spec='${libname}${release}${shared_ext}$major'
16547 fi
16548 shlibpath_var=LIBPATH
16549 fi
16550 ;;
16551
16552amigaos*)
16553 library_names_spec='$libname.ixlibrary $libname.a'
16554 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16555 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'
16556 ;;
16557
16558beos*)
16559 library_names_spec='${libname}${shared_ext}'
16560 dynamic_linker="$host_os ld.so"
16561 shlibpath_var=LIBRARY_PATH
16562 ;;
16563
16564bsdi4*)
16565 version_type=linux
16566 need_version=no
16567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16568 soname_spec='${libname}${release}${shared_ext}$major'
16569 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16570 shlibpath_var=LD_LIBRARY_PATH
16571 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16572 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16573 # the default ld.so.conf also contains /usr/contrib/lib and
16574 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16575 # libtool to hard-code these into programs
16576 ;;
16577
16578cygwin* | mingw* | pw32*)
16579 version_type=windows
16580 shrext=".dll"
16581 need_version=no
16582 need_lib_prefix=no
16583
16584 case $GCC,$host_os in
16585 yes,cygwin* | yes,mingw* | yes,pw32*)
16586 library_names_spec='$libname.dll.a'
16587 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16588 postinstall_cmds='base_file=`basename \${file}`~
16589 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16590 dldir=$destdir/`dirname \$dlpath`~
16591 test -d \$dldir || mkdir -p \$dldir~
16592 $install_prog $dir/$dlname \$dldir/$dlname'
16593 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16594 dlpath=$dir/\$dldll~
16595 $rm \$dlpath'
16596 shlibpath_overrides_runpath=yes
16597
16598 case $host_os in
16599 cygwin*)
16600 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16601 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16602 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16603 ;;
16604 mingw*)
16605 # MinGW DLLs use traditional 'lib' prefix
16606 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16607 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16608 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16609 # It is most probably a Windows format PATH printed by
16610 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16611 # path with ; separators, and with drive letters. We can handle the
16612 # drive letters (cygwin fileutils understands them), so leave them,
16613 # especially as we might pass files found there to a mingw objdump,
16614 # which wouldn't understand a cygwinified path. Ahh.
16615 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16616 else
16617 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16618 fi
16619 ;;
16620 pw32*)
16621 # pw32 DLLs use 'pw' prefix rather than 'lib'
16622 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16623 ;;
16624 esac
16625 ;;
16626
16627 *)
16628 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16629 ;;
16630 esac
16631 dynamic_linker='Win32 ld.exe'
16632 # FIXME: first we should search . and the directory the executable is in
16633 shlibpath_var=PATH
16634 ;;
16635
16636darwin* | rhapsody*)
16637 dynamic_linker="$host_os dyld"
16638 version_type=darwin
16639 need_lib_prefix=no
16640 need_version=no
16641 # FIXME: Relying on posixy $() will cause problems for
16642 # cross-compilation, but unfortunately the echo tests do not
16643 # yet detect zsh echo's removal of \ escapes.
16644 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16645 soname_spec='${libname}${release}${major}$shared_ext'
16646 shlibpath_overrides_runpath=yes
16647 shlibpath_var=DYLD_LIBRARY_PATH
16648 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16649 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16650 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16651 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"`
16652 fi
16653 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16654 ;;
16655
16656dgux*)
16657 version_type=linux
16658 need_lib_prefix=no
16659 need_version=no
16660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16661 soname_spec='${libname}${release}${shared_ext}$major'
16662 shlibpath_var=LD_LIBRARY_PATH
16663 ;;
16664
16665freebsd1*)
16666 dynamic_linker=no
16667 ;;
16668
16669freebsd*)
16670 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16671 version_type=freebsd-$objformat
16672 case $version_type in
16673 freebsd-elf*)
16674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16675 need_version=no
16676 need_lib_prefix=no
16677 ;;
16678 freebsd-*)
16679 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16680 need_version=yes
16681 ;;
16682 esac
16683 shlibpath_var=LD_LIBRARY_PATH
16684 case $host_os in
16685 freebsd2*)
16686 shlibpath_overrides_runpath=yes
16687 ;;
16688 freebsd3.01* | freebsdelf3.01*)
16689 shlibpath_overrides_runpath=yes
16690 hardcode_into_libs=yes
16691 ;;
16692 *) # from 3.2 on
16693 shlibpath_overrides_runpath=no
16694 hardcode_into_libs=yes
16695 ;;
16696 esac
16697 ;;
16698
16699gnu*)
16700 version_type=linux
16701 need_lib_prefix=no
16702 need_version=no
16703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16704 soname_spec='${libname}${release}${shared_ext}$major'
16705 shlibpath_var=LD_LIBRARY_PATH
16706 hardcode_into_libs=yes
16707 ;;
16708
16709hpux9* | hpux10* | hpux11*)
16710 # Give a soname corresponding to the major version so that dld.sl refuses to
16711 # link against other versions.
16712 version_type=sunos
16713 need_lib_prefix=no
16714 need_version=no
16715 case "$host_cpu" in
16716 ia64*)
16717 shrext='.so'
16718 hardcode_into_libs=yes
16719 dynamic_linker="$host_os dld.so"
16720 shlibpath_var=LD_LIBRARY_PATH
16721 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16723 soname_spec='${libname}${release}${shared_ext}$major'
16724 if test "X$HPUX_IA64_MODE" = X32; then
16725 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16726 else
16727 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16728 fi
16729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16730 ;;
16731 hppa*64*)
16732 shrext='.sl'
16733 hardcode_into_libs=yes
16734 dynamic_linker="$host_os dld.sl"
16735 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16736 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16738 soname_spec='${libname}${release}${shared_ext}$major'
16739 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16740 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16741 ;;
16742 *)
16743 shrext='.sl'
16744 dynamic_linker="$host_os dld.sl"
16745 shlibpath_var=SHLIB_PATH
16746 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16748 soname_spec='${libname}${release}${shared_ext}$major'
16749 ;;
16750 esac
16751 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16752 postinstall_cmds='chmod 555 $lib'
16753 ;;
16754
16755irix5* | irix6* | nonstopux*)
16756 case $host_os in
16757 nonstopux*) version_type=nonstopux ;;
16758 *)
16759 if test "$lt_cv_prog_gnu_ld" = yes; then
16760 version_type=linux
16761 else
16762 version_type=irix
16763 fi ;;
16764 esac
16765 need_lib_prefix=no
16766 need_version=no
16767 soname_spec='${libname}${release}${shared_ext}$major'
16768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16769 case $host_os in
16770 irix5* | nonstopux*)
16771 libsuff= shlibsuff=
16772 ;;
16773 *)
16774 case $LD in # libtool.m4 will add one of these switches to LD
16775 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16776 libsuff= shlibsuff= libmagic=32-bit;;
16777 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16778 libsuff=32 shlibsuff=N32 libmagic=N32;;
16779 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16780 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16781 *) libsuff= shlibsuff= libmagic=never-match;;
16782 esac
16783 ;;
16784 esac
16785 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16786 shlibpath_overrides_runpath=no
16787 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16788 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16789 hardcode_into_libs=yes
16790 ;;
16791
16792# No shared lib support for Linux oldld, aout, or coff.
16793linux*oldld* | linux*aout* | linux*coff*)
16794 dynamic_linker=no
16795 ;;
16796
16797# This must be Linux ELF.
16798linux*)
16799 version_type=linux
16800 need_lib_prefix=no
16801 need_version=no
16802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16803 soname_spec='${libname}${release}${shared_ext}$major'
16804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16805 shlibpath_var=LD_LIBRARY_PATH
16806 shlibpath_overrides_runpath=no
16807 # This implies no fast_install, which is unacceptable.
16808 # Some rework will be needed to allow for fast_install
16809 # before this can be enabled.
16810 hardcode_into_libs=yes
16811
16812 # We used to test for /lib/ld.so.1 and disable shared libraries on
16813 # powerpc, because MkLinux only supported shared libraries with the
16814 # GNU dynamic linker. Since this was broken with cross compilers,
16815 # most powerpc-linux boxes support dynamic linking these days and
16816 # people can always --disable-shared, the test was removed, and we
16817 # assume the GNU/Linux dynamic linker is in use.
16818 dynamic_linker='GNU/Linux ld.so'
16819 ;;
16820
16821netbsd*)
16822 version_type=sunos
16823 need_lib_prefix=no
16824 need_version=no
16825 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16828 dynamic_linker='NetBSD (a.out) ld.so'
16829 else
16830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16831 soname_spec='${libname}${release}${shared_ext}$major'
16832 dynamic_linker='NetBSD ld.elf_so'
16833 fi
16834 shlibpath_var=LD_LIBRARY_PATH
16835 shlibpath_overrides_runpath=yes
16836 hardcode_into_libs=yes
16837 ;;
16838
16839newsos6)
16840 version_type=linux
16841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16842 shlibpath_var=LD_LIBRARY_PATH
16843 shlibpath_overrides_runpath=yes
16844 ;;
16845
16846nto-qnx)
16847 version_type=linux
16848 need_lib_prefix=no
16849 need_version=no
16850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16851 soname_spec='${libname}${release}${shared_ext}$major'
16852 shlibpath_var=LD_LIBRARY_PATH
16853 shlibpath_overrides_runpath=yes
16854 ;;
16855
16856openbsd*)
16857 version_type=sunos
16858 need_lib_prefix=no
16859 need_version=no
16860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16862 shlibpath_var=LD_LIBRARY_PATH
16863 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16864 case $host_os in
16865 openbsd2.[89] | openbsd2.[89].*)
16866 shlibpath_overrides_runpath=no
16867 ;;
16868 *)
16869 shlibpath_overrides_runpath=yes
16870 ;;
16871 esac
16872 else
16873 shlibpath_overrides_runpath=yes
16874 fi
16875 ;;
16876
16877os2*)
16878 libname_spec='$name'
16879 shrext=".dll"
16880 need_lib_prefix=no
16881 library_names_spec='$libname${shared_ext} $libname.a'
16882 dynamic_linker='OS/2 ld.exe'
16883 shlibpath_var=LIBPATH
16884 ;;
16885
16886osf3* | osf4* | osf5*)
16887 version_type=osf
16888 need_lib_prefix=no
16889 need_version=no
16890 soname_spec='${libname}${release}${shared_ext}$major'
16891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16892 shlibpath_var=LD_LIBRARY_PATH
16893 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16894 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16895 ;;
16896
16897sco3.2v5*)
16898 version_type=osf
16899 soname_spec='${libname}${release}${shared_ext}$major'
16900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16901 shlibpath_var=LD_LIBRARY_PATH
16902 ;;
16903
16904solaris*)
16905 version_type=linux
16906 need_lib_prefix=no
16907 need_version=no
16908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16909 soname_spec='${libname}${release}${shared_ext}$major'
16910 shlibpath_var=LD_LIBRARY_PATH
16911 shlibpath_overrides_runpath=yes
16912 hardcode_into_libs=yes
16913 # ldd complains unless libraries are executable
16914 postinstall_cmds='chmod +x $lib'
16915 ;;
16916
16917sunos4*)
16918 version_type=sunos
16919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16920 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16921 shlibpath_var=LD_LIBRARY_PATH
16922 shlibpath_overrides_runpath=yes
16923 if test "$with_gnu_ld" = yes; then
16924 need_lib_prefix=no
16925 fi
16926 need_version=yes
16927 ;;
16928
16929sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16930 version_type=linux
16931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16932 soname_spec='${libname}${release}${shared_ext}$major'
16933 shlibpath_var=LD_LIBRARY_PATH
16934 case $host_vendor in
16935 sni)
16936 shlibpath_overrides_runpath=no
16937 need_lib_prefix=no
16938 export_dynamic_flag_spec='${wl}-Blargedynsym'
16939 runpath_var=LD_RUN_PATH
16940 ;;
16941 siemens)
16942 need_lib_prefix=no
16943 ;;
16944 motorola)
16945 need_lib_prefix=no
16946 need_version=no
16947 shlibpath_overrides_runpath=no
16948 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16949 ;;
16950 esac
16951 ;;
16952
16953sysv4*MP*)
16954 if test -d /usr/nec ;then
16955 version_type=linux
16956 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16957 soname_spec='$libname${shared_ext}.$major'
16958 shlibpath_var=LD_LIBRARY_PATH
16959 fi
16960 ;;
16961
16962uts4*)
16963 version_type=linux
16964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16965 soname_spec='${libname}${release}${shared_ext}$major'
16966 shlibpath_var=LD_LIBRARY_PATH
16967 ;;
16968
16969*)
16970 dynamic_linker=no
16971 ;;
16972esac
16973echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16974echo "${ECHO_T}$dynamic_linker" >&6
16975test "$dynamic_linker" = no && can_build_shared=no
16976
16977if test "x$enable_dlopen" != xyes; then
16978 enable_dlopen=unknown
16979 enable_dlopen_self=unknown
16980 enable_dlopen_self_static=unknown
16981else
16982 lt_cv_dlopen=no
16983 lt_cv_dlopen_libs=
16984
16985 case $host_os in
16986 beos*)
16987 lt_cv_dlopen="load_add_on"
16988 lt_cv_dlopen_libs=
16989 lt_cv_dlopen_self=yes
16990 ;;
16991
16992 mingw* | pw32*)
16993 lt_cv_dlopen="LoadLibrary"
16994 lt_cv_dlopen_libs=
16995 ;;
16996
16997 cygwin*)
16998 lt_cv_dlopen="dlopen"
16999 lt_cv_dlopen_libs=
17000 ;;
17001
17002 darwin*)
17003 # if libdl is installed we need to link against it
17004 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17005echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17006if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17007 echo $ECHO_N "(cached) $ECHO_C" >&6
17008else
17009 ac_check_lib_save_LIBS=$LIBS
17010LIBS="-ldl $LIBS"
17011cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017012/* confdefs.h. */
17013_ACEOF
17014cat confdefs.h >>conftest.$ac_ext
17015cat >>conftest.$ac_ext <<_ACEOF
17016/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017017
17018/* Override any gcc2 internal prototype to avoid an error. */
17019#ifdef __cplusplus
17020extern "C"
17021#endif
17022/* We use char because int might match the return type of a gcc2
17023 builtin and then its argument prototype would still apply. */
17024char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017025int
17026main ()
17027{
17028dlopen ();
17029 ;
17030 return 0;
17031}
17032_ACEOF
17033rm -f conftest.$ac_objext conftest$ac_exeext
17034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017035 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017036 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017037 grep -v '^ *+' conftest.er1 >conftest.err
17038 rm -f conftest.er1
17039 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017042 { ac_try='test -z "$ac_c_werror_flag"
17043 || test ! -s conftest.err'
17044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045 (eval $ac_try) 2>&5
17046 ac_status=$?
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; } &&
17049 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17052 ac_status=$?
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; }; then
17055 ac_cv_lib_dl_dlopen=yes
17056else
17057 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017058sed 's/^/| /' conftest.$ac_ext >&5
17059
John Criswell47fdd832003-07-14 16:52:07 +000017060ac_cv_lib_dl_dlopen=no
17061fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017062rm -f conftest.err conftest.$ac_objext \
17063 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017064LIBS=$ac_check_lib_save_LIBS
17065fi
17066echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17067echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17068if test $ac_cv_lib_dl_dlopen = yes; then
17069 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17070else
17071
17072 lt_cv_dlopen="dyld"
17073 lt_cv_dlopen_libs=
17074 lt_cv_dlopen_self=yes
17075
17076fi
17077
17078 ;;
17079
17080 *)
17081 echo "$as_me:$LINENO: checking for shl_load" >&5
17082echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17083if test "${ac_cv_func_shl_load+set}" = set; then
17084 echo $ECHO_N "(cached) $ECHO_C" >&6
17085else
17086 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017087/* confdefs.h. */
17088_ACEOF
17089cat confdefs.h >>conftest.$ac_ext
17090cat >>conftest.$ac_ext <<_ACEOF
17091/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000017092/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17094#define shl_load innocuous_shl_load
17095
John Criswell47fdd832003-07-14 16:52:07 +000017096/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017097 which can conflict with char shl_load (); below.
17098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17099 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000017100
John Criswell0c38eaf2003-09-10 15:17:25 +000017101#ifdef __STDC__
17102# include <limits.h>
17103#else
17104# include <assert.h>
17105#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000017106
17107#undef shl_load
17108
John Criswell47fdd832003-07-14 16:52:07 +000017109/* Override any gcc2 internal prototype to avoid an error. */
17110#ifdef __cplusplus
17111extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017112{
John Criswell47fdd832003-07-14 16:52:07 +000017113#endif
17114/* We use char because int might match the return type of a gcc2
17115 builtin and then its argument prototype would still apply. */
17116char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017117/* The GNU C library defines this for functions which it implements
17118 to always fail with ENOSYS. Some functions are actually named
17119 something starting with __ and the normal name is an alias. */
17120#if defined (__stub_shl_load) || defined (__stub___shl_load)
17121choke me
17122#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017123char (*f) () = shl_load;
17124#endif
17125#ifdef __cplusplus
17126}
John Criswell47fdd832003-07-14 16:52:07 +000017127#endif
17128
John Criswell0c38eaf2003-09-10 15:17:25 +000017129int
17130main ()
17131{
17132return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017133 ;
17134 return 0;
17135}
17136_ACEOF
17137rm -f conftest.$ac_objext conftest$ac_exeext
17138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017139 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017140 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017141 grep -v '^ *+' conftest.er1 >conftest.err
17142 rm -f conftest.er1
17143 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017146 { ac_try='test -z "$ac_c_werror_flag"
17147 || test ! -s conftest.err'
17148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149 (eval $ac_try) 2>&5
17150 ac_status=$?
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; } &&
17153 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17155 (eval $ac_try) 2>&5
17156 ac_status=$?
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); }; }; then
17159 ac_cv_func_shl_load=yes
17160else
17161 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017162sed 's/^/| /' conftest.$ac_ext >&5
17163
John Criswell47fdd832003-07-14 16:52:07 +000017164ac_cv_func_shl_load=no
17165fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017166rm -f conftest.err conftest.$ac_objext \
17167 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017168fi
17169echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17170echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17171if test $ac_cv_func_shl_load = yes; then
17172 lt_cv_dlopen="shl_load"
17173else
17174 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17175echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17176if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17177 echo $ECHO_N "(cached) $ECHO_C" >&6
17178else
17179 ac_check_lib_save_LIBS=$LIBS
17180LIBS="-ldld $LIBS"
17181cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017182/* confdefs.h. */
17183_ACEOF
17184cat confdefs.h >>conftest.$ac_ext
17185cat >>conftest.$ac_ext <<_ACEOF
17186/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017187
17188/* Override any gcc2 internal prototype to avoid an error. */
17189#ifdef __cplusplus
17190extern "C"
17191#endif
17192/* We use char because int might match the return type of a gcc2
17193 builtin and then its argument prototype would still apply. */
17194char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017195int
17196main ()
17197{
17198shl_load ();
17199 ;
17200 return 0;
17201}
17202_ACEOF
17203rm -f conftest.$ac_objext conftest$ac_exeext
17204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017205 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017206 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017207 grep -v '^ *+' conftest.er1 >conftest.err
17208 rm -f conftest.er1
17209 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017212 { ac_try='test -z "$ac_c_werror_flag"
17213 || test ! -s conftest.err'
17214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17215 (eval $ac_try) 2>&5
17216 ac_status=$?
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; } &&
17219 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17221 (eval $ac_try) 2>&5
17222 ac_status=$?
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; }; then
17225 ac_cv_lib_dld_shl_load=yes
17226else
17227 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017228sed 's/^/| /' conftest.$ac_ext >&5
17229
John Criswell47fdd832003-07-14 16:52:07 +000017230ac_cv_lib_dld_shl_load=no
17231fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017232rm -f conftest.err conftest.$ac_objext \
17233 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017234LIBS=$ac_check_lib_save_LIBS
17235fi
17236echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17237echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17238if test $ac_cv_lib_dld_shl_load = yes; then
17239 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17240else
17241 echo "$as_me:$LINENO: checking for dlopen" >&5
17242echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17243if test "${ac_cv_func_dlopen+set}" = set; then
17244 echo $ECHO_N "(cached) $ECHO_C" >&6
17245else
17246 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017247/* confdefs.h. */
17248_ACEOF
17249cat confdefs.h >>conftest.$ac_ext
17250cat >>conftest.$ac_ext <<_ACEOF
17251/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000017252/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17254#define dlopen innocuous_dlopen
17255
John Criswell47fdd832003-07-14 16:52:07 +000017256/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017257 which can conflict with char dlopen (); below.
17258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17259 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000017260
John Criswell0c38eaf2003-09-10 15:17:25 +000017261#ifdef __STDC__
17262# include <limits.h>
17263#else
17264# include <assert.h>
17265#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000017266
17267#undef dlopen
17268
John Criswell47fdd832003-07-14 16:52:07 +000017269/* Override any gcc2 internal prototype to avoid an error. */
17270#ifdef __cplusplus
17271extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017272{
John Criswell47fdd832003-07-14 16:52:07 +000017273#endif
17274/* We use char because int might match the return type of a gcc2
17275 builtin and then its argument prototype would still apply. */
17276char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017277/* The GNU C library defines this for functions which it implements
17278 to always fail with ENOSYS. Some functions are actually named
17279 something starting with __ and the normal name is an alias. */
17280#if defined (__stub_dlopen) || defined (__stub___dlopen)
17281choke me
17282#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017283char (*f) () = dlopen;
17284#endif
17285#ifdef __cplusplus
17286}
John Criswell47fdd832003-07-14 16:52:07 +000017287#endif
17288
John Criswell0c38eaf2003-09-10 15:17:25 +000017289int
17290main ()
17291{
17292return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017293 ;
17294 return 0;
17295}
17296_ACEOF
17297rm -f conftest.$ac_objext conftest$ac_exeext
17298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017299 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017300 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017301 grep -v '^ *+' conftest.er1 >conftest.err
17302 rm -f conftest.er1
17303 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017306 { ac_try='test -z "$ac_c_werror_flag"
17307 || test ! -s conftest.err'
17308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17309 (eval $ac_try) 2>&5
17310 ac_status=$?
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); }; } &&
17313 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315 (eval $ac_try) 2>&5
17316 ac_status=$?
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); }; }; then
17319 ac_cv_func_dlopen=yes
17320else
17321 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017322sed 's/^/| /' conftest.$ac_ext >&5
17323
John Criswell47fdd832003-07-14 16:52:07 +000017324ac_cv_func_dlopen=no
17325fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017326rm -f conftest.err conftest.$ac_objext \
17327 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017328fi
17329echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17330echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17331if test $ac_cv_func_dlopen = yes; then
17332 lt_cv_dlopen="dlopen"
17333else
17334 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17335echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17336if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
17338else
17339 ac_check_lib_save_LIBS=$LIBS
17340LIBS="-ldl $LIBS"
17341cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017342/* confdefs.h. */
17343_ACEOF
17344cat confdefs.h >>conftest.$ac_ext
17345cat >>conftest.$ac_ext <<_ACEOF
17346/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017347
17348/* Override any gcc2 internal prototype to avoid an error. */
17349#ifdef __cplusplus
17350extern "C"
17351#endif
17352/* We use char because int might match the return type of a gcc2
17353 builtin and then its argument prototype would still apply. */
17354char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017355int
17356main ()
17357{
17358dlopen ();
17359 ;
17360 return 0;
17361}
17362_ACEOF
17363rm -f conftest.$ac_objext conftest$ac_exeext
17364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017365 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017366 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017367 grep -v '^ *+' conftest.er1 >conftest.err
17368 rm -f conftest.er1
17369 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017372 { ac_try='test -z "$ac_c_werror_flag"
17373 || test ! -s conftest.err'
17374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375 (eval $ac_try) 2>&5
17376 ac_status=$?
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); }; } &&
17379 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17381 (eval $ac_try) 2>&5
17382 ac_status=$?
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); }; }; then
17385 ac_cv_lib_dl_dlopen=yes
17386else
17387 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017388sed 's/^/| /' conftest.$ac_ext >&5
17389
John Criswell47fdd832003-07-14 16:52:07 +000017390ac_cv_lib_dl_dlopen=no
17391fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017392rm -f conftest.err conftest.$ac_objext \
17393 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017394LIBS=$ac_check_lib_save_LIBS
17395fi
17396echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17397echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17398if test $ac_cv_lib_dl_dlopen = yes; then
17399 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17400else
17401 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17402echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17403if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17404 echo $ECHO_N "(cached) $ECHO_C" >&6
17405else
17406 ac_check_lib_save_LIBS=$LIBS
17407LIBS="-lsvld $LIBS"
17408cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017409/* confdefs.h. */
17410_ACEOF
17411cat confdefs.h >>conftest.$ac_ext
17412cat >>conftest.$ac_ext <<_ACEOF
17413/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017414
17415/* Override any gcc2 internal prototype to avoid an error. */
17416#ifdef __cplusplus
17417extern "C"
17418#endif
17419/* We use char because int might match the return type of a gcc2
17420 builtin and then its argument prototype would still apply. */
17421char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017422int
17423main ()
17424{
17425dlopen ();
17426 ;
17427 return 0;
17428}
17429_ACEOF
17430rm -f conftest.$ac_objext conftest$ac_exeext
17431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017432 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017433 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017434 grep -v '^ *+' conftest.er1 >conftest.err
17435 rm -f conftest.er1
17436 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017439 { ac_try='test -z "$ac_c_werror_flag"
17440 || test ! -s conftest.err'
17441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442 (eval $ac_try) 2>&5
17443 ac_status=$?
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; } &&
17446 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17448 (eval $ac_try) 2>&5
17449 ac_status=$?
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); }; }; then
17452 ac_cv_lib_svld_dlopen=yes
17453else
17454 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017455sed 's/^/| /' conftest.$ac_ext >&5
17456
John Criswell47fdd832003-07-14 16:52:07 +000017457ac_cv_lib_svld_dlopen=no
17458fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017459rm -f conftest.err conftest.$ac_objext \
17460 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017461LIBS=$ac_check_lib_save_LIBS
17462fi
17463echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17464echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17465if test $ac_cv_lib_svld_dlopen = yes; then
17466 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17467else
17468 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17469echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17470if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17471 echo $ECHO_N "(cached) $ECHO_C" >&6
17472else
17473 ac_check_lib_save_LIBS=$LIBS
17474LIBS="-ldld $LIBS"
17475cat >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. */
John Criswell47fdd832003-07-14 16:52:07 +000017481
17482/* Override any gcc2 internal prototype to avoid an error. */
17483#ifdef __cplusplus
17484extern "C"
17485#endif
17486/* We use char because int might match the return type of a gcc2
17487 builtin and then its argument prototype would still apply. */
17488char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017489int
17490main ()
17491{
17492dld_link ();
17493 ;
17494 return 0;
17495}
17496_ACEOF
17497rm -f conftest.$ac_objext conftest$ac_exeext
17498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017499 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017500 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017501 grep -v '^ *+' conftest.er1 >conftest.err
17502 rm -f conftest.er1
17503 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017506 { ac_try='test -z "$ac_c_werror_flag"
17507 || test ! -s conftest.err'
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17510 ac_status=$?
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; } &&
17513 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17515 (eval $ac_try) 2>&5
17516 ac_status=$?
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); }; }; then
17519 ac_cv_lib_dld_dld_link=yes
17520else
17521 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017522sed 's/^/| /' conftest.$ac_ext >&5
17523
John Criswell47fdd832003-07-14 16:52:07 +000017524ac_cv_lib_dld_dld_link=no
17525fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017526rm -f conftest.err conftest.$ac_objext \
17527 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017528LIBS=$ac_check_lib_save_LIBS
17529fi
17530echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17531echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17532if test $ac_cv_lib_dld_dld_link = yes; then
17533 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17534fi
17535
17536
17537fi
17538
17539
17540fi
17541
17542
17543fi
17544
17545
17546fi
17547
17548
17549fi
17550
17551 ;;
17552 esac
17553
17554 if test "x$lt_cv_dlopen" != xno; then
17555 enable_dlopen=yes
17556 else
17557 enable_dlopen=no
17558 fi
17559
17560 case $lt_cv_dlopen in
17561 dlopen)
17562 save_CPPFLAGS="$CPPFLAGS"
17563 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17564
17565 save_LDFLAGS="$LDFLAGS"
17566 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17567
17568 save_LIBS="$LIBS"
17569 LIBS="$lt_cv_dlopen_libs $LIBS"
17570
17571 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17572echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17573if test "${lt_cv_dlopen_self+set}" = set; then
17574 echo $ECHO_N "(cached) $ECHO_C" >&6
17575else
17576 if test "$cross_compiling" = yes; then :
17577 lt_cv_dlopen_self=cross
17578else
17579 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17580 lt_status=$lt_dlunknown
17581 cat > conftest.$ac_ext <<EOF
Reid Spencerde8c47f2004-08-29 19:35:28 +000017582#line 17582 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017583#include "confdefs.h"
17584
17585#if HAVE_DLFCN_H
17586#include <dlfcn.h>
17587#endif
17588
17589#include <stdio.h>
17590
17591#ifdef RTLD_GLOBAL
17592# define LT_DLGLOBAL RTLD_GLOBAL
17593#else
17594# ifdef DL_GLOBAL
17595# define LT_DLGLOBAL DL_GLOBAL
17596# else
17597# define LT_DLGLOBAL 0
17598# endif
17599#endif
17600
17601/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17602 find out it does not work in some platform. */
17603#ifndef LT_DLLAZY_OR_NOW
17604# ifdef RTLD_LAZY
17605# define LT_DLLAZY_OR_NOW RTLD_LAZY
17606# else
17607# ifdef DL_LAZY
17608# define LT_DLLAZY_OR_NOW DL_LAZY
17609# else
17610# ifdef RTLD_NOW
17611# define LT_DLLAZY_OR_NOW RTLD_NOW
17612# else
17613# ifdef DL_NOW
17614# define LT_DLLAZY_OR_NOW DL_NOW
17615# else
17616# define LT_DLLAZY_OR_NOW 0
17617# endif
17618# endif
17619# endif
17620# endif
17621#endif
17622
17623#ifdef __cplusplus
17624extern "C" void exit (int);
17625#endif
17626
17627void fnord() { int i=42;}
17628int main ()
17629{
17630 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17631 int status = $lt_dlunknown;
17632
17633 if (self)
17634 {
17635 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17636 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17637 /* dlclose (self); */
17638 }
17639
17640 exit (status);
17641}
17642EOF
17643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17644 (eval $ac_link) 2>&5
17645 ac_status=$?
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17648 (./conftest; exit; ) 2>/dev/null
17649 lt_status=$?
17650 case x$lt_status in
17651 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17652 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17653 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17654 esac
17655 else :
17656 # compilation failed
17657 lt_cv_dlopen_self=no
17658 fi
17659fi
17660rm -fr conftest*
17661
17662
17663fi
17664echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17665echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17666
17667 if test "x$lt_cv_dlopen_self" = xyes; then
17668 LDFLAGS="$LDFLAGS $link_static_flag"
17669 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17670echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17671if test "${lt_cv_dlopen_self_static+set}" = set; then
17672 echo $ECHO_N "(cached) $ECHO_C" >&6
17673else
17674 if test "$cross_compiling" = yes; then :
17675 lt_cv_dlopen_self_static=cross
17676else
17677 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17678 lt_status=$lt_dlunknown
17679 cat > conftest.$ac_ext <<EOF
Reid Spencerde8c47f2004-08-29 19:35:28 +000017680#line 17680 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017681#include "confdefs.h"
17682
17683#if HAVE_DLFCN_H
17684#include <dlfcn.h>
17685#endif
17686
17687#include <stdio.h>
17688
17689#ifdef RTLD_GLOBAL
17690# define LT_DLGLOBAL RTLD_GLOBAL
17691#else
17692# ifdef DL_GLOBAL
17693# define LT_DLGLOBAL DL_GLOBAL
17694# else
17695# define LT_DLGLOBAL 0
17696# endif
17697#endif
17698
17699/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17700 find out it does not work in some platform. */
17701#ifndef LT_DLLAZY_OR_NOW
17702# ifdef RTLD_LAZY
17703# define LT_DLLAZY_OR_NOW RTLD_LAZY
17704# else
17705# ifdef DL_LAZY
17706# define LT_DLLAZY_OR_NOW DL_LAZY
17707# else
17708# ifdef RTLD_NOW
17709# define LT_DLLAZY_OR_NOW RTLD_NOW
17710# else
17711# ifdef DL_NOW
17712# define LT_DLLAZY_OR_NOW DL_NOW
17713# else
17714# define LT_DLLAZY_OR_NOW 0
17715# endif
17716# endif
17717# endif
17718# endif
17719#endif
17720
17721#ifdef __cplusplus
17722extern "C" void exit (int);
17723#endif
17724
17725void fnord() { int i=42;}
17726int main ()
17727{
17728 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17729 int status = $lt_dlunknown;
17730
17731 if (self)
17732 {
17733 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17734 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17735 /* dlclose (self); */
17736 }
17737
17738 exit (status);
17739}
17740EOF
17741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17742 (eval $ac_link) 2>&5
17743 ac_status=$?
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17746 (./conftest; exit; ) 2>/dev/null
17747 lt_status=$?
17748 case x$lt_status in
17749 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17750 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17751 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17752 esac
17753 else :
17754 # compilation failed
17755 lt_cv_dlopen_self_static=no
17756 fi
17757fi
17758rm -fr conftest*
17759
17760
17761fi
17762echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17763echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17764 fi
17765
17766 CPPFLAGS="$save_CPPFLAGS"
17767 LDFLAGS="$save_LDFLAGS"
17768 LIBS="$save_LIBS"
17769 ;;
17770 esac
17771
17772 case $lt_cv_dlopen_self in
17773 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17774 *) enable_dlopen_self=unknown ;;
17775 esac
17776
17777 case $lt_cv_dlopen_self_static in
17778 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17779 *) enable_dlopen_self_static=unknown ;;
17780 esac
17781fi
17782
17783
17784# The else clause should only fire when bootstrapping the
17785# libtool distribution, otherwise you forgot to ship ltmain.sh
17786# with your package, and you will get complaints that there are
17787# no rules to generate ltmain.sh.
17788if test -f "$ltmain"; then
17789 # See if we are running on zsh, and set the options which allow our commands through
17790 # without removal of \ escapes.
17791 if test -n "${ZSH_VERSION+set}" ; then
17792 setopt NO_GLOB_SUBST
17793 fi
17794 # Now quote all the things that may contain metacharacters while being
17795 # careful not to overquote the AC_SUBSTed values. We take copies of the
17796 # variables and quote the copies for generation of the libtool script.
17797 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17798 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17799 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17800 deplibs_check_method reload_flag reload_cmds need_locks \
17801 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17802 lt_cv_sys_global_symbol_to_c_name_address \
17803 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17804 old_postinstall_cmds old_postuninstall_cmds \
17805 compiler_GCJ \
17806 CC_GCJ \
17807 LD_GCJ \
17808 lt_prog_compiler_wl_GCJ \
17809 lt_prog_compiler_pic_GCJ \
17810 lt_prog_compiler_static_GCJ \
17811 lt_prog_compiler_no_builtin_flag_GCJ \
17812 export_dynamic_flag_spec_GCJ \
17813 thread_safe_flag_spec_GCJ \
17814 whole_archive_flag_spec_GCJ \
17815 enable_shared_with_static_runtimes_GCJ \
17816 old_archive_cmds_GCJ \
17817 old_archive_from_new_cmds_GCJ \
17818 predep_objects_GCJ \
17819 postdep_objects_GCJ \
17820 predeps_GCJ \
17821 postdeps_GCJ \
17822 compiler_lib_search_path_GCJ \
17823 archive_cmds_GCJ \
17824 archive_expsym_cmds_GCJ \
17825 postinstall_cmds_GCJ \
17826 postuninstall_cmds_GCJ \
17827 old_archive_from_expsyms_cmds_GCJ \
17828 allow_undefined_flag_GCJ \
17829 no_undefined_flag_GCJ \
17830 export_symbols_cmds_GCJ \
17831 hardcode_libdir_flag_spec_GCJ \
17832 hardcode_libdir_flag_spec_ld_GCJ \
17833 hardcode_libdir_separator_GCJ \
17834 hardcode_automatic_GCJ \
17835 module_cmds_GCJ \
17836 module_expsym_cmds_GCJ \
17837 lt_cv_prog_compiler_c_o_GCJ \
17838 exclude_expsyms_GCJ \
17839 include_expsyms_GCJ; do
17840
17841 case $var in
17842 old_archive_cmds_GCJ | \
17843 old_archive_from_new_cmds_GCJ | \
17844 archive_cmds_GCJ | \
17845 archive_expsym_cmds_GCJ | \
17846 module_cmds_GCJ | \
17847 module_expsym_cmds_GCJ | \
17848 old_archive_from_expsyms_cmds_GCJ | \
17849 export_symbols_cmds_GCJ | \
17850 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17851 postinstall_cmds | postuninstall_cmds | \
17852 old_postinstall_cmds | old_postuninstall_cmds | \
17853 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17854 # Double-quote double-evaled strings.
17855 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17856 ;;
17857 *)
17858 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17859 ;;
17860 esac
17861 done
17862
17863 case $lt_echo in
17864 *'\$0 --fallback-echo"')
17865 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17866 ;;
17867 esac
17868
17869cfgfile="$ofile"
17870
17871 cat <<__EOF__ >> "$cfgfile"
17872# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17873
17874# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17875
17876# Shell to use when invoking shell scripts.
17877SHELL=$lt_SHELL
17878
17879# Whether or not to build shared libraries.
17880build_libtool_libs=$enable_shared
17881
17882# Whether or not to build static libraries.
17883build_old_libs=$enable_static
17884
17885# Whether or not to add -lc for building shared libraries.
17886build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17887
17888# Whether or not to disallow shared libs when runtime libs are static
17889allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17890
17891# Whether or not to optimize for fast installation.
17892fast_install=$enable_fast_install
17893
17894# The host system.
17895host_alias=$host_alias
17896host=$host
17897
17898# An echo program that does not interpret backslashes.
17899echo=$lt_echo
17900
17901# The archiver.
17902AR=$lt_AR
17903AR_FLAGS=$lt_AR_FLAGS
17904
17905# A C compiler.
17906LTCC=$lt_LTCC
17907
17908# A language-specific compiler.
17909CC=$lt_compiler_GCJ
17910
17911# Is the compiler the GNU C compiler?
17912with_gcc=$GCC_GCJ
17913
17914# An ERE matcher.
17915EGREP=$lt_EGREP
17916
17917# The linker used to build libraries.
17918LD=$lt_LD_GCJ
17919
17920# Whether we need hard or soft links.
17921LN_S=$lt_LN_S
17922
17923# A BSD-compatible nm program.
17924NM=$lt_NM
17925
17926# A symbol stripping program
17927STRIP=$STRIP
17928
17929# Used to examine libraries when file_magic_cmd begins "file"
17930MAGIC_CMD=$MAGIC_CMD
17931
17932# Used on cygwin: DLL creation program.
17933DLLTOOL="$DLLTOOL"
17934
17935# Used on cygwin: object dumper.
17936OBJDUMP="$OBJDUMP"
17937
17938# Used on cygwin: assembler.
17939AS="$AS"
17940
17941# The name of the directory that contains temporary libtool files.
17942objdir=$objdir
17943
17944# How to create reloadable object files.
17945reload_flag=$lt_reload_flag
17946reload_cmds=$lt_reload_cmds
17947
17948# How to pass a linker flag through the compiler.
17949wl=$lt_lt_prog_compiler_wl_GCJ
17950
17951# Object file suffix (normally "o").
17952objext="$ac_objext"
17953
17954# Old archive suffix (normally "a").
17955libext="$libext"
17956
17957# Shared library suffix (normally ".so").
17958shrext='$shrext'
17959
17960# Executable file suffix (normally "").
17961exeext="$exeext"
17962
17963# Additional compiler flags for building library objects.
17964pic_flag=$lt_lt_prog_compiler_pic_GCJ
17965pic_mode=$pic_mode
17966
17967# What is the maximum length of a command?
17968max_cmd_len=$lt_cv_sys_max_cmd_len
17969
17970# Does compiler simultaneously support -c and -o options?
17971compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17972
17973# Must we lock files when doing compilation ?
17974need_locks=$lt_need_locks
17975
17976# Do we need the lib prefix for modules?
17977need_lib_prefix=$need_lib_prefix
17978
17979# Do we need a version for libraries?
17980need_version=$need_version
17981
17982# Whether dlopen is supported.
17983dlopen_support=$enable_dlopen
17984
17985# Whether dlopen of programs is supported.
17986dlopen_self=$enable_dlopen_self
17987
17988# Whether dlopen of statically linked programs is supported.
17989dlopen_self_static=$enable_dlopen_self_static
17990
17991# Compiler flag to prevent dynamic linking.
17992link_static_flag=$lt_lt_prog_compiler_static_GCJ
17993
17994# Compiler flag to turn off builtin functions.
17995no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17996
17997# Compiler flag to allow reflexive dlopens.
17998export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17999
18000# Compiler flag to generate shared objects directly from archives.
18001whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18002
18003# Compiler flag to generate thread-safe objects.
18004thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18005
18006# Library versioning type.
18007version_type=$version_type
18008
18009# Format of library name prefix.
18010libname_spec=$lt_libname_spec
18011
18012# List of archive names. First name is the real one, the rest are links.
18013# The last name is the one that the linker finds with -lNAME.
18014library_names_spec=$lt_library_names_spec
18015
18016# The coded name of the library, if different from the real name.
18017soname_spec=$lt_soname_spec
18018
18019# Commands used to build and install an old-style archive.
18020RANLIB=$lt_RANLIB
18021old_archive_cmds=$lt_old_archive_cmds_GCJ
18022old_postinstall_cmds=$lt_old_postinstall_cmds
18023old_postuninstall_cmds=$lt_old_postuninstall_cmds
18024
18025# Create an old-style archive from a shared archive.
18026old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18027
18028# Create a temporary old-style archive to link instead of a shared archive.
18029old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18030
18031# Commands used to build and install a shared archive.
18032archive_cmds=$lt_archive_cmds_GCJ
18033archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18034postinstall_cmds=$lt_postinstall_cmds
18035postuninstall_cmds=$lt_postuninstall_cmds
18036
18037# Commands used to build a loadable module (assumed same as above if empty)
18038module_cmds=$lt_module_cmds_GCJ
18039module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18040
18041# Commands to strip libraries.
18042old_striplib=$lt_old_striplib
18043striplib=$lt_striplib
18044
18045# Dependencies to place before the objects being linked to create a
18046# shared library.
18047predep_objects=$lt_predep_objects_GCJ
18048
18049# Dependencies to place after the objects being linked to create a
18050# shared library.
18051postdep_objects=$lt_postdep_objects_GCJ
18052
18053# Dependencies to place before the objects being linked to create a
18054# shared library.
18055predeps=$lt_predeps_GCJ
18056
18057# Dependencies to place after the objects being linked to create a
18058# shared library.
18059postdeps=$lt_postdeps_GCJ
18060
18061# The library search path used internally by the compiler when linking
18062# a shared library.
18063compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18064
18065# Method to check whether dependent libraries are shared objects.
18066deplibs_check_method=$lt_deplibs_check_method
18067
18068# Command to use when deplibs_check_method == file_magic.
18069file_magic_cmd=$lt_file_magic_cmd
18070
18071# Flag that allows shared libraries with undefined symbols to be built.
18072allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18073
18074# Flag that forces no undefined symbols.
18075no_undefined_flag=$lt_no_undefined_flag_GCJ
18076
18077# Commands used to finish a libtool library installation in a directory.
18078finish_cmds=$lt_finish_cmds
18079
18080# Same as above, but a single script fragment to be evaled but not shown.
18081finish_eval=$lt_finish_eval
18082
18083# Take the output of nm and produce a listing of raw symbols and C names.
18084global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18085
18086# Transform the output of nm in a proper C declaration
18087global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18088
18089# Transform the output of nm in a C name address pair
18090global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18091
18092# This is the shared library runtime path variable.
18093runpath_var=$runpath_var
18094
18095# This is the shared library path variable.
18096shlibpath_var=$shlibpath_var
18097
18098# Is shlibpath searched before the hard-coded library search path?
18099shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18100
18101# How to hardcode a shared library path into an executable.
18102hardcode_action=$hardcode_action_GCJ
18103
18104# Whether we should hardcode library paths into libraries.
18105hardcode_into_libs=$hardcode_into_libs
18106
18107# Flag to hardcode \$libdir into a binary during linking.
18108# This must work even if \$libdir does not exist.
18109hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18110
18111# If ld is used when linking, flag to hardcode \$libdir into
18112# a binary during linking. This must work even if \$libdir does
18113# not exist.
18114hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18115
18116# Whether we need a single -rpath flag with a separated argument.
18117hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18118
18119# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18120# resulting binary.
18121hardcode_direct=$hardcode_direct_GCJ
18122
18123# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18124# resulting binary.
18125hardcode_minus_L=$hardcode_minus_L_GCJ
18126
18127# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18128# the resulting binary.
18129hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18130
18131# Set to yes if building a shared library automatically hardcodes DIR into the library
18132# and all subsequent libraries and executables linked against it.
18133hardcode_automatic=$hardcode_automatic_GCJ
18134
18135# Variables whose values should be saved in libtool wrapper scripts and
18136# restored at relink time.
18137variables_saved_for_relink="$variables_saved_for_relink"
18138
18139# Whether libtool must link a program against all its dependency libraries.
18140link_all_deplibs=$link_all_deplibs_GCJ
18141
18142# Compile-time system search path for libraries
18143sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18144
18145# Run-time system search path for libraries
18146sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18147
18148# Fix the shell variable \$srcfile for the compiler.
18149fix_srcfile_path="$fix_srcfile_path_GCJ"
18150
18151# Set to yes if exported symbols are required.
18152always_export_symbols=$always_export_symbols_GCJ
18153
18154# The commands to list exported symbols.
18155export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18156
18157# The commands to extract the exported symbol list from a shared archive.
18158extract_expsyms_cmds=$lt_extract_expsyms_cmds
18159
18160# Symbols that should not be listed in the preloaded symbols.
18161exclude_expsyms=$lt_exclude_expsyms_GCJ
18162
18163# Symbols that must always be exported.
18164include_expsyms=$lt_include_expsyms_GCJ
18165
18166# ### END LIBTOOL TAG CONFIG: $tagname
18167
18168__EOF__
18169
18170
18171else
18172 # If there is no Makefile yet, we rely on a make rule to execute
18173 # `config.status --recheck' to rerun these tests and create the
18174 # libtool script then.
18175 test -f Makefile && make "$ltmain"
18176fi
18177
18178
18179ac_ext=c
18180ac_cpp='$CPP $CPPFLAGS'
18181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18183ac_compiler_gnu=$ac_cv_c_compiler_gnu
18184
18185CC="$lt_save_CC"
18186
18187 else
18188 tagname=""
18189 fi
18190 ;;
18191
18192 RC)
18193
18194
18195
18196# Source file extension for RC test sources.
18197ac_ext=rc
18198
18199# Object file extension for compiled RC test sources.
18200objext=o
18201objext_RC=$objext
18202
18203# Code to be used in simple compile tests
18204lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18205
18206# Code to be used in simple link tests
18207lt_simple_link_test_code="$lt_simple_compile_test_code"
18208
18209# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18210
18211# If no C compiler was specified, use CC.
18212LTCC=${LTCC-"$CC"}
18213
18214# Allow CC to be a program name with arguments.
18215compiler=$CC
18216
18217
18218# Allow CC to be a program name with arguments.
18219lt_save_CC="$CC"
18220CC=${RC-"windres"}
18221compiler=$CC
18222compiler_RC=$CC
18223lt_cv_prog_compiler_c_o_RC=yes
18224
18225# The else clause should only fire when bootstrapping the
18226# libtool distribution, otherwise you forgot to ship ltmain.sh
18227# with your package, and you will get complaints that there are
18228# no rules to generate ltmain.sh.
18229if test -f "$ltmain"; then
18230 # See if we are running on zsh, and set the options which allow our commands through
18231 # without removal of \ escapes.
18232 if test -n "${ZSH_VERSION+set}" ; then
18233 setopt NO_GLOB_SUBST
18234 fi
18235 # Now quote all the things that may contain metacharacters while being
18236 # careful not to overquote the AC_SUBSTed values. We take copies of the
18237 # variables and quote the copies for generation of the libtool script.
18238 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18239 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18240 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18241 deplibs_check_method reload_flag reload_cmds need_locks \
18242 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18243 lt_cv_sys_global_symbol_to_c_name_address \
18244 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18245 old_postinstall_cmds old_postuninstall_cmds \
18246 compiler_RC \
18247 CC_RC \
18248 LD_RC \
18249 lt_prog_compiler_wl_RC \
18250 lt_prog_compiler_pic_RC \
18251 lt_prog_compiler_static_RC \
18252 lt_prog_compiler_no_builtin_flag_RC \
18253 export_dynamic_flag_spec_RC \
18254 thread_safe_flag_spec_RC \
18255 whole_archive_flag_spec_RC \
18256 enable_shared_with_static_runtimes_RC \
18257 old_archive_cmds_RC \
18258 old_archive_from_new_cmds_RC \
18259 predep_objects_RC \
18260 postdep_objects_RC \
18261 predeps_RC \
18262 postdeps_RC \
18263 compiler_lib_search_path_RC \
18264 archive_cmds_RC \
18265 archive_expsym_cmds_RC \
18266 postinstall_cmds_RC \
18267 postuninstall_cmds_RC \
18268 old_archive_from_expsyms_cmds_RC \
18269 allow_undefined_flag_RC \
18270 no_undefined_flag_RC \
18271 export_symbols_cmds_RC \
18272 hardcode_libdir_flag_spec_RC \
18273 hardcode_libdir_flag_spec_ld_RC \
18274 hardcode_libdir_separator_RC \
18275 hardcode_automatic_RC \
18276 module_cmds_RC \
18277 module_expsym_cmds_RC \
18278 lt_cv_prog_compiler_c_o_RC \
18279 exclude_expsyms_RC \
18280 include_expsyms_RC; do
18281
18282 case $var in
18283 old_archive_cmds_RC | \
18284 old_archive_from_new_cmds_RC | \
18285 archive_cmds_RC | \
18286 archive_expsym_cmds_RC | \
18287 module_cmds_RC | \
18288 module_expsym_cmds_RC | \
18289 old_archive_from_expsyms_cmds_RC | \
18290 export_symbols_cmds_RC | \
18291 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18292 postinstall_cmds | postuninstall_cmds | \
18293 old_postinstall_cmds | old_postuninstall_cmds | \
18294 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18295 # Double-quote double-evaled strings.
18296 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18297 ;;
18298 *)
18299 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18300 ;;
18301 esac
18302 done
18303
18304 case $lt_echo in
18305 *'\$0 --fallback-echo"')
18306 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18307 ;;
18308 esac
18309
18310cfgfile="$ofile"
18311
18312 cat <<__EOF__ >> "$cfgfile"
18313# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18314
18315# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18316
18317# Shell to use when invoking shell scripts.
18318SHELL=$lt_SHELL
18319
18320# Whether or not to build shared libraries.
18321build_libtool_libs=$enable_shared
18322
18323# Whether or not to build static libraries.
18324build_old_libs=$enable_static
18325
18326# Whether or not to add -lc for building shared libraries.
18327build_libtool_need_lc=$archive_cmds_need_lc_RC
18328
18329# Whether or not to disallow shared libs when runtime libs are static
18330allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18331
18332# Whether or not to optimize for fast installation.
18333fast_install=$enable_fast_install
18334
18335# The host system.
18336host_alias=$host_alias
18337host=$host
18338
18339# An echo program that does not interpret backslashes.
18340echo=$lt_echo
18341
18342# The archiver.
18343AR=$lt_AR
18344AR_FLAGS=$lt_AR_FLAGS
18345
18346# A C compiler.
18347LTCC=$lt_LTCC
18348
18349# A language-specific compiler.
18350CC=$lt_compiler_RC
18351
18352# Is the compiler the GNU C compiler?
18353with_gcc=$GCC_RC
18354
18355# An ERE matcher.
18356EGREP=$lt_EGREP
18357
18358# The linker used to build libraries.
18359LD=$lt_LD_RC
18360
18361# Whether we need hard or soft links.
18362LN_S=$lt_LN_S
18363
18364# A BSD-compatible nm program.
18365NM=$lt_NM
18366
18367# A symbol stripping program
18368STRIP=$STRIP
18369
18370# Used to examine libraries when file_magic_cmd begins "file"
18371MAGIC_CMD=$MAGIC_CMD
18372
18373# Used on cygwin: DLL creation program.
18374DLLTOOL="$DLLTOOL"
18375
18376# Used on cygwin: object dumper.
18377OBJDUMP="$OBJDUMP"
18378
18379# Used on cygwin: assembler.
18380AS="$AS"
18381
18382# The name of the directory that contains temporary libtool files.
18383objdir=$objdir
18384
18385# How to create reloadable object files.
18386reload_flag=$lt_reload_flag
18387reload_cmds=$lt_reload_cmds
18388
18389# How to pass a linker flag through the compiler.
18390wl=$lt_lt_prog_compiler_wl_RC
18391
18392# Object file suffix (normally "o").
18393objext="$ac_objext"
18394
18395# Old archive suffix (normally "a").
18396libext="$libext"
18397
18398# Shared library suffix (normally ".so").
18399shrext='$shrext'
18400
18401# Executable file suffix (normally "").
18402exeext="$exeext"
18403
18404# Additional compiler flags for building library objects.
18405pic_flag=$lt_lt_prog_compiler_pic_RC
18406pic_mode=$pic_mode
18407
18408# What is the maximum length of a command?
18409max_cmd_len=$lt_cv_sys_max_cmd_len
18410
18411# Does compiler simultaneously support -c and -o options?
18412compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18413
18414# Must we lock files when doing compilation ?
18415need_locks=$lt_need_locks
18416
18417# Do we need the lib prefix for modules?
18418need_lib_prefix=$need_lib_prefix
18419
18420# Do we need a version for libraries?
18421need_version=$need_version
18422
18423# Whether dlopen is supported.
18424dlopen_support=$enable_dlopen
18425
18426# Whether dlopen of programs is supported.
18427dlopen_self=$enable_dlopen_self
18428
18429# Whether dlopen of statically linked programs is supported.
18430dlopen_self_static=$enable_dlopen_self_static
18431
18432# Compiler flag to prevent dynamic linking.
18433link_static_flag=$lt_lt_prog_compiler_static_RC
18434
18435# Compiler flag to turn off builtin functions.
18436no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18437
18438# Compiler flag to allow reflexive dlopens.
18439export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18440
18441# Compiler flag to generate shared objects directly from archives.
18442whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18443
18444# Compiler flag to generate thread-safe objects.
18445thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18446
18447# Library versioning type.
18448version_type=$version_type
18449
18450# Format of library name prefix.
18451libname_spec=$lt_libname_spec
18452
18453# List of archive names. First name is the real one, the rest are links.
18454# The last name is the one that the linker finds with -lNAME.
18455library_names_spec=$lt_library_names_spec
18456
18457# The coded name of the library, if different from the real name.
18458soname_spec=$lt_soname_spec
18459
18460# Commands used to build and install an old-style archive.
18461RANLIB=$lt_RANLIB
18462old_archive_cmds=$lt_old_archive_cmds_RC
18463old_postinstall_cmds=$lt_old_postinstall_cmds
18464old_postuninstall_cmds=$lt_old_postuninstall_cmds
18465
18466# Create an old-style archive from a shared archive.
18467old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18468
18469# Create a temporary old-style archive to link instead of a shared archive.
18470old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18471
18472# Commands used to build and install a shared archive.
18473archive_cmds=$lt_archive_cmds_RC
18474archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18475postinstall_cmds=$lt_postinstall_cmds
18476postuninstall_cmds=$lt_postuninstall_cmds
18477
18478# Commands used to build a loadable module (assumed same as above if empty)
18479module_cmds=$lt_module_cmds_RC
18480module_expsym_cmds=$lt_module_expsym_cmds_RC
18481
18482# Commands to strip libraries.
18483old_striplib=$lt_old_striplib
18484striplib=$lt_striplib
18485
18486# Dependencies to place before the objects being linked to create a
18487# shared library.
18488predep_objects=$lt_predep_objects_RC
18489
18490# Dependencies to place after the objects being linked to create a
18491# shared library.
18492postdep_objects=$lt_postdep_objects_RC
18493
18494# Dependencies to place before the objects being linked to create a
18495# shared library.
18496predeps=$lt_predeps_RC
18497
18498# Dependencies to place after the objects being linked to create a
18499# shared library.
18500postdeps=$lt_postdeps_RC
18501
18502# The library search path used internally by the compiler when linking
18503# a shared library.
18504compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18505
18506# Method to check whether dependent libraries are shared objects.
18507deplibs_check_method=$lt_deplibs_check_method
18508
18509# Command to use when deplibs_check_method == file_magic.
18510file_magic_cmd=$lt_file_magic_cmd
18511
18512# Flag that allows shared libraries with undefined symbols to be built.
18513allow_undefined_flag=$lt_allow_undefined_flag_RC
18514
18515# Flag that forces no undefined symbols.
18516no_undefined_flag=$lt_no_undefined_flag_RC
18517
18518# Commands used to finish a libtool library installation in a directory.
18519finish_cmds=$lt_finish_cmds
18520
18521# Same as above, but a single script fragment to be evaled but not shown.
18522finish_eval=$lt_finish_eval
18523
18524# Take the output of nm and produce a listing of raw symbols and C names.
18525global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18526
18527# Transform the output of nm in a proper C declaration
18528global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18529
18530# Transform the output of nm in a C name address pair
18531global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18532
18533# This is the shared library runtime path variable.
18534runpath_var=$runpath_var
18535
18536# This is the shared library path variable.
18537shlibpath_var=$shlibpath_var
18538
18539# Is shlibpath searched before the hard-coded library search path?
18540shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18541
18542# How to hardcode a shared library path into an executable.
18543hardcode_action=$hardcode_action_RC
18544
18545# Whether we should hardcode library paths into libraries.
18546hardcode_into_libs=$hardcode_into_libs
18547
18548# Flag to hardcode \$libdir into a binary during linking.
18549# This must work even if \$libdir does not exist.
18550hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18551
18552# If ld is used when linking, flag to hardcode \$libdir into
18553# a binary during linking. This must work even if \$libdir does
18554# not exist.
18555hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18556
18557# Whether we need a single -rpath flag with a separated argument.
18558hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18559
18560# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18561# resulting binary.
18562hardcode_direct=$hardcode_direct_RC
18563
18564# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18565# resulting binary.
18566hardcode_minus_L=$hardcode_minus_L_RC
18567
18568# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18569# the resulting binary.
18570hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18571
18572# Set to yes if building a shared library automatically hardcodes DIR into the library
18573# and all subsequent libraries and executables linked against it.
18574hardcode_automatic=$hardcode_automatic_RC
18575
18576# Variables whose values should be saved in libtool wrapper scripts and
18577# restored at relink time.
18578variables_saved_for_relink="$variables_saved_for_relink"
18579
18580# Whether libtool must link a program against all its dependency libraries.
18581link_all_deplibs=$link_all_deplibs_RC
18582
18583# Compile-time system search path for libraries
18584sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18585
18586# Run-time system search path for libraries
18587sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18588
18589# Fix the shell variable \$srcfile for the compiler.
18590fix_srcfile_path="$fix_srcfile_path_RC"
18591
18592# Set to yes if exported symbols are required.
18593always_export_symbols=$always_export_symbols_RC
18594
18595# The commands to list exported symbols.
18596export_symbols_cmds=$lt_export_symbols_cmds_RC
18597
18598# The commands to extract the exported symbol list from a shared archive.
18599extract_expsyms_cmds=$lt_extract_expsyms_cmds
18600
18601# Symbols that should not be listed in the preloaded symbols.
18602exclude_expsyms=$lt_exclude_expsyms_RC
18603
18604# Symbols that must always be exported.
18605include_expsyms=$lt_include_expsyms_RC
18606
18607# ### END LIBTOOL TAG CONFIG: $tagname
18608
18609__EOF__
18610
18611
18612else
18613 # If there is no Makefile yet, we rely on a make rule to execute
18614 # `config.status --recheck' to rerun these tests and create the
18615 # libtool script then.
18616 test -f Makefile && make "$ltmain"
18617fi
18618
18619
18620ac_ext=c
18621ac_cpp='$CPP $CPPFLAGS'
18622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18624ac_compiler_gnu=$ac_cv_c_compiler_gnu
18625
18626CC="$lt_save_CC"
18627
18628 ;;
18629
18630 *)
18631 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18632echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18633 { (exit 1); exit 1; }; }
18634 ;;
18635 esac
18636
18637 # Append the new tag name to the list of available tags.
18638 if test -n "$tagname" ; then
18639 available_tags="$available_tags $tagname"
18640 fi
18641 fi
18642 done
18643 IFS="$lt_save_ifs"
18644
18645 # Now substitute the updated list of available tags.
18646 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18647 mv "${ofile}T" "$ofile"
18648 chmod +x "$ofile"
18649 else
18650 rm -f "${ofile}T"
18651 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18652echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18653 { (exit 1); exit 1; }; }
18654 fi
18655fi
John Criswell7a73b802003-06-30 21:59:07 +000018656
18657
18658
18659# This can be used to rebuild libtool when needed
18660LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18661
18662# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018663LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018664
18665# Prevent multiple expansion
18666
18667
18668
John Criswell47fdd832003-07-14 16:52:07 +000018669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
John Criswell7a73b802003-06-30 21:59:07 +000018687# Extract the first word of "dot", so it can be a program name with args.
18688set dummy dot; ac_word=$2
18689echo "$as_me:$LINENO: checking for $ac_word" >&5
18690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18691if test "${ac_cv_path_DOT+set}" = set; then
18692 echo $ECHO_N "(cached) $ECHO_C" >&6
18693else
18694 case $DOT in
18695 [\\/]* | ?:[\\/]*)
18696 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18697 ;;
18698 *)
18699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18700for as_dir in $PATH
18701do
18702 IFS=$as_save_IFS
18703 test -z "$as_dir" && as_dir=.
18704 for ac_exec_ext in '' $ac_executable_extensions; do
18705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18706 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18708 break 2
18709 fi
18710done
18711done
18712
Brian Gaeke26be9c52004-01-13 06:43:16 +000018713 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
John Criswell7a73b802003-06-30 21:59:07 +000018714 ;;
18715esac
18716fi
18717DOT=$ac_cv_path_DOT
18718
18719if test -n "$DOT"; then
18720 echo "$as_me:$LINENO: result: $DOT" >&5
18721echo "${ECHO_T}$DOT" >&6
18722else
18723 echo "$as_me:$LINENO: result: no" >&5
18724echo "${ECHO_T}no" >&6
18725fi
18726
18727# Extract the first word of "etags", so it can be a program name with args.
18728set dummy etags; ac_word=$2
18729echo "$as_me:$LINENO: checking for $ac_word" >&5
18730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18731if test "${ac_cv_path_ETAGS+set}" = set; then
18732 echo $ECHO_N "(cached) $ECHO_C" >&6
18733else
18734 case $ETAGS in
18735 [\\/]* | ?:[\\/]*)
18736 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18737 ;;
18738 *)
18739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18740for as_dir in $PATH
18741do
18742 IFS=$as_save_IFS
18743 test -z "$as_dir" && as_dir=.
18744 for ac_exec_ext in '' $ac_executable_extensions; do
18745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18746 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18748 break 2
18749 fi
18750done
18751done
18752
Brian Gaeke26be9c52004-01-13 06:43:16 +000018753 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
John Criswell7a73b802003-06-30 21:59:07 +000018754 ;;
18755esac
18756fi
18757ETAGS=$ac_cv_path_ETAGS
18758
18759if test -n "$ETAGS"; then
18760 echo "$as_me:$LINENO: result: $ETAGS" >&5
18761echo "${ECHO_T}$ETAGS" >&6
18762else
18763 echo "$as_me:$LINENO: result: no" >&5
18764echo "${ECHO_T}no" >&6
18765fi
18766
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000018767etags_version=`$ETAGS --version 2>&1`
18768case "$etags_version" in
18769 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18770 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18771 *) ETAGSFLAGS="" ;;
18772esac
18773ETAGSFLAGS=$ETAGSFLAGS
18774
John Criswellde00db22003-08-25 16:49:54 +000018775# Extract the first word of "python", so it can be a program name with args.
18776set dummy python; ac_word=$2
18777echo "$as_me:$LINENO: checking for $ac_word" >&5
18778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18779if test "${ac_cv_path_PYTHON+set}" = set; then
18780 echo $ECHO_N "(cached) $ECHO_C" >&6
18781else
18782 case $PYTHON in
18783 [\\/]* | ?:[\\/]*)
18784 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18785 ;;
18786 *)
18787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18788for as_dir in $PATH
18789do
18790 IFS=$as_save_IFS
18791 test -z "$as_dir" && as_dir=.
18792 for ac_exec_ext in '' $ac_executable_extensions; do
18793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18794 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18796 break 2
18797 fi
18798done
18799done
18800
Brian Gaeke26be9c52004-01-13 06:43:16 +000018801 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
John Criswellde00db22003-08-25 16:49:54 +000018802 ;;
18803esac
18804fi
18805PYTHON=$ac_cv_path_PYTHON
18806
18807if test -n "$PYTHON"; then
18808 echo "$as_me:$LINENO: result: $PYTHON" >&5
18809echo "${ECHO_T}$PYTHON" >&6
18810else
18811 echo "$as_me:$LINENO: result: no" >&5
18812echo "${ECHO_T}no" >&6
18813fi
18814
Brian Gaeke26be9c52004-01-13 06:43:16 +000018815if test "$PYTHON" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018816then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018817 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18818echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018819fi
John Criswellde00db22003-08-25 16:49:54 +000018820# Extract the first word of "qmtest", so it can be a program name with args.
18821set dummy qmtest; ac_word=$2
18822echo "$as_me:$LINENO: checking for $ac_word" >&5
18823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18824if test "${ac_cv_path_QMTEST+set}" = set; then
18825 echo $ECHO_N "(cached) $ECHO_C" >&6
18826else
18827 case $QMTEST in
18828 [\\/]* | ?:[\\/]*)
18829 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18830 ;;
18831 *)
18832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18833for as_dir in $PATH
18834do
18835 IFS=$as_save_IFS
18836 test -z "$as_dir" && as_dir=.
18837 for ac_exec_ext in '' $ac_executable_extensions; do
18838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18839 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18841 break 2
18842 fi
18843done
18844done
18845
Brian Gaeke26be9c52004-01-13 06:43:16 +000018846 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
John Criswellde00db22003-08-25 16:49:54 +000018847 ;;
18848esac
18849fi
18850QMTEST=$ac_cv_path_QMTEST
18851
18852if test -n "$QMTEST"; then
18853 echo "$as_me:$LINENO: result: $QMTEST" >&5
18854echo "${ECHO_T}$QMTEST" >&6
18855else
18856 echo "$as_me:$LINENO: result: no" >&5
18857echo "${ECHO_T}no" >&6
18858fi
18859
Brian Gaeke26be9c52004-01-13 06:43:16 +000018860if test "$QMTEST" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018861then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018862 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18863echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018864fi
John Criswellde00db22003-08-25 16:49:54 +000018865
18866pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18867pymajor=`echo $pyversion | cut -d. -f1`
18868pyminor=`echo $pyversion | cut -d. -f2`
18869
18870if test "$pymajor" -ge "2"
18871then
18872 if test "$pymajor" -eq "2"
18873 then
18874 if test "$pyminor" -lt "2"
18875 then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018876 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18877echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018878 fi
18879 fi
18880else
Brian Gaeke26be9c52004-01-13 06:43:16 +000018881 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18882echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018883fi
John Criswell7a73b802003-06-30 21:59:07 +000018884
18885
18886
18887
John Criswell7a73b802003-06-30 21:59:07 +000018888echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18889echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18890if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18891 echo $ECHO_N "(cached) $ECHO_C" >&6
18892else
18893 ac_check_lib_save_LIBS=$LIBS
18894LIBS="-lelf $LIBS"
18895cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018896/* confdefs.h. */
18897_ACEOF
18898cat confdefs.h >>conftest.$ac_ext
18899cat >>conftest.$ac_ext <<_ACEOF
18900/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018901
18902/* Override any gcc2 internal prototype to avoid an error. */
18903#ifdef __cplusplus
18904extern "C"
18905#endif
18906/* We use char because int might match the return type of a gcc2
18907 builtin and then its argument prototype would still apply. */
18908char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018909int
18910main ()
18911{
18912elf_begin ();
18913 ;
18914 return 0;
18915}
18916_ACEOF
18917rm -f conftest.$ac_objext conftest$ac_exeext
18918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000018919 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000018920 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000018921 grep -v '^ *+' conftest.er1 >conftest.err
18922 rm -f conftest.er1
18923 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000018924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000018926 { ac_try='test -z "$ac_c_werror_flag"
18927 || test ! -s conftest.err'
18928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929 (eval $ac_try) 2>&5
18930 ac_status=$?
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; } &&
18933 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000018934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18935 (eval $ac_try) 2>&5
18936 ac_status=$?
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; }; then
18939 ac_cv_lib_elf_elf_begin=yes
18940else
18941 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018942sed 's/^/| /' conftest.$ac_ext >&5
18943
John Criswell7a73b802003-06-30 21:59:07 +000018944ac_cv_lib_elf_elf_begin=no
18945fi
Reid Spencer2b51a082004-08-04 00:34:49 +000018946rm -f conftest.err conftest.$ac_objext \
18947 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018948LIBS=$ac_check_lib_save_LIBS
18949fi
18950echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18951echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18952if test $ac_cv_lib_elf_elf_begin = yes; then
18953 cat >>confdefs.h <<_ACEOF
18954#define HAVE_LIBELF 1
18955_ACEOF
18956
18957 LIBS="-lelf $LIBS"
18958
18959fi
18960
18961
18962echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18963echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18964if test "${ac_cv_search_dlopen+set}" = set; then
18965 echo $ECHO_N "(cached) $ECHO_C" >&6
18966else
18967 ac_func_search_save_LIBS=$LIBS
18968ac_cv_search_dlopen=no
18969cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018970/* confdefs.h. */
18971_ACEOF
18972cat confdefs.h >>conftest.$ac_ext
18973cat >>conftest.$ac_ext <<_ACEOF
18974/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018975
18976/* Override any gcc2 internal prototype to avoid an error. */
18977#ifdef __cplusplus
18978extern "C"
18979#endif
18980/* We use char because int might match the return type of a gcc2
18981 builtin and then its argument prototype would still apply. */
18982char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018983int
18984main ()
18985{
18986dlopen ();
18987 ;
18988 return 0;
18989}
18990_ACEOF
18991rm -f conftest.$ac_objext conftest$ac_exeext
18992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000018993 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000018994 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000018995 grep -v '^ *+' conftest.er1 >conftest.err
18996 rm -f conftest.er1
18997 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000018998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019000 { ac_try='test -z "$ac_c_werror_flag"
19001 || test ! -s conftest.err'
19002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19003 (eval $ac_try) 2>&5
19004 ac_status=$?
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; } &&
19007 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19009 (eval $ac_try) 2>&5
19010 ac_status=$?
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); }; }; then
19013 ac_cv_search_dlopen="none required"
19014else
19015 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019016sed 's/^/| /' conftest.$ac_ext >&5
19017
John Criswell7a73b802003-06-30 21:59:07 +000019018fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019019rm -f conftest.err conftest.$ac_objext \
19020 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019021if test "$ac_cv_search_dlopen" = no; then
19022 for ac_lib in dl; do
19023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19024 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019025/* confdefs.h. */
19026_ACEOF
19027cat confdefs.h >>conftest.$ac_ext
19028cat >>conftest.$ac_ext <<_ACEOF
19029/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019030
19031/* Override any gcc2 internal prototype to avoid an error. */
19032#ifdef __cplusplus
19033extern "C"
19034#endif
19035/* We use char because int might match the return type of a gcc2
19036 builtin and then its argument prototype would still apply. */
19037char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019038int
19039main ()
19040{
19041dlopen ();
19042 ;
19043 return 0;
19044}
19045_ACEOF
19046rm -f conftest.$ac_objext conftest$ac_exeext
19047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019048 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019049 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019050 grep -v '^ *+' conftest.er1 >conftest.err
19051 rm -f conftest.er1
19052 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019055 { ac_try='test -z "$ac_c_werror_flag"
19056 || test ! -s conftest.err'
19057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19058 (eval $ac_try) 2>&5
19059 ac_status=$?
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; } &&
19062 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064 (eval $ac_try) 2>&5
19065 ac_status=$?
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; }; then
19068 ac_cv_search_dlopen="-l$ac_lib"
19069break
19070else
19071 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019072sed 's/^/| /' conftest.$ac_ext >&5
19073
John Criswell7a73b802003-06-30 21:59:07 +000019074fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019075rm -f conftest.err conftest.$ac_objext \
19076 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019077 done
19078fi
19079LIBS=$ac_func_search_save_LIBS
19080fi
19081echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19082echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19083if test "$ac_cv_search_dlopen" != no; then
19084 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019085
19086cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000019087#define HAVE_DLOPEN 1
19088_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019089
19090else
Brian Gaekec45be042003-10-07 06:01:34 +000019091 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19092echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019093fi
19094
19095
19096echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19097echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19098if test "${ac_cv_search_mallinfo+set}" = set; then
19099 echo $ECHO_N "(cached) $ECHO_C" >&6
19100else
19101 ac_func_search_save_LIBS=$LIBS
19102ac_cv_search_mallinfo=no
19103cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019104/* confdefs.h. */
19105_ACEOF
19106cat confdefs.h >>conftest.$ac_ext
19107cat >>conftest.$ac_ext <<_ACEOF
19108/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019109
19110/* Override any gcc2 internal prototype to avoid an error. */
19111#ifdef __cplusplus
19112extern "C"
19113#endif
19114/* We use char because int might match the return type of a gcc2
19115 builtin and then its argument prototype would still apply. */
19116char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019117int
19118main ()
19119{
19120mallinfo ();
19121 ;
19122 return 0;
19123}
19124_ACEOF
19125rm -f conftest.$ac_objext conftest$ac_exeext
19126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019127 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019128 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019129 grep -v '^ *+' conftest.er1 >conftest.err
19130 rm -f conftest.er1
19131 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019134 { ac_try='test -z "$ac_c_werror_flag"
19135 || test ! -s conftest.err'
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19138 ac_status=$?
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; } &&
19141 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19143 (eval $ac_try) 2>&5
19144 ac_status=$?
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; }; then
19147 ac_cv_search_mallinfo="none required"
19148else
19149 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019150sed 's/^/| /' conftest.$ac_ext >&5
19151
John Criswell7a73b802003-06-30 21:59:07 +000019152fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019153rm -f conftest.err conftest.$ac_objext \
19154 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019155if test "$ac_cv_search_mallinfo" = no; then
19156 for ac_lib in malloc; do
19157 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19158 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019159/* confdefs.h. */
19160_ACEOF
19161cat confdefs.h >>conftest.$ac_ext
19162cat >>conftest.$ac_ext <<_ACEOF
19163/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019164
19165/* Override any gcc2 internal prototype to avoid an error. */
19166#ifdef __cplusplus
19167extern "C"
19168#endif
19169/* We use char because int might match the return type of a gcc2
19170 builtin and then its argument prototype would still apply. */
19171char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019172int
19173main ()
19174{
19175mallinfo ();
19176 ;
19177 return 0;
19178}
19179_ACEOF
19180rm -f conftest.$ac_objext conftest$ac_exeext
19181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019182 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019183 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019184 grep -v '^ *+' conftest.er1 >conftest.err
19185 rm -f conftest.er1
19186 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019189 { ac_try='test -z "$ac_c_werror_flag"
19190 || test ! -s conftest.err'
19191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19192 (eval $ac_try) 2>&5
19193 ac_status=$?
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); }; } &&
19196 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19198 (eval $ac_try) 2>&5
19199 ac_status=$?
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); }; }; then
19202 ac_cv_search_mallinfo="-l$ac_lib"
19203break
19204else
19205 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019206sed 's/^/| /' conftest.$ac_ext >&5
19207
John Criswell7a73b802003-06-30 21:59:07 +000019208fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019209rm -f conftest.err conftest.$ac_objext \
19210 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019211 done
19212fi
19213LIBS=$ac_func_search_save_LIBS
19214fi
19215echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19216echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19217if test "$ac_cv_search_mallinfo" != no; then
19218 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019219
19220cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019221#define HAVE_MALLINFO 1
19222_ACEOF
19223
19224fi
19225
19226
Brian Gaeke5f268f72003-12-05 19:29:01 +000019227echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19228echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19229if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19231else
19232 ac_func_search_save_LIBS=$LIBS
19233ac_cv_search_pthread_mutex_lock=no
19234cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000019235/* confdefs.h. */
19236_ACEOF
19237cat confdefs.h >>conftest.$ac_ext
19238cat >>conftest.$ac_ext <<_ACEOF
19239/* end confdefs.h. */
19240
19241/* Override any gcc2 internal prototype to avoid an error. */
19242#ifdef __cplusplus
19243extern "C"
19244#endif
19245/* We use char because int might match the return type of a gcc2
19246 builtin and then its argument prototype would still apply. */
19247char pthread_mutex_lock ();
19248int
19249main ()
19250{
19251pthread_mutex_lock ();
19252 ;
19253 return 0;
19254}
19255_ACEOF
19256rm -f conftest.$ac_objext conftest$ac_exeext
19257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019258 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000019259 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019260 grep -v '^ *+' conftest.er1 >conftest.err
19261 rm -f conftest.er1
19262 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000019263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019265 { ac_try='test -z "$ac_c_werror_flag"
19266 || test ! -s conftest.err'
19267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19268 (eval $ac_try) 2>&5
19269 ac_status=$?
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); }; } &&
19272 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000019273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19274 (eval $ac_try) 2>&5
19275 ac_status=$?
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); }; }; then
19278 ac_cv_search_pthread_mutex_lock="none required"
19279else
19280 echo "$as_me: failed program was:" >&5
19281sed 's/^/| /' conftest.$ac_ext >&5
19282
19283fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019284rm -f conftest.err conftest.$ac_objext \
19285 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000019286if test "$ac_cv_search_pthread_mutex_lock" = no; then
19287 for ac_lib in pthread; do
19288 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19289 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000019290/* confdefs.h. */
19291_ACEOF
19292cat confdefs.h >>conftest.$ac_ext
19293cat >>conftest.$ac_ext <<_ACEOF
19294/* end confdefs.h. */
19295
19296/* Override any gcc2 internal prototype to avoid an error. */
19297#ifdef __cplusplus
19298extern "C"
19299#endif
19300/* We use char because int might match the return type of a gcc2
19301 builtin and then its argument prototype would still apply. */
19302char pthread_mutex_lock ();
19303int
19304main ()
19305{
19306pthread_mutex_lock ();
19307 ;
19308 return 0;
19309}
19310_ACEOF
19311rm -f conftest.$ac_objext conftest$ac_exeext
19312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019313 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000019314 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019315 grep -v '^ *+' conftest.er1 >conftest.err
19316 rm -f conftest.er1
19317 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000019318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019320 { ac_try='test -z "$ac_c_werror_flag"
19321 || test ! -s conftest.err'
19322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19323 (eval $ac_try) 2>&5
19324 ac_status=$?
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; } &&
19327 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000019328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19329 (eval $ac_try) 2>&5
19330 ac_status=$?
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); }; }; then
19333 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19334break
19335else
19336 echo "$as_me: failed program was:" >&5
19337sed 's/^/| /' conftest.$ac_ext >&5
19338
19339fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019340rm -f conftest.err conftest.$ac_objext \
19341 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000019342 done
19343fi
19344LIBS=$ac_func_search_save_LIBS
19345fi
19346echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19347echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19348if test "$ac_cv_search_pthread_mutex_lock" != no; then
19349 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaekec9a410c2004-02-23 21:30:37 +000019350 HAVE_PTHREAD_MUTEX_LOCK=1
19351else
19352 HAVE_PTHREAD_MUTEX_LOCK=0
Brian Gaeke5f268f72003-12-05 19:29:01 +000019353fi
19354
19355
Brian Gaekec9a410c2004-02-23 21:30:37 +000019356
John Criswell7a73b802003-06-30 21:59:07 +000019357echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19358echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19359if test "${ac_cv_header_stdc+set}" = set; then
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
19361else
19362 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019363/* confdefs.h. */
19364_ACEOF
19365cat confdefs.h >>conftest.$ac_ext
19366cat >>conftest.$ac_ext <<_ACEOF
19367/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019368#include <stdlib.h>
19369#include <stdarg.h>
19370#include <string.h>
19371#include <float.h>
19372
John Criswell0c38eaf2003-09-10 15:17:25 +000019373int
19374main ()
19375{
19376
19377 ;
19378 return 0;
19379}
John Criswell7a73b802003-06-30 21:59:07 +000019380_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019381rm -f conftest.$ac_objext
19382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019383 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019384 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019385 grep -v '^ *+' conftest.er1 >conftest.err
19386 rm -f conftest.er1
19387 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019389 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019390 { ac_try='test -z "$ac_c_werror_flag"
19391 || test ! -s conftest.err'
19392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19393 (eval $ac_try) 2>&5
19394 ac_status=$?
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); }; } &&
19397 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000019398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19399 (eval $ac_try) 2>&5
19400 ac_status=$?
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019403 ac_cv_header_stdc=yes
19404else
19405 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019406sed 's/^/| /' conftest.$ac_ext >&5
19407
19408ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019409fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019411
19412if test $ac_cv_header_stdc = yes; then
19413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19414 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019415/* confdefs.h. */
19416_ACEOF
19417cat confdefs.h >>conftest.$ac_ext
19418cat >>conftest.$ac_ext <<_ACEOF
19419/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019420#include <string.h>
19421
19422_ACEOF
19423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019424 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019425 :
19426else
19427 ac_cv_header_stdc=no
19428fi
19429rm -f conftest*
19430
19431fi
19432
19433if test $ac_cv_header_stdc = yes; then
19434 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19435 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019436/* confdefs.h. */
19437_ACEOF
19438cat confdefs.h >>conftest.$ac_ext
19439cat >>conftest.$ac_ext <<_ACEOF
19440/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019441#include <stdlib.h>
19442
19443_ACEOF
19444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019445 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019446 :
19447else
19448 ac_cv_header_stdc=no
19449fi
19450rm -f conftest*
19451
19452fi
19453
19454if test $ac_cv_header_stdc = yes; then
19455 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19456 if test "$cross_compiling" = yes; then
19457 :
19458else
19459 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019460/* confdefs.h. */
19461_ACEOF
19462cat confdefs.h >>conftest.$ac_ext
19463cat >>conftest.$ac_ext <<_ACEOF
19464/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019465#include <ctype.h>
19466#if ((' ' & 0x0FF) == 0x020)
19467# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19468# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19469#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019470# define ISLOWER(c) \
Reid Spencer2b51a082004-08-04 00:34:49 +000019471 (('a' <= (c) && (c) <= 'i') \
19472 || ('j' <= (c) && (c) <= 'r') \
19473 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000019474# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19475#endif
19476
19477#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19478int
19479main ()
19480{
19481 int i;
19482 for (i = 0; i < 256; i++)
19483 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2b51a082004-08-04 00:34:49 +000019484 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000019485 exit(2);
19486 exit (0);
19487}
19488_ACEOF
19489rm -f conftest$ac_exeext
19490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19491 (eval $ac_link) 2>&5
19492 ac_status=$?
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496 (eval $ac_try) 2>&5
19497 ac_status=$?
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; }; then
19500 :
19501else
19502 echo "$as_me: program exited with status $ac_status" >&5
19503echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019504sed 's/^/| /' conftest.$ac_ext >&5
19505
John Criswell7a73b802003-06-30 21:59:07 +000019506( exit $ac_status )
19507ac_cv_header_stdc=no
19508fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019509rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019510fi
19511fi
19512fi
19513echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19514echo "${ECHO_T}$ac_cv_header_stdc" >&6
19515if test $ac_cv_header_stdc = yes; then
19516
19517cat >>confdefs.h <<\_ACEOF
19518#define STDC_HEADERS 1
19519_ACEOF
19520
19521fi
19522
19523echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19524echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19525if test "${ac_cv_header_sys_wait_h+set}" = set; then
19526 echo $ECHO_N "(cached) $ECHO_C" >&6
19527else
19528 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019529/* confdefs.h. */
19530_ACEOF
19531cat confdefs.h >>conftest.$ac_ext
19532cat >>conftest.$ac_ext <<_ACEOF
19533/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019534#include <sys/types.h>
19535#include <sys/wait.h>
19536#ifndef WEXITSTATUS
19537# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19538#endif
19539#ifndef WIFEXITED
19540# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19541#endif
19542
John Criswell7a73b802003-06-30 21:59:07 +000019543int
19544main ()
19545{
19546 int s;
19547 wait (&s);
19548 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19549 ;
19550 return 0;
19551}
19552_ACEOF
19553rm -f conftest.$ac_objext
19554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019555 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019556 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019557 grep -v '^ *+' conftest.er1 >conftest.err
19558 rm -f conftest.er1
19559 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019562 { ac_try='test -z "$ac_c_werror_flag"
19563 || test ! -s conftest.err'
19564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565 (eval $ac_try) 2>&5
19566 ac_status=$?
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); }; } &&
19569 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000019570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571 (eval $ac_try) 2>&5
19572 ac_status=$?
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); }; }; then
19575 ac_cv_header_sys_wait_h=yes
19576else
19577 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019578sed 's/^/| /' conftest.$ac_ext >&5
19579
John Criswell7a73b802003-06-30 21:59:07 +000019580ac_cv_header_sys_wait_h=no
19581fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019583fi
19584echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19585echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19586if test $ac_cv_header_sys_wait_h = yes; then
19587
19588cat >>confdefs.h <<\_ACEOF
19589#define HAVE_SYS_WAIT_H 1
19590_ACEOF
19591
19592fi
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
Brian Gaeke26be9c52004-01-13 06:43:16 +000019603
Brian Gaekef5261472004-02-20 06:40:57 +000019604
John Criswellb2815e02004-05-27 20:40:39 +000019605
19606for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h windows.h
John Criswell7a73b802003-06-30 21:59:07 +000019607do
19608as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19609if eval "test \"\${$as_ac_Header+set}\" = set"; then
19610 echo "$as_me:$LINENO: checking for $ac_header" >&5
19611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19612if eval "test \"\${$as_ac_Header+set}\" = set"; then
19613 echo $ECHO_N "(cached) $ECHO_C" >&6
19614fi
19615echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19616echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19617else
19618 # Is the header compilable?
19619echo "$as_me:$LINENO: checking $ac_header usability" >&5
19620echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19621cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019622/* confdefs.h. */
19623_ACEOF
19624cat confdefs.h >>conftest.$ac_ext
19625cat >>conftest.$ac_ext <<_ACEOF
19626/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019627$ac_includes_default
19628#include <$ac_header>
19629_ACEOF
19630rm -f conftest.$ac_objext
19631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019632 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019633 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019634 grep -v '^ *+' conftest.er1 >conftest.err
19635 rm -f conftest.er1
19636 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019639 { ac_try='test -z "$ac_c_werror_flag"
19640 || test ! -s conftest.err'
19641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642 (eval $ac_try) 2>&5
19643 ac_status=$?
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; } &&
19646 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000019647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19649 ac_status=$?
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; }; then
19652 ac_header_compiler=yes
19653else
19654 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019655sed 's/^/| /' conftest.$ac_ext >&5
19656
John Criswell7a73b802003-06-30 21:59:07 +000019657ac_header_compiler=no
19658fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019660echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19661echo "${ECHO_T}$ac_header_compiler" >&6
19662
19663# Is the header present?
19664echo "$as_me:$LINENO: checking $ac_header presence" >&5
19665echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19666cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019667/* confdefs.h. */
19668_ACEOF
19669cat confdefs.h >>conftest.$ac_ext
19670cat >>conftest.$ac_ext <<_ACEOF
19671/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019672#include <$ac_header>
19673_ACEOF
19674if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19676 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019677 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019678 rm -f conftest.er1
19679 cat conftest.err >&5
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); } >/dev/null; then
19682 if test -s conftest.err; then
19683 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +000019684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000019685 else
19686 ac_cpp_err=
19687 fi
19688else
19689 ac_cpp_err=yes
19690fi
19691if test -z "$ac_cpp_err"; then
19692 ac_header_preproc=yes
19693else
19694 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019695sed 's/^/| /' conftest.$ac_ext >&5
19696
John Criswell7a73b802003-06-30 21:59:07 +000019697 ac_header_preproc=no
19698fi
19699rm -f conftest.err conftest.$ac_ext
19700echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19701echo "${ECHO_T}$ac_header_preproc" >&6
19702
19703# So? What about this header?
Reid Spencer2b51a082004-08-04 00:34:49 +000019704case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19705 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000019706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19707echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000019708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19709echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19710 ac_header_preproc=yes
John Criswell0c38eaf2003-09-10 15:17:25 +000019711 ;;
Reid Spencer2b51a082004-08-04 00:34:49 +000019712 no:yes:* )
John Criswell7a73b802003-06-30 21:59:07 +000019713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19714echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000019715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19716echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19718echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19720echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019722echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000019723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19724echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000019725 (
19726 cat <<\_ASBOX
Reid Spencer2b51a082004-08-04 00:34:49 +000019727## ----------------------------------- ##
19728## Report this to llvmbugs@cs.uiuc.edu ##
19729## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000019730_ASBOX
19731 ) |
19732 sed "s/^/$as_me: WARNING: /" >&2
19733 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019734esac
19735echo "$as_me:$LINENO: checking for $ac_header" >&5
19736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19737if eval "test \"\${$as_ac_Header+set}\" = set"; then
19738 echo $ECHO_N "(cached) $ECHO_C" >&6
19739else
Reid Spencer2b51a082004-08-04 00:34:49 +000019740 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000019741fi
19742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19744
19745fi
19746if test `eval echo '${'$as_ac_Header'}'` = yes; then
19747 cat >>confdefs.h <<_ACEOF
19748#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19749_ACEOF
19750
19751fi
19752
19753done
19754
19755
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019756if test "${ac_cv_header_sys_types_h+set}" = set; then
19757 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19758echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19759if test "${ac_cv_header_sys_types_h+set}" = set; then
19760 echo $ECHO_N "(cached) $ECHO_C" >&6
19761fi
19762echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19763echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19764else
19765 # Is the header compilable?
19766echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19767echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19768cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019769/* confdefs.h. */
19770_ACEOF
19771cat confdefs.h >>conftest.$ac_ext
19772cat >>conftest.$ac_ext <<_ACEOF
19773/* end confdefs.h. */
19774$ac_includes_default
19775#include <sys/types.h>
19776_ACEOF
19777rm -f conftest.$ac_objext
19778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019779 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019780 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019781 grep -v '^ *+' conftest.er1 >conftest.err
19782 rm -f conftest.er1
19783 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019786 { ac_try='test -z "$ac_c_werror_flag"
19787 || test ! -s conftest.err'
19788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789 (eval $ac_try) 2>&5
19790 ac_status=$?
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); }; } &&
19793 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795 (eval $ac_try) 2>&5
19796 ac_status=$?
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; }; then
19799 ac_header_compiler=yes
19800else
19801 echo "$as_me: failed program was:" >&5
19802sed 's/^/| /' conftest.$ac_ext >&5
19803
19804ac_header_compiler=no
19805fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019807echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19808echo "${ECHO_T}$ac_header_compiler" >&6
19809
19810# Is the header present?
19811echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19812echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19813cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019814/* confdefs.h. */
19815_ACEOF
19816cat confdefs.h >>conftest.$ac_ext
19817cat >>conftest.$ac_ext <<_ACEOF
19818/* end confdefs.h. */
19819#include <sys/types.h>
19820_ACEOF
19821if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19823 ac_status=$?
19824 grep -v '^ *+' conftest.er1 >conftest.err
19825 rm -f conftest.er1
19826 cat conftest.err >&5
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); } >/dev/null; then
19829 if test -s conftest.err; then
19830 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +000019831 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019832 else
19833 ac_cpp_err=
19834 fi
19835else
19836 ac_cpp_err=yes
19837fi
19838if test -z "$ac_cpp_err"; then
19839 ac_header_preproc=yes
19840else
19841 echo "$as_me: failed program was:" >&5
19842sed 's/^/| /' conftest.$ac_ext >&5
19843
19844 ac_header_preproc=no
19845fi
19846rm -f conftest.err conftest.$ac_ext
19847echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19848echo "${ECHO_T}$ac_header_preproc" >&6
19849
19850# So? What about this header?
Reid Spencer2b51a082004-08-04 00:34:49 +000019851case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19852 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019853 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19854echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000019855 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
19856echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
19857 ac_header_preproc=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019858 ;;
Reid Spencer2b51a082004-08-04 00:34:49 +000019859 no:yes:* )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019860 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19861echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000019862 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19863echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19864 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
19865echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
19866 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
19867echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019868 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19869echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000019870 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
19871echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019872 (
19873 cat <<\_ASBOX
Reid Spencer2b51a082004-08-04 00:34:49 +000019874## ----------------------------------- ##
19875## Report this to llvmbugs@cs.uiuc.edu ##
19876## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019877_ASBOX
19878 ) |
19879 sed "s/^/$as_me: WARNING: /" >&2
19880 ;;
19881esac
19882echo "$as_me:$LINENO: checking for sys/types.h" >&5
19883echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19884if test "${ac_cv_header_sys_types_h+set}" = set; then
19885 echo $ECHO_N "(cached) $ECHO_C" >&6
19886else
19887 ac_cv_header_sys_types_h=$ac_header_preproc
19888fi
19889echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19890echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19891
19892fi
19893if test $ac_cv_header_sys_types_h = yes; then
19894 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19895else
19896 INCLUDE_SYS_TYPES_H=''
19897fi
19898
19899
19900
19901if test "${ac_cv_header_inttypes_h+set}" = set; then
19902 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19903echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19904if test "${ac_cv_header_inttypes_h+set}" = set; then
19905 echo $ECHO_N "(cached) $ECHO_C" >&6
19906fi
19907echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19908echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19909else
19910 # Is the header compilable?
19911echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19912echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19913cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019914/* confdefs.h. */
19915_ACEOF
19916cat confdefs.h >>conftest.$ac_ext
19917cat >>conftest.$ac_ext <<_ACEOF
19918/* end confdefs.h. */
19919$ac_includes_default
19920#include <inttypes.h>
19921_ACEOF
19922rm -f conftest.$ac_objext
19923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019924 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019925 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019926 grep -v '^ *+' conftest.er1 >conftest.err
19927 rm -f conftest.er1
19928 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019931 { ac_try='test -z "$ac_c_werror_flag"
19932 || test ! -s conftest.err'
19933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19934 (eval $ac_try) 2>&5
19935 ac_status=$?
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); }; } &&
19938 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940 (eval $ac_try) 2>&5
19941 ac_status=$?
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; }; then
19944 ac_header_compiler=yes
19945else
19946 echo "$as_me: failed program was:" >&5
19947sed 's/^/| /' conftest.$ac_ext >&5
19948
19949ac_header_compiler=no
19950fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019952echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19953echo "${ECHO_T}$ac_header_compiler" >&6
19954
19955# Is the header present?
19956echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19957echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19958cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019959/* confdefs.h. */
19960_ACEOF
19961cat confdefs.h >>conftest.$ac_ext
19962cat >>conftest.$ac_ext <<_ACEOF
19963/* end confdefs.h. */
19964#include <inttypes.h>
19965_ACEOF
19966if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19968 ac_status=$?
19969 grep -v '^ *+' conftest.er1 >conftest.err
19970 rm -f conftest.er1
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } >/dev/null; then
19974 if test -s conftest.err; then
19975 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +000019976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019977 else
19978 ac_cpp_err=
19979 fi
19980else
19981 ac_cpp_err=yes
19982fi
19983if test -z "$ac_cpp_err"; then
19984 ac_header_preproc=yes
19985else
19986 echo "$as_me: failed program was:" >&5
19987sed 's/^/| /' conftest.$ac_ext >&5
19988
19989 ac_header_preproc=no
19990fi
19991rm -f conftest.err conftest.$ac_ext
19992echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19993echo "${ECHO_T}$ac_header_preproc" >&6
19994
19995# So? What about this header?
Reid Spencer2b51a082004-08-04 00:34:49 +000019996case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19997 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019998 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19999echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000020000 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20001echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20002 ac_header_preproc=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020003 ;;
Reid Spencer2b51a082004-08-04 00:34:49 +000020004 no:yes:* )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020005 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20006echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000020007 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20008echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20009 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20010echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20011 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20012echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020013 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20014echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000020015 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20016echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020017 (
20018 cat <<\_ASBOX
Reid Spencer2b51a082004-08-04 00:34:49 +000020019## ----------------------------------- ##
20020## Report this to llvmbugs@cs.uiuc.edu ##
20021## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020022_ASBOX
20023 ) |
20024 sed "s/^/$as_me: WARNING: /" >&2
20025 ;;
20026esac
20027echo "$as_me:$LINENO: checking for inttypes.h" >&5
20028echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20029if test "${ac_cv_header_inttypes_h+set}" = set; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
20031else
20032 ac_cv_header_inttypes_h=$ac_header_preproc
20033fi
20034echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20035echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20036
20037fi
20038if test $ac_cv_header_inttypes_h = yes; then
20039 INCLUDE_INTTYPES_H='#include <inttypes.h>'
20040else
20041 INCLUDE_INTTYPES_H=''
20042fi
20043
20044
20045
John Criswell7ed43ad2004-07-19 16:12:29 +000020046if test "${ac_cv_header_stdint_h+set}" = set; then
20047 echo "$as_me:$LINENO: checking for stdint.h" >&5
20048echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20049if test "${ac_cv_header_stdint_h+set}" = set; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20051fi
20052echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20053echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20054else
20055 # Is the header compilable?
20056echo "$as_me:$LINENO: checking stdint.h usability" >&5
20057echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20058cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000020059/* confdefs.h. */
20060_ACEOF
20061cat confdefs.h >>conftest.$ac_ext
20062cat >>conftest.$ac_ext <<_ACEOF
20063/* end confdefs.h. */
20064$ac_includes_default
20065#include <stdint.h>
20066_ACEOF
20067rm -f conftest.$ac_objext
20068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020069 (eval $ac_compile) 2>conftest.er1
John Criswell7ed43ad2004-07-19 16:12:29 +000020070 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020071 grep -v '^ *+' conftest.er1 >conftest.err
20072 rm -f conftest.er1
20073 cat conftest.err >&5
John Criswell7ed43ad2004-07-19 16:12:29 +000020074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020076 { ac_try='test -z "$ac_c_werror_flag"
20077 || test ! -s conftest.err'
20078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079 (eval $ac_try) 2>&5
20080 ac_status=$?
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); }; } &&
20083 { ac_try='test -s conftest.$ac_objext'
John Criswell7ed43ad2004-07-19 16:12:29 +000020084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085 (eval $ac_try) 2>&5
20086 ac_status=$?
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); }; }; then
20089 ac_header_compiler=yes
20090else
20091 echo "$as_me: failed program was:" >&5
20092sed 's/^/| /' conftest.$ac_ext >&5
20093
20094ac_header_compiler=no
20095fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7ed43ad2004-07-19 16:12:29 +000020097echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20098echo "${ECHO_T}$ac_header_compiler" >&6
20099
20100# Is the header present?
20101echo "$as_me:$LINENO: checking stdint.h presence" >&5
20102echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20103cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000020104/* confdefs.h. */
20105_ACEOF
20106cat confdefs.h >>conftest.$ac_ext
20107cat >>conftest.$ac_ext <<_ACEOF
20108/* end confdefs.h. */
20109#include <stdint.h>
20110_ACEOF
20111if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20113 ac_status=$?
20114 grep -v '^ *+' conftest.er1 >conftest.err
20115 rm -f conftest.er1
20116 cat conftest.err >&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } >/dev/null; then
20119 if test -s conftest.err; then
20120 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +000020121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7ed43ad2004-07-19 16:12:29 +000020122 else
20123 ac_cpp_err=
20124 fi
20125else
20126 ac_cpp_err=yes
20127fi
20128if test -z "$ac_cpp_err"; then
20129 ac_header_preproc=yes
20130else
20131 echo "$as_me: failed program was:" >&5
20132sed 's/^/| /' conftest.$ac_ext >&5
20133
20134 ac_header_preproc=no
20135fi
20136rm -f conftest.err conftest.$ac_ext
20137echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20138echo "${ECHO_T}$ac_header_preproc" >&6
20139
20140# So? What about this header?
Reid Spencer2b51a082004-08-04 00:34:49 +000020141case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20142 yes:no: )
John Criswell7ed43ad2004-07-19 16:12:29 +000020143 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20144echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000020145 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20146echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20147 ac_header_preproc=yes
John Criswell7ed43ad2004-07-19 16:12:29 +000020148 ;;
Reid Spencer2b51a082004-08-04 00:34:49 +000020149 no:yes:* )
John Criswell7ed43ad2004-07-19 16:12:29 +000020150 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20151echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000020152 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20153echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20154 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20155echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20156 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20157echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell7ed43ad2004-07-19 16:12:29 +000020158 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20159echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000020160 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20161echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
John Criswell7ed43ad2004-07-19 16:12:29 +000020162 (
20163 cat <<\_ASBOX
Reid Spencer2b51a082004-08-04 00:34:49 +000020164## ----------------------------------- ##
20165## Report this to llvmbugs@cs.uiuc.edu ##
20166## ----------------------------------- ##
John Criswell7ed43ad2004-07-19 16:12:29 +000020167_ASBOX
20168 ) |
20169 sed "s/^/$as_me: WARNING: /" >&2
20170 ;;
20171esac
20172echo "$as_me:$LINENO: checking for stdint.h" >&5
20173echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20174if test "${ac_cv_header_stdint_h+set}" = set; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20176else
20177 ac_cv_header_stdint_h=$ac_header_preproc
20178fi
20179echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20180echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20181
20182fi
20183if test $ac_cv_header_stdint_h = yes; then
20184 INCLUDE_STDINT_H='#include <stdint.h>'
20185else
20186 INCLUDE_STDINT_H=''
20187fi
20188
20189
20190
20191
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020192
John Criswell7a73b802003-06-30 21:59:07 +000020193echo "$as_me:$LINENO: checking for pid_t" >&5
20194echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20195if test "${ac_cv_type_pid_t+set}" = set; then
20196 echo $ECHO_N "(cached) $ECHO_C" >&6
20197else
20198 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020199/* confdefs.h. */
20200_ACEOF
20201cat confdefs.h >>conftest.$ac_ext
20202cat >>conftest.$ac_ext <<_ACEOF
20203/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020204$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020205int
20206main ()
20207{
20208if ((pid_t *) 0)
20209 return 0;
20210if (sizeof (pid_t))
20211 return 0;
20212 ;
20213 return 0;
20214}
20215_ACEOF
20216rm -f conftest.$ac_objext
20217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020218 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020219 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020220 grep -v '^ *+' conftest.er1 >conftest.err
20221 rm -f conftest.er1
20222 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020225 { ac_try='test -z "$ac_c_werror_flag"
20226 || test ! -s conftest.err'
20227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20228 (eval $ac_try) 2>&5
20229 ac_status=$?
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); }; } &&
20232 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234 (eval $ac_try) 2>&5
20235 ac_status=$?
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; }; then
20238 ac_cv_type_pid_t=yes
20239else
20240 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020241sed 's/^/| /' conftest.$ac_ext >&5
20242
John Criswell7a73b802003-06-30 21:59:07 +000020243ac_cv_type_pid_t=no
20244fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020246fi
20247echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20248echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20249if test $ac_cv_type_pid_t = yes; then
20250 :
20251else
20252
20253cat >>confdefs.h <<_ACEOF
20254#define pid_t int
20255_ACEOF
20256
20257fi
20258
20259echo "$as_me:$LINENO: checking for size_t" >&5
20260echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20261if test "${ac_cv_type_size_t+set}" = set; then
20262 echo $ECHO_N "(cached) $ECHO_C" >&6
20263else
20264 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020265/* confdefs.h. */
20266_ACEOF
20267cat confdefs.h >>conftest.$ac_ext
20268cat >>conftest.$ac_ext <<_ACEOF
20269/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020270$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020271int
20272main ()
20273{
20274if ((size_t *) 0)
20275 return 0;
20276if (sizeof (size_t))
20277 return 0;
20278 ;
20279 return 0;
20280}
20281_ACEOF
20282rm -f conftest.$ac_objext
20283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020284 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020285 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020286 grep -v '^ *+' conftest.er1 >conftest.err
20287 rm -f conftest.er1
20288 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020291 { ac_try='test -z "$ac_c_werror_flag"
20292 || test ! -s conftest.err'
20293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20294 (eval $ac_try) 2>&5
20295 ac_status=$?
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); }; } &&
20298 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20300 (eval $ac_try) 2>&5
20301 ac_status=$?
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); }; }; then
20304 ac_cv_type_size_t=yes
20305else
20306 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020307sed 's/^/| /' conftest.$ac_ext >&5
20308
John Criswell7a73b802003-06-30 21:59:07 +000020309ac_cv_type_size_t=no
20310fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020312fi
20313echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20314echo "${ECHO_T}$ac_cv_type_size_t" >&6
20315if test $ac_cv_type_size_t = yes; then
20316 :
20317else
20318
20319cat >>confdefs.h <<_ACEOF
20320#define size_t unsigned
20321_ACEOF
20322
20323fi
20324
20325echo "$as_me:$LINENO: checking for int64_t" >&5
20326echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20327if test "${ac_cv_type_int64_t+set}" = set; then
20328 echo $ECHO_N "(cached) $ECHO_C" >&6
20329else
20330 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020331/* confdefs.h. */
20332_ACEOF
20333cat confdefs.h >>conftest.$ac_ext
20334cat >>conftest.$ac_ext <<_ACEOF
20335/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020336$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020337int
20338main ()
20339{
20340if ((int64_t *) 0)
20341 return 0;
20342if (sizeof (int64_t))
20343 return 0;
20344 ;
20345 return 0;
20346}
20347_ACEOF
20348rm -f conftest.$ac_objext
20349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020350 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020351 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020352 grep -v '^ *+' conftest.er1 >conftest.err
20353 rm -f conftest.er1
20354 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020357 { ac_try='test -z "$ac_c_werror_flag"
20358 || test ! -s conftest.err'
20359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360 (eval $ac_try) 2>&5
20361 ac_status=$?
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; } &&
20364 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20366 (eval $ac_try) 2>&5
20367 ac_status=$?
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); }; }; then
20370 ac_cv_type_int64_t=yes
20371else
20372 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020373sed 's/^/| /' conftest.$ac_ext >&5
20374
John Criswell7a73b802003-06-30 21:59:07 +000020375ac_cv_type_int64_t=no
20376fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020378fi
20379echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20380echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20381if test $ac_cv_type_int64_t = yes; then
20382
20383cat >>confdefs.h <<_ACEOF
20384#define HAVE_INT64_T 1
20385_ACEOF
20386
20387
20388else
20389 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20390echo "$as_me: error: Type int64_t required but not found" >&2;}
20391 { (exit 1); exit 1; }; }
20392fi
20393
20394echo "$as_me:$LINENO: checking for uint64_t" >&5
20395echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20396if test "${ac_cv_type_uint64_t+set}" = set; then
20397 echo $ECHO_N "(cached) $ECHO_C" >&6
20398else
20399 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020400/* confdefs.h. */
20401_ACEOF
20402cat confdefs.h >>conftest.$ac_ext
20403cat >>conftest.$ac_ext <<_ACEOF
20404/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020405$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020406int
20407main ()
20408{
20409if ((uint64_t *) 0)
20410 return 0;
20411if (sizeof (uint64_t))
20412 return 0;
20413 ;
20414 return 0;
20415}
20416_ACEOF
20417rm -f conftest.$ac_objext
20418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020419 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020420 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020421 grep -v '^ *+' conftest.er1 >conftest.err
20422 rm -f conftest.er1
20423 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020426 { ac_try='test -z "$ac_c_werror_flag"
20427 || test ! -s conftest.err'
20428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20429 (eval $ac_try) 2>&5
20430 ac_status=$?
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; } &&
20433 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20435 (eval $ac_try) 2>&5
20436 ac_status=$?
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); }; }; then
20439 ac_cv_type_uint64_t=yes
20440else
20441 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020442sed 's/^/| /' conftest.$ac_ext >&5
20443
John Criswell7a73b802003-06-30 21:59:07 +000020444ac_cv_type_uint64_t=no
20445fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020447fi
20448echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20449echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20450if test $ac_cv_type_uint64_t = yes; then
20451
20452cat >>confdefs.h <<_ACEOF
20453#define HAVE_UINT64_T 1
20454_ACEOF
20455
20456
20457else
20458 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20459echo "$as_me: error: Type uint64_t required but not found" >&2;}
20460 { (exit 1); exit 1; }; }
20461fi
20462
20463echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20464echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20465if test "${ac_cv_header_time+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
20467else
20468 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020469/* confdefs.h. */
20470_ACEOF
20471cat confdefs.h >>conftest.$ac_ext
20472cat >>conftest.$ac_ext <<_ACEOF
20473/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020474#include <sys/types.h>
20475#include <sys/time.h>
20476#include <time.h>
20477
John Criswell7a73b802003-06-30 21:59:07 +000020478int
20479main ()
20480{
20481if ((struct tm *) 0)
20482return 0;
20483 ;
20484 return 0;
20485}
20486_ACEOF
20487rm -f conftest.$ac_objext
20488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020489 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020490 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020491 grep -v '^ *+' conftest.er1 >conftest.err
20492 rm -f conftest.er1
20493 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020496 { ac_try='test -z "$ac_c_werror_flag"
20497 || test ! -s conftest.err'
20498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20499 (eval $ac_try) 2>&5
20500 ac_status=$?
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); }; } &&
20503 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20505 (eval $ac_try) 2>&5
20506 ac_status=$?
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); }; }; then
20509 ac_cv_header_time=yes
20510else
20511 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020512sed 's/^/| /' conftest.$ac_ext >&5
20513
John Criswell7a73b802003-06-30 21:59:07 +000020514ac_cv_header_time=no
20515fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020517fi
20518echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20519echo "${ECHO_T}$ac_cv_header_time" >&6
20520if test $ac_cv_header_time = yes; then
20521
20522cat >>confdefs.h <<\_ACEOF
20523#define TIME_WITH_SYS_TIME 1
20524_ACEOF
20525
20526fi
20527
20528echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20529echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20530if test "${ac_cv_struct_tm+set}" = set; then
20531 echo $ECHO_N "(cached) $ECHO_C" >&6
20532else
20533 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020534/* confdefs.h. */
20535_ACEOF
20536cat confdefs.h >>conftest.$ac_ext
20537cat >>conftest.$ac_ext <<_ACEOF
20538/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020539#include <sys/types.h>
20540#include <time.h>
20541
John Criswell7a73b802003-06-30 21:59:07 +000020542int
20543main ()
20544{
20545struct tm *tp; tp->tm_sec;
20546 ;
20547 return 0;
20548}
20549_ACEOF
20550rm -f conftest.$ac_objext
20551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020552 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020553 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020554 grep -v '^ *+' conftest.er1 >conftest.err
20555 rm -f conftest.er1
20556 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020559 { ac_try='test -z "$ac_c_werror_flag"
20560 || test ! -s conftest.err'
20561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562 (eval $ac_try) 2>&5
20563 ac_status=$?
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); }; } &&
20566 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20568 (eval $ac_try) 2>&5
20569 ac_status=$?
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); }; }; then
20572 ac_cv_struct_tm=time.h
20573else
20574 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020575sed 's/^/| /' conftest.$ac_ext >&5
20576
John Criswell7a73b802003-06-30 21:59:07 +000020577ac_cv_struct_tm=sys/time.h
20578fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020580fi
20581echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20582echo "${ECHO_T}$ac_cv_struct_tm" >&6
20583if test $ac_cv_struct_tm = sys/time.h; then
20584
20585cat >>confdefs.h <<\_ACEOF
20586#define TM_IN_SYS_TIME 1
20587_ACEOF
20588
20589fi
20590
20591
John Criswella0137d32003-10-13 16:22:01 +000020592
Brian Gaekeadfe28d2004-07-21 03:50:25 +000020593 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
20594echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
John Criswella0137d32003-10-13 16:22:01 +000020595
20596
20597 ac_ext=c
20598ac_cpp='$CPP $CPPFLAGS'
20599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20601ac_compiler_gnu=$ac_cv_c_compiler_gnu
20602
20603 if test "$cross_compiling" = yes; then
20604 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20605See \`config.log' for more details." >&5
20606echo "$as_me: error: cannot run test program while cross compiling
20607See \`config.log' for more details." >&2;}
20608 { (exit 1); exit 1; }; }
20609else
20610 cat >conftest.$ac_ext <<_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000020611/* confdefs.h. */
20612_ACEOF
20613cat confdefs.h >>conftest.$ac_ext
20614cat >>conftest.$ac_ext <<_ACEOF
20615/* end confdefs.h. */
20616#include <stdio.h>
20617 #include <stdlib.h>
20618int
20619main ()
20620{
20621
20622 volatile double A, B;
20623 char Buffer[100];
20624 A = 1;
20625 A /= 10.0;
20626 sprintf(Buffer, "%a", A);
20627 B = atof(Buffer);
20628 if (A != B)
20629 return (1);
20630 if (A != 0x1.999999999999ap-4)
20631 return (1);
20632 return (0);
20633 ;
20634 return 0;
20635}
20636_ACEOF
20637rm -f conftest$ac_exeext
20638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20639 (eval $ac_link) 2>&5
20640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20644 (eval $ac_try) 2>&5
20645 ac_status=$?
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; }; then
20648 ac_c_printf_a=yes
20649else
20650 echo "$as_me: program exited with status $ac_status" >&5
20651echo "$as_me: failed program was:" >&5
20652sed 's/^/| /' conftest.$ac_ext >&5
20653
20654( exit $ac_status )
20655ac_c_printf_a=no
20656fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020657rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000020658fi
20659 ac_ext=c
20660ac_cpp='$CPP $CPPFLAGS'
20661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20663ac_compiler_gnu=$ac_cv_c_compiler_gnu
20664
Brian Gaekeadfe28d2004-07-21 03:50:25 +000020665 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20666echo "${ECHO_T}$ac_c_printf_a" >&6
John Criswella0137d32003-10-13 16:22:01 +000020667 if test "$ac_c_printf_a" = "yes"; then
20668
20669cat >>confdefs.h <<\_ACEOF
20670#define HAVE_PRINTF_A 1
20671_ACEOF
20672
20673 fi
20674
20675
John Criswell0021c312004-02-13 21:57:29 +000020676echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20677echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20678if test "${ac_cv_c_bigendian+set}" = set; then
20679 echo $ECHO_N "(cached) $ECHO_C" >&6
20680else
20681 # See if sys/param.h defines the BYTE_ORDER macro.
20682cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020683/* confdefs.h. */
20684_ACEOF
20685cat confdefs.h >>conftest.$ac_ext
20686cat >>conftest.$ac_ext <<_ACEOF
20687/* end confdefs.h. */
20688#include <sys/types.h>
20689#include <sys/param.h>
20690
20691int
20692main ()
20693{
20694#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20695 bogus endian macros
20696#endif
20697
20698 ;
20699 return 0;
20700}
20701_ACEOF
20702rm -f conftest.$ac_objext
20703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020704 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000020705 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020706 grep -v '^ *+' conftest.er1 >conftest.err
20707 rm -f conftest.er1
20708 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000020709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020711 { ac_try='test -z "$ac_c_werror_flag"
20712 || test ! -s conftest.err'
20713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20714 (eval $ac_try) 2>&5
20715 ac_status=$?
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); }; } &&
20718 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000020719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20720 (eval $ac_try) 2>&5
20721 ac_status=$?
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); }; }; then
20724 # It does; now see whether it defined to BIG_ENDIAN or not.
20725cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020726/* confdefs.h. */
20727_ACEOF
20728cat confdefs.h >>conftest.$ac_ext
20729cat >>conftest.$ac_ext <<_ACEOF
20730/* end confdefs.h. */
20731#include <sys/types.h>
20732#include <sys/param.h>
20733
20734int
20735main ()
20736{
20737#if BYTE_ORDER != BIG_ENDIAN
20738 not big endian
20739#endif
20740
20741 ;
20742 return 0;
20743}
20744_ACEOF
20745rm -f conftest.$ac_objext
20746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020747 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000020748 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020749 grep -v '^ *+' conftest.er1 >conftest.err
20750 rm -f conftest.er1
20751 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000020752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020754 { ac_try='test -z "$ac_c_werror_flag"
20755 || test ! -s conftest.err'
20756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20757 (eval $ac_try) 2>&5
20758 ac_status=$?
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); }; } &&
20761 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000020762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20763 (eval $ac_try) 2>&5
20764 ac_status=$?
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); }; }; then
20767 ac_cv_c_bigendian=yes
20768else
20769 echo "$as_me: failed program was:" >&5
20770sed 's/^/| /' conftest.$ac_ext >&5
20771
20772ac_cv_c_bigendian=no
20773fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020775else
20776 echo "$as_me: failed program was:" >&5
20777sed 's/^/| /' conftest.$ac_ext >&5
20778
20779# It does not; compile a test program.
20780if test "$cross_compiling" = yes; then
20781 # try to guess the endianness by grepping values into an object file
20782 ac_cv_c_bigendian=unknown
20783 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020784/* confdefs.h. */
20785_ACEOF
20786cat confdefs.h >>conftest.$ac_ext
20787cat >>conftest.$ac_ext <<_ACEOF
20788/* end confdefs.h. */
20789short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20790short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20791void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20792short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20793short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20794void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20795int
20796main ()
20797{
20798 _ascii (); _ebcdic ();
20799 ;
20800 return 0;
20801}
20802_ACEOF
20803rm -f conftest.$ac_objext
20804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020805 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000020806 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020807 grep -v '^ *+' conftest.er1 >conftest.err
20808 rm -f conftest.er1
20809 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000020810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020812 { ac_try='test -z "$ac_c_werror_flag"
20813 || test ! -s conftest.err'
20814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20815 (eval $ac_try) 2>&5
20816 ac_status=$?
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); }; } &&
20819 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000020820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20821 (eval $ac_try) 2>&5
20822 ac_status=$?
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); }; }; then
20825 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20826 ac_cv_c_bigendian=yes
20827fi
20828if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20829 if test "$ac_cv_c_bigendian" = unknown; then
20830 ac_cv_c_bigendian=no
20831 else
20832 # finding both strings is unlikely to happen, but who knows?
20833 ac_cv_c_bigendian=unknown
20834 fi
20835fi
20836else
20837 echo "$as_me: failed program was:" >&5
20838sed 's/^/| /' conftest.$ac_ext >&5
20839
20840fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020842else
20843 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020844/* confdefs.h. */
20845_ACEOF
20846cat confdefs.h >>conftest.$ac_ext
20847cat >>conftest.$ac_ext <<_ACEOF
20848/* end confdefs.h. */
20849int
20850main ()
20851{
20852 /* Are we little or big endian? From Harbison&Steele. */
20853 union
20854 {
20855 long l;
20856 char c[sizeof (long)];
20857 } u;
20858 u.l = 1;
20859 exit (u.c[sizeof (long) - 1] == 1);
20860}
20861_ACEOF
20862rm -f conftest$ac_exeext
20863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20864 (eval $ac_link) 2>&5
20865 ac_status=$?
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20869 (eval $ac_try) 2>&5
20870 ac_status=$?
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); }; }; then
20873 ac_cv_c_bigendian=no
20874else
20875 echo "$as_me: program exited with status $ac_status" >&5
20876echo "$as_me: failed program was:" >&5
20877sed 's/^/| /' conftest.$ac_ext >&5
20878
20879( exit $ac_status )
20880ac_cv_c_bigendian=yes
20881fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020882rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020883fi
20884fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020886fi
20887echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20888echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20889case $ac_cv_c_bigendian in
20890 yes)
20891 ENDIAN=big
20892 ;;
20893 no)
20894 ENDIAN=little
20895 ;;
20896 *)
20897 { { echo "$as_me:$LINENO: error: unknown endianness
20898presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20899echo "$as_me: error: unknown endianness
20900presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20901 { (exit 1); exit 1; }; } ;;
20902esac
20903
20904
John Criswell7a73b802003-06-30 21:59:07 +000020905echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20906echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20907if test "${ac_cv_cxx_namespaces+set}" = set; then
20908 echo $ECHO_N "(cached) $ECHO_C" >&6
20909else
20910
20911
20912 ac_ext=cc
20913ac_cpp='$CXXCPP $CPPFLAGS'
20914ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20915ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20916ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20917
20918 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020919/* confdefs.h. */
20920_ACEOF
20921cat confdefs.h >>conftest.$ac_ext
20922cat >>conftest.$ac_ext <<_ACEOF
20923/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020924namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020925int
20926main ()
20927{
20928using namespace Outer::Inner; return i;
20929 ;
20930 return 0;
20931}
20932_ACEOF
20933rm -f conftest.$ac_objext
20934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020935 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020936 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020937 grep -v '^ *+' conftest.er1 >conftest.err
20938 rm -f conftest.er1
20939 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020942 { ac_try='test -z "$ac_cxx_werror_flag"
20943 || test ! -s conftest.err'
20944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20945 (eval $ac_try) 2>&5
20946 ac_status=$?
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); }; } &&
20949 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20951 (eval $ac_try) 2>&5
20952 ac_status=$?
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); }; }; then
20955 ac_cv_cxx_namespaces=yes
20956else
20957 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020958sed 's/^/| /' conftest.$ac_ext >&5
20959
John Criswell7a73b802003-06-30 21:59:07 +000020960ac_cv_cxx_namespaces=no
20961fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020963 ac_ext=c
20964ac_cpp='$CPP $CPPFLAGS'
20965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20967ac_compiler_gnu=$ac_cv_c_compiler_gnu
20968
20969
20970fi
20971echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20972echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20973if test "$ac_cv_cxx_namespaces" = yes; then
20974
20975cat >>confdefs.h <<\_ACEOF
20976#define HAVE_NAMESPACES
20977_ACEOF
20978
20979fi
20980
Brian Gaeke90583492003-11-10 03:06:28 +000020981echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20982echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20983if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000020984 echo $ECHO_N "(cached) $ECHO_C" >&6
20985else
20986
20987
20988
20989 ac_ext=cc
20990ac_cpp='$CXXCPP $CPPFLAGS'
20991ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20992ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20993ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20994
20995 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020996/* confdefs.h. */
20997_ACEOF
20998cat confdefs.h >>conftest.$ac_ext
20999cat >>conftest.$ac_ext <<_ACEOF
21000/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021001#include <ext/hash_map>
21002#ifdef HAVE_NAMESPACES
21003using namespace std;
21004#endif
John Criswell7a73b802003-06-30 21:59:07 +000021005int
21006main ()
21007{
Brian Gaeke90583492003-11-10 03:06:28 +000021008hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000021009 ;
21010 return 0;
21011}
21012_ACEOF
21013rm -f conftest.$ac_objext
21014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021015 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021016 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021017 grep -v '^ *+' conftest.er1 >conftest.err
21018 rm -f conftest.er1
21019 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021022 { ac_try='test -z "$ac_cxx_werror_flag"
21023 || test ! -s conftest.err'
21024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025 (eval $ac_try) 2>&5
21026 ac_status=$?
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; } &&
21029 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21031 (eval $ac_try) 2>&5
21032 ac_status=$?
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021035 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000021036else
21037 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021038sed 's/^/| /' conftest.$ac_ext >&5
21039
Brian Gaeke90583492003-11-10 03:06:28 +000021040ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021041fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021043 ac_ext=c
21044ac_cpp='$CPP $CPPFLAGS'
21045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21047ac_compiler_gnu=$ac_cv_c_compiler_gnu
21048
John Criswell7a73b802003-06-30 21:59:07 +000021049fi
Brian Gaeke90583492003-11-10 03:06:28 +000021050echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21051echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021052 HAVE_STD_EXT_HASH_MAP=0
21053 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21054 then
21055 HAVE_STD_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000021056 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021057
Brian Gaeke90583492003-11-10 03:06:28 +000021058 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21059echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21060if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21061 echo $ECHO_N "(cached) $ECHO_C" >&6
21062else
21063
21064
21065
21066 ac_ext=cc
21067ac_cpp='$CXXCPP $CPPFLAGS'
21068ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21069ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21070ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21071
21072 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021073/* confdefs.h. */
21074_ACEOF
21075cat confdefs.h >>conftest.$ac_ext
21076cat >>conftest.$ac_ext <<_ACEOF
21077/* end confdefs.h. */
21078#include <ext/hash_map>
21079#ifdef HAVE_NAMESPACES
21080using namespace __gnu_cxx;
21081#endif
21082int
21083main ()
21084{
21085hash_map<int,int> t;
21086 ;
21087 return 0;
21088}
21089_ACEOF
21090rm -f conftest.$ac_objext
21091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021092 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021093 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021094 grep -v '^ *+' conftest.er1 >conftest.err
21095 rm -f conftest.er1
21096 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021099 { ac_try='test -z "$ac_cxx_werror_flag"
21100 || test ! -s conftest.err'
21101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21102 (eval $ac_try) 2>&5
21103 ac_status=$?
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); }; } &&
21106 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21108 (eval $ac_try) 2>&5
21109 ac_status=$?
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); }; }; then
21112 ac_cv_cxx_have_gnu_ext_hash_map=yes
21113else
21114 echo "$as_me: failed program was:" >&5
21115sed 's/^/| /' conftest.$ac_ext >&5
21116
21117ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021118fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021120 ac_ext=c
21121ac_cpp='$CPP $CPPFLAGS'
21122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21124ac_compiler_gnu=$ac_cv_c_compiler_gnu
21125
21126fi
21127echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21128echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021129 HAVE_GNU_EXT_HASH_MAP=0
21130 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21131 then
21132 HAVE_GNU_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000021133 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021134
Brian Gaeke90583492003-11-10 03:06:28 +000021135 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21136echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21137if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21138 echo $ECHO_N "(cached) $ECHO_C" >&6
21139else
John Criswell7a73b802003-06-30 21:59:07 +000021140
Brian Gaeke90583492003-11-10 03:06:28 +000021141
21142
21143 ac_ext=cc
21144ac_cpp='$CXXCPP $CPPFLAGS'
21145ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21146ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21147ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21148
21149 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021150/* confdefs.h. */
21151_ACEOF
21152cat confdefs.h >>conftest.$ac_ext
21153cat >>conftest.$ac_ext <<_ACEOF
21154/* end confdefs.h. */
21155#include <hash_map>
21156int
21157main ()
21158{
21159hash_map<int,int> t;
21160 ;
21161 return 0;
21162}
21163_ACEOF
21164rm -f conftest.$ac_objext
21165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021166 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021167 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021168 grep -v '^ *+' conftest.er1 >conftest.err
21169 rm -f conftest.er1
21170 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021173 { ac_try='test -z "$ac_cxx_werror_flag"
21174 || test ! -s conftest.err'
21175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176 (eval $ac_try) 2>&5
21177 ac_status=$?
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); }; } &&
21180 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182 (eval $ac_try) 2>&5
21183 ac_status=$?
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); }; }; then
21186 ac_cv_cxx_have_global_hash_map=yes
21187else
21188 echo "$as_me: failed program was:" >&5
21189sed 's/^/| /' conftest.$ac_ext >&5
21190
21191ac_cv_cxx_have_global_hash_map=no
21192fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021194 ac_ext=c
21195ac_cpp='$CPP $CPPFLAGS'
21196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21198ac_compiler_gnu=$ac_cv_c_compiler_gnu
21199
21200fi
21201echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21202echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021203 HAVE_GLOBAL_HASH_MAP=0
21204 if test "$ac_cv_cxx_have_global_hash_map" = yes
21205 then
21206 HAVE_GLOBAL_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000021207 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021208
Brian Gaeke90583492003-11-10 03:06:28 +000021209echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21210echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21211if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000021212 echo $ECHO_N "(cached) $ECHO_C" >&6
21213else
21214
21215
21216
21217 ac_ext=cc
21218ac_cpp='$CXXCPP $CPPFLAGS'
21219ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21220ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21221ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21222
21223 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021224/* confdefs.h. */
21225_ACEOF
21226cat confdefs.h >>conftest.$ac_ext
21227cat >>conftest.$ac_ext <<_ACEOF
21228/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021229#include <ext/hash_set>
21230#ifdef HAVE_NAMESPACES
21231using namespace std;
21232#endif
John Criswell7a73b802003-06-30 21:59:07 +000021233int
21234main ()
21235{
Brian Gaeke90583492003-11-10 03:06:28 +000021236hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000021237 ;
21238 return 0;
21239}
21240_ACEOF
21241rm -f conftest.$ac_objext
21242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021243 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021244 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021245 grep -v '^ *+' conftest.er1 >conftest.err
21246 rm -f conftest.er1
21247 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021250 { ac_try='test -z "$ac_cxx_werror_flag"
21251 || test ! -s conftest.err'
21252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21253 (eval $ac_try) 2>&5
21254 ac_status=$?
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); }; } &&
21257 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21259 (eval $ac_try) 2>&5
21260 ac_status=$?
21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021263 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021264else
21265 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021266sed 's/^/| /' conftest.$ac_ext >&5
21267
Brian Gaeke90583492003-11-10 03:06:28 +000021268ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021269fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021271 ac_ext=c
21272ac_cpp='$CPP $CPPFLAGS'
21273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21275ac_compiler_gnu=$ac_cv_c_compiler_gnu
21276
21277fi
21278echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21279echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021280 HAVE_STD_EXT_HASH_SET=0
21281 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21282 then
21283 HAVE_STD_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000021284 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021285
Brian Gaeke90583492003-11-10 03:06:28 +000021286 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21287echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21288if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21289 echo $ECHO_N "(cached) $ECHO_C" >&6
21290else
21291
21292
21293
21294 ac_ext=cc
21295ac_cpp='$CXXCPP $CPPFLAGS'
21296ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21297ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21298ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21299
John Criswell7a73b802003-06-30 21:59:07 +000021300 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021301/* confdefs.h. */
21302_ACEOF
21303cat confdefs.h >>conftest.$ac_ext
21304cat >>conftest.$ac_ext <<_ACEOF
21305/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021306#include <ext/hash_set>
21307#ifdef HAVE_NAMESPACES
21308using namespace __gnu_cxx;
21309#endif
John Criswell7a73b802003-06-30 21:59:07 +000021310int
21311main ()
21312{
Brian Gaeke90583492003-11-10 03:06:28 +000021313hash_set<int> t;
21314 ;
21315 return 0;
21316}
21317_ACEOF
21318rm -f conftest.$ac_objext
21319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021320 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021321 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021322 grep -v '^ *+' conftest.er1 >conftest.err
21323 rm -f conftest.er1
21324 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021327 { ac_try='test -z "$ac_cxx_werror_flag"
21328 || test ! -s conftest.err'
21329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21330 (eval $ac_try) 2>&5
21331 ac_status=$?
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); }; } &&
21334 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21336 (eval $ac_try) 2>&5
21337 ac_status=$?
21338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339 (exit $ac_status); }; }; then
21340 ac_cv_cxx_have_gnu_ext_hash_set=yes
21341else
21342 echo "$as_me: failed program was:" >&5
21343sed 's/^/| /' conftest.$ac_ext >&5
21344
21345ac_cv_cxx_have_gnu_ext_hash_set=no
21346fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021348 ac_ext=c
21349ac_cpp='$CPP $CPPFLAGS'
21350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21352ac_compiler_gnu=$ac_cv_c_compiler_gnu
21353
21354fi
21355echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21356echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021357 HAVE_GNU_EXT_HASH_SET=0
21358 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21359 then
21360 HAVE_GNU_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000021361 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021362
Brian Gaeke90583492003-11-10 03:06:28 +000021363 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21364echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21365if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21366 echo $ECHO_N "(cached) $ECHO_C" >&6
21367else
21368
21369
21370
21371 ac_ext=cc
21372ac_cpp='$CXXCPP $CPPFLAGS'
21373ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21374ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21375ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21376
21377 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021378/* confdefs.h. */
21379_ACEOF
21380cat confdefs.h >>conftest.$ac_ext
21381cat >>conftest.$ac_ext <<_ACEOF
21382/* end confdefs.h. */
21383#include <hash_set>
21384int
21385main ()
21386{
John Criswell7a73b802003-06-30 21:59:07 +000021387hash_set<int> t; return 0;
21388 ;
21389 return 0;
21390}
21391_ACEOF
21392rm -f conftest.$ac_objext
21393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021394 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021395 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021396 grep -v '^ *+' conftest.er1 >conftest.err
21397 rm -f conftest.er1
21398 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021401 { ac_try='test -z "$ac_cxx_werror_flag"
21402 || test ! -s conftest.err'
21403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21404 (eval $ac_try) 2>&5
21405 ac_status=$?
21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407 (exit $ac_status); }; } &&
21408 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21410 (eval $ac_try) 2>&5
21411 ac_status=$?
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021414 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021415else
21416 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021417sed 's/^/| /' conftest.$ac_ext >&5
21418
Brian Gaeke90583492003-11-10 03:06:28 +000021419ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021420fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021422 ac_ext=c
21423ac_cpp='$CPP $CPPFLAGS'
21424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21426ac_compiler_gnu=$ac_cv_c_compiler_gnu
21427
John Criswell7a73b802003-06-30 21:59:07 +000021428fi
Brian Gaeke90583492003-11-10 03:06:28 +000021429echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21430echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021431 HAVE_GLOBAL_HASH_SET=0
21432 if test "$ac_cv_cxx_have_global_hash_set" = yes
21433 then
21434 HAVE_GLOBAL_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000021435 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021436
John Criswell7a73b802003-06-30 21:59:07 +000021437echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21438echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21439if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21440 echo $ECHO_N "(cached) $ECHO_C" >&6
21441else
21442
21443
21444
21445 ac_ext=cc
21446ac_cpp='$CXXCPP $CPPFLAGS'
21447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21450
21451 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021452/* confdefs.h. */
21453_ACEOF
21454cat confdefs.h >>conftest.$ac_ext
21455cat >>conftest.$ac_ext <<_ACEOF
21456/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021457#include <iterator>
21458#ifdef HAVE_NAMESPACES
21459using namespace std;
21460#endif
John Criswell7a73b802003-06-30 21:59:07 +000021461int
21462main ()
21463{
21464iterator<int,int,int> t; return 0;
21465 ;
21466 return 0;
21467}
21468_ACEOF
21469rm -f conftest.$ac_objext
21470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021471 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021472 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021473 grep -v '^ *+' conftest.er1 >conftest.err
21474 rm -f conftest.er1
21475 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021478 { ac_try='test -z "$ac_cxx_werror_flag"
21479 || test ! -s conftest.err'
21480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21481 (eval $ac_try) 2>&5
21482 ac_status=$?
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); }; } &&
21485 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21487 (eval $ac_try) 2>&5
21488 ac_status=$?
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); }; }; then
21491 ac_cv_cxx_have_std_iterator=yes
21492else
21493 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021494sed 's/^/| /' conftest.$ac_ext >&5
21495
John Criswell7a73b802003-06-30 21:59:07 +000021496ac_cv_cxx_have_std_iterator=no
21497fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021499 ac_ext=c
21500ac_cpp='$CPP $CPPFLAGS'
21501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21503ac_compiler_gnu=$ac_cv_c_compiler_gnu
21504
21505
21506fi
21507echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21508echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021509HAVE_STD_ITERATOR=0
21510if test "$ac_cv_cxx_have_std_iterator" = yes
21511then
21512 HAVE_STD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021513fi
21514
21515echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21516echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21517if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21518 echo $ECHO_N "(cached) $ECHO_C" >&6
21519else
21520
21521
21522
21523 ac_ext=cc
21524ac_cpp='$CXXCPP $CPPFLAGS'
21525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21528
21529 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021530/* confdefs.h. */
21531_ACEOF
21532cat confdefs.h >>conftest.$ac_ext
21533cat >>conftest.$ac_ext <<_ACEOF
21534/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021535#include <iterator>
21536#ifdef HAVE_NAMESPACES
21537using namespace std;
21538#endif
John Criswell7a73b802003-06-30 21:59:07 +000021539int
21540main ()
21541{
John Criswellc78022e2003-07-29 19:11:58 +000021542bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021543 ;
21544 return 0;
21545}
21546_ACEOF
21547rm -f conftest.$ac_objext
21548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021549 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021550 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021551 grep -v '^ *+' conftest.er1 >conftest.err
21552 rm -f conftest.er1
21553 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021556 { ac_try='test -z "$ac_cxx_werror_flag"
21557 || test ! -s conftest.err'
21558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21559 (eval $ac_try) 2>&5
21560 ac_status=$?
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); }; } &&
21563 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21565 (eval $ac_try) 2>&5
21566 ac_status=$?
21567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); }; }; then
21569 ac_cv_cxx_have_bi_iterator=yes
21570else
21571 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021572sed 's/^/| /' conftest.$ac_ext >&5
21573
John Criswell7a73b802003-06-30 21:59:07 +000021574ac_cv_cxx_have_bi_iterator=no
21575fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021577 ac_ext=c
21578ac_cpp='$CPP $CPPFLAGS'
21579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21581ac_compiler_gnu=$ac_cv_c_compiler_gnu
21582
21583
21584fi
21585echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21586echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021587HAVE_BI_ITERATOR=0
21588if test "$ac_cv_cxx_have_bi_iterator" = yes
21589then
21590 HAVE_BI_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021591fi
21592
21593echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21594echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21595if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21596 echo $ECHO_N "(cached) $ECHO_C" >&6
21597else
21598
21599
21600
21601 ac_ext=cc
21602ac_cpp='$CXXCPP $CPPFLAGS'
21603ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21604ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21605ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21606
21607 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021608/* confdefs.h. */
21609_ACEOF
21610cat confdefs.h >>conftest.$ac_ext
21611cat >>conftest.$ac_ext <<_ACEOF
21612/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021613#include <iterator>
21614#ifdef HAVE_NAMESPACES
21615using namespace std;
21616#endif
John Criswell7a73b802003-06-30 21:59:07 +000021617int
21618main ()
21619{
John Criswellc78022e2003-07-29 19:11:58 +000021620forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021621 ;
21622 return 0;
21623}
21624_ACEOF
21625rm -f conftest.$ac_objext
21626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021627 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021628 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021629 grep -v '^ *+' conftest.er1 >conftest.err
21630 rm -f conftest.er1
21631 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021634 { ac_try='test -z "$ac_cxx_werror_flag"
21635 || test ! -s conftest.err'
21636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21637 (eval $ac_try) 2>&5
21638 ac_status=$?
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); }; } &&
21641 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643 (eval $ac_try) 2>&5
21644 ac_status=$?
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); }; }; then
21647 ac_cv_cxx_have_fwd_iterator=yes
21648else
21649 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021650sed 's/^/| /' conftest.$ac_ext >&5
21651
John Criswell7a73b802003-06-30 21:59:07 +000021652ac_cv_cxx_have_fwd_iterator=no
21653fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021655 ac_ext=c
21656ac_cpp='$CPP $CPPFLAGS'
21657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21659ac_compiler_gnu=$ac_cv_c_compiler_gnu
21660
21661
21662fi
21663echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21664echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021665HAVE_FWD_ITERATOR=0
21666if test "$ac_cv_cxx_have_fwd_iterator" = yes
21667then
21668 HAVE_FWD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021669fi
21670
21671
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021672
21673echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21674echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21675if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21676 echo $ECHO_N "(cached) $ECHO_C" >&6
21677else
21678 ac_ext=cc
21679ac_cpp='$CXXCPP $CPPFLAGS'
21680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21683
21684 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021685/* confdefs.h. */
21686_ACEOF
21687cat confdefs.h >>conftest.$ac_ext
21688cat >>conftest.$ac_ext <<_ACEOF
21689/* end confdefs.h. */
21690#include <math.h>
21691 int foo(float f) {return isnan(f);}
21692_ACEOF
21693rm -f conftest.$ac_objext
21694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021695 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021696 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021697 grep -v '^ *+' conftest.er1 >conftest.err
21698 rm -f conftest.er1
21699 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021702 { ac_try='test -z "$ac_cxx_werror_flag"
21703 || test ! -s conftest.err'
21704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21705 (eval $ac_try) 2>&5
21706 ac_status=$?
21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); }; } &&
21709 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21711 (eval $ac_try) 2>&5
21712 ac_status=$?
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); }; }; then
21715 ac_cv_func_isnan_in_math_h=yes
21716else
21717 echo "$as_me: failed program was:" >&5
21718sed 's/^/| /' conftest.$ac_ext >&5
21719
21720ac_cv_func_isnan_in_math_h=no
21721fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021723 ac_ext=c
21724ac_cpp='$CPP $CPPFLAGS'
21725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21727ac_compiler_gnu=$ac_cv_c_compiler_gnu
21728
21729fi
21730echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
21731echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
21732 if test "$ac_cv_func_isnan_in_math_h" = "yes"
21733 then
21734
21735cat >>confdefs.h <<\_ACEOF
21736#define HAVE_ISNAN_IN_MATH_H 1
21737_ACEOF
21738
21739 fi
21740echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
21741echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
21742if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
21743 echo $ECHO_N "(cached) $ECHO_C" >&6
21744else
21745 ac_ext=cc
21746ac_cpp='$CXXCPP $CPPFLAGS'
21747ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21748ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21749ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21750
21751 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021752/* confdefs.h. */
21753_ACEOF
21754cat confdefs.h >>conftest.$ac_ext
21755cat >>conftest.$ac_ext <<_ACEOF
21756/* end confdefs.h. */
21757#include <cmath>
21758 int foo(float f) {return isnan(f);}
21759_ACEOF
21760rm -f conftest.$ac_objext
21761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021762 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021763 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021764 grep -v '^ *+' conftest.er1 >conftest.err
21765 rm -f conftest.er1
21766 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021769 { ac_try='test -z "$ac_cxx_werror_flag"
21770 || test ! -s conftest.err'
21771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21772 (eval $ac_try) 2>&5
21773 ac_status=$?
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); }; } &&
21776 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21778 (eval $ac_try) 2>&5
21779 ac_status=$?
21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781 (exit $ac_status); }; }; then
21782 ac_cv_func_isnan_in_cmath=yes
21783else
21784 echo "$as_me: failed program was:" >&5
21785sed 's/^/| /' conftest.$ac_ext >&5
21786
21787ac_cv_func_isnan_in_cmath=no
21788fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021790 ac_ext=c
21791ac_cpp='$CPP $CPPFLAGS'
21792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21794ac_compiler_gnu=$ac_cv_c_compiler_gnu
21795
21796fi
21797echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21798echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
21799 if test "$ac_cv_func_isnan_in_cmath" = "yes"
21800 then
21801
21802cat >>confdefs.h <<\_ACEOF
21803#define HAVE_ISNAN_IN_CMATH 1
21804_ACEOF
21805
21806 fi
21807echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21808echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
21809if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21811else
21812 ac_ext=cc
21813ac_cpp='$CXXCPP $CPPFLAGS'
21814ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21815ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21816ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21817
21818 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021819/* confdefs.h. */
21820_ACEOF
21821cat confdefs.h >>conftest.$ac_ext
21822cat >>conftest.$ac_ext <<_ACEOF
21823/* end confdefs.h. */
21824#include <cmath>
21825 using std::isnan; int foo(float f) {return isnan(f);}
21826_ACEOF
21827rm -f conftest.$ac_objext
21828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021829 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021830 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021831 grep -v '^ *+' conftest.er1 >conftest.err
21832 rm -f conftest.er1
21833 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021836 { ac_try='test -z "$ac_cxx_werror_flag"
21837 || test ! -s conftest.err'
21838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21839 (eval $ac_try) 2>&5
21840 ac_status=$?
21841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842 (exit $ac_status); }; } &&
21843 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21845 (eval $ac_try) 2>&5
21846 ac_status=$?
21847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); }; }; then
21849 ac_cv_func_std_isnan_in_cmath=yes
21850else
21851 echo "$as_me: failed program was:" >&5
21852sed 's/^/| /' conftest.$ac_ext >&5
21853
21854ac_cv_func_std_isnan_in_cmath=no
21855fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021857 ac_ext=c
21858ac_cpp='$CPP $CPPFLAGS'
21859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21861ac_compiler_gnu=$ac_cv_c_compiler_gnu
21862
21863fi
21864echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21865echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
21866 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
21867 then
21868
21869cat >>confdefs.h <<\_ACEOF
21870#define HAVE_STD_ISNAN_IN_CMATH 1
21871_ACEOF
21872
21873 fi
21874
21875
Brian Gaeke52a551d2004-07-21 03:14:12 +000021876echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21877echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
21878if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21879 echo $ECHO_N "(cached) $ECHO_C" >&6
21880else
21881 ac_ext=cc
21882ac_cpp='$CXXCPP $CPPFLAGS'
21883ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21884ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21885ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21886
21887 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021888/* confdefs.h. */
21889_ACEOF
21890cat confdefs.h >>conftest.$ac_ext
21891cat >>conftest.$ac_ext <<_ACEOF
21892/* end confdefs.h. */
21893#include <math.h>
21894 int foo(float f) {return isinf(f);}
21895_ACEOF
21896rm -f conftest.$ac_objext
21897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021898 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000021899 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021900 grep -v '^ *+' conftest.er1 >conftest.err
21901 rm -f conftest.er1
21902 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000021903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021905 { ac_try='test -z "$ac_cxx_werror_flag"
21906 || test ! -s conftest.err'
21907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21908 (eval $ac_try) 2>&5
21909 ac_status=$?
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); }; } &&
21912 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000021913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21914 (eval $ac_try) 2>&5
21915 ac_status=$?
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); }; }; then
21918 ac_cv_func_isinf_in_math_h=yes
21919else
21920 echo "$as_me: failed program was:" >&5
21921sed 's/^/| /' conftest.$ac_ext >&5
21922
21923ac_cv_func_isinf_in_math_h=no
21924fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000021926 ac_ext=c
21927ac_cpp='$CPP $CPPFLAGS'
21928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21930ac_compiler_gnu=$ac_cv_c_compiler_gnu
21931
21932fi
21933echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21934echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21935 if test "$ac_cv_func_isinf_in_math_h" = "yes"
21936 then
21937
21938cat >>confdefs.h <<\_ACEOF
21939#define HAVE_ISINF_IN_MATH_H 1
21940_ACEOF
21941
21942 fi
21943echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21944echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21945if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21946 echo $ECHO_N "(cached) $ECHO_C" >&6
21947else
21948 ac_ext=cc
21949ac_cpp='$CXXCPP $CPPFLAGS'
21950ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21951ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21952ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21953
21954 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021955/* confdefs.h. */
21956_ACEOF
21957cat confdefs.h >>conftest.$ac_ext
21958cat >>conftest.$ac_ext <<_ACEOF
21959/* end confdefs.h. */
21960#include <cmath>
21961 int foo(float f) {return isinf(f);}
21962_ACEOF
21963rm -f conftest.$ac_objext
21964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021965 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000021966 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021967 grep -v '^ *+' conftest.er1 >conftest.err
21968 rm -f conftest.er1
21969 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000021970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021972 { ac_try='test -z "$ac_cxx_werror_flag"
21973 || test ! -s conftest.err'
21974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975 (eval $ac_try) 2>&5
21976 ac_status=$?
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); }; } &&
21979 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000021980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21981 (eval $ac_try) 2>&5
21982 ac_status=$?
21983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); }; }; then
21985 ac_cv_func_isinf_in_cmath=yes
21986else
21987 echo "$as_me: failed program was:" >&5
21988sed 's/^/| /' conftest.$ac_ext >&5
21989
21990ac_cv_func_isinf_in_cmath=no
21991fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000021993 ac_ext=c
21994ac_cpp='$CPP $CPPFLAGS'
21995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21997ac_compiler_gnu=$ac_cv_c_compiler_gnu
21998
21999fi
22000echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22001echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22002 if test "$ac_cv_func_isinf_in_cmath" = "yes"
22003 then
22004
22005cat >>confdefs.h <<\_ACEOF
22006#define HAVE_ISINF_IN_CMATH 1
22007_ACEOF
22008
22009 fi
22010echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22011echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22012if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22013 echo $ECHO_N "(cached) $ECHO_C" >&6
22014else
22015 ac_ext=cc
22016ac_cpp='$CXXCPP $CPPFLAGS'
22017ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22018ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22019ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22020
22021 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022022/* confdefs.h. */
22023_ACEOF
22024cat confdefs.h >>conftest.$ac_ext
22025cat >>conftest.$ac_ext <<_ACEOF
22026/* end confdefs.h. */
22027#include <cmath>
22028 using std::isinf; int foo(float f) {return isinf(f);}
22029_ACEOF
22030rm -f conftest.$ac_objext
22031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022032 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022033 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022034 grep -v '^ *+' conftest.er1 >conftest.err
22035 rm -f conftest.er1
22036 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022039 { ac_try='test -z "$ac_cxx_werror_flag"
22040 || test ! -s conftest.err'
22041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22042 (eval $ac_try) 2>&5
22043 ac_status=$?
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); }; } &&
22046 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22048 (eval $ac_try) 2>&5
22049 ac_status=$?
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); }; }; then
22052 ac_cv_func_std_isinf_in_cmath=yes
22053else
22054 echo "$as_me: failed program was:" >&5
22055sed 's/^/| /' conftest.$ac_ext >&5
22056
22057ac_cv_func_std_isinf_in_cmath=no
22058fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000022060 ac_ext=c
22061ac_cpp='$CPP $CPPFLAGS'
22062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22064ac_compiler_gnu=$ac_cv_c_compiler_gnu
22065
22066fi
22067echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22068echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22069 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22070 then
22071
22072cat >>confdefs.h <<\_ACEOF
22073#define HAVE_STD_ISINF_IN_CMATH 1
22074_ACEOF
22075
22076 fi
Brian Gaeked59a6472004-07-21 03:33:58 +000022077echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22078echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22079if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22080 echo $ECHO_N "(cached) $ECHO_C" >&6
22081else
22082 ac_ext=cc
22083ac_cpp='$CXXCPP $CPPFLAGS'
22084ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22085ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22086ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22087
22088 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000022089/* confdefs.h. */
22090_ACEOF
22091cat confdefs.h >>conftest.$ac_ext
22092cat >>conftest.$ac_ext <<_ACEOF
22093/* end confdefs.h. */
22094#include <ieeefp.h>
22095 int foo(float f) {return finite(f);}
22096_ACEOF
22097rm -f conftest.$ac_objext
22098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022099 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000022100 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022101 grep -v '^ *+' conftest.er1 >conftest.err
22102 rm -f conftest.er1
22103 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000022104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022106 { ac_try='test -z "$ac_cxx_werror_flag"
22107 || test ! -s conftest.err'
22108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22109 (eval $ac_try) 2>&5
22110 ac_status=$?
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); }; } &&
22113 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000022114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22115 (eval $ac_try) 2>&5
22116 ac_status=$?
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); }; }; then
22119 ac_cv_func_finite_in_ieeefp_h=yes
22120else
22121 echo "$as_me: failed program was:" >&5
22122sed 's/^/| /' conftest.$ac_ext >&5
22123
22124ac_cv_func_finite_in_ieeefp_h=no
22125fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeked59a6472004-07-21 03:33:58 +000022127 ac_ext=c
22128ac_cpp='$CPP $CPPFLAGS'
22129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22131ac_compiler_gnu=$ac_cv_c_compiler_gnu
22132
22133fi
22134echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22135echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22136 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22137 then
22138
22139cat >>confdefs.h <<\_ACEOF
22140#define HAVE_FINITE_IN_IEEEFP_H 1
22141_ACEOF
22142
22143 fi
Brian Gaeke52a551d2004-07-21 03:14:12 +000022144
22145
John Criswell7a73b802003-06-30 21:59:07 +000022146# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22147# for constant arguments. Useless!
22148echo "$as_me:$LINENO: checking for working alloca.h" >&5
22149echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22150if test "${ac_cv_working_alloca_h+set}" = set; then
22151 echo $ECHO_N "(cached) $ECHO_C" >&6
22152else
22153 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022154/* confdefs.h. */
22155_ACEOF
22156cat confdefs.h >>conftest.$ac_ext
22157cat >>conftest.$ac_ext <<_ACEOF
22158/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022159#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000022160int
22161main ()
22162{
22163char *p = (char *) alloca (2 * sizeof (int));
22164 ;
22165 return 0;
22166}
22167_ACEOF
22168rm -f conftest.$ac_objext conftest$ac_exeext
22169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022170 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022171 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022172 grep -v '^ *+' conftest.er1 >conftest.err
22173 rm -f conftest.er1
22174 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022177 { ac_try='test -z "$ac_c_werror_flag"
22178 || test ! -s conftest.err'
22179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22180 (eval $ac_try) 2>&5
22181 ac_status=$?
22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183 (exit $ac_status); }; } &&
22184 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22186 (eval $ac_try) 2>&5
22187 ac_status=$?
22188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189 (exit $ac_status); }; }; then
22190 ac_cv_working_alloca_h=yes
22191else
22192 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022193sed 's/^/| /' conftest.$ac_ext >&5
22194
John Criswell7a73b802003-06-30 21:59:07 +000022195ac_cv_working_alloca_h=no
22196fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022197rm -f conftest.err conftest.$ac_objext \
22198 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022199fi
22200echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22201echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22202if test $ac_cv_working_alloca_h = yes; then
22203
22204cat >>confdefs.h <<\_ACEOF
22205#define HAVE_ALLOCA_H 1
22206_ACEOF
22207
22208fi
22209
22210echo "$as_me:$LINENO: checking for alloca" >&5
22211echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22212if test "${ac_cv_func_alloca_works+set}" = set; then
22213 echo $ECHO_N "(cached) $ECHO_C" >&6
22214else
22215 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022216/* confdefs.h. */
22217_ACEOF
22218cat confdefs.h >>conftest.$ac_ext
22219cat >>conftest.$ac_ext <<_ACEOF
22220/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022221#ifdef __GNUC__
22222# define alloca __builtin_alloca
22223#else
22224# ifdef _MSC_VER
22225# include <malloc.h>
22226# define alloca _alloca
22227# else
22228# if HAVE_ALLOCA_H
22229# include <alloca.h>
22230# else
22231# ifdef _AIX
22232 #pragma alloca
22233# else
22234# ifndef alloca /* predefined by HP cc +Olibcalls */
22235char *alloca ();
22236# endif
22237# endif
22238# endif
22239# endif
22240#endif
22241
John Criswell7a73b802003-06-30 21:59:07 +000022242int
22243main ()
22244{
22245char *p = (char *) alloca (1);
22246 ;
22247 return 0;
22248}
22249_ACEOF
22250rm -f conftest.$ac_objext conftest$ac_exeext
22251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022252 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022253 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022254 grep -v '^ *+' conftest.er1 >conftest.err
22255 rm -f conftest.er1
22256 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022259 { ac_try='test -z "$ac_c_werror_flag"
22260 || test ! -s conftest.err'
22261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22262 (eval $ac_try) 2>&5
22263 ac_status=$?
22264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265 (exit $ac_status); }; } &&
22266 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22268 (eval $ac_try) 2>&5
22269 ac_status=$?
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); }; }; then
22272 ac_cv_func_alloca_works=yes
22273else
22274 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022275sed 's/^/| /' conftest.$ac_ext >&5
22276
John Criswell7a73b802003-06-30 21:59:07 +000022277ac_cv_func_alloca_works=no
22278fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022279rm -f conftest.err conftest.$ac_objext \
22280 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022281fi
22282echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22283echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22284
22285if test $ac_cv_func_alloca_works = yes; then
22286
22287cat >>confdefs.h <<\_ACEOF
22288#define HAVE_ALLOCA 1
22289_ACEOF
22290
22291else
22292 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22293# that cause trouble. Some versions do not even contain alloca or
22294# contain a buggy version. If you still want to use their alloca,
22295# use ar to extract alloca.o from them instead of compiling alloca.c.
22296
22297ALLOCA=alloca.$ac_objext
22298
22299cat >>confdefs.h <<\_ACEOF
22300#define C_ALLOCA 1
22301_ACEOF
22302
22303
22304echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22305echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22306if test "${ac_cv_os_cray+set}" = set; then
22307 echo $ECHO_N "(cached) $ECHO_C" >&6
22308else
22309 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022310/* confdefs.h. */
22311_ACEOF
22312cat confdefs.h >>conftest.$ac_ext
22313cat >>conftest.$ac_ext <<_ACEOF
22314/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022315#if defined(CRAY) && ! defined(CRAY2)
22316webecray
22317#else
22318wenotbecray
22319#endif
22320
22321_ACEOF
22322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000022323 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022324 ac_cv_os_cray=yes
22325else
22326 ac_cv_os_cray=no
22327fi
22328rm -f conftest*
22329
22330fi
22331echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22332echo "${ECHO_T}$ac_cv_os_cray" >&6
22333if test $ac_cv_os_cray = yes; then
22334 for ac_func in _getb67 GETB67 getb67; do
22335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22336echo "$as_me:$LINENO: checking for $ac_func" >&5
22337echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22338if eval "test \"\${$as_ac_var+set}\" = set"; then
22339 echo $ECHO_N "(cached) $ECHO_C" >&6
22340else
22341 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022342/* confdefs.h. */
22343_ACEOF
22344cat confdefs.h >>conftest.$ac_ext
22345cat >>conftest.$ac_ext <<_ACEOF
22346/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000022347/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22349#define $ac_func innocuous_$ac_func
22350
John Criswell7a73b802003-06-30 21:59:07 +000022351/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022352 which can conflict with char $ac_func (); below.
22353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22354 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000022355
John Criswell0c38eaf2003-09-10 15:17:25 +000022356#ifdef __STDC__
22357# include <limits.h>
22358#else
22359# include <assert.h>
22360#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000022361
22362#undef $ac_func
22363
John Criswell7a73b802003-06-30 21:59:07 +000022364/* Override any gcc2 internal prototype to avoid an error. */
22365#ifdef __cplusplus
22366extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022367{
John Criswell7a73b802003-06-30 21:59:07 +000022368#endif
22369/* We use char because int might match the return type of a gcc2
22370 builtin and then its argument prototype would still apply. */
22371char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022372/* The GNU C library defines this for functions which it implements
22373 to always fail with ENOSYS. Some functions are actually named
22374 something starting with __ and the normal name is an alias. */
22375#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22376choke me
22377#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022378char (*f) () = $ac_func;
22379#endif
22380#ifdef __cplusplus
22381}
John Criswell7a73b802003-06-30 21:59:07 +000022382#endif
22383
John Criswell0c38eaf2003-09-10 15:17:25 +000022384int
22385main ()
22386{
22387return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022388 ;
22389 return 0;
22390}
22391_ACEOF
22392rm -f conftest.$ac_objext conftest$ac_exeext
22393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022394 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022395 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022396 grep -v '^ *+' conftest.er1 >conftest.err
22397 rm -f conftest.er1
22398 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022401 { ac_try='test -z "$ac_c_werror_flag"
22402 || test ! -s conftest.err'
22403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22404 (eval $ac_try) 2>&5
22405 ac_status=$?
22406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); }; } &&
22408 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22410 (eval $ac_try) 2>&5
22411 ac_status=$?
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); }; }; then
22414 eval "$as_ac_var=yes"
22415else
22416 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022417sed 's/^/| /' conftest.$ac_ext >&5
22418
John Criswell7a73b802003-06-30 21:59:07 +000022419eval "$as_ac_var=no"
22420fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022421rm -f conftest.err conftest.$ac_objext \
22422 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022423fi
22424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22425echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22426if test `eval echo '${'$as_ac_var'}'` = yes; then
22427
22428cat >>confdefs.h <<_ACEOF
22429#define CRAY_STACKSEG_END $ac_func
22430_ACEOF
22431
22432 break
22433fi
22434
22435 done
22436fi
22437
22438echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22439echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22440if test "${ac_cv_c_stack_direction+set}" = set; then
22441 echo $ECHO_N "(cached) $ECHO_C" >&6
22442else
22443 if test "$cross_compiling" = yes; then
22444 ac_cv_c_stack_direction=0
22445else
22446 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022447/* confdefs.h. */
22448_ACEOF
22449cat confdefs.h >>conftest.$ac_ext
22450cat >>conftest.$ac_ext <<_ACEOF
22451/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022452int
22453find_stack_direction ()
22454{
22455 static char *addr = 0;
22456 auto char dummy;
22457 if (addr == 0)
22458 {
22459 addr = &dummy;
22460 return find_stack_direction ();
22461 }
22462 else
22463 return (&dummy > addr) ? 1 : -1;
22464}
22465
22466int
22467main ()
22468{
22469 exit (find_stack_direction () < 0);
22470}
22471_ACEOF
22472rm -f conftest$ac_exeext
22473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22474 (eval $ac_link) 2>&5
22475 ac_status=$?
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22479 (eval $ac_try) 2>&5
22480 ac_status=$?
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); }; }; then
22483 ac_cv_c_stack_direction=1
22484else
22485 echo "$as_me: program exited with status $ac_status" >&5
22486echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022487sed 's/^/| /' conftest.$ac_ext >&5
22488
John Criswell7a73b802003-06-30 21:59:07 +000022489( exit $ac_status )
22490ac_cv_c_stack_direction=-1
22491fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022492rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022493fi
22494fi
22495echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22496echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22497
22498cat >>confdefs.h <<_ACEOF
22499#define STACK_DIRECTION $ac_cv_c_stack_direction
22500_ACEOF
22501
22502
22503fi
22504
John Criswell7a73b802003-06-30 21:59:07 +000022505
22506
22507for ac_header in stdlib.h unistd.h
22508do
22509as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22510if eval "test \"\${$as_ac_Header+set}\" = set"; then
22511 echo "$as_me:$LINENO: checking for $ac_header" >&5
22512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22513if eval "test \"\${$as_ac_Header+set}\" = set"; then
22514 echo $ECHO_N "(cached) $ECHO_C" >&6
22515fi
22516echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22517echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22518else
22519 # Is the header compilable?
22520echo "$as_me:$LINENO: checking $ac_header usability" >&5
22521echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22522cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022523/* confdefs.h. */
22524_ACEOF
22525cat confdefs.h >>conftest.$ac_ext
22526cat >>conftest.$ac_ext <<_ACEOF
22527/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022528$ac_includes_default
22529#include <$ac_header>
22530_ACEOF
22531rm -f conftest.$ac_objext
22532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022533 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022534 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022535 grep -v '^ *+' conftest.er1 >conftest.err
22536 rm -f conftest.er1
22537 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022540 { ac_try='test -z "$ac_c_werror_flag"
22541 || test ! -s conftest.err'
22542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22543 (eval $ac_try) 2>&5
22544 ac_status=$?
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); }; } &&
22547 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22549 (eval $ac_try) 2>&5
22550 ac_status=$?
22551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552 (exit $ac_status); }; }; then
22553 ac_header_compiler=yes
22554else
22555 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022556sed 's/^/| /' conftest.$ac_ext >&5
22557
John Criswell7a73b802003-06-30 21:59:07 +000022558ac_header_compiler=no
22559fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022561echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22562echo "${ECHO_T}$ac_header_compiler" >&6
22563
22564# Is the header present?
22565echo "$as_me:$LINENO: checking $ac_header presence" >&5
22566echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22567cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022568/* confdefs.h. */
22569_ACEOF
22570cat confdefs.h >>conftest.$ac_ext
22571cat >>conftest.$ac_ext <<_ACEOF
22572/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022573#include <$ac_header>
22574_ACEOF
22575if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22577 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000022578 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000022579 rm -f conftest.er1
22580 cat conftest.err >&5
22581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582 (exit $ac_status); } >/dev/null; then
22583 if test -s conftest.err; then
22584 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +000022585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000022586 else
22587 ac_cpp_err=
22588 fi
22589else
22590 ac_cpp_err=yes
22591fi
22592if test -z "$ac_cpp_err"; then
22593 ac_header_preproc=yes
22594else
22595 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022596sed 's/^/| /' conftest.$ac_ext >&5
22597
John Criswell7a73b802003-06-30 21:59:07 +000022598 ac_header_preproc=no
22599fi
22600rm -f conftest.err conftest.$ac_ext
22601echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22602echo "${ECHO_T}$ac_header_preproc" >&6
22603
22604# So? What about this header?
Reid Spencer2b51a082004-08-04 00:34:49 +000022605case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22606 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000022607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22608echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000022609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22610echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22611 ac_header_preproc=yes
John Criswell0c38eaf2003-09-10 15:17:25 +000022612 ;;
Reid Spencer2b51a082004-08-04 00:34:49 +000022613 no:yes:* )
John Criswell7a73b802003-06-30 21:59:07 +000022614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22615echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000022616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22617echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22619echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22621echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022623echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000022624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22625echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000022626 (
22627 cat <<\_ASBOX
Reid Spencer2b51a082004-08-04 00:34:49 +000022628## ----------------------------------- ##
22629## Report this to llvmbugs@cs.uiuc.edu ##
22630## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000022631_ASBOX
22632 ) |
22633 sed "s/^/$as_me: WARNING: /" >&2
22634 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022635esac
22636echo "$as_me:$LINENO: checking for $ac_header" >&5
22637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22638if eval "test \"\${$as_ac_Header+set}\" = set"; then
22639 echo $ECHO_N "(cached) $ECHO_C" >&6
22640else
Reid Spencer2b51a082004-08-04 00:34:49 +000022641 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000022642fi
22643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22644echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22645
22646fi
22647if test `eval echo '${'$as_ac_Header'}'` = yes; then
22648 cat >>confdefs.h <<_ACEOF
22649#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22650_ACEOF
22651
22652fi
22653
22654done
22655
22656
22657for ac_func in getpagesize
22658do
22659as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22660echo "$as_me:$LINENO: checking for $ac_func" >&5
22661echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22662if eval "test \"\${$as_ac_var+set}\" = set"; then
22663 echo $ECHO_N "(cached) $ECHO_C" >&6
22664else
22665 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022666/* confdefs.h. */
22667_ACEOF
22668cat confdefs.h >>conftest.$ac_ext
22669cat >>conftest.$ac_ext <<_ACEOF
22670/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000022671/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22673#define $ac_func innocuous_$ac_func
22674
John Criswell7a73b802003-06-30 21:59:07 +000022675/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022676 which can conflict with char $ac_func (); below.
22677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22678 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000022679
John Criswell0c38eaf2003-09-10 15:17:25 +000022680#ifdef __STDC__
22681# include <limits.h>
22682#else
22683# include <assert.h>
22684#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000022685
22686#undef $ac_func
22687
John Criswell7a73b802003-06-30 21:59:07 +000022688/* Override any gcc2 internal prototype to avoid an error. */
22689#ifdef __cplusplus
22690extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022691{
John Criswell7a73b802003-06-30 21:59:07 +000022692#endif
22693/* We use char because int might match the return type of a gcc2
22694 builtin and then its argument prototype would still apply. */
22695char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022696/* The GNU C library defines this for functions which it implements
22697 to always fail with ENOSYS. Some functions are actually named
22698 something starting with __ and the normal name is an alias. */
22699#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22700choke me
22701#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022702char (*f) () = $ac_func;
22703#endif
22704#ifdef __cplusplus
22705}
John Criswell7a73b802003-06-30 21:59:07 +000022706#endif
22707
John Criswell0c38eaf2003-09-10 15:17:25 +000022708int
22709main ()
22710{
22711return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022712 ;
22713 return 0;
22714}
22715_ACEOF
22716rm -f conftest.$ac_objext conftest$ac_exeext
22717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022718 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022719 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022720 grep -v '^ *+' conftest.er1 >conftest.err
22721 rm -f conftest.er1
22722 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022725 { ac_try='test -z "$ac_c_werror_flag"
22726 || test ! -s conftest.err'
22727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22728 (eval $ac_try) 2>&5
22729 ac_status=$?
22730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731 (exit $ac_status); }; } &&
22732 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22734 (eval $ac_try) 2>&5
22735 ac_status=$?
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); }; }; then
22738 eval "$as_ac_var=yes"
22739else
22740 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022741sed 's/^/| /' conftest.$ac_ext >&5
22742
John Criswell7a73b802003-06-30 21:59:07 +000022743eval "$as_ac_var=no"
22744fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022745rm -f conftest.err conftest.$ac_objext \
22746 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022747fi
22748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22749echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22750if test `eval echo '${'$as_ac_var'}'` = yes; then
22751 cat >>confdefs.h <<_ACEOF
22752#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22753_ACEOF
22754
22755fi
22756done
22757
22758echo "$as_me:$LINENO: checking for working mmap" >&5
22759echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22760if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22761 echo $ECHO_N "(cached) $ECHO_C" >&6
22762else
22763 if test "$cross_compiling" = yes; then
22764 ac_cv_func_mmap_fixed_mapped=no
22765else
22766 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022767/* confdefs.h. */
22768_ACEOF
22769cat confdefs.h >>conftest.$ac_ext
22770cat >>conftest.$ac_ext <<_ACEOF
22771/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022772$ac_includes_default
22773/* malloc might have been renamed as rpl_malloc. */
22774#undef malloc
22775
22776/* Thanks to Mike Haertel and Jim Avera for this test.
22777 Here is a matrix of mmap possibilities:
22778 mmap private not fixed
22779 mmap private fixed at somewhere currently unmapped
22780 mmap private fixed at somewhere already mapped
22781 mmap shared not fixed
22782 mmap shared fixed at somewhere currently unmapped
22783 mmap shared fixed at somewhere already mapped
22784 For private mappings, we should verify that changes cannot be read()
22785 back from the file, nor mmap's back from the file at a different
22786 address. (There have been systems where private was not correctly
22787 implemented like the infamous i386 svr4.0, and systems where the
22788 VM page cache was not coherent with the file system buffer cache
22789 like early versions of FreeBSD and possibly contemporary NetBSD.)
22790 For shared mappings, we should conversely verify that changes get
22791 propagated back to all the places they're supposed to be.
22792
22793 Grep wants private fixed already mapped.
22794 The main things grep needs to know about mmap are:
22795 * does it exist and is it safe to write into the mmap'd area
22796 * how to use it (BSD variants) */
22797
22798#include <fcntl.h>
22799#include <sys/mman.h>
22800
22801#if !STDC_HEADERS && !HAVE_STDLIB_H
22802char *malloc ();
22803#endif
22804
22805/* This mess was copied from the GNU getpagesize.h. */
22806#if !HAVE_GETPAGESIZE
22807/* Assume that all systems that can run configure have sys/param.h. */
22808# if !HAVE_SYS_PARAM_H
22809# define HAVE_SYS_PARAM_H 1
22810# endif
22811
22812# ifdef _SC_PAGESIZE
22813# define getpagesize() sysconf(_SC_PAGESIZE)
22814# else /* no _SC_PAGESIZE */
22815# if HAVE_SYS_PARAM_H
22816# include <sys/param.h>
22817# ifdef EXEC_PAGESIZE
22818# define getpagesize() EXEC_PAGESIZE
22819# else /* no EXEC_PAGESIZE */
22820# ifdef NBPG
22821# define getpagesize() NBPG * CLSIZE
22822# ifndef CLSIZE
22823# define CLSIZE 1
22824# endif /* no CLSIZE */
22825# else /* no NBPG */
22826# ifdef NBPC
22827# define getpagesize() NBPC
22828# else /* no NBPC */
22829# ifdef PAGESIZE
22830# define getpagesize() PAGESIZE
22831# endif /* PAGESIZE */
22832# endif /* no NBPC */
22833# endif /* no NBPG */
22834# endif /* no EXEC_PAGESIZE */
22835# else /* no HAVE_SYS_PARAM_H */
22836# define getpagesize() 8192 /* punt totally */
22837# endif /* no HAVE_SYS_PARAM_H */
22838# endif /* no _SC_PAGESIZE */
22839
22840#endif /* no HAVE_GETPAGESIZE */
22841
22842int
22843main ()
22844{
22845 char *data, *data2, *data3;
22846 int i, pagesize;
22847 int fd;
22848
22849 pagesize = getpagesize ();
22850
22851 /* First, make a file with some known garbage in it. */
22852 data = (char *) malloc (pagesize);
22853 if (!data)
22854 exit (1);
22855 for (i = 0; i < pagesize; ++i)
22856 *(data + i) = rand ();
22857 umask (0);
22858 fd = creat ("conftest.mmap", 0600);
22859 if (fd < 0)
22860 exit (1);
22861 if (write (fd, data, pagesize) != pagesize)
22862 exit (1);
22863 close (fd);
22864
22865 /* Next, try to mmap the file at a fixed address which already has
22866 something else allocated at it. If we can, also make sure that
22867 we see the same garbage. */
22868 fd = open ("conftest.mmap", O_RDWR);
22869 if (fd < 0)
22870 exit (1);
22871 data2 = (char *) malloc (2 * pagesize);
22872 if (!data2)
22873 exit (1);
Reid Spencer2b51a082004-08-04 00:34:49 +000022874 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000022875 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2b51a082004-08-04 00:34:49 +000022876 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000022877 exit (1);
22878 for (i = 0; i < pagesize; ++i)
22879 if (*(data + i) != *(data2 + i))
22880 exit (1);
22881
22882 /* Finally, make sure that changes to the mapped area do not
22883 percolate back to the file as seen by read(). (This is a bug on
22884 some variants of i386 svr4.0.) */
22885 for (i = 0; i < pagesize; ++i)
22886 *(data2 + i) = *(data2 + i) + 1;
22887 data3 = (char *) malloc (pagesize);
22888 if (!data3)
22889 exit (1);
22890 if (read (fd, data3, pagesize) != pagesize)
22891 exit (1);
22892 for (i = 0; i < pagesize; ++i)
22893 if (*(data + i) != *(data3 + i))
22894 exit (1);
22895 close (fd);
22896 exit (0);
22897}
22898_ACEOF
22899rm -f conftest$ac_exeext
22900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22901 (eval $ac_link) 2>&5
22902 ac_status=$?
22903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22906 (eval $ac_try) 2>&5
22907 ac_status=$?
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); }; }; then
22910 ac_cv_func_mmap_fixed_mapped=yes
22911else
22912 echo "$as_me: program exited with status $ac_status" >&5
22913echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022914sed 's/^/| /' conftest.$ac_ext >&5
22915
John Criswell7a73b802003-06-30 21:59:07 +000022916( exit $ac_status )
22917ac_cv_func_mmap_fixed_mapped=no
22918fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022919rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022920fi
22921fi
22922echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22923echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22924if test $ac_cv_func_mmap_fixed_mapped = yes; then
22925
22926cat >>confdefs.h <<\_ACEOF
22927#define HAVE_MMAP 1
22928_ACEOF
22929
22930fi
22931rm -f conftest.mmap
22932
Brian Gaeke26be9c52004-01-13 06:43:16 +000022933if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22934then
John Criswellf3ecf3a2004-05-27 00:57:50 +000022935 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
22936echo "$as_me: WARNING: mmap() required but not found" >&2;}
Brian Gaeke26be9c52004-01-13 06:43:16 +000022937fi
John Criswell7a73b802003-06-30 21:59:07 +000022938echo "$as_me:$LINENO: checking for mmap of files" >&5
22939echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22940if test "${ac_cv_func_mmap_file+set}" = set; then
22941 echo $ECHO_N "(cached) $ECHO_C" >&6
22942else
22943
22944
22945 ac_ext=c
22946ac_cpp='$CPP $CPPFLAGS'
22947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22949ac_compiler_gnu=$ac_cv_c_compiler_gnu
22950
22951 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022952 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22953See \`config.log' for more details." >&5
22954echo "$as_me: error: cannot run test program while cross compiling
22955See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022956 { (exit 1); exit 1; }; }
22957else
22958 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022959/* confdefs.h. */
22960_ACEOF
22961cat confdefs.h >>conftest.$ac_ext
22962cat >>conftest.$ac_ext <<_ACEOF
22963/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022964
John Criswell7a73b802003-06-30 21:59:07 +000022965#ifdef HAVE_SYS_TYPES_H
22966#include <sys/types.h>
22967#endif
22968
John Criswell5ab73462003-10-09 15:44:28 +000022969#ifdef HAVE_SYS_MMAN_H
22970#include <sys/mman.h>
22971#endif
22972
John Criswell7a73b802003-06-30 21:59:07 +000022973#ifdef HAVE_FCNTL_H
22974#include <fcntl.h>
22975#endif
22976
22977 int fd;
22978 int main () {
John Criswell5ab73462003-10-09 15:44:28 +000022979 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
John Criswell7a73b802003-06-30 21:59:07 +000022980_ACEOF
22981rm -f conftest$ac_exeext
22982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22983 (eval $ac_link) 2>&5
22984 ac_status=$?
22985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22988 (eval $ac_try) 2>&5
22989 ac_status=$?
22990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991 (exit $ac_status); }; }; then
22992 ac_cv_func_mmap_file=yes
22993else
22994 echo "$as_me: program exited with status $ac_status" >&5
22995echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022996sed 's/^/| /' conftest.$ac_ext >&5
22997
John Criswell7a73b802003-06-30 21:59:07 +000022998( exit $ac_status )
22999ac_cv_func_mmap_file=no
23000fi
Reid Spencer2b51a082004-08-04 00:34:49 +000023001rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023002fi
23003 ac_ext=c
23004ac_cpp='$CPP $CPPFLAGS'
23005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23007ac_compiler_gnu=$ac_cv_c_compiler_gnu
23008
23009
23010fi
23011echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23012echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23013if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000023014
23015cat >>confdefs.h <<\_ACEOF
23016#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000023017_ACEOF
23018
23019 MMAP_FILE=yes
23020
23021fi
23022
Brian Gaeke26be9c52004-01-13 06:43:16 +000023023if test "$ac_cv_func_mmap_file" = "no"
John Criswell7a73b802003-06-30 21:59:07 +000023024then
John Criswellf3ecf3a2004-05-27 00:57:50 +000023025 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23026echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000023027fi
23028echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23029echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23030if test "${ac_cv_header_mmap_anon+set}" = set; then
23031 echo $ECHO_N "(cached) $ECHO_C" >&6
23032else
23033
23034
23035 ac_ext=c
23036ac_cpp='$CPP $CPPFLAGS'
23037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23039ac_compiler_gnu=$ac_cv_c_compiler_gnu
23040
23041 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023042/* confdefs.h. */
23043_ACEOF
23044cat confdefs.h >>conftest.$ac_ext
23045cat >>conftest.$ac_ext <<_ACEOF
23046/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023047#include <sys/mman.h>
23048 #include <unistd.h>
23049 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000023050int
23051main ()
23052{
23053mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23054 ;
23055 return 0;
23056}
23057_ACEOF
23058rm -f conftest.$ac_objext
23059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000023060 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023061 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000023062 grep -v '^ *+' conftest.er1 >conftest.err
23063 rm -f conftest.er1
23064 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000023067 { ac_try='test -z "$ac_c_werror_flag"
23068 || test ! -s conftest.err'
23069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23070 (eval $ac_try) 2>&5
23071 ac_status=$?
23072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073 (exit $ac_status); }; } &&
23074 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23076 (eval $ac_try) 2>&5
23077 ac_status=$?
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); }; }; then
23080 ac_cv_header_mmap_anon=yes
23081else
23082 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023083sed 's/^/| /' conftest.$ac_ext >&5
23084
John Criswell7a73b802003-06-30 21:59:07 +000023085ac_cv_header_mmap_anon=no
23086fi
Reid Spencer2b51a082004-08-04 00:34:49 +000023087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023088 ac_ext=c
23089ac_cpp='$CPP $CPPFLAGS'
23090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23092ac_compiler_gnu=$ac_cv_c_compiler_gnu
23093
23094
23095fi
23096echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23097echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23098if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000023099
23100cat >>confdefs.h <<\_ACEOF
23101#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000023102_ACEOF
23103
23104fi
23105
23106echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23107echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23108if test "${ac_cv_type_signal+set}" = set; then
23109 echo $ECHO_N "(cached) $ECHO_C" >&6
23110else
23111 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023112/* confdefs.h. */
23113_ACEOF
23114cat confdefs.h >>conftest.$ac_ext
23115cat >>conftest.$ac_ext <<_ACEOF
23116/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023117#include <sys/types.h>
23118#include <signal.h>
23119#ifdef signal
23120# undef signal
23121#endif
23122#ifdef __cplusplus
23123extern "C" void (*signal (int, void (*)(int)))(int);
23124#else
23125void (*signal ()) ();
23126#endif
23127
John Criswell7a73b802003-06-30 21:59:07 +000023128int
23129main ()
23130{
23131int i;
23132 ;
23133 return 0;
23134}
23135_ACEOF
23136rm -f conftest.$ac_objext
23137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000023138 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023139 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000023140 grep -v '^ *+' conftest.er1 >conftest.err
23141 rm -f conftest.er1
23142 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000023145 { ac_try='test -z "$ac_c_werror_flag"
23146 || test ! -s conftest.err'
23147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23148 (eval $ac_try) 2>&5
23149 ac_status=$?
23150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); }; } &&
23152 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23154 (eval $ac_try) 2>&5
23155 ac_status=$?
23156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157 (exit $ac_status); }; }; then
23158 ac_cv_type_signal=void
23159else
23160 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023161sed 's/^/| /' conftest.$ac_ext >&5
23162
John Criswell7a73b802003-06-30 21:59:07 +000023163ac_cv_type_signal=int
23164fi
Reid Spencer2b51a082004-08-04 00:34:49 +000023165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023166fi
23167echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23168echo "${ECHO_T}$ac_cv_type_signal" >&6
23169
23170cat >>confdefs.h <<_ACEOF
23171#define RETSIGTYPE $ac_cv_type_signal
23172_ACEOF
23173
23174
23175
23176
23177
23178
23179
Brian Gaekef5261472004-02-20 06:40:57 +000023180
Brian Gaeke9a08b5e2004-04-02 21:26:02 +000023181
John Criswelld6621562004-06-07 14:26:24 +000023182
23183
John Criswell7ed43ad2004-07-19 16:12:29 +000023184for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
John Criswell7a73b802003-06-30 21:59:07 +000023185do
23186as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23187echo "$as_me:$LINENO: checking for $ac_func" >&5
23188echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23189if eval "test \"\${$as_ac_var+set}\" = set"; then
23190 echo $ECHO_N "(cached) $ECHO_C" >&6
23191else
23192 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023193/* confdefs.h. */
23194_ACEOF
23195cat confdefs.h >>conftest.$ac_ext
23196cat >>conftest.$ac_ext <<_ACEOF
23197/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000023198/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23200#define $ac_func innocuous_$ac_func
23201
John Criswell7a73b802003-06-30 21:59:07 +000023202/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023203 which can conflict with char $ac_func (); below.
23204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23205 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000023206
John Criswell0c38eaf2003-09-10 15:17:25 +000023207#ifdef __STDC__
23208# include <limits.h>
23209#else
23210# include <assert.h>
23211#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000023212
23213#undef $ac_func
23214
John Criswell7a73b802003-06-30 21:59:07 +000023215/* Override any gcc2 internal prototype to avoid an error. */
23216#ifdef __cplusplus
23217extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023218{
John Criswell7a73b802003-06-30 21:59:07 +000023219#endif
23220/* We use char because int might match the return type of a gcc2
23221 builtin and then its argument prototype would still apply. */
23222char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000023223/* The GNU C library defines this for functions which it implements
23224 to always fail with ENOSYS. Some functions are actually named
23225 something starting with __ and the normal name is an alias. */
23226#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23227choke me
23228#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023229char (*f) () = $ac_func;
23230#endif
23231#ifdef __cplusplus
23232}
John Criswell7a73b802003-06-30 21:59:07 +000023233#endif
23234
John Criswell0c38eaf2003-09-10 15:17:25 +000023235int
23236main ()
23237{
23238return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000023239 ;
23240 return 0;
23241}
23242_ACEOF
23243rm -f conftest.$ac_objext conftest$ac_exeext
23244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000023245 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023246 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000023247 grep -v '^ *+' conftest.er1 >conftest.err
23248 rm -f conftest.er1
23249 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000023252 { ac_try='test -z "$ac_c_werror_flag"
23253 || test ! -s conftest.err'
23254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23255 (eval $ac_try) 2>&5
23256 ac_status=$?
23257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258 (exit $ac_status); }; } &&
23259 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23261 (eval $ac_try) 2>&5
23262 ac_status=$?
23263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264 (exit $ac_status); }; }; then
23265 eval "$as_ac_var=yes"
23266else
23267 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023268sed 's/^/| /' conftest.$ac_ext >&5
23269
John Criswell7a73b802003-06-30 21:59:07 +000023270eval "$as_ac_var=no"
23271fi
Reid Spencer2b51a082004-08-04 00:34:49 +000023272rm -f conftest.err conftest.$ac_objext \
23273 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023274fi
23275echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23276echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23277if test `eval echo '${'$as_ac_var'}'` = yes; then
23278 cat >>confdefs.h <<_ACEOF
23279#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23280_ACEOF
23281
23282fi
23283done
23284
John Criswell7a73b802003-06-30 21:59:07 +000023285echo "$as_me:$LINENO: checking for mprotect" >&5
23286echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23287if test "${ac_cv_func_mprotect+set}" = set; then
23288 echo $ECHO_N "(cached) $ECHO_C" >&6
23289else
23290 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023291/* confdefs.h. */
23292_ACEOF
23293cat confdefs.h >>conftest.$ac_ext
23294cat >>conftest.$ac_ext <<_ACEOF
23295/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000023296/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23298#define mprotect innocuous_mprotect
23299
John Criswell7a73b802003-06-30 21:59:07 +000023300/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023301 which can conflict with char mprotect (); below.
23302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23303 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000023304
John Criswell0c38eaf2003-09-10 15:17:25 +000023305#ifdef __STDC__
23306# include <limits.h>
23307#else
23308# include <assert.h>
23309#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000023310
23311#undef mprotect
23312
John Criswell7a73b802003-06-30 21:59:07 +000023313/* Override any gcc2 internal prototype to avoid an error. */
23314#ifdef __cplusplus
23315extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023316{
John Criswell7a73b802003-06-30 21:59:07 +000023317#endif
23318/* We use char because int might match the return type of a gcc2
23319 builtin and then its argument prototype would still apply. */
23320char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000023321/* The GNU C library defines this for functions which it implements
23322 to always fail with ENOSYS. Some functions are actually named
23323 something starting with __ and the normal name is an alias. */
23324#if defined (__stub_mprotect) || defined (__stub___mprotect)
23325choke me
23326#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023327char (*f) () = mprotect;
23328#endif
23329#ifdef __cplusplus
23330}
John Criswell7a73b802003-06-30 21:59:07 +000023331#endif
23332
John Criswell0c38eaf2003-09-10 15:17:25 +000023333int
23334main ()
23335{
23336return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000023337 ;
23338 return 0;
23339}
23340_ACEOF
23341rm -f conftest.$ac_objext conftest$ac_exeext
23342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000023343 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023344 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000023345 grep -v '^ *+' conftest.er1 >conftest.err
23346 rm -f conftest.er1
23347 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +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 Criswell7a73b802003-06-30 21:59: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_func_mprotect=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 Criswell7a73b802003-06-30 21:59:07 +000023368ac_cv_func_mprotect=no
23369fi
Reid Spencer2b51a082004-08-04 00:34:49 +000023370rm -f conftest.err conftest.$ac_objext \
23371 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023372fi
23373echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23374echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23375if test $ac_cv_func_mprotect = yes; then
23376 :
23377else
23378 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23379echo "$as_me: error: Function mprotect() required but not found" >&2;}
23380 { (exit 1); exit 1; }; }
23381fi
23382
23383
John Criswellb13092b2003-07-22 21:00:24 +000023384
Brian Gaekeadfe28d2004-07-21 03:50:25 +000023385 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23386echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
John Criswellcb7a1eb2003-11-17 19:46:02 +000023387
23388
23389 ac_ext=c
23390ac_cpp='$CPP $CPPFLAGS'
23391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23393ac_compiler_gnu=$ac_cv_c_compiler_gnu
23394
Brian Gaekef91a15c2003-11-18 06:20:41 +000023395 oldcflags="$CFLAGS"
23396 CFLAGS="$CFLAGS -Wl,-R."
John Criswellcb7a1eb2003-11-17 19:46:02 +000023397 cat >conftest.$ac_ext <<_ACEOF
Brian Gaekef91a15c2003-11-18 06:20:41 +000023398int main() { return 0; }
John Criswellcb7a1eb2003-11-17 19:46:02 +000023399_ACEOF
23400rm -f conftest.$ac_objext conftest$ac_exeext
23401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000023402 (eval $ac_link) 2>conftest.er1
John Criswellcb7a1eb2003-11-17 19:46:02 +000023403 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000023404 grep -v '^ *+' conftest.er1 >conftest.err
23405 rm -f conftest.er1
23406 cat conftest.err >&5
John Criswellcb7a1eb2003-11-17 19:46:02 +000023407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000023409 { ac_try='test -z "$ac_c_werror_flag"
23410 || test ! -s conftest.err'
23411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23412 (eval $ac_try) 2>&5
23413 ac_status=$?
23414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415 (exit $ac_status); }; } &&
23416 { ac_try='test -s conftest$ac_exeext'
John Criswellcb7a1eb2003-11-17 19:46:02 +000023417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23418 (eval $ac_try) 2>&5
23419 ac_status=$?
23420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421 (exit $ac_status); }; }; then
23422 ac_cv_link_use_r=yes
23423else
23424 echo "$as_me: failed program was:" >&5
23425sed 's/^/| /' conftest.$ac_ext >&5
23426
Brian Gaekef91a15c2003-11-18 06:20:41 +000023427ac_cv_link_use_r=no
John Criswellcb7a1eb2003-11-17 19:46:02 +000023428fi
Reid Spencer2b51a082004-08-04 00:34:49 +000023429rm -f conftest.err conftest.$ac_objext \
23430 conftest$ac_exeext conftest.$ac_ext
Brian Gaekef91a15c2003-11-18 06:20:41 +000023431 CFLAGS="$oldcflags"
John Criswellcb7a1eb2003-11-17 19:46:02 +000023432 ac_ext=c
23433ac_cpp='$CPP $CPPFLAGS'
23434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23436ac_compiler_gnu=$ac_cv_c_compiler_gnu
23437
Brian Gaekeadfe28d2004-07-21 03:50:25 +000023438 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23439echo "${ECHO_T}$ac_cv_link_use_r" >&6
Brian Gaekef91a15c2003-11-18 06:20:41 +000023440 if test "$ac_cv_link_use_r" = yes
John Criswellcb7a1eb2003-11-17 19:46:02 +000023441 then
Brian Gaekef91a15c2003-11-18 06:20:41 +000023442
23443cat >>confdefs.h <<\_ACEOF
John Criswellcb7a1eb2003-11-17 19:46:02 +000023444#define HAVE_LINK_R 1
23445_ACEOF
23446
23447 fi
23448
23449
John Criswell7a73b802003-06-30 21:59:07 +000023450# Check whether --enable-optimized or --disable-optimized was given.
23451if test "${enable_optimized+set}" = set; then
23452 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000023453
23454else
John Criswellb13092b2003-07-22 21:00:24 +000023455 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000023456fi;
John Criswellb13092b2003-07-22 21:00:24 +000023457if test ${enableval} = "no"
23458then
23459 ENABLE_OPTIMIZED=
23460
23461else
23462 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23463
23464fi
23465
John Criswell55126592003-10-07 21:57:39 +000023466
23467
John Criswell55126592003-10-07 21:57:39 +000023468
Brian Gaekee773b862004-04-16 17:13:44 +000023469 # Check whether --enable-spec95 or --disable-spec95 was given.
John Criswellcf2e9f72004-02-10 22:36:35 +000023470if test "${enable_spec95+set}" = set; then
23471 enableval="$enable_spec95"
Brian Gaekee773b862004-04-16 17:13:44 +000023472 checkresult=$enableval
John Criswellcf2e9f72004-02-10 22:36:35 +000023473else
Brian Gaekee773b862004-04-16 17:13:44 +000023474 checkresult=auto
John Criswellcf2e9f72004-02-10 22:36:35 +000023475fi;
Brian Gaekee773b862004-04-16 17:13:44 +000023476echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
23477echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
23478case "$checkresult" in
23479auto|yes)
23480 defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
23481 if test -d "$defaultdir"
John Criswellcf2e9f72004-02-10 22:36:35 +000023482 then
Brian Gaekee773b862004-04-16 17:13:44 +000023483 SPEC95_ROOT=$defaultdir
John Criswellcf2e9f72004-02-10 22:36:35 +000023484
23485 USE_SPEC95=USE_SPEC95=1
23486
Brian Gaekee773b862004-04-16 17:13:44 +000023487 checkresult="yes, found in $defaultdir"
23488 else
23489 checkresult=no
23490 fi
23491 ;;
23492no)
John Criswellcf2e9f72004-02-10 22:36:35 +000023493
23494
Brian Gaekee773b862004-04-16 17:13:44 +000023495 checkresult=no
23496 ;;
23497*) if test -d "$checkresult"
23498 then
23499 SPEC95_ROOT="$checkresult"
23500
23501 USE_SPEC95=USE_SPEC95=1
23502
23503 checkresult="yes, in $checkresult"
23504 else
23505
23506
23507 checkresult="no, not found in $checkresult"
23508 fi
23509 ;;
23510esac
23511echo "$as_me:$LINENO: result: $checkresult" >&5
23512echo "${ECHO_T}$checkresult" >&6
23513
23514
23515
23516 # Check whether --enable-spec2000 or --disable-spec2000 was given.
23517if test "${enable_spec2000+set}" = set; then
23518 enableval="$enable_spec2000"
23519 checkresult=$enableval
John Criswellcf2e9f72004-02-10 22:36:35 +000023520else
Brian Gaekee773b862004-04-16 17:13:44 +000023521 checkresult=auto
23522fi;
23523echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
23524echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
23525case "$checkresult" in
23526auto|yes)
23527 defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
23528 if test -d "$defaultdir"
John Criswellcf2e9f72004-02-10 22:36:35 +000023529 then
Brian Gaekee773b862004-04-16 17:13:44 +000023530 SPEC2000_ROOT=$defaultdir
John Criswellcf2e9f72004-02-10 22:36:35 +000023531
Brian Gaekee773b862004-04-16 17:13:44 +000023532 USE_SPEC2000=USE_SPEC2000=1
John Criswellcf2e9f72004-02-10 22:36:35 +000023533
Brian Gaekee773b862004-04-16 17:13:44 +000023534 checkresult="yes, found in $defaultdir"
23535 else
23536 checkresult=no
23537 fi
23538 ;;
23539no)
John Criswellcf2e9f72004-02-10 22:36:35 +000023540
John Criswellcf2e9f72004-02-10 22:36:35 +000023541
Brian Gaekee773b862004-04-16 17:13:44 +000023542 checkresult=no
23543 ;;
23544*) if test -d "$checkresult"
23545 then
23546 SPEC2000_ROOT="$checkresult"
23547
23548 USE_SPEC2000=USE_SPEC2000=1
23549
23550 checkresult="yes, in $checkresult"
23551 else
23552
23553
23554 checkresult="no, not found in $checkresult"
23555 fi
23556 ;;
23557esac
23558echo "$as_me:$LINENO: result: $checkresult" >&5
23559echo "${ECHO_T}$checkresult" >&6
23560
23561
23562
23563 # Check whether --enable-povray or --disable-povray was given.
John Criswell0538d422004-02-20 22:30:22 +000023564if test "${enable_povray+set}" = set; then
23565 enableval="$enable_povray"
Brian Gaekee773b862004-04-16 17:13:44 +000023566 checkresult=$enableval
John Criswell0538d422004-02-20 22:30:22 +000023567else
Brian Gaekee773b862004-04-16 17:13:44 +000023568 checkresult=auto
John Criswell0538d422004-02-20 22:30:22 +000023569fi;
Brian Gaekee773b862004-04-16 17:13:44 +000023570echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
23571echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
23572case "$checkresult" in
Chris Lattner95f45c52004-04-14 16:32:09 +000023573auto|yes)
Brian Gaekef66cdf82004-04-13 19:03:49 +000023574 defaultdir=/home/vadve/shared/benchmarks/povray31
Brian Gaekee773b862004-04-16 17:13:44 +000023575 if test -d "$defaultdir"
John Criswell0538d422004-02-20 22:30:22 +000023576 then
Brian Gaekef66cdf82004-04-13 19:03:49 +000023577 POVRAY_ROOT=$defaultdir
John Criswell0538d422004-02-20 22:30:22 +000023578
23579 USE_POVRAY=USE_POVRAY=1
23580
Brian Gaekee773b862004-04-16 17:13:44 +000023581 checkresult="yes, found in $defaultdir"
Brian Gaekef66cdf82004-04-13 19:03:49 +000023582 else
Brian Gaekee773b862004-04-16 17:13:44 +000023583 checkresult=no
Brian Gaekef66cdf82004-04-13 19:03:49 +000023584 fi
23585 ;;
Chris Lattner95f45c52004-04-14 16:32:09 +000023586no)
John Criswell0538d422004-02-20 22:30:22 +000023587
23588
Brian Gaekee773b862004-04-16 17:13:44 +000023589 checkresult=no
Brian Gaekef66cdf82004-04-13 19:03:49 +000023590 ;;
Brian Gaekee773b862004-04-16 17:13:44 +000023591*) if test -d "$checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000023592 then
Brian Gaekee773b862004-04-16 17:13:44 +000023593 POVRAY_ROOT="$checkresult"
John Criswell0538d422004-02-20 22:30:22 +000023594
Brian Gaekef66cdf82004-04-13 19:03:49 +000023595 USE_POVRAY=USE_POVRAY=1
John Criswell0538d422004-02-20 22:30:22 +000023596
Brian Gaekee773b862004-04-16 17:13:44 +000023597 checkresult="yes, in $checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000023598 else
John Criswell0538d422004-02-20 22:30:22 +000023599
John Criswell0538d422004-02-20 22:30:22 +000023600
Brian Gaekee773b862004-04-16 17:13:44 +000023601 checkresult="no, not found in $checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000023602 fi
23603 ;;
23604esac
Brian Gaekee773b862004-04-16 17:13:44 +000023605echo "$as_me:$LINENO: result: $checkresult" >&5
23606echo "${ECHO_T}$checkresult" >&6
23607
23608
John Criswell0538d422004-02-20 22:30:22 +000023609
John Criswell7a73b802003-06-30 21:59:07 +000023610# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
23611if test "${enable_precompiled_bytecode+set}" = set; then
23612 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000023613
23614else
John Criswellb13092b2003-07-22 21:00:24 +000023615 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000023616fi;
John Criswellb13092b2003-07-22 21:00:24 +000023617if test ${enableval} = "no"
23618then
23619 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000023620
John Criswellb13092b2003-07-22 21:00:24 +000023621else
23622 UPB=USE_PRECOMPILED_BYTECODE=1
23623
23624fi
John Criswellf02dbf02003-07-22 20:07:49 +000023625
John Criswellf02dbf02003-07-22 20:07:49 +000023626# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
23627if test "${enable_llc_diffs+set}" = set; then
23628 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000023629
23630else
John Criswellb13092b2003-07-22 21:00:24 +000023631 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000023632fi;
John Criswellb13092b2003-07-22 21:00:24 +000023633if test ${enableval} = "no"
23634then
23635 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000023636
John Criswellb13092b2003-07-22 21:00:24 +000023637else
23638 DISABLE_LLC_DIFFS=
23639
23640fi
23641
23642# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000023643if test "${enable_jit+set}" = set; then
23644 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000023645
23646else
John Criswellc78022e2003-07-29 19:11:58 +000023647 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000023648fi;
John Criswellb13092b2003-07-22 21:00:24 +000023649if test ${enableval} = "no"
23650then
23651 JIT=
23652
23653else
John Criswellc78022e2003-07-29 19:11:58 +000023654 case $target in
23655 *i*86*)
23656 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000023657
John Criswellc78022e2003-07-29 19:11:58 +000023658 ;;
23659 *sparc*)
23660 JIT=TARGET_HAS_JIT=1
23661
23662 ;;
23663 *)
23664 JIT=
23665
23666 ;;
23667 esac
John Criswellb13092b2003-07-22 21:00:24 +000023668fi
John Criswell7a73b802003-06-30 21:59:07 +000023669
23670
John Criswell7a73b802003-06-30 21:59:07 +000023671# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23672if test "${with_llvmgccdir+set}" = set; then
23673 withval="$with_llvmgccdir"
23674 LLVMGCCDIR=$withval
23675
23676fi;
Brian Gaekef3b24102003-11-16 18:38:14 +000023677echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23678echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23679LLVM_GCC_CHECK=no
23680if test -d "$LLVMGCCDIR"
23681then
23682 if test -x "$LLVMGCCDIR/bin/gcc"
23683 then
23684 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23685 fi
23686fi
23687llvmgccwarn=no
23688echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23689echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23690if test "$LLVM_GCC_CHECK" = "no"
23691then
23692 llvmgccwarn=yes
23693fi
Brian Gaekef3b24102003-11-16 18:38:14 +000023694echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23695echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23696LLVM_GCC_SANE=no
23697if test -x "$LLVM_GCC_CHECK"
23698then
23699 cp /dev/null conftest.c
23700 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23701 if test $? -eq 0
23702 then
23703 LLVM_GCC_SANE=yes
23704 fi
23705 rm conftest.c
Brian Gaeke2f50a042004-01-16 21:31:21 +000023706 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
Brian Gaeke554831c2004-01-21 19:39:29 +000023707 LLVMCC1=$llvmcc1path
Brian Gaeke2f50a042004-01-16 21:31:21 +000023708
23709 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
Brian Gaeke554831c2004-01-21 19:39:29 +000023710 LLVMCC1PLUS=$llvmcc1pluspath
Brian Gaeke2f50a042004-01-16 21:31:21 +000023711
Brian Gaekef3b24102003-11-16 18:38:14 +000023712fi
23713echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23714echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23715if test "$LLVM_GCC_SANE" = "no"
23716then
23717 llvmgccwarn=yes
23718fi
23719
John Criswellc78022e2003-07-29 19:11:58 +000023720
John Criswell7a73b802003-06-30 21:59:07 +000023721# Check whether --with-bcrepos or --without-bcrepos was given.
23722if test "${with_bcrepos+set}" = set; then
23723 withval="$with_bcrepos"
23724 BCR=$withval
23725
23726else
23727 BCR=/home/vadve/lattner/LLVMPrograms
23728
23729fi;
23730
John Criswellc78022e2003-07-29 19:11:58 +000023731
John Criswell7a73b802003-06-30 21:59:07 +000023732# Check whether --with-papi or --without-papi was given.
23733if test "${with_papi+set}" = set; then
23734 withval="$with_papi"
23735 PAPIDIR=$withval
23736
23737else
John Criswellde00db22003-08-25 16:49:54 +000023738 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000023739
23740fi;
23741
Brian Gaeke554831c2004-01-21 19:39:29 +000023742echo "$as_me:$LINENO: checking for shared library suffix" >&5
23743echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
23744eval "SHLIBEXT=$shrext"
23745echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23746echo "${ECHO_T}$SHLIBEXT" >&6
23747SHLIBEXT=$SHLIBEXT
23748
23749
23750cat >>confdefs.h <<_ACEOF
23751#define SHLIBEXT "$SHLIBEXT"
23752_ACEOF
23753
23754
Reid Spencere9de0912004-08-20 09:03:57 +000023755# Translate the various configuration directories and other basic
23756# information into substitutions that will end up in config.h.in so
23757# that these configured values can be hard-wired into a program.
23758eval LLVM_PREFIX="${prefix}";
23759eval LLVM_BINDIR="${prefix}/bin";
23760eval LLVM_LIBDIR="${prefix}/lib";
23761eval LLVM_DATADIR="${prefix}/data";
23762eval LLVM_DOCSDIR="${prefix}/docs";
23763eval LLVM_ETCDIR="${prefix}/etc";
23764eval LLVM_INCLUDEDIR="${prefix}/include";
23765eval LLVM_INFODIR="${prefix}/info";
23766eval LLVM_MANDIR="${prefix}/man";
23767LLVM_CONFIGTIME=`date`
23768
23769
23770
23771
23772
23773
23774
23775
23776
23777
23778
23779cat >>confdefs.h <<_ACEOF
23780#define LLVM_PREFIX "$LLVM_PREFIX"
23781_ACEOF
23782
23783
23784cat >>confdefs.h <<_ACEOF
23785#define LLVM_BINDIR "$LLVM_BINDIR"
23786_ACEOF
23787
23788
23789cat >>confdefs.h <<_ACEOF
23790#define LLVM_LIBDIR "$LLVM_LIBDIR"
23791_ACEOF
23792
23793
23794cat >>confdefs.h <<_ACEOF
23795#define LLVM_DATADIR "$LLVM_DATADIR"
23796_ACEOF
23797
23798
23799cat >>confdefs.h <<_ACEOF
23800#define LLVM_DATADIR "$LLVM_DOCSDIR"
23801_ACEOF
23802
23803
23804cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000023805#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000023806_ACEOF
23807
23808
23809cat >>confdefs.h <<_ACEOF
23810#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
23811_ACEOF
23812
23813
23814cat >>confdefs.h <<_ACEOF
23815#define LLVM_INFODIR "$LLVM_INFODIR"
23816_ACEOF
23817
23818
23819cat >>confdefs.h <<_ACEOF
23820#define LLVM_MANDIR "$LLVM_MANDIR"
23821_ACEOF
23822
23823
23824cat >>confdefs.h <<_ACEOF
23825#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
23826_ACEOF
23827
23828
John Criswell7a73b802003-06-30 21:59:07 +000023829cat >confcache <<\_ACEOF
23830# This file is a shell script that caches the results of configure
23831# tests run on this system so they can be shared between configure
23832# scripts and configure runs, see configure's option --config-cache.
23833# It is not useful on other systems. If it contains results you don't
23834# want to keep, you may remove or edit it.
23835#
23836# config.status only pays attention to the cache file if you give it
23837# the --recheck option to rerun configure.
23838#
John Criswell0c38eaf2003-09-10 15:17:25 +000023839# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000023840# loading this file, other *unset* `ac_cv_foo' will be assigned the
23841# following values.
23842
23843_ACEOF
23844
23845# The following way of writing the cache mishandles newlines in values,
23846# but we know of no workaround that is simple, portable, and efficient.
23847# So, don't put newlines in cache variables' values.
23848# Ultrix sh set writes to stderr and can't be redirected directly,
23849# and sets the high bit in the cache file unless we assign to the vars.
23850{
23851 (set) 2>&1 |
23852 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23853 *ac_space=\ *)
23854 # `set' does not quote correctly, so add quotes (double-quote
23855 # substitution turns \\\\ into \\, and sed turns \\ into \).
23856 sed -n \
Reid Spencer2b51a082004-08-04 00:34:49 +000023857 "s/'/'\\\\''/g;
23858 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000023859 ;;
23860 *)
23861 # `set' quotes correctly as required by POSIX, so do not add quotes.
23862 sed -n \
Reid Spencer2b51a082004-08-04 00:34:49 +000023863 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000023864 ;;
23865 esac;
23866} |
23867 sed '
23868 t clear
23869 : clear
23870 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23871 t end
23872 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23873 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000023874if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000023875 if test -w $cache_file; then
23876 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23877 cat confcache >$cache_file
23878 else
23879 echo "not updating unwritable cache $cache_file"
23880 fi
23881fi
23882rm -f confcache
23883
23884test "x$prefix" = xNONE && prefix=$ac_default_prefix
23885# Let make expand exec_prefix.
23886test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23887
23888# VPATH may cause trouble with some makes, so we remove $(srcdir),
23889# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23890# trailing colons and then remove the whole line if VPATH becomes empty
23891# (actually we leave an empty line to preserve line numbers).
23892if test "x$srcdir" = x.; then
Reid Spencer2b51a082004-08-04 00:34:49 +000023893 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000023894s/:*\$(srcdir):*/:/;
23895s/:*\${srcdir}:*/:/;
23896s/:*@srcdir@:*/:/;
Reid Spencer2b51a082004-08-04 00:34:49 +000023897s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000023898s/:*$//;
Reid Spencer2b51a082004-08-04 00:34:49 +000023899s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000023900}'
23901fi
23902
23903DEFS=-DHAVE_CONFIG_H
23904
John Criswell0c38eaf2003-09-10 15:17:25 +000023905ac_libobjs=
23906ac_ltlibobjs=
23907for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23908 # 1. Remove the extension, and $U if already installed.
23909 ac_i=`echo "$ac_i" |
Reid Spencer2b51a082004-08-04 00:34:49 +000023910 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023911 # 2. Add them.
23912 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23913 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23914done
23915LIBOBJS=$ac_libobjs
23916
23917LTLIBOBJS=$ac_ltlibobjs
23918
23919
John Criswell7a73b802003-06-30 21:59:07 +000023920
23921: ${CONFIG_STATUS=./config.status}
23922ac_clean_files_save=$ac_clean_files
23923ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23924{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23925echo "$as_me: creating $CONFIG_STATUS" >&6;}
23926cat >$CONFIG_STATUS <<_ACEOF
23927#! $SHELL
23928# Generated by $as_me.
23929# Run this file to recreate the current configuration.
23930# Compiler output produced by configure, useful for debugging
23931# configure, is in config.log if it exists.
23932
23933debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000023934ac_cs_recheck=false
23935ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000023936SHELL=\${CONFIG_SHELL-$SHELL}
23937_ACEOF
23938
23939cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023940## --------------------- ##
23941## M4sh Initialization. ##
23942## --------------------- ##
23943
23944# Be Bourne compatible
23945if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23946 emulate sh
23947 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023948 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23949 # is contrary to our usage. Disable this feature.
23950 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000023951elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23952 set -o posix
23953fi
Reid Spencer2b51a082004-08-04 00:34:49 +000023954DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000023955
John Criswell7a73b802003-06-30 21:59:07 +000023956# Support unset when possible.
Reid Spencer2b51a082004-08-04 00:34:49 +000023957if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023958 as_unset=unset
23959else
23960 as_unset=false
23961fi
23962
John Criswell0c38eaf2003-09-10 15:17:25 +000023963
23964# Work around bugs in pre-3.0 UWIN ksh.
23965$as_unset ENV MAIL MAILPATH
23966PS1='$ '
23967PS2='> '
23968PS4='+ '
23969
23970# NLS nuisances.
23971for as_var in \
23972 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23973 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23974 LC_TELEPHONE LC_TIME
23975do
Reid Spencer2b51a082004-08-04 00:34:49 +000023976 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000023977 eval $as_var=C; export $as_var
23978 else
23979 $as_unset $as_var
23980 fi
23981done
23982
23983# Required to use basename.
23984if expr a : '\(a\)' >/dev/null 2>&1; then
23985 as_expr=expr
23986else
23987 as_expr=false
23988fi
23989
23990if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23991 as_basename=basename
23992else
23993 as_basename=false
23994fi
John Criswell7a73b802003-06-30 21:59:07 +000023995
23996
23997# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000023998as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000023999$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24000 X"$0" : 'X\(//\)$' \| \
24001 X"$0" : 'X\(/\)$' \| \
24002 . : '\(.\)' 2>/dev/null ||
24003echo X/"$0" |
24004 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24005 /^X\/\(\/\/\)$/{ s//\1/; q; }
24006 /^X\/\(\/\).*/{ s//\1/; q; }
24007 s/.*/./; q'`
24008
John Criswell0c38eaf2003-09-10 15:17:25 +000024009
John Criswell7a73b802003-06-30 21:59:07 +000024010# PATH needs CR, and LINENO needs CR and PATH.
24011# Avoid depending upon Character Ranges.
24012as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24013as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24014as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24015as_cr_digits='0123456789'
24016as_cr_alnum=$as_cr_Letters$as_cr_digits
24017
24018# The user is always right.
24019if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024020 echo "#! /bin/sh" >conf$$.sh
24021 echo "exit 0" >>conf$$.sh
24022 chmod +x conf$$.sh
24023 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024024 PATH_SEPARATOR=';'
24025 else
24026 PATH_SEPARATOR=:
24027 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000024028 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000024029fi
24030
24031
24032 as_lineno_1=$LINENO
24033 as_lineno_2=$LINENO
24034 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24035 test "x$as_lineno_1" != "x$as_lineno_2" &&
24036 test "x$as_lineno_3" = "x$as_lineno_2" || {
24037 # Find who we are. Look in the path if we contain no path at all
24038 # relative or not.
24039 case $0 in
24040 *[\\/]* ) as_myself=$0 ;;
24041 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24042for as_dir in $PATH
24043do
24044 IFS=$as_save_IFS
24045 test -z "$as_dir" && as_dir=.
24046 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24047done
24048
24049 ;;
24050 esac
24051 # We did not find ourselves, most probably we were run as `sh COMMAND'
24052 # in which case we are not to be found in the path.
24053 if test "x$as_myself" = x; then
24054 as_myself=$0
24055 fi
24056 if test ! -f "$as_myself"; then
24057 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24058echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24059 { (exit 1); exit 1; }; }
24060 fi
24061 case $CONFIG_SHELL in
24062 '')
24063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24064for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24065do
24066 IFS=$as_save_IFS
24067 test -z "$as_dir" && as_dir=.
24068 for as_base in sh bash ksh sh5; do
24069 case $as_dir in
24070 /*)
24071 if ("$as_dir/$as_base" -c '
24072 as_lineno_1=$LINENO
24073 as_lineno_2=$LINENO
24074 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24075 test "x$as_lineno_1" != "x$as_lineno_2" &&
24076 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024077 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24078 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000024079 CONFIG_SHELL=$as_dir/$as_base
24080 export CONFIG_SHELL
24081 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24082 fi;;
24083 esac
24084 done
24085done
24086;;
24087 esac
24088
24089 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24090 # uniformly replaced by the line number. The first 'sed' inserts a
24091 # line-number line before each line; the second 'sed' does the real
24092 # work. The second script uses 'N' to pair each line-number line
24093 # with the numbered line, and appends trailing '-' during
24094 # substitution so that $LINENO is not a special case at line end.
24095 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24096 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24097 sed '=' <$as_myself |
24098 sed '
24099 N
24100 s,$,-,
24101 : loop
24102 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24103 t loop
24104 s,-$,,
24105 s,^['$as_cr_digits']*\n,,
24106 ' >$as_me.lineno &&
24107 chmod +x $as_me.lineno ||
24108 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24109echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24110 { (exit 1); exit 1; }; }
24111
24112 # Don't try to exec as it changes $[0], causing all sort of problems
24113 # (the dirname of $[0] is not the place where we might find the
24114 # original and so on. Autoconf is especially sensible to this).
24115 . ./$as_me.lineno
24116 # Exit status is that of the last command.
24117 exit
24118}
24119
24120
24121case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24122 *c*,-n*) ECHO_N= ECHO_C='
24123' ECHO_T=' ' ;;
24124 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24125 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24126esac
24127
24128if expr a : '\(a\)' >/dev/null 2>&1; then
24129 as_expr=expr
24130else
24131 as_expr=false
24132fi
24133
24134rm -f conf$$ conf$$.exe conf$$.file
24135echo >conf$$.file
24136if ln -s conf$$.file conf$$ 2>/dev/null; then
24137 # We could just check for DJGPP; but this test a) works b) is more generic
24138 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24139 if test -f conf$$.exe; then
24140 # Don't use ln at all; we don't have any links
24141 as_ln_s='cp -p'
24142 else
24143 as_ln_s='ln -s'
24144 fi
24145elif ln conf$$.file conf$$ 2>/dev/null; then
24146 as_ln_s=ln
24147else
24148 as_ln_s='cp -p'
24149fi
24150rm -f conf$$ conf$$.exe conf$$.file
24151
John Criswell0c38eaf2003-09-10 15:17:25 +000024152if mkdir -p . 2>/dev/null; then
24153 as_mkdir_p=:
24154else
Reid Spencer2b51a082004-08-04 00:34:49 +000024155 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000024156 as_mkdir_p=false
24157fi
24158
John Criswell7a73b802003-06-30 21:59:07 +000024159as_executable_p="test -f"
24160
24161# Sed expression to map a string onto a valid CPP name.
Reid Spencer2b51a082004-08-04 00:34:49 +000024162as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000024163
24164# Sed expression to map a string onto a valid variable name.
Reid Spencer2b51a082004-08-04 00:34:49 +000024165as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000024166
24167
24168# IFS
24169# We need space, tab and new line, in precisely that order.
24170as_nl='
24171'
24172IFS=" $as_nl"
24173
24174# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000024175$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000024176
24177exec 6>&1
24178
24179# Open the log real soon, to keep \$[0] and so on meaningful, and to
24180# report actual input values of CONFIG_FILES etc. instead of their
24181# values after options handling. Logging --version etc. is OK.
24182exec 5>>config.log
24183{
24184 echo
24185 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24186## Running $as_me. ##
24187_ASBOX
24188} >&5
24189cat >&5 <<_CSEOF
24190
Reid Spencere9de0912004-08-20 09:03:57 +000024191This file was extended by LLVM $as_me 1.4, which was
Reid Spencer2b51a082004-08-04 00:34:49 +000024192generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000024193
24194 CONFIG_FILES = $CONFIG_FILES
24195 CONFIG_HEADERS = $CONFIG_HEADERS
24196 CONFIG_LINKS = $CONFIG_LINKS
24197 CONFIG_COMMANDS = $CONFIG_COMMANDS
24198 $ $0 $@
24199
24200_CSEOF
24201echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24202echo >&5
24203_ACEOF
24204
24205# Files that config.status was made for.
24206if test -n "$ac_config_files"; then
24207 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24208fi
24209
24210if test -n "$ac_config_headers"; then
24211 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24212fi
24213
24214if test -n "$ac_config_links"; then
24215 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24216fi
24217
24218if test -n "$ac_config_commands"; then
24219 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24220fi
24221
24222cat >>$CONFIG_STATUS <<\_ACEOF
24223
24224ac_cs_usage="\
24225\`$as_me' instantiates files from templates according to the
24226current configuration.
24227
24228Usage: $0 [OPTIONS] [FILE]...
24229
24230 -h, --help print this help, then exit
24231 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000024232 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000024233 -d, --debug don't remove temporary files
24234 --recheck update $as_me by reconfiguring in the same conditions
24235 --file=FILE[:TEMPLATE]
Reid Spencer2b51a082004-08-04 00:34:49 +000024236 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000024237 --header=FILE[:TEMPLATE]
Reid Spencer2b51a082004-08-04 00:34:49 +000024238 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000024239
24240Configuration files:
24241$config_files
24242
24243Configuration headers:
24244$config_headers
24245
Reid Spencerde8c47f2004-08-29 19:35:28 +000024246Configuration links:
24247$config_links
24248
John Criswellc764fbc2003-09-06 15:17:13 +000024249Configuration commands:
24250$config_commands
24251
John Criswell7a73b802003-06-30 21:59:07 +000024252Report bugs to <bug-autoconf@gnu.org>."
24253_ACEOF
24254
24255cat >>$CONFIG_STATUS <<_ACEOF
24256ac_cs_version="\\
Reid Spencere9de0912004-08-20 09:03:57 +000024257LLVM config.status 1.4
Reid Spencer2b51a082004-08-04 00:34:49 +000024258configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000024259 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24260
Reid Spencer2b51a082004-08-04 00:34:49 +000024261Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000024262This config.status script is free software; the Free Software Foundation
24263gives unlimited permission to copy, distribute and modify it."
24264srcdir=$srcdir
24265INSTALL="$INSTALL"
24266_ACEOF
24267
24268cat >>$CONFIG_STATUS <<\_ACEOF
24269# If no file are specified by the user, then we need to provide default
24270# value. By we need to know if files were specified by the user.
24271ac_need_defaults=:
24272while test $# != 0
24273do
24274 case $1 in
24275 --*=*)
24276 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24277 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024278 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000024279 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000024280 -*)
24281 ac_option=$1
24282 ac_optarg=$2
24283 ac_shift=shift
24284 ;;
John Criswell7a73b802003-06-30 21:59:07 +000024285 *) # This is not an option, so the user has probably given explicit
24286 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000024287 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000024288 ac_need_defaults=false;;
24289 esac
24290
John Criswell0c38eaf2003-09-10 15:17:25 +000024291 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000024292 # Handling of the options.
24293_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000024294cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024295 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24296 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000024297 --version | --vers* | -V )
24298 echo "$ac_cs_version"; exit 0 ;;
24299 --he | --h)
24300 # Conflict between --help and --header
24301 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24302Try \`$0 --help' for more information." >&5
24303echo "$as_me: error: ambiguous option: $1
24304Try \`$0 --help' for more information." >&2;}
24305 { (exit 1); exit 1; }; };;
24306 --help | --hel | -h )
24307 echo "$ac_cs_usage"; exit 0 ;;
24308 --debug | --d* | -d )
24309 debug=: ;;
24310 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000024311 $ac_shift
24312 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000024313 ac_need_defaults=false;;
24314 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000024315 $ac_shift
24316 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000024317 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000024318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24319 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24320 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000024321
24322 # This is an error.
24323 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24324Try \`$0 --help' for more information." >&5
24325echo "$as_me: error: unrecognized option: $1
24326Try \`$0 --help' for more information." >&2;}
24327 { (exit 1); exit 1; }; } ;;
24328
24329 *) ac_config_targets="$ac_config_targets $1" ;;
24330
24331 esac
24332 shift
24333done
24334
John Criswell0c38eaf2003-09-10 15:17:25 +000024335ac_configure_extra_args=
24336
24337if $ac_cs_silent; then
24338 exec 6>/dev/null
24339 ac_configure_extra_args="$ac_configure_extra_args --silent"
24340fi
24341
24342_ACEOF
24343cat >>$CONFIG_STATUS <<_ACEOF
24344if \$ac_cs_recheck; then
24345 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24346 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24347fi
24348
John Criswell7a73b802003-06-30 21:59:07 +000024349_ACEOF
24350
John Criswellc764fbc2003-09-06 15:17:13 +000024351cat >>$CONFIG_STATUS <<_ACEOF
24352#
24353# INIT-COMMANDS section.
24354#
John Criswell7a73b802003-06-30 21:59:07 +000024355
John Criswellc764fbc2003-09-06 15:17:13 +000024356${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24357${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000024358${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024359${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024360${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024361${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24362${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000024363${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24364${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000024365${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
24366${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
John Criswell8a54a1e2004-06-22 21:35:10 +000024367${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.tests`
John Criswellc764fbc2003-09-06 15:17:13 +000024368${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
24369${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
John Criswellc764fbc2003-09-06 15:17:13 +000024370${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
24371${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
24372${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
24373${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
24374${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
24375${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
24376${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
24377${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
24378${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
24379${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
John Criswell878be7d2004-02-24 21:43:38 +000024380${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024381${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
24382${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000024383${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000024384${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
John Criswellcf2e9f72004-02-10 22:36:35 +000024385${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
John Criswellc764fbc2003-09-06 15:17:13 +000024386${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
24387${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
Misha Brukman811ce9f2003-11-12 22:16:51 +000024388${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
24389${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
24390${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
24391${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
24392${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
24393${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
24394${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
24395${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
24396${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
24397${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
24398${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
24399${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
24400${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
John Criswellc764fbc2003-09-06 15:17:13 +000024401${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
24402${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000024403${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024404${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000024405${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024406${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024407
24408_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024409
24410
24411
24412cat >>$CONFIG_STATUS <<\_ACEOF
24413for ac_config_target in $ac_config_targets
24414do
24415 case "$ac_config_target" in
24416 # Handling of arguments.
24417 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Brian Gaeke6c3fd812004-02-23 22:07:00 +000024418 "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
24419 "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
Brian Gaeke793c5f22004-02-23 18:56:02 +000024420 "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
24421 "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
Brian Gaeke6c3fd812004-02-23 22:07:00 +000024422 "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +000024423 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024424 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24425 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000024426 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024427 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024428 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024429 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24430 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000024431 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24432 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024433 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
24434 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
John Criswell8a54a1e2004-06-22 21:35:10 +000024435 "test/Programs/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024436 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
24437 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024438 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
24439 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
24440 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
24441 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
24442 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
24443 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
24444 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
24445 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
24446 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
24447 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
John Criswell878be7d2004-02-24 21:43:38 +000024448 "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024449 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
24450 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000024451 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000024452 "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
John Criswellcf2e9f72004-02-10 22:36:35 +000024453 "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024454 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
24455 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
Misha Brukman811ce9f2003-11-12 22:16:51 +000024456 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
24457 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
24458 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
24459 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
24460 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
24461 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
24462 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
24463 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
24464 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
24465 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
24466 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
24467 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
24468 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024469 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
24470 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000024471 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024472 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024473 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024474 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000024475 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
24476 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24477echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24478 { (exit 1); exit 1; }; };;
24479 esac
24480done
24481
24482# If the user did not use the arguments to specify the items to instantiate,
24483# then the envvar interface is used. Set only those that are not.
24484# We use the long form for the default assignment because of an extremely
24485# bizarre bug on SunOS 4.1.3.
24486if $ac_need_defaults; then
24487 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24488 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Reid Spencerde8c47f2004-08-29 19:35:28 +000024489 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
John Criswellc764fbc2003-09-06 15:17:13 +000024490 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000024491fi
24492
John Criswell0c38eaf2003-09-10 15:17:25 +000024493# Have a temporary directory for convenience. Make it in the build tree
24494# simply because there is no reason to put it here, and in addition,
24495# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000024496# Create a temporary directory, and hook for its removal unless debugging.
24497$debug ||
24498{
24499 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24500 trap '{ (exit 1); exit 1; }' 1 2 13 15
24501}
24502
24503# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000024504
John Criswell7a73b802003-06-30 21:59:07 +000024505{
John Criswell0c38eaf2003-09-10 15:17:25 +000024506 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000024507 test -n "$tmp" && test -d "$tmp"
24508} ||
24509{
John Criswell0c38eaf2003-09-10 15:17:25 +000024510 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000024511 (umask 077 && mkdir $tmp)
24512} ||
24513{
John Criswell0c38eaf2003-09-10 15:17:25 +000024514 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000024515 { (exit 1); exit 1; }
24516}
24517
24518_ACEOF
24519
24520cat >>$CONFIG_STATUS <<_ACEOF
24521
24522#
24523# CONFIG_FILES section.
24524#
24525
24526# No need to generate the scripts if there are no CONFIG_FILES.
24527# This happens for instance when ./config.status config.h
24528if test -n "\$CONFIG_FILES"; then
24529 # Protect against being on the right side of a sed subst in config.status.
24530 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24531 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24532s,@SHELL@,$SHELL,;t t
24533s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24534s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24535s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24536s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24537s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24538s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24539s,@exec_prefix@,$exec_prefix,;t t
24540s,@prefix@,$prefix,;t t
24541s,@program_transform_name@,$program_transform_name,;t t
24542s,@bindir@,$bindir,;t t
24543s,@sbindir@,$sbindir,;t t
24544s,@libexecdir@,$libexecdir,;t t
24545s,@datadir@,$datadir,;t t
24546s,@sysconfdir@,$sysconfdir,;t t
24547s,@sharedstatedir@,$sharedstatedir,;t t
24548s,@localstatedir@,$localstatedir,;t t
24549s,@libdir@,$libdir,;t t
24550s,@includedir@,$includedir,;t t
24551s,@oldincludedir@,$oldincludedir,;t t
24552s,@infodir@,$infodir,;t t
24553s,@mandir@,$mandir,;t t
24554s,@build_alias@,$build_alias,;t t
24555s,@host_alias@,$host_alias,;t t
24556s,@target_alias@,$target_alias,;t t
24557s,@DEFS@,$DEFS,;t t
24558s,@ECHO_C@,$ECHO_C,;t t
24559s,@ECHO_N@,$ECHO_N,;t t
24560s,@ECHO_T@,$ECHO_T,;t t
24561s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000024562s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024563s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24564s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24565s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24566s,@build@,$build,;t t
24567s,@build_cpu@,$build_cpu,;t t
24568s,@build_vendor@,$build_vendor,;t t
24569s,@build_os@,$build_os,;t t
24570s,@host@,$host,;t t
24571s,@host_cpu@,$host_cpu,;t t
24572s,@host_vendor@,$host_vendor,;t t
24573s,@host_os@,$host_os,;t t
24574s,@target@,$target,;t t
24575s,@target_cpu@,$target_cpu,;t t
24576s,@target_vendor@,$target_vendor,;t t
24577s,@target_os@,$target_os,;t t
24578s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024579s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000024580s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024581s,@CXX@,$CXX,;t t
24582s,@CXXFLAGS@,$CXXFLAGS,;t t
24583s,@LDFLAGS@,$LDFLAGS,;t t
24584s,@CPPFLAGS@,$CPPFLAGS,;t t
24585s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24586s,@EXEEXT@,$EXEEXT,;t t
24587s,@OBJEXT@,$OBJEXT,;t t
24588s,@CC@,$CC,;t t
24589s,@CFLAGS@,$CFLAGS,;t t
24590s,@ac_ct_CC@,$ac_ct_CC,;t t
24591s,@CPP@,$CPP,;t t
24592s,@ifGNUmake@,$ifGNUmake,;t t
24593s,@LEX@,$LEX,;t t
24594s,@LEXLIB@,$LEXLIB,;t t
24595s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24596s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000024597s,@BISON@,$BISON,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024598s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024599s,@LN_S@,$LN_S,;t t
24600s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024601s,@AR@,$AR,;t t
24602s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024603s,@RANLIB@,$RANLIB,;t t
24604s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24605s,@STRIP@,$STRIP,;t t
24606s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024607s,@CXXCPP@,$CXXCPP,;t t
24608s,@F77@,$F77,;t t
24609s,@FFLAGS@,$FFLAGS,;t t
24610s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024611s,@LIBTOOL@,$LIBTOOL,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024612s,@DOT@,$DOT,;t t
24613s,@ETAGS@,$ETAGS,;t t
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000024614s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000024615s,@PYTHON@,$PYTHON,;t t
24616s,@QMTEST@,$QMTEST,;t t
Brian Gaekec9a410c2004-02-23 21:30:37 +000024617s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
Brian Gaeke6c3fd812004-02-23 22:07:00 +000024618s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
24619s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
John Criswell7ed43ad2004-07-19 16:12:29 +000024620s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
John Criswell0021c312004-02-13 21:57:29 +000024621s,@ENDIAN@,$ENDIAN,;t t
Brian Gaeke793c5f22004-02-23 18:56:02 +000024622s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
24623s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
24624s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
24625s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
24626s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
24627s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
Brian Gaeke295d4b82004-02-23 18:16:06 +000024628s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24629s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24630s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024631s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024632s,@MMAP_FILE@,$MMAP_FILE,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024633s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswellcf2e9f72004-02-10 22:36:35 +000024634s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
24635s,@USE_SPEC95@,$USE_SPEC95,;t t
Brian Gaekee773b862004-04-16 17:13:44 +000024636s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
24637s,@USE_SPEC2000@,$USE_SPEC2000,;t t
John Criswell0538d422004-02-20 22:30:22 +000024638s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
24639s,@USE_POVRAY@,$USE_POVRAY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024640s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000024641s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024642s,@JIT@,$JIT,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000024643s,@LLVMCC1@,$LLVMCC1,;t t
24644s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024645s,@BCR@,$BCR,;t t
24646s,@PAPIDIR@,$PAPIDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000024647s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000024648s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24649s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24650s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24651s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24652s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24653s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24654s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24655s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24656s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24657s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000024658s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000024659s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024660CEOF
24661
24662_ACEOF
24663
24664 cat >>$CONFIG_STATUS <<\_ACEOF
24665 # Split the substitutions into bite-sized pieces for seds with
24666 # small command number limits, like on Digital OSF/1 and HP-UX.
24667 ac_max_sed_lines=48
24668 ac_sed_frag=1 # Number of current file.
24669 ac_beg=1 # First line for current file.
24670 ac_end=$ac_max_sed_lines # Line after last line for current file.
24671 ac_more_lines=:
24672 ac_sed_cmds=
24673 while $ac_more_lines; do
24674 if test $ac_beg -gt 1; then
24675 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24676 else
24677 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24678 fi
24679 if test ! -s $tmp/subs.frag; then
24680 ac_more_lines=false
24681 else
24682 # The purpose of the label and of the branching condition is to
24683 # speed up the sed processing (if there are no `@' at all, there
24684 # is no need to browse any of the substitutions).
24685 # These are the two extra sed commands mentioned above.
24686 (echo ':t
24687 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24688 if test -z "$ac_sed_cmds"; then
Reid Spencer2b51a082004-08-04 00:34:49 +000024689 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000024690 else
Reid Spencer2b51a082004-08-04 00:34:49 +000024691 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000024692 fi
24693 ac_sed_frag=`expr $ac_sed_frag + 1`
24694 ac_beg=$ac_end
24695 ac_end=`expr $ac_end + $ac_max_sed_lines`
24696 fi
24697 done
24698 if test -z "$ac_sed_cmds"; then
24699 ac_sed_cmds=cat
24700 fi
24701fi # test -n "$CONFIG_FILES"
24702
24703_ACEOF
24704cat >>$CONFIG_STATUS <<\_ACEOF
24705for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24706 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24707 case $ac_file in
24708 - | *:- | *:-:* ) # input from stdin
Reid Spencer2b51a082004-08-04 00:34:49 +000024709 cat >$tmp/stdin
24710 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24711 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024712 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2b51a082004-08-04 00:34:49 +000024713 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024714 * ) ac_file_in=$ac_file.in ;;
24715 esac
24716
24717 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24718 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24719$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2b51a082004-08-04 00:34:49 +000024720 X"$ac_file" : 'X\(//\)[^/]' \| \
24721 X"$ac_file" : 'X\(//\)$' \| \
24722 X"$ac_file" : 'X\(/\)' \| \
24723 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000024724echo X"$ac_file" |
24725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24726 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24727 /^X\(\/\/\)$/{ s//\1/; q; }
24728 /^X\(\/\).*/{ s//\1/; q; }
24729 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024730 { if $as_mkdir_p; then
24731 mkdir -p "$ac_dir"
24732 else
24733 as_dir="$ac_dir"
24734 as_dirs=
24735 while test ! -d "$as_dir"; do
24736 as_dirs="$as_dir $as_dirs"
24737 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24738$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2b51a082004-08-04 00:34:49 +000024739 X"$as_dir" : 'X\(//\)[^/]' \| \
24740 X"$as_dir" : 'X\(//\)$' \| \
24741 X"$as_dir" : 'X\(/\)' \| \
24742 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000024743echo X"$as_dir" |
24744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24745 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24746 /^X\(\/\/\)$/{ s//\1/; q; }
24747 /^X\(\/\).*/{ s//\1/; q; }
24748 s/.*/./; q'`
24749 done
24750 test ! -n "$as_dirs" || mkdir $as_dirs
24751 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24752echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24753 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024754
24755 ac_builddir=.
24756
24757if test "$ac_dir" != .; then
24758 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24759 # A "../" for each directory in $ac_dir_suffix.
24760 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24761else
24762 ac_dir_suffix= ac_top_builddir=
24763fi
24764
24765case $srcdir in
24766 .) # No --srcdir option. We are building in place.
24767 ac_srcdir=.
24768 if test -z "$ac_top_builddir"; then
24769 ac_top_srcdir=.
24770 else
24771 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24772 fi ;;
24773 [\\/]* | ?:[\\/]* ) # Absolute path.
24774 ac_srcdir=$srcdir$ac_dir_suffix;
24775 ac_top_srcdir=$srcdir ;;
24776 *) # Relative path.
24777 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24778 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24779esac
Reid Spencer2b51a082004-08-04 00:34:49 +000024780
24781# Do not use `cd foo && pwd` to compute absolute paths, because
24782# the directories may not exist.
24783case `pwd` in
24784.) ac_abs_builddir="$ac_dir";;
24785*)
24786 case "$ac_dir" in
24787 .) ac_abs_builddir=`pwd`;;
24788 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24789 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24790 esac;;
24791esac
24792case $ac_abs_builddir in
24793.) ac_abs_top_builddir=${ac_top_builddir}.;;
24794*)
24795 case ${ac_top_builddir}. in
24796 .) ac_abs_top_builddir=$ac_abs_builddir;;
24797 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24798 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24799 esac;;
24800esac
24801case $ac_abs_builddir in
24802.) ac_abs_srcdir=$ac_srcdir;;
24803*)
24804 case $ac_srcdir in
24805 .) ac_abs_srcdir=$ac_abs_builddir;;
24806 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24807 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24808 esac;;
24809esac
24810case $ac_abs_builddir in
24811.) ac_abs_top_srcdir=$ac_top_srcdir;;
24812*)
24813 case $ac_top_srcdir in
24814 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24815 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24816 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24817 esac;;
24818esac
John Criswell7a73b802003-06-30 21:59:07 +000024819
24820
24821 case $INSTALL in
24822 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24823 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24824 esac
24825
24826 if test x"$ac_file" != x-; then
24827 { echo "$as_me:$LINENO: creating $ac_file" >&5
24828echo "$as_me: creating $ac_file" >&6;}
24829 rm -f "$ac_file"
24830 fi
24831 # Let's still pretend it is `configure' which instantiates (i.e., don't
24832 # use $as_me), people would be surprised to read:
24833 # /* config.h. Generated by config.status. */
24834 if test x"$ac_file" = x-; then
24835 configure_input=
24836 else
24837 configure_input="$ac_file. "
24838 fi
24839 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2b51a082004-08-04 00:34:49 +000024840 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000024841
24842 # First look for the input files in the build tree, otherwise in the
24843 # src tree.
24844 ac_file_inputs=`IFS=:
24845 for f in $ac_file_in; do
24846 case $f in
24847 -) echo $tmp/stdin ;;
24848 [\\/$]*)
Reid Spencer2b51a082004-08-04 00:34:49 +000024849 # Absolute (can't be DOS-style, as IFS=:)
24850 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024851echo "$as_me: error: cannot find input file: $f" >&2;}
24852 { (exit 1); exit 1; }; }
Reid Spencer2b51a082004-08-04 00:34:49 +000024853 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000024854 *) # Relative
Reid Spencer2b51a082004-08-04 00:34:49 +000024855 if test -f "$f"; then
24856 # Build tree
24857 echo "$f"
24858 elif test -f "$srcdir/$f"; then
24859 # Source tree
24860 echo "$srcdir/$f"
24861 else
24862 # /dev/null tree
24863 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024864echo "$as_me: error: cannot find input file: $f" >&2;}
24865 { (exit 1); exit 1; }; }
Reid Spencer2b51a082004-08-04 00:34:49 +000024866 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000024867 esac
24868 done` || { (exit 1); exit 1; }
24869_ACEOF
24870cat >>$CONFIG_STATUS <<_ACEOF
24871 sed "$ac_vpsub
24872$extrasub
24873_ACEOF
24874cat >>$CONFIG_STATUS <<\_ACEOF
24875:t
24876/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24877s,@configure_input@,$configure_input,;t t
24878s,@srcdir@,$ac_srcdir,;t t
24879s,@abs_srcdir@,$ac_abs_srcdir,;t t
24880s,@top_srcdir@,$ac_top_srcdir,;t t
24881s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24882s,@builddir@,$ac_builddir,;t t
24883s,@abs_builddir@,$ac_abs_builddir,;t t
24884s,@top_builddir@,$ac_top_builddir,;t t
24885s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24886s,@INSTALL@,$ac_INSTALL,;t t
24887" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24888 rm -f $tmp/stdin
24889 if test x"$ac_file" != x-; then
24890 mv $tmp/out $ac_file
24891 else
24892 cat $tmp/out
24893 rm -f $tmp/out
24894 fi
24895
24896done
24897_ACEOF
24898cat >>$CONFIG_STATUS <<\_ACEOF
24899
24900#
24901# CONFIG_HEADER section.
24902#
24903
24904# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24905# NAME is the cpp macro being defined and VALUE is the value it is being given.
24906#
24907# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2b51a082004-08-04 00:34:49 +000024908ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24909ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000024910ac_dC=' '
24911ac_dD=',;t'
24912# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2b51a082004-08-04 00:34:49 +000024913ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000024914ac_uB='$,\1#\2define\3'
24915ac_uC=' '
24916ac_uD=',;t'
24917
24918for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24919 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24920 case $ac_file in
24921 - | *:- | *:-:* ) # input from stdin
Reid Spencer2b51a082004-08-04 00:34:49 +000024922 cat >$tmp/stdin
24923 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24924 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024925 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2b51a082004-08-04 00:34:49 +000024926 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024927 * ) ac_file_in=$ac_file.in ;;
24928 esac
24929
24930 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24931echo "$as_me: creating $ac_file" >&6;}
24932
24933 # First look for the input files in the build tree, otherwise in the
24934 # src tree.
24935 ac_file_inputs=`IFS=:
24936 for f in $ac_file_in; do
24937 case $f in
24938 -) echo $tmp/stdin ;;
24939 [\\/$]*)
Reid Spencer2b51a082004-08-04 00:34:49 +000024940 # Absolute (can't be DOS-style, as IFS=:)
24941 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024942echo "$as_me: error: cannot find input file: $f" >&2;}
24943 { (exit 1); exit 1; }; }
Reid Spencer2b51a082004-08-04 00:34:49 +000024944 # Do quote $f, to prevent DOS paths from being IFS'd.
24945 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000024946 *) # Relative
Reid Spencer2b51a082004-08-04 00:34:49 +000024947 if test -f "$f"; then
24948 # Build tree
24949 echo "$f"
24950 elif test -f "$srcdir/$f"; then
24951 # Source tree
24952 echo "$srcdir/$f"
24953 else
24954 # /dev/null tree
24955 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024956echo "$as_me: error: cannot find input file: $f" >&2;}
24957 { (exit 1); exit 1; }; }
Reid Spencer2b51a082004-08-04 00:34:49 +000024958 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000024959 esac
24960 done` || { (exit 1); exit 1; }
24961 # Remove the trailing spaces.
Reid Spencer2b51a082004-08-04 00:34:49 +000024962 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000024963
24964_ACEOF
24965
24966# Transform confdefs.h into two sed scripts, `conftest.defines' and
24967# `conftest.undefs', that substitutes the proper values into
24968# config.h.in to produce config.h. The first handles `#define'
24969# templates, and the second `#undef' templates.
24970# And first: Protect against being on the right side of a sed subst in
24971# config.status. Protect against being in an unquoted here document
24972# in config.status.
24973rm -f conftest.defines conftest.undefs
24974# Using a here document instead of a string reduces the quoting nightmare.
24975# Putting comments in sed scripts is not portable.
24976#
24977# `end' is used to avoid that the second main sed command (meant for
24978# 0-ary CPP macros) applies to n-ary macro definitions.
24979# See the Autoconf documentation for `clear'.
24980cat >confdef2sed.sed <<\_ACEOF
24981s/[\\&,]/\\&/g
24982s,[\\$`],\\&,g
24983t clear
24984: clear
Reid Spencer2b51a082004-08-04 00:34:49 +000024985s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000024986t end
Reid Spencer2b51a082004-08-04 00:34:49 +000024987s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000024988: end
24989_ACEOF
24990# If some macros were called several times there might be several times
24991# the same #defines, which is useless. Nevertheless, we may not want to
24992# sort them, since we want the *last* AC-DEFINE to be honored.
24993uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24994sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24995rm -f confdef2sed.sed
24996
24997# This sed command replaces #undef with comments. This is necessary, for
24998# example, in the case of _POSIX_SOURCE, which is predefined and required
24999# on some systems where configure will not decide to define it.
25000cat >>conftest.undefs <<\_ACEOF
Reid Spencer2b51a082004-08-04 00:34:49 +000025001s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000025002_ACEOF
25003
25004# Break up conftest.defines because some shells have a limit on the size
25005# of here documents, and old seds have small limits too (100 cmds).
25006echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2b51a082004-08-04 00:34:49 +000025007echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025008echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25009echo ' :' >>$CONFIG_STATUS
25010rm -f conftest.tail
25011while grep . conftest.defines >/dev/null
25012do
25013 # Write a limited-size here document to $tmp/defines.sed.
25014 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25015 # Speed up: don't consider the non `#define' lines.
Reid Spencer2b51a082004-08-04 00:34:49 +000025016 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025017 # Work around the forget-to-reset-the-flag bug.
25018 echo 't clr' >>$CONFIG_STATUS
25019 echo ': clr' >>$CONFIG_STATUS
25020 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25021 echo 'CEOF
25022 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25023 rm -f $tmp/in
25024 mv $tmp/out $tmp/in
25025' >>$CONFIG_STATUS
25026 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25027 rm -f conftest.defines
25028 mv conftest.tail conftest.defines
25029done
25030rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000025031echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025032echo >>$CONFIG_STATUS
25033
25034# Break up conftest.undefs because some shells have a limit on the size
25035# of here documents, and old seds have small limits too (100 cmds).
25036echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25037rm -f conftest.tail
25038while grep . conftest.undefs >/dev/null
25039do
25040 # Write a limited-size here document to $tmp/undefs.sed.
25041 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25042 # Speed up: don't consider the non `#undef'
Reid Spencer2b51a082004-08-04 00:34:49 +000025043 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025044 # Work around the forget-to-reset-the-flag bug.
25045 echo 't clr' >>$CONFIG_STATUS
25046 echo ': clr' >>$CONFIG_STATUS
25047 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25048 echo 'CEOF
25049 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25050 rm -f $tmp/in
25051 mv $tmp/out $tmp/in
25052' >>$CONFIG_STATUS
25053 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25054 rm -f conftest.undefs
25055 mv conftest.tail conftest.undefs
25056done
25057rm -f conftest.undefs
25058
25059cat >>$CONFIG_STATUS <<\_ACEOF
25060 # Let's still pretend it is `configure' which instantiates (i.e., don't
25061 # use $as_me), people would be surprised to read:
25062 # /* config.h. Generated by config.status. */
25063 if test x"$ac_file" = x-; then
25064 echo "/* Generated by configure. */" >$tmp/config.h
25065 else
25066 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25067 fi
25068 cat $tmp/in >>$tmp/config.h
25069 rm -f $tmp/in
25070 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000025071 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025072 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25073echo "$as_me: $ac_file is unchanged" >&6;}
25074 else
25075 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25076$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2b51a082004-08-04 00:34:49 +000025077 X"$ac_file" : 'X\(//\)[^/]' \| \
25078 X"$ac_file" : 'X\(//\)$' \| \
25079 X"$ac_file" : 'X\(/\)' \| \
25080 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000025081echo X"$ac_file" |
25082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25083 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25084 /^X\(\/\/\)$/{ s//\1/; q; }
25085 /^X\(\/\).*/{ s//\1/; q; }
25086 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000025087 { if $as_mkdir_p; then
25088 mkdir -p "$ac_dir"
25089 else
25090 as_dir="$ac_dir"
25091 as_dirs=
25092 while test ! -d "$as_dir"; do
25093 as_dirs="$as_dir $as_dirs"
25094 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25095$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2b51a082004-08-04 00:34:49 +000025096 X"$as_dir" : 'X\(//\)[^/]' \| \
25097 X"$as_dir" : 'X\(//\)$' \| \
25098 X"$as_dir" : 'X\(/\)' \| \
25099 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000025100echo X"$as_dir" |
25101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25102 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25103 /^X\(\/\/\)$/{ s//\1/; q; }
25104 /^X\(\/\).*/{ s//\1/; q; }
25105 s/.*/./; q'`
25106 done
25107 test ! -n "$as_dirs" || mkdir $as_dirs
25108 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25109echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25110 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000025111
25112 rm -f $ac_file
25113 mv $tmp/config.h $ac_file
25114 fi
25115 else
25116 cat $tmp/config.h
25117 rm -f $tmp/config.h
25118 fi
25119done
25120_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000025121cat >>$CONFIG_STATUS <<\_ACEOF
25122
25123#
Reid Spencerde8c47f2004-08-29 19:35:28 +000025124# CONFIG_LINKS section.
25125#
25126
25127for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25128 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25129 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25130
25131 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25132echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25133
25134 if test ! -r $srcdir/$ac_source; then
25135 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25136echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25137 { (exit 1); exit 1; }; }
25138 fi
25139 rm -f $ac_dest
25140
25141 # Make relative symlinks.
25142 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25143$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25144 X"$ac_dest" : 'X\(//\)[^/]' \| \
25145 X"$ac_dest" : 'X\(//\)$' \| \
25146 X"$ac_dest" : 'X\(/\)' \| \
25147 . : '\(.\)' 2>/dev/null ||
25148echo X"$ac_dest" |
25149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25150 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25151 /^X\(\/\/\)$/{ s//\1/; q; }
25152 /^X\(\/\).*/{ s//\1/; q; }
25153 s/.*/./; q'`
25154 { if $as_mkdir_p; then
25155 mkdir -p "$ac_dest_dir"
25156 else
25157 as_dir="$ac_dest_dir"
25158 as_dirs=
25159 while test ! -d "$as_dir"; do
25160 as_dirs="$as_dir $as_dirs"
25161 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25162$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25163 X"$as_dir" : 'X\(//\)[^/]' \| \
25164 X"$as_dir" : 'X\(//\)$' \| \
25165 X"$as_dir" : 'X\(/\)' \| \
25166 . : '\(.\)' 2>/dev/null ||
25167echo X"$as_dir" |
25168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25169 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25170 /^X\(\/\/\)$/{ s//\1/; q; }
25171 /^X\(\/\).*/{ s//\1/; q; }
25172 s/.*/./; q'`
25173 done
25174 test ! -n "$as_dirs" || mkdir $as_dirs
25175 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25176echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25177 { (exit 1); exit 1; }; }; }
25178
25179 ac_builddir=.
25180
25181if test "$ac_dest_dir" != .; then
25182 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25183 # A "../" for each directory in $ac_dir_suffix.
25184 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25185else
25186 ac_dir_suffix= ac_top_builddir=
25187fi
25188
25189case $srcdir in
25190 .) # No --srcdir option. We are building in place.
25191 ac_srcdir=.
25192 if test -z "$ac_top_builddir"; then
25193 ac_top_srcdir=.
25194 else
25195 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25196 fi ;;
25197 [\\/]* | ?:[\\/]* ) # Absolute path.
25198 ac_srcdir=$srcdir$ac_dir_suffix;
25199 ac_top_srcdir=$srcdir ;;
25200 *) # Relative path.
25201 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25202 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25203esac
25204
25205# Do not use `cd foo && pwd` to compute absolute paths, because
25206# the directories may not exist.
25207case `pwd` in
25208.) ac_abs_builddir="$ac_dest_dir";;
25209*)
25210 case "$ac_dest_dir" in
25211 .) ac_abs_builddir=`pwd`;;
25212 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25213 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25214 esac;;
25215esac
25216case $ac_abs_builddir in
25217.) ac_abs_top_builddir=${ac_top_builddir}.;;
25218*)
25219 case ${ac_top_builddir}. in
25220 .) ac_abs_top_builddir=$ac_abs_builddir;;
25221 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25222 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25223 esac;;
25224esac
25225case $ac_abs_builddir in
25226.) ac_abs_srcdir=$ac_srcdir;;
25227*)
25228 case $ac_srcdir in
25229 .) ac_abs_srcdir=$ac_abs_builddir;;
25230 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25231 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25232 esac;;
25233esac
25234case $ac_abs_builddir in
25235.) ac_abs_top_srcdir=$ac_top_srcdir;;
25236*)
25237 case $ac_top_srcdir in
25238 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25239 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25240 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25241 esac;;
25242esac
25243
25244
25245 case $srcdir in
25246 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25247 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25248 esac
25249
25250 # Try a symlink, then a hard link, then a copy.
25251 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25252 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25253 cp -p $srcdir/$ac_source $ac_dest ||
25254 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25255echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25256 { (exit 1); exit 1; }; }
25257done
25258_ACEOF
25259cat >>$CONFIG_STATUS <<\_ACEOF
25260
25261#
John Criswellc764fbc2003-09-06 15:17:13 +000025262# CONFIG_COMMANDS section.
25263#
25264for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25265 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25266 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25267 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25268$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2b51a082004-08-04 00:34:49 +000025269 X"$ac_dest" : 'X\(//\)[^/]' \| \
25270 X"$ac_dest" : 'X\(//\)$' \| \
25271 X"$ac_dest" : 'X\(/\)' \| \
25272 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000025273echo X"$ac_dest" |
25274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25275 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25276 /^X\(\/\/\)$/{ s//\1/; q; }
25277 /^X\(\/\).*/{ s//\1/; q; }
25278 s/.*/./; q'`
Reid Spencer2b51a082004-08-04 00:34:49 +000025279 { if $as_mkdir_p; then
25280 mkdir -p "$ac_dir"
25281 else
25282 as_dir="$ac_dir"
25283 as_dirs=
25284 while test ! -d "$as_dir"; do
25285 as_dirs="$as_dir $as_dirs"
25286 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25287$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25288 X"$as_dir" : 'X\(//\)[^/]' \| \
25289 X"$as_dir" : 'X\(//\)$' \| \
25290 X"$as_dir" : 'X\(/\)' \| \
25291 . : '\(.\)' 2>/dev/null ||
25292echo X"$as_dir" |
25293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25294 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25295 /^X\(\/\/\)$/{ s//\1/; q; }
25296 /^X\(\/\).*/{ s//\1/; q; }
25297 s/.*/./; q'`
25298 done
25299 test ! -n "$as_dirs" || mkdir $as_dirs
25300 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25301echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25302 { (exit 1); exit 1; }; }; }
25303
John Criswellc764fbc2003-09-06 15:17:13 +000025304 ac_builddir=.
25305
25306if test "$ac_dir" != .; then
25307 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25308 # A "../" for each directory in $ac_dir_suffix.
25309 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25310else
25311 ac_dir_suffix= ac_top_builddir=
25312fi
25313
25314case $srcdir in
25315 .) # No --srcdir option. We are building in place.
25316 ac_srcdir=.
25317 if test -z "$ac_top_builddir"; then
25318 ac_top_srcdir=.
25319 else
25320 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25321 fi ;;
25322 [\\/]* | ?:[\\/]* ) # Absolute path.
25323 ac_srcdir=$srcdir$ac_dir_suffix;
25324 ac_top_srcdir=$srcdir ;;
25325 *) # Relative path.
25326 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25327 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25328esac
Reid Spencer2b51a082004-08-04 00:34:49 +000025329
25330# Do not use `cd foo && pwd` to compute absolute paths, because
25331# the directories may not exist.
25332case `pwd` in
25333.) ac_abs_builddir="$ac_dir";;
25334*)
25335 case "$ac_dir" in
25336 .) ac_abs_builddir=`pwd`;;
25337 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25338 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25339 esac;;
25340esac
25341case $ac_abs_builddir in
25342.) ac_abs_top_builddir=${ac_top_builddir}.;;
25343*)
25344 case ${ac_top_builddir}. in
25345 .) ac_abs_top_builddir=$ac_abs_builddir;;
25346 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25347 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25348 esac;;
25349esac
25350case $ac_abs_builddir in
25351.) ac_abs_srcdir=$ac_srcdir;;
25352*)
25353 case $ac_srcdir in
25354 .) ac_abs_srcdir=$ac_abs_builddir;;
25355 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25356 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25357 esac;;
25358esac
25359case $ac_abs_builddir in
25360.) ac_abs_top_srcdir=$ac_top_srcdir;;
25361*)
25362 case $ac_top_srcdir in
25363 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25364 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25365 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25366 esac;;
25367esac
John Criswellc764fbc2003-09-06 15:17:13 +000025368
25369
25370 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25371echo "$as_me: executing $ac_dest commands" >&6;}
25372 case $ac_dest in
25373 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25374 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000025375 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025376 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025377 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025378 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25379 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000025380 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25381 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025382 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
25383 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
John Criswell8a54a1e2004-06-22 21:35:10 +000025384 test/Programs/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.tests test/Programs/Makefile.tests ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025385 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
25386 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025387 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
25388 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
25389 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
25390 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
25391 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
25392 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
25393 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
25394 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
25395 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
25396 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
John Criswell878be7d2004-02-24 21:43:38 +000025397 test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025398 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
25399 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000025400 test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;;
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000025401 test/Programs/External/SPEC/Makefile.spec2000 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec2000 test/Programs/External/SPEC/Makefile.spec2000 ;;
John Criswellcf2e9f72004-02-10 22:36:35 +000025402 test/Programs/External/SPEC/Makefile.spec95 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec95 test/Programs/External/SPEC/Makefile.spec95 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025403 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
25404 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
Misha Brukman811ce9f2003-11-12 22:16:51 +000025405 test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;;
25406 test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;;
25407 test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;;
25408 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;;
25409 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;;
25410 test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;;
25411 test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;;
25412 test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;;
25413 test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;;
25414 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;;
25415 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;;
25416 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;;
25417 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025418 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
25419 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000025420 test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025421 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000025422 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025423 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025424 esac
25425done
25426_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025427
25428cat >>$CONFIG_STATUS <<\_ACEOF
25429
25430{ (exit 0); exit 0; }
25431_ACEOF
25432chmod +x $CONFIG_STATUS
25433ac_clean_files=$ac_clean_files_save
25434
25435
25436# configure is writing to config.log, and then calls config.status.
25437# config.status does its own redirection, appending to config.log.
25438# Unfortunately, on DOS this fails, as config.log is still kept open
25439# by configure, so config.status won't be able to write to it; its
25440# output is simply discarded. So we exec the FD to /dev/null,
25441# effectively closing config.log, so it can be properly (re)opened and
25442# appended to by config.status. When coming back to configure, we
25443# need to make the FD available again.
25444if test "$no_create" != yes; then
25445 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000025446 ac_config_status_args=
25447 test "$silent" = yes &&
25448 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000025449 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000025450 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000025451 exec 5>>config.log
25452 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25453 # would make configure fail if this is the last instruction.
25454 $ac_cs_success || { (exit 1); exit 1; }
25455fi
25456
John Criswell12399a12003-09-30 15:55:44 +000025457#
25458# CONFIG_SUBDIRS section.
25459#
25460if test "$no_recursion" != yes; then
25461
25462 # Remove --cache-file and --srcdir arguments so they do not pile up.
25463 ac_sub_configure_args=
25464 ac_prev=
25465 for ac_arg in $ac_configure_args; do
25466 if test -n "$ac_prev"; then
25467 ac_prev=
25468 continue
25469 fi
25470 case $ac_arg in
25471 -cache-file | --cache-file | --cache-fil | --cache-fi \
25472 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25473 ac_prev=cache_file ;;
25474 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25475 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25476 | --c=*)
25477 ;;
25478 --config-cache | -C)
25479 ;;
25480 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25481 ac_prev=srcdir ;;
25482 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25483 ;;
25484 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25485 ac_prev=prefix ;;
25486 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25487 ;;
25488 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25489 esac
25490 done
25491
25492 # Always prepend --prefix to ensure using the same prefix
25493 # in subdir configurations.
25494 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25495
25496 ac_popdir=`pwd`
25497 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25498
25499 # Do not complain, so a configure script can configure whichever
25500 # parts of a large source tree are present.
25501 test -d $srcdir/$ac_dir || continue
25502
25503 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25504echo "$as_me: configuring in $ac_dir" >&6;}
25505 { if $as_mkdir_p; then
25506 mkdir -p "$ac_dir"
25507 else
25508 as_dir="$ac_dir"
25509 as_dirs=
25510 while test ! -d "$as_dir"; do
25511 as_dirs="$as_dir $as_dirs"
25512 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25513$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2b51a082004-08-04 00:34:49 +000025514 X"$as_dir" : 'X\(//\)[^/]' \| \
25515 X"$as_dir" : 'X\(//\)$' \| \
25516 X"$as_dir" : 'X\(/\)' \| \
25517 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000025518echo X"$as_dir" |
25519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25520 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25521 /^X\(\/\/\)$/{ s//\1/; q; }
25522 /^X\(\/\).*/{ s//\1/; q; }
25523 s/.*/./; q'`
25524 done
25525 test ! -n "$as_dirs" || mkdir $as_dirs
25526 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25527echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25528 { (exit 1); exit 1; }; }; }
25529
25530 ac_builddir=.
25531
25532if test "$ac_dir" != .; then
25533 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25534 # A "../" for each directory in $ac_dir_suffix.
25535 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25536else
25537 ac_dir_suffix= ac_top_builddir=
25538fi
25539
25540case $srcdir in
25541 .) # No --srcdir option. We are building in place.
25542 ac_srcdir=.
25543 if test -z "$ac_top_builddir"; then
25544 ac_top_srcdir=.
25545 else
25546 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25547 fi ;;
25548 [\\/]* | ?:[\\/]* ) # Absolute path.
25549 ac_srcdir=$srcdir$ac_dir_suffix;
25550 ac_top_srcdir=$srcdir ;;
25551 *) # Relative path.
25552 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25553 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25554esac
Reid Spencer2b51a082004-08-04 00:34:49 +000025555
25556# Do not use `cd foo && pwd` to compute absolute paths, because
25557# the directories may not exist.
25558case `pwd` in
25559.) ac_abs_builddir="$ac_dir";;
25560*)
25561 case "$ac_dir" in
25562 .) ac_abs_builddir=`pwd`;;
25563 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25564 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25565 esac;;
25566esac
25567case $ac_abs_builddir in
25568.) ac_abs_top_builddir=${ac_top_builddir}.;;
25569*)
25570 case ${ac_top_builddir}. in
25571 .) ac_abs_top_builddir=$ac_abs_builddir;;
25572 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25573 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25574 esac;;
25575esac
25576case $ac_abs_builddir in
25577.) ac_abs_srcdir=$ac_srcdir;;
25578*)
25579 case $ac_srcdir in
25580 .) ac_abs_srcdir=$ac_abs_builddir;;
25581 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25582 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25583 esac;;
25584esac
25585case $ac_abs_builddir in
25586.) ac_abs_top_srcdir=$ac_top_srcdir;;
25587*)
25588 case $ac_top_srcdir in
25589 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25590 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25591 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25592 esac;;
25593esac
John Criswell12399a12003-09-30 15:55:44 +000025594
25595
25596 cd $ac_dir
25597
25598 # Check for guested configure; otherwise get Cygnus style configure.
25599 if test -f $ac_srcdir/configure.gnu; then
25600 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25601 elif test -f $ac_srcdir/configure; then
25602 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25603 elif test -f $ac_srcdir/configure.in; then
25604 ac_sub_configure=$ac_configure
25605 else
25606 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25607echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25608 ac_sub_configure=
25609 fi
25610
25611 # The recursion is here.
25612 if test -n "$ac_sub_configure"; then
25613 # Make the cache file name correct relative to the subdirectory.
25614 case $cache_file in
25615 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25616 *) # Relative path.
Reid Spencer2b51a082004-08-04 00:34:49 +000025617 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000025618 esac
25619
25620 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25621echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25622 # The eval makes quoting arguments work.
25623 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2b51a082004-08-04 00:34:49 +000025624 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25625 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000025626echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25627 { (exit 1); exit 1; }; }
25628 fi
25629
25630 cd $ac_popdir
25631 done
25632fi
25633
Brian Gaekef3b24102003-11-16 18:38:14 +000025634
25635if test $llvmgccwarn = yes
25636then
25637 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25638echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25639 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25640echo "$as_me: WARNING: ***** appear to be working." >&2;}
25641 { echo "$as_me:$LINENO: WARNING: ***** " >&5
25642echo "$as_me: WARNING: ***** " >&2;}
25643 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25644echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25645 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25646echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25647 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25648echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
25649fi
Brian Gaeke554831c2004-01-21 19:39:29 +000025650